]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
36ed4f51 | 3 | * Version 1.3.24 |
d55e5bfc 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 | |
d55e5bfc RD |
12 | |
13 | #ifdef __cplusplus | |
14 | template<class T> class SwigValueWrapper { | |
15 | T *tt; | |
16 | public: | |
17 | SwigValueWrapper() : tt(0) { } | |
18 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
19 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
20 | ~SwigValueWrapper() { delete tt; } | |
21 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
22 | operator T&() const { return *tt; } | |
23 | T *operator&() { return tt; } | |
24 | private: | |
25 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
36ed4f51 | 26 | }; |
d55e5bfc RD |
27 | #endif |
28 | ||
29 | ||
36ed4f51 RD |
30 | #ifndef SWIG_TEMPLATE_DISAMBIGUATOR |
31 | # if defined(__SUNPRO_CC) | |
32 | # define SWIG_TEMPLATE_DISAMBIGUATOR template | |
33 | # else | |
34 | # define SWIG_TEMPLATE_DISAMBIGUATOR | |
35 | # endif | |
36 | #endif | |
d55e5bfc | 37 | |
d55e5bfc | 38 | |
36ed4f51 | 39 | #include <Python.h> |
d55e5bfc RD |
40 | |
41 | /*********************************************************************** | |
36ed4f51 | 42 | * swigrun.swg |
d55e5bfc | 43 | * |
36ed4f51 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d55e5bfc RD |
46 | * |
47 | ************************************************************************/ | |
48 | ||
36ed4f51 RD |
49 | /* This should only be incremented when either the layout of swig_type_info changes, |
50 | or for whatever reason, the runtime changes incompatibly */ | |
51 | #define SWIG_RUNTIME_VERSION "1" | |
d55e5bfc | 52 | |
36ed4f51 RD |
53 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
54 | #ifdef SWIG_TYPE_TABLE | |
55 | #define SWIG_QUOTE_STRING(x) #x | |
56 | #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
57 | #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 58 | #else |
36ed4f51 | 59 | #define SWIG_TYPE_TABLE_NAME |
d55e5bfc RD |
60 | #endif |
61 | ||
36ed4f51 RD |
62 | #include <string.h> |
63 | ||
64 | #ifndef SWIGINLINE | |
65 | #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
66 | # define SWIGINLINE inline | |
d55e5bfc | 67 | #else |
36ed4f51 RD |
68 | # define SWIGINLINE |
69 | #endif | |
70 | #endif | |
71 | ||
72 | /* | |
73 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
74 | creating a static or dynamic library from the swig runtime code. | |
75 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
76 | ||
77 | But only do this if is strictly necessary, ie, if you have problems | |
78 | with your compiler or so. | |
79 | */ | |
80 | #ifndef SWIGRUNTIME | |
81 | #define SWIGRUNTIME static | |
82 | #endif | |
83 | #ifndef SWIGRUNTIMEINLINE | |
84 | #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE | |
d55e5bfc RD |
85 | #endif |
86 | ||
87 | #ifdef __cplusplus | |
88 | extern "C" { | |
89 | #endif | |
90 | ||
91 | typedef void *(*swig_converter_func)(void *); | |
92 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
93 | ||
94 | typedef struct swig_type_info { | |
95 | const char *name; | |
96 | swig_converter_func converter; | |
97 | const char *str; | |
98 | void *clientdata; | |
99 | swig_dycast_func dcast; | |
100 | struct swig_type_info *next; | |
101 | struct swig_type_info *prev; | |
102 | } swig_type_info; | |
103 | ||
36ed4f51 RD |
104 | /* |
105 | Compare two type names skipping the space characters, therefore | |
106 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
107 | ||
108 | Return 0 when the two name types are equivalent, as in | |
109 | strncmp, but skipping ' '. | |
110 | */ | |
111 | SWIGRUNTIME int | |
112 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
113 | const char *f2, const char *l2) { | |
114 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
115 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
116 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
117 | if (*f1 != *f2) return *f1 - *f2; | |
118 | } | |
119 | return (l1 - f1) - (l2 - f2); | |
120 | } | |
121 | ||
122 | /* | |
123 | Check type equivalence in a name list like <name1>|<name2>|... | |
124 | */ | |
125 | SWIGRUNTIME int | |
126 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
127 | int equiv = 0; | |
128 | const char* te = tb + strlen(tb); | |
129 | const char* ne = nb; | |
130 | while (!equiv && *ne) { | |
131 | for (nb = ne; *ne; ++ne) { | |
132 | if (*ne == '|') break; | |
133 | } | |
134 | equiv = SWIG_TypeNameComp(nb, ne, tb, te) == 0; | |
135 | if (*ne) ++ne; | |
136 | } | |
137 | return equiv; | |
138 | } | |
139 | ||
140 | /* | |
141 | Register a type mapping with the type-checking | |
142 | */ | |
143 | SWIGRUNTIME swig_type_info * | |
144 | SWIG_TypeRegisterTL(swig_type_info **tl, swig_type_info *ti) { | |
145 | swig_type_info *tc, *head, *ret, *next; | |
146 | /* Check to see if this type has already been registered */ | |
147 | tc = *tl; | |
148 | while (tc) { | |
149 | /* check simple type equivalence */ | |
150 | int typeequiv = (strcmp(tc->name, ti->name) == 0); | |
151 | /* check full type equivalence, resolving typedefs */ | |
152 | if (!typeequiv) { | |
153 | /* only if tc is not a typedef (no '|' on it) */ | |
154 | if (tc->str && ti->str && !strstr(tc->str,"|")) { | |
155 | typeequiv = SWIG_TypeEquiv(ti->str,tc->str); | |
156 | } | |
157 | } | |
158 | if (typeequiv) { | |
159 | /* Already exists in the table. Just add additional types to the list */ | |
160 | if (ti->clientdata) tc->clientdata = ti->clientdata; | |
161 | head = tc; | |
162 | next = tc->next; | |
163 | goto l1; | |
164 | } | |
165 | tc = tc->prev; | |
166 | } | |
167 | head = ti; | |
168 | next = 0; | |
169 | ||
170 | /* Place in list */ | |
171 | ti->prev = *tl; | |
172 | *tl = ti; | |
173 | ||
174 | /* Build linked lists */ | |
175 | l1: | |
176 | ret = head; | |
177 | tc = ti + 1; | |
178 | /* Patch up the rest of the links */ | |
179 | while (tc->name) { | |
180 | head->next = tc; | |
181 | tc->prev = head; | |
182 | head = tc; | |
183 | tc++; | |
184 | } | |
185 | if (next) next->prev = head; | |
186 | head->next = next; | |
187 | ||
188 | return ret; | |
189 | } | |
190 | ||
191 | /* | |
192 | Check the typename | |
193 | */ | |
194 | SWIGRUNTIME swig_type_info * | |
195 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { | |
196 | swig_type_info *s; | |
197 | if (!ty) return 0; /* Void pointer */ | |
198 | s = ty->next; /* First element always just a name */ | |
199 | do { | |
200 | if (strcmp(s->name,c) == 0) { | |
201 | if (s == ty->next) return s; | |
202 | /* Move s to the top of the linked list */ | |
203 | s->prev->next = s->next; | |
204 | if (s->next) { | |
205 | s->next->prev = s->prev; | |
206 | } | |
207 | /* Insert s as second element in the list */ | |
208 | s->next = ty->next; | |
209 | if (ty->next) ty->next->prev = s; | |
210 | ty->next = s; | |
211 | s->prev = ty; | |
212 | return s; | |
213 | } | |
214 | s = s->next; | |
215 | } while (s && (s != ty->next)); | |
216 | return 0; | |
217 | } | |
218 | ||
219 | /* | |
220 | Cast a pointer up an inheritance hierarchy | |
221 | */ | |
222 | SWIGRUNTIMEINLINE void * | |
223 | SWIG_TypeCast(swig_type_info *ty, void *ptr) { | |
224 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); | |
225 | } | |
226 | ||
227 | /* | |
228 | Dynamic pointer casting. Down an inheritance hierarchy | |
229 | */ | |
230 | SWIGRUNTIME swig_type_info * | |
231 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
232 | swig_type_info *lastty = ty; | |
233 | if (!ty || !ty->dcast) return ty; | |
234 | while (ty && (ty->dcast)) { | |
235 | ty = (*ty->dcast)(ptr); | |
236 | if (ty) lastty = ty; | |
237 | } | |
238 | return lastty; | |
239 | } | |
240 | ||
241 | /* | |
242 | Return the name associated with this type | |
243 | */ | |
244 | SWIGRUNTIMEINLINE const char * | |
245 | SWIG_TypeName(const swig_type_info *ty) { | |
246 | return ty->name; | |
247 | } | |
248 | ||
249 | /* | |
250 | Return the pretty name associated with this type, | |
251 | that is an unmangled type name in a form presentable to the user. | |
252 | */ | |
253 | SWIGRUNTIME const char * | |
254 | SWIG_TypePrettyName(const swig_type_info *type) { | |
255 | /* The "str" field contains the equivalent pretty names of the | |
256 | type, separated by vertical-bar characters. We choose | |
257 | to print the last name, as it is often (?) the most | |
258 | specific. */ | |
259 | if (type->str != NULL) { | |
260 | const char *last_name = type->str; | |
261 | const char *s; | |
262 | for (s = type->str; *s; s++) | |
263 | if (*s == '|') last_name = s+1; | |
264 | return last_name; | |
265 | } | |
266 | else | |
267 | return type->name; | |
268 | } | |
269 | ||
270 | /* | |
271 | Search for a swig_type_info structure | |
272 | */ | |
273 | SWIGRUNTIME swig_type_info * | |
274 | SWIG_TypeQueryTL(swig_type_info *tl, const char *name) { | |
275 | swig_type_info *ty = tl; | |
276 | while (ty) { | |
277 | if (ty->str && (SWIG_TypeEquiv(ty->str,name))) return ty; | |
278 | if (ty->name && (strcmp(name,ty->name) == 0)) return ty; | |
279 | ty = ty->prev; | |
280 | } | |
281 | return 0; | |
282 | } | |
283 | ||
284 | /* | |
285 | Set the clientdata field for a type | |
286 | */ | |
287 | SWIGRUNTIME void | |
288 | SWIG_TypeClientDataTL(swig_type_info *tl, swig_type_info *ti, void *clientdata) { | |
289 | swig_type_info *tc, *equiv; | |
290 | if (ti->clientdata) return; | |
291 | /* if (ti->clientdata == clientdata) return; */ | |
292 | ti->clientdata = clientdata; | |
293 | equiv = ti->next; | |
294 | while (equiv) { | |
295 | if (!equiv->converter) { | |
296 | tc = tl; | |
297 | while (tc) { | |
298 | if ((strcmp(tc->name, equiv->name) == 0)) | |
299 | SWIG_TypeClientDataTL(tl,tc,clientdata); | |
300 | tc = tc->prev; | |
301 | } | |
302 | } | |
303 | equiv = equiv->next; | |
304 | } | |
305 | } | |
306 | ||
307 | /* | |
308 | Pack binary data into a string | |
309 | */ | |
310 | SWIGRUNTIME char * | |
311 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
312 | static char hex[17] = "0123456789abcdef"; | |
313 | unsigned char *u = (unsigned char *) ptr; | |
314 | const unsigned char *eu = u + sz; | |
315 | register unsigned char uu; | |
316 | for (; u != eu; ++u) { | |
317 | uu = *u; | |
318 | *(c++) = hex[(uu & 0xf0) >> 4]; | |
319 | *(c++) = hex[uu & 0xf]; | |
320 | } | |
321 | return c; | |
322 | } | |
323 | ||
324 | /* | |
325 | Unpack binary data from a string | |
326 | */ | |
327 | SWIGRUNTIME const char * | |
328 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
329 | register unsigned char *u = (unsigned char *) ptr; | |
330 | register const unsigned char *eu = u + sz; | |
331 | for (; u != eu; ++u) { | |
332 | register int d = *(c++); | |
333 | register unsigned char uu = 0; | |
334 | if ((d >= '0') && (d <= '9')) | |
335 | uu = ((d - '0') << 4); | |
336 | else if ((d >= 'a') && (d <= 'f')) | |
337 | uu = ((d - ('a'-10)) << 4); | |
338 | else | |
339 | return (char *) 0; | |
340 | d = *(c++); | |
341 | if ((d >= '0') && (d <= '9')) | |
342 | uu |= (d - '0'); | |
343 | else if ((d >= 'a') && (d <= 'f')) | |
344 | uu |= (d - ('a'-10)); | |
345 | else | |
346 | return (char *) 0; | |
347 | *u = uu; | |
348 | } | |
349 | return c; | |
350 | } | |
351 | ||
352 | /* | |
353 | This function will propagate the clientdata field of type to any new | |
354 | swig_type_info structures that have been added into the list of | |
355 | equivalent types. It is like calling SWIG_TypeClientData(type, | |
356 | clientdata) a second time. | |
357 | */ | |
358 | SWIGRUNTIME void | |
359 | SWIG_PropagateClientDataTL(swig_type_info *tl, swig_type_info *type) { | |
360 | swig_type_info *equiv = type->next; | |
361 | swig_type_info *tc; | |
362 | if (!type->clientdata) return; | |
363 | while (equiv) { | |
364 | if (!equiv->converter) { | |
365 | tc = tl; | |
366 | while (tc) { | |
367 | if ((strcmp(tc->name, equiv->name) == 0) && !tc->clientdata) | |
368 | SWIG_TypeClientDataTL(tl,tc, type->clientdata); | |
369 | tc = tc->prev; | |
370 | } | |
371 | } | |
372 | equiv = equiv->next; | |
373 | } | |
374 | } | |
d55e5bfc | 375 | |
36ed4f51 RD |
376 | /* |
377 | Pack 'void *' into a string buffer. | |
378 | */ | |
379 | SWIGRUNTIME char * | |
380 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
381 | char *r = buff; | |
382 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
383 | *(r++) = '_'; | |
384 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
385 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
386 | strcpy(r,name); | |
387 | return buff; | |
388 | } | |
389 | ||
390 | SWIGRUNTIME const char * | |
391 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
392 | if (*c != '_') { | |
393 | if (strcmp(c,"NULL") == 0) { | |
394 | *ptr = (void *) 0; | |
395 | return name; | |
396 | } else { | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
401 | } | |
402 | ||
403 | SWIGRUNTIME char * | |
404 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
405 | char *r = buff; | |
406 | size_t lname = (name ? strlen(name) : 0); | |
407 | if ((2*sz + 2 + lname) > bsz) return 0; | |
408 | *(r++) = '_'; | |
409 | r = SWIG_PackData(r,ptr,sz); | |
410 | if (lname) { | |
411 | strncpy(r,name,lname+1); | |
412 | } else { | |
413 | *r = 0; | |
414 | } | |
415 | return buff; | |
416 | } | |
d55e5bfc | 417 | |
36ed4f51 RD |
418 | SWIGRUNTIME const char * |
419 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
420 | if (*c != '_') { | |
421 | if (strcmp(c,"NULL") == 0) { | |
422 | memset(ptr,0,sz); | |
423 | return name; | |
424 | } else { | |
425 | return 0; | |
426 | } | |
427 | } | |
428 | return SWIG_UnpackData(++c,ptr,sz); | |
429 | } | |
d55e5bfc RD |
430 | |
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
36ed4f51 RD |
436 | * common.swg |
437 | * | |
438 | * This file contains generic SWIG runtime support for pointer | |
439 | * type checking as well as a few commonly used macros to control | |
440 | * external linkage. | |
d55e5bfc | 441 | * |
36ed4f51 | 442 | * Author : David Beazley (beazley@cs.uchicago.edu) |
d55e5bfc | 443 | * |
36ed4f51 RD |
444 | * Copyright (c) 1999-2000, The University of Chicago |
445 | * | |
446 | * This file may be freely redistributed without license or fee provided | |
447 | * this copyright message remains intact. | |
d55e5bfc RD |
448 | ************************************************************************/ |
449 | ||
36ed4f51 RD |
450 | |
451 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
452 | # if !defined(STATIC_LINKED) | |
453 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
454 | # else | |
455 | # define SWIGEXPORT(a) a | |
456 | # endif | |
457 | #else | |
458 | # define SWIGEXPORT(a) a | |
459 | #endif | |
460 | ||
d55e5bfc RD |
461 | #ifdef __cplusplus |
462 | extern "C" { | |
463 | #endif | |
464 | ||
d55e5bfc | 465 | |
36ed4f51 | 466 | /*************************************************************************/ |
d55e5bfc | 467 | |
d55e5bfc | 468 | |
36ed4f51 | 469 | /* The static type info list */ |
d55e5bfc | 470 | |
36ed4f51 RD |
471 | static swig_type_info *swig_type_list = 0; |
472 | static swig_type_info **swig_type_list_handle = &swig_type_list; | |
473 | ||
d55e5bfc | 474 | |
36ed4f51 RD |
475 | /* Register a type mapping with the type-checking */ |
476 | static swig_type_info * | |
477 | SWIG_TypeRegister(swig_type_info *ti) { | |
478 | return SWIG_TypeRegisterTL(swig_type_list_handle, ti); | |
479 | } | |
d55e5bfc | 480 | |
36ed4f51 RD |
481 | /* Search for a swig_type_info structure */ |
482 | static swig_type_info * | |
483 | SWIG_TypeQuery(const char *name) { | |
484 | return SWIG_TypeQueryTL(*swig_type_list_handle, name); | |
485 | } | |
d55e5bfc | 486 | |
36ed4f51 RD |
487 | /* Set the clientdata field for a type */ |
488 | static void | |
489 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { | |
490 | SWIG_TypeClientDataTL(*swig_type_list_handle, ti, clientdata); | |
491 | } | |
d55e5bfc | 492 | |
36ed4f51 RD |
493 | /* This function will propagate the clientdata field of type to |
494 | * any new swig_type_info structures that have been added into the list | |
495 | * of equivalent types. It is like calling | |
496 | * SWIG_TypeClientData(type, clientdata) a second time. | |
497 | */ | |
498 | static void | |
499 | SWIG_PropagateClientData(swig_type_info *type) { | |
500 | SWIG_PropagateClientDataTL(*swig_type_list_handle, type); | |
501 | } | |
d55e5bfc RD |
502 | |
503 | #ifdef __cplusplus | |
504 | } | |
505 | #endif | |
506 | ||
36ed4f51 RD |
507 | /* ----------------------------------------------------------------------------- |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 510 | |
36ed4f51 RD |
511 | #ifdef __cplusplus |
512 | extern "C" { | |
513 | #endif | |
c370783e | 514 | |
36ed4f51 RD |
515 | /* ----------------------------------------------------------------------------- |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 518 | |
36ed4f51 RD |
519 | #ifndef SWIGINTERN |
520 | #define SWIGINTERN static | |
521 | #endif | |
d55e5bfc | 522 | |
36ed4f51 RD |
523 | #ifndef SWIGINTERNSHORT |
524 | #ifdef __cplusplus | |
525 | #define SWIGINTERNSHORT static inline | |
526 | #else /* C case */ | |
527 | #define SWIGINTERNSHORT static | |
528 | #endif /* __cplusplus */ | |
529 | #endif | |
d55e5bfc RD |
530 | |
531 | ||
36ed4f51 RD |
532 | /* |
533 | Exception handling in wrappers | |
534 | */ | |
535 | #define SWIG_fail goto fail | |
536 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
537 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
538 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
539 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
540 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
541 | ||
542 | /* | |
543 | Contract support | |
544 | */ | |
545 | #define SWIG_contract_assert(expr, msg) \ | |
546 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
547 | ||
548 | /* ----------------------------------------------------------------------------- | |
549 | * Constant declarations | |
550 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 551 | |
36ed4f51 RD |
552 | /* Constant Types */ |
553 | #define SWIG_PY_INT 1 | |
554 | #define SWIG_PY_FLOAT 2 | |
555 | #define SWIG_PY_STRING 3 | |
556 | #define SWIG_PY_POINTER 4 | |
557 | #define SWIG_PY_BINARY 5 | |
558 | ||
559 | /* Constant information structure */ | |
560 | typedef struct swig_const_info { | |
561 | int type; | |
562 | char *name; | |
563 | long lvalue; | |
564 | double dvalue; | |
565 | void *pvalue; | |
566 | swig_type_info **ptype; | |
567 | } swig_const_info; | |
d55e5bfc | 568 | |
c370783e | 569 | |
36ed4f51 RD |
570 | /* ----------------------------------------------------------------------------- |
571 | * Alloc. memory flags | |
572 | * ----------------------------------------------------------------------------- */ | |
c370783e RD |
573 | #define SWIG_OLDOBJ 1 |
574 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
575 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
576 | |
577 | #ifdef __cplusplus | |
36ed4f51 RD |
578 | } |
579 | #endif | |
d55e5bfc | 580 | |
d55e5bfc | 581 | |
36ed4f51 RD |
582 | /*********************************************************************** |
583 | * pyrun.swg | |
584 | * | |
585 | * This file contains the runtime support for Python modules | |
586 | * and includes code for managing global variables and pointer | |
587 | * type checking. | |
588 | * | |
589 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
590 | ************************************************************************/ | |
d55e5bfc | 591 | |
36ed4f51 RD |
592 | /* Common SWIG API */ |
593 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
594 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
595 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
596 | ||
d55e5bfc | 597 | |
36ed4f51 RD |
598 | /* Python-specific SWIG API */ |
599 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
600 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
d55e5bfc | 601 | |
d55e5bfc | 602 | |
36ed4f51 RD |
603 | /* ----------------------------------------------------------------------------- |
604 | * Pointer declarations | |
605 | * ----------------------------------------------------------------------------- */ | |
606 | /* | |
607 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
608 | C/C++ pointers in the python side. Very useful for debugging, but | |
609 | not always safe. | |
610 | */ | |
611 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
612 | # define SWIG_COBJECT_TYPES | |
613 | #endif | |
d55e5bfc | 614 | |
36ed4f51 RD |
615 | /* Flags for pointer conversion */ |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
d55e5bfc | 618 | |
d55e5bfc | 619 | |
36ed4f51 RD |
620 | #ifdef __cplusplus |
621 | extern "C" { | |
622 | #endif | |
d55e5bfc | 623 | |
36ed4f51 RD |
624 | /* ----------------------------------------------------------------------------- |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 627 | |
36ed4f51 RD |
628 | #ifndef SWIG_BUFFER_SIZE |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
d55e5bfc | 631 | |
36ed4f51 RD |
632 | #if defined(SWIG_COBJECT_TYPES) |
633 | #if !defined(SWIG_COBJECT_PYTHON) | |
634 | /* ----------------------------------------------------------------------------- | |
635 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
636 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 637 | |
36ed4f51 RD |
638 | typedef struct { |
639 | PyObject_HEAD | |
640 | void *ptr; | |
641 | const char *desc; | |
642 | } PySwigObject; | |
643 | ||
644 | /* Declarations for objects of type PySwigObject */ | |
645 | ||
646 | SWIGRUNTIME int | |
647 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
d55e5bfc | 648 | { |
36ed4f51 RD |
649 | char result[SWIG_BUFFER_SIZE]; |
650 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { | |
651 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
652 | return 0; | |
653 | } else { | |
654 | return 1; | |
d55e5bfc | 655 | } |
36ed4f51 RD |
656 | } |
657 | ||
658 | SWIGRUNTIME PyObject * | |
659 | PySwigObject_repr(PySwigObject *v) | |
660 | { | |
661 | char result[SWIG_BUFFER_SIZE]; | |
662 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
663 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
d55e5bfc RD |
664 | } |
665 | ||
36ed4f51 RD |
666 | SWIGRUNTIME PyObject * |
667 | PySwigObject_str(PySwigObject *v) | |
668 | { | |
669 | char result[SWIG_BUFFER_SIZE]; | |
670 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
671 | PyString_FromString(result) : 0; | |
672 | } | |
d55e5bfc | 673 | |
36ed4f51 RD |
674 | SWIGRUNTIME PyObject * |
675 | PySwigObject_long(PySwigObject *v) | |
d55e5bfc | 676 | { |
36ed4f51 RD |
677 | return PyLong_FromUnsignedLong((unsigned long) v->ptr); |
678 | } | |
679 | ||
680 | SWIGRUNTIME PyObject * | |
681 | PySwigObject_oct(PySwigObject *v) | |
682 | { | |
683 | char buf[100]; | |
684 | unsigned long x = (unsigned long)v->ptr; | |
685 | if (x == 0) | |
686 | strcpy(buf, "0"); | |
687 | else | |
688 | PyOS_snprintf(buf, sizeof(buf), "0%lo", x); | |
689 | return PyString_FromString(buf); | |
d55e5bfc RD |
690 | } |
691 | ||
36ed4f51 RD |
692 | SWIGRUNTIME PyObject * |
693 | PySwigObject_hex(PySwigObject *v) | |
694 | { | |
695 | char buf[100]; | |
696 | PyOS_snprintf(buf, sizeof(buf), "0x%lx", (unsigned long)v->ptr); | |
697 | return PyString_FromString(buf); | |
698 | } | |
d55e5bfc | 699 | |
36ed4f51 RD |
700 | SWIGRUNTIME int |
701 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
702 | { | |
703 | int c = strcmp(v->desc, w->desc); | |
704 | if (c) { | |
705 | return c; | |
c370783e | 706 | } else { |
36ed4f51 RD |
707 | void *i = v->ptr; |
708 | void *j = w->ptr; | |
709 | return (i < j) ? -1 : (i > j) ? 1 : 0; | |
c370783e | 710 | } |
d55e5bfc | 711 | } |
36ed4f51 RD |
712 | |
713 | SWIGRUNTIME void | |
714 | PySwigObject_dealloc(PySwigObject *self) | |
c370783e | 715 | { |
36ed4f51 | 716 | PyObject_DEL(self); |
c370783e | 717 | } |
36ed4f51 RD |
718 | |
719 | SWIGRUNTIME PyTypeObject* | |
720 | PySwigObject_GetType() { | |
721 | static char PySwigObject_Type__doc__[] = | |
722 | "Swig object carries a C/C++ instance pointer"; | |
723 | ||
724 | static PyNumberMethods PySwigObject_as_number = { | |
725 | (binaryfunc)0, /*nb_add*/ | |
726 | (binaryfunc)0, /*nb_subtract*/ | |
727 | (binaryfunc)0, /*nb_multiply*/ | |
728 | (binaryfunc)0, /*nb_divide*/ | |
729 | (binaryfunc)0, /*nb_remainder*/ | |
730 | (binaryfunc)0, /*nb_divmod*/ | |
731 | (ternaryfunc)0,/*nb_power*/ | |
732 | (unaryfunc)0, /*nb_negative*/ | |
733 | (unaryfunc)0, /*nb_positive*/ | |
734 | (unaryfunc)0, /*nb_absolute*/ | |
735 | (inquiry)0, /*nb_nonzero*/ | |
736 | 0, /*nb_invert*/ | |
737 | 0, /*nb_lshift*/ | |
738 | 0, /*nb_rshift*/ | |
739 | 0, /*nb_and*/ | |
740 | 0, /*nb_xor*/ | |
741 | 0, /*nb_or*/ | |
742 | (coercion)0, /*nb_coerce*/ | |
743 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
744 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
745 | (unaryfunc)0, /*nb_float*/ | |
746 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
747 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
748 | #if PY_VERSION_HEX >= 0x02000000 | |
749 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
750 | #endif | |
751 | }; | |
752 | ||
753 | static int type_init = 0; | |
754 | static PyTypeObject PySwigObject_Type; | |
755 | ||
756 | if (!type_init) { | |
757 | PyTypeObject tmp = { | |
758 | PyObject_HEAD_INIT(&PyType_Type) | |
759 | 0, /*ob_size*/ | |
760 | "PySwigObject", /*tp_name*/ | |
761 | sizeof(PySwigObject), /*tp_basicsize*/ | |
762 | 0, /*tp_itemsize*/ | |
763 | /* methods */ | |
764 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
765 | (printfunc)PySwigObject_print, /*tp_print*/ | |
766 | (getattrfunc)0, /*tp_getattr*/ | |
767 | (setattrfunc)0, /*tp_setattr*/ | |
768 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
769 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
770 | &PySwigObject_as_number, /*tp_as_number*/ | |
771 | 0, /*tp_as_sequence*/ | |
772 | 0, /*tp_as_mapping*/ | |
773 | (hashfunc)0, /*tp_hash*/ | |
774 | (ternaryfunc)0, /*tp_call*/ | |
775 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
776 | /* Space for future expansion */ | |
777 | 0L,0L,0L,0L, | |
778 | PySwigObject_Type__doc__, /* Documentation string */ | |
779 | #if PY_VERSION_HEX >= 0x02000000 | |
780 | 0, /* tp_traverse */ | |
781 | 0, /* tp_clear */ | |
782 | #endif | |
783 | #if PY_VERSION_HEX >= 0x02010000 | |
784 | 0, /* tp_richcompare */ | |
785 | 0, /* tp_weaklistoffset */ | |
786 | #endif | |
787 | #if PY_VERSION_HEX >= 0x02020000 | |
788 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
d55e5bfc | 789 | #endif |
36ed4f51 RD |
790 | #if PY_VERSION_HEX >= 0x02030000 |
791 | 0, /* tp_del */ | |
792 | #endif | |
793 | #ifdef COUNT_ALLOCS | |
794 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
795 | #endif | |
796 | }; | |
d55e5bfc | 797 | |
36ed4f51 RD |
798 | PySwigObject_Type = tmp; |
799 | type_init = 1; | |
800 | } | |
d55e5bfc | 801 | |
36ed4f51 RD |
802 | return &PySwigObject_Type; |
803 | } | |
804 | ||
805 | SWIGRUNTIME PyObject * | |
806 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
807 | { | |
808 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType()); | |
809 | if (self == NULL) return NULL; | |
810 | self->ptr = ptr; | |
811 | self->desc = desc; | |
812 | return (PyObject *)self; | |
813 | } | |
814 | ||
815 | SWIGRUNTIMEINLINE void * | |
816 | PySwigObject_AsVoidPtr(PyObject *self) | |
817 | { | |
818 | return ((PySwigObject *)self)->ptr; | |
819 | } | |
820 | ||
821 | SWIGRUNTIMEINLINE const char * | |
822 | PySwigObject_GetDesc(PyObject *self) | |
823 | { | |
824 | return ((PySwigObject *)self)->desc; | |
825 | } | |
826 | ||
827 | SWIGRUNTIMEINLINE int | |
828 | PySwigObject_Check(PyObject *op) { | |
829 | return ((op)->ob_type == PySwigObject_GetType()) | |
830 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
831 | } | |
832 | ||
833 | /* ----------------------------------------------------------------------------- | |
834 | * Implements a simple Swig Packed type, and use it instead of string | |
835 | * ----------------------------------------------------------------------------- */ | |
836 | ||
837 | typedef struct { | |
838 | PyObject_HEAD | |
839 | void *pack; | |
840 | const char *desc; | |
841 | size_t size; | |
842 | } PySwigPacked; | |
843 | ||
844 | SWIGRUNTIME int | |
845 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
846 | { | |
847 | char result[SWIG_BUFFER_SIZE]; | |
848 | fputs("<Swig Packed ", fp); | |
849 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
850 | fputs("at ", fp); | |
851 | fputs(result, fp); | |
852 | } | |
853 | fputs(v->desc,fp); | |
854 | fputs(">", fp); | |
855 | return 0; | |
856 | } | |
857 | ||
858 | SWIGRUNTIME PyObject * | |
859 | PySwigPacked_repr(PySwigPacked *v) | |
860 | { | |
861 | char result[SWIG_BUFFER_SIZE]; | |
862 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
863 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
864 | } else { | |
865 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
866 | } | |
867 | } | |
868 | ||
869 | SWIGRUNTIME PyObject * | |
870 | PySwigPacked_str(PySwigPacked *v) | |
871 | { | |
872 | char result[SWIG_BUFFER_SIZE]; | |
873 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
874 | return PyString_FromFormat("%s%s", result, v->desc); | |
875 | } else { | |
876 | return PyString_FromFormat("%s", v->desc); | |
877 | } | |
878 | } | |
879 | ||
880 | SWIGRUNTIME int | |
881 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
882 | { | |
883 | int c = strcmp(v->desc, w->desc); | |
884 | if (c) { | |
885 | return c; | |
886 | } else { | |
887 | size_t i = v->size; | |
888 | size_t j = w->size; | |
889 | int s = (i < j) ? -1 : (i > j) ? 1 : 0; | |
890 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
891 | } | |
892 | } | |
893 | ||
894 | SWIGRUNTIME void | |
895 | PySwigPacked_dealloc(PySwigPacked *self) | |
896 | { | |
897 | free(self->pack); | |
898 | PyObject_DEL(self); | |
899 | } | |
900 | ||
901 | SWIGRUNTIME PyTypeObject* | |
902 | PySwigPacked_GetType() { | |
903 | static char PySwigPacked_Type__doc__[] = | |
904 | "Swig object carries a C/C++ instance pointer"; | |
905 | static int type_init = 0; | |
906 | ||
907 | static PyTypeObject PySwigPacked_Type; | |
908 | if (!type_init) { | |
909 | PyTypeObject tmp = { | |
910 | PyObject_HEAD_INIT(&PyType_Type) | |
911 | 0, /*ob_size*/ | |
912 | "PySwigPacked", /*tp_name*/ | |
913 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
914 | 0, /*tp_itemsize*/ | |
915 | /* methods */ | |
916 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
917 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
918 | (getattrfunc)0, /*tp_getattr*/ | |
919 | (setattrfunc)0, /*tp_setattr*/ | |
920 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
921 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
922 | 0, /*tp_as_number*/ | |
923 | 0, /*tp_as_sequence*/ | |
924 | 0, /*tp_as_mapping*/ | |
925 | (hashfunc)0, /*tp_hash*/ | |
926 | (ternaryfunc)0, /*tp_call*/ | |
927 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
928 | /* Space for future expansion */ | |
929 | 0L,0L,0L,0L, | |
930 | PySwigPacked_Type__doc__, /* Documentation string */ | |
931 | #if PY_VERSION_HEX >= 0x02000000 | |
932 | 0, /* tp_traverse */ | |
933 | 0, /* tp_clear */ | |
934 | #endif | |
935 | #if PY_VERSION_HEX >= 0x02010000 | |
936 | 0, /* tp_richcompare */ | |
937 | 0, /* tp_weaklistoffset */ | |
938 | #endif | |
939 | #if PY_VERSION_HEX >= 0x02020000 | |
940 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
941 | #endif | |
942 | #if PY_VERSION_HEX >= 0x02030000 | |
943 | 0, /* tp_del */ | |
944 | #endif | |
945 | #ifdef COUNT_ALLOCS | |
946 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
947 | #endif | |
948 | }; | |
949 | ||
950 | PySwigPacked_Type = tmp; | |
951 | type_init = 1; | |
952 | } | |
953 | ||
954 | ||
955 | ||
956 | return &PySwigPacked_Type; | |
957 | } | |
958 | ||
959 | SWIGRUNTIME PyObject * | |
960 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
961 | { | |
962 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType()); | |
963 | if (self == NULL) { | |
964 | return NULL; | |
965 | } else { | |
966 | void *pack = malloc(size); | |
967 | memcpy(pack, ptr, size); | |
968 | self->pack = pack; | |
969 | self->desc = desc; | |
970 | self->size = size; | |
971 | return (PyObject *) self; | |
972 | } | |
973 | } | |
974 | ||
975 | SWIGRUNTIMEINLINE const char * | |
976 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
977 | { | |
978 | PySwigPacked *self = (PySwigPacked *)obj; | |
979 | if (self->size != size) return 0; | |
980 | memcpy(ptr, self->pack, size); | |
981 | return self->desc; | |
982 | } | |
983 | ||
984 | SWIGRUNTIMEINLINE const char * | |
985 | PySwigPacked_GetDesc(PyObject *self) | |
986 | { | |
987 | return ((PySwigPacked *)self)->desc; | |
988 | } | |
989 | ||
990 | SWIGRUNTIMEINLINE int | |
991 | PySwigPacked_Check(PyObject *op) { | |
992 | return ((op)->ob_type == PySwigPacked_GetType()) | |
993 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
994 | } | |
995 | ||
996 | #else | |
997 | /* ----------------------------------------------------------------------------- | |
998 | * Use the old Python PyCObject instead of PySwigObject | |
999 | * ----------------------------------------------------------------------------- */ | |
1000 | ||
1001 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1002 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1003 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1004 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1005 | ||
1006 | #endif | |
1007 | ||
1008 | #endif | |
1009 | ||
1010 | /* ----------------------------------------------------------------------------- | |
1011 | * errors manipulation | |
1012 | * ----------------------------------------------------------------------------- */ | |
1013 | ||
1014 | SWIGRUNTIME void | |
1015 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1016 | { | |
1017 | if (type) { | |
1018 | #if defined(SWIG_COBJECT_TYPES) | |
1019 | if (PySwigObject_Check(obj)) { | |
1020 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
1021 | if (otype) { | |
1022 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1023 | type, otype); | |
1024 | return; | |
1025 | } | |
1026 | } else | |
1027 | #endif | |
1028 | { | |
1029 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1030 | if (otype) { | |
1031 | PyObject *str = PyObject_Str(obj); | |
1032 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1033 | if (cstr) { | |
1034 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1035 | type, otype, cstr); | |
1036 | } else { | |
1037 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1038 | type, otype); | |
1039 | } | |
66af7a75 RD |
1040 | if (str) |
1041 | Py_DECREF(str); | |
36ed4f51 RD |
1042 | return; |
1043 | } | |
1044 | } | |
1045 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1046 | } else { | |
1047 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1048 | } | |
1049 | } | |
1050 | ||
1051 | SWIGRUNTIMEINLINE void | |
1052 | SWIG_Python_NullRef(const char *type) | |
1053 | { | |
1054 | if (type) { | |
1055 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1056 | } else { | |
1057 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1058 | } | |
1059 | } | |
1060 | ||
1061 | SWIGRUNTIME int | |
1062 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1063 | { | |
1064 | if (PyErr_Occurred()) { | |
1065 | PyObject *type = 0; | |
1066 | PyObject *value = 0; | |
1067 | PyObject *traceback = 0; | |
1068 | PyErr_Fetch(&type, &value, &traceback); | |
1069 | if (value) { | |
1070 | PyObject *old_str = PyObject_Str(value); | |
1071 | Py_XINCREF(type); | |
1072 | PyErr_Clear(); | |
1073 | if (infront) { | |
1074 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1075 | } else { | |
1076 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1077 | } | |
1078 | Py_DECREF(old_str); | |
1079 | } | |
1080 | return 1; | |
1081 | } else { | |
1082 | return 0; | |
1083 | } | |
1084 | } | |
1085 | ||
1086 | SWIGRUNTIME int | |
1087 | SWIG_Python_ArgFail(int argnum) | |
1088 | { | |
1089 | if (PyErr_Occurred()) { | |
1090 | /* add information about failing argument */ | |
1091 | char mesg[256]; | |
1092 | sprintf(mesg, "argument number %d:", argnum); | |
1093 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1094 | } else { | |
1095 | return 0; | |
1096 | } | |
1097 | } | |
1098 | ||
1099 | ||
1100 | /* ----------------------------------------------------------------------------- | |
1101 | * pointers/data manipulation | |
1102 | * ----------------------------------------------------------------------------- */ | |
1103 | ||
1104 | /* Convert a pointer value */ | |
1105 | SWIGRUNTIME int | |
1106 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1107 | swig_type_info *tc; | |
1108 | const char *c = 0; | |
1109 | static PyObject *SWIG_this = 0; | |
1110 | int newref = 0; | |
1111 | PyObject *pyobj = 0; | |
1112 | void *vptr; | |
1113 | ||
1114 | if (!obj) return 0; | |
1115 | if (obj == Py_None) { | |
1116 | *ptr = 0; | |
1117 | return 0; | |
1118 | } | |
1119 | ||
1120 | #ifdef SWIG_COBJECT_TYPES | |
1121 | if (!(PySwigObject_Check(obj))) { | |
1122 | if (!SWIG_this) | |
1123 | SWIG_this = PyString_FromString("this"); | |
1124 | pyobj = obj; | |
1125 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1126 | newref = 1; | |
1127 | if (!obj) goto type_error; | |
1128 | if (!PySwigObject_Check(obj)) { | |
1129 | Py_DECREF(obj); | |
1130 | goto type_error; | |
1131 | } | |
1132 | } | |
1133 | vptr = PySwigObject_AsVoidPtr(obj); | |
1134 | c = (const char *) PySwigObject_GetDesc(obj); | |
1135 | if (newref) { Py_DECREF(obj); } | |
1136 | goto type_check; | |
1137 | #else | |
1138 | if (!(PyString_Check(obj))) { | |
1139 | if (!SWIG_this) | |
1140 | SWIG_this = PyString_FromString("this"); | |
1141 | pyobj = obj; | |
1142 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1143 | newref = 1; | |
1144 | if (!obj) goto type_error; | |
1145 | if (!PyString_Check(obj)) { | |
1146 | Py_DECREF(obj); | |
1147 | goto type_error; | |
1148 | } | |
1149 | } | |
1150 | c = PyString_AS_STRING(obj); | |
1151 | /* Pointer values must start with leading underscore */ | |
1152 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1153 | if (newref) { Py_DECREF(obj); } | |
1154 | if (!c) goto type_error; | |
1155 | #endif | |
1156 | ||
1157 | type_check: | |
1158 | ||
1159 | if (ty) { | |
1160 | tc = SWIG_TypeCheck(c,ty); | |
1161 | if (!tc) goto type_error; | |
1162 | *ptr = SWIG_TypeCast(tc,vptr); | |
1163 | } else { | |
1164 | *ptr = vptr; | |
1165 | } | |
1166 | ||
1167 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1168 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1169 | } | |
1170 | return 0; | |
1171 | ||
1172 | type_error: | |
1173 | PyErr_Clear(); | |
1174 | if (pyobj && !obj) { | |
1175 | obj = pyobj; | |
1176 | if (PyCFunction_Check(obj)) { | |
1177 | /* here we get the method pointer for callbacks */ | |
1178 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1179 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1180 | if (c) { | |
1181 | c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name); | |
1182 | if (!c) goto type_error; | |
1183 | goto type_check; | |
1184 | } | |
1185 | } | |
1186 | } | |
1187 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1188 | if (ty) { | |
1189 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1190 | } else { | |
1191 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1192 | } | |
1193 | } | |
1194 | return -1; | |
1195 | } | |
1196 | ||
1197 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1198 | SWIGRUNTIME void * | |
1199 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1200 | void *result; | |
1201 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1202 | PyErr_Clear(); | |
1203 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1204 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1205 | SWIG_Python_ArgFail(argnum); | |
1206 | } | |
1207 | } | |
1208 | return result; | |
1209 | } | |
1210 | ||
1211 | /* Convert a packed value value */ | |
1212 | SWIGRUNTIME int | |
1213 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1214 | swig_type_info *tc; | |
1215 | const char *c = 0; | |
1216 | ||
1217 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1218 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1219 | #else | |
1220 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1221 | c = PyString_AS_STRING(obj); | |
1222 | /* Pointer values must start with leading underscore */ | |
1223 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1224 | #endif | |
1225 | if (!c) goto type_error; | |
1226 | if (ty) { | |
1227 | tc = SWIG_TypeCheck(c,ty); | |
1228 | if (!tc) goto type_error; | |
1229 | } | |
1230 | return 0; | |
1231 | ||
1232 | type_error: | |
1233 | PyErr_Clear(); | |
1234 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1235 | if (ty) { | |
1236 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1237 | } else { | |
1238 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1239 | } | |
1240 | } | |
1241 | return -1; | |
1242 | } | |
1243 | ||
1244 | /* Create a new array object */ | |
1245 | SWIGRUNTIME PyObject * | |
1246 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1247 | PyObject *robj = 0; | |
1248 | if (!ptr) { | |
1249 | Py_INCREF(Py_None); | |
1250 | return Py_None; | |
1251 | } | |
1252 | #ifdef SWIG_COBJECT_TYPES | |
1253 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1254 | #else | |
1255 | { | |
1256 | char result[SWIG_BUFFER_SIZE]; | |
1257 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1258 | PyString_FromString(result) : 0; | |
1259 | } | |
1260 | #endif | |
1261 | if (!robj || (robj == Py_None)) return robj; | |
1262 | if (type->clientdata) { | |
1263 | PyObject *inst; | |
1264 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1265 | Py_DECREF(robj); | |
1266 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1267 | Py_DECREF(args); | |
1268 | if (inst) { | |
1269 | if (own) { | |
1270 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1271 | } | |
1272 | robj = inst; | |
1273 | } | |
1274 | } | |
1275 | return robj; | |
1276 | } | |
1277 | ||
1278 | SWIGRUNTIME PyObject * | |
1279 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1280 | PyObject *robj = 0; | |
1281 | if (!ptr) { | |
1282 | Py_INCREF(Py_None); | |
1283 | return Py_None; | |
1284 | } | |
1285 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1286 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1287 | #else | |
1288 | { | |
1289 | char result[SWIG_BUFFER_SIZE]; | |
1290 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1291 | PyString_FromString(result) : 0; | |
1292 | } | |
1293 | #endif | |
1294 | return robj; | |
1295 | } | |
1296 | ||
1297 | /* -----------------------------------------------------------------------------* | |
1298 | * Get type list | |
1299 | * -----------------------------------------------------------------------------*/ | |
1300 | ||
1301 | #ifdef SWIG_LINK_RUNTIME | |
1302 | void *SWIG_ReturnGlobalTypeList(void *); | |
1303 | #endif | |
1304 | ||
1305 | SWIGRUNTIME swig_type_info ** | |
1306 | SWIG_Python_GetTypeListHandle() { | |
1307 | static void *type_pointer = (void *)0; | |
1308 | /* first check if module already created */ | |
1309 | if (!type_pointer) { | |
1310 | #ifdef SWIG_LINK_RUNTIME | |
1311 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1312 | #else | |
1313 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1314 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1315 | if (PyErr_Occurred()) { | |
1316 | PyErr_Clear(); | |
1317 | type_pointer = (void *)0; | |
1318 | } | |
1319 | } | |
1320 | #endif | |
1321 | return (swig_type_info **) type_pointer; | |
1322 | } | |
1323 | ||
1324 | /* | |
1325 | Search for a swig_type_info structure | |
1326 | */ | |
1327 | SWIGRUNTIMEINLINE swig_type_info * | |
1328 | SWIG_Python_GetTypeList() { | |
1329 | swig_type_info **tlh = SWIG_Python_GetTypeListHandle(); | |
1330 | return tlh ? *tlh : (swig_type_info*)0; | |
1331 | } | |
1332 | ||
1333 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList | |
1334 | ||
1335 | #ifdef __cplusplus | |
1336 | } | |
1337 | #endif | |
1338 | ||
1339 | ||
1340 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1341 | ||
1342 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
943e8dfd RD |
1343 | #define SWIGTYPE_p_wxCheckBox swig_types[1] |
1344 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[2] | |
1345 | #define SWIGTYPE_p_wxEvent swig_types[3] | |
1346 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[4] | |
1347 | #define SWIGTYPE_p_bool swig_types[5] | |
1348 | #define SWIGTYPE_p_wxItemContainer swig_types[6] | |
1349 | #define SWIGTYPE_p_wxPyListCtrl swig_types[7] | |
1350 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
1351 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[9] | |
1352 | #define SWIGTYPE_p_wxStaticLine swig_types[10] | |
1353 | #define SWIGTYPE_p_wxControl swig_types[11] | |
1354 | #define SWIGTYPE_p_wxPyControl swig_types[12] | |
1355 | #define SWIGTYPE_p_wxGauge swig_types[13] | |
1356 | #define SWIGTYPE_p_wxToolBarBase swig_types[14] | |
1357 | #define SWIGTYPE_p_wxFont swig_types[15] | |
1358 | #define SWIGTYPE_p_wxToggleButton swig_types[16] | |
1359 | #define SWIGTYPE_p_wxRadioButton swig_types[17] | |
1360 | #define SWIGTYPE_p_wxChoice swig_types[18] | |
1361 | #define SWIGTYPE_p_wxMemoryDC swig_types[19] | |
1362 | #define SWIGTYPE_ptrdiff_t swig_types[20] | |
1363 | #define SWIGTYPE_std__ptrdiff_t swig_types[21] | |
1364 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
1365 | #define SWIGTYPE_p_void swig_types[23] | |
1366 | #define SWIGTYPE_p_int swig_types[24] | |
1367 | #define SWIGTYPE_p_wxSize swig_types[25] | |
1368 | #define SWIGTYPE_p_wxDC swig_types[26] | |
1369 | #define SWIGTYPE_p_wxListView swig_types[27] | |
1370 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
1371 | #define SWIGTYPE_p_wxVisualAttributes swig_types[29] | |
1372 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
1373 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
1374 | #define SWIGTYPE_p_wxChoicebook swig_types[32] | |
1375 | #define SWIGTYPE_p_wxNotifyEvent swig_types[33] | |
1376 | #define SWIGTYPE_p_wxArrayString swig_types[34] | |
1377 | #define SWIGTYPE_p_form_ops_t swig_types[35] | |
1378 | #define SWIGTYPE_p_wxListbook swig_types[36] | |
1379 | #define SWIGTYPE_p_wxStaticBitmap swig_types[37] | |
1380 | #define SWIGTYPE_p_wxSlider swig_types[38] | |
1381 | #define SWIGTYPE_p_wxStaticBox swig_types[39] | |
1382 | #define SWIGTYPE_p_wxArrayInt swig_types[40] | |
1383 | #define SWIGTYPE_p_wxContextHelp swig_types[41] | |
1384 | #define SWIGTYPE_p_long swig_types[42] | |
1385 | #define SWIGTYPE_p_wxDuplexMode swig_types[43] | |
1386 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[44] | |
1387 | #define SWIGTYPE_p_wxEvtHandler swig_types[45] | |
1388 | #define SWIGTYPE_p_wxListEvent swig_types[46] | |
1389 | #define SWIGTYPE_p_wxCheckListBox swig_types[47] | |
1390 | #define SWIGTYPE_p_wxListBox swig_types[48] | |
1391 | #define SWIGTYPE_p_wxSpinButton swig_types[49] | |
1392 | #define SWIGTYPE_p_wxButton swig_types[50] | |
1393 | #define SWIGTYPE_p_wxBitmapButton swig_types[51] | |
1394 | #define SWIGTYPE_p_wxRect swig_types[52] | |
1395 | #define SWIGTYPE_p_wxContextHelpButton swig_types[53] | |
1396 | #define SWIGTYPE_p_wxRadioBox swig_types[54] | |
1397 | #define SWIGTYPE_p_wxScrollBar swig_types[55] | |
1398 | #define SWIGTYPE_p_char swig_types[56] | |
1399 | #define SWIGTYPE_p_wxComboBox swig_types[57] | |
1400 | #define SWIGTYPE_p_wxTreeItemId swig_types[58] | |
1401 | #define SWIGTYPE_p_wxHelpEvent swig_types[59] | |
1402 | #define SWIGTYPE_p_wxListItem swig_types[60] | |
1403 | #define SWIGTYPE_p_wxSpinEvent swig_types[61] | |
1404 | #define SWIGTYPE_p_wxGenericDragImage swig_types[62] | |
1405 | #define SWIGTYPE_p_wxSpinCtrl swig_types[63] | |
1406 | #define SWIGTYPE_p_wxPaperSize swig_types[64] | |
1407 | #define SWIGTYPE_p_wxImageList swig_types[65] | |
1408 | #define SWIGTYPE_p_wxHelpProvider swig_types[66] | |
1409 | #define SWIGTYPE_p_wxTextAttr swig_types[67] | |
1410 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[68] | |
1411 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[69] | |
1412 | #define SWIGTYPE_p_wxListbookEvent swig_types[70] | |
1413 | #define SWIGTYPE_p_wxNotebookEvent swig_types[71] | |
1414 | #define SWIGTYPE_p_wxPoint swig_types[72] | |
1415 | #define SWIGTYPE_p_wxObject swig_types[73] | |
1416 | #define SWIGTYPE_p_wxCursor swig_types[74] | |
1417 | #define SWIGTYPE_p_wxDateTime swig_types[75] | |
1418 | #define SWIGTYPE_p_wxKeyEvent swig_types[76] | |
1419 | #define SWIGTYPE_p_unsigned_long swig_types[77] | |
1420 | #define SWIGTYPE_p_wxWindow swig_types[78] | |
1421 | #define SWIGTYPE_p_wxString swig_types[79] | |
1422 | #define SWIGTYPE_p_wxBitmap swig_types[80] | |
1423 | #define SWIGTYPE_unsigned_int swig_types[81] | |
1424 | #define SWIGTYPE_p_unsigned_int swig_types[82] | |
1425 | #define SWIGTYPE_p_unsigned_char swig_types[83] | |
1426 | #define SWIGTYPE_p_wxMouseEvent swig_types[84] | |
1427 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[85] | |
1428 | #define SWIGTYPE_p_wxTreeEvent swig_types[86] | |
1429 | #define SWIGTYPE_p_wxCommandEvent swig_types[87] | |
1430 | #define SWIGTYPE_p_wxStaticText swig_types[88] | |
1431 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[89] | |
1432 | #define SWIGTYPE_p_wxControlWithItems swig_types[90] | |
1433 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[91] | |
1434 | #define SWIGTYPE_p_wxColour swig_types[92] | |
1435 | #define SWIGTYPE_p_wxToolBar swig_types[93] | |
1436 | #define SWIGTYPE_p_wxValidator swig_types[94] | |
1437 | static swig_type_info *swig_types[96]; | |
36ed4f51 RD |
1438 | |
1439 | /* -------- TYPES TABLE (END) -------- */ | |
1440 | ||
1441 | ||
1442 | /*----------------------------------------------- | |
1443 | @(target):= _controls_.so | |
1444 | ------------------------------------------------*/ | |
1445 | #define SWIG_init init_controls_ | |
1446 | ||
1447 | #define SWIG_name "_controls_" | |
1448 | ||
1449 | #include "wx/wxPython/wxPython.h" | |
1450 | #include "wx/wxPython/pyclasses.h" | |
1451 | ||
1452 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1453 | static const wxString wxPyEmptyString(wxEmptyString); | |
1454 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1455 | ||
1456 | const wxArrayString wxPyEmptyStringArray; | |
1457 | ||
1458 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
1459 | ||
1460 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1461 | #define SWIG_From_int PyInt_FromLong | |
1462 | /*@@*/ | |
1463 | ||
1464 | ||
1465 | #include <limits.h> | |
1466 | ||
1467 | ||
1468 | SWIGINTERN int | |
1469 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1470 | const char *errmsg) | |
1471 | { | |
1472 | if (value < min_value) { | |
1473 | if (errmsg) { | |
1474 | PyErr_Format(PyExc_OverflowError, | |
1475 | "value %ld is less than '%s' minimum %ld", | |
1476 | value, errmsg, min_value); | |
1477 | } | |
1478 | return 0; | |
1479 | } else if (value > max_value) { | |
1480 | if (errmsg) { | |
1481 | PyErr_Format(PyExc_OverflowError, | |
1482 | "value %ld is greater than '%s' maximum %ld", | |
1483 | value, errmsg, max_value); | |
1484 | } | |
1485 | return 0; | |
1486 | } | |
1487 | return 1; | |
1488 | } | |
1489 | ||
1490 | ||
1491 | SWIGINTERN int | |
1492 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1493 | { | |
1494 | if (PyNumber_Check(obj)) { | |
1495 | if (val) *val = PyInt_AsLong(obj); | |
1496 | return 1; | |
1497 | } | |
1498 | else { | |
1499 | SWIG_type_error("number", obj); | |
1500 | } | |
1501 | return 0; | |
1502 | } | |
1503 | ||
1504 | ||
1505 | #if INT_MAX != LONG_MAX | |
1506 | SWIGINTERN int | |
1507 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1508 | { | |
1509 | const char* errmsg = val ? "int" : (char*)0; | |
1510 | long v; | |
1511 | if (SWIG_AsVal_long(obj, &v)) { | |
1512 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1513 | if (val) *val = (int)(v); | |
1514 | return 1; | |
1515 | } else { | |
1516 | return 0; | |
1517 | } | |
1518 | } else { | |
1519 | PyErr_Clear(); | |
1520 | } | |
1521 | if (val) { | |
1522 | SWIG_type_error(errmsg, obj); | |
1523 | } | |
1524 | return 0; | |
1525 | } | |
1526 | #else | |
1527 | SWIGINTERNSHORT int | |
1528 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1529 | { | |
1530 | return SWIG_AsVal_long(obj,(long*)val); | |
1531 | } | |
1532 | #endif | |
1533 | ||
1534 | ||
1535 | SWIGINTERNSHORT int | |
c370783e | 1536 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 1537 | { |
c370783e RD |
1538 | int v; |
1539 | if (!SWIG_AsVal_int(obj, &v)) { | |
1540 | /* | |
36ed4f51 | 1541 | this is needed to make valgrind/purify happier. |
c370783e RD |
1542 | */ |
1543 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 1544 | } |
c370783e | 1545 | return v; |
d55e5bfc RD |
1546 | } |
1547 | ||
1548 | ||
36ed4f51 | 1549 | SWIGINTERNSHORT long |
c370783e | 1550 | SWIG_As_long(PyObject* obj) |
d55e5bfc | 1551 | { |
c370783e RD |
1552 | long v; |
1553 | if (!SWIG_AsVal_long(obj, &v)) { | |
1554 | /* | |
36ed4f51 | 1555 | this is needed to make valgrind/purify happier. |
c370783e RD |
1556 | */ |
1557 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 1558 | } |
c370783e | 1559 | return v; |
d55e5bfc RD |
1560 | } |
1561 | ||
c370783e | 1562 | |
36ed4f51 | 1563 | SWIGINTERNSHORT int |
c370783e RD |
1564 | SWIG_Check_int(PyObject* obj) |
1565 | { | |
1566 | return SWIG_AsVal_int(obj, (int*)0); | |
1567 | } | |
d55e5bfc | 1568 | |
c370783e | 1569 | |
36ed4f51 | 1570 | SWIGINTERNSHORT int |
c370783e | 1571 | SWIG_Check_long(PyObject* obj) |
d55e5bfc | 1572 | { |
c370783e | 1573 | return SWIG_AsVal_long(obj, (long*)0); |
d55e5bfc RD |
1574 | } |
1575 | ||
c370783e | 1576 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
d55e5bfc | 1577 | |
36ed4f51 | 1578 | SWIGINTERN int |
c370783e | 1579 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
d55e5bfc | 1580 | { |
c370783e RD |
1581 | if (obj == Py_True) { |
1582 | if (val) *val = true; | |
1583 | return 1; | |
1584 | } | |
1585 | if (obj == Py_False) { | |
1586 | if (val) *val = false; | |
d55e5bfc RD |
1587 | return 1; |
1588 | } | |
c370783e RD |
1589 | int res = 0; |
1590 | if (SWIG_AsVal_int(obj, &res)) { | |
36ed4f51 | 1591 | if (val) *val = res ? true : false; |
c370783e | 1592 | return 1; |
36ed4f51 RD |
1593 | } else { |
1594 | PyErr_Clear(); | |
1595 | } | |
c370783e | 1596 | if (val) { |
36ed4f51 | 1597 | SWIG_type_error("bool", obj); |
c370783e RD |
1598 | } |
1599 | return 0; | |
1600 | } | |
1601 | ||
1602 | ||
36ed4f51 | 1603 | SWIGINTERNSHORT bool |
c370783e RD |
1604 | SWIG_As_bool(PyObject* obj) |
1605 | { | |
1606 | bool v; | |
1607 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1608 | /* | |
36ed4f51 | 1609 | this is needed to make valgrind/purify happier. |
c370783e RD |
1610 | */ |
1611 | memset((void*)&v, 0, sizeof(bool)); | |
1612 | } | |
1613 | return v; | |
1614 | } | |
1615 | ||
1616 | ||
36ed4f51 | 1617 | SWIGINTERNSHORT int |
c370783e RD |
1618 | SWIG_Check_bool(PyObject* obj) |
1619 | { | |
1620 | return SWIG_AsVal_bool(obj, (bool*)0); | |
d55e5bfc RD |
1621 | } |
1622 | ||
1623 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
1624 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
36ed4f51 RD |
1625 | |
1626 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1627 | #define SWIG_From_long PyInt_FromLong | |
1628 | /*@@*/ | |
1629 | ||
d55e5bfc RD |
1630 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); |
1631 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
1632 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
1633 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
1634 | ||
1635 | #include <wx/checklst.h> | |
1636 | ||
1637 | ||
1638 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
36ed4f51 | 1639 | static void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d55e5bfc RD |
1640 | if (clientData) { |
1641 | wxPyClientData* data = new wxPyClientData(clientData); | |
1642 | self->Insert(item, pos, data); | |
1643 | } else | |
1644 | self->Insert(item, pos); | |
1645 | } | |
36ed4f51 | 1646 | static PyObject *wxListBox_GetSelections(wxListBox *self){ |
d55e5bfc RD |
1647 | wxArrayInt lst; |
1648 | self->GetSelections(lst); | |
1649 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
1650 | for(size_t i=0; i<lst.GetCount(); i++) { | |
1651 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
1652 | } | |
1653 | return tup; | |
1654 | } | |
36ed4f51 | 1655 | static void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
1656 | #ifdef __WXMSW__ |
1657 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1658 | self->GetItem(item)->SetTextColour(c); | |
1659 | #endif | |
1660 | } | |
36ed4f51 | 1661 | static void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
1662 | #ifdef __WXMSW__ |
1663 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1664 | self->GetItem(item)->SetBackgroundColour(c); | |
1665 | #endif | |
1666 | } | |
36ed4f51 | 1667 | static void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
d55e5bfc RD |
1668 | #ifdef __WXMSW__ |
1669 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1670 | self->GetItem(item)->SetFont(f); | |
1671 | #endif | |
1672 | } | |
1673 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
1674 | ||
c370783e | 1675 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
1676 | PyObject* o2; |
1677 | PyObject* o3; | |
c370783e | 1678 | |
d55e5bfc RD |
1679 | if (!target) { |
1680 | target = o; | |
1681 | } else if (target == Py_None) { | |
1682 | Py_DECREF(Py_None); | |
1683 | target = o; | |
629e65c2 RD |
1684 | } else { |
1685 | if (!PyTuple_Check(target)) { | |
1686 | o2 = target; | |
1687 | target = PyTuple_New(1); | |
1688 | PyTuple_SetItem(target, 0, o2); | |
1689 | } | |
d55e5bfc RD |
1690 | o3 = PyTuple_New(1); |
1691 | PyTuple_SetItem(o3, 0, o); | |
1692 | ||
1693 | o2 = target; | |
1694 | target = PySequence_Concat(o2, o3); | |
1695 | Py_DECREF(o2); | |
1696 | Py_DECREF(o3); | |
1697 | } | |
1698 | return target; | |
629e65c2 | 1699 | } |
d55e5bfc RD |
1700 | |
1701 | ||
c370783e | 1702 | |
36ed4f51 | 1703 | SWIGINTERN int |
c370783e | 1704 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
d55e5bfc | 1705 | { |
c370783e RD |
1706 | long v = 0; |
1707 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
36ed4f51 | 1708 | SWIG_type_error("unsigned number", obj); |
d55e5bfc | 1709 | } |
c370783e RD |
1710 | else if (val) |
1711 | *val = (unsigned long)v; | |
1712 | return 1; | |
d55e5bfc RD |
1713 | } |
1714 | ||
1715 | ||
36ed4f51 | 1716 | SWIGINTERNSHORT unsigned long |
c370783e | 1717 | SWIG_As_unsigned_SS_long(PyObject* obj) |
d55e5bfc | 1718 | { |
c370783e RD |
1719 | unsigned long v; |
1720 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1721 | /* | |
36ed4f51 | 1722 | this is needed to make valgrind/purify happier. |
c370783e RD |
1723 | */ |
1724 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 1725 | } |
c370783e RD |
1726 | return v; |
1727 | } | |
1728 | ||
1729 | ||
36ed4f51 | 1730 | SWIGINTERNSHORT int |
c370783e RD |
1731 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1732 | { | |
1733 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
1734 | } |
1735 | ||
36ed4f51 | 1736 | static void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d55e5bfc RD |
1737 | self->AppendText(text); |
1738 | } | |
36ed4f51 | 1739 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d55e5bfc RD |
1740 | return self->GetValue().Mid(from, to - from); |
1741 | } | |
1742 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
1743 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
1744 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
1745 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
1746 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
1747 | ||
1748 | #include <wx/slider.h> | |
1749 | ||
1750 | ||
1751 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
1752 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
1753 | ||
1754 | #if !wxUSE_TOGGLEBTN | |
1755 | // implement dummy items for platforms that don't have this class | |
1756 | ||
1757 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
1758 | ||
1759 | class wxToggleButton : public wxControl | |
1760 | { | |
1761 | public: | |
1762 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
1763 | const wxPoint&, const wxSize&, long, | |
1764 | const wxValidator&, const wxString&) | |
1765 | { wxPyRaiseNotImplemented(); } | |
1766 | ||
1767 | wxToggleButton() | |
1768 | { wxPyRaiseNotImplemented(); } | |
1769 | }; | |
1770 | #endif | |
1771 | ||
51b83b37 | 1772 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
d55e5bfc | 1773 | |
36ed4f51 | 1774 | SWIGINTERNSHORT PyObject* |
c370783e | 1775 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
1776 | { |
1777 | return (value > LONG_MAX) ? | |
1778 | PyLong_FromUnsignedLong(value) | |
36ed4f51 | 1779 | : PyInt_FromLong((long)(value)); |
d55e5bfc RD |
1780 | } |
1781 | ||
1782 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
36ed4f51 | 1783 | static PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d55e5bfc RD |
1784 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
1785 | if (udata) { | |
1786 | Py_INCREF(udata->m_obj); | |
1787 | return udata->m_obj; | |
1788 | } else { | |
1789 | Py_INCREF(Py_None); | |
1790 | return Py_None; | |
1791 | } | |
1792 | } | |
36ed4f51 | 1793 | static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d55e5bfc RD |
1794 | self->SetClientData(new wxPyUserData(clientData)); |
1795 | } | |
36ed4f51 | 1796 | static wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){ |
d55e5bfc RD |
1797 | wxPyUserData* udata = NULL; |
1798 | if (clientData && clientData != Py_None) | |
1799 | udata = new wxPyUserData(clientData); | |
1800 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
1801 | shortHelp, longHelp, udata); | |
1802 | } | |
36ed4f51 | 1803 | static wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){ |
d55e5bfc RD |
1804 | wxPyUserData* udata = NULL; |
1805 | if (clientData && clientData != Py_None) | |
1806 | udata = new wxPyUserData(clientData); | |
1807 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
1808 | shortHelp, longHelp, udata); | |
1809 | } | |
36ed4f51 | 1810 | static PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d55e5bfc RD |
1811 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
1812 | if (udata) { | |
1813 | Py_INCREF(udata->m_obj); | |
1814 | return udata->m_obj; | |
1815 | } else { | |
1816 | Py_INCREF(Py_None); | |
1817 | return Py_None; | |
1818 | } | |
1819 | } | |
36ed4f51 | 1820 | static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d55e5bfc RD |
1821 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
1822 | } | |
1823 | ||
1824 | #include <wx/listctrl.h> | |
1825 | ||
fef4c27a | 1826 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
36ed4f51 | 1827 | static void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d55e5bfc RD |
1828 | // Python aware sorting function for wxPyListCtrl |
1829 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
1830 | int retval = 0; | |
1831 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 1832 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
1833 | |
1834 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
1835 | PyObject* result = PyEval_CallObject(func, args); | |
1836 | Py_DECREF(args); | |
1837 | if (result) { | |
1838 | retval = PyInt_AsLong(result); | |
1839 | Py_DECREF(result); | |
1840 | } | |
1841 | ||
1842 | wxPyEndBlockThreads(blocked); | |
1843 | return retval; | |
1844 | } | |
1845 | ||
1846 | // C++ Version of a Python aware class | |
1847 | class wxPyListCtrl : public wxListCtrl { | |
1848 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
1849 | public: | |
1850 | wxPyListCtrl() : wxListCtrl() {} | |
1851 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
1852 | const wxPoint& pos, | |
1853 | const wxSize& size, | |
1854 | long style, | |
1855 | const wxValidator& validator, | |
1856 | const wxString& name) : | |
1857 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
1858 | ||
1859 | bool Create(wxWindow* parent, wxWindowID id, | |
1860 | const wxPoint& pos, | |
1861 | const wxSize& size, | |
1862 | long style, | |
1863 | const wxValidator& validator, | |
1864 | const wxString& name) { | |
1865 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
1866 | } | |
1867 | ||
1868 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d55e5bfc RD |
1869 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
1870 | ||
84f85550 RD |
1871 | // use the virtual version to avoid a confusing assert in the base class |
1872 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
1873 | ||
d55e5bfc RD |
1874 | PYPRIVATE; |
1875 | }; | |
1876 | ||
1877 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
1878 | ||
1879 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d55e5bfc | 1880 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 RD |
1881 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
1882 | ||
d55e5bfc | 1883 | |
36ed4f51 | 1884 | static wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d55e5bfc RD |
1885 | wxListItem item; |
1886 | item.SetMask( wxLIST_MASK_STATE | | |
1887 | wxLIST_MASK_TEXT | | |
1888 | wxLIST_MASK_IMAGE | | |
1889 | wxLIST_MASK_DATA | | |
1890 | wxLIST_SET_ITEM | | |
1891 | wxLIST_MASK_WIDTH | | |
1892 | wxLIST_MASK_FORMAT | |
1893 | ); | |
1894 | if (self->GetColumn(col, item)) | |
1895 | return new wxListItem(item); | |
1896 | else | |
1897 | return NULL; | |
1898 | } | |
36ed4f51 | 1899 | static wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d55e5bfc RD |
1900 | wxListItem* info = new wxListItem; |
1901 | info->m_itemId = itemId; | |
1902 | info->m_col = col; | |
1903 | info->m_mask = 0xFFFF; | |
1904 | self->GetItem(*info); | |
1905 | return info; | |
1906 | } | |
36ed4f51 | 1907 | static wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d55e5bfc RD |
1908 | wxPoint pos; |
1909 | self->GetItemPosition(item, pos); | |
1910 | return pos; | |
1911 | } | |
36ed4f51 | 1912 | static wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d55e5bfc RD |
1913 | wxRect rect; |
1914 | self->GetItemRect(item, rect, code); | |
1915 | return rect; | |
1916 | } | |
c370783e | 1917 | |
36ed4f51 | 1918 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d55e5bfc | 1919 | if (!PyCallable_Check(func)) |
b411df4a | 1920 | return false; |
d55e5bfc RD |
1921 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
1922 | } | |
36ed4f51 | 1923 | static wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d55e5bfc RD |
1924 | |
1925 | ||
1926 | ||
1927 | return (wxWindow*)self->m_mainWin; | |
1928 | ||
1929 | } | |
1930 | ||
1931 | #include <wx/treectrl.h> | |
1932 | #include "wx/wxPython/pytree.h" | |
1933 | ||
1934 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
36ed4f51 RD |
1935 | static bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
1936 | static bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
1937 | static void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
d55e5bfc RD |
1938 | // C++ version of Python aware wxTreeCtrl |
1939 | class wxPyTreeCtrl : public wxTreeCtrl { | |
1940 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
1941 | public: | |
1942 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
1943 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
1944 | const wxPoint& pos, | |
1945 | const wxSize& size, | |
1946 | long style, | |
1947 | const wxValidator& validator, | |
1948 | const wxString& name) : | |
1949 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
1950 | ||
1951 | bool Create(wxWindow *parent, wxWindowID id, | |
1952 | const wxPoint& pos, | |
1953 | const wxSize& size, | |
1954 | long style, | |
1955 | const wxValidator& validator, | |
1956 | const wxString& name) { | |
1957 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
1958 | } | |
1959 | ||
1960 | ||
1961 | int OnCompareItems(const wxTreeItemId& item1, | |
1962 | const wxTreeItemId& item2) { | |
1963 | int rval = 0; | |
1964 | bool found; | |
5a446332 | 1965 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1966 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
b411df4a RD |
1967 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
1968 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d55e5bfc RD |
1969 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
1970 | Py_DECREF(o1); | |
1971 | Py_DECREF(o2); | |
1972 | } | |
1973 | wxPyEndBlockThreads(blocked); | |
1974 | if (! found) | |
1975 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
1976 | return rval; | |
1977 | } | |
1978 | PYPRIVATE; | |
1979 | }; | |
1980 | ||
1981 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
1982 | ||
1983 | ||
1984 | ||
1985 | #if UINT_MAX < LONG_MAX | |
36ed4f51 | 1986 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c370783e RD |
1987 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
1988 | /*@@*/ | |
d55e5bfc | 1989 | #else |
36ed4f51 | 1990 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c370783e RD |
1991 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
1992 | /*@@*/ | |
d55e5bfc RD |
1993 | #endif |
1994 | ||
1995 | ||
36ed4f51 | 1996 | SWIGINTERNSHORT int |
c370783e RD |
1997 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
1998 | unsigned long max_value, | |
1999 | const char *errmsg) | |
d55e5bfc | 2000 | { |
c370783e RD |
2001 | if (value > max_value) { |
2002 | if (errmsg) { | |
2003 | PyErr_Format(PyExc_OverflowError, | |
36ed4f51 | 2004 | "value %lu is greater than '%s' minimum %lu", |
c370783e | 2005 | value, errmsg, max_value); |
d55e5bfc | 2006 | } |
c370783e | 2007 | return 0; |
d55e5bfc | 2008 | } |
c370783e RD |
2009 | return 1; |
2010 | } | |
d55e5bfc RD |
2011 | |
2012 | ||
2013 | #if UINT_MAX != ULONG_MAX | |
36ed4f51 | 2014 | SWIGINTERN int |
c370783e | 2015 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
d55e5bfc | 2016 | { |
36ed4f51 | 2017 | const char* errmsg = val ? "unsigned int" : (char*)0; |
c370783e RD |
2018 | unsigned long v; |
2019 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2020 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
36ed4f51 | 2021 | if (val) *val = (unsigned int)(v); |
c370783e RD |
2022 | return 1; |
2023 | } | |
2024 | } else { | |
2025 | PyErr_Clear(); | |
2026 | } | |
2027 | if (val) { | |
36ed4f51 | 2028 | SWIG_type_error(errmsg, obj); |
c370783e RD |
2029 | } |
2030 | return 0; | |
d55e5bfc RD |
2031 | } |
2032 | #else | |
36ed4f51 | 2033 | SWIGINTERNSHORT unsigned int |
c370783e RD |
2034 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2035 | { | |
2036 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2037 | } | |
d55e5bfc RD |
2038 | #endif |
2039 | ||
2040 | ||
36ed4f51 | 2041 | SWIGINTERNSHORT unsigned int |
c370783e | 2042 | SWIG_As_unsigned_SS_int(PyObject* obj) |
d55e5bfc | 2043 | { |
c370783e RD |
2044 | unsigned int v; |
2045 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2046 | /* | |
36ed4f51 | 2047 | this is needed to make valgrind/purify happier. |
c370783e RD |
2048 | */ |
2049 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 2050 | } |
c370783e RD |
2051 | return v; |
2052 | } | |
2053 | ||
2054 | ||
36ed4f51 | 2055 | SWIGINTERNSHORT int |
c370783e RD |
2056 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
2057 | { | |
2058 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
2059 | } |
2060 | ||
36ed4f51 | 2061 | static wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
2062 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2063 | if (data == NULL) { | |
2064 | data = new wxPyTreeItemData(); | |
2065 | data->SetId(item); // set the id | |
2066 | self->SetItemData(item, data); | |
2067 | } | |
2068 | return data; | |
2069 | } | |
36ed4f51 | 2070 | static PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
2071 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2072 | if (data == NULL) { | |
2073 | data = new wxPyTreeItemData(); | |
2074 | data->SetId(item); // set the id | |
2075 | self->SetItemData(item, data); | |
2076 | } | |
2077 | return data->GetData(); | |
2078 | } | |
36ed4f51 | 2079 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d55e5bfc RD |
2080 | data->SetId(item); // set the id |
2081 | self->SetItemData(item, data); | |
2082 | } | |
36ed4f51 | 2083 | static void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d55e5bfc RD |
2084 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2085 | if (data == NULL) { | |
2086 | data = new wxPyTreeItemData(obj); | |
2087 | data->SetId(item); // set the id | |
2088 | self->SetItemData(item, data); | |
2089 | } else | |
2090 | data->SetData(obj); | |
2091 | } | |
36ed4f51 | 2092 | static PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 2093 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc RD |
2094 | PyObject* rval = PyList_New(0); |
2095 | wxArrayTreeItemIds array; | |
2096 | size_t num, x; | |
2097 | num = self->GetSelections(array); | |
2098 | for (x=0; x < num; x++) { | |
2099 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
b411df4a | 2100 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d55e5bfc | 2101 | PyList_Append(rval, item); |
68e533f8 | 2102 | Py_DECREF(item); |
d55e5bfc RD |
2103 | } |
2104 | wxPyEndBlockThreads(blocked); | |
2105 | return rval; | |
2106 | } | |
36ed4f51 | 2107 | static PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d55e5bfc RD |
2108 | void* cookie = 0; |
2109 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 2110 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 2111 | PyObject* tup = PyTuple_New(2); |
b411df4a | 2112 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
2113 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
2114 | wxPyEndBlockThreads(blocked); | |
2115 | return tup; | |
2116 | } | |
36ed4f51 | 2117 | static PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
d55e5bfc | 2118 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 2119 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 2120 | PyObject* tup = PyTuple_New(2); |
b411df4a | 2121 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
d55e5bfc RD |
2122 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
2123 | wxPyEndBlockThreads(blocked); | |
2124 | return tup; | |
2125 | } | |
36ed4f51 | 2126 | static PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d55e5bfc RD |
2127 | wxRect rect; |
2128 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 2129 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 2130 | wxRect* r = new wxRect(rect); |
b411df4a | 2131 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
d55e5bfc RD |
2132 | wxPyEndBlockThreads(blocked); |
2133 | return val; | |
2134 | } | |
2135 | else | |
2136 | RETURN_NONE(); | |
2137 | } | |
2138 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
c370783e | 2139 | |
36ed4f51 | 2140 | SWIGINTERNSHORT PyObject* |
c370783e RD |
2141 | SWIG_From_bool(bool value) |
2142 | { | |
2143 | PyObject *obj = value ? Py_True : Py_False; | |
2144 | Py_INCREF(obj); | |
2145 | return obj; | |
2146 | } | |
2147 | ||
2148 | ||
d55e5bfc RD |
2149 | // C++ version of Python aware wxControl |
2150 | class wxPyControl : public wxControl | |
2151 | { | |
2152 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
2153 | public: | |
2154 | wxPyControl() : wxControl() {} | |
2155 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
2156 | const wxPoint& pos = wxDefaultPosition, | |
2157 | const wxSize& size = wxDefaultSize, | |
2158 | long style = 0, | |
2159 | const wxValidator& validator=wxDefaultValidator, | |
2160 | const wxString& name = wxPyControlNameStr) | |
2161 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
2162 | ||
a5ee0656 | 2163 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d55e5bfc | 2164 | |
976dbff5 RD |
2165 | bool DoEraseBackground(wxDC* dc) { |
2166 | #ifdef __WXMSW__ | |
2167 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
2168 | #else | |
2169 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
2170 | dc->Clear(); | |
2171 | return true; | |
2172 | #endif | |
2173 | } | |
2174 | ||
d55e5bfc RD |
2175 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
2176 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
2177 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
2178 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
2179 | ||
2180 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
2181 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
2182 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
2183 | ||
2184 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
2185 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
2186 | ||
2187 | DEC_PYCALLBACK__(InitDialog); | |
2188 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
2189 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
2190 | DEC_PYCALLBACK_BOOL_(Validate); | |
2191 | ||
2192 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
2193 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
2194 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
2195 | ||
2196 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
2197 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
2198 | ||
a5ee0656 | 2199 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
a5ee0656 | 2200 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc | 2201 | |
51b83b37 RD |
2202 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
2203 | ||
8d38bd1d RD |
2204 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
2205 | ||
d55e5bfc RD |
2206 | PYPRIVATE; |
2207 | }; | |
2208 | ||
2209 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
2210 | ||
2211 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
2212 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
2213 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
2214 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
2215 | ||
2216 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
2217 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
2218 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
2219 | ||
2220 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
2221 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
2222 | ||
2223 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
2224 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
2225 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
2226 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
2227 | ||
2228 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
2229 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
2230 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
2231 | ||
2232 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
2233 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
2234 | ||
a5ee0656 | 2235 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
a5ee0656 | 2236 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc | 2237 | |
51b83b37 | 2238 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
2239 | |
2240 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
2241 | ||
d55e5bfc RD |
2242 | |
2243 | ||
36ed4f51 | 2244 | static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
d55e5bfc RD |
2245 | |
2246 | #include <wx/generic/dragimgg.h> | |
2247 | ||
53aa7709 RD |
2248 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
2249 | static wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ | |
2250 | wxDateTime rv; | |
2251 | self->GetRange(&rv, NULL); | |
2252 | return rv; | |
2253 | } | |
2254 | static wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ | |
2255 | wxDateTime rv; | |
2256 | self->GetRange(NULL, &rv); | |
2257 | return rv; | |
2258 | } | |
d55e5bfc RD |
2259 | #ifdef __cplusplus |
2260 | extern "C" { | |
2261 | #endif | |
c370783e | 2262 | static int _wrap_ButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
2263 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
2264 | return 1; | |
2265 | } | |
2266 | ||
2267 | ||
36ed4f51 | 2268 | static PyObject *_wrap_ButtonNameStr_get(void) { |
d55e5bfc RD |
2269 | PyObject *pyobj; |
2270 | ||
2271 | { | |
2272 | #if wxUSE_UNICODE | |
2273 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2274 | #else | |
2275 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2276 | #endif | |
2277 | } | |
2278 | return pyobj; | |
2279 | } | |
2280 | ||
2281 | ||
c370783e | 2282 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2283 | PyObject *resultobj; |
2284 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
2285 | int arg2 = (int) -1 ; |
2286 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2287 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
2288 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2289 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2290 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2291 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2292 | long arg6 = (long) 0 ; | |
2293 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2294 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2295 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2296 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2297 | wxButton *result; | |
b411df4a | 2298 | bool temp3 = false ; |
d55e5bfc RD |
2299 | wxPoint temp4 ; |
2300 | wxSize temp5 ; | |
b411df4a | 2301 | bool temp8 = false ; |
d55e5bfc RD |
2302 | PyObject * obj0 = 0 ; |
2303 | PyObject * obj1 = 0 ; | |
2304 | PyObject * obj2 = 0 ; | |
2305 | PyObject * obj3 = 0 ; | |
2306 | PyObject * obj4 = 0 ; | |
2307 | PyObject * obj5 = 0 ; | |
2308 | PyObject * obj6 = 0 ; | |
2309 | PyObject * obj7 = 0 ; | |
2310 | char *kwnames[] = { | |
2311 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2312 | }; | |
2313 | ||
bfddbb17 | 2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
2315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 2317 | if (obj1) { |
36ed4f51 RD |
2318 | { |
2319 | arg2 = (int)(SWIG_As_int(obj1)); | |
2320 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2321 | } | |
bfddbb17 RD |
2322 | } |
2323 | if (obj2) { | |
2324 | { | |
2325 | arg3 = wxString_in_helper(obj2); | |
2326 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 2327 | temp3 = true; |
bfddbb17 | 2328 | } |
d55e5bfc RD |
2329 | } |
2330 | if (obj3) { | |
2331 | { | |
2332 | arg4 = &temp4; | |
2333 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2334 | } | |
2335 | } | |
2336 | if (obj4) { | |
2337 | { | |
2338 | arg5 = &temp5; | |
2339 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2340 | } | |
2341 | } | |
2342 | if (obj5) { | |
36ed4f51 RD |
2343 | { |
2344 | arg6 = (long)(SWIG_As_long(obj5)); | |
2345 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2346 | } | |
d55e5bfc RD |
2347 | } |
2348 | if (obj6) { | |
36ed4f51 RD |
2349 | { |
2350 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2351 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2352 | if (arg7 == NULL) { | |
2353 | SWIG_null_ref("wxValidator"); | |
2354 | } | |
2355 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
2356 | } |
2357 | } | |
2358 | if (obj7) { | |
2359 | { | |
2360 | arg8 = wxString_in_helper(obj7); | |
2361 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 2362 | temp8 = true; |
d55e5bfc RD |
2363 | } |
2364 | } | |
2365 | { | |
0439c23b | 2366 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2368 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2369 | ||
2370 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2371 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 2372 | } |
b0f7404b | 2373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d55e5bfc RD |
2374 | { |
2375 | if (temp3) | |
2376 | delete arg3; | |
2377 | } | |
2378 | { | |
2379 | if (temp8) | |
2380 | delete arg8; | |
2381 | } | |
2382 | return resultobj; | |
2383 | fail: | |
2384 | { | |
2385 | if (temp3) | |
2386 | delete arg3; | |
2387 | } | |
2388 | { | |
2389 | if (temp8) | |
2390 | delete arg8; | |
2391 | } | |
2392 | return NULL; | |
2393 | } | |
2394 | ||
2395 | ||
c370783e | 2396 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2397 | PyObject *resultobj; |
2398 | wxButton *result; | |
2399 | char *kwnames[] = { | |
2400 | NULL | |
2401 | }; | |
2402 | ||
2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
2404 | { | |
0439c23b | 2405 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2407 | result = (wxButton *)new wxButton(); | |
2408 | ||
2409 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2410 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 2411 | } |
b0f7404b | 2412 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d55e5bfc RD |
2413 | return resultobj; |
2414 | fail: | |
2415 | return NULL; | |
2416 | } | |
2417 | ||
2418 | ||
c370783e | 2419 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2420 | PyObject *resultobj; |
2421 | wxButton *arg1 = (wxButton *) 0 ; | |
2422 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
2423 | int arg3 = (int) -1 ; |
2424 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2425 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
2426 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2427 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2428 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2429 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2430 | long arg7 = (long) 0 ; | |
2431 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2432 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2433 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2434 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2435 | bool result; | |
b411df4a | 2436 | bool temp4 = false ; |
d55e5bfc RD |
2437 | wxPoint temp5 ; |
2438 | wxSize temp6 ; | |
b411df4a | 2439 | bool temp9 = false ; |
d55e5bfc RD |
2440 | PyObject * obj0 = 0 ; |
2441 | PyObject * obj1 = 0 ; | |
2442 | PyObject * obj2 = 0 ; | |
2443 | PyObject * obj3 = 0 ; | |
2444 | PyObject * obj4 = 0 ; | |
2445 | PyObject * obj5 = 0 ; | |
2446 | PyObject * obj6 = 0 ; | |
2447 | PyObject * obj7 = 0 ; | |
2448 | PyObject * obj8 = 0 ; | |
2449 | char *kwnames[] = { | |
2450 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2451 | }; | |
2452 | ||
bfddbb17 | 2453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
2454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2456 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2457 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 2458 | if (obj2) { |
36ed4f51 RD |
2459 | { |
2460 | arg3 = (int)(SWIG_As_int(obj2)); | |
2461 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2462 | } | |
bfddbb17 RD |
2463 | } |
2464 | if (obj3) { | |
2465 | { | |
2466 | arg4 = wxString_in_helper(obj3); | |
2467 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 2468 | temp4 = true; |
bfddbb17 | 2469 | } |
d55e5bfc RD |
2470 | } |
2471 | if (obj4) { | |
2472 | { | |
2473 | arg5 = &temp5; | |
2474 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2475 | } | |
2476 | } | |
2477 | if (obj5) { | |
2478 | { | |
2479 | arg6 = &temp6; | |
2480 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2481 | } | |
2482 | } | |
2483 | if (obj6) { | |
36ed4f51 RD |
2484 | { |
2485 | arg7 = (long)(SWIG_As_long(obj6)); | |
2486 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2487 | } | |
d55e5bfc RD |
2488 | } |
2489 | if (obj7) { | |
36ed4f51 RD |
2490 | { |
2491 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2492 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2493 | if (arg8 == NULL) { | |
2494 | SWIG_null_ref("wxValidator"); | |
2495 | } | |
2496 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
2497 | } |
2498 | } | |
2499 | if (obj8) { | |
2500 | { | |
2501 | arg9 = wxString_in_helper(obj8); | |
2502 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 2503 | temp9 = true; |
d55e5bfc RD |
2504 | } |
2505 | } | |
2506 | { | |
2507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2508 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2509 | ||
2510 | wxPyEndAllowThreads(__tstate); | |
2511 | if (PyErr_Occurred()) SWIG_fail; | |
2512 | } | |
2513 | { | |
2514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2515 | } | |
2516 | { | |
2517 | if (temp4) | |
2518 | delete arg4; | |
2519 | } | |
2520 | { | |
2521 | if (temp9) | |
2522 | delete arg9; | |
2523 | } | |
2524 | return resultobj; | |
2525 | fail: | |
2526 | { | |
2527 | if (temp4) | |
2528 | delete arg4; | |
2529 | } | |
2530 | { | |
2531 | if (temp9) | |
2532 | delete arg9; | |
2533 | } | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
c370783e | 2538 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2539 | PyObject *resultobj; |
2540 | wxButton *arg1 = (wxButton *) 0 ; | |
2541 | PyObject * obj0 = 0 ; | |
2542 | char *kwnames[] = { | |
2543 | (char *) "self", NULL | |
2544 | }; | |
2545 | ||
2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
2547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2549 | { |
2550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2551 | (arg1)->SetDefault(); | |
2552 | ||
2553 | wxPyEndAllowThreads(__tstate); | |
2554 | if (PyErr_Occurred()) SWIG_fail; | |
2555 | } | |
2556 | Py_INCREF(Py_None); resultobj = Py_None; | |
2557 | return resultobj; | |
2558 | fail: | |
2559 | return NULL; | |
2560 | } | |
2561 | ||
2562 | ||
c370783e | 2563 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2564 | PyObject *resultobj; |
2565 | wxSize result; | |
2566 | char *kwnames[] = { | |
2567 | NULL | |
2568 | }; | |
2569 | ||
2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
2571 | { | |
2572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2573 | result = wxButton::GetDefaultSize(); | |
2574 | ||
2575 | wxPyEndAllowThreads(__tstate); | |
2576 | if (PyErr_Occurred()) SWIG_fail; | |
2577 | } | |
2578 | { | |
2579 | wxSize * resultptr; | |
36ed4f51 | 2580 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
2581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
2582 | } | |
2583 | return resultobj; | |
2584 | fail: | |
2585 | return NULL; | |
2586 | } | |
2587 | ||
2588 | ||
c370783e | 2589 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 2590 | PyObject *resultobj; |
36ed4f51 | 2591 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
2592 | wxVisualAttributes result; |
2593 | PyObject * obj0 = 0 ; | |
2594 | char *kwnames[] = { | |
2595 | (char *) "variant", NULL | |
2596 | }; | |
2597 | ||
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2599 | if (obj0) { | |
36ed4f51 RD |
2600 | { |
2601 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
2602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2603 | } | |
f20a2e1f RD |
2604 | } |
2605 | { | |
0439c23b | 2606 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2608 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2609 | ||
2610 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2611 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2612 | } |
2613 | { | |
2614 | wxVisualAttributes * resultptr; | |
36ed4f51 | 2615 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
2616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
2617 | } | |
2618 | return resultobj; | |
2619 | fail: | |
2620 | return NULL; | |
2621 | } | |
2622 | ||
2623 | ||
c370783e | 2624 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2625 | PyObject *obj; |
2626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2627 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
2628 | Py_INCREF(obj); | |
2629 | return Py_BuildValue((char *)""); | |
2630 | } | |
c370783e | 2631 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2632 | PyObject *resultobj; |
2633 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
2634 | int arg2 = (int) -1 ; |
2635 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
2636 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
2637 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2638 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2639 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2640 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2641 | long arg6 = (long) wxBU_AUTODRAW ; | |
2642 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2643 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2644 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2645 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2646 | wxBitmapButton *result; | |
2647 | wxPoint temp4 ; | |
2648 | wxSize temp5 ; | |
b411df4a | 2649 | bool temp8 = false ; |
d55e5bfc RD |
2650 | PyObject * obj0 = 0 ; |
2651 | PyObject * obj1 = 0 ; | |
2652 | PyObject * obj2 = 0 ; | |
2653 | PyObject * obj3 = 0 ; | |
2654 | PyObject * obj4 = 0 ; | |
2655 | PyObject * obj5 = 0 ; | |
2656 | PyObject * obj6 = 0 ; | |
2657 | PyObject * obj7 = 0 ; | |
2658 | char *kwnames[] = { | |
2659 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2660 | }; | |
2661 | ||
bfddbb17 | 2662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
2663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 2665 | if (obj1) { |
36ed4f51 RD |
2666 | { |
2667 | arg2 = (int)(SWIG_As_int(obj1)); | |
2668 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2669 | } | |
bfddbb17 RD |
2670 | } |
2671 | if (obj2) { | |
36ed4f51 RD |
2672 | { |
2673 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2674 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2675 | if (arg3 == NULL) { | |
2676 | SWIG_null_ref("wxBitmap"); | |
2677 | } | |
2678 | if (SWIG_arg_fail(3)) SWIG_fail; | |
bfddbb17 | 2679 | } |
d55e5bfc RD |
2680 | } |
2681 | if (obj3) { | |
2682 | { | |
2683 | arg4 = &temp4; | |
2684 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2685 | } | |
2686 | } | |
2687 | if (obj4) { | |
2688 | { | |
2689 | arg5 = &temp5; | |
2690 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2691 | } | |
2692 | } | |
2693 | if (obj5) { | |
36ed4f51 RD |
2694 | { |
2695 | arg6 = (long)(SWIG_As_long(obj5)); | |
2696 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2697 | } | |
d55e5bfc RD |
2698 | } |
2699 | if (obj6) { | |
36ed4f51 RD |
2700 | { |
2701 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2702 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2703 | if (arg7 == NULL) { | |
2704 | SWIG_null_ref("wxValidator"); | |
2705 | } | |
2706 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
2707 | } |
2708 | } | |
2709 | if (obj7) { | |
2710 | { | |
2711 | arg8 = wxString_in_helper(obj7); | |
2712 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 2713 | temp8 = true; |
d55e5bfc RD |
2714 | } |
2715 | } | |
2716 | { | |
0439c23b | 2717 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2719 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2720 | ||
2721 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2722 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 2723 | } |
b0f7404b | 2724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d55e5bfc RD |
2725 | { |
2726 | if (temp8) | |
2727 | delete arg8; | |
2728 | } | |
2729 | return resultobj; | |
2730 | fail: | |
2731 | { | |
2732 | if (temp8) | |
2733 | delete arg8; | |
2734 | } | |
2735 | return NULL; | |
2736 | } | |
2737 | ||
2738 | ||
c370783e | 2739 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2740 | PyObject *resultobj; |
2741 | wxBitmapButton *result; | |
2742 | char *kwnames[] = { | |
2743 | NULL | |
2744 | }; | |
2745 | ||
2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
2747 | { | |
0439c23b | 2748 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2750 | result = (wxBitmapButton *)new wxBitmapButton(); | |
2751 | ||
2752 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2753 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 2754 | } |
b0f7404b | 2755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d55e5bfc RD |
2756 | return resultobj; |
2757 | fail: | |
2758 | return NULL; | |
2759 | } | |
2760 | ||
2761 | ||
c370783e | 2762 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2763 | PyObject *resultobj; |
2764 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2765 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
2766 | int arg3 = (int) -1 ; |
2767 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
2768 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
2769 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2770 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2771 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2772 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2773 | long arg7 = (long) wxBU_AUTODRAW ; | |
2774 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2775 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2776 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2777 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2778 | bool result; | |
2779 | wxPoint temp5 ; | |
2780 | wxSize temp6 ; | |
b411df4a | 2781 | bool temp9 = false ; |
d55e5bfc RD |
2782 | PyObject * obj0 = 0 ; |
2783 | PyObject * obj1 = 0 ; | |
2784 | PyObject * obj2 = 0 ; | |
2785 | PyObject * obj3 = 0 ; | |
2786 | PyObject * obj4 = 0 ; | |
2787 | PyObject * obj5 = 0 ; | |
2788 | PyObject * obj6 = 0 ; | |
2789 | PyObject * obj7 = 0 ; | |
2790 | PyObject * obj8 = 0 ; | |
2791 | char *kwnames[] = { | |
2792 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2793 | }; | |
2794 | ||
bfddbb17 | 2795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
2796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2798 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2799 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 2800 | if (obj2) { |
36ed4f51 RD |
2801 | { |
2802 | arg3 = (int)(SWIG_As_int(obj2)); | |
2803 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2804 | } | |
bfddbb17 RD |
2805 | } |
2806 | if (obj3) { | |
36ed4f51 RD |
2807 | { |
2808 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2809 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2810 | if (arg4 == NULL) { | |
2811 | SWIG_null_ref("wxBitmap"); | |
2812 | } | |
2813 | if (SWIG_arg_fail(4)) SWIG_fail; | |
bfddbb17 | 2814 | } |
d55e5bfc RD |
2815 | } |
2816 | if (obj4) { | |
2817 | { | |
2818 | arg5 = &temp5; | |
2819 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2820 | } | |
2821 | } | |
2822 | if (obj5) { | |
2823 | { | |
2824 | arg6 = &temp6; | |
2825 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2826 | } | |
2827 | } | |
2828 | if (obj6) { | |
36ed4f51 RD |
2829 | { |
2830 | arg7 = (long)(SWIG_As_long(obj6)); | |
2831 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2832 | } | |
d55e5bfc RD |
2833 | } |
2834 | if (obj7) { | |
36ed4f51 RD |
2835 | { |
2836 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2837 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2838 | if (arg8 == NULL) { | |
2839 | SWIG_null_ref("wxValidator"); | |
2840 | } | |
2841 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
2842 | } |
2843 | } | |
2844 | if (obj8) { | |
2845 | { | |
2846 | arg9 = wxString_in_helper(obj8); | |
2847 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 2848 | temp9 = true; |
d55e5bfc RD |
2849 | } |
2850 | } | |
2851 | { | |
2852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2853 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2854 | ||
2855 | wxPyEndAllowThreads(__tstate); | |
2856 | if (PyErr_Occurred()) SWIG_fail; | |
2857 | } | |
2858 | { | |
2859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2860 | } | |
2861 | { | |
2862 | if (temp9) | |
2863 | delete arg9; | |
2864 | } | |
2865 | return resultobj; | |
2866 | fail: | |
2867 | { | |
2868 | if (temp9) | |
2869 | delete arg9; | |
2870 | } | |
2871 | return NULL; | |
2872 | } | |
2873 | ||
2874 | ||
c370783e | 2875 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2876 | PyObject *resultobj; |
2877 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2878 | wxBitmap result; | |
2879 | PyObject * obj0 = 0 ; | |
2880 | char *kwnames[] = { | |
2881 | (char *) "self", NULL | |
2882 | }; | |
2883 | ||
2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
2885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2887 | { |
2888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2889 | result = (arg1)->GetBitmapLabel(); | |
2890 | ||
2891 | wxPyEndAllowThreads(__tstate); | |
2892 | if (PyErr_Occurred()) SWIG_fail; | |
2893 | } | |
2894 | { | |
2895 | wxBitmap * resultptr; | |
36ed4f51 | 2896 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
2897 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
2898 | } | |
2899 | return resultobj; | |
2900 | fail: | |
2901 | return NULL; | |
2902 | } | |
2903 | ||
2904 | ||
c370783e | 2905 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2906 | PyObject *resultobj; |
2907 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2908 | wxBitmap result; | |
2909 | PyObject * obj0 = 0 ; | |
2910 | char *kwnames[] = { | |
2911 | (char *) "self", NULL | |
2912 | }; | |
2913 | ||
2914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
2915 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2916 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2917 | { |
2918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2919 | result = (arg1)->GetBitmapDisabled(); | |
2920 | ||
2921 | wxPyEndAllowThreads(__tstate); | |
2922 | if (PyErr_Occurred()) SWIG_fail; | |
2923 | } | |
2924 | { | |
2925 | wxBitmap * resultptr; | |
36ed4f51 | 2926 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
2927 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
2928 | } | |
2929 | return resultobj; | |
2930 | fail: | |
2931 | return NULL; | |
2932 | } | |
2933 | ||
2934 | ||
c370783e | 2935 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2936 | PyObject *resultobj; |
2937 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2938 | wxBitmap result; | |
2939 | PyObject * obj0 = 0 ; | |
2940 | char *kwnames[] = { | |
2941 | (char *) "self", NULL | |
2942 | }; | |
2943 | ||
2944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
2945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2947 | { |
2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2949 | result = (arg1)->GetBitmapFocus(); | |
2950 | ||
2951 | wxPyEndAllowThreads(__tstate); | |
2952 | if (PyErr_Occurred()) SWIG_fail; | |
2953 | } | |
2954 | { | |
2955 | wxBitmap * resultptr; | |
36ed4f51 | 2956 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
2957 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
2958 | } | |
2959 | return resultobj; | |
2960 | fail: | |
2961 | return NULL; | |
2962 | } | |
2963 | ||
2964 | ||
c370783e | 2965 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2966 | PyObject *resultobj; |
2967 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2968 | wxBitmap result; | |
2969 | PyObject * obj0 = 0 ; | |
2970 | char *kwnames[] = { | |
2971 | (char *) "self", NULL | |
2972 | }; | |
2973 | ||
2974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
2975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
2977 | { |
2978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2979 | result = (arg1)->GetBitmapSelected(); | |
2980 | ||
2981 | wxPyEndAllowThreads(__tstate); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | { | |
2985 | wxBitmap * resultptr; | |
36ed4f51 | 2986 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
2987 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
2988 | } | |
2989 | return resultobj; | |
2990 | fail: | |
2991 | return NULL; | |
2992 | } | |
2993 | ||
2994 | ||
c370783e | 2995 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2996 | PyObject *resultobj; |
2997 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2998 | wxBitmap *arg2 = 0 ; | |
2999 | PyObject * obj0 = 0 ; | |
3000 | PyObject * obj1 = 0 ; | |
3001 | char *kwnames[] = { | |
3002 | (char *) "self",(char *) "bitmap", NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
3006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3008 | { | |
3009 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3011 | if (arg2 == NULL) { | |
3012 | SWIG_null_ref("wxBitmap"); | |
3013 | } | |
3014 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
3015 | } |
3016 | { | |
3017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3018 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
3019 | ||
3020 | wxPyEndAllowThreads(__tstate); | |
3021 | if (PyErr_Occurred()) SWIG_fail; | |
3022 | } | |
3023 | Py_INCREF(Py_None); resultobj = Py_None; | |
3024 | return resultobj; | |
3025 | fail: | |
3026 | return NULL; | |
3027 | } | |
3028 | ||
3029 | ||
c370783e | 3030 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3031 | PyObject *resultobj; |
3032 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3033 | wxBitmap *arg2 = 0 ; | |
3034 | PyObject * obj0 = 0 ; | |
3035 | PyObject * obj1 = 0 ; | |
3036 | char *kwnames[] = { | |
3037 | (char *) "self",(char *) "bitmap", NULL | |
3038 | }; | |
3039 | ||
3040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
3041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3043 | { | |
3044 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3045 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3046 | if (arg2 == NULL) { | |
3047 | SWIG_null_ref("wxBitmap"); | |
3048 | } | |
3049 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
3050 | } |
3051 | { | |
3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3053 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
3054 | ||
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
3058 | Py_INCREF(Py_None); resultobj = Py_None; | |
3059 | return resultobj; | |
3060 | fail: | |
3061 | return NULL; | |
3062 | } | |
3063 | ||
3064 | ||
c370783e | 3065 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3066 | PyObject *resultobj; |
3067 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3068 | wxBitmap *arg2 = 0 ; | |
3069 | PyObject * obj0 = 0 ; | |
3070 | PyObject * obj1 = 0 ; | |
3071 | char *kwnames[] = { | |
3072 | (char *) "self",(char *) "bitmap", NULL | |
3073 | }; | |
3074 | ||
3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
3076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3078 | { | |
3079 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3080 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3081 | if (arg2 == NULL) { | |
3082 | SWIG_null_ref("wxBitmap"); | |
3083 | } | |
3084 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
3085 | } |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | Py_INCREF(Py_None); resultobj = Py_None; | |
3094 | return resultobj; | |
3095 | fail: | |
3096 | return NULL; | |
3097 | } | |
3098 | ||
3099 | ||
c370783e | 3100 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3101 | PyObject *resultobj; |
3102 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3103 | wxBitmap *arg2 = 0 ; | |
3104 | PyObject * obj0 = 0 ; | |
3105 | PyObject * obj1 = 0 ; | |
3106 | char *kwnames[] = { | |
3107 | (char *) "self",(char *) "bitmap", NULL | |
3108 | }; | |
3109 | ||
3110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
3111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3113 | { | |
3114 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3115 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3116 | if (arg2 == NULL) { | |
3117 | SWIG_null_ref("wxBitmap"); | |
3118 | } | |
3119 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
3120 | } |
3121 | { | |
3122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3123 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
3124 | ||
3125 | wxPyEndAllowThreads(__tstate); | |
3126 | if (PyErr_Occurred()) SWIG_fail; | |
3127 | } | |
3128 | Py_INCREF(Py_None); resultobj = Py_None; | |
3129 | return resultobj; | |
3130 | fail: | |
3131 | return NULL; | |
3132 | } | |
3133 | ||
3134 | ||
c370783e | 3135 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3136 | PyObject *resultobj; |
3137 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3138 | int arg2 ; | |
3139 | int arg3 ; | |
3140 | PyObject * obj0 = 0 ; | |
3141 | PyObject * obj1 = 0 ; | |
3142 | PyObject * obj2 = 0 ; | |
3143 | char *kwnames[] = { | |
3144 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3145 | }; | |
3146 | ||
3147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
3148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3150 | { | |
3151 | arg2 = (int)(SWIG_As_int(obj1)); | |
3152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3153 | } | |
3154 | { | |
3155 | arg3 = (int)(SWIG_As_int(obj2)); | |
3156 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3157 | } | |
d55e5bfc RD |
3158 | { |
3159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3160 | (arg1)->SetMargins(arg2,arg3); | |
3161 | ||
3162 | wxPyEndAllowThreads(__tstate); | |
3163 | if (PyErr_Occurred()) SWIG_fail; | |
3164 | } | |
3165 | Py_INCREF(Py_None); resultobj = Py_None; | |
3166 | return resultobj; | |
3167 | fail: | |
3168 | return NULL; | |
3169 | } | |
3170 | ||
3171 | ||
c370783e | 3172 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3173 | PyObject *resultobj; |
3174 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3175 | int result; | |
3176 | PyObject * obj0 = 0 ; | |
3177 | char *kwnames[] = { | |
3178 | (char *) "self", NULL | |
3179 | }; | |
3180 | ||
3181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
3182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3184 | { |
3185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3186 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
3187 | ||
3188 | wxPyEndAllowThreads(__tstate); | |
3189 | if (PyErr_Occurred()) SWIG_fail; | |
3190 | } | |
36ed4f51 RD |
3191 | { |
3192 | resultobj = SWIG_From_int((int)(result)); | |
3193 | } | |
d55e5bfc RD |
3194 | return resultobj; |
3195 | fail: | |
3196 | return NULL; | |
3197 | } | |
3198 | ||
3199 | ||
c370783e | 3200 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3201 | PyObject *resultobj; |
3202 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3203 | int result; | |
3204 | PyObject * obj0 = 0 ; | |
3205 | char *kwnames[] = { | |
3206 | (char *) "self", NULL | |
3207 | }; | |
3208 | ||
3209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
3210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3212 | { |
3213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3214 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
3215 | ||
3216 | wxPyEndAllowThreads(__tstate); | |
3217 | if (PyErr_Occurred()) SWIG_fail; | |
3218 | } | |
36ed4f51 RD |
3219 | { |
3220 | resultobj = SWIG_From_int((int)(result)); | |
3221 | } | |
d55e5bfc RD |
3222 | return resultobj; |
3223 | fail: | |
3224 | return NULL; | |
3225 | } | |
3226 | ||
3227 | ||
c370783e | 3228 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3229 | PyObject *obj; |
3230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3231 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
3232 | Py_INCREF(obj); | |
3233 | return Py_BuildValue((char *)""); | |
3234 | } | |
c370783e | 3235 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
3236 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
3237 | return 1; | |
3238 | } | |
3239 | ||
3240 | ||
36ed4f51 | 3241 | static PyObject *_wrap_CheckBoxNameStr_get(void) { |
d55e5bfc RD |
3242 | PyObject *pyobj; |
3243 | ||
3244 | { | |
3245 | #if wxUSE_UNICODE | |
3246 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3247 | #else | |
3248 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3249 | #endif | |
3250 | } | |
3251 | return pyobj; | |
3252 | } | |
3253 | ||
3254 | ||
c370783e | 3255 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3256 | PyObject *resultobj; |
3257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
3258 | int arg2 = (int) -1 ; |
3259 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3260 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
3261 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3262 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3263 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3264 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3265 | long arg6 = (long) 0 ; | |
3266 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3267 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3268 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
3269 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3270 | wxCheckBox *result; | |
b411df4a | 3271 | bool temp3 = false ; |
d55e5bfc RD |
3272 | wxPoint temp4 ; |
3273 | wxSize temp5 ; | |
b411df4a | 3274 | bool temp8 = false ; |
d55e5bfc RD |
3275 | PyObject * obj0 = 0 ; |
3276 | PyObject * obj1 = 0 ; | |
3277 | PyObject * obj2 = 0 ; | |
3278 | PyObject * obj3 = 0 ; | |
3279 | PyObject * obj4 = 0 ; | |
3280 | PyObject * obj5 = 0 ; | |
3281 | PyObject * obj6 = 0 ; | |
3282 | PyObject * obj7 = 0 ; | |
3283 | char *kwnames[] = { | |
3284 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3285 | }; | |
3286 | ||
bfddbb17 | 3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
3288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 3290 | if (obj1) { |
36ed4f51 RD |
3291 | { |
3292 | arg2 = (int)(SWIG_As_int(obj1)); | |
3293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3294 | } | |
bfddbb17 RD |
3295 | } |
3296 | if (obj2) { | |
3297 | { | |
3298 | arg3 = wxString_in_helper(obj2); | |
3299 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 3300 | temp3 = true; |
bfddbb17 | 3301 | } |
d55e5bfc RD |
3302 | } |
3303 | if (obj3) { | |
3304 | { | |
3305 | arg4 = &temp4; | |
3306 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3307 | } | |
3308 | } | |
3309 | if (obj4) { | |
3310 | { | |
3311 | arg5 = &temp5; | |
3312 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3313 | } | |
3314 | } | |
3315 | if (obj5) { | |
36ed4f51 RD |
3316 | { |
3317 | arg6 = (long)(SWIG_As_long(obj5)); | |
3318 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3319 | } | |
d55e5bfc RD |
3320 | } |
3321 | if (obj6) { | |
36ed4f51 RD |
3322 | { |
3323 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3324 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3325 | if (arg7 == NULL) { | |
3326 | SWIG_null_ref("wxValidator"); | |
3327 | } | |
3328 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
3329 | } |
3330 | } | |
3331 | if (obj7) { | |
3332 | { | |
3333 | arg8 = wxString_in_helper(obj7); | |
3334 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 3335 | temp8 = true; |
d55e5bfc RD |
3336 | } |
3337 | } | |
3338 | { | |
0439c23b | 3339 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3341 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3342 | ||
3343 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3344 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3345 | } |
3346 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
3347 | { | |
3348 | if (temp3) | |
3349 | delete arg3; | |
3350 | } | |
3351 | { | |
3352 | if (temp8) | |
3353 | delete arg8; | |
3354 | } | |
3355 | return resultobj; | |
3356 | fail: | |
3357 | { | |
3358 | if (temp3) | |
3359 | delete arg3; | |
3360 | } | |
3361 | { | |
3362 | if (temp8) | |
3363 | delete arg8; | |
3364 | } | |
3365 | return NULL; | |
3366 | } | |
3367 | ||
3368 | ||
c370783e | 3369 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3370 | PyObject *resultobj; |
3371 | wxCheckBox *result; | |
3372 | char *kwnames[] = { | |
3373 | NULL | |
3374 | }; | |
3375 | ||
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
3377 | { | |
0439c23b | 3378 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3380 | result = (wxCheckBox *)new wxCheckBox(); | |
3381 | ||
3382 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3383 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3384 | } |
3385 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
3386 | return resultobj; | |
3387 | fail: | |
3388 | return NULL; | |
3389 | } | |
3390 | ||
3391 | ||
c370783e | 3392 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3393 | PyObject *resultobj; |
3394 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3395 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
3396 | int arg3 = (int) -1 ; |
3397 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3398 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
3399 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3400 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3401 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3402 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3403 | long arg7 = (long) 0 ; | |
3404 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3405 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3406 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
3407 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3408 | bool result; | |
b411df4a | 3409 | bool temp4 = false ; |
d55e5bfc RD |
3410 | wxPoint temp5 ; |
3411 | wxSize temp6 ; | |
b411df4a | 3412 | bool temp9 = false ; |
d55e5bfc RD |
3413 | PyObject * obj0 = 0 ; |
3414 | PyObject * obj1 = 0 ; | |
3415 | PyObject * obj2 = 0 ; | |
3416 | PyObject * obj3 = 0 ; | |
3417 | PyObject * obj4 = 0 ; | |
3418 | PyObject * obj5 = 0 ; | |
3419 | PyObject * obj6 = 0 ; | |
3420 | PyObject * obj7 = 0 ; | |
3421 | PyObject * obj8 = 0 ; | |
3422 | char *kwnames[] = { | |
3423 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3424 | }; | |
3425 | ||
bfddbb17 | 3426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
3427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3429 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3430 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 3431 | if (obj2) { |
36ed4f51 RD |
3432 | { |
3433 | arg3 = (int)(SWIG_As_int(obj2)); | |
3434 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3435 | } | |
bfddbb17 RD |
3436 | } |
3437 | if (obj3) { | |
3438 | { | |
3439 | arg4 = wxString_in_helper(obj3); | |
3440 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 3441 | temp4 = true; |
bfddbb17 | 3442 | } |
d55e5bfc RD |
3443 | } |
3444 | if (obj4) { | |
3445 | { | |
3446 | arg5 = &temp5; | |
3447 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3448 | } | |
3449 | } | |
3450 | if (obj5) { | |
3451 | { | |
3452 | arg6 = &temp6; | |
3453 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3454 | } | |
3455 | } | |
3456 | if (obj6) { | |
36ed4f51 RD |
3457 | { |
3458 | arg7 = (long)(SWIG_As_long(obj6)); | |
3459 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3460 | } | |
d55e5bfc RD |
3461 | } |
3462 | if (obj7) { | |
36ed4f51 RD |
3463 | { |
3464 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3465 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3466 | if (arg8 == NULL) { | |
3467 | SWIG_null_ref("wxValidator"); | |
3468 | } | |
3469 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
3470 | } |
3471 | } | |
3472 | if (obj8) { | |
3473 | { | |
3474 | arg9 = wxString_in_helper(obj8); | |
3475 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 3476 | temp9 = true; |
d55e5bfc RD |
3477 | } |
3478 | } | |
3479 | { | |
3480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3481 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3482 | ||
3483 | wxPyEndAllowThreads(__tstate); | |
3484 | if (PyErr_Occurred()) SWIG_fail; | |
3485 | } | |
3486 | { | |
3487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3488 | } | |
3489 | { | |
3490 | if (temp4) | |
3491 | delete arg4; | |
3492 | } | |
3493 | { | |
3494 | if (temp9) | |
3495 | delete arg9; | |
3496 | } | |
3497 | return resultobj; | |
3498 | fail: | |
3499 | { | |
3500 | if (temp4) | |
3501 | delete arg4; | |
3502 | } | |
3503 | { | |
3504 | if (temp9) | |
3505 | delete arg9; | |
3506 | } | |
3507 | return NULL; | |
3508 | } | |
3509 | ||
3510 | ||
c370783e | 3511 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3512 | PyObject *resultobj; |
3513 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3514 | bool result; | |
3515 | PyObject * obj0 = 0 ; | |
3516 | char *kwnames[] = { | |
3517 | (char *) "self", NULL | |
3518 | }; | |
3519 | ||
3520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
3521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3523 | { |
3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3525 | result = (bool)(arg1)->GetValue(); | |
3526 | ||
3527 | wxPyEndAllowThreads(__tstate); | |
3528 | if (PyErr_Occurred()) SWIG_fail; | |
3529 | } | |
3530 | { | |
3531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3532 | } | |
3533 | return resultobj; | |
3534 | fail: | |
3535 | return NULL; | |
3536 | } | |
3537 | ||
3538 | ||
c370783e | 3539 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3540 | PyObject *resultobj; |
3541 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3542 | bool result; | |
3543 | PyObject * obj0 = 0 ; | |
3544 | char *kwnames[] = { | |
3545 | (char *) "self", NULL | |
3546 | }; | |
3547 | ||
3548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
3549 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3550 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3551 | { |
3552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3553 | result = (bool)(arg1)->IsChecked(); | |
3554 | ||
3555 | wxPyEndAllowThreads(__tstate); | |
3556 | if (PyErr_Occurred()) SWIG_fail; | |
3557 | } | |
3558 | { | |
3559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3560 | } | |
3561 | return resultobj; | |
3562 | fail: | |
3563 | return NULL; | |
3564 | } | |
3565 | ||
3566 | ||
c370783e | 3567 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3568 | PyObject *resultobj; |
3569 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3570 | bool arg2 ; | |
3571 | PyObject * obj0 = 0 ; | |
3572 | PyObject * obj1 = 0 ; | |
3573 | char *kwnames[] = { | |
3574 | (char *) "self",(char *) "state", NULL | |
3575 | }; | |
3576 | ||
3577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
3578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3580 | { | |
3581 | arg2 = (bool const)(SWIG_As_bool(obj1)); | |
3582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3583 | } | |
d55e5bfc RD |
3584 | { |
3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3586 | (arg1)->SetValue(arg2); | |
3587 | ||
3588 | wxPyEndAllowThreads(__tstate); | |
3589 | if (PyErr_Occurred()) SWIG_fail; | |
3590 | } | |
3591 | Py_INCREF(Py_None); resultobj = Py_None; | |
3592 | return resultobj; | |
3593 | fail: | |
3594 | return NULL; | |
3595 | } | |
3596 | ||
3597 | ||
c370783e | 3598 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3599 | PyObject *resultobj; |
3600 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
36ed4f51 | 3601 | wxCheckBoxState result; |
d55e5bfc RD |
3602 | PyObject * obj0 = 0 ; |
3603 | char *kwnames[] = { | |
3604 | (char *) "self", NULL | |
3605 | }; | |
3606 | ||
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
3608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3610 | { |
3611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 3612 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); |
d55e5bfc RD |
3613 | |
3614 | wxPyEndAllowThreads(__tstate); | |
3615 | if (PyErr_Occurred()) SWIG_fail; | |
3616 | } | |
36ed4f51 | 3617 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
3618 | return resultobj; |
3619 | fail: | |
3620 | return NULL; | |
3621 | } | |
3622 | ||
3623 | ||
c370783e | 3624 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3625 | PyObject *resultobj; |
3626 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
36ed4f51 | 3627 | wxCheckBoxState arg2 ; |
d55e5bfc RD |
3628 | PyObject * obj0 = 0 ; |
3629 | PyObject * obj1 = 0 ; | |
3630 | char *kwnames[] = { | |
3631 | (char *) "self",(char *) "state", NULL | |
3632 | }; | |
3633 | ||
3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
3635 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3636 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3637 | { | |
3638 | arg2 = (wxCheckBoxState)(SWIG_As_int(obj1)); | |
3639 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3640 | } | |
d55e5bfc RD |
3641 | { |
3642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3643 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
3644 | ||
3645 | wxPyEndAllowThreads(__tstate); | |
3646 | if (PyErr_Occurred()) SWIG_fail; | |
3647 | } | |
3648 | Py_INCREF(Py_None); resultobj = Py_None; | |
3649 | return resultobj; | |
3650 | fail: | |
3651 | return NULL; | |
3652 | } | |
3653 | ||
3654 | ||
c370783e | 3655 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3656 | PyObject *resultobj; |
3657 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3658 | bool result; | |
3659 | PyObject * obj0 = 0 ; | |
3660 | char *kwnames[] = { | |
3661 | (char *) "self", NULL | |
3662 | }; | |
3663 | ||
3664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
3665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3667 | { |
3668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3669 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
3670 | ||
3671 | wxPyEndAllowThreads(__tstate); | |
3672 | if (PyErr_Occurred()) SWIG_fail; | |
3673 | } | |
3674 | { | |
3675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3676 | } | |
3677 | return resultobj; | |
3678 | fail: | |
3679 | return NULL; | |
3680 | } | |
3681 | ||
3682 | ||
c370783e | 3683 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3684 | PyObject *resultobj; |
3685 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3686 | bool result; | |
3687 | PyObject * obj0 = 0 ; | |
3688 | char *kwnames[] = { | |
3689 | (char *) "self", NULL | |
3690 | }; | |
3691 | ||
3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
3693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
3695 | { |
3696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3697 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
3698 | ||
3699 | wxPyEndAllowThreads(__tstate); | |
3700 | if (PyErr_Occurred()) SWIG_fail; | |
3701 | } | |
3702 | { | |
3703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3704 | } | |
3705 | return resultobj; | |
3706 | fail: | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
c370783e | 3711 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 3712 | PyObject *resultobj; |
36ed4f51 | 3713 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
3714 | wxVisualAttributes result; |
3715 | PyObject * obj0 = 0 ; | |
3716 | char *kwnames[] = { | |
3717 | (char *) "variant", NULL | |
3718 | }; | |
3719 | ||
3720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3721 | if (obj0) { | |
36ed4f51 RD |
3722 | { |
3723 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
3724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3725 | } | |
f20a2e1f RD |
3726 | } |
3727 | { | |
0439c23b | 3728 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
3729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3730 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3731 | ||
3732 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3733 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
3734 | } |
3735 | { | |
3736 | wxVisualAttributes * resultptr; | |
36ed4f51 | 3737 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
3738 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
3739 | } | |
3740 | return resultobj; | |
3741 | fail: | |
3742 | return NULL; | |
3743 | } | |
3744 | ||
3745 | ||
c370783e | 3746 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3747 | PyObject *obj; |
3748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3749 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
3750 | Py_INCREF(obj); | |
3751 | return Py_BuildValue((char *)""); | |
3752 | } | |
c370783e | 3753 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
d55e5bfc RD |
3754 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
3755 | return 1; | |
3756 | } | |
3757 | ||
3758 | ||
36ed4f51 | 3759 | static PyObject *_wrap_ChoiceNameStr_get(void) { |
d55e5bfc RD |
3760 | PyObject *pyobj; |
3761 | ||
3762 | { | |
3763 | #if wxUSE_UNICODE | |
3764 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3765 | #else | |
3766 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3767 | #endif | |
3768 | } | |
3769 | return pyobj; | |
3770 | } | |
3771 | ||
3772 | ||
c370783e | 3773 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3774 | PyObject *resultobj; |
3775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3776 | int arg2 = (int) -1 ; | |
3777 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3778 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3779 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3780 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3781 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
3782 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
3783 | long arg6 = (long) 0 ; | |
3784 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3785 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3786 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
3787 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3788 | wxChoice *result; | |
3789 | wxPoint temp3 ; | |
3790 | wxSize temp4 ; | |
b411df4a RD |
3791 | bool temp5 = false ; |
3792 | bool temp8 = false ; | |
d55e5bfc RD |
3793 | PyObject * obj0 = 0 ; |
3794 | PyObject * obj1 = 0 ; | |
3795 | PyObject * obj2 = 0 ; | |
3796 | PyObject * obj3 = 0 ; | |
3797 | PyObject * obj4 = 0 ; | |
3798 | PyObject * obj5 = 0 ; | |
3799 | PyObject * obj6 = 0 ; | |
3800 | PyObject * obj7 = 0 ; | |
3801 | char *kwnames[] = { | |
3802 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3803 | }; | |
3804 | ||
3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
36ed4f51 RD |
3806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 3808 | if (obj1) { |
36ed4f51 RD |
3809 | { |
3810 | arg2 = (int)(SWIG_As_int(obj1)); | |
3811 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3812 | } | |
d55e5bfc RD |
3813 | } |
3814 | if (obj2) { | |
3815 | { | |
3816 | arg3 = &temp3; | |
3817 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3818 | } | |
3819 | } | |
3820 | if (obj3) { | |
3821 | { | |
3822 | arg4 = &temp4; | |
3823 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3824 | } | |
3825 | } | |
3826 | if (obj4) { | |
3827 | { | |
3828 | if (! PySequence_Check(obj4)) { | |
3829 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3830 | SWIG_fail; | |
3831 | } | |
3832 | arg5 = new wxArrayString; | |
b411df4a | 3833 | temp5 = true; |
d55e5bfc RD |
3834 | int i, len=PySequence_Length(obj4); |
3835 | for (i=0; i<len; i++) { | |
3836 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 3837 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 3838 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
3839 | arg5->Add(*s); |
3840 | delete s; | |
d55e5bfc | 3841 | Py_DECREF(item); |
d55e5bfc RD |
3842 | } |
3843 | } | |
3844 | } | |
3845 | if (obj5) { | |
36ed4f51 RD |
3846 | { |
3847 | arg6 = (long)(SWIG_As_long(obj5)); | |
3848 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3849 | } | |
d55e5bfc RD |
3850 | } |
3851 | if (obj6) { | |
36ed4f51 RD |
3852 | { |
3853 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3854 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3855 | if (arg7 == NULL) { | |
3856 | SWIG_null_ref("wxValidator"); | |
3857 | } | |
3858 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
3859 | } |
3860 | } | |
3861 | if (obj7) { | |
3862 | { | |
3863 | arg8 = wxString_in_helper(obj7); | |
3864 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 3865 | temp8 = true; |
d55e5bfc RD |
3866 | } |
3867 | } | |
3868 | { | |
0439c23b | 3869 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3871 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3872 | ||
3873 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3874 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3875 | } |
3876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
3877 | { | |
3878 | if (temp5) delete arg5; | |
3879 | } | |
3880 | { | |
3881 | if (temp8) | |
3882 | delete arg8; | |
3883 | } | |
3884 | return resultobj; | |
3885 | fail: | |
3886 | { | |
3887 | if (temp5) delete arg5; | |
3888 | } | |
3889 | { | |
3890 | if (temp8) | |
3891 | delete arg8; | |
3892 | } | |
3893 | return NULL; | |
3894 | } | |
3895 | ||
3896 | ||
c370783e | 3897 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3898 | PyObject *resultobj; |
3899 | wxChoice *result; | |
3900 | char *kwnames[] = { | |
3901 | NULL | |
3902 | }; | |
3903 | ||
3904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
3905 | { | |
0439c23b | 3906 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3908 | result = (wxChoice *)new wxChoice(); | |
3909 | ||
3910 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3911 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3912 | } |
3913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
3914 | return resultobj; | |
3915 | fail: | |
3916 | return NULL; | |
3917 | } | |
3918 | ||
3919 | ||
c370783e | 3920 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3921 | PyObject *resultobj; |
3922 | wxChoice *arg1 = (wxChoice *) 0 ; | |
3923 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3924 | int arg3 = (int) -1 ; | |
3925 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3926 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3927 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3928 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3929 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
3930 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3931 | long arg7 = (long) 0 ; | |
3932 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3933 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3934 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
3935 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3936 | bool result; | |
3937 | wxPoint temp4 ; | |
3938 | wxSize temp5 ; | |
b411df4a RD |
3939 | bool temp6 = false ; |
3940 | bool temp9 = false ; | |
d55e5bfc RD |
3941 | PyObject * obj0 = 0 ; |
3942 | PyObject * obj1 = 0 ; | |
3943 | PyObject * obj2 = 0 ; | |
3944 | PyObject * obj3 = 0 ; | |
3945 | PyObject * obj4 = 0 ; | |
3946 | PyObject * obj5 = 0 ; | |
3947 | PyObject * obj6 = 0 ; | |
3948 | PyObject * obj7 = 0 ; | |
3949 | PyObject * obj8 = 0 ; | |
3950 | char *kwnames[] = { | |
3951 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3952 | }; | |
3953 | ||
3954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
36ed4f51 RD |
3955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); |
3956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3957 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3958 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 3959 | if (obj2) { |
36ed4f51 RD |
3960 | { |
3961 | arg3 = (int)(SWIG_As_int(obj2)); | |
3962 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3963 | } | |
d55e5bfc RD |
3964 | } |
3965 | if (obj3) { | |
3966 | { | |
3967 | arg4 = &temp4; | |
3968 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3969 | } | |
3970 | } | |
3971 | if (obj4) { | |
3972 | { | |
3973 | arg5 = &temp5; | |
3974 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3975 | } | |
3976 | } | |
3977 | if (obj5) { | |
3978 | { | |
3979 | if (! PySequence_Check(obj5)) { | |
3980 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3981 | SWIG_fail; | |
3982 | } | |
3983 | arg6 = new wxArrayString; | |
b411df4a | 3984 | temp6 = true; |
d55e5bfc RD |
3985 | int i, len=PySequence_Length(obj5); |
3986 | for (i=0; i<len; i++) { | |
3987 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 3988 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 3989 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
3990 | arg6->Add(*s); |
3991 | delete s; | |
d55e5bfc | 3992 | Py_DECREF(item); |
d55e5bfc RD |
3993 | } |
3994 | } | |
3995 | } | |
3996 | if (obj6) { | |
36ed4f51 RD |
3997 | { |
3998 | arg7 = (long)(SWIG_As_long(obj6)); | |
3999 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4000 | } | |
d55e5bfc RD |
4001 | } |
4002 | if (obj7) { | |
36ed4f51 RD |
4003 | { |
4004 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4005 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4006 | if (arg8 == NULL) { | |
4007 | SWIG_null_ref("wxValidator"); | |
4008 | } | |
4009 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
4010 | } |
4011 | } | |
4012 | if (obj8) { | |
4013 | { | |
4014 | arg9 = wxString_in_helper(obj8); | |
4015 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 4016 | temp9 = true; |
d55e5bfc RD |
4017 | } |
4018 | } | |
4019 | { | |
4020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4021 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4022 | ||
4023 | wxPyEndAllowThreads(__tstate); | |
4024 | if (PyErr_Occurred()) SWIG_fail; | |
4025 | } | |
4026 | { | |
4027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4028 | } | |
4029 | { | |
4030 | if (temp6) delete arg6; | |
4031 | } | |
4032 | { | |
4033 | if (temp9) | |
4034 | delete arg9; | |
4035 | } | |
4036 | return resultobj; | |
4037 | fail: | |
4038 | { | |
4039 | if (temp6) delete arg6; | |
4040 | } | |
4041 | { | |
4042 | if (temp9) | |
4043 | delete arg9; | |
4044 | } | |
4045 | return NULL; | |
4046 | } | |
4047 | ||
4048 | ||
943e8dfd RD |
4049 | static PyObject *_wrap_Choice_GetCurrentSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
4050 | PyObject *resultobj; | |
4051 | wxChoice *arg1 = (wxChoice *) 0 ; | |
4052 | int result; | |
4053 | PyObject * obj0 = 0 ; | |
4054 | char *kwnames[] = { | |
4055 | (char *) "self", NULL | |
4056 | }; | |
4057 | ||
4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetCurrentSelection",kwnames,&obj0)) goto fail; | |
4059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); | |
4060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4061 | { | |
4062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4063 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
4064 | ||
4065 | wxPyEndAllowThreads(__tstate); | |
4066 | if (PyErr_Occurred()) SWIG_fail; | |
4067 | } | |
4068 | { | |
4069 | resultobj = SWIG_From_int((int)(result)); | |
4070 | } | |
4071 | return resultobj; | |
4072 | fail: | |
4073 | return NULL; | |
4074 | } | |
4075 | ||
4076 | ||
c370783e | 4077 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 4078 | PyObject *resultobj; |
36ed4f51 | 4079 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
4080 | wxVisualAttributes result; |
4081 | PyObject * obj0 = 0 ; | |
4082 | char *kwnames[] = { | |
4083 | (char *) "variant", NULL | |
4084 | }; | |
4085 | ||
4086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4087 | if (obj0) { | |
36ed4f51 RD |
4088 | { |
4089 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
4090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4091 | } | |
f20a2e1f RD |
4092 | } |
4093 | { | |
0439c23b | 4094 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4096 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4097 | ||
4098 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4099 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4100 | } |
4101 | { | |
4102 | wxVisualAttributes * resultptr; | |
36ed4f51 | 4103 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
4104 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4105 | } | |
4106 | return resultobj; | |
4107 | fail: | |
4108 | return NULL; | |
4109 | } | |
4110 | ||
4111 | ||
c370783e | 4112 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4113 | PyObject *obj; |
4114 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4115 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
4116 | Py_INCREF(obj); | |
4117 | return Py_BuildValue((char *)""); | |
4118 | } | |
c370783e | 4119 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
4120 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
4121 | return 1; | |
4122 | } | |
4123 | ||
4124 | ||
36ed4f51 | 4125 | static PyObject *_wrap_ComboBoxNameStr_get(void) { |
d55e5bfc RD |
4126 | PyObject *pyobj; |
4127 | ||
4128 | { | |
4129 | #if wxUSE_UNICODE | |
4130 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4131 | #else | |
4132 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4133 | #endif | |
4134 | } | |
4135 | return pyobj; | |
4136 | } | |
4137 | ||
4138 | ||
c370783e | 4139 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4140 | PyObject *resultobj; |
4141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4142 | int arg2 = (int) -1 ; | |
4143 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4144 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4145 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4146 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4147 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4148 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4149 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
4150 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
4151 | long arg7 = (long) 0 ; | |
4152 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4153 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4154 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
4155 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4156 | wxComboBox *result; | |
b411df4a | 4157 | bool temp3 = false ; |
d55e5bfc RD |
4158 | wxPoint temp4 ; |
4159 | wxSize temp5 ; | |
b411df4a RD |
4160 | bool temp6 = false ; |
4161 | bool temp9 = false ; | |
d55e5bfc RD |
4162 | PyObject * obj0 = 0 ; |
4163 | PyObject * obj1 = 0 ; | |
4164 | PyObject * obj2 = 0 ; | |
4165 | PyObject * obj3 = 0 ; | |
4166 | PyObject * obj4 = 0 ; | |
4167 | PyObject * obj5 = 0 ; | |
4168 | PyObject * obj6 = 0 ; | |
4169 | PyObject * obj7 = 0 ; | |
4170 | PyObject * obj8 = 0 ; | |
4171 | char *kwnames[] = { | |
4172 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4173 | }; | |
4174 | ||
4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
36ed4f51 RD |
4176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 4178 | if (obj1) { |
36ed4f51 RD |
4179 | { |
4180 | arg2 = (int)(SWIG_As_int(obj1)); | |
4181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4182 | } | |
d55e5bfc RD |
4183 | } |
4184 | if (obj2) { | |
4185 | { | |
4186 | arg3 = wxString_in_helper(obj2); | |
4187 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 4188 | temp3 = true; |
d55e5bfc RD |
4189 | } |
4190 | } | |
4191 | if (obj3) { | |
4192 | { | |
4193 | arg4 = &temp4; | |
4194 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4195 | } | |
4196 | } | |
4197 | if (obj4) { | |
4198 | { | |
4199 | arg5 = &temp5; | |
4200 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4201 | } | |
4202 | } | |
4203 | if (obj5) { | |
4204 | { | |
4205 | if (! PySequence_Check(obj5)) { | |
4206 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4207 | SWIG_fail; | |
4208 | } | |
4209 | arg6 = new wxArrayString; | |
b411df4a | 4210 | temp6 = true; |
d55e5bfc RD |
4211 | int i, len=PySequence_Length(obj5); |
4212 | for (i=0; i<len; i++) { | |
4213 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 4214 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 4215 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4216 | arg6->Add(*s); |
4217 | delete s; | |
d55e5bfc | 4218 | Py_DECREF(item); |
d55e5bfc RD |
4219 | } |
4220 | } | |
4221 | } | |
4222 | if (obj6) { | |
36ed4f51 RD |
4223 | { |
4224 | arg7 = (long)(SWIG_As_long(obj6)); | |
4225 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4226 | } | |
d55e5bfc RD |
4227 | } |
4228 | if (obj7) { | |
36ed4f51 RD |
4229 | { |
4230 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4231 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4232 | if (arg8 == NULL) { | |
4233 | SWIG_null_ref("wxValidator"); | |
4234 | } | |
4235 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
4236 | } |
4237 | } | |
4238 | if (obj8) { | |
4239 | { | |
4240 | arg9 = wxString_in_helper(obj8); | |
4241 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 4242 | temp9 = true; |
d55e5bfc RD |
4243 | } |
4244 | } | |
4245 | { | |
0439c23b | 4246 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4248 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4249 | ||
4250 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4251 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4252 | } |
4253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
4254 | { | |
4255 | if (temp3) | |
4256 | delete arg3; | |
4257 | } | |
4258 | { | |
4259 | if (temp6) delete arg6; | |
4260 | } | |
4261 | { | |
4262 | if (temp9) | |
4263 | delete arg9; | |
4264 | } | |
4265 | return resultobj; | |
4266 | fail: | |
4267 | { | |
4268 | if (temp3) | |
4269 | delete arg3; | |
4270 | } | |
4271 | { | |
4272 | if (temp6) delete arg6; | |
4273 | } | |
4274 | { | |
4275 | if (temp9) | |
4276 | delete arg9; | |
4277 | } | |
4278 | return NULL; | |
4279 | } | |
4280 | ||
4281 | ||
c370783e | 4282 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4283 | PyObject *resultobj; |
4284 | wxComboBox *result; | |
4285 | char *kwnames[] = { | |
4286 | NULL | |
4287 | }; | |
4288 | ||
4289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
4290 | { | |
0439c23b | 4291 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4293 | result = (wxComboBox *)new wxComboBox(); | |
4294 | ||
4295 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4296 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4297 | } |
4298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
4299 | return resultobj; | |
4300 | fail: | |
4301 | return NULL; | |
4302 | } | |
4303 | ||
4304 | ||
c370783e | 4305 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4306 | PyObject *resultobj; |
4307 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4308 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4309 | int arg3 = (int) -1 ; | |
4310 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4311 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4312 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4313 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4314 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4315 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4316 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
4317 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
4318 | long arg8 = (long) 0 ; | |
4319 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4320 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
4321 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
4322 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
4323 | bool result; | |
b411df4a | 4324 | bool temp4 = false ; |
d55e5bfc RD |
4325 | wxPoint temp5 ; |
4326 | wxSize temp6 ; | |
b411df4a RD |
4327 | bool temp7 = false ; |
4328 | bool temp10 = false ; | |
d55e5bfc RD |
4329 | PyObject * obj0 = 0 ; |
4330 | PyObject * obj1 = 0 ; | |
4331 | PyObject * obj2 = 0 ; | |
4332 | PyObject * obj3 = 0 ; | |
4333 | PyObject * obj4 = 0 ; | |
4334 | PyObject * obj5 = 0 ; | |
4335 | PyObject * obj6 = 0 ; | |
4336 | PyObject * obj7 = 0 ; | |
4337 | PyObject * obj8 = 0 ; | |
4338 | PyObject * obj9 = 0 ; | |
4339 | char *kwnames[] = { | |
4340 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4341 | }; | |
4342 | ||
4343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
36ed4f51 RD |
4344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4346 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4347 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 4348 | if (obj2) { |
36ed4f51 RD |
4349 | { |
4350 | arg3 = (int)(SWIG_As_int(obj2)); | |
4351 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4352 | } | |
d55e5bfc RD |
4353 | } |
4354 | if (obj3) { | |
4355 | { | |
4356 | arg4 = wxString_in_helper(obj3); | |
4357 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 4358 | temp4 = true; |
d55e5bfc RD |
4359 | } |
4360 | } | |
4361 | if (obj4) { | |
4362 | { | |
4363 | arg5 = &temp5; | |
4364 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4365 | } | |
4366 | } | |
4367 | if (obj5) { | |
4368 | { | |
4369 | arg6 = &temp6; | |
4370 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4371 | } | |
4372 | } | |
4373 | if (obj6) { | |
4374 | { | |
4375 | if (! PySequence_Check(obj6)) { | |
4376 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4377 | SWIG_fail; | |
4378 | } | |
4379 | arg7 = new wxArrayString; | |
b411df4a | 4380 | temp7 = true; |
d55e5bfc RD |
4381 | int i, len=PySequence_Length(obj6); |
4382 | for (i=0; i<len; i++) { | |
4383 | PyObject* item = PySequence_GetItem(obj6, i); | |
71237536 | 4384 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 4385 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4386 | arg7->Add(*s); |
4387 | delete s; | |
d55e5bfc | 4388 | Py_DECREF(item); |
d55e5bfc RD |
4389 | } |
4390 | } | |
4391 | } | |
4392 | if (obj7) { | |
36ed4f51 RD |
4393 | { |
4394 | arg8 = (long)(SWIG_As_long(obj7)); | |
4395 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4396 | } | |
d55e5bfc RD |
4397 | } |
4398 | if (obj8) { | |
36ed4f51 RD |
4399 | { |
4400 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4401 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4402 | if (arg9 == NULL) { | |
4403 | SWIG_null_ref("wxValidator"); | |
4404 | } | |
4405 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d55e5bfc RD |
4406 | } |
4407 | } | |
4408 | if (obj9) { | |
4409 | { | |
4410 | arg10 = wxString_in_helper(obj9); | |
4411 | if (arg10 == NULL) SWIG_fail; | |
b411df4a | 4412 | temp10 = true; |
d55e5bfc RD |
4413 | } |
4414 | } | |
4415 | { | |
4416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4417 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
4418 | ||
4419 | wxPyEndAllowThreads(__tstate); | |
4420 | if (PyErr_Occurred()) SWIG_fail; | |
4421 | } | |
4422 | { | |
4423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4424 | } | |
4425 | { | |
4426 | if (temp4) | |
4427 | delete arg4; | |
4428 | } | |
4429 | { | |
4430 | if (temp7) delete arg7; | |
4431 | } | |
4432 | { | |
4433 | if (temp10) | |
4434 | delete arg10; | |
4435 | } | |
4436 | return resultobj; | |
4437 | fail: | |
4438 | { | |
4439 | if (temp4) | |
4440 | delete arg4; | |
4441 | } | |
4442 | { | |
4443 | if (temp7) delete arg7; | |
4444 | } | |
4445 | { | |
4446 | if (temp10) | |
4447 | delete arg10; | |
4448 | } | |
4449 | return NULL; | |
4450 | } | |
4451 | ||
4452 | ||
c370783e | 4453 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4454 | PyObject *resultobj; |
4455 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4456 | wxString result; | |
4457 | PyObject * obj0 = 0 ; | |
4458 | char *kwnames[] = { | |
4459 | (char *) "self", NULL | |
4460 | }; | |
4461 | ||
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
4463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4465 | { |
4466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4467 | result = ((wxComboBox const *)arg1)->GetValue(); | |
4468 | ||
4469 | wxPyEndAllowThreads(__tstate); | |
4470 | if (PyErr_Occurred()) SWIG_fail; | |
4471 | } | |
4472 | { | |
4473 | #if wxUSE_UNICODE | |
4474 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4475 | #else | |
4476 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4477 | #endif | |
4478 | } | |
4479 | return resultobj; | |
4480 | fail: | |
4481 | return NULL; | |
4482 | } | |
4483 | ||
4484 | ||
c370783e | 4485 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4486 | PyObject *resultobj; |
4487 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4488 | wxString *arg2 = 0 ; | |
b411df4a | 4489 | bool temp2 = false ; |
d55e5bfc RD |
4490 | PyObject * obj0 = 0 ; |
4491 | PyObject * obj1 = 0 ; | |
4492 | char *kwnames[] = { | |
4493 | (char *) "self",(char *) "value", NULL | |
4494 | }; | |
4495 | ||
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
4497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4499 | { |
4500 | arg2 = wxString_in_helper(obj1); | |
4501 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4502 | temp2 = true; |
d55e5bfc RD |
4503 | } |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | (arg1)->SetValue((wxString const &)*arg2); | |
4507 | ||
4508 | wxPyEndAllowThreads(__tstate); | |
4509 | if (PyErr_Occurred()) SWIG_fail; | |
4510 | } | |
4511 | Py_INCREF(Py_None); resultobj = Py_None; | |
4512 | { | |
4513 | if (temp2) | |
4514 | delete arg2; | |
4515 | } | |
4516 | return resultobj; | |
4517 | fail: | |
4518 | { | |
4519 | if (temp2) | |
4520 | delete arg2; | |
4521 | } | |
4522 | return NULL; | |
4523 | } | |
4524 | ||
4525 | ||
c370783e | 4526 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4527 | PyObject *resultobj; |
4528 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4529 | PyObject * obj0 = 0 ; | |
4530 | char *kwnames[] = { | |
4531 | (char *) "self", NULL | |
4532 | }; | |
4533 | ||
4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
4535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4537 | { |
4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4539 | (arg1)->Copy(); | |
4540 | ||
4541 | wxPyEndAllowThreads(__tstate); | |
4542 | if (PyErr_Occurred()) SWIG_fail; | |
4543 | } | |
4544 | Py_INCREF(Py_None); resultobj = Py_None; | |
4545 | return resultobj; | |
4546 | fail: | |
4547 | return NULL; | |
4548 | } | |
4549 | ||
4550 | ||
c370783e | 4551 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4552 | PyObject *resultobj; |
4553 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4554 | PyObject * obj0 = 0 ; | |
4555 | char *kwnames[] = { | |
4556 | (char *) "self", NULL | |
4557 | }; | |
4558 | ||
4559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
4560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4562 | { |
4563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4564 | (arg1)->Cut(); | |
4565 | ||
4566 | wxPyEndAllowThreads(__tstate); | |
4567 | if (PyErr_Occurred()) SWIG_fail; | |
4568 | } | |
4569 | Py_INCREF(Py_None); resultobj = Py_None; | |
4570 | return resultobj; | |
4571 | fail: | |
4572 | return NULL; | |
4573 | } | |
4574 | ||
4575 | ||
c370783e | 4576 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4577 | PyObject *resultobj; |
4578 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4579 | PyObject * obj0 = 0 ; | |
4580 | char *kwnames[] = { | |
4581 | (char *) "self", NULL | |
4582 | }; | |
4583 | ||
4584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
4585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4587 | { |
4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4589 | (arg1)->Paste(); | |
4590 | ||
4591 | wxPyEndAllowThreads(__tstate); | |
4592 | if (PyErr_Occurred()) SWIG_fail; | |
4593 | } | |
4594 | Py_INCREF(Py_None); resultobj = Py_None; | |
4595 | return resultobj; | |
4596 | fail: | |
4597 | return NULL; | |
4598 | } | |
4599 | ||
4600 | ||
c370783e | 4601 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4602 | PyObject *resultobj; |
4603 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4604 | long arg2 ; | |
4605 | PyObject * obj0 = 0 ; | |
4606 | PyObject * obj1 = 0 ; | |
4607 | char *kwnames[] = { | |
4608 | (char *) "self",(char *) "pos", NULL | |
4609 | }; | |
4610 | ||
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
4612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4614 | { | |
4615 | arg2 = (long)(SWIG_As_long(obj1)); | |
4616 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4617 | } | |
d55e5bfc RD |
4618 | { |
4619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4620 | (arg1)->SetInsertionPoint(arg2); | |
4621 | ||
4622 | wxPyEndAllowThreads(__tstate); | |
4623 | if (PyErr_Occurred()) SWIG_fail; | |
4624 | } | |
4625 | Py_INCREF(Py_None); resultobj = Py_None; | |
4626 | return resultobj; | |
4627 | fail: | |
4628 | return NULL; | |
4629 | } | |
4630 | ||
4631 | ||
c370783e | 4632 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4633 | PyObject *resultobj; |
4634 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4635 | long result; | |
4636 | PyObject * obj0 = 0 ; | |
4637 | char *kwnames[] = { | |
4638 | (char *) "self", NULL | |
4639 | }; | |
4640 | ||
4641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
4642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4644 | { |
4645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4646 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
4647 | ||
4648 | wxPyEndAllowThreads(__tstate); | |
4649 | if (PyErr_Occurred()) SWIG_fail; | |
4650 | } | |
36ed4f51 RD |
4651 | { |
4652 | resultobj = SWIG_From_long((long)(result)); | |
4653 | } | |
d55e5bfc RD |
4654 | return resultobj; |
4655 | fail: | |
4656 | return NULL; | |
4657 | } | |
4658 | ||
4659 | ||
c370783e | 4660 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4661 | PyObject *resultobj; |
4662 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4663 | long result; | |
4664 | PyObject * obj0 = 0 ; | |
4665 | char *kwnames[] = { | |
4666 | (char *) "self", NULL | |
4667 | }; | |
4668 | ||
4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
4670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4672 | { |
4673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4674 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
4675 | ||
4676 | wxPyEndAllowThreads(__tstate); | |
4677 | if (PyErr_Occurred()) SWIG_fail; | |
4678 | } | |
36ed4f51 RD |
4679 | { |
4680 | resultobj = SWIG_From_long((long)(result)); | |
4681 | } | |
d55e5bfc RD |
4682 | return resultobj; |
4683 | fail: | |
4684 | return NULL; | |
4685 | } | |
4686 | ||
4687 | ||
c370783e | 4688 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4689 | PyObject *resultobj; |
4690 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4691 | long arg2 ; | |
4692 | long arg3 ; | |
4693 | wxString *arg4 = 0 ; | |
b411df4a | 4694 | bool temp4 = false ; |
d55e5bfc RD |
4695 | PyObject * obj0 = 0 ; |
4696 | PyObject * obj1 = 0 ; | |
4697 | PyObject * obj2 = 0 ; | |
4698 | PyObject * obj3 = 0 ; | |
4699 | char *kwnames[] = { | |
4700 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
4701 | }; | |
4702 | ||
4703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
4704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4706 | { | |
4707 | arg2 = (long)(SWIG_As_long(obj1)); | |
4708 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4709 | } | |
4710 | { | |
4711 | arg3 = (long)(SWIG_As_long(obj2)); | |
4712 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4713 | } | |
d55e5bfc RD |
4714 | { |
4715 | arg4 = wxString_in_helper(obj3); | |
4716 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 4717 | temp4 = true; |
d55e5bfc RD |
4718 | } |
4719 | { | |
4720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4721 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
4722 | ||
4723 | wxPyEndAllowThreads(__tstate); | |
4724 | if (PyErr_Occurred()) SWIG_fail; | |
4725 | } | |
4726 | Py_INCREF(Py_None); resultobj = Py_None; | |
4727 | { | |
4728 | if (temp4) | |
4729 | delete arg4; | |
4730 | } | |
4731 | return resultobj; | |
4732 | fail: | |
4733 | { | |
4734 | if (temp4) | |
4735 | delete arg4; | |
4736 | } | |
4737 | return NULL; | |
4738 | } | |
4739 | ||
4740 | ||
c370783e | 4741 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4742 | PyObject *resultobj; |
4743 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4744 | int arg2 ; | |
4745 | PyObject * obj0 = 0 ; | |
4746 | PyObject * obj1 = 0 ; | |
4747 | char *kwnames[] = { | |
4748 | (char *) "self",(char *) "n", NULL | |
4749 | }; | |
4750 | ||
4751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
4752 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4754 | { | |
4755 | arg2 = (int)(SWIG_As_int(obj1)); | |
4756 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4757 | } | |
d55e5bfc RD |
4758 | { |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | (arg1)->SetSelection(arg2); | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | Py_INCREF(Py_None); resultobj = Py_None; | |
4766 | return resultobj; | |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
c370783e | 4772 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4773 | PyObject *resultobj; |
4774 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4775 | long arg2 ; | |
4776 | long arg3 ; | |
4777 | PyObject * obj0 = 0 ; | |
4778 | PyObject * obj1 = 0 ; | |
4779 | PyObject * obj2 = 0 ; | |
4780 | char *kwnames[] = { | |
4781 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4782 | }; | |
4783 | ||
4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
4785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4787 | { | |
4788 | arg2 = (long)(SWIG_As_long(obj1)); | |
4789 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4790 | } | |
4791 | { | |
4792 | arg3 = (long)(SWIG_As_long(obj2)); | |
4793 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4794 | } | |
d55e5bfc RD |
4795 | { |
4796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4797 | (arg1)->SetSelection(arg2,arg3); | |
4798 | ||
4799 | wxPyEndAllowThreads(__tstate); | |
4800 | if (PyErr_Occurred()) SWIG_fail; | |
4801 | } | |
4802 | Py_INCREF(Py_None); resultobj = Py_None; | |
4803 | return resultobj; | |
4804 | fail: | |
4805 | return NULL; | |
4806 | } | |
4807 | ||
4808 | ||
943e8dfd RD |
4809 | static PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
4810 | PyObject *resultobj; | |
4811 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4812 | int result; | |
4813 | PyObject * obj0 = 0 ; | |
4814 | char *kwnames[] = { | |
4815 | (char *) "self", NULL | |
4816 | }; | |
4817 | ||
4818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetCurrentSelection",kwnames,&obj0)) goto fail; | |
4819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4821 | { | |
4822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4823 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
4824 | ||
4825 | wxPyEndAllowThreads(__tstate); | |
4826 | if (PyErr_Occurred()) SWIG_fail; | |
4827 | } | |
4828 | { | |
4829 | resultobj = SWIG_From_int((int)(result)); | |
4830 | } | |
4831 | return resultobj; | |
4832 | fail: | |
4833 | return NULL; | |
4834 | } | |
4835 | ||
4836 | ||
c370783e | 4837 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
4838 | PyObject *resultobj; |
4839 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4840 | wxString *arg2 = 0 ; | |
4841 | bool result; | |
b411df4a | 4842 | bool temp2 = false ; |
121b9a67 RD |
4843 | PyObject * obj0 = 0 ; |
4844 | PyObject * obj1 = 0 ; | |
4845 | char *kwnames[] = { | |
4846 | (char *) "self",(char *) "string", NULL | |
4847 | }; | |
4848 | ||
4849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
4850 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4851 | if (SWIG_arg_fail(1)) SWIG_fail; | |
121b9a67 RD |
4852 | { |
4853 | arg2 = wxString_in_helper(obj1); | |
4854 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4855 | temp2 = true; |
121b9a67 RD |
4856 | } |
4857 | { | |
4858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4859 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
4860 | ||
4861 | wxPyEndAllowThreads(__tstate); | |
4862 | if (PyErr_Occurred()) SWIG_fail; | |
4863 | } | |
4864 | { | |
4865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4866 | } | |
4867 | { | |
4868 | if (temp2) | |
4869 | delete arg2; | |
4870 | } | |
4871 | return resultobj; | |
4872 | fail: | |
4873 | { | |
4874 | if (temp2) | |
4875 | delete arg2; | |
4876 | } | |
4877 | return NULL; | |
4878 | } | |
4879 | ||
4880 | ||
c370783e | 4881 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
4882 | PyObject *resultobj; |
4883 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4884 | int arg2 ; | |
4885 | wxString *arg3 = 0 ; | |
b411df4a | 4886 | bool temp3 = false ; |
121b9a67 RD |
4887 | PyObject * obj0 = 0 ; |
4888 | PyObject * obj1 = 0 ; | |
4889 | PyObject * obj2 = 0 ; | |
4890 | char *kwnames[] = { | |
4891 | (char *) "self",(char *) "n",(char *) "string", NULL | |
4892 | }; | |
4893 | ||
4894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
4895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4897 | { | |
4898 | arg2 = (int)(SWIG_As_int(obj1)); | |
4899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4900 | } | |
121b9a67 RD |
4901 | { |
4902 | arg3 = wxString_in_helper(obj2); | |
4903 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 4904 | temp3 = true; |
121b9a67 RD |
4905 | } |
4906 | { | |
4907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4908 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
4909 | ||
4910 | wxPyEndAllowThreads(__tstate); | |
4911 | if (PyErr_Occurred()) SWIG_fail; | |
4912 | } | |
4913 | Py_INCREF(Py_None); resultobj = Py_None; | |
4914 | { | |
4915 | if (temp3) | |
4916 | delete arg3; | |
4917 | } | |
4918 | return resultobj; | |
4919 | fail: | |
4920 | { | |
4921 | if (temp3) | |
4922 | delete arg3; | |
4923 | } | |
4924 | return NULL; | |
4925 | } | |
4926 | ||
4927 | ||
c370783e | 4928 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4929 | PyObject *resultobj; |
4930 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4931 | bool arg2 ; | |
4932 | PyObject * obj0 = 0 ; | |
4933 | PyObject * obj1 = 0 ; | |
4934 | char *kwnames[] = { | |
4935 | (char *) "self",(char *) "editable", NULL | |
4936 | }; | |
4937 | ||
4938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
4939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4941 | { | |
4942 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
4943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4944 | } | |
d55e5bfc RD |
4945 | { |
4946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4947 | (arg1)->SetEditable(arg2); | |
4948 | ||
4949 | wxPyEndAllowThreads(__tstate); | |
4950 | if (PyErr_Occurred()) SWIG_fail; | |
4951 | } | |
4952 | Py_INCREF(Py_None); resultobj = Py_None; | |
4953 | return resultobj; | |
4954 | fail: | |
4955 | return NULL; | |
4956 | } | |
4957 | ||
4958 | ||
c370783e | 4959 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4960 | PyObject *resultobj; |
4961 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4962 | PyObject * obj0 = 0 ; | |
4963 | char *kwnames[] = { | |
4964 | (char *) "self", NULL | |
4965 | }; | |
4966 | ||
4967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
4968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
4970 | { |
4971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4972 | (arg1)->SetInsertionPointEnd(); | |
4973 | ||
4974 | wxPyEndAllowThreads(__tstate); | |
4975 | if (PyErr_Occurred()) SWIG_fail; | |
4976 | } | |
4977 | Py_INCREF(Py_None); resultobj = Py_None; | |
4978 | return resultobj; | |
4979 | fail: | |
4980 | return NULL; | |
4981 | } | |
4982 | ||
4983 | ||
c370783e | 4984 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4985 | PyObject *resultobj; |
4986 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4987 | long arg2 ; | |
4988 | long arg3 ; | |
4989 | PyObject * obj0 = 0 ; | |
4990 | PyObject * obj1 = 0 ; | |
4991 | PyObject * obj2 = 0 ; | |
4992 | char *kwnames[] = { | |
4993 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4994 | }; | |
4995 | ||
4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
4997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4999 | { | |
5000 | arg2 = (long)(SWIG_As_long(obj1)); | |
5001 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5002 | } | |
5003 | { | |
5004 | arg3 = (long)(SWIG_As_long(obj2)); | |
5005 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5006 | } | |
d55e5bfc RD |
5007 | { |
5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5009 | (arg1)->Remove(arg2,arg3); | |
5010 | ||
5011 | wxPyEndAllowThreads(__tstate); | |
5012 | if (PyErr_Occurred()) SWIG_fail; | |
5013 | } | |
5014 | Py_INCREF(Py_None); resultobj = Py_None; | |
5015 | return resultobj; | |
5016 | fail: | |
5017 | return NULL; | |
5018 | } | |
5019 | ||
5020 | ||
5cbf236d RD |
5021 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
5022 | PyObject *resultobj; | |
5023 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5024 | bool result; | |
5025 | PyObject * obj0 = 0 ; | |
5026 | char *kwnames[] = { | |
5027 | (char *) "self", NULL | |
5028 | }; | |
5029 | ||
5030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5033 | { |
5034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5035 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
5036 | ||
5037 | wxPyEndAllowThreads(__tstate); | |
5038 | if (PyErr_Occurred()) SWIG_fail; | |
5039 | } | |
5040 | { | |
5041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5042 | } | |
5043 | return resultobj; | |
5044 | fail: | |
5045 | return NULL; | |
5046 | } | |
5047 | ||
5048 | ||
5049 | static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5050 | PyObject *resultobj; | |
5051 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5052 | PyObject * obj0 = 0 ; | |
5053 | char *kwnames[] = { | |
5054 | (char *) "self", NULL | |
5055 | }; | |
5056 | ||
5057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5060 | { |
5061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5062 | (arg1)->Undo(); | |
5063 | ||
5064 | wxPyEndAllowThreads(__tstate); | |
5065 | if (PyErr_Occurred()) SWIG_fail; | |
5066 | } | |
5067 | Py_INCREF(Py_None); resultobj = Py_None; | |
5068 | return resultobj; | |
5069 | fail: | |
5070 | return NULL; | |
5071 | } | |
5072 | ||
5073 | ||
5074 | static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5075 | PyObject *resultobj; | |
5076 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5077 | PyObject * obj0 = 0 ; | |
5078 | char *kwnames[] = { | |
5079 | (char *) "self", NULL | |
5080 | }; | |
5081 | ||
5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5085 | { |
5086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5087 | (arg1)->Redo(); | |
5088 | ||
5089 | wxPyEndAllowThreads(__tstate); | |
5090 | if (PyErr_Occurred()) SWIG_fail; | |
5091 | } | |
5092 | Py_INCREF(Py_None); resultobj = Py_None; | |
5093 | return resultobj; | |
5094 | fail: | |
5095 | return NULL; | |
5096 | } | |
5097 | ||
5098 | ||
5099 | static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
5100 | PyObject *resultobj; | |
5101 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5102 | PyObject * obj0 = 0 ; | |
5103 | char *kwnames[] = { | |
5104 | (char *) "self", NULL | |
5105 | }; | |
5106 | ||
5107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5110 | { |
5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5112 | (arg1)->SelectAll(); | |
5113 | ||
5114 | wxPyEndAllowThreads(__tstate); | |
5115 | if (PyErr_Occurred()) SWIG_fail; | |
5116 | } | |
5117 | Py_INCREF(Py_None); resultobj = Py_None; | |
5118 | return resultobj; | |
5119 | fail: | |
5120 | return NULL; | |
5121 | } | |
5122 | ||
5123 | ||
5124 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
5125 | PyObject *resultobj; | |
5126 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5127 | bool result; | |
5128 | PyObject * obj0 = 0 ; | |
5129 | char *kwnames[] = { | |
5130 | (char *) "self", NULL | |
5131 | }; | |
5132 | ||
5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5136 | { |
5137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5138 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
5139 | ||
5140 | wxPyEndAllowThreads(__tstate); | |
5141 | if (PyErr_Occurred()) SWIG_fail; | |
5142 | } | |
5143 | { | |
5144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5145 | } | |
5146 | return resultobj; | |
5147 | fail: | |
5148 | return NULL; | |
5149 | } | |
5150 | ||
5151 | ||
5152 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
5153 | PyObject *resultobj; | |
5154 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5155 | bool result; | |
5156 | PyObject * obj0 = 0 ; | |
5157 | char *kwnames[] = { | |
5158 | (char *) "self", NULL | |
5159 | }; | |
5160 | ||
5161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5164 | { |
5165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5166 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
5167 | ||
5168 | wxPyEndAllowThreads(__tstate); | |
5169 | if (PyErr_Occurred()) SWIG_fail; | |
5170 | } | |
5171 | { | |
5172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5173 | } | |
5174 | return resultobj; | |
5175 | fail: | |
5176 | return NULL; | |
5177 | } | |
5178 | ||
5179 | ||
5180 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
5181 | PyObject *resultobj; | |
5182 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5183 | bool result; | |
5184 | PyObject * obj0 = 0 ; | |
5185 | char *kwnames[] = { | |
5186 | (char *) "self", NULL | |
5187 | }; | |
5188 | ||
5189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5192 | { |
5193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5194 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
5195 | ||
5196 | wxPyEndAllowThreads(__tstate); | |
5197 | if (PyErr_Occurred()) SWIG_fail; | |
5198 | } | |
5199 | { | |
5200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5201 | } | |
5202 | return resultobj; | |
5203 | fail: | |
5204 | return NULL; | |
5205 | } | |
5206 | ||
5207 | ||
5208 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5209 | PyObject *resultobj; | |
5210 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5211 | bool result; | |
5212 | PyObject * obj0 = 0 ; | |
5213 | char *kwnames[] = { | |
5214 | (char *) "self", NULL | |
5215 | }; | |
5216 | ||
5217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5220 | { |
5221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5222 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
5223 | ||
5224 | wxPyEndAllowThreads(__tstate); | |
5225 | if (PyErr_Occurred()) SWIG_fail; | |
5226 | } | |
5227 | { | |
5228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5229 | } | |
5230 | return resultobj; | |
5231 | fail: | |
5232 | return NULL; | |
5233 | } | |
5234 | ||
5235 | ||
5236 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5237 | PyObject *resultobj; | |
5238 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5239 | bool result; | |
5240 | PyObject * obj0 = 0 ; | |
5241 | char *kwnames[] = { | |
5242 | (char *) "self", NULL | |
5243 | }; | |
5244 | ||
5245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5248 | { |
5249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5250 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
5251 | ||
5252 | wxPyEndAllowThreads(__tstate); | |
5253 | if (PyErr_Occurred()) SWIG_fail; | |
5254 | } | |
5255 | { | |
5256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5257 | } | |
5258 | return resultobj; | |
5259 | fail: | |
5260 | return NULL; | |
5261 | } | |
5262 | ||
5263 | ||
c370783e | 5264 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 5265 | PyObject *resultobj; |
36ed4f51 | 5266 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
5267 | wxVisualAttributes result; |
5268 | PyObject * obj0 = 0 ; | |
5269 | char *kwnames[] = { | |
5270 | (char *) "variant", NULL | |
5271 | }; | |
5272 | ||
5273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5274 | if (obj0) { | |
36ed4f51 RD |
5275 | { |
5276 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5278 | } | |
f20a2e1f RD |
5279 | } |
5280 | { | |
0439c23b | 5281 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5283 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5284 | ||
5285 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5286 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5287 | } |
5288 | { | |
5289 | wxVisualAttributes * resultptr; | |
36ed4f51 | 5290 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
5291 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5292 | } | |
5293 | return resultobj; | |
5294 | fail: | |
5295 | return NULL; | |
5296 | } | |
5297 | ||
5298 | ||
c370783e | 5299 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5300 | PyObject *obj; |
5301 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5302 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
5303 | Py_INCREF(obj); | |
5304 | return Py_BuildValue((char *)""); | |
5305 | } | |
c370783e | 5306 | static int _wrap_GaugeNameStr_set(PyObject *) { |
d55e5bfc RD |
5307 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
5308 | return 1; | |
5309 | } | |
5310 | ||
5311 | ||
36ed4f51 | 5312 | static PyObject *_wrap_GaugeNameStr_get(void) { |
d55e5bfc RD |
5313 | PyObject *pyobj; |
5314 | ||
5315 | { | |
5316 | #if wxUSE_UNICODE | |
5317 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5318 | #else | |
5319 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5320 | #endif | |
5321 | } | |
5322 | return pyobj; | |
5323 | } | |
5324 | ||
5325 | ||
c370783e | 5326 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5327 | PyObject *resultobj; |
5328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5329 | int arg2 = (int) -1 ; |
5330 | int arg3 = (int) 100 ; | |
d55e5bfc RD |
5331 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5332 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5333 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5334 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5335 | long arg6 = (long) wxGA_HORIZONTAL ; | |
5336 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5337 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5338 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
5339 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5340 | wxGauge *result; | |
5341 | wxPoint temp4 ; | |
5342 | wxSize temp5 ; | |
b411df4a | 5343 | bool temp8 = false ; |
d55e5bfc RD |
5344 | PyObject * obj0 = 0 ; |
5345 | PyObject * obj1 = 0 ; | |
5346 | PyObject * obj2 = 0 ; | |
5347 | PyObject * obj3 = 0 ; | |
5348 | PyObject * obj4 = 0 ; | |
5349 | PyObject * obj5 = 0 ; | |
5350 | PyObject * obj6 = 0 ; | |
5351 | PyObject * obj7 = 0 ; | |
5352 | char *kwnames[] = { | |
5353 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5354 | }; | |
5355 | ||
bfddbb17 | 5356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
5357 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5358 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 5359 | if (obj1) { |
36ed4f51 RD |
5360 | { |
5361 | arg2 = (int)(SWIG_As_int(obj1)); | |
5362 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5363 | } | |
bfddbb17 RD |
5364 | } |
5365 | if (obj2) { | |
36ed4f51 RD |
5366 | { |
5367 | arg3 = (int)(SWIG_As_int(obj2)); | |
5368 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5369 | } | |
bfddbb17 | 5370 | } |
d55e5bfc RD |
5371 | if (obj3) { |
5372 | { | |
5373 | arg4 = &temp4; | |
5374 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5375 | } | |
5376 | } | |
5377 | if (obj4) { | |
5378 | { | |
5379 | arg5 = &temp5; | |
5380 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5381 | } | |
5382 | } | |
5383 | if (obj5) { | |
36ed4f51 RD |
5384 | { |
5385 | arg6 = (long)(SWIG_As_long(obj5)); | |
5386 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5387 | } | |
d55e5bfc RD |
5388 | } |
5389 | if (obj6) { | |
36ed4f51 RD |
5390 | { |
5391 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5392 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5393 | if (arg7 == NULL) { | |
5394 | SWIG_null_ref("wxValidator"); | |
5395 | } | |
5396 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
5397 | } |
5398 | } | |
5399 | if (obj7) { | |
5400 | { | |
5401 | arg8 = wxString_in_helper(obj7); | |
5402 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 5403 | temp8 = true; |
d55e5bfc RD |
5404 | } |
5405 | } | |
5406 | { | |
0439c23b | 5407 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5409 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5410 | ||
5411 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5412 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5413 | } |
5414 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
5415 | { | |
5416 | if (temp8) | |
5417 | delete arg8; | |
5418 | } | |
5419 | return resultobj; | |
5420 | fail: | |
5421 | { | |
5422 | if (temp8) | |
5423 | delete arg8; | |
5424 | } | |
5425 | return NULL; | |
5426 | } | |
5427 | ||
5428 | ||
c370783e | 5429 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5430 | PyObject *resultobj; |
5431 | wxGauge *result; | |
5432 | char *kwnames[] = { | |
5433 | NULL | |
5434 | }; | |
5435 | ||
5436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
5437 | { | |
0439c23b | 5438 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5440 | result = (wxGauge *)new wxGauge(); | |
5441 | ||
5442 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5443 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5444 | } |
5445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
5446 | return resultobj; | |
5447 | fail: | |
5448 | return NULL; | |
5449 | } | |
5450 | ||
5451 | ||
c370783e | 5452 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5453 | PyObject *resultobj; |
5454 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5455 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5456 | int arg3 = (int) -1 ; |
5457 | int arg4 = (int) 100 ; | |
d55e5bfc RD |
5458 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5459 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5460 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5461 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5462 | long arg7 = (long) wxGA_HORIZONTAL ; | |
5463 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5464 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5465 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
5466 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5467 | bool result; | |
5468 | wxPoint temp5 ; | |
5469 | wxSize temp6 ; | |
b411df4a | 5470 | bool temp9 = false ; |
d55e5bfc RD |
5471 | PyObject * obj0 = 0 ; |
5472 | PyObject * obj1 = 0 ; | |
5473 | PyObject * obj2 = 0 ; | |
5474 | PyObject * obj3 = 0 ; | |
5475 | PyObject * obj4 = 0 ; | |
5476 | PyObject * obj5 = 0 ; | |
5477 | PyObject * obj6 = 0 ; | |
5478 | PyObject * obj7 = 0 ; | |
5479 | PyObject * obj8 = 0 ; | |
5480 | char *kwnames[] = { | |
5481 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5482 | }; | |
5483 | ||
bfddbb17 | 5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
5485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5487 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5488 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 5489 | if (obj2) { |
36ed4f51 RD |
5490 | { |
5491 | arg3 = (int)(SWIG_As_int(obj2)); | |
5492 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5493 | } | |
bfddbb17 RD |
5494 | } |
5495 | if (obj3) { | |
36ed4f51 RD |
5496 | { |
5497 | arg4 = (int)(SWIG_As_int(obj3)); | |
5498 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5499 | } | |
bfddbb17 | 5500 | } |
d55e5bfc RD |
5501 | if (obj4) { |
5502 | { | |
5503 | arg5 = &temp5; | |
5504 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5505 | } | |
5506 | } | |
5507 | if (obj5) { | |
5508 | { | |
5509 | arg6 = &temp6; | |
5510 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5511 | } | |
5512 | } | |
5513 | if (obj6) { | |
36ed4f51 RD |
5514 | { |
5515 | arg7 = (long)(SWIG_As_long(obj6)); | |
5516 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5517 | } | |
d55e5bfc RD |
5518 | } |
5519 | if (obj7) { | |
36ed4f51 RD |
5520 | { |
5521 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5522 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5523 | if (arg8 == NULL) { | |
5524 | SWIG_null_ref("wxValidator"); | |
5525 | } | |
5526 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
5527 | } |
5528 | } | |
5529 | if (obj8) { | |
5530 | { | |
5531 | arg9 = wxString_in_helper(obj8); | |
5532 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 5533 | temp9 = true; |
d55e5bfc RD |
5534 | } |
5535 | } | |
5536 | { | |
5537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5538 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5539 | ||
5540 | wxPyEndAllowThreads(__tstate); | |
5541 | if (PyErr_Occurred()) SWIG_fail; | |
5542 | } | |
5543 | { | |
5544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5545 | } | |
5546 | { | |
5547 | if (temp9) | |
5548 | delete arg9; | |
5549 | } | |
5550 | return resultobj; | |
5551 | fail: | |
5552 | { | |
5553 | if (temp9) | |
5554 | delete arg9; | |
5555 | } | |
5556 | return NULL; | |
5557 | } | |
5558 | ||
5559 | ||
c370783e | 5560 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5561 | PyObject *resultobj; |
5562 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5563 | int arg2 ; | |
5564 | PyObject * obj0 = 0 ; | |
5565 | PyObject * obj1 = 0 ; | |
5566 | char *kwnames[] = { | |
5567 | (char *) "self",(char *) "range", NULL | |
5568 | }; | |
5569 | ||
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
5571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5573 | { | |
5574 | arg2 = (int)(SWIG_As_int(obj1)); | |
5575 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5576 | } | |
d55e5bfc RD |
5577 | { |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | (arg1)->SetRange(arg2); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
5584 | Py_INCREF(Py_None); resultobj = Py_None; | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
c370783e | 5591 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5592 | PyObject *resultobj; |
5593 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5594 | int result; | |
5595 | PyObject * obj0 = 0 ; | |
5596 | char *kwnames[] = { | |
5597 | (char *) "self", NULL | |
5598 | }; | |
5599 | ||
5600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5603 | { |
5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5605 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
5606 | ||
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) SWIG_fail; | |
5609 | } | |
36ed4f51 RD |
5610 | { |
5611 | resultobj = SWIG_From_int((int)(result)); | |
5612 | } | |
d55e5bfc RD |
5613 | return resultobj; |
5614 | fail: | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
c370783e | 5619 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5620 | PyObject *resultobj; |
5621 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5622 | int arg2 ; | |
5623 | PyObject * obj0 = 0 ; | |
5624 | PyObject * obj1 = 0 ; | |
5625 | char *kwnames[] = { | |
5626 | (char *) "self",(char *) "pos", NULL | |
5627 | }; | |
5628 | ||
5629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
5630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5632 | { | |
5633 | arg2 = (int)(SWIG_As_int(obj1)); | |
5634 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5635 | } | |
d55e5bfc RD |
5636 | { |
5637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5638 | (arg1)->SetValue(arg2); | |
5639 | ||
5640 | wxPyEndAllowThreads(__tstate); | |
5641 | if (PyErr_Occurred()) SWIG_fail; | |
5642 | } | |
5643 | Py_INCREF(Py_None); resultobj = Py_None; | |
5644 | return resultobj; | |
5645 | fail: | |
5646 | return NULL; | |
5647 | } | |
5648 | ||
5649 | ||
c370783e | 5650 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5651 | PyObject *resultobj; |
5652 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5653 | int result; | |
5654 | PyObject * obj0 = 0 ; | |
5655 | char *kwnames[] = { | |
5656 | (char *) "self", NULL | |
5657 | }; | |
5658 | ||
5659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5662 | { |
5663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5664 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
5665 | ||
5666 | wxPyEndAllowThreads(__tstate); | |
5667 | if (PyErr_Occurred()) SWIG_fail; | |
5668 | } | |
36ed4f51 RD |
5669 | { |
5670 | resultobj = SWIG_From_int((int)(result)); | |
5671 | } | |
d55e5bfc RD |
5672 | return resultobj; |
5673 | fail: | |
5674 | return NULL; | |
5675 | } | |
5676 | ||
5677 | ||
c370783e | 5678 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5679 | PyObject *resultobj; |
5680 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5681 | bool result; | |
5682 | PyObject * obj0 = 0 ; | |
5683 | char *kwnames[] = { | |
5684 | (char *) "self", NULL | |
5685 | }; | |
5686 | ||
5687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5690 | { |
5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5692 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
5693 | ||
5694 | wxPyEndAllowThreads(__tstate); | |
5695 | if (PyErr_Occurred()) SWIG_fail; | |
5696 | } | |
5697 | { | |
5698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5699 | } | |
5700 | return resultobj; | |
5701 | fail: | |
5702 | return NULL; | |
5703 | } | |
5704 | ||
5705 | ||
c370783e | 5706 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5707 | PyObject *resultobj; |
5708 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5709 | int arg2 ; | |
5710 | PyObject * obj0 = 0 ; | |
5711 | PyObject * obj1 = 0 ; | |
5712 | char *kwnames[] = { | |
5713 | (char *) "self",(char *) "w", NULL | |
5714 | }; | |
5715 | ||
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
5717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5719 | { | |
5720 | arg2 = (int)(SWIG_As_int(obj1)); | |
5721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5722 | } | |
d55e5bfc RD |
5723 | { |
5724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5725 | (arg1)->SetShadowWidth(arg2); | |
5726 | ||
5727 | wxPyEndAllowThreads(__tstate); | |
5728 | if (PyErr_Occurred()) SWIG_fail; | |
5729 | } | |
5730 | Py_INCREF(Py_None); resultobj = Py_None; | |
5731 | return resultobj; | |
5732 | fail: | |
5733 | return NULL; | |
5734 | } | |
5735 | ||
5736 | ||
c370783e | 5737 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5738 | PyObject *resultobj; |
5739 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5740 | int result; | |
5741 | PyObject * obj0 = 0 ; | |
5742 | char *kwnames[] = { | |
5743 | (char *) "self", NULL | |
5744 | }; | |
5745 | ||
5746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5749 | { |
5750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5751 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
5752 | ||
5753 | wxPyEndAllowThreads(__tstate); | |
5754 | if (PyErr_Occurred()) SWIG_fail; | |
5755 | } | |
36ed4f51 RD |
5756 | { |
5757 | resultobj = SWIG_From_int((int)(result)); | |
5758 | } | |
d55e5bfc RD |
5759 | return resultobj; |
5760 | fail: | |
5761 | return NULL; | |
5762 | } | |
5763 | ||
5764 | ||
c370783e | 5765 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5766 | PyObject *resultobj; |
5767 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5768 | int arg2 ; | |
5769 | PyObject * obj0 = 0 ; | |
5770 | PyObject * obj1 = 0 ; | |
5771 | char *kwnames[] = { | |
5772 | (char *) "self",(char *) "w", NULL | |
5773 | }; | |
5774 | ||
5775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
5776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5778 | { | |
5779 | arg2 = (int)(SWIG_As_int(obj1)); | |
5780 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5781 | } | |
d55e5bfc RD |
5782 | { |
5783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5784 | (arg1)->SetBezelFace(arg2); | |
5785 | ||
5786 | wxPyEndAllowThreads(__tstate); | |
5787 | if (PyErr_Occurred()) SWIG_fail; | |
5788 | } | |
5789 | Py_INCREF(Py_None); resultobj = Py_None; | |
5790 | return resultobj; | |
5791 | fail: | |
5792 | return NULL; | |
5793 | } | |
5794 | ||
5795 | ||
c370783e | 5796 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5797 | PyObject *resultobj; |
5798 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5799 | int result; | |
5800 | PyObject * obj0 = 0 ; | |
5801 | char *kwnames[] = { | |
5802 | (char *) "self", NULL | |
5803 | }; | |
5804 | ||
5805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
5806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5808 | { |
5809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5810 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
5811 | ||
5812 | wxPyEndAllowThreads(__tstate); | |
5813 | if (PyErr_Occurred()) SWIG_fail; | |
5814 | } | |
36ed4f51 RD |
5815 | { |
5816 | resultobj = SWIG_From_int((int)(result)); | |
5817 | } | |
d55e5bfc RD |
5818 | return resultobj; |
5819 | fail: | |
5820 | return NULL; | |
5821 | } | |
5822 | ||
5823 | ||
c370783e | 5824 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 5825 | PyObject *resultobj; |
36ed4f51 | 5826 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
5827 | wxVisualAttributes result; |
5828 | PyObject * obj0 = 0 ; | |
5829 | char *kwnames[] = { | |
5830 | (char *) "variant", NULL | |
5831 | }; | |
5832 | ||
5833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5834 | if (obj0) { | |
36ed4f51 RD |
5835 | { |
5836 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5838 | } | |
f20a2e1f RD |
5839 | } |
5840 | { | |
0439c23b | 5841 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5843 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5844 | ||
5845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5846 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5847 | } |
5848 | { | |
5849 | wxVisualAttributes * resultptr; | |
36ed4f51 | 5850 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
5851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5852 | } | |
5853 | return resultobj; | |
5854 | fail: | |
5855 | return NULL; | |
5856 | } | |
5857 | ||
5858 | ||
c370783e | 5859 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5860 | PyObject *obj; |
5861 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5862 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
5863 | Py_INCREF(obj); | |
5864 | return Py_BuildValue((char *)""); | |
5865 | } | |
c370783e | 5866 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
d55e5bfc RD |
5867 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
5868 | return 1; | |
5869 | } | |
5870 | ||
5871 | ||
36ed4f51 | 5872 | static PyObject *_wrap_StaticBitmapNameStr_get(void) { |
d55e5bfc RD |
5873 | PyObject *pyobj; |
5874 | ||
5875 | { | |
5876 | #if wxUSE_UNICODE | |
5877 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5878 | #else | |
5879 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5880 | #endif | |
5881 | } | |
5882 | return pyobj; | |
5883 | } | |
5884 | ||
5885 | ||
c370783e | 5886 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
5887 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
5888 | return 1; | |
5889 | } | |
5890 | ||
5891 | ||
36ed4f51 | 5892 | static PyObject *_wrap_StaticBoxNameStr_get(void) { |
d55e5bfc RD |
5893 | PyObject *pyobj; |
5894 | ||
5895 | { | |
5896 | #if wxUSE_UNICODE | |
5897 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5898 | #else | |
5899 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5900 | #endif | |
5901 | } | |
5902 | return pyobj; | |
5903 | } | |
5904 | ||
5905 | ||
c370783e | 5906 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
d55e5bfc RD |
5907 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
5908 | return 1; | |
5909 | } | |
5910 | ||
5911 | ||
36ed4f51 | 5912 | static PyObject *_wrap_StaticTextNameStr_get(void) { |
d55e5bfc RD |
5913 | PyObject *pyobj; |
5914 | ||
5915 | { | |
5916 | #if wxUSE_UNICODE | |
5917 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5918 | #else | |
5919 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5920 | #endif | |
5921 | } | |
5922 | return pyobj; | |
5923 | } | |
5924 | ||
5925 | ||
c370783e | 5926 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5927 | PyObject *resultobj; |
5928 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
5929 | int arg2 = (int) -1 ; |
5930 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5931 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
5932 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5933 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5934 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5935 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5936 | long arg6 = (long) 0 ; | |
5937 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
5938 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5939 | wxStaticBox *result; | |
b411df4a | 5940 | bool temp3 = false ; |
d55e5bfc RD |
5941 | wxPoint temp4 ; |
5942 | wxSize temp5 ; | |
b411df4a | 5943 | bool temp7 = false ; |
d55e5bfc RD |
5944 | PyObject * obj0 = 0 ; |
5945 | PyObject * obj1 = 0 ; | |
5946 | PyObject * obj2 = 0 ; | |
5947 | PyObject * obj3 = 0 ; | |
5948 | PyObject * obj4 = 0 ; | |
5949 | PyObject * obj5 = 0 ; | |
5950 | PyObject * obj6 = 0 ; | |
5951 | char *kwnames[] = { | |
5952 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5953 | }; | |
5954 | ||
bfddbb17 | 5955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36ed4f51 RD |
5956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 5958 | if (obj1) { |
36ed4f51 RD |
5959 | { |
5960 | arg2 = (int)(SWIG_As_int(obj1)); | |
5961 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5962 | } | |
bfddbb17 RD |
5963 | } |
5964 | if (obj2) { | |
5965 | { | |
5966 | arg3 = wxString_in_helper(obj2); | |
5967 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 5968 | temp3 = true; |
bfddbb17 | 5969 | } |
d55e5bfc RD |
5970 | } |
5971 | if (obj3) { | |
5972 | { | |
5973 | arg4 = &temp4; | |
5974 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5975 | } | |
5976 | } | |
5977 | if (obj4) { | |
5978 | { | |
5979 | arg5 = &temp5; | |
5980 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5981 | } | |
5982 | } | |
5983 | if (obj5) { | |
36ed4f51 RD |
5984 | { |
5985 | arg6 = (long)(SWIG_As_long(obj5)); | |
5986 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5987 | } | |
d55e5bfc RD |
5988 | } |
5989 | if (obj6) { | |
5990 | { | |
5991 | arg7 = wxString_in_helper(obj6); | |
5992 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 5993 | temp7 = true; |
d55e5bfc RD |
5994 | } |
5995 | } | |
5996 | { | |
0439c23b | 5997 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5999 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6000 | ||
6001 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6002 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6003 | } |
b0f7404b | 6004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
6005 | { |
6006 | if (temp3) | |
6007 | delete arg3; | |
6008 | } | |
6009 | { | |
6010 | if (temp7) | |
6011 | delete arg7; | |
6012 | } | |
6013 | return resultobj; | |
6014 | fail: | |
6015 | { | |
6016 | if (temp3) | |
6017 | delete arg3; | |
6018 | } | |
6019 | { | |
6020 | if (temp7) | |
6021 | delete arg7; | |
6022 | } | |
6023 | return NULL; | |
6024 | } | |
6025 | ||
6026 | ||
c370783e | 6027 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6028 | PyObject *resultobj; |
6029 | wxStaticBox *result; | |
6030 | char *kwnames[] = { | |
6031 | NULL | |
6032 | }; | |
6033 | ||
6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
6035 | { | |
0439c23b | 6036 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6038 | result = (wxStaticBox *)new wxStaticBox(); | |
6039 | ||
6040 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6041 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6042 | } |
b0f7404b | 6043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
6044 | return resultobj; |
6045 | fail: | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
c370783e | 6050 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6051 | PyObject *resultobj; |
6052 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
6053 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
6054 | int arg3 = (int) -1 ; |
6055 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6056 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
6057 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6058 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6059 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6060 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6061 | long arg7 = (long) 0 ; | |
6062 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
6063 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6064 | bool result; | |
b411df4a | 6065 | bool temp4 = false ; |
d55e5bfc RD |
6066 | wxPoint temp5 ; |
6067 | wxSize temp6 ; | |
b411df4a | 6068 | bool temp8 = false ; |
d55e5bfc RD |
6069 | PyObject * obj0 = 0 ; |
6070 | PyObject * obj1 = 0 ; | |
6071 | PyObject * obj2 = 0 ; | |
6072 | PyObject * obj3 = 0 ; | |
6073 | PyObject * obj4 = 0 ; | |
6074 | PyObject * obj5 = 0 ; | |
6075 | PyObject * obj6 = 0 ; | |
6076 | PyObject * obj7 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6079 | }; | |
6080 | ||
bfddbb17 | 6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
6082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
6083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6084 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 6086 | if (obj2) { |
36ed4f51 RD |
6087 | { |
6088 | arg3 = (int)(SWIG_As_int(obj2)); | |
6089 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6090 | } | |
bfddbb17 RD |
6091 | } |
6092 | if (obj3) { | |
6093 | { | |
6094 | arg4 = wxString_in_helper(obj3); | |
6095 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 6096 | temp4 = true; |
bfddbb17 | 6097 | } |
d55e5bfc RD |
6098 | } |
6099 | if (obj4) { | |
6100 | { | |
6101 | arg5 = &temp5; | |
6102 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6103 | } | |
6104 | } | |
6105 | if (obj5) { | |
6106 | { | |
6107 | arg6 = &temp6; | |
6108 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6109 | } | |
6110 | } | |
6111 | if (obj6) { | |
36ed4f51 RD |
6112 | { |
6113 | arg7 = (long)(SWIG_As_long(obj6)); | |
6114 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6115 | } | |
d55e5bfc RD |
6116 | } |
6117 | if (obj7) { | |
6118 | { | |
6119 | arg8 = wxString_in_helper(obj7); | |
6120 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 6121 | temp8 = true; |
d55e5bfc RD |
6122 | } |
6123 | } | |
6124 | { | |
6125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6126 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6127 | ||
6128 | wxPyEndAllowThreads(__tstate); | |
6129 | if (PyErr_Occurred()) SWIG_fail; | |
6130 | } | |
6131 | { | |
6132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6133 | } | |
6134 | { | |
6135 | if (temp4) | |
6136 | delete arg4; | |
6137 | } | |
6138 | { | |
6139 | if (temp8) | |
6140 | delete arg8; | |
6141 | } | |
6142 | return resultobj; | |
6143 | fail: | |
6144 | { | |
6145 | if (temp4) | |
6146 | delete arg4; | |
6147 | } | |
6148 | { | |
6149 | if (temp8) | |
6150 | delete arg8; | |
6151 | } | |
6152 | return NULL; | |
6153 | } | |
6154 | ||
6155 | ||
c370783e | 6156 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 6157 | PyObject *resultobj; |
36ed4f51 | 6158 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
6159 | wxVisualAttributes result; |
6160 | PyObject * obj0 = 0 ; | |
6161 | char *kwnames[] = { | |
6162 | (char *) "variant", NULL | |
6163 | }; | |
6164 | ||
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6166 | if (obj0) { | |
36ed4f51 RD |
6167 | { |
6168 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6170 | } | |
f20a2e1f RD |
6171 | } |
6172 | { | |
0439c23b | 6173 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6175 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6176 | ||
6177 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6178 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6179 | } |
6180 | { | |
6181 | wxVisualAttributes * resultptr; | |
36ed4f51 | 6182 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
6183 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6184 | } | |
6185 | return resultobj; | |
6186 | fail: | |
6187 | return NULL; | |
6188 | } | |
6189 | ||
6190 | ||
c370783e | 6191 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6192 | PyObject *obj; |
6193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6194 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
6195 | Py_INCREF(obj); | |
6196 | return Py_BuildValue((char *)""); | |
6197 | } | |
c370783e | 6198 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6199 | PyObject *resultobj; |
6200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 6201 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6202 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6203 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6204 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6205 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6206 | long arg5 = (long) wxLI_HORIZONTAL ; | |
6207 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
6208 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6209 | wxStaticLine *result; | |
6210 | wxPoint temp3 ; | |
6211 | wxSize temp4 ; | |
b411df4a | 6212 | bool temp6 = false ; |
d55e5bfc RD |
6213 | PyObject * obj0 = 0 ; |
6214 | PyObject * obj1 = 0 ; | |
6215 | PyObject * obj2 = 0 ; | |
6216 | PyObject * obj3 = 0 ; | |
6217 | PyObject * obj4 = 0 ; | |
6218 | PyObject * obj5 = 0 ; | |
6219 | char *kwnames[] = { | |
6220 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6221 | }; | |
6222 | ||
bfddbb17 | 6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
36ed4f51 RD |
6224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 6226 | if (obj1) { |
36ed4f51 RD |
6227 | { |
6228 | arg2 = (int)(SWIG_As_int(obj1)); | |
6229 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6230 | } | |
bfddbb17 | 6231 | } |
d55e5bfc RD |
6232 | if (obj2) { |
6233 | { | |
6234 | arg3 = &temp3; | |
6235 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6236 | } | |
6237 | } | |
6238 | if (obj3) { | |
6239 | { | |
6240 | arg4 = &temp4; | |
6241 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6242 | } | |
6243 | } | |
6244 | if (obj4) { | |
36ed4f51 RD |
6245 | { |
6246 | arg5 = (long)(SWIG_As_long(obj4)); | |
6247 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6248 | } | |
d55e5bfc RD |
6249 | } |
6250 | if (obj5) { | |
6251 | { | |
6252 | arg6 = wxString_in_helper(obj5); | |
6253 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 6254 | temp6 = true; |
d55e5bfc RD |
6255 | } |
6256 | } | |
6257 | { | |
0439c23b | 6258 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6260 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6261 | ||
6262 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6263 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6264 | } |
6265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
6266 | { | |
6267 | if (temp6) | |
6268 | delete arg6; | |
6269 | } | |
6270 | return resultobj; | |
6271 | fail: | |
6272 | { | |
6273 | if (temp6) | |
6274 | delete arg6; | |
6275 | } | |
6276 | return NULL; | |
6277 | } | |
6278 | ||
6279 | ||
c370783e | 6280 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6281 | PyObject *resultobj; |
6282 | wxStaticLine *result; | |
6283 | char *kwnames[] = { | |
6284 | NULL | |
6285 | }; | |
6286 | ||
6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
6288 | { | |
0439c23b | 6289 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6291 | result = (wxStaticLine *)new wxStaticLine(); | |
6292 | ||
6293 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6294 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6295 | } |
6296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
6297 | return resultobj; | |
6298 | fail: | |
6299 | return NULL; | |
6300 | } | |
6301 | ||
6302 | ||
c370783e | 6303 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6304 | PyObject *resultobj; |
6305 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6306 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 6307 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6308 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6309 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6310 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6311 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6312 | long arg6 = (long) wxLI_HORIZONTAL ; | |
6313 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6314 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6315 | bool result; | |
6316 | wxPoint temp4 ; | |
6317 | wxSize temp5 ; | |
b411df4a | 6318 | bool temp7 = false ; |
d55e5bfc RD |
6319 | PyObject * obj0 = 0 ; |
6320 | PyObject * obj1 = 0 ; | |
6321 | PyObject * obj2 = 0 ; | |
6322 | PyObject * obj3 = 0 ; | |
6323 | PyObject * obj4 = 0 ; | |
6324 | PyObject * obj5 = 0 ; | |
6325 | PyObject * obj6 = 0 ; | |
6326 | char *kwnames[] = { | |
6327 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6328 | }; | |
6329 | ||
bfddbb17 | 6330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36ed4f51 RD |
6331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6333 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 6335 | if (obj2) { |
36ed4f51 RD |
6336 | { |
6337 | arg3 = (int)(SWIG_As_int(obj2)); | |
6338 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6339 | } | |
bfddbb17 | 6340 | } |
d55e5bfc RD |
6341 | if (obj3) { |
6342 | { | |
6343 | arg4 = &temp4; | |
6344 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6345 | } | |
6346 | } | |
6347 | if (obj4) { | |
6348 | { | |
6349 | arg5 = &temp5; | |
6350 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6351 | } | |
6352 | } | |
6353 | if (obj5) { | |
36ed4f51 RD |
6354 | { |
6355 | arg6 = (long)(SWIG_As_long(obj5)); | |
6356 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6357 | } | |
d55e5bfc RD |
6358 | } |
6359 | if (obj6) { | |
6360 | { | |
6361 | arg7 = wxString_in_helper(obj6); | |
6362 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 6363 | temp7 = true; |
d55e5bfc RD |
6364 | } |
6365 | } | |
6366 | { | |
6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6368 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6369 | ||
6370 | wxPyEndAllowThreads(__tstate); | |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
6372 | } | |
6373 | { | |
6374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6375 | } | |
6376 | { | |
6377 | if (temp7) | |
6378 | delete arg7; | |
6379 | } | |
6380 | return resultobj; | |
6381 | fail: | |
6382 | { | |
6383 | if (temp7) | |
6384 | delete arg7; | |
6385 | } | |
6386 | return NULL; | |
6387 | } | |
6388 | ||
6389 | ||
c370783e | 6390 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6391 | PyObject *resultobj; |
6392 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6393 | bool result; | |
6394 | PyObject * obj0 = 0 ; | |
6395 | char *kwnames[] = { | |
6396 | (char *) "self", NULL | |
6397 | }; | |
6398 | ||
6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
6400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6402 | { |
6403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6404 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
6405 | ||
6406 | wxPyEndAllowThreads(__tstate); | |
6407 | if (PyErr_Occurred()) SWIG_fail; | |
6408 | } | |
6409 | { | |
6410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6411 | } | |
6412 | return resultobj; | |
6413 | fail: | |
6414 | return NULL; | |
6415 | } | |
6416 | ||
6417 | ||
c370783e | 6418 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6419 | PyObject *resultobj; |
6420 | int result; | |
6421 | char *kwnames[] = { | |
6422 | NULL | |
6423 | }; | |
6424 | ||
6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
6426 | { | |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | result = (int)wxStaticLine::GetDefaultSize(); | |
6429 | ||
6430 | wxPyEndAllowThreads(__tstate); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
36ed4f51 RD |
6433 | { |
6434 | resultobj = SWIG_From_int((int)(result)); | |
6435 | } | |
d55e5bfc RD |
6436 | return resultobj; |
6437 | fail: | |
6438 | return NULL; | |
6439 | } | |
6440 | ||
6441 | ||
c370783e | 6442 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 6443 | PyObject *resultobj; |
36ed4f51 | 6444 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
6445 | wxVisualAttributes result; |
6446 | PyObject * obj0 = 0 ; | |
6447 | char *kwnames[] = { | |
6448 | (char *) "variant", NULL | |
6449 | }; | |
6450 | ||
6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6452 | if (obj0) { | |
36ed4f51 RD |
6453 | { |
6454 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6456 | } | |
f20a2e1f RD |
6457 | } |
6458 | { | |
0439c23b | 6459 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6461 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6462 | ||
6463 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6464 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6465 | } |
6466 | { | |
6467 | wxVisualAttributes * resultptr; | |
36ed4f51 | 6468 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
6469 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6470 | } | |
6471 | return resultobj; | |
6472 | fail: | |
6473 | return NULL; | |
6474 | } | |
6475 | ||
6476 | ||
c370783e | 6477 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6478 | PyObject *obj; |
6479 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6480 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
6481 | Py_INCREF(obj); | |
6482 | return Py_BuildValue((char *)""); | |
6483 | } | |
c370783e | 6484 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6485 | PyObject *resultobj; |
6486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
6487 | int arg2 = (int) -1 ; |
6488 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6489 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
6490 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6491 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6492 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6493 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6494 | long arg6 = (long) 0 ; | |
6495 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6496 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6497 | wxStaticText *result; | |
b411df4a | 6498 | bool temp3 = false ; |
d55e5bfc RD |
6499 | wxPoint temp4 ; |
6500 | wxSize temp5 ; | |
b411df4a | 6501 | bool temp7 = false ; |
d55e5bfc RD |
6502 | PyObject * obj0 = 0 ; |
6503 | PyObject * obj1 = 0 ; | |
6504 | PyObject * obj2 = 0 ; | |
6505 | PyObject * obj3 = 0 ; | |
6506 | PyObject * obj4 = 0 ; | |
6507 | PyObject * obj5 = 0 ; | |
6508 | PyObject * obj6 = 0 ; | |
6509 | char *kwnames[] = { | |
6510 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6511 | }; | |
6512 | ||
bfddbb17 | 6513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36ed4f51 RD |
6514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 6516 | if (obj1) { |
36ed4f51 RD |
6517 | { |
6518 | arg2 = (int)(SWIG_As_int(obj1)); | |
6519 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6520 | } | |
bfddbb17 RD |
6521 | } |
6522 | if (obj2) { | |
6523 | { | |
6524 | arg3 = wxString_in_helper(obj2); | |
6525 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 6526 | temp3 = true; |
bfddbb17 | 6527 | } |
d55e5bfc RD |
6528 | } |
6529 | if (obj3) { | |
6530 | { | |
6531 | arg4 = &temp4; | |
6532 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6533 | } | |
6534 | } | |
6535 | if (obj4) { | |
6536 | { | |
6537 | arg5 = &temp5; | |
6538 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6539 | } | |
6540 | } | |
6541 | if (obj5) { | |
36ed4f51 RD |
6542 | { |
6543 | arg6 = (long)(SWIG_As_long(obj5)); | |
6544 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6545 | } | |
d55e5bfc RD |
6546 | } |
6547 | if (obj6) { | |
6548 | { | |
6549 | arg7 = wxString_in_helper(obj6); | |
6550 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 6551 | temp7 = true; |
d55e5bfc RD |
6552 | } |
6553 | } | |
6554 | { | |
0439c23b | 6555 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6557 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6558 | ||
6559 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6560 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6561 | } |
6562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
6563 | { | |
6564 | if (temp3) | |
6565 | delete arg3; | |
6566 | } | |
6567 | { | |
6568 | if (temp7) | |
6569 | delete arg7; | |
6570 | } | |
6571 | return resultobj; | |
6572 | fail: | |
6573 | { | |
6574 | if (temp3) | |
6575 | delete arg3; | |
6576 | } | |
6577 | { | |
6578 | if (temp7) | |
6579 | delete arg7; | |
6580 | } | |
6581 | return NULL; | |
6582 | } | |
6583 | ||
6584 | ||
c370783e | 6585 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6586 | PyObject *resultobj; |
6587 | wxStaticText *result; | |
6588 | char *kwnames[] = { | |
6589 | NULL | |
6590 | }; | |
6591 | ||
6592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
6593 | { | |
0439c23b | 6594 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6596 | result = (wxStaticText *)new wxStaticText(); | |
6597 | ||
6598 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6599 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6600 | } |
6601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
6602 | return resultobj; | |
6603 | fail: | |
6604 | return NULL; | |
6605 | } | |
6606 | ||
6607 | ||
c370783e | 6608 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6609 | PyObject *resultobj; |
6610 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
6611 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
6612 | int arg3 = (int) -1 ; |
6613 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6614 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
6615 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6616 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6617 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6618 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6619 | long arg7 = (long) 0 ; | |
6620 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
6621 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6622 | bool result; | |
b411df4a | 6623 | bool temp4 = false ; |
d55e5bfc RD |
6624 | wxPoint temp5 ; |
6625 | wxSize temp6 ; | |
b411df4a | 6626 | bool temp8 = false ; |
d55e5bfc RD |
6627 | PyObject * obj0 = 0 ; |
6628 | PyObject * obj1 = 0 ; | |
6629 | PyObject * obj2 = 0 ; | |
6630 | PyObject * obj3 = 0 ; | |
6631 | PyObject * obj4 = 0 ; | |
6632 | PyObject * obj5 = 0 ; | |
6633 | PyObject * obj6 = 0 ; | |
6634 | PyObject * obj7 = 0 ; | |
6635 | char *kwnames[] = { | |
6636 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6637 | }; | |
6638 | ||
bfddbb17 | 6639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
6640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); |
6641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6642 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6643 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 6644 | if (obj2) { |
36ed4f51 RD |
6645 | { |
6646 | arg3 = (int)(SWIG_As_int(obj2)); | |
6647 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6648 | } | |
bfddbb17 RD |
6649 | } |
6650 | if (obj3) { | |
6651 | { | |
6652 | arg4 = wxString_in_helper(obj3); | |
6653 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 6654 | temp4 = true; |
bfddbb17 | 6655 | } |
d55e5bfc RD |
6656 | } |
6657 | if (obj4) { | |
6658 | { | |
6659 | arg5 = &temp5; | |
6660 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6661 | } | |
6662 | } | |
6663 | if (obj5) { | |
6664 | { | |
6665 | arg6 = &temp6; | |
6666 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6667 | } | |
6668 | } | |
6669 | if (obj6) { | |
36ed4f51 RD |
6670 | { |
6671 | arg7 = (long)(SWIG_As_long(obj6)); | |
6672 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6673 | } | |
d55e5bfc RD |
6674 | } |
6675 | if (obj7) { | |
6676 | { | |
6677 | arg8 = wxString_in_helper(obj7); | |
6678 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 6679 | temp8 = true; |
d55e5bfc RD |
6680 | } |
6681 | } | |
6682 | { | |
6683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6684 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6685 | ||
6686 | wxPyEndAllowThreads(__tstate); | |
6687 | if (PyErr_Occurred()) SWIG_fail; | |
6688 | } | |
6689 | { | |
6690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6691 | } | |
6692 | { | |
6693 | if (temp4) | |
6694 | delete arg4; | |
6695 | } | |
6696 | { | |
6697 | if (temp8) | |
6698 | delete arg8; | |
6699 | } | |
6700 | return resultobj; | |
6701 | fail: | |
6702 | { | |
6703 | if (temp4) | |
6704 | delete arg4; | |
6705 | } | |
6706 | { | |
6707 | if (temp8) | |
6708 | delete arg8; | |
6709 | } | |
6710 | return NULL; | |
6711 | } | |
6712 | ||
6713 | ||
943e8dfd RD |
6714 | static PyObject *_wrap_StaticText_Wrap(PyObject *, PyObject *args, PyObject *kwargs) { |
6715 | PyObject *resultobj; | |
6716 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
6717 | int arg2 ; | |
6718 | PyObject * obj0 = 0 ; | |
6719 | PyObject * obj1 = 0 ; | |
6720 | char *kwnames[] = { | |
6721 | (char *) "self",(char *) "width", NULL | |
6722 | }; | |
6723 | ||
6724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) goto fail; | |
6725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); | |
6726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6727 | { | |
6728 | arg2 = (int)(SWIG_As_int(obj1)); | |
6729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6730 | } | |
6731 | { | |
6732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6733 | (arg1)->Wrap(arg2); | |
6734 | ||
6735 | wxPyEndAllowThreads(__tstate); | |
6736 | if (PyErr_Occurred()) SWIG_fail; | |
6737 | } | |
6738 | Py_INCREF(Py_None); resultobj = Py_None; | |
6739 | return resultobj; | |
6740 | fail: | |
6741 | return NULL; | |
6742 | } | |
6743 | ||
6744 | ||
c370783e | 6745 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 6746 | PyObject *resultobj; |
36ed4f51 | 6747 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
6748 | wxVisualAttributes result; |
6749 | PyObject * obj0 = 0 ; | |
6750 | char *kwnames[] = { | |
6751 | (char *) "variant", NULL | |
6752 | }; | |
6753 | ||
6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6755 | if (obj0) { | |
36ed4f51 RD |
6756 | { |
6757 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6759 | } | |
f20a2e1f RD |
6760 | } |
6761 | { | |
0439c23b | 6762 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6764 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6765 | ||
6766 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6767 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6768 | } |
6769 | { | |
6770 | wxVisualAttributes * resultptr; | |
36ed4f51 | 6771 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
6772 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6773 | } | |
6774 | return resultobj; | |
6775 | fail: | |
6776 | return NULL; | |
6777 | } | |
6778 | ||
6779 | ||
c370783e | 6780 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6781 | PyObject *obj; |
6782 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6783 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
6784 | Py_INCREF(obj); | |
6785 | return Py_BuildValue((char *)""); | |
6786 | } | |
c370783e | 6787 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6788 | PyObject *resultobj; |
6789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
6790 | int arg2 = (int) -1 ; |
6791 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
6792 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
6793 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6794 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6795 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6796 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6797 | long arg6 = (long) 0 ; | |
6798 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
6799 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6800 | wxStaticBitmap *result; | |
6801 | wxPoint temp4 ; | |
6802 | wxSize temp5 ; | |
b411df4a | 6803 | bool temp7 = false ; |
d55e5bfc RD |
6804 | PyObject * obj0 = 0 ; |
6805 | PyObject * obj1 = 0 ; | |
6806 | PyObject * obj2 = 0 ; | |
6807 | PyObject * obj3 = 0 ; | |
6808 | PyObject * obj4 = 0 ; | |
6809 | PyObject * obj5 = 0 ; | |
6810 | PyObject * obj6 = 0 ; | |
6811 | char *kwnames[] = { | |
6812 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6813 | }; | |
6814 | ||
bfddbb17 | 6815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36ed4f51 RD |
6816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 6818 | if (obj1) { |
36ed4f51 RD |
6819 | { |
6820 | arg2 = (int)(SWIG_As_int(obj1)); | |
6821 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6822 | } | |
bfddbb17 RD |
6823 | } |
6824 | if (obj2) { | |
36ed4f51 RD |
6825 | { |
6826 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6827 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6828 | if (arg3 == NULL) { | |
6829 | SWIG_null_ref("wxBitmap"); | |
6830 | } | |
6831 | if (SWIG_arg_fail(3)) SWIG_fail; | |
bfddbb17 | 6832 | } |
d55e5bfc RD |
6833 | } |
6834 | if (obj3) { | |
6835 | { | |
6836 | arg4 = &temp4; | |
6837 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6838 | } | |
6839 | } | |
6840 | if (obj4) { | |
6841 | { | |
6842 | arg5 = &temp5; | |
6843 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6844 | } | |
6845 | } | |
6846 | if (obj5) { | |
36ed4f51 RD |
6847 | { |
6848 | arg6 = (long)(SWIG_As_long(obj5)); | |
6849 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6850 | } | |
d55e5bfc RD |
6851 | } |
6852 | if (obj6) { | |
6853 | { | |
6854 | arg7 = wxString_in_helper(obj6); | |
6855 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 6856 | temp7 = true; |
d55e5bfc RD |
6857 | } |
6858 | } | |
6859 | { | |
0439c23b | 6860 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6862 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6863 | ||
6864 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6865 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6866 | } |
6867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
6868 | { | |
6869 | if (temp7) | |
6870 | delete arg7; | |
6871 | } | |
6872 | return resultobj; | |
6873 | fail: | |
6874 | { | |
6875 | if (temp7) | |
6876 | delete arg7; | |
6877 | } | |
6878 | return NULL; | |
6879 | } | |
6880 | ||
6881 | ||
c370783e | 6882 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6883 | PyObject *resultobj; |
6884 | wxStaticBitmap *result; | |
6885 | char *kwnames[] = { | |
6886 | NULL | |
6887 | }; | |
6888 | ||
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
6890 | { | |
0439c23b | 6891 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6893 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
6894 | ||
6895 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6896 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6897 | } |
6898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
6899 | return resultobj; | |
6900 | fail: | |
6901 | return NULL; | |
6902 | } | |
6903 | ||
6904 | ||
c370783e | 6905 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6906 | PyObject *resultobj; |
6907 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6908 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
6909 | int arg3 = (int) -1 ; |
6910 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
6911 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
6912 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6913 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6914 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6915 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6916 | long arg7 = (long) 0 ; | |
6917 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
6918 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6919 | bool result; | |
6920 | wxPoint temp5 ; | |
6921 | wxSize temp6 ; | |
b411df4a | 6922 | bool temp8 = false ; |
d55e5bfc RD |
6923 | PyObject * obj0 = 0 ; |
6924 | PyObject * obj1 = 0 ; | |
6925 | PyObject * obj2 = 0 ; | |
6926 | PyObject * obj3 = 0 ; | |
6927 | PyObject * obj4 = 0 ; | |
6928 | PyObject * obj5 = 0 ; | |
6929 | PyObject * obj6 = 0 ; | |
6930 | PyObject * obj7 = 0 ; | |
6931 | char *kwnames[] = { | |
6932 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6933 | }; | |
6934 | ||
bfddbb17 | 6935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
6936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
6937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6938 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 6940 | if (obj2) { |
36ed4f51 RD |
6941 | { |
6942 | arg3 = (int)(SWIG_As_int(obj2)); | |
6943 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6944 | } | |
bfddbb17 RD |
6945 | } |
6946 | if (obj3) { | |
36ed4f51 RD |
6947 | { |
6948 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6949 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6950 | if (arg4 == NULL) { | |
6951 | SWIG_null_ref("wxBitmap"); | |
6952 | } | |
6953 | if (SWIG_arg_fail(4)) SWIG_fail; | |
bfddbb17 | 6954 | } |
d55e5bfc RD |
6955 | } |
6956 | if (obj4) { | |
6957 | { | |
6958 | arg5 = &temp5; | |
6959 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6960 | } | |
6961 | } | |
6962 | if (obj5) { | |
6963 | { | |
6964 | arg6 = &temp6; | |
6965 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6966 | } | |
6967 | } | |
6968 | if (obj6) { | |
36ed4f51 RD |
6969 | { |
6970 | arg7 = (long)(SWIG_As_long(obj6)); | |
6971 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6972 | } | |
d55e5bfc RD |
6973 | } |
6974 | if (obj7) { | |
6975 | { | |
6976 | arg8 = wxString_in_helper(obj7); | |
6977 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 6978 | temp8 = true; |
d55e5bfc RD |
6979 | } |
6980 | } | |
6981 | { | |
6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6983 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6984 | ||
6985 | wxPyEndAllowThreads(__tstate); | |
6986 | if (PyErr_Occurred()) SWIG_fail; | |
6987 | } | |
6988 | { | |
6989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6990 | } | |
6991 | { | |
6992 | if (temp8) | |
6993 | delete arg8; | |
6994 | } | |
6995 | return resultobj; | |
6996 | fail: | |
6997 | { | |
6998 | if (temp8) | |
6999 | delete arg8; | |
7000 | } | |
7001 | return NULL; | |
7002 | } | |
7003 | ||
7004 | ||
c370783e | 7005 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7006 | PyObject *resultobj; |
7007 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7008 | wxBitmap result; | |
7009 | PyObject * obj0 = 0 ; | |
7010 | char *kwnames[] = { | |
7011 | (char *) "self", NULL | |
7012 | }; | |
7013 | ||
7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7017 | { |
7018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7019 | result = (arg1)->GetBitmap(); | |
7020 | ||
7021 | wxPyEndAllowThreads(__tstate); | |
7022 | if (PyErr_Occurred()) SWIG_fail; | |
7023 | } | |
7024 | { | |
7025 | wxBitmap * resultptr; | |
36ed4f51 | 7026 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
7027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
7028 | } | |
7029 | return resultobj; | |
7030 | fail: | |
7031 | return NULL; | |
7032 | } | |
7033 | ||
7034 | ||
c370783e | 7035 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7036 | PyObject *resultobj; |
7037 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7038 | wxBitmap *arg2 = 0 ; | |
7039 | PyObject * obj0 = 0 ; | |
7040 | PyObject * obj1 = 0 ; | |
7041 | char *kwnames[] = { | |
7042 | (char *) "self",(char *) "bitmap", NULL | |
7043 | }; | |
7044 | ||
7045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7048 | { | |
7049 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7050 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7051 | if (arg2 == NULL) { | |
7052 | SWIG_null_ref("wxBitmap"); | |
7053 | } | |
7054 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7055 | } |
7056 | { | |
7057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7058 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
7059 | ||
7060 | wxPyEndAllowThreads(__tstate); | |
7061 | if (PyErr_Occurred()) SWIG_fail; | |
7062 | } | |
7063 | Py_INCREF(Py_None); resultobj = Py_None; | |
7064 | return resultobj; | |
7065 | fail: | |
7066 | return NULL; | |
7067 | } | |
7068 | ||
7069 | ||
c370783e | 7070 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7071 | PyObject *resultobj; |
7072 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7073 | wxIcon *arg2 = 0 ; | |
7074 | PyObject * obj0 = 0 ; | |
7075 | PyObject * obj1 = 0 ; | |
7076 | char *kwnames[] = { | |
7077 | (char *) "self",(char *) "icon", NULL | |
7078 | }; | |
7079 | ||
7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7083 | { | |
7084 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
7085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7086 | if (arg2 == NULL) { | |
7087 | SWIG_null_ref("wxIcon"); | |
7088 | } | |
7089 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7090 | } |
7091 | { | |
7092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7093 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
7094 | ||
7095 | wxPyEndAllowThreads(__tstate); | |
7096 | if (PyErr_Occurred()) SWIG_fail; | |
7097 | } | |
7098 | Py_INCREF(Py_None); resultobj = Py_None; | |
7099 | return resultobj; | |
7100 | fail: | |
7101 | return NULL; | |
7102 | } | |
7103 | ||
7104 | ||
c370783e | 7105 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 7106 | PyObject *resultobj; |
36ed4f51 | 7107 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
7108 | wxVisualAttributes result; |
7109 | PyObject * obj0 = 0 ; | |
7110 | char *kwnames[] = { | |
7111 | (char *) "variant", NULL | |
7112 | }; | |
7113 | ||
7114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
7115 | if (obj0) { | |
36ed4f51 RD |
7116 | { |
7117 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
7118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7119 | } | |
f20a2e1f RD |
7120 | } |
7121 | { | |
0439c23b | 7122 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7124 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
7125 | ||
7126 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7127 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
7128 | } |
7129 | { | |
7130 | wxVisualAttributes * resultptr; | |
36ed4f51 | 7131 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
7132 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
7133 | } | |
7134 | return resultobj; | |
7135 | fail: | |
7136 | return NULL; | |
7137 | } | |
7138 | ||
7139 | ||
c370783e | 7140 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7141 | PyObject *obj; |
7142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7143 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
7144 | Py_INCREF(obj); | |
7145 | return Py_BuildValue((char *)""); | |
7146 | } | |
c370783e | 7147 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
7148 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
7149 | return 1; | |
7150 | } | |
7151 | ||
7152 | ||
36ed4f51 | 7153 | static PyObject *_wrap_ListBoxNameStr_get(void) { |
d55e5bfc RD |
7154 | PyObject *pyobj; |
7155 | ||
7156 | { | |
7157 | #if wxUSE_UNICODE | |
7158 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7159 | #else | |
7160 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7161 | #endif | |
7162 | } | |
7163 | return pyobj; | |
7164 | } | |
7165 | ||
7166 | ||
c370783e | 7167 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7168 | PyObject *resultobj; |
7169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 7170 | int arg2 = (int) -1 ; |
d55e5bfc RD |
7171 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7172 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7173 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7174 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7175 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
7176 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
7177 | long arg6 = (long) 0 ; | |
7178 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7179 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7180 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
7181 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7182 | wxListBox *result; | |
7183 | wxPoint temp3 ; | |
7184 | wxSize temp4 ; | |
b411df4a RD |
7185 | bool temp5 = false ; |
7186 | bool temp8 = false ; | |
d55e5bfc RD |
7187 | PyObject * obj0 = 0 ; |
7188 | PyObject * obj1 = 0 ; | |
7189 | PyObject * obj2 = 0 ; | |
7190 | PyObject * obj3 = 0 ; | |
7191 | PyObject * obj4 = 0 ; | |
7192 | PyObject * obj5 = 0 ; | |
7193 | PyObject * obj6 = 0 ; | |
7194 | PyObject * obj7 = 0 ; | |
7195 | char *kwnames[] = { | |
7196 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7197 | }; | |
7198 | ||
bfddbb17 | 7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
7200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 7202 | if (obj1) { |
36ed4f51 RD |
7203 | { |
7204 | arg2 = (int)(SWIG_As_int(obj1)); | |
7205 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7206 | } | |
bfddbb17 | 7207 | } |
d55e5bfc RD |
7208 | if (obj2) { |
7209 | { | |
7210 | arg3 = &temp3; | |
7211 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7212 | } | |
7213 | } | |
7214 | if (obj3) { | |
7215 | { | |
7216 | arg4 = &temp4; | |
7217 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7218 | } | |
7219 | } | |
7220 | if (obj4) { | |
7221 | { | |
7222 | if (! PySequence_Check(obj4)) { | |
7223 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7224 | SWIG_fail; | |
7225 | } | |
7226 | arg5 = new wxArrayString; | |
b411df4a | 7227 | temp5 = true; |
d55e5bfc RD |
7228 | int i, len=PySequence_Length(obj4); |
7229 | for (i=0; i<len; i++) { | |
7230 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 7231 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 7232 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7233 | arg5->Add(*s); |
7234 | delete s; | |
d55e5bfc | 7235 | Py_DECREF(item); |
d55e5bfc RD |
7236 | } |
7237 | } | |
7238 | } | |
7239 | if (obj5) { | |
36ed4f51 RD |
7240 | { |
7241 | arg6 = (long)(SWIG_As_long(obj5)); | |
7242 | if (SWIG_arg_fail(6)) SWIG_fail; | |
7243 | } | |
d55e5bfc RD |
7244 | } |
7245 | if (obj6) { | |
36ed4f51 RD |
7246 | { |
7247 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7248 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7249 | if (arg7 == NULL) { | |
7250 | SWIG_null_ref("wxValidator"); | |
7251 | } | |
7252 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
7253 | } |
7254 | } | |
7255 | if (obj7) { | |
7256 | { | |
7257 | arg8 = wxString_in_helper(obj7); | |
7258 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 7259 | temp8 = true; |
d55e5bfc RD |
7260 | } |
7261 | } | |
7262 | { | |
0439c23b | 7263 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7265 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7266 | ||
7267 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7268 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7269 | } |
7270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
7271 | { | |
7272 | if (temp5) delete arg5; | |
7273 | } | |
7274 | { | |
7275 | if (temp8) | |
7276 | delete arg8; | |
7277 | } | |
7278 | return resultobj; | |
7279 | fail: | |
7280 | { | |
7281 | if (temp5) delete arg5; | |
7282 | } | |
7283 | { | |
7284 | if (temp8) | |
7285 | delete arg8; | |
7286 | } | |
7287 | return NULL; | |
7288 | } | |
7289 | ||
7290 | ||
c370783e | 7291 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7292 | PyObject *resultobj; |
7293 | wxListBox *result; | |
7294 | char *kwnames[] = { | |
7295 | NULL | |
7296 | }; | |
7297 | ||
7298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
7299 | { | |
0439c23b | 7300 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7302 | result = (wxListBox *)new wxListBox(); | |
7303 | ||
7304 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7305 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7306 | } |
7307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
7308 | return resultobj; | |
7309 | fail: | |
7310 | return NULL; | |
7311 | } | |
7312 | ||
7313 | ||
c370783e | 7314 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7315 | PyObject *resultobj; |
7316 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7317 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 7318 | int arg3 = (int) -1 ; |
d55e5bfc RD |
7319 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7320 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7321 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7322 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7323 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
7324 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7325 | long arg7 = (long) 0 ; | |
7326 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7327 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7328 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7329 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7330 | bool result; | |
7331 | wxPoint temp4 ; | |
7332 | wxSize temp5 ; | |
b411df4a RD |
7333 | bool temp6 = false ; |
7334 | bool temp9 = false ; | |
d55e5bfc RD |
7335 | PyObject * obj0 = 0 ; |
7336 | PyObject * obj1 = 0 ; | |
7337 | PyObject * obj2 = 0 ; | |
7338 | PyObject * obj3 = 0 ; | |
7339 | PyObject * obj4 = 0 ; | |
7340 | PyObject * obj5 = 0 ; | |
7341 | PyObject * obj6 = 0 ; | |
7342 | PyObject * obj7 = 0 ; | |
7343 | PyObject * obj8 = 0 ; | |
7344 | char *kwnames[] = { | |
7345 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7346 | }; | |
7347 | ||
bfddbb17 | 7348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
7349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7351 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7352 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 7353 | if (obj2) { |
36ed4f51 RD |
7354 | { |
7355 | arg3 = (int)(SWIG_As_int(obj2)); | |
7356 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7357 | } | |
bfddbb17 | 7358 | } |
d55e5bfc RD |
7359 | if (obj3) { |
7360 | { | |
7361 | arg4 = &temp4; | |
7362 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7363 | } | |
7364 | } | |
7365 | if (obj4) { | |
7366 | { | |
7367 | arg5 = &temp5; | |
7368 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7369 | } | |
7370 | } | |
7371 | if (obj5) { | |
7372 | { | |
7373 | if (! PySequence_Check(obj5)) { | |
7374 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7375 | SWIG_fail; | |
7376 | } | |
7377 | arg6 = new wxArrayString; | |
b411df4a | 7378 | temp6 = true; |
d55e5bfc RD |
7379 | int i, len=PySequence_Length(obj5); |
7380 | for (i=0; i<len; i++) { | |
7381 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 7382 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 7383 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7384 | arg6->Add(*s); |
7385 | delete s; | |
d55e5bfc | 7386 | Py_DECREF(item); |
d55e5bfc RD |
7387 | } |
7388 | } | |
7389 | } | |
7390 | if (obj6) { | |
36ed4f51 RD |
7391 | { |
7392 | arg7 = (long)(SWIG_As_long(obj6)); | |
7393 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7394 | } | |
d55e5bfc RD |
7395 | } |
7396 | if (obj7) { | |
36ed4f51 RD |
7397 | { |
7398 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7399 | if (SWIG_arg_fail(8)) SWIG_fail; | |
7400 | if (arg8 == NULL) { | |
7401 | SWIG_null_ref("wxValidator"); | |
7402 | } | |
7403 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
7404 | } |
7405 | } | |
7406 | if (obj8) { | |
7407 | { | |
7408 | arg9 = wxString_in_helper(obj8); | |
7409 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 7410 | temp9 = true; |
d55e5bfc RD |
7411 | } |
7412 | } | |
7413 | { | |
7414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7415 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7416 | ||
7417 | wxPyEndAllowThreads(__tstate); | |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
7419 | } | |
7420 | { | |
7421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7422 | } | |
7423 | { | |
7424 | if (temp6) delete arg6; | |
7425 | } | |
7426 | { | |
7427 | if (temp9) | |
7428 | delete arg9; | |
7429 | } | |
7430 | return resultobj; | |
7431 | fail: | |
7432 | { | |
7433 | if (temp6) delete arg6; | |
7434 | } | |
7435 | { | |
7436 | if (temp9) | |
7437 | delete arg9; | |
7438 | } | |
7439 | return NULL; | |
7440 | } | |
7441 | ||
7442 | ||
c370783e | 7443 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7444 | PyObject *resultobj; |
7445 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7446 | wxString *arg2 = 0 ; | |
7447 | int arg3 ; | |
7448 | PyObject *arg4 = (PyObject *) NULL ; | |
b411df4a | 7449 | bool temp2 = false ; |
d55e5bfc RD |
7450 | PyObject * obj0 = 0 ; |
7451 | PyObject * obj1 = 0 ; | |
7452 | PyObject * obj2 = 0 ; | |
7453 | PyObject * obj3 = 0 ; | |
7454 | char *kwnames[] = { | |
7455 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
7456 | }; | |
7457 | ||
7458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
7459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7461 | { |
7462 | arg2 = wxString_in_helper(obj1); | |
7463 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7464 | temp2 = true; |
d55e5bfc | 7465 | } |
36ed4f51 RD |
7466 | { |
7467 | arg3 = (int)(SWIG_As_int(obj2)); | |
7468 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7469 | } | |
d55e5bfc RD |
7470 | if (obj3) { |
7471 | arg4 = obj3; | |
7472 | } | |
7473 | { | |
7474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7475 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
7476 | ||
7477 | wxPyEndAllowThreads(__tstate); | |
7478 | if (PyErr_Occurred()) SWIG_fail; | |
7479 | } | |
7480 | Py_INCREF(Py_None); resultobj = Py_None; | |
7481 | { | |
7482 | if (temp2) | |
7483 | delete arg2; | |
7484 | } | |
7485 | return resultobj; | |
7486 | fail: | |
7487 | { | |
7488 | if (temp2) | |
7489 | delete arg2; | |
7490 | } | |
7491 | return NULL; | |
7492 | } | |
7493 | ||
7494 | ||
c370783e | 7495 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7496 | PyObject *resultobj; |
7497 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7498 | wxArrayString *arg2 = 0 ; | |
7499 | int arg3 ; | |
b411df4a | 7500 | bool temp2 = false ; |
d55e5bfc RD |
7501 | PyObject * obj0 = 0 ; |
7502 | PyObject * obj1 = 0 ; | |
7503 | PyObject * obj2 = 0 ; | |
7504 | char *kwnames[] = { | |
7505 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
7506 | }; | |
7507 | ||
7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
7509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7511 | { |
7512 | if (! PySequence_Check(obj1)) { | |
7513 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7514 | SWIG_fail; | |
7515 | } | |
7516 | arg2 = new wxArrayString; | |
b411df4a | 7517 | temp2 = true; |
d55e5bfc RD |
7518 | int i, len=PySequence_Length(obj1); |
7519 | for (i=0; i<len; i++) { | |
7520 | PyObject* item = PySequence_GetItem(obj1, i); | |
71237536 | 7521 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 7522 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7523 | arg2->Add(*s); |
7524 | delete s; | |
d55e5bfc | 7525 | Py_DECREF(item); |
d55e5bfc RD |
7526 | } |
7527 | } | |
36ed4f51 RD |
7528 | { |
7529 | arg3 = (int)(SWIG_As_int(obj2)); | |
7530 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7531 | } | |
d55e5bfc RD |
7532 | { |
7533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7534 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
7535 | ||
7536 | wxPyEndAllowThreads(__tstate); | |
7537 | if (PyErr_Occurred()) SWIG_fail; | |
7538 | } | |
7539 | Py_INCREF(Py_None); resultobj = Py_None; | |
7540 | { | |
7541 | if (temp2) delete arg2; | |
7542 | } | |
7543 | return resultobj; | |
7544 | fail: | |
7545 | { | |
7546 | if (temp2) delete arg2; | |
7547 | } | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
c370783e | 7552 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7553 | PyObject *resultobj; |
7554 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7555 | wxArrayString *arg2 = 0 ; | |
b411df4a | 7556 | bool temp2 = false ; |
d55e5bfc RD |
7557 | PyObject * obj0 = 0 ; |
7558 | PyObject * obj1 = 0 ; | |
7559 | char *kwnames[] = { | |
7560 | (char *) "self",(char *) "items", NULL | |
7561 | }; | |
7562 | ||
7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7566 | { |
7567 | if (! PySequence_Check(obj1)) { | |
7568 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7569 | SWIG_fail; | |
7570 | } | |
7571 | arg2 = new wxArrayString; | |
b411df4a | 7572 | temp2 = true; |
d55e5bfc RD |
7573 | int i, len=PySequence_Length(obj1); |
7574 | for (i=0; i<len; i++) { | |
7575 | PyObject* item = PySequence_GetItem(obj1, i); | |
71237536 | 7576 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 7577 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7578 | arg2->Add(*s); |
7579 | delete s; | |
d55e5bfc | 7580 | Py_DECREF(item); |
d55e5bfc RD |
7581 | } |
7582 | } | |
7583 | { | |
7584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7585 | (arg1)->Set((wxArrayString const &)*arg2); | |
7586 | ||
7587 | wxPyEndAllowThreads(__tstate); | |
7588 | if (PyErr_Occurred()) SWIG_fail; | |
7589 | } | |
7590 | Py_INCREF(Py_None); resultobj = Py_None; | |
7591 | { | |
7592 | if (temp2) delete arg2; | |
7593 | } | |
7594 | return resultobj; | |
7595 | fail: | |
7596 | { | |
7597 | if (temp2) delete arg2; | |
7598 | } | |
7599 | return NULL; | |
7600 | } | |
7601 | ||
7602 | ||
c370783e | 7603 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7604 | PyObject *resultobj; |
7605 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7606 | int arg2 ; | |
7607 | bool result; | |
7608 | PyObject * obj0 = 0 ; | |
7609 | PyObject * obj1 = 0 ; | |
7610 | char *kwnames[] = { | |
7611 | (char *) "self",(char *) "n", NULL | |
7612 | }; | |
7613 | ||
7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7617 | { | |
7618 | arg2 = (int)(SWIG_As_int(obj1)); | |
7619 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7620 | } | |
d55e5bfc RD |
7621 | { |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7623 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
7624 | ||
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
7628 | { | |
7629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7630 | } | |
7631 | return resultobj; | |
7632 | fail: | |
7633 | return NULL; | |
7634 | } | |
7635 | ||
7636 | ||
c370783e | 7637 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7638 | PyObject *resultobj; |
7639 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7640 | int arg2 ; | |
b411df4a | 7641 | bool arg3 = (bool) true ; |
d55e5bfc RD |
7642 | PyObject * obj0 = 0 ; |
7643 | PyObject * obj1 = 0 ; | |
7644 | PyObject * obj2 = 0 ; | |
7645 | char *kwnames[] = { | |
7646 | (char *) "self",(char *) "n",(char *) "select", NULL | |
7647 | }; | |
7648 | ||
7649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
7650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7652 | { | |
7653 | arg2 = (int)(SWIG_As_int(obj1)); | |
7654 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7655 | } | |
d55e5bfc | 7656 | if (obj2) { |
36ed4f51 RD |
7657 | { |
7658 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7659 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7660 | } | |
d55e5bfc RD |
7661 | } |
7662 | { | |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | (arg1)->SetSelection(arg2,arg3); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
7669 | Py_INCREF(Py_None); resultobj = Py_None; | |
7670 | return resultobj; | |
7671 | fail: | |
7672 | return NULL; | |
7673 | } | |
7674 | ||
7675 | ||
c370783e | 7676 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7677 | PyObject *resultobj; |
7678 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7679 | int arg2 ; | |
7680 | PyObject * obj0 = 0 ; | |
7681 | PyObject * obj1 = 0 ; | |
7682 | char *kwnames[] = { | |
7683 | (char *) "self",(char *) "n", NULL | |
7684 | }; | |
7685 | ||
7686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7689 | { | |
7690 | arg2 = (int)(SWIG_As_int(obj1)); | |
7691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7692 | } | |
d55e5bfc RD |
7693 | { |
7694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7695 | (arg1)->Select(arg2); | |
7696 | ||
7697 | wxPyEndAllowThreads(__tstate); | |
7698 | if (PyErr_Occurred()) SWIG_fail; | |
7699 | } | |
7700 | Py_INCREF(Py_None); resultobj = Py_None; | |
7701 | return resultobj; | |
7702 | fail: | |
7703 | return NULL; | |
7704 | } | |
7705 | ||
7706 | ||
c370783e | 7707 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7708 | PyObject *resultobj; |
7709 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7710 | int arg2 ; | |
7711 | PyObject * obj0 = 0 ; | |
7712 | PyObject * obj1 = 0 ; | |
7713 | char *kwnames[] = { | |
7714 | (char *) "self",(char *) "n", NULL | |
7715 | }; | |
7716 | ||
7717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7720 | { | |
7721 | arg2 = (int)(SWIG_As_int(obj1)); | |
7722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7723 | } | |
d55e5bfc RD |
7724 | { |
7725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7726 | (arg1)->Deselect(arg2); | |
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 | ||
c370783e | 7738 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7739 | PyObject *resultobj; |
7740 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7741 | int arg2 = (int) -1 ; | |
7742 | PyObject * obj0 = 0 ; | |
7743 | PyObject * obj1 = 0 ; | |
7744 | char *kwnames[] = { | |
7745 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
7746 | }; | |
7747 | ||
7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7751 | if (obj1) { |
36ed4f51 RD |
7752 | { |
7753 | arg2 = (int)(SWIG_As_int(obj1)); | |
7754 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7755 | } | |
d55e5bfc RD |
7756 | } |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | (arg1)->DeselectAll(arg2); | |
7760 | ||
7761 | wxPyEndAllowThreads(__tstate); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
7764 | Py_INCREF(Py_None); resultobj = Py_None; | |
7765 | return resultobj; | |
7766 | fail: | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
c370783e | 7771 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7772 | PyObject *resultobj; |
7773 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7774 | wxString *arg2 = 0 ; | |
b411df4a | 7775 | bool arg3 = (bool) true ; |
d55e5bfc | 7776 | bool result; |
b411df4a | 7777 | bool temp2 = false ; |
d55e5bfc RD |
7778 | PyObject * obj0 = 0 ; |
7779 | PyObject * obj1 = 0 ; | |
7780 | PyObject * obj2 = 0 ; | |
7781 | char *kwnames[] = { | |
7782 | (char *) "self",(char *) "s",(char *) "select", NULL | |
7783 | }; | |
7784 | ||
7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
7786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7788 | { |
7789 | arg2 = wxString_in_helper(obj1); | |
7790 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7791 | temp2 = true; |
d55e5bfc RD |
7792 | } |
7793 | if (obj2) { | |
36ed4f51 RD |
7794 | { |
7795 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7796 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7797 | } | |
d55e5bfc RD |
7798 | } |
7799 | { | |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | { | |
7807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7808 | } | |
7809 | { | |
7810 | if (temp2) | |
7811 | delete arg2; | |
7812 | } | |
7813 | return resultobj; | |
7814 | fail: | |
7815 | { | |
7816 | if (temp2) | |
7817 | delete arg2; | |
7818 | } | |
7819 | return NULL; | |
7820 | } | |
7821 | ||
7822 | ||
c370783e | 7823 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7824 | PyObject *resultobj; |
7825 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7826 | PyObject *result; | |
7827 | PyObject * obj0 = 0 ; | |
7828 | char *kwnames[] = { | |
7829 | (char *) "self", NULL | |
7830 | }; | |
7831 | ||
7832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
7833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7835 | { |
7836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7837 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
7838 | ||
7839 | wxPyEndAllowThreads(__tstate); | |
7840 | if (PyErr_Occurred()) SWIG_fail; | |
7841 | } | |
7842 | resultobj = result; | |
7843 | return resultobj; | |
7844 | fail: | |
7845 | return NULL; | |
7846 | } | |
7847 | ||
7848 | ||
c370783e | 7849 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7850 | PyObject *resultobj; |
7851 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7852 | int arg2 ; | |
7853 | PyObject * obj0 = 0 ; | |
7854 | PyObject * obj1 = 0 ; | |
7855 | char *kwnames[] = { | |
7856 | (char *) "self",(char *) "n", NULL | |
7857 | }; | |
7858 | ||
7859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7862 | { | |
7863 | arg2 = (int)(SWIG_As_int(obj1)); | |
7864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7865 | } | |
d55e5bfc RD |
7866 | { |
7867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7868 | (arg1)->SetFirstItem(arg2); | |
7869 | ||
7870 | wxPyEndAllowThreads(__tstate); | |
7871 | if (PyErr_Occurred()) SWIG_fail; | |
7872 | } | |
7873 | Py_INCREF(Py_None); resultobj = Py_None; | |
7874 | return resultobj; | |
7875 | fail: | |
7876 | return NULL; | |
7877 | } | |
7878 | ||
7879 | ||
c370783e | 7880 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7881 | PyObject *resultobj; |
7882 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7883 | wxString *arg2 = 0 ; | |
b411df4a | 7884 | bool temp2 = false ; |
d55e5bfc RD |
7885 | PyObject * obj0 = 0 ; |
7886 | PyObject * obj1 = 0 ; | |
7887 | char *kwnames[] = { | |
7888 | (char *) "self",(char *) "s", NULL | |
7889 | }; | |
7890 | ||
7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7892 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7893 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7894 | { |
7895 | arg2 = wxString_in_helper(obj1); | |
7896 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7897 | temp2 = true; |
d55e5bfc RD |
7898 | } |
7899 | { | |
7900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7901 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
7902 | ||
7903 | wxPyEndAllowThreads(__tstate); | |
7904 | if (PyErr_Occurred()) SWIG_fail; | |
7905 | } | |
7906 | Py_INCREF(Py_None); resultobj = Py_None; | |
7907 | { | |
7908 | if (temp2) | |
7909 | delete arg2; | |
7910 | } | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | { | |
7914 | if (temp2) | |
7915 | delete arg2; | |
7916 | } | |
7917 | return NULL; | |
7918 | } | |
7919 | ||
7920 | ||
c370783e | 7921 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7922 | PyObject *resultobj; |
7923 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7924 | int arg2 ; | |
7925 | PyObject * obj0 = 0 ; | |
7926 | PyObject * obj1 = 0 ; | |
7927 | char *kwnames[] = { | |
7928 | (char *) "self",(char *) "n", NULL | |
7929 | }; | |
7930 | ||
7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7934 | { | |
7935 | arg2 = (int)(SWIG_As_int(obj1)); | |
7936 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7937 | } | |
d55e5bfc RD |
7938 | { |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | (arg1)->EnsureVisible(arg2); | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
7945 | Py_INCREF(Py_None); resultobj = Py_None; | |
7946 | return resultobj; | |
7947 | fail: | |
7948 | return NULL; | |
7949 | } | |
7950 | ||
7951 | ||
c370783e | 7952 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7953 | PyObject *resultobj; |
7954 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7955 | wxString *arg2 = 0 ; | |
b411df4a | 7956 | bool temp2 = false ; |
d55e5bfc RD |
7957 | PyObject * obj0 = 0 ; |
7958 | PyObject * obj1 = 0 ; | |
7959 | char *kwnames[] = { | |
7960 | (char *) "self",(char *) "s", NULL | |
7961 | }; | |
7962 | ||
7963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
7964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7966 | { |
7967 | arg2 = wxString_in_helper(obj1); | |
7968 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7969 | temp2 = true; |
d55e5bfc RD |
7970 | } |
7971 | { | |
7972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7973 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
7974 | ||
7975 | wxPyEndAllowThreads(__tstate); | |
7976 | if (PyErr_Occurred()) SWIG_fail; | |
7977 | } | |
7978 | Py_INCREF(Py_None); resultobj = Py_None; | |
7979 | { | |
7980 | if (temp2) | |
7981 | delete arg2; | |
7982 | } | |
7983 | return resultobj; | |
7984 | fail: | |
7985 | { | |
7986 | if (temp2) | |
7987 | delete arg2; | |
7988 | } | |
7989 | return NULL; | |
7990 | } | |
7991 | ||
7992 | ||
c370783e | 7993 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7994 | PyObject *resultobj; |
7995 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7996 | bool result; | |
7997 | PyObject * obj0 = 0 ; | |
7998 | char *kwnames[] = { | |
7999 | (char *) "self", NULL | |
8000 | }; | |
8001 | ||
8002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8005 | { |
8006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8007 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
8008 | ||
8009 | wxPyEndAllowThreads(__tstate); | |
8010 | if (PyErr_Occurred()) SWIG_fail; | |
8011 | } | |
8012 | { | |
8013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8014 | } | |
8015 | return resultobj; | |
8016 | fail: | |
8017 | return NULL; | |
8018 | } | |
8019 | ||
8020 | ||
c370783e | 8021 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8022 | PyObject *resultobj; |
8023 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8024 | int arg2 ; | |
8025 | wxColour *arg3 = 0 ; | |
8026 | wxColour temp3 ; | |
8027 | PyObject * obj0 = 0 ; | |
8028 | PyObject * obj1 = 0 ; | |
8029 | PyObject * obj2 = 0 ; | |
8030 | char *kwnames[] = { | |
8031 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8032 | }; | |
8033 | ||
8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8037 | { | |
8038 | arg2 = (int)(SWIG_As_int(obj1)); | |
8039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8040 | } | |
d55e5bfc RD |
8041 | { |
8042 | arg3 = &temp3; | |
8043 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8044 | } | |
8045 | { | |
8046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8047 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8048 | ||
8049 | wxPyEndAllowThreads(__tstate); | |
8050 | if (PyErr_Occurred()) SWIG_fail; | |
8051 | } | |
8052 | Py_INCREF(Py_None); resultobj = Py_None; | |
8053 | return resultobj; | |
8054 | fail: | |
8055 | return NULL; | |
8056 | } | |
8057 | ||
8058 | ||
c370783e | 8059 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8060 | PyObject *resultobj; |
8061 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8062 | int arg2 ; | |
8063 | wxColour *arg3 = 0 ; | |
8064 | wxColour temp3 ; | |
8065 | PyObject * obj0 = 0 ; | |
8066 | PyObject * obj1 = 0 ; | |
8067 | PyObject * obj2 = 0 ; | |
8068 | char *kwnames[] = { | |
8069 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8070 | }; | |
8071 | ||
8072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8075 | { | |
8076 | arg2 = (int)(SWIG_As_int(obj1)); | |
8077 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8078 | } | |
d55e5bfc RD |
8079 | { |
8080 | arg3 = &temp3; | |
8081 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8082 | } | |
8083 | { | |
8084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8085 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8086 | ||
8087 | wxPyEndAllowThreads(__tstate); | |
8088 | if (PyErr_Occurred()) SWIG_fail; | |
8089 | } | |
8090 | Py_INCREF(Py_None); resultobj = Py_None; | |
8091 | return resultobj; | |
8092 | fail: | |
8093 | return NULL; | |
8094 | } | |
8095 | ||
8096 | ||
c370783e | 8097 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8098 | PyObject *resultobj; |
8099 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8100 | int arg2 ; | |
8101 | wxFont *arg3 = 0 ; | |
8102 | PyObject * obj0 = 0 ; | |
8103 | PyObject * obj1 = 0 ; | |
8104 | PyObject * obj2 = 0 ; | |
8105 | char *kwnames[] = { | |
8106 | (char *) "self",(char *) "item",(char *) "f", NULL | |
8107 | }; | |
8108 | ||
8109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8112 | { | |
8113 | arg2 = (int)(SWIG_As_int(obj1)); | |
8114 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8115 | } | |
8116 | { | |
8117 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8118 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8119 | if (arg3 == NULL) { | |
8120 | SWIG_null_ref("wxFont"); | |
8121 | } | |
8122 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
8123 | } |
8124 | { | |
8125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8126 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
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 | ||
c370783e | 8138 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 8139 | PyObject *resultobj; |
36ed4f51 | 8140 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
8141 | wxVisualAttributes result; |
8142 | PyObject * obj0 = 0 ; | |
8143 | char *kwnames[] = { | |
8144 | (char *) "variant", NULL | |
8145 | }; | |
8146 | ||
8147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
8148 | if (obj0) { | |
36ed4f51 RD |
8149 | { |
8150 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
8151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8152 | } | |
d55e5bfc RD |
8153 | } |
8154 | { | |
0439c23b | 8155 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8157 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
8158 | ||
8159 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8160 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8161 | } |
8162 | { | |
8163 | wxVisualAttributes * resultptr; | |
36ed4f51 | 8164 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
8165 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
8166 | } | |
8167 | return resultobj; | |
8168 | fail: | |
8169 | return NULL; | |
8170 | } | |
8171 | ||
8172 | ||
c370783e | 8173 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8174 | PyObject *obj; |
8175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8176 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
8177 | Py_INCREF(obj); | |
8178 | return Py_BuildValue((char *)""); | |
8179 | } | |
c370783e | 8180 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8181 | PyObject *resultobj; |
8182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 8183 | int arg2 = (int) -1 ; |
d55e5bfc RD |
8184 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8185 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8186 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8187 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8188 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8189 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8190 | long arg6 = (long) 0 ; | |
8191 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8192 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8193 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8194 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8195 | wxCheckListBox *result; | |
8196 | wxPoint temp3 ; | |
8197 | wxSize temp4 ; | |
b411df4a RD |
8198 | bool temp5 = false ; |
8199 | bool temp8 = false ; | |
d55e5bfc RD |
8200 | PyObject * obj0 = 0 ; |
8201 | PyObject * obj1 = 0 ; | |
8202 | PyObject * obj2 = 0 ; | |
8203 | PyObject * obj3 = 0 ; | |
8204 | PyObject * obj4 = 0 ; | |
8205 | PyObject * obj5 = 0 ; | |
8206 | PyObject * obj6 = 0 ; | |
8207 | PyObject * obj7 = 0 ; | |
8208 | char *kwnames[] = { | |
8209 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8210 | }; | |
8211 | ||
bfddbb17 | 8212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
8213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 8215 | if (obj1) { |
36ed4f51 RD |
8216 | { |
8217 | arg2 = (int)(SWIG_As_int(obj1)); | |
8218 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8219 | } | |
bfddbb17 | 8220 | } |
d55e5bfc RD |
8221 | if (obj2) { |
8222 | { | |
8223 | arg3 = &temp3; | |
8224 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8225 | } | |
8226 | } | |
8227 | if (obj3) { | |
8228 | { | |
8229 | arg4 = &temp4; | |
8230 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8231 | } | |
8232 | } | |
8233 | if (obj4) { | |
8234 | { | |
8235 | if (! PySequence_Check(obj4)) { | |
8236 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8237 | SWIG_fail; | |
8238 | } | |
8239 | arg5 = new wxArrayString; | |
b411df4a | 8240 | temp5 = true; |
d55e5bfc RD |
8241 | int i, len=PySequence_Length(obj4); |
8242 | for (i=0; i<len; i++) { | |
8243 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 8244 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 8245 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
8246 | arg5->Add(*s); |
8247 | delete s; | |
d55e5bfc | 8248 | Py_DECREF(item); |
d55e5bfc RD |
8249 | } |
8250 | } | |
8251 | } | |
8252 | if (obj5) { | |
36ed4f51 RD |
8253 | { |
8254 | arg6 = (long)(SWIG_As_long(obj5)); | |
8255 | if (SWIG_arg_fail(6)) SWIG_fail; | |
8256 | } | |
d55e5bfc RD |
8257 | } |
8258 | if (obj6) { | |
36ed4f51 RD |
8259 | { |
8260 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8261 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8262 | if (arg7 == NULL) { | |
8263 | SWIG_null_ref("wxValidator"); | |
8264 | } | |
8265 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
8266 | } |
8267 | } | |
8268 | if (obj7) { | |
8269 | { | |
8270 | arg8 = wxString_in_helper(obj7); | |
8271 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 8272 | temp8 = true; |
d55e5bfc RD |
8273 | } |
8274 | } | |
8275 | { | |
0439c23b | 8276 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8278 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8279 | ||
8280 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8281 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8282 | } |
8283 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
8284 | { | |
8285 | if (temp5) delete arg5; | |
8286 | } | |
8287 | { | |
8288 | if (temp8) | |
8289 | delete arg8; | |
8290 | } | |
8291 | return resultobj; | |
8292 | fail: | |
8293 | { | |
8294 | if (temp5) delete arg5; | |
8295 | } | |
8296 | { | |
8297 | if (temp8) | |
8298 | delete arg8; | |
8299 | } | |
8300 | return NULL; | |
8301 | } | |
8302 | ||
8303 | ||
c370783e | 8304 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8305 | PyObject *resultobj; |
8306 | wxCheckListBox *result; | |
8307 | char *kwnames[] = { | |
8308 | NULL | |
8309 | }; | |
8310 | ||
8311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
8312 | { | |
0439c23b | 8313 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8315 | result = (wxCheckListBox *)new wxCheckListBox(); | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8318 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8319 | } |
8320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
c370783e | 8327 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8328 | PyObject *resultobj; |
8329 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8330 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 8331 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8332 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8333 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8334 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8335 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8336 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
8337 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8338 | long arg7 = (long) 0 ; | |
8339 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8340 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8341 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8342 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8343 | bool result; | |
8344 | wxPoint temp4 ; | |
8345 | wxSize temp5 ; | |
b411df4a RD |
8346 | bool temp6 = false ; |
8347 | bool temp9 = false ; | |
d55e5bfc RD |
8348 | PyObject * obj0 = 0 ; |
8349 | PyObject * obj1 = 0 ; | |
8350 | PyObject * obj2 = 0 ; | |
8351 | PyObject * obj3 = 0 ; | |
8352 | PyObject * obj4 = 0 ; | |
8353 | PyObject * obj5 = 0 ; | |
8354 | PyObject * obj6 = 0 ; | |
8355 | PyObject * obj7 = 0 ; | |
8356 | PyObject * obj8 = 0 ; | |
8357 | char *kwnames[] = { | |
8358 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8359 | }; | |
8360 | ||
bfddbb17 | 8361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
8362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8364 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8365 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 8366 | if (obj2) { |
36ed4f51 RD |
8367 | { |
8368 | arg3 = (int)(SWIG_As_int(obj2)); | |
8369 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8370 | } | |
bfddbb17 | 8371 | } |
d55e5bfc RD |
8372 | if (obj3) { |
8373 | { | |
8374 | arg4 = &temp4; | |
8375 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8376 | } | |
8377 | } | |
8378 | if (obj4) { | |
8379 | { | |
8380 | arg5 = &temp5; | |
8381 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8382 | } | |
8383 | } | |
8384 | if (obj5) { | |
8385 | { | |
8386 | if (! PySequence_Check(obj5)) { | |
8387 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8388 | SWIG_fail; | |
8389 | } | |
8390 | arg6 = new wxArrayString; | |
b411df4a | 8391 | temp6 = true; |
d55e5bfc RD |
8392 | int i, len=PySequence_Length(obj5); |
8393 | for (i=0; i<len; i++) { | |
8394 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 8395 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 8396 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
8397 | arg6->Add(*s); |
8398 | delete s; | |
d55e5bfc | 8399 | Py_DECREF(item); |
d55e5bfc RD |
8400 | } |
8401 | } | |
8402 | } | |
8403 | if (obj6) { | |
36ed4f51 RD |
8404 | { |
8405 | arg7 = (long)(SWIG_As_long(obj6)); | |
8406 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8407 | } | |
d55e5bfc RD |
8408 | } |
8409 | if (obj7) { | |
36ed4f51 RD |
8410 | { |
8411 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8412 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8413 | if (arg8 == NULL) { | |
8414 | SWIG_null_ref("wxValidator"); | |
8415 | } | |
8416 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
8417 | } |
8418 | } | |
8419 | if (obj8) { | |
8420 | { | |
8421 | arg9 = wxString_in_helper(obj8); | |
8422 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 8423 | temp9 = true; |
d55e5bfc RD |
8424 | } |
8425 | } | |
8426 | { | |
8427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8428 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8429 | ||
8430 | wxPyEndAllowThreads(__tstate); | |
8431 | if (PyErr_Occurred()) SWIG_fail; | |
8432 | } | |
8433 | { | |
8434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8435 | } | |
8436 | { | |
8437 | if (temp6) delete arg6; | |
8438 | } | |
8439 | { | |
8440 | if (temp9) | |
8441 | delete arg9; | |
8442 | } | |
8443 | return resultobj; | |
8444 | fail: | |
8445 | { | |
8446 | if (temp6) delete arg6; | |
8447 | } | |
8448 | { | |
8449 | if (temp9) | |
8450 | delete arg9; | |
8451 | } | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
c370783e | 8456 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8457 | PyObject *resultobj; |
8458 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8459 | int arg2 ; | |
8460 | bool result; | |
8461 | PyObject * obj0 = 0 ; | |
8462 | PyObject * obj1 = 0 ; | |
8463 | char *kwnames[] = { | |
8464 | (char *) "self",(char *) "index", NULL | |
8465 | }; | |
8466 | ||
8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
8468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8470 | { | |
8471 | arg2 = (int)(SWIG_As_int(obj1)); | |
8472 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8473 | } | |
d55e5bfc RD |
8474 | { |
8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8476 | result = (bool)(arg1)->IsChecked(arg2); | |
8477 | ||
8478 | wxPyEndAllowThreads(__tstate); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | { | |
8482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8483 | } | |
8484 | return resultobj; | |
8485 | fail: | |
8486 | return NULL; | |
8487 | } | |
8488 | ||
8489 | ||
c370783e | 8490 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8491 | PyObject *resultobj; |
8492 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8493 | int arg2 ; | |
b411df4a | 8494 | int arg3 = (int) true ; |
d55e5bfc RD |
8495 | PyObject * obj0 = 0 ; |
8496 | PyObject * obj1 = 0 ; | |
8497 | PyObject * obj2 = 0 ; | |
8498 | char *kwnames[] = { | |
8499 | (char *) "self",(char *) "index",(char *) "check", NULL | |
8500 | }; | |
8501 | ||
8502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8505 | { | |
8506 | arg2 = (int)(SWIG_As_int(obj1)); | |
8507 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8508 | } | |
d55e5bfc | 8509 | if (obj2) { |
36ed4f51 RD |
8510 | { |
8511 | arg3 = (int)(SWIG_As_int(obj2)); | |
8512 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8513 | } | |
d55e5bfc RD |
8514 | } |
8515 | { | |
8516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8517 | (arg1)->Check(arg2,arg3); | |
8518 | ||
8519 | wxPyEndAllowThreads(__tstate); | |
8520 | if (PyErr_Occurred()) SWIG_fail; | |
8521 | } | |
8522 | Py_INCREF(Py_None); resultobj = Py_None; | |
8523 | return resultobj; | |
8524 | fail: | |
8525 | return NULL; | |
8526 | } | |
8527 | ||
8528 | ||
c370783e | 8529 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8530 | PyObject *resultobj; |
8531 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8532 | wxPoint *arg2 = 0 ; | |
8533 | int result; | |
8534 | wxPoint temp2 ; | |
8535 | PyObject * obj0 = 0 ; | |
8536 | PyObject * obj1 = 0 ; | |
8537 | char *kwnames[] = { | |
8538 | (char *) "self",(char *) "pt", NULL | |
8539 | }; | |
8540 | ||
8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
8542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8544 | { |
8545 | arg2 = &temp2; | |
8546 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8547 | } | |
8548 | { | |
8549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8550 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
8551 | ||
8552 | wxPyEndAllowThreads(__tstate); | |
8553 | if (PyErr_Occurred()) SWIG_fail; | |
8554 | } | |
36ed4f51 RD |
8555 | { |
8556 | resultobj = SWIG_From_int((int)(result)); | |
8557 | } | |
d55e5bfc RD |
8558 | return resultobj; |
8559 | fail: | |
8560 | return NULL; | |
8561 | } | |
8562 | ||
8563 | ||
c370783e | 8564 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8565 | PyObject *resultobj; |
8566 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8567 | int arg2 ; | |
8568 | int arg3 ; | |
8569 | int result; | |
8570 | PyObject * obj0 = 0 ; | |
8571 | PyObject * obj1 = 0 ; | |
8572 | PyObject * obj2 = 0 ; | |
8573 | char *kwnames[] = { | |
8574 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8575 | }; | |
8576 | ||
8577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8580 | { | |
8581 | arg2 = (int)(SWIG_As_int(obj1)); | |
8582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8583 | } | |
8584 | { | |
8585 | arg3 = (int)(SWIG_As_int(obj2)); | |
8586 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8587 | } | |
d55e5bfc RD |
8588 | { |
8589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8590 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
8591 | ||
8592 | wxPyEndAllowThreads(__tstate); | |
8593 | if (PyErr_Occurred()) SWIG_fail; | |
8594 | } | |
36ed4f51 RD |
8595 | { |
8596 | resultobj = SWIG_From_int((int)(result)); | |
8597 | } | |
d55e5bfc RD |
8598 | return resultobj; |
8599 | fail: | |
8600 | return NULL; | |
8601 | } | |
8602 | ||
8603 | ||
c370783e | 8604 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8605 | PyObject *obj; |
8606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8607 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
8608 | Py_INCREF(obj); | |
8609 | return Py_BuildValue((char *)""); | |
8610 | } | |
c370783e | 8611 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
8612 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
8613 | return 1; | |
8614 | } | |
8615 | ||
8616 | ||
36ed4f51 | 8617 | static PyObject *_wrap_TextCtrlNameStr_get(void) { |
d55e5bfc RD |
8618 | PyObject *pyobj; |
8619 | ||
8620 | { | |
8621 | #if wxUSE_UNICODE | |
8622 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8623 | #else | |
8624 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8625 | #endif | |
8626 | } | |
8627 | return pyobj; | |
8628 | } | |
8629 | ||
8630 | ||
c370783e | 8631 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 8632 | PyObject *resultobj; |
908b74cd RD |
8633 | wxColour const &arg1_defvalue = wxNullColour ; |
8634 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d55e5bfc RD |
8635 | wxColour const &arg2_defvalue = wxNullColour ; |
8636 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8637 | wxFont const &arg3_defvalue = wxNullFont ; | |
8638 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
36ed4f51 | 8639 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; |
d55e5bfc RD |
8640 | wxTextAttr *result; |
8641 | wxColour temp1 ; | |
8642 | wxColour temp2 ; | |
8643 | PyObject * obj0 = 0 ; | |
8644 | PyObject * obj1 = 0 ; | |
8645 | PyObject * obj2 = 0 ; | |
8646 | PyObject * obj3 = 0 ; | |
908b74cd RD |
8647 | char *kwnames[] = { |
8648 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
8649 | }; | |
d55e5bfc | 8650 | |
908b74cd RD |
8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8652 | if (obj0) { | |
8653 | { | |
8654 | arg1 = &temp1; | |
8655 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
8656 | } | |
d55e5bfc RD |
8657 | } |
8658 | if (obj1) { | |
8659 | { | |
8660 | arg2 = &temp2; | |
8661 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8662 | } | |
8663 | } | |
8664 | if (obj2) { | |
36ed4f51 RD |
8665 | { |
8666 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8667 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8668 | if (arg3 == NULL) { | |
8669 | SWIG_null_ref("wxFont"); | |
8670 | } | |
8671 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
8672 | } |
8673 | } | |
8674 | if (obj3) { | |
36ed4f51 RD |
8675 | { |
8676 | arg4 = (wxTextAttrAlignment)(SWIG_As_int(obj3)); | |
8677 | if (SWIG_arg_fail(4)) SWIG_fail; | |
8678 | } | |
d55e5bfc RD |
8679 | } |
8680 | { | |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
8683 | ||
8684 | wxPyEndAllowThreads(__tstate); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
8687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
8688 | return resultobj; | |
8689 | fail: | |
8690 | return NULL; | |
8691 | } | |
8692 | ||
8693 | ||
c370783e | 8694 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8695 | PyObject *resultobj; |
8696 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8697 | PyObject * obj0 = 0 ; | |
8698 | char *kwnames[] = { | |
8699 | (char *) "self", NULL | |
8700 | }; | |
8701 | ||
8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8705 | { |
8706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8707 | delete arg1; | |
8708 | ||
8709 | wxPyEndAllowThreads(__tstate); | |
8710 | if (PyErr_Occurred()) SWIG_fail; | |
8711 | } | |
8712 | Py_INCREF(Py_None); resultobj = Py_None; | |
8713 | return resultobj; | |
8714 | fail: | |
8715 | return NULL; | |
8716 | } | |
8717 | ||
8718 | ||
c370783e | 8719 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8720 | PyObject *resultobj; |
8721 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8722 | PyObject * obj0 = 0 ; | |
8723 | char *kwnames[] = { | |
8724 | (char *) "self", NULL | |
8725 | }; | |
8726 | ||
8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
8728 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8729 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8730 | { |
8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8732 | (arg1)->Init(); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
8737 | Py_INCREF(Py_None); resultobj = Py_None; | |
8738 | return resultobj; | |
8739 | fail: | |
8740 | return NULL; | |
8741 | } | |
8742 | ||
8743 | ||
c370783e | 8744 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8745 | PyObject *resultobj; |
8746 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8747 | wxColour *arg2 = 0 ; | |
8748 | wxColour temp2 ; | |
8749 | PyObject * obj0 = 0 ; | |
8750 | PyObject * obj1 = 0 ; | |
8751 | char *kwnames[] = { | |
8752 | (char *) "self",(char *) "colText", NULL | |
8753 | }; | |
8754 | ||
8755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
8756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8758 | { |
8759 | arg2 = &temp2; | |
8760 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8761 | } | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
8765 | ||
8766 | wxPyEndAllowThreads(__tstate); | |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8768 | } | |
8769 | Py_INCREF(Py_None); resultobj = Py_None; | |
8770 | return resultobj; | |
8771 | fail: | |
8772 | return NULL; | |
8773 | } | |
8774 | ||
8775 | ||
c370783e | 8776 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8777 | PyObject *resultobj; |
8778 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8779 | wxColour *arg2 = 0 ; | |
8780 | wxColour temp2 ; | |
8781 | PyObject * obj0 = 0 ; | |
8782 | PyObject * obj1 = 0 ; | |
8783 | char *kwnames[] = { | |
8784 | (char *) "self",(char *) "colBack", NULL | |
8785 | }; | |
8786 | ||
8787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
8788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8790 | { |
8791 | arg2 = &temp2; | |
8792 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8793 | } | |
8794 | { | |
8795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8796 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
8797 | ||
8798 | wxPyEndAllowThreads(__tstate); | |
8799 | if (PyErr_Occurred()) SWIG_fail; | |
8800 | } | |
8801 | Py_INCREF(Py_None); resultobj = Py_None; | |
8802 | return resultobj; | |
8803 | fail: | |
8804 | return NULL; | |
8805 | } | |
8806 | ||
8807 | ||
c370783e | 8808 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8809 | PyObject *resultobj; |
8810 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8811 | wxFont *arg2 = 0 ; | |
8812 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
8813 | PyObject * obj0 = 0 ; | |
8814 | PyObject * obj1 = 0 ; | |
8815 | PyObject * obj2 = 0 ; | |
8816 | char *kwnames[] = { | |
8817 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
8818 | }; | |
8819 | ||
8820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
8821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8823 | { | |
8824 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8825 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8826 | if (arg2 == NULL) { | |
8827 | SWIG_null_ref("wxFont"); | |
8828 | } | |
8829 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8830 | } |
8831 | if (obj2) { | |
36ed4f51 RD |
8832 | { |
8833 | arg3 = (long)(SWIG_As_long(obj2)); | |
8834 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8835 | } | |
d55e5bfc RD |
8836 | } |
8837 | { | |
8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8839 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
8840 | ||
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
8844 | Py_INCREF(Py_None); resultobj = Py_None; | |
8845 | return resultobj; | |
8846 | fail: | |
8847 | return NULL; | |
8848 | } | |
8849 | ||
8850 | ||
c370783e | 8851 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8852 | PyObject *resultobj; |
8853 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
36ed4f51 | 8854 | wxTextAttrAlignment arg2 ; |
d55e5bfc RD |
8855 | PyObject * obj0 = 0 ; |
8856 | PyObject * obj1 = 0 ; | |
8857 | char *kwnames[] = { | |
8858 | (char *) "self",(char *) "alignment", NULL | |
8859 | }; | |
8860 | ||
8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
8862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8864 | { | |
8865 | arg2 = (wxTextAttrAlignment)(SWIG_As_int(obj1)); | |
8866 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8867 | } | |
d55e5bfc RD |
8868 | { |
8869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8870 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
8871 | ||
8872 | wxPyEndAllowThreads(__tstate); | |
8873 | if (PyErr_Occurred()) SWIG_fail; | |
8874 | } | |
8875 | Py_INCREF(Py_None); resultobj = Py_None; | |
8876 | return resultobj; | |
8877 | fail: | |
8878 | return NULL; | |
8879 | } | |
8880 | ||
8881 | ||
c370783e | 8882 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8883 | PyObject *resultobj; |
8884 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8885 | wxArrayInt *arg2 = 0 ; | |
b411df4a | 8886 | bool temp2 = false ; |
d55e5bfc RD |
8887 | PyObject * obj0 = 0 ; |
8888 | PyObject * obj1 = 0 ; | |
8889 | char *kwnames[] = { | |
8890 | (char *) "self",(char *) "tabs", NULL | |
8891 | }; | |
8892 | ||
8893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
8894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8896 | { |
8897 | if (! PySequence_Check(obj1)) { | |
8898 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
8899 | SWIG_fail; | |
8900 | } | |
8901 | arg2 = new wxArrayInt; | |
b411df4a | 8902 | temp2 = true; |
d55e5bfc RD |
8903 | int i, len=PySequence_Length(obj1); |
8904 | for (i=0; i<len; i++) { | |
8905 | PyObject* item = PySequence_GetItem(obj1, i); | |
8906 | PyObject* number = PyNumber_Int(item); | |
8907 | arg2->Add(PyInt_AS_LONG(number)); | |
8908 | Py_DECREF(item); | |
8909 | Py_DECREF(number); | |
8910 | } | |
8911 | } | |
8912 | { | |
8913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8914 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
8915 | ||
8916 | wxPyEndAllowThreads(__tstate); | |
8917 | if (PyErr_Occurred()) SWIG_fail; | |
8918 | } | |
8919 | Py_INCREF(Py_None); resultobj = Py_None; | |
8920 | { | |
8921 | if (temp2) delete arg2; | |
8922 | } | |
8923 | return resultobj; | |
8924 | fail: | |
8925 | { | |
8926 | if (temp2) delete arg2; | |
8927 | } | |
8928 | return NULL; | |
8929 | } | |
8930 | ||
8931 | ||
c370783e | 8932 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8933 | PyObject *resultobj; |
8934 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8935 | int arg2 ; | |
68e533f8 | 8936 | int arg3 = (int) 0 ; |
d55e5bfc RD |
8937 | PyObject * obj0 = 0 ; |
8938 | PyObject * obj1 = 0 ; | |
68e533f8 | 8939 | PyObject * obj2 = 0 ; |
d55e5bfc | 8940 | char *kwnames[] = { |
68e533f8 | 8941 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d55e5bfc RD |
8942 | }; |
8943 | ||
68e533f8 | 8944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
8945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8947 | { | |
8948 | arg2 = (int)(SWIG_As_int(obj1)); | |
8949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8950 | } | |
68e533f8 | 8951 | if (obj2) { |
36ed4f51 RD |
8952 | { |
8953 | arg3 = (int)(SWIG_As_int(obj2)); | |
8954 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8955 | } | |
68e533f8 | 8956 | } |
d55e5bfc RD |
8957 | { |
8958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
68e533f8 | 8959 | (arg1)->SetLeftIndent(arg2,arg3); |
d55e5bfc RD |
8960 | |
8961 | wxPyEndAllowThreads(__tstate); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
8964 | Py_INCREF(Py_None); resultobj = Py_None; | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | return NULL; | |
8968 | } | |
8969 | ||
8970 | ||
c370783e | 8971 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8972 | PyObject *resultobj; |
8973 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8974 | int arg2 ; | |
8975 | PyObject * obj0 = 0 ; | |
8976 | PyObject * obj1 = 0 ; | |
8977 | char *kwnames[] = { | |
8978 | (char *) "self",(char *) "indent", NULL | |
8979 | }; | |
8980 | ||
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
8982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8984 | { | |
8985 | arg2 = (int)(SWIG_As_int(obj1)); | |
8986 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8987 | } | |
d55e5bfc RD |
8988 | { |
8989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8990 | (arg1)->SetRightIndent(arg2); | |
8991 | ||
8992 | wxPyEndAllowThreads(__tstate); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | } | |
8995 | Py_INCREF(Py_None); resultobj = Py_None; | |
8996 | return resultobj; | |
8997 | fail: | |
8998 | return NULL; | |
8999 | } | |
9000 | ||
9001 | ||
c370783e | 9002 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9003 | PyObject *resultobj; |
9004 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9005 | long arg2 ; | |
9006 | PyObject * obj0 = 0 ; | |
9007 | PyObject * obj1 = 0 ; | |
9008 | char *kwnames[] = { | |
9009 | (char *) "self",(char *) "flags", NULL | |
9010 | }; | |
9011 | ||
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
9013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9015 | { | |
9016 | arg2 = (long)(SWIG_As_long(obj1)); | |
9017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9018 | } | |
d55e5bfc RD |
9019 | { |
9020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9021 | (arg1)->SetFlags(arg2); | |
9022 | ||
9023 | wxPyEndAllowThreads(__tstate); | |
9024 | if (PyErr_Occurred()) SWIG_fail; | |
9025 | } | |
9026 | Py_INCREF(Py_None); resultobj = Py_None; | |
9027 | return resultobj; | |
9028 | fail: | |
9029 | return NULL; | |
9030 | } | |
9031 | ||
9032 | ||
c370783e | 9033 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9034 | PyObject *resultobj; |
9035 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9036 | bool result; | |
9037 | PyObject * obj0 = 0 ; | |
9038 | char *kwnames[] = { | |
9039 | (char *) "self", NULL | |
9040 | }; | |
9041 | ||
9042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9043 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9045 | { |
9046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9047 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
9048 | ||
9049 | wxPyEndAllowThreads(__tstate); | |
9050 | if (PyErr_Occurred()) SWIG_fail; | |
9051 | } | |
9052 | { | |
9053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9054 | } | |
9055 | return resultobj; | |
9056 | fail: | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
c370783e | 9061 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9062 | PyObject *resultobj; |
9063 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9064 | bool result; | |
9065 | PyObject * obj0 = 0 ; | |
9066 | char *kwnames[] = { | |
9067 | (char *) "self", NULL | |
9068 | }; | |
9069 | ||
9070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9071 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9072 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9073 | { |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
9076 | ||
9077 | wxPyEndAllowThreads(__tstate); | |
9078 | if (PyErr_Occurred()) SWIG_fail; | |
9079 | } | |
9080 | { | |
9081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9082 | } | |
9083 | return resultobj; | |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
c370783e | 9089 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9090 | PyObject *resultobj; |
9091 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9092 | bool result; | |
9093 | PyObject * obj0 = 0 ; | |
9094 | char *kwnames[] = { | |
9095 | (char *) "self", NULL | |
9096 | }; | |
9097 | ||
9098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9101 | { |
9102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9103 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
9104 | ||
9105 | wxPyEndAllowThreads(__tstate); | |
9106 | if (PyErr_Occurred()) SWIG_fail; | |
9107 | } | |
9108 | { | |
9109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9110 | } | |
9111 | return resultobj; | |
9112 | fail: | |
9113 | return NULL; | |
9114 | } | |
9115 | ||
9116 | ||
c370783e | 9117 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9118 | PyObject *resultobj; |
9119 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9120 | bool result; | |
9121 | PyObject * obj0 = 0 ; | |
9122 | char *kwnames[] = { | |
9123 | (char *) "self", NULL | |
9124 | }; | |
9125 | ||
9126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9129 | { |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
9136 | { | |
9137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9138 | } | |
9139 | return resultobj; | |
9140 | fail: | |
9141 | return NULL; | |
9142 | } | |
9143 | ||
9144 | ||
c370783e | 9145 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9146 | PyObject *resultobj; |
9147 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9148 | bool result; | |
9149 | PyObject * obj0 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9157 | { |
9158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9159 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
9160 | ||
9161 | wxPyEndAllowThreads(__tstate); | |
9162 | if (PyErr_Occurred()) SWIG_fail; | |
9163 | } | |
9164 | { | |
9165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9166 | } | |
9167 | return resultobj; | |
9168 | fail: | |
9169 | return NULL; | |
9170 | } | |
9171 | ||
9172 | ||
c370783e | 9173 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9174 | PyObject *resultobj; |
9175 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9176 | bool result; | |
9177 | PyObject * obj0 = 0 ; | |
9178 | char *kwnames[] = { | |
9179 | (char *) "self", NULL | |
9180 | }; | |
9181 | ||
9182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9185 | { |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
9188 | ||
9189 | wxPyEndAllowThreads(__tstate); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | } | |
9192 | { | |
9193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9194 | } | |
9195 | return resultobj; | |
9196 | fail: | |
9197 | return NULL; | |
9198 | } | |
9199 | ||
9200 | ||
c370783e | 9201 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9202 | PyObject *resultobj; |
9203 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9204 | bool result; | |
9205 | PyObject * obj0 = 0 ; | |
9206 | char *kwnames[] = { | |
9207 | (char *) "self", NULL | |
9208 | }; | |
9209 | ||
9210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9213 | { |
9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9215 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
9216 | ||
9217 | wxPyEndAllowThreads(__tstate); | |
9218 | if (PyErr_Occurred()) SWIG_fail; | |
9219 | } | |
9220 | { | |
9221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9222 | } | |
9223 | return resultobj; | |
9224 | fail: | |
9225 | return NULL; | |
9226 | } | |
9227 | ||
9228 | ||
c370783e | 9229 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9230 | PyObject *resultobj; |
9231 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9232 | long arg2 ; | |
9233 | bool result; | |
9234 | PyObject * obj0 = 0 ; | |
9235 | PyObject * obj1 = 0 ; | |
9236 | char *kwnames[] = { | |
9237 | (char *) "self",(char *) "flag", NULL | |
9238 | }; | |
9239 | ||
9240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
9241 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9242 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9243 | { | |
9244 | arg2 = (long)(SWIG_As_long(obj1)); | |
9245 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9246 | } | |
d55e5bfc RD |
9247 | { |
9248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9249 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
9250 | ||
9251 | wxPyEndAllowThreads(__tstate); | |
9252 | if (PyErr_Occurred()) SWIG_fail; | |
9253 | } | |
9254 | { | |
9255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9256 | } | |
9257 | return resultobj; | |
9258 | fail: | |
9259 | return NULL; | |
9260 | } | |
9261 | ||
9262 | ||
c370783e | 9263 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9264 | PyObject *resultobj; |
9265 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9266 | wxColour *result; | |
9267 | PyObject * obj0 = 0 ; | |
9268 | char *kwnames[] = { | |
9269 | (char *) "self", NULL | |
9270 | }; | |
9271 | ||
9272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9275 | { |
9276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9277 | { | |
9278 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
9279 | result = (wxColour *) &_result_ref; | |
9280 | } | |
9281 | ||
9282 | wxPyEndAllowThreads(__tstate); | |
9283 | if (PyErr_Occurred()) SWIG_fail; | |
9284 | } | |
9285 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
c370783e | 9292 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9293 | PyObject *resultobj; |
9294 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9295 | wxColour *result; | |
9296 | PyObject * obj0 = 0 ; | |
9297 | char *kwnames[] = { | |
9298 | (char *) "self", NULL | |
9299 | }; | |
9300 | ||
9301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9304 | { |
9305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9306 | { | |
9307 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
9308 | result = (wxColour *) &_result_ref; | |
9309 | } | |
9310 | ||
9311 | wxPyEndAllowThreads(__tstate); | |
9312 | if (PyErr_Occurred()) SWIG_fail; | |
9313 | } | |
9314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
9315 | return resultobj; | |
9316 | fail: | |
9317 | return NULL; | |
9318 | } | |
9319 | ||
9320 | ||
c370783e | 9321 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9322 | PyObject *resultobj; |
9323 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9324 | wxFont *result; | |
9325 | PyObject * obj0 = 0 ; | |
9326 | char *kwnames[] = { | |
9327 | (char *) "self", NULL | |
9328 | }; | |
9329 | ||
9330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9333 | { |
9334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9335 | { | |
9336 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
9337 | result = (wxFont *) &_result_ref; | |
9338 | } | |
9339 | ||
9340 | wxPyEndAllowThreads(__tstate); | |
9341 | if (PyErr_Occurred()) SWIG_fail; | |
9342 | } | |
9343 | { | |
9344 | wxFont* resultptr = new wxFont(*result); | |
9345 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
9346 | } | |
9347 | return resultobj; | |
9348 | fail: | |
9349 | return NULL; | |
9350 | } | |
9351 | ||
9352 | ||
c370783e | 9353 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9354 | PyObject *resultobj; |
9355 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
36ed4f51 | 9356 | wxTextAttrAlignment result; |
d55e5bfc RD |
9357 | PyObject * obj0 = 0 ; |
9358 | char *kwnames[] = { | |
9359 | (char *) "self", NULL | |
9360 | }; | |
9361 | ||
9362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9365 | { |
9366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 9367 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); |
d55e5bfc RD |
9368 | |
9369 | wxPyEndAllowThreads(__tstate); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
36ed4f51 | 9372 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
9373 | return resultobj; |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
c370783e | 9379 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9380 | PyObject *resultobj; |
9381 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9382 | wxArrayInt *result; | |
9383 | PyObject * obj0 = 0 ; | |
9384 | char *kwnames[] = { | |
9385 | (char *) "self", NULL | |
9386 | }; | |
9387 | ||
9388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9391 | { |
9392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9393 | { | |
9394 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
9395 | result = (wxArrayInt *) &_result_ref; | |
9396 | } | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | { | |
9402 | resultobj = PyList_New(0); | |
9403 | size_t idx; | |
9404 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
9405 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
9406 | PyList_Append(resultobj, val); | |
9407 | Py_DECREF(val); | |
9408 | } | |
9409 | } | |
9410 | return resultobj; | |
9411 | fail: | |
9412 | return NULL; | |
9413 | } | |
9414 | ||
9415 | ||
c370783e | 9416 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9417 | PyObject *resultobj; |
9418 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9419 | long result; | |
9420 | PyObject * obj0 = 0 ; | |
9421 | char *kwnames[] = { | |
9422 | (char *) "self", NULL | |
9423 | }; | |
9424 | ||
9425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9428 | { |
9429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9430 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
9431 | ||
9432 | wxPyEndAllowThreads(__tstate); | |
9433 | if (PyErr_Occurred()) SWIG_fail; | |
9434 | } | |
36ed4f51 RD |
9435 | { |
9436 | resultobj = SWIG_From_long((long)(result)); | |
9437 | } | |
d55e5bfc RD |
9438 | return resultobj; |
9439 | fail: | |
9440 | return NULL; | |
9441 | } | |
9442 | ||
9443 | ||
c370783e | 9444 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
68e533f8 RD |
9445 | PyObject *resultobj; |
9446 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9447 | long result; | |
9448 | PyObject * obj0 = 0 ; | |
9449 | char *kwnames[] = { | |
9450 | (char *) "self", NULL | |
9451 | }; | |
9452 | ||
9453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
68e533f8 RD |
9456 | { |
9457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9458 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
9459 | ||
9460 | wxPyEndAllowThreads(__tstate); | |
9461 | if (PyErr_Occurred()) SWIG_fail; | |
9462 | } | |
36ed4f51 RD |
9463 | { |
9464 | resultobj = SWIG_From_long((long)(result)); | |
9465 | } | |
68e533f8 RD |
9466 | return resultobj; |
9467 | fail: | |
9468 | return NULL; | |
9469 | } | |
9470 | ||
9471 | ||
c370783e | 9472 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9473 | PyObject *resultobj; |
9474 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9475 | long result; | |
9476 | PyObject * obj0 = 0 ; | |
9477 | char *kwnames[] = { | |
9478 | (char *) "self", NULL | |
9479 | }; | |
9480 | ||
9481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9484 | { |
9485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9486 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
9487 | ||
9488 | wxPyEndAllowThreads(__tstate); | |
9489 | if (PyErr_Occurred()) SWIG_fail; | |
9490 | } | |
36ed4f51 RD |
9491 | { |
9492 | resultobj = SWIG_From_long((long)(result)); | |
9493 | } | |
d55e5bfc RD |
9494 | return resultobj; |
9495 | fail: | |
9496 | return NULL; | |
9497 | } | |
9498 | ||
9499 | ||
c370783e | 9500 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9501 | PyObject *resultobj; |
9502 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9503 | long result; | |
9504 | PyObject * obj0 = 0 ; | |
9505 | char *kwnames[] = { | |
9506 | (char *) "self", NULL | |
9507 | }; | |
9508 | ||
9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9512 | { |
9513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9514 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
9515 | ||
9516 | wxPyEndAllowThreads(__tstate); | |
9517 | if (PyErr_Occurred()) SWIG_fail; | |
9518 | } | |
36ed4f51 RD |
9519 | { |
9520 | resultobj = SWIG_From_long((long)(result)); | |
9521 | } | |
d55e5bfc RD |
9522 | return resultobj; |
9523 | fail: | |
9524 | return NULL; | |
9525 | } | |
9526 | ||
9527 | ||
c370783e | 9528 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9529 | PyObject *resultobj; |
9530 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9531 | bool result; | |
9532 | PyObject * obj0 = 0 ; | |
9533 | char *kwnames[] = { | |
9534 | (char *) "self", NULL | |
9535 | }; | |
9536 | ||
9537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9540 | { |
9541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9542 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
9543 | ||
9544 | wxPyEndAllowThreads(__tstate); | |
9545 | if (PyErr_Occurred()) SWIG_fail; | |
9546 | } | |
9547 | { | |
9548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9549 | } | |
9550 | return resultobj; | |
9551 | fail: | |
9552 | return NULL; | |
9553 | } | |
9554 | ||
9555 | ||
c370783e | 9556 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9557 | PyObject *resultobj; |
9558 | wxTextAttr *arg1 = 0 ; | |
9559 | wxTextAttr *arg2 = 0 ; | |
9560 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
9561 | wxTextAttr result; | |
9562 | PyObject * obj0 = 0 ; | |
9563 | PyObject * obj1 = 0 ; | |
9564 | PyObject * obj2 = 0 ; | |
9565 | char *kwnames[] = { | |
9566 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
9567 | }; | |
9568 | ||
9569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
9570 | { |
9571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9573 | if (arg1 == NULL) { | |
9574 | SWIG_null_ref("wxTextAttr"); | |
9575 | } | |
9576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9577 | } |
36ed4f51 RD |
9578 | { |
9579 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9580 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9581 | if (arg2 == NULL) { | |
9582 | SWIG_null_ref("wxTextAttr"); | |
9583 | } | |
9584 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 9585 | } |
36ed4f51 RD |
9586 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9587 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
9588 | { |
9589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9590 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
9591 | ||
9592 | wxPyEndAllowThreads(__tstate); | |
9593 | if (PyErr_Occurred()) SWIG_fail; | |
9594 | } | |
9595 | { | |
9596 | wxTextAttr * resultptr; | |
36ed4f51 | 9597 | resultptr = new wxTextAttr((wxTextAttr &)(result)); |
d55e5bfc RD |
9598 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
9599 | } | |
9600 | return resultobj; | |
9601 | fail: | |
9602 | return NULL; | |
9603 | } | |
9604 | ||
9605 | ||
c370783e | 9606 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9607 | PyObject *obj; |
9608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9609 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
9610 | Py_INCREF(obj); | |
9611 | return Py_BuildValue((char *)""); | |
9612 | } | |
c370783e | 9613 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9614 | PyObject *resultobj; |
9615 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 9616 | int arg2 = (int) -1 ; |
d55e5bfc RD |
9617 | wxString const &arg3_defvalue = wxPyEmptyString ; |
9618 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9619 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9620 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9621 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9622 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9623 | long arg6 = (long) 0 ; | |
9624 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9625 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9626 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
9627 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9628 | wxTextCtrl *result; | |
b411df4a | 9629 | bool temp3 = false ; |
d55e5bfc RD |
9630 | wxPoint temp4 ; |
9631 | wxSize temp5 ; | |
b411df4a | 9632 | bool temp8 = false ; |
d55e5bfc RD |
9633 | PyObject * obj0 = 0 ; |
9634 | PyObject * obj1 = 0 ; | |
9635 | PyObject * obj2 = 0 ; | |
9636 | PyObject * obj3 = 0 ; | |
9637 | PyObject * obj4 = 0 ; | |
9638 | PyObject * obj5 = 0 ; | |
9639 | PyObject * obj6 = 0 ; | |
9640 | PyObject * obj7 = 0 ; | |
9641 | char *kwnames[] = { | |
9642 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9643 | }; | |
9644 | ||
bfddbb17 | 9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
9646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
9647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 9648 | if (obj1) { |
36ed4f51 RD |
9649 | { |
9650 | arg2 = (int)(SWIG_As_int(obj1)); | |
9651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9652 | } | |
bfddbb17 | 9653 | } |
d55e5bfc RD |
9654 | if (obj2) { |
9655 | { | |
9656 | arg3 = wxString_in_helper(obj2); | |
9657 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 9658 | temp3 = true; |
d55e5bfc RD |
9659 | } |
9660 | } | |
9661 | if (obj3) { | |
9662 | { | |
9663 | arg4 = &temp4; | |
9664 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9665 | } | |
9666 | } | |
9667 | if (obj4) { | |
9668 | { | |
9669 | arg5 = &temp5; | |
9670 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9671 | } | |
9672 | } | |
9673 | if (obj5) { | |
36ed4f51 RD |
9674 | { |
9675 | arg6 = (long)(SWIG_As_long(obj5)); | |
9676 | if (SWIG_arg_fail(6)) SWIG_fail; | |
9677 | } | |
d55e5bfc RD |
9678 | } |
9679 | if (obj6) { | |
36ed4f51 RD |
9680 | { |
9681 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9682 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9683 | if (arg7 == NULL) { | |
9684 | SWIG_null_ref("wxValidator"); | |
9685 | } | |
9686 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
9687 | } |
9688 | } | |
9689 | if (obj7) { | |
9690 | { | |
9691 | arg8 = wxString_in_helper(obj7); | |
9692 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 9693 | temp8 = true; |
d55e5bfc RD |
9694 | } |
9695 | } | |
9696 | { | |
0439c23b | 9697 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9699 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9700 | ||
9701 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9702 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9703 | } |
b0f7404b | 9704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
9705 | { |
9706 | if (temp3) | |
9707 | delete arg3; | |
9708 | } | |
9709 | { | |
9710 | if (temp8) | |
9711 | delete arg8; | |
9712 | } | |
9713 | return resultobj; | |
9714 | fail: | |
9715 | { | |
9716 | if (temp3) | |
9717 | delete arg3; | |
9718 | } | |
9719 | { | |
9720 | if (temp8) | |
9721 | delete arg8; | |
9722 | } | |
9723 | return NULL; | |
9724 | } | |
9725 | ||
9726 | ||
c370783e | 9727 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9728 | PyObject *resultobj; |
9729 | wxTextCtrl *result; | |
9730 | char *kwnames[] = { | |
9731 | NULL | |
9732 | }; | |
9733 | ||
9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
9735 | { | |
0439c23b | 9736 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9738 | result = (wxTextCtrl *)new wxTextCtrl(); | |
9739 | ||
9740 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9741 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9742 | } |
b0f7404b | 9743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
9744 | return resultobj; |
9745 | fail: | |
9746 | return NULL; | |
9747 | } | |
9748 | ||
9749 | ||
c370783e | 9750 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9751 | PyObject *resultobj; |
9752 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9753 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 9754 | int arg3 = (int) -1 ; |
d55e5bfc RD |
9755 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9756 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9757 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9758 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9759 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9760 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9761 | long arg7 = (long) 0 ; | |
9762 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9763 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9764 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
9765 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9766 | bool result; | |
b411df4a | 9767 | bool temp4 = false ; |
d55e5bfc RD |
9768 | wxPoint temp5 ; |
9769 | wxSize temp6 ; | |
b411df4a | 9770 | bool temp9 = false ; |
d55e5bfc RD |
9771 | PyObject * obj0 = 0 ; |
9772 | PyObject * obj1 = 0 ; | |
9773 | PyObject * obj2 = 0 ; | |
9774 | PyObject * obj3 = 0 ; | |
9775 | PyObject * obj4 = 0 ; | |
9776 | PyObject * obj5 = 0 ; | |
9777 | PyObject * obj6 = 0 ; | |
9778 | PyObject * obj7 = 0 ; | |
9779 | PyObject * obj8 = 0 ; | |
9780 | char *kwnames[] = { | |
9781 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9782 | }; | |
9783 | ||
bfddbb17 | 9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
9785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9787 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 9789 | if (obj2) { |
36ed4f51 RD |
9790 | { |
9791 | arg3 = (int)(SWIG_As_int(obj2)); | |
9792 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9793 | } | |
bfddbb17 | 9794 | } |
d55e5bfc RD |
9795 | if (obj3) { |
9796 | { | |
9797 | arg4 = wxString_in_helper(obj3); | |
9798 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 9799 | temp4 = true; |
d55e5bfc RD |
9800 | } |
9801 | } | |
9802 | if (obj4) { | |
9803 | { | |
9804 | arg5 = &temp5; | |
9805 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9806 | } | |
9807 | } | |
9808 | if (obj5) { | |
9809 | { | |
9810 | arg6 = &temp6; | |
9811 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9812 | } | |
9813 | } | |
9814 | if (obj6) { | |
36ed4f51 RD |
9815 | { |
9816 | arg7 = (long)(SWIG_As_long(obj6)); | |
9817 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9818 | } | |
d55e5bfc RD |
9819 | } |
9820 | if (obj7) { | |
36ed4f51 RD |
9821 | { |
9822 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9823 | if (SWIG_arg_fail(8)) SWIG_fail; | |
9824 | if (arg8 == NULL) { | |
9825 | SWIG_null_ref("wxValidator"); | |
9826 | } | |
9827 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
9828 | } |
9829 | } | |
9830 | if (obj8) { | |
9831 | { | |
9832 | arg9 = wxString_in_helper(obj8); | |
9833 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 9834 | temp9 = true; |
d55e5bfc RD |
9835 | } |
9836 | } | |
9837 | { | |
9838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9839 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9840 | ||
9841 | wxPyEndAllowThreads(__tstate); | |
9842 | if (PyErr_Occurred()) SWIG_fail; | |
9843 | } | |
9844 | { | |
9845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9846 | } | |
9847 | { | |
9848 | if (temp4) | |
9849 | delete arg4; | |
9850 | } | |
9851 | { | |
9852 | if (temp9) | |
9853 | delete arg9; | |
9854 | } | |
9855 | return resultobj; | |
9856 | fail: | |
9857 | { | |
9858 | if (temp4) | |
9859 | delete arg4; | |
9860 | } | |
9861 | { | |
9862 | if (temp9) | |
9863 | delete arg9; | |
9864 | } | |
9865 | return NULL; | |
9866 | } | |
9867 | ||
9868 | ||
c370783e | 9869 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9870 | PyObject *resultobj; |
9871 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9872 | wxString result; | |
9873 | PyObject * obj0 = 0 ; | |
9874 | char *kwnames[] = { | |
9875 | (char *) "self", NULL | |
9876 | }; | |
9877 | ||
9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
9879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9881 | { |
9882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9883 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
9884 | ||
9885 | wxPyEndAllowThreads(__tstate); | |
9886 | if (PyErr_Occurred()) SWIG_fail; | |
9887 | } | |
9888 | { | |
9889 | #if wxUSE_UNICODE | |
9890 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9891 | #else | |
9892 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9893 | #endif | |
9894 | } | |
9895 | return resultobj; | |
9896 | fail: | |
9897 | return NULL; | |
9898 | } | |
9899 | ||
9900 | ||
c370783e | 9901 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9902 | PyObject *resultobj; |
9903 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9904 | wxString *arg2 = 0 ; | |
b411df4a | 9905 | bool temp2 = false ; |
d55e5bfc RD |
9906 | PyObject * obj0 = 0 ; |
9907 | PyObject * obj1 = 0 ; | |
9908 | char *kwnames[] = { | |
9909 | (char *) "self",(char *) "value", NULL | |
9910 | }; | |
9911 | ||
9912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
9913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9915 | { |
9916 | arg2 = wxString_in_helper(obj1); | |
9917 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9918 | temp2 = true; |
d55e5bfc RD |
9919 | } |
9920 | { | |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | (arg1)->SetValue((wxString const &)*arg2); | |
9923 | ||
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
9927 | Py_INCREF(Py_None); resultobj = Py_None; | |
9928 | { | |
9929 | if (temp2) | |
9930 | delete arg2; | |
9931 | } | |
9932 | return resultobj; | |
9933 | fail: | |
9934 | { | |
9935 | if (temp2) | |
9936 | delete arg2; | |
9937 | } | |
9938 | return NULL; | |
9939 | } | |
9940 | ||
9941 | ||
c370783e | 9942 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9943 | PyObject *resultobj; |
9944 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9945 | long arg2 ; | |
9946 | long arg3 ; | |
9947 | wxString result; | |
9948 | PyObject * obj0 = 0 ; | |
9949 | PyObject * obj1 = 0 ; | |
9950 | PyObject * obj2 = 0 ; | |
9951 | char *kwnames[] = { | |
9952 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9953 | }; | |
9954 | ||
9955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
9956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9958 | { | |
9959 | arg2 = (long)(SWIG_As_long(obj1)); | |
9960 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9961 | } | |
9962 | { | |
9963 | arg3 = (long)(SWIG_As_long(obj2)); | |
9964 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9965 | } | |
d55e5bfc RD |
9966 | { |
9967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9968 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
9969 | ||
9970 | wxPyEndAllowThreads(__tstate); | |
9971 | if (PyErr_Occurred()) SWIG_fail; | |
9972 | } | |
9973 | { | |
9974 | #if wxUSE_UNICODE | |
9975 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9976 | #else | |
9977 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9978 | #endif | |
9979 | } | |
9980 | return resultobj; | |
9981 | fail: | |
9982 | return NULL; | |
9983 | } | |
9984 | ||
9985 | ||
c370783e | 9986 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9987 | PyObject *resultobj; |
9988 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9989 | long arg2 ; | |
9990 | int result; | |
9991 | PyObject * obj0 = 0 ; | |
9992 | PyObject * obj1 = 0 ; | |
9993 | char *kwnames[] = { | |
9994 | (char *) "self",(char *) "lineNo", NULL | |
9995 | }; | |
9996 | ||
9997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
9998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10000 | { | |
10001 | arg2 = (long)(SWIG_As_long(obj1)); | |
10002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10003 | } | |
d55e5bfc RD |
10004 | { |
10005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10006 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
10007 | ||
10008 | wxPyEndAllowThreads(__tstate); | |
10009 | if (PyErr_Occurred()) SWIG_fail; | |
10010 | } | |
36ed4f51 RD |
10011 | { |
10012 | resultobj = SWIG_From_int((int)(result)); | |
10013 | } | |
d55e5bfc RD |
10014 | return resultobj; |
10015 | fail: | |
10016 | return NULL; | |
10017 | } | |
10018 | ||
10019 | ||
c370783e | 10020 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10021 | PyObject *resultobj; |
10022 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10023 | long arg2 ; | |
10024 | wxString result; | |
10025 | PyObject * obj0 = 0 ; | |
10026 | PyObject * obj1 = 0 ; | |
10027 | char *kwnames[] = { | |
10028 | (char *) "self",(char *) "lineNo", NULL | |
10029 | }; | |
10030 | ||
10031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10032 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10033 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10034 | { | |
10035 | arg2 = (long)(SWIG_As_long(obj1)); | |
10036 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10037 | } | |
d55e5bfc RD |
10038 | { |
10039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10040 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
10041 | ||
10042 | wxPyEndAllowThreads(__tstate); | |
10043 | if (PyErr_Occurred()) SWIG_fail; | |
10044 | } | |
10045 | { | |
10046 | #if wxUSE_UNICODE | |
10047 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10048 | #else | |
10049 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10050 | #endif | |
10051 | } | |
10052 | return resultobj; | |
10053 | fail: | |
10054 | return NULL; | |
10055 | } | |
10056 | ||
10057 | ||
c370783e | 10058 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10059 | PyObject *resultobj; |
10060 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10061 | int result; | |
10062 | PyObject * obj0 = 0 ; | |
10063 | char *kwnames[] = { | |
10064 | (char *) "self", NULL | |
10065 | }; | |
10066 | ||
10067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10070 | { |
10071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10072 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
10073 | ||
10074 | wxPyEndAllowThreads(__tstate); | |
10075 | if (PyErr_Occurred()) SWIG_fail; | |
10076 | } | |
36ed4f51 RD |
10077 | { |
10078 | resultobj = SWIG_From_int((int)(result)); | |
10079 | } | |
d55e5bfc RD |
10080 | return resultobj; |
10081 | fail: | |
10082 | return NULL; | |
10083 | } | |
10084 | ||
10085 | ||
c370783e | 10086 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10087 | PyObject *resultobj; |
10088 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10089 | bool result; | |
10090 | PyObject * obj0 = 0 ; | |
10091 | char *kwnames[] = { | |
10092 | (char *) "self", NULL | |
10093 | }; | |
10094 | ||
10095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10098 | { |
10099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10100 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
10101 | ||
10102 | wxPyEndAllowThreads(__tstate); | |
10103 | if (PyErr_Occurred()) SWIG_fail; | |
10104 | } | |
10105 | { | |
10106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10107 | } | |
10108 | return resultobj; | |
10109 | fail: | |
10110 | return NULL; | |
10111 | } | |
10112 | ||
10113 | ||
c370783e | 10114 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10115 | PyObject *resultobj; |
10116 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10117 | bool result; | |
10118 | PyObject * obj0 = 0 ; | |
10119 | char *kwnames[] = { | |
10120 | (char *) "self", NULL | |
10121 | }; | |
10122 | ||
10123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10124 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10125 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10126 | { |
10127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10128 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
10129 | ||
10130 | wxPyEndAllowThreads(__tstate); | |
10131 | if (PyErr_Occurred()) SWIG_fail; | |
10132 | } | |
10133 | { | |
10134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10135 | } | |
10136 | return resultobj; | |
10137 | fail: | |
10138 | return NULL; | |
10139 | } | |
10140 | ||
10141 | ||
c370783e | 10142 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10143 | PyObject *resultobj; |
10144 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10145 | bool result; | |
10146 | PyObject * obj0 = 0 ; | |
10147 | char *kwnames[] = { | |
10148 | (char *) "self", NULL | |
10149 | }; | |
10150 | ||
10151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10154 | { |
10155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10156 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
10157 | ||
10158 | wxPyEndAllowThreads(__tstate); | |
10159 | if (PyErr_Occurred()) SWIG_fail; | |
10160 | } | |
10161 | { | |
10162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10163 | } | |
10164 | return resultobj; | |
10165 | fail: | |
10166 | return NULL; | |
10167 | } | |
10168 | ||
10169 | ||
c370783e | 10170 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10171 | PyObject *resultobj; |
10172 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10173 | bool result; | |
10174 | PyObject * obj0 = 0 ; | |
10175 | char *kwnames[] = { | |
10176 | (char *) "self", NULL | |
10177 | }; | |
10178 | ||
10179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10182 | { |
10183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10184 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
10185 | ||
10186 | wxPyEndAllowThreads(__tstate); | |
10187 | if (PyErr_Occurred()) SWIG_fail; | |
10188 | } | |
10189 | { | |
10190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10191 | } | |
10192 | return resultobj; | |
10193 | fail: | |
10194 | return NULL; | |
10195 | } | |
10196 | ||
10197 | ||
c370783e | 10198 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10199 | PyObject *resultobj; |
10200 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10201 | long *arg2 = (long *) 0 ; | |
10202 | long *arg3 = (long *) 0 ; | |
10203 | long temp2 ; | |
c370783e | 10204 | int res2 = 0 ; |
d55e5bfc | 10205 | long temp3 ; |
c370783e | 10206 | int res3 = 0 ; |
d55e5bfc RD |
10207 | PyObject * obj0 = 0 ; |
10208 | char *kwnames[] = { | |
10209 | (char *) "self", NULL | |
10210 | }; | |
10211 | ||
c370783e RD |
10212 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10213 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 10214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
10215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10217 | { |
10218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10219 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
10220 | ||
10221 | wxPyEndAllowThreads(__tstate); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | } | |
10224 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
10225 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10226 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
10227 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10228 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
10229 | return resultobj; |
10230 | fail: | |
10231 | return NULL; | |
10232 | } | |
10233 | ||
10234 | ||
c370783e | 10235 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10236 | PyObject *resultobj; |
10237 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10238 | wxString result; | |
10239 | PyObject * obj0 = 0 ; | |
10240 | char *kwnames[] = { | |
10241 | (char *) "self", NULL | |
10242 | }; | |
10243 | ||
10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10247 | { |
10248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10249 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
10250 | ||
10251 | wxPyEndAllowThreads(__tstate); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
10254 | { | |
10255 | #if wxUSE_UNICODE | |
10256 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10257 | #else | |
10258 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10259 | #endif | |
10260 | } | |
10261 | return resultobj; | |
10262 | fail: | |
10263 | return NULL; | |
10264 | } | |
10265 | ||
10266 | ||
c370783e | 10267 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10268 | PyObject *resultobj; |
10269 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10270 | PyObject * obj0 = 0 ; | |
10271 | char *kwnames[] = { | |
10272 | (char *) "self", NULL | |
10273 | }; | |
10274 | ||
10275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10278 | { |
10279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10280 | (arg1)->Clear(); | |
10281 | ||
10282 | wxPyEndAllowThreads(__tstate); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | } | |
10285 | Py_INCREF(Py_None); resultobj = Py_None; | |
10286 | return resultobj; | |
10287 | fail: | |
10288 | return NULL; | |
10289 | } | |
10290 | ||
10291 | ||
c370783e | 10292 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10293 | PyObject *resultobj; |
10294 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10295 | long arg2 ; | |
10296 | long arg3 ; | |
10297 | wxString *arg4 = 0 ; | |
b411df4a | 10298 | bool temp4 = false ; |
d55e5bfc RD |
10299 | PyObject * obj0 = 0 ; |
10300 | PyObject * obj1 = 0 ; | |
10301 | PyObject * obj2 = 0 ; | |
10302 | PyObject * obj3 = 0 ; | |
10303 | char *kwnames[] = { | |
10304 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
10305 | }; | |
10306 | ||
10307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
10308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10310 | { | |
10311 | arg2 = (long)(SWIG_As_long(obj1)); | |
10312 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10313 | } | |
10314 | { | |
10315 | arg3 = (long)(SWIG_As_long(obj2)); | |
10316 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10317 | } | |
d55e5bfc RD |
10318 | { |
10319 | arg4 = wxString_in_helper(obj3); | |
10320 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 10321 | temp4 = true; |
d55e5bfc RD |
10322 | } |
10323 | { | |
10324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10325 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
10326 | ||
10327 | wxPyEndAllowThreads(__tstate); | |
10328 | if (PyErr_Occurred()) SWIG_fail; | |
10329 | } | |
10330 | Py_INCREF(Py_None); resultobj = Py_None; | |
10331 | { | |
10332 | if (temp4) | |
10333 | delete arg4; | |
10334 | } | |
10335 | return resultobj; | |
10336 | fail: | |
10337 | { | |
10338 | if (temp4) | |
10339 | delete arg4; | |
10340 | } | |
10341 | return NULL; | |
10342 | } | |
10343 | ||
10344 | ||
c370783e | 10345 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10346 | PyObject *resultobj; |
10347 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10348 | long arg2 ; | |
10349 | long arg3 ; | |
10350 | PyObject * obj0 = 0 ; | |
10351 | PyObject * obj1 = 0 ; | |
10352 | PyObject * obj2 = 0 ; | |
10353 | char *kwnames[] = { | |
10354 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10355 | }; | |
10356 | ||
10357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
10358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10360 | { | |
10361 | arg2 = (long)(SWIG_As_long(obj1)); | |
10362 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10363 | } | |
10364 | { | |
10365 | arg3 = (long)(SWIG_As_long(obj2)); | |
10366 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10367 | } | |
d55e5bfc RD |
10368 | { |
10369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10370 | (arg1)->Remove(arg2,arg3); | |
10371 | ||
10372 | wxPyEndAllowThreads(__tstate); | |
10373 | if (PyErr_Occurred()) SWIG_fail; | |
10374 | } | |
10375 | Py_INCREF(Py_None); resultobj = Py_None; | |
10376 | return resultobj; | |
10377 | fail: | |
10378 | return NULL; | |
10379 | } | |
10380 | ||
10381 | ||
c370783e | 10382 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10383 | PyObject *resultobj; |
10384 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10385 | wxString *arg2 = 0 ; | |
10386 | bool result; | |
b411df4a | 10387 | bool temp2 = false ; |
d55e5bfc RD |
10388 | PyObject * obj0 = 0 ; |
10389 | PyObject * obj1 = 0 ; | |
10390 | char *kwnames[] = { | |
10391 | (char *) "self",(char *) "file", NULL | |
10392 | }; | |
10393 | ||
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10397 | { |
10398 | arg2 = wxString_in_helper(obj1); | |
10399 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10400 | temp2 = true; |
d55e5bfc RD |
10401 | } |
10402 | { | |
10403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10404 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
10405 | ||
10406 | wxPyEndAllowThreads(__tstate); | |
10407 | if (PyErr_Occurred()) SWIG_fail; | |
10408 | } | |
10409 | { | |
10410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10411 | } | |
10412 | { | |
10413 | if (temp2) | |
10414 | delete arg2; | |
10415 | } | |
10416 | return resultobj; | |
10417 | fail: | |
10418 | { | |
10419 | if (temp2) | |
10420 | delete arg2; | |
10421 | } | |
10422 | return NULL; | |
10423 | } | |
10424 | ||
10425 | ||
c370783e | 10426 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10427 | PyObject *resultobj; |
10428 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10429 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10430 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10431 | bool result; | |
b411df4a | 10432 | bool temp2 = false ; |
d55e5bfc RD |
10433 | PyObject * obj0 = 0 ; |
10434 | PyObject * obj1 = 0 ; | |
10435 | char *kwnames[] = { | |
10436 | (char *) "self",(char *) "file", NULL | |
10437 | }; | |
10438 | ||
10439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10442 | if (obj1) { |
10443 | { | |
10444 | arg2 = wxString_in_helper(obj1); | |
10445 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10446 | temp2 = true; |
d55e5bfc RD |
10447 | } |
10448 | } | |
10449 | { | |
10450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10451 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
10452 | ||
10453 | wxPyEndAllowThreads(__tstate); | |
10454 | if (PyErr_Occurred()) SWIG_fail; | |
10455 | } | |
10456 | { | |
10457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10458 | } | |
10459 | { | |
10460 | if (temp2) | |
10461 | delete arg2; | |
10462 | } | |
10463 | return resultobj; | |
10464 | fail: | |
10465 | { | |
10466 | if (temp2) | |
10467 | delete arg2; | |
10468 | } | |
10469 | return NULL; | |
10470 | } | |
10471 | ||
10472 | ||
c370783e | 10473 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10474 | PyObject *resultobj; |
10475 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10476 | PyObject * obj0 = 0 ; | |
10477 | char *kwnames[] = { | |
10478 | (char *) "self", NULL | |
10479 | }; | |
10480 | ||
10481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10484 | { |
10485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10486 | (arg1)->MarkDirty(); | |
10487 | ||
10488 | wxPyEndAllowThreads(__tstate); | |
10489 | if (PyErr_Occurred()) SWIG_fail; | |
10490 | } | |
10491 | Py_INCREF(Py_None); resultobj = Py_None; | |
10492 | return resultobj; | |
10493 | fail: | |
10494 | return NULL; | |
10495 | } | |
10496 | ||
10497 | ||
c370783e | 10498 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10499 | PyObject *resultobj; |
10500 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10501 | PyObject * obj0 = 0 ; | |
10502 | char *kwnames[] = { | |
10503 | (char *) "self", NULL | |
10504 | }; | |
10505 | ||
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10509 | { |
10510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10511 | (arg1)->DiscardEdits(); | |
10512 | ||
10513 | wxPyEndAllowThreads(__tstate); | |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
10515 | } | |
10516 | Py_INCREF(Py_None); resultobj = Py_None; | |
10517 | return resultobj; | |
10518 | fail: | |
10519 | return NULL; | |
10520 | } | |
10521 | ||
10522 | ||
c370783e | 10523 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10524 | PyObject *resultobj; |
10525 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10526 | unsigned long arg2 ; | |
10527 | PyObject * obj0 = 0 ; | |
10528 | PyObject * obj1 = 0 ; | |
10529 | char *kwnames[] = { | |
10530 | (char *) "self",(char *) "len", NULL | |
10531 | }; | |
10532 | ||
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10536 | { | |
10537 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
10538 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10539 | } | |
d55e5bfc RD |
10540 | { |
10541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10542 | (arg1)->SetMaxLength(arg2); | |
10543 | ||
10544 | wxPyEndAllowThreads(__tstate); | |
10545 | if (PyErr_Occurred()) SWIG_fail; | |
10546 | } | |
10547 | Py_INCREF(Py_None); resultobj = Py_None; | |
10548 | return resultobj; | |
10549 | fail: | |
10550 | return NULL; | |
10551 | } | |
10552 | ||
10553 | ||
c370783e | 10554 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10555 | PyObject *resultobj; |
10556 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10557 | wxString *arg2 = 0 ; | |
b411df4a | 10558 | bool temp2 = false ; |
d55e5bfc RD |
10559 | PyObject * obj0 = 0 ; |
10560 | PyObject * obj1 = 0 ; | |
10561 | char *kwnames[] = { | |
10562 | (char *) "self",(char *) "text", NULL | |
10563 | }; | |
10564 | ||
10565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10568 | { |
10569 | arg2 = wxString_in_helper(obj1); | |
10570 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10571 | temp2 = true; |
d55e5bfc RD |
10572 | } |
10573 | { | |
10574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10575 | (arg1)->WriteText((wxString const &)*arg2); | |
10576 | ||
10577 | wxPyEndAllowThreads(__tstate); | |
10578 | if (PyErr_Occurred()) SWIG_fail; | |
10579 | } | |
10580 | Py_INCREF(Py_None); resultobj = Py_None; | |
10581 | { | |
10582 | if (temp2) | |
10583 | delete arg2; | |
10584 | } | |
10585 | return resultobj; | |
10586 | fail: | |
10587 | { | |
10588 | if (temp2) | |
10589 | delete arg2; | |
10590 | } | |
10591 | return NULL; | |
10592 | } | |
10593 | ||
10594 | ||
c370783e | 10595 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10596 | PyObject *resultobj; |
10597 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10598 | wxString *arg2 = 0 ; | |
b411df4a | 10599 | bool temp2 = false ; |
d55e5bfc RD |
10600 | PyObject * obj0 = 0 ; |
10601 | PyObject * obj1 = 0 ; | |
10602 | char *kwnames[] = { | |
10603 | (char *) "self",(char *) "text", NULL | |
10604 | }; | |
10605 | ||
10606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10609 | { |
10610 | arg2 = wxString_in_helper(obj1); | |
10611 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10612 | temp2 = true; |
d55e5bfc RD |
10613 | } |
10614 | { | |
10615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10616 | (arg1)->AppendText((wxString const &)*arg2); | |
10617 | ||
10618 | wxPyEndAllowThreads(__tstate); | |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
10620 | } | |
10621 | Py_INCREF(Py_None); resultobj = Py_None; | |
10622 | { | |
10623 | if (temp2) | |
10624 | delete arg2; | |
10625 | } | |
10626 | return resultobj; | |
10627 | fail: | |
10628 | { | |
10629 | if (temp2) | |
10630 | delete arg2; | |
10631 | } | |
10632 | return NULL; | |
10633 | } | |
10634 | ||
10635 | ||
c370783e | 10636 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10637 | PyObject *resultobj; |
10638 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10639 | wxKeyEvent *arg2 = 0 ; | |
10640 | bool result; | |
10641 | PyObject * obj0 = 0 ; | |
10642 | PyObject * obj1 = 0 ; | |
10643 | char *kwnames[] = { | |
10644 | (char *) "self",(char *) "event", NULL | |
10645 | }; | |
10646 | ||
10647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10650 | { | |
10651 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
10652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10653 | if (arg2 == NULL) { | |
10654 | SWIG_null_ref("wxKeyEvent"); | |
10655 | } | |
10656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
10657 | } |
10658 | { | |
10659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10660 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
10661 | ||
10662 | wxPyEndAllowThreads(__tstate); | |
10663 | if (PyErr_Occurred()) SWIG_fail; | |
10664 | } | |
10665 | { | |
10666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10667 | } | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
c370783e | 10674 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10675 | PyObject *resultobj; |
10676 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10677 | long arg2 ; | |
10678 | long arg3 ; | |
10679 | wxTextAttr *arg4 = 0 ; | |
10680 | bool result; | |
10681 | PyObject * obj0 = 0 ; | |
10682 | PyObject * obj1 = 0 ; | |
10683 | PyObject * obj2 = 0 ; | |
10684 | PyObject * obj3 = 0 ; | |
10685 | char *kwnames[] = { | |
10686 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
10687 | }; | |
10688 | ||
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
10690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10692 | { | |
10693 | arg2 = (long)(SWIG_As_long(obj1)); | |
10694 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10695 | } | |
10696 | { | |
10697 | arg3 = (long)(SWIG_As_long(obj2)); | |
10698 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10699 | } | |
10700 | { | |
10701 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10702 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10703 | if (arg4 == NULL) { | |
10704 | SWIG_null_ref("wxTextAttr"); | |
10705 | } | |
10706 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
10707 | } |
10708 | { | |
10709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10710 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
10711 | ||
10712 | wxPyEndAllowThreads(__tstate); | |
10713 | if (PyErr_Occurred()) SWIG_fail; | |
10714 | } | |
10715 | { | |
10716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10717 | } | |
10718 | return resultobj; | |
10719 | fail: | |
10720 | return NULL; | |
10721 | } | |
10722 | ||
10723 | ||
c370783e | 10724 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10725 | PyObject *resultobj; |
10726 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10727 | long arg2 ; | |
10728 | wxTextAttr *arg3 = 0 ; | |
10729 | bool result; | |
10730 | PyObject * obj0 = 0 ; | |
10731 | PyObject * obj1 = 0 ; | |
10732 | PyObject * obj2 = 0 ; | |
10733 | char *kwnames[] = { | |
10734 | (char *) "self",(char *) "position",(char *) "style", NULL | |
10735 | }; | |
10736 | ||
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
10738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10740 | { | |
10741 | arg2 = (long)(SWIG_As_long(obj1)); | |
10742 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10743 | } | |
10744 | { | |
10745 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10746 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10747 | if (arg3 == NULL) { | |
10748 | SWIG_null_ref("wxTextAttr"); | |
10749 | } | |
10750 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
10751 | } |
10752 | { | |
10753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10754 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
10755 | ||
10756 | wxPyEndAllowThreads(__tstate); | |
10757 | if (PyErr_Occurred()) SWIG_fail; | |
10758 | } | |
10759 | { | |
10760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10761 | } | |
10762 | return resultobj; | |
10763 | fail: | |
10764 | return NULL; | |
10765 | } | |
10766 | ||
10767 | ||
c370783e | 10768 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10769 | PyObject *resultobj; |
10770 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10771 | wxTextAttr *arg2 = 0 ; | |
10772 | bool result; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | PyObject * obj1 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (char *) "self",(char *) "style", NULL | |
10777 | }; | |
10778 | ||
10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10782 | { | |
10783 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10784 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10785 | if (arg2 == NULL) { | |
10786 | SWIG_null_ref("wxTextAttr"); | |
10787 | } | |
10788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
10789 | } |
10790 | { | |
10791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10792 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
10793 | ||
10794 | wxPyEndAllowThreads(__tstate); | |
10795 | if (PyErr_Occurred()) SWIG_fail; | |
10796 | } | |
10797 | { | |
10798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10799 | } | |
10800 | return resultobj; | |
10801 | fail: | |
10802 | return NULL; | |
10803 | } | |
10804 | ||
10805 | ||
c370783e | 10806 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10807 | PyObject *resultobj; |
10808 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10809 | wxTextAttr *result; | |
10810 | PyObject * obj0 = 0 ; | |
10811 | char *kwnames[] = { | |
10812 | (char *) "self", NULL | |
10813 | }; | |
10814 | ||
10815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
10816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10818 | { |
10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10820 | { | |
10821 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
10822 | result = (wxTextAttr *) &_result_ref; | |
10823 | } | |
10824 | ||
10825 | wxPyEndAllowThreads(__tstate); | |
10826 | if (PyErr_Occurred()) SWIG_fail; | |
10827 | } | |
10828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
10829 | return resultobj; | |
10830 | fail: | |
10831 | return NULL; | |
10832 | } | |
10833 | ||
10834 | ||
c370783e | 10835 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10836 | PyObject *resultobj; |
10837 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10838 | long arg2 ; | |
10839 | long arg3 ; | |
10840 | long result; | |
10841 | PyObject * obj0 = 0 ; | |
10842 | PyObject * obj1 = 0 ; | |
10843 | PyObject * obj2 = 0 ; | |
10844 | char *kwnames[] = { | |
10845 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10846 | }; | |
10847 | ||
10848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
10849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10851 | { | |
10852 | arg2 = (long)(SWIG_As_long(obj1)); | |
10853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10854 | } | |
10855 | { | |
10856 | arg3 = (long)(SWIG_As_long(obj2)); | |
10857 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10858 | } | |
d55e5bfc RD |
10859 | { |
10860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10861 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
10862 | ||
10863 | wxPyEndAllowThreads(__tstate); | |
10864 | if (PyErr_Occurred()) SWIG_fail; | |
10865 | } | |
36ed4f51 RD |
10866 | { |
10867 | resultobj = SWIG_From_long((long)(result)); | |
10868 | } | |
d55e5bfc RD |
10869 | return resultobj; |
10870 | fail: | |
10871 | return NULL; | |
10872 | } | |
10873 | ||
10874 | ||
c370783e | 10875 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10876 | PyObject *resultobj; |
10877 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10878 | long arg2 ; | |
10879 | long *arg3 = (long *) 0 ; | |
10880 | long *arg4 = (long *) 0 ; | |
10881 | long temp3 ; | |
c370783e | 10882 | int res3 = 0 ; |
d55e5bfc | 10883 | long temp4 ; |
c370783e | 10884 | int res4 = 0 ; |
d55e5bfc RD |
10885 | PyObject * obj0 = 0 ; |
10886 | PyObject * obj1 = 0 ; | |
10887 | char *kwnames[] = { | |
10888 | (char *) "self",(char *) "pos", NULL | |
10889 | }; | |
10890 | ||
c370783e RD |
10891 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
10892 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 10893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
10894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10896 | { | |
10897 | arg2 = (long)(SWIG_As_long(obj1)); | |
10898 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10899 | } | |
d55e5bfc RD |
10900 | { |
10901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10902 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
10903 | ||
10904 | wxPyEndAllowThreads(__tstate); | |
10905 | if (PyErr_Occurred()) SWIG_fail; | |
10906 | } | |
10907 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
10908 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
10909 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10910 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10911 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
10912 | return resultobj; |
10913 | fail: | |
10914 | return NULL; | |
10915 | } | |
10916 | ||
10917 | ||
c370783e | 10918 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10919 | PyObject *resultobj; |
10920 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10921 | long arg2 ; | |
10922 | PyObject * obj0 = 0 ; | |
10923 | PyObject * obj1 = 0 ; | |
10924 | char *kwnames[] = { | |
10925 | (char *) "self",(char *) "pos", NULL | |
10926 | }; | |
10927 | ||
10928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
10929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10931 | { | |
10932 | arg2 = (long)(SWIG_As_long(obj1)); | |
10933 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10934 | } | |
d55e5bfc RD |
10935 | { |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | (arg1)->ShowPosition(arg2); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | Py_INCREF(Py_None); resultobj = Py_None; | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
c370783e | 10949 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10950 | PyObject *resultobj; |
10951 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10952 | wxPoint *arg2 = 0 ; | |
10953 | long *arg3 = (long *) 0 ; | |
10954 | long *arg4 = (long *) 0 ; | |
36ed4f51 | 10955 | wxTextCtrlHitTestResult result; |
d55e5bfc RD |
10956 | wxPoint temp2 ; |
10957 | long temp3 ; | |
c370783e | 10958 | int res3 = 0 ; |
d55e5bfc | 10959 | long temp4 ; |
c370783e | 10960 | int res4 = 0 ; |
d55e5bfc RD |
10961 | PyObject * obj0 = 0 ; |
10962 | PyObject * obj1 = 0 ; | |
10963 | char *kwnames[] = { | |
10964 | (char *) "self",(char *) "pt", NULL | |
10965 | }; | |
10966 | ||
c370783e RD |
10967 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
10968 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 10969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
10970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10972 | { |
10973 | arg2 = &temp2; | |
10974 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10975 | } | |
10976 | { | |
10977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 10978 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); |
d55e5bfc RD |
10979 | |
10980 | wxPyEndAllowThreads(__tstate); | |
10981 | if (PyErr_Occurred()) SWIG_fail; | |
10982 | } | |
36ed4f51 | 10983 | resultobj = SWIG_From_int((result)); |
c370783e RD |
10984 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
10985 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10986 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10987 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
10988 | return resultobj; |
10989 | fail: | |
10990 | return NULL; | |
10991 | } | |
10992 | ||
10993 | ||
c370783e | 10994 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
10995 | PyObject *resultobj; |
10996 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10997 | wxPoint *arg2 = 0 ; | |
10998 | long *arg3 = (long *) 0 ; | |
36ed4f51 | 10999 | wxTextCtrlHitTestResult result; |
4896ac9e RD |
11000 | wxPoint temp2 ; |
11001 | long temp3 ; | |
c370783e | 11002 | int res3 = 0 ; |
4896ac9e RD |
11003 | PyObject * obj0 = 0 ; |
11004 | PyObject * obj1 = 0 ; | |
11005 | char *kwnames[] = { | |
11006 | (char *) "self",(char *) "pt", NULL | |
11007 | }; | |
11008 | ||
c370783e | 11009 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e | 11010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
11011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4896ac9e RD |
11013 | { |
11014 | arg2 = &temp2; | |
11015 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11016 | } | |
11017 | { | |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 11019 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); |
4896ac9e RD |
11020 | |
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
36ed4f51 | 11024 | resultobj = SWIG_From_int((result)); |
c370783e RD |
11025 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11026 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
11027 | return resultobj; |
11028 | fail: | |
11029 | return NULL; | |
11030 | } | |
11031 | ||
11032 | ||
c370783e | 11033 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11034 | PyObject *resultobj; |
11035 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11036 | PyObject * obj0 = 0 ; | |
11037 | char *kwnames[] = { | |
11038 | (char *) "self", NULL | |
11039 | }; | |
11040 | ||
11041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11044 | { |
11045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11046 | (arg1)->Copy(); | |
11047 | ||
11048 | wxPyEndAllowThreads(__tstate); | |
11049 | if (PyErr_Occurred()) SWIG_fail; | |
11050 | } | |
11051 | Py_INCREF(Py_None); resultobj = Py_None; | |
11052 | return resultobj; | |
11053 | fail: | |
11054 | return NULL; | |
11055 | } | |
11056 | ||
11057 | ||
c370783e | 11058 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11059 | PyObject *resultobj; |
11060 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11061 | PyObject * obj0 = 0 ; | |
11062 | char *kwnames[] = { | |
11063 | (char *) "self", NULL | |
11064 | }; | |
11065 | ||
11066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11069 | { |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11071 | (arg1)->Cut(); | |
11072 | ||
11073 | wxPyEndAllowThreads(__tstate); | |
11074 | if (PyErr_Occurred()) SWIG_fail; | |
11075 | } | |
11076 | Py_INCREF(Py_None); resultobj = Py_None; | |
11077 | return resultobj; | |
11078 | fail: | |
11079 | return NULL; | |
11080 | } | |
11081 | ||
11082 | ||
c370783e | 11083 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11084 | PyObject *resultobj; |
11085 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11086 | PyObject * obj0 = 0 ; | |
11087 | char *kwnames[] = { | |
11088 | (char *) "self", NULL | |
11089 | }; | |
11090 | ||
11091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11094 | { |
11095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11096 | (arg1)->Paste(); | |
11097 | ||
11098 | wxPyEndAllowThreads(__tstate); | |
11099 | if (PyErr_Occurred()) SWIG_fail; | |
11100 | } | |
11101 | Py_INCREF(Py_None); resultobj = Py_None; | |
11102 | return resultobj; | |
11103 | fail: | |
11104 | return NULL; | |
11105 | } | |
11106 | ||
11107 | ||
c370783e | 11108 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11109 | PyObject *resultobj; |
11110 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11111 | bool result; | |
11112 | PyObject * obj0 = 0 ; | |
11113 | char *kwnames[] = { | |
11114 | (char *) "self", NULL | |
11115 | }; | |
11116 | ||
11117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11120 | { |
11121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11122 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
11123 | ||
11124 | wxPyEndAllowThreads(__tstate); | |
11125 | if (PyErr_Occurred()) SWIG_fail; | |
11126 | } | |
11127 | { | |
11128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11129 | } | |
11130 | return resultobj; | |
11131 | fail: | |
11132 | return NULL; | |
11133 | } | |
11134 | ||
11135 | ||
c370783e | 11136 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11137 | PyObject *resultobj; |
11138 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11139 | bool result; | |
11140 | PyObject * obj0 = 0 ; | |
11141 | char *kwnames[] = { | |
11142 | (char *) "self", NULL | |
11143 | }; | |
11144 | ||
11145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11148 | { |
11149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11150 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
11151 | ||
11152 | wxPyEndAllowThreads(__tstate); | |
11153 | if (PyErr_Occurred()) SWIG_fail; | |
11154 | } | |
11155 | { | |
11156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11157 | } | |
11158 | return resultobj; | |
11159 | fail: | |
11160 | return NULL; | |
11161 | } | |
11162 | ||
11163 | ||
c370783e | 11164 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11165 | PyObject *resultobj; |
11166 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11167 | bool result; | |
11168 | PyObject * obj0 = 0 ; | |
11169 | char *kwnames[] = { | |
11170 | (char *) "self", NULL | |
11171 | }; | |
11172 | ||
11173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11176 | { |
11177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11178 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
11179 | ||
11180 | wxPyEndAllowThreads(__tstate); | |
11181 | if (PyErr_Occurred()) SWIG_fail; | |
11182 | } | |
11183 | { | |
11184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11185 | } | |
11186 | return resultobj; | |
11187 | fail: | |
11188 | return NULL; | |
11189 | } | |
11190 | ||
11191 | ||
c370783e | 11192 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11193 | PyObject *resultobj; |
11194 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | char *kwnames[] = { | |
11197 | (char *) "self", NULL | |
11198 | }; | |
11199 | ||
11200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11203 | { |
11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11205 | (arg1)->Undo(); | |
11206 | ||
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
11210 | Py_INCREF(Py_None); resultobj = Py_None; | |
11211 | return resultobj; | |
11212 | fail: | |
11213 | return NULL; | |
11214 | } | |
11215 | ||
11216 | ||
c370783e | 11217 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11218 | PyObject *resultobj; |
11219 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11220 | PyObject * obj0 = 0 ; | |
11221 | char *kwnames[] = { | |
11222 | (char *) "self", NULL | |
11223 | }; | |
11224 | ||
11225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11226 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11227 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11228 | { |
11229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11230 | (arg1)->Redo(); | |
11231 | ||
11232 | wxPyEndAllowThreads(__tstate); | |
11233 | if (PyErr_Occurred()) SWIG_fail; | |
11234 | } | |
11235 | Py_INCREF(Py_None); resultobj = Py_None; | |
11236 | return resultobj; | |
11237 | fail: | |
11238 | return NULL; | |
11239 | } | |
11240 | ||
11241 | ||
c370783e | 11242 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11243 | PyObject *resultobj; |
11244 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11245 | bool result; | |
11246 | PyObject * obj0 = 0 ; | |
11247 | char *kwnames[] = { | |
11248 | (char *) "self", NULL | |
11249 | }; | |
11250 | ||
11251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11254 | { |
11255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11256 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
11257 | ||
11258 | wxPyEndAllowThreads(__tstate); | |
11259 | if (PyErr_Occurred()) SWIG_fail; | |
11260 | } | |
11261 | { | |
11262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11263 | } | |
11264 | return resultobj; | |
11265 | fail: | |
11266 | return NULL; | |
11267 | } | |
11268 | ||
11269 | ||
c370783e | 11270 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11271 | PyObject *resultobj; |
11272 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11273 | bool result; | |
11274 | PyObject * obj0 = 0 ; | |
11275 | char *kwnames[] = { | |
11276 | (char *) "self", NULL | |
11277 | }; | |
11278 | ||
11279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11282 | { |
11283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11284 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
11285 | ||
11286 | wxPyEndAllowThreads(__tstate); | |
11287 | if (PyErr_Occurred()) SWIG_fail; | |
11288 | } | |
11289 | { | |
11290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11291 | } | |
11292 | return resultobj; | |
11293 | fail: | |
11294 | return NULL; | |
11295 | } | |
11296 | ||
11297 | ||
c370783e | 11298 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11299 | PyObject *resultobj; |
11300 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11301 | long arg2 ; | |
11302 | PyObject * obj0 = 0 ; | |
11303 | PyObject * obj1 = 0 ; | |
11304 | char *kwnames[] = { | |
11305 | (char *) "self",(char *) "pos", NULL | |
11306 | }; | |
11307 | ||
11308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
11309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11311 | { | |
11312 | arg2 = (long)(SWIG_As_long(obj1)); | |
11313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11314 | } | |
d55e5bfc RD |
11315 | { |
11316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11317 | (arg1)->SetInsertionPoint(arg2); | |
11318 | ||
11319 | wxPyEndAllowThreads(__tstate); | |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | } | |
11322 | Py_INCREF(Py_None); resultobj = Py_None; | |
11323 | return resultobj; | |
11324 | fail: | |
11325 | return NULL; | |
11326 | } | |
11327 | ||
11328 | ||
c370783e | 11329 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11330 | PyObject *resultobj; |
11331 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11332 | PyObject * obj0 = 0 ; | |
11333 | char *kwnames[] = { | |
11334 | (char *) "self", NULL | |
11335 | }; | |
11336 | ||
11337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11340 | { |
11341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11342 | (arg1)->SetInsertionPointEnd(); | |
11343 | ||
11344 | wxPyEndAllowThreads(__tstate); | |
11345 | if (PyErr_Occurred()) SWIG_fail; | |
11346 | } | |
11347 | Py_INCREF(Py_None); resultobj = Py_None; | |
11348 | return resultobj; | |
11349 | fail: | |
11350 | return NULL; | |
11351 | } | |
11352 | ||
11353 | ||
c370783e | 11354 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11355 | PyObject *resultobj; |
11356 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11357 | long result; | |
11358 | PyObject * obj0 = 0 ; | |
11359 | char *kwnames[] = { | |
11360 | (char *) "self", NULL | |
11361 | }; | |
11362 | ||
11363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11366 | { |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
11369 | ||
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
36ed4f51 RD |
11373 | { |
11374 | resultobj = SWIG_From_long((long)(result)); | |
11375 | } | |
d55e5bfc RD |
11376 | return resultobj; |
11377 | fail: | |
11378 | return NULL; | |
11379 | } | |
11380 | ||
11381 | ||
c370783e | 11382 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11383 | PyObject *resultobj; |
11384 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11385 | long result; | |
11386 | PyObject * obj0 = 0 ; | |
11387 | char *kwnames[] = { | |
11388 | (char *) "self", NULL | |
11389 | }; | |
11390 | ||
11391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11394 | { |
11395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11396 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
11397 | ||
11398 | wxPyEndAllowThreads(__tstate); | |
11399 | if (PyErr_Occurred()) SWIG_fail; | |
11400 | } | |
36ed4f51 RD |
11401 | { |
11402 | resultobj = SWIG_From_long((long)(result)); | |
11403 | } | |
d55e5bfc RD |
11404 | return resultobj; |
11405 | fail: | |
11406 | return NULL; | |
11407 | } | |
11408 | ||
11409 | ||
c370783e | 11410 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11411 | PyObject *resultobj; |
11412 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11413 | long arg2 ; | |
11414 | long arg3 ; | |
11415 | PyObject * obj0 = 0 ; | |
11416 | PyObject * obj1 = 0 ; | |
11417 | PyObject * obj2 = 0 ; | |
11418 | char *kwnames[] = { | |
11419 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11420 | }; | |
11421 | ||
11422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
11423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11425 | { | |
11426 | arg2 = (long)(SWIG_As_long(obj1)); | |
11427 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11428 | } | |
11429 | { | |
11430 | arg3 = (long)(SWIG_As_long(obj2)); | |
11431 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11432 | } | |
d55e5bfc RD |
11433 | { |
11434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11435 | (arg1)->SetSelection(arg2,arg3); | |
11436 | ||
11437 | wxPyEndAllowThreads(__tstate); | |
11438 | if (PyErr_Occurred()) SWIG_fail; | |
11439 | } | |
11440 | Py_INCREF(Py_None); resultobj = Py_None; | |
11441 | return resultobj; | |
11442 | fail: | |
11443 | return NULL; | |
11444 | } | |
11445 | ||
11446 | ||
c370783e | 11447 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11448 | PyObject *resultobj; |
11449 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11450 | PyObject * obj0 = 0 ; | |
11451 | char *kwnames[] = { | |
11452 | (char *) "self", NULL | |
11453 | }; | |
11454 | ||
11455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11458 | { |
11459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11460 | (arg1)->SelectAll(); | |
11461 | ||
11462 | wxPyEndAllowThreads(__tstate); | |
11463 | if (PyErr_Occurred()) SWIG_fail; | |
11464 | } | |
11465 | Py_INCREF(Py_None); resultobj = Py_None; | |
11466 | return resultobj; | |
11467 | fail: | |
11468 | return NULL; | |
11469 | } | |
11470 | ||
11471 | ||
c370783e | 11472 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11473 | PyObject *resultobj; |
11474 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11475 | bool arg2 ; | |
11476 | PyObject * obj0 = 0 ; | |
11477 | PyObject * obj1 = 0 ; | |
11478 | char *kwnames[] = { | |
11479 | (char *) "self",(char *) "editable", NULL | |
11480 | }; | |
11481 | ||
11482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
11483 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11484 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11485 | { | |
11486 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
11487 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11488 | } | |
d55e5bfc RD |
11489 | { |
11490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11491 | (arg1)->SetEditable(arg2); | |
11492 | ||
11493 | wxPyEndAllowThreads(__tstate); | |
11494 | if (PyErr_Occurred()) SWIG_fail; | |
11495 | } | |
11496 | Py_INCREF(Py_None); resultobj = Py_None; | |
11497 | return resultobj; | |
11498 | fail: | |
11499 | return NULL; | |
11500 | } | |
11501 | ||
11502 | ||
c370783e | 11503 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11504 | PyObject *resultobj; |
11505 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11506 | wxString *arg2 = 0 ; | |
b411df4a | 11507 | bool temp2 = false ; |
d55e5bfc RD |
11508 | PyObject * obj0 = 0 ; |
11509 | PyObject * obj1 = 0 ; | |
11510 | char *kwnames[] = { | |
11511 | (char *) "self",(char *) "text", NULL | |
11512 | }; | |
11513 | ||
11514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
11515 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11516 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11517 | { |
11518 | arg2 = wxString_in_helper(obj1); | |
11519 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11520 | temp2 = true; |
d55e5bfc RD |
11521 | } |
11522 | { | |
11523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11524 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
11525 | ||
11526 | wxPyEndAllowThreads(__tstate); | |
11527 | if (PyErr_Occurred()) SWIG_fail; | |
11528 | } | |
11529 | Py_INCREF(Py_None); resultobj = Py_None; | |
11530 | { | |
11531 | if (temp2) | |
11532 | delete arg2; | |
11533 | } | |
11534 | return resultobj; | |
11535 | fail: | |
11536 | { | |
11537 | if (temp2) | |
11538 | delete arg2; | |
11539 | } | |
11540 | return NULL; | |
11541 | } | |
11542 | ||
11543 | ||
c370783e | 11544 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11545 | PyObject *resultobj; |
11546 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11547 | long arg2 ; | |
11548 | long arg3 ; | |
11549 | wxString result; | |
11550 | PyObject * obj0 = 0 ; | |
11551 | PyObject * obj1 = 0 ; | |
11552 | PyObject * obj2 = 0 ; | |
11553 | char *kwnames[] = { | |
11554 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11555 | }; | |
11556 | ||
11557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
11558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11560 | { | |
11561 | arg2 = (long)(SWIG_As_long(obj1)); | |
11562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11563 | } | |
11564 | { | |
11565 | arg3 = (long)(SWIG_As_long(obj2)); | |
11566 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11567 | } | |
d55e5bfc RD |
11568 | { |
11569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11570 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
11571 | ||
11572 | wxPyEndAllowThreads(__tstate); | |
11573 | if (PyErr_Occurred()) SWIG_fail; | |
11574 | } | |
11575 | { | |
11576 | #if wxUSE_UNICODE | |
11577 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11578 | #else | |
11579 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11580 | #endif | |
11581 | } | |
11582 | return resultobj; | |
11583 | fail: | |
11584 | return NULL; | |
11585 | } | |
11586 | ||
11587 | ||
c370783e | 11588 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 11589 | PyObject *resultobj; |
36ed4f51 | 11590 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
11591 | wxVisualAttributes result; |
11592 | PyObject * obj0 = 0 ; | |
11593 | char *kwnames[] = { | |
11594 | (char *) "variant", NULL | |
11595 | }; | |
11596 | ||
11597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11598 | if (obj0) { | |
36ed4f51 RD |
11599 | { |
11600 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
11601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11602 | } | |
f20a2e1f RD |
11603 | } |
11604 | { | |
0439c23b | 11605 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
11606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11607 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11608 | ||
11609 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11610 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
11611 | } |
11612 | { | |
11613 | wxVisualAttributes * resultptr; | |
36ed4f51 | 11614 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
11615 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
11616 | } | |
11617 | return resultobj; | |
11618 | fail: | |
11619 | return NULL; | |
11620 | } | |
11621 | ||
11622 | ||
c370783e | 11623 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11624 | PyObject *obj; |
11625 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11626 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
11627 | Py_INCREF(obj); | |
11628 | return Py_BuildValue((char *)""); | |
11629 | } | |
c370783e | 11630 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11631 | PyObject *resultobj; |
11632 | int arg1 ; | |
11633 | wxMouseEvent *arg2 = 0 ; | |
11634 | long arg3 ; | |
11635 | long arg4 ; | |
11636 | wxTextUrlEvent *result; | |
11637 | PyObject * obj0 = 0 ; | |
11638 | PyObject * obj1 = 0 ; | |
11639 | PyObject * obj2 = 0 ; | |
11640 | PyObject * obj3 = 0 ; | |
11641 | char *kwnames[] = { | |
11642 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
11643 | }; | |
11644 | ||
11645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
11646 | { |
11647 | arg1 = (int)(SWIG_As_int(obj0)); | |
11648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11649 | } | |
11650 | { | |
11651 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); | |
11652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11653 | if (arg2 == NULL) { | |
11654 | SWIG_null_ref("wxMouseEvent"); | |
11655 | } | |
11656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11657 | } | |
11658 | { | |
11659 | arg3 = (long)(SWIG_As_long(obj2)); | |
11660 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11661 | } | |
11662 | { | |
11663 | arg4 = (long)(SWIG_As_long(obj3)); | |
11664 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc | 11665 | } |
d55e5bfc RD |
11666 | { |
11667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11668 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
11669 | ||
11670 | wxPyEndAllowThreads(__tstate); | |
11671 | if (PyErr_Occurred()) SWIG_fail; | |
11672 | } | |
11673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
11674 | return resultobj; | |
11675 | fail: | |
11676 | return NULL; | |
11677 | } | |
11678 | ||
11679 | ||
c370783e | 11680 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11681 | PyObject *resultobj; |
11682 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11683 | wxMouseEvent *result; | |
11684 | PyObject * obj0 = 0 ; | |
11685 | char *kwnames[] = { | |
11686 | (char *) "self", NULL | |
11687 | }; | |
11688 | ||
11689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11692 | { |
11693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11694 | { | |
11695 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
11696 | result = (wxMouseEvent *) &_result_ref; | |
11697 | } | |
11698 | ||
11699 | wxPyEndAllowThreads(__tstate); | |
11700 | if (PyErr_Occurred()) SWIG_fail; | |
11701 | } | |
11702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
11703 | return resultobj; | |
11704 | fail: | |
11705 | return NULL; | |
11706 | } | |
11707 | ||
11708 | ||
c370783e | 11709 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11710 | PyObject *resultobj; |
11711 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11712 | long result; | |
11713 | PyObject * obj0 = 0 ; | |
11714 | char *kwnames[] = { | |
11715 | (char *) "self", NULL | |
11716 | }; | |
11717 | ||
11718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11721 | { |
11722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11723 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
11724 | ||
11725 | wxPyEndAllowThreads(__tstate); | |
11726 | if (PyErr_Occurred()) SWIG_fail; | |
11727 | } | |
36ed4f51 RD |
11728 | { |
11729 | resultobj = SWIG_From_long((long)(result)); | |
11730 | } | |
d55e5bfc RD |
11731 | return resultobj; |
11732 | fail: | |
11733 | return NULL; | |
11734 | } | |
11735 | ||
11736 | ||
c370783e | 11737 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11738 | PyObject *resultobj; |
11739 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11740 | long result; | |
11741 | PyObject * obj0 = 0 ; | |
11742 | char *kwnames[] = { | |
11743 | (char *) "self", NULL | |
11744 | }; | |
11745 | ||
11746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
11747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11749 | { |
11750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11751 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
11752 | ||
11753 | wxPyEndAllowThreads(__tstate); | |
11754 | if (PyErr_Occurred()) SWIG_fail; | |
11755 | } | |
36ed4f51 RD |
11756 | { |
11757 | resultobj = SWIG_From_long((long)(result)); | |
11758 | } | |
d55e5bfc RD |
11759 | return resultobj; |
11760 | fail: | |
11761 | return NULL; | |
11762 | } | |
11763 | ||
11764 | ||
c370783e | 11765 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11766 | PyObject *obj; |
11767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11768 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
11769 | Py_INCREF(obj); | |
11770 | return Py_BuildValue((char *)""); | |
11771 | } | |
c370783e | 11772 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
d55e5bfc RD |
11773 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
11774 | return 1; | |
11775 | } | |
11776 | ||
11777 | ||
36ed4f51 | 11778 | static PyObject *_wrap_ScrollBarNameStr_get(void) { |
d55e5bfc RD |
11779 | PyObject *pyobj; |
11780 | ||
11781 | { | |
11782 | #if wxUSE_UNICODE | |
11783 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11784 | #else | |
11785 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11786 | #endif | |
11787 | } | |
11788 | return pyobj; | |
11789 | } | |
11790 | ||
11791 | ||
c370783e | 11792 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11793 | PyObject *resultobj; |
11794 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11795 | int arg2 = (int) -1 ; | |
11796 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
11797 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11798 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11799 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11800 | long arg5 = (long) wxSB_HORIZONTAL ; | |
11801 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
11802 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
11803 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
11804 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11805 | wxScrollBar *result; | |
11806 | wxPoint temp3 ; | |
11807 | wxSize temp4 ; | |
b411df4a | 11808 | bool temp7 = false ; |
d55e5bfc RD |
11809 | PyObject * obj0 = 0 ; |
11810 | PyObject * obj1 = 0 ; | |
11811 | PyObject * obj2 = 0 ; | |
11812 | PyObject * obj3 = 0 ; | |
11813 | PyObject * obj4 = 0 ; | |
11814 | PyObject * obj5 = 0 ; | |
11815 | PyObject * obj6 = 0 ; | |
11816 | char *kwnames[] = { | |
11817 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11818 | }; | |
11819 | ||
11820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
11821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
11822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11823 | if (obj1) { |
36ed4f51 RD |
11824 | { |
11825 | arg2 = (int)(SWIG_As_int(obj1)); | |
11826 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11827 | } | |
d55e5bfc RD |
11828 | } |
11829 | if (obj2) { | |
11830 | { | |
11831 | arg3 = &temp3; | |
11832 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11833 | } | |
11834 | } | |
11835 | if (obj3) { | |
11836 | { | |
11837 | arg4 = &temp4; | |
11838 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11839 | } | |
11840 | } | |
11841 | if (obj4) { | |
36ed4f51 RD |
11842 | { |
11843 | arg5 = (long)(SWIG_As_long(obj4)); | |
11844 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11845 | } | |
d55e5bfc RD |
11846 | } |
11847 | if (obj5) { | |
36ed4f51 RD |
11848 | { |
11849 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
11850 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11851 | if (arg6 == NULL) { | |
11852 | SWIG_null_ref("wxValidator"); | |
11853 | } | |
11854 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
11855 | } |
11856 | } | |
11857 | if (obj6) { | |
11858 | { | |
11859 | arg7 = wxString_in_helper(obj6); | |
11860 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 11861 | temp7 = true; |
d55e5bfc RD |
11862 | } |
11863 | } | |
11864 | { | |
0439c23b | 11865 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11867 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
11868 | ||
11869 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11870 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11871 | } |
11872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
11873 | { | |
11874 | if (temp7) | |
11875 | delete arg7; | |
11876 | } | |
11877 | return resultobj; | |
11878 | fail: | |
11879 | { | |
11880 | if (temp7) | |
11881 | delete arg7; | |
11882 | } | |
11883 | return NULL; | |
11884 | } | |
11885 | ||
11886 | ||
c370783e | 11887 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11888 | PyObject *resultobj; |
11889 | wxScrollBar *result; | |
11890 | char *kwnames[] = { | |
11891 | NULL | |
11892 | }; | |
11893 | ||
11894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
11895 | { | |
0439c23b | 11896 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11898 | result = (wxScrollBar *)new wxScrollBar(); | |
11899 | ||
11900 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11901 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11902 | } |
11903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
11904 | return resultobj; | |
11905 | fail: | |
11906 | return NULL; | |
11907 | } | |
11908 | ||
11909 | ||
c370783e | 11910 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11911 | PyObject *resultobj; |
11912 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
11913 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11914 | int arg3 = (int) -1 ; | |
11915 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11916 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11917 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11918 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11919 | long arg6 = (long) wxSB_HORIZONTAL ; | |
11920 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11921 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11922 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
11923 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11924 | bool result; | |
11925 | wxPoint temp4 ; | |
11926 | wxSize temp5 ; | |
b411df4a | 11927 | bool temp8 = false ; |
d55e5bfc RD |
11928 | PyObject * obj0 = 0 ; |
11929 | PyObject * obj1 = 0 ; | |
11930 | PyObject * obj2 = 0 ; | |
11931 | PyObject * obj3 = 0 ; | |
11932 | PyObject * obj4 = 0 ; | |
11933 | PyObject * obj5 = 0 ; | |
11934 | PyObject * obj6 = 0 ; | |
11935 | PyObject * obj7 = 0 ; | |
11936 | char *kwnames[] = { | |
11937 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11938 | }; | |
11939 | ||
11940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
36ed4f51 RD |
11941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
11942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11943 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
11944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 11945 | if (obj2) { |
36ed4f51 RD |
11946 | { |
11947 | arg3 = (int)(SWIG_As_int(obj2)); | |
11948 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11949 | } | |
d55e5bfc RD |
11950 | } |
11951 | if (obj3) { | |
11952 | { | |
11953 | arg4 = &temp4; | |
11954 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11955 | } | |
11956 | } | |
11957 | if (obj4) { | |
11958 | { | |
11959 | arg5 = &temp5; | |
11960 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11961 | } | |
11962 | } | |
11963 | if (obj5) { | |
36ed4f51 RD |
11964 | { |
11965 | arg6 = (long)(SWIG_As_long(obj5)); | |
11966 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11967 | } | |
d55e5bfc RD |
11968 | } |
11969 | if (obj6) { | |
36ed4f51 RD |
11970 | { |
11971 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
11972 | if (SWIG_arg_fail(7)) SWIG_fail; | |
11973 | if (arg7 == NULL) { | |
11974 | SWIG_null_ref("wxValidator"); | |
11975 | } | |
11976 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
11977 | } |
11978 | } | |
11979 | if (obj7) { | |
11980 | { | |
11981 | arg8 = wxString_in_helper(obj7); | |
11982 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 11983 | temp8 = true; |
d55e5bfc RD |
11984 | } |
11985 | } | |
11986 | { | |
11987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11988 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11989 | ||
11990 | wxPyEndAllowThreads(__tstate); | |
11991 | if (PyErr_Occurred()) SWIG_fail; | |
11992 | } | |
11993 | { | |
11994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11995 | } | |
11996 | { | |
11997 | if (temp8) | |
11998 | delete arg8; | |
11999 | } | |
12000 | return resultobj; | |
12001 | fail: | |
12002 | { | |
12003 | if (temp8) | |
12004 | delete arg8; | |
12005 | } | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
c370783e | 12010 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12011 | PyObject *resultobj; |
12012 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12013 | int result; | |
12014 | PyObject * obj0 = 0 ; | |
12015 | char *kwnames[] = { | |
12016 | (char *) "self", NULL | |
12017 | }; | |
12018 | ||
12019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12022 | { |
12023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12024 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
12025 | ||
12026 | wxPyEndAllowThreads(__tstate); | |
12027 | if (PyErr_Occurred()) SWIG_fail; | |
12028 | } | |
36ed4f51 RD |
12029 | { |
12030 | resultobj = SWIG_From_int((int)(result)); | |
12031 | } | |
d55e5bfc RD |
12032 | return resultobj; |
12033 | fail: | |
12034 | return NULL; | |
12035 | } | |
12036 | ||
12037 | ||
c370783e | 12038 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12039 | PyObject *resultobj; |
12040 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12041 | int result; | |
12042 | PyObject * obj0 = 0 ; | |
12043 | char *kwnames[] = { | |
12044 | (char *) "self", NULL | |
12045 | }; | |
12046 | ||
12047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12050 | { |
12051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12052 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
12053 | ||
12054 | wxPyEndAllowThreads(__tstate); | |
12055 | if (PyErr_Occurred()) SWIG_fail; | |
12056 | } | |
36ed4f51 RD |
12057 | { |
12058 | resultobj = SWIG_From_int((int)(result)); | |
12059 | } | |
d55e5bfc RD |
12060 | return resultobj; |
12061 | fail: | |
12062 | return NULL; | |
12063 | } | |
12064 | ||
12065 | ||
c370783e | 12066 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12067 | PyObject *resultobj; |
12068 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12069 | int result; | |
12070 | PyObject * obj0 = 0 ; | |
12071 | char *kwnames[] = { | |
12072 | (char *) "self", NULL | |
12073 | }; | |
12074 | ||
12075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12078 | { |
12079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12080 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
12081 | ||
12082 | wxPyEndAllowThreads(__tstate); | |
12083 | if (PyErr_Occurred()) SWIG_fail; | |
12084 | } | |
36ed4f51 RD |
12085 | { |
12086 | resultobj = SWIG_From_int((int)(result)); | |
12087 | } | |
d55e5bfc RD |
12088 | return resultobj; |
12089 | fail: | |
12090 | return NULL; | |
12091 | } | |
12092 | ||
12093 | ||
c370783e | 12094 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12095 | PyObject *resultobj; |
12096 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12097 | int result; | |
12098 | PyObject * obj0 = 0 ; | |
12099 | char *kwnames[] = { | |
12100 | (char *) "self", NULL | |
12101 | }; | |
12102 | ||
12103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12104 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12106 | { |
12107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12108 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
12109 | ||
12110 | wxPyEndAllowThreads(__tstate); | |
12111 | if (PyErr_Occurred()) SWIG_fail; | |
12112 | } | |
36ed4f51 RD |
12113 | { |
12114 | resultobj = SWIG_From_int((int)(result)); | |
12115 | } | |
d55e5bfc RD |
12116 | return resultobj; |
12117 | fail: | |
12118 | return NULL; | |
12119 | } | |
12120 | ||
12121 | ||
c370783e | 12122 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12123 | PyObject *resultobj; |
12124 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12125 | bool result; | |
12126 | PyObject * obj0 = 0 ; | |
12127 | char *kwnames[] = { | |
12128 | (char *) "self", NULL | |
12129 | }; | |
12130 | ||
12131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12134 | { |
12135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12136 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
12137 | ||
12138 | wxPyEndAllowThreads(__tstate); | |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
12140 | } | |
12141 | { | |
12142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12143 | } | |
12144 | return resultobj; | |
12145 | fail: | |
12146 | return NULL; | |
12147 | } | |
12148 | ||
12149 | ||
c370783e | 12150 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12151 | PyObject *resultobj; |
12152 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12153 | int arg2 ; | |
12154 | PyObject * obj0 = 0 ; | |
12155 | PyObject * obj1 = 0 ; | |
12156 | char *kwnames[] = { | |
12157 | (char *) "self",(char *) "viewStart", NULL | |
12158 | }; | |
12159 | ||
12160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
12161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12163 | { | |
12164 | arg2 = (int)(SWIG_As_int(obj1)); | |
12165 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12166 | } | |
d55e5bfc RD |
12167 | { |
12168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12169 | (arg1)->SetThumbPosition(arg2); | |
12170 | ||
12171 | wxPyEndAllowThreads(__tstate); | |
12172 | if (PyErr_Occurred()) SWIG_fail; | |
12173 | } | |
12174 | Py_INCREF(Py_None); resultobj = Py_None; | |
12175 | return resultobj; | |
12176 | fail: | |
12177 | return NULL; | |
12178 | } | |
12179 | ||
12180 | ||
c370783e | 12181 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12182 | PyObject *resultobj; |
12183 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12184 | int arg2 ; | |
12185 | int arg3 ; | |
12186 | int arg4 ; | |
12187 | int arg5 ; | |
b411df4a | 12188 | bool arg6 = (bool) true ; |
d55e5bfc RD |
12189 | PyObject * obj0 = 0 ; |
12190 | PyObject * obj1 = 0 ; | |
12191 | PyObject * obj2 = 0 ; | |
12192 | PyObject * obj3 = 0 ; | |
12193 | PyObject * obj4 = 0 ; | |
12194 | PyObject * obj5 = 0 ; | |
12195 | char *kwnames[] = { | |
12196 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
12197 | }; | |
12198 | ||
12199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
12200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12202 | { | |
12203 | arg2 = (int)(SWIG_As_int(obj1)); | |
12204 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12205 | } | |
12206 | { | |
12207 | arg3 = (int)(SWIG_As_int(obj2)); | |
12208 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12209 | } | |
12210 | { | |
12211 | arg4 = (int)(SWIG_As_int(obj3)); | |
12212 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12213 | } | |
12214 | { | |
12215 | arg5 = (int)(SWIG_As_int(obj4)); | |
12216 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12217 | } | |
d55e5bfc | 12218 | if (obj5) { |
36ed4f51 RD |
12219 | { |
12220 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
12221 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12222 | } | |
d55e5bfc RD |
12223 | } |
12224 | { | |
12225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12226 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
12227 | ||
12228 | wxPyEndAllowThreads(__tstate); | |
12229 | if (PyErr_Occurred()) SWIG_fail; | |
12230 | } | |
12231 | Py_INCREF(Py_None); resultobj = Py_None; | |
12232 | return resultobj; | |
12233 | fail: | |
12234 | return NULL; | |
12235 | } | |
12236 | ||
12237 | ||
c370783e | 12238 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 12239 | PyObject *resultobj; |
36ed4f51 | 12240 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
12241 | wxVisualAttributes result; |
12242 | PyObject * obj0 = 0 ; | |
12243 | char *kwnames[] = { | |
12244 | (char *) "variant", NULL | |
12245 | }; | |
12246 | ||
12247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12248 | if (obj0) { | |
36ed4f51 RD |
12249 | { |
12250 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12252 | } | |
f20a2e1f RD |
12253 | } |
12254 | { | |
0439c23b | 12255 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12257 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12258 | ||
12259 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12260 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12261 | } |
12262 | { | |
12263 | wxVisualAttributes * resultptr; | |
36ed4f51 | 12264 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
12265 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
12266 | } | |
12267 | return resultobj; | |
12268 | fail: | |
12269 | return NULL; | |
12270 | } | |
12271 | ||
12272 | ||
c370783e | 12273 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12274 | PyObject *obj; |
12275 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12276 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
12277 | Py_INCREF(obj); | |
12278 | return Py_BuildValue((char *)""); | |
12279 | } | |
c370783e | 12280 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
d55e5bfc RD |
12281 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
12282 | return 1; | |
12283 | } | |
12284 | ||
12285 | ||
36ed4f51 | 12286 | static PyObject *_wrap_SPIN_BUTTON_NAME_get(void) { |
d55e5bfc RD |
12287 | PyObject *pyobj; |
12288 | ||
12289 | { | |
12290 | #if wxUSE_UNICODE | |
12291 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12292 | #else | |
12293 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12294 | #endif | |
12295 | } | |
12296 | return pyobj; | |
12297 | } | |
12298 | ||
12299 | ||
c370783e | 12300 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
12301 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
12302 | return 1; | |
12303 | } | |
12304 | ||
12305 | ||
36ed4f51 | 12306 | static PyObject *_wrap_SpinCtrlNameStr_get(void) { |
d55e5bfc RD |
12307 | PyObject *pyobj; |
12308 | ||
12309 | { | |
12310 | #if wxUSE_UNICODE | |
12311 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12312 | #else | |
12313 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12314 | #endif | |
12315 | } | |
12316 | return pyobj; | |
12317 | } | |
12318 | ||
12319 | ||
c370783e | 12320 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12321 | PyObject *resultobj; |
12322 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12323 | int arg2 = (int) -1 ; | |
12324 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12325 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12326 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12327 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12328 | long arg5 = (long) wxSP_HORIZONTAL ; | |
12329 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
12330 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12331 | wxSpinButton *result; | |
12332 | wxPoint temp3 ; | |
12333 | wxSize temp4 ; | |
b411df4a | 12334 | bool temp6 = false ; |
d55e5bfc RD |
12335 | PyObject * obj0 = 0 ; |
12336 | PyObject * obj1 = 0 ; | |
12337 | PyObject * obj2 = 0 ; | |
12338 | PyObject * obj3 = 0 ; | |
12339 | PyObject * obj4 = 0 ; | |
12340 | PyObject * obj5 = 0 ; | |
12341 | char *kwnames[] = { | |
12342 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12343 | }; | |
12344 | ||
12345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
12346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12348 | if (obj1) { |
36ed4f51 RD |
12349 | { |
12350 | arg2 = (int)(SWIG_As_int(obj1)); | |
12351 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12352 | } | |
d55e5bfc RD |
12353 | } |
12354 | if (obj2) { | |
12355 | { | |
12356 | arg3 = &temp3; | |
12357 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12358 | } | |
12359 | } | |
12360 | if (obj3) { | |
12361 | { | |
12362 | arg4 = &temp4; | |
12363 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12364 | } | |
12365 | } | |
12366 | if (obj4) { | |
36ed4f51 RD |
12367 | { |
12368 | arg5 = (long)(SWIG_As_long(obj4)); | |
12369 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12370 | } | |
d55e5bfc RD |
12371 | } |
12372 | if (obj5) { | |
12373 | { | |
12374 | arg6 = wxString_in_helper(obj5); | |
12375 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 12376 | temp6 = true; |
d55e5bfc RD |
12377 | } |
12378 | } | |
12379 | { | |
0439c23b | 12380 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12382 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12383 | ||
12384 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12385 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12386 | } |
12387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
12388 | { | |
12389 | if (temp6) | |
12390 | delete arg6; | |
12391 | } | |
12392 | return resultobj; | |
12393 | fail: | |
12394 | { | |
12395 | if (temp6) | |
12396 | delete arg6; | |
12397 | } | |
12398 | return NULL; | |
12399 | } | |
12400 | ||
12401 | ||
c370783e | 12402 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12403 | PyObject *resultobj; |
12404 | wxSpinButton *result; | |
12405 | char *kwnames[] = { | |
12406 | NULL | |
12407 | }; | |
12408 | ||
12409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
12410 | { | |
0439c23b | 12411 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12413 | result = (wxSpinButton *)new wxSpinButton(); | |
12414 | ||
12415 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12416 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12417 | } |
12418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
12419 | return resultobj; | |
12420 | fail: | |
12421 | return NULL; | |
12422 | } | |
12423 | ||
12424 | ||
c370783e | 12425 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12426 | PyObject *resultobj; |
12427 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12428 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12429 | int arg3 = (int) -1 ; | |
12430 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12431 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12432 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12433 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12434 | long arg6 = (long) wxSP_HORIZONTAL ; | |
12435 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
12436 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12437 | bool result; | |
12438 | wxPoint temp4 ; | |
12439 | wxSize temp5 ; | |
b411df4a | 12440 | bool temp7 = false ; |
d55e5bfc RD |
12441 | PyObject * obj0 = 0 ; |
12442 | PyObject * obj1 = 0 ; | |
12443 | PyObject * obj2 = 0 ; | |
12444 | PyObject * obj3 = 0 ; | |
12445 | PyObject * obj4 = 0 ; | |
12446 | PyObject * obj5 = 0 ; | |
12447 | PyObject * obj6 = 0 ; | |
12448 | char *kwnames[] = { | |
12449 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12450 | }; | |
12451 | ||
12452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
12453 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12454 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12455 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12456 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 12457 | if (obj2) { |
36ed4f51 RD |
12458 | { |
12459 | arg3 = (int)(SWIG_As_int(obj2)); | |
12460 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12461 | } | |
d55e5bfc RD |
12462 | } |
12463 | if (obj3) { | |
12464 | { | |
12465 | arg4 = &temp4; | |
12466 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12467 | } | |
12468 | } | |
12469 | if (obj4) { | |
12470 | { | |
12471 | arg5 = &temp5; | |
12472 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12473 | } | |
12474 | } | |
12475 | if (obj5) { | |
36ed4f51 RD |
12476 | { |
12477 | arg6 = (long)(SWIG_As_long(obj5)); | |
12478 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12479 | } | |
d55e5bfc RD |
12480 | } |
12481 | if (obj6) { | |
12482 | { | |
12483 | arg7 = wxString_in_helper(obj6); | |
12484 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 12485 | temp7 = true; |
d55e5bfc RD |
12486 | } |
12487 | } | |
12488 | { | |
12489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12490 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12491 | ||
12492 | wxPyEndAllowThreads(__tstate); | |
12493 | if (PyErr_Occurred()) SWIG_fail; | |
12494 | } | |
12495 | { | |
12496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12497 | } | |
12498 | { | |
12499 | if (temp7) | |
12500 | delete arg7; | |
12501 | } | |
12502 | return resultobj; | |
12503 | fail: | |
12504 | { | |
12505 | if (temp7) | |
12506 | delete arg7; | |
12507 | } | |
12508 | return NULL; | |
12509 | } | |
12510 | ||
12511 | ||
c370783e | 12512 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12513 | PyObject *resultobj; |
12514 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12515 | int result; | |
12516 | PyObject * obj0 = 0 ; | |
12517 | char *kwnames[] = { | |
12518 | (char *) "self", NULL | |
12519 | }; | |
12520 | ||
12521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12524 | { |
12525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12526 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
12527 | ||
12528 | wxPyEndAllowThreads(__tstate); | |
12529 | if (PyErr_Occurred()) SWIG_fail; | |
12530 | } | |
36ed4f51 RD |
12531 | { |
12532 | resultobj = SWIG_From_int((int)(result)); | |
12533 | } | |
d55e5bfc RD |
12534 | return resultobj; |
12535 | fail: | |
12536 | return NULL; | |
12537 | } | |
12538 | ||
12539 | ||
c370783e | 12540 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12541 | PyObject *resultobj; |
12542 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12543 | int result; | |
12544 | PyObject * obj0 = 0 ; | |
12545 | char *kwnames[] = { | |
12546 | (char *) "self", NULL | |
12547 | }; | |
12548 | ||
12549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12550 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12551 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12552 | { |
12553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12554 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
12555 | ||
12556 | wxPyEndAllowThreads(__tstate); | |
12557 | if (PyErr_Occurred()) SWIG_fail; | |
12558 | } | |
36ed4f51 RD |
12559 | { |
12560 | resultobj = SWIG_From_int((int)(result)); | |
12561 | } | |
d55e5bfc RD |
12562 | return resultobj; |
12563 | fail: | |
12564 | return NULL; | |
12565 | } | |
12566 | ||
12567 | ||
c370783e | 12568 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12569 | PyObject *resultobj; |
12570 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12571 | int result; | |
12572 | PyObject * obj0 = 0 ; | |
12573 | char *kwnames[] = { | |
12574 | (char *) "self", NULL | |
12575 | }; | |
12576 | ||
12577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12580 | { |
12581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12582 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
12583 | ||
12584 | wxPyEndAllowThreads(__tstate); | |
12585 | if (PyErr_Occurred()) SWIG_fail; | |
12586 | } | |
36ed4f51 RD |
12587 | { |
12588 | resultobj = SWIG_From_int((int)(result)); | |
12589 | } | |
d55e5bfc RD |
12590 | return resultobj; |
12591 | fail: | |
12592 | return NULL; | |
12593 | } | |
12594 | ||
12595 | ||
c370783e | 12596 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12597 | PyObject *resultobj; |
12598 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12599 | int arg2 ; | |
12600 | PyObject * obj0 = 0 ; | |
12601 | PyObject * obj1 = 0 ; | |
12602 | char *kwnames[] = { | |
12603 | (char *) "self",(char *) "val", NULL | |
12604 | }; | |
12605 | ||
12606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
12607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12609 | { | |
12610 | arg2 = (int)(SWIG_As_int(obj1)); | |
12611 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12612 | } | |
d55e5bfc RD |
12613 | { |
12614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12615 | (arg1)->SetValue(arg2); | |
12616 | ||
12617 | wxPyEndAllowThreads(__tstate); | |
12618 | if (PyErr_Occurred()) SWIG_fail; | |
12619 | } | |
12620 | Py_INCREF(Py_None); resultobj = Py_None; | |
12621 | return resultobj; | |
12622 | fail: | |
12623 | return NULL; | |
12624 | } | |
12625 | ||
12626 | ||
c370783e | 12627 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12628 | PyObject *resultobj; |
12629 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12630 | int arg2 ; | |
12631 | PyObject * obj0 = 0 ; | |
12632 | PyObject * obj1 = 0 ; | |
12633 | char *kwnames[] = { | |
12634 | (char *) "self",(char *) "minVal", NULL | |
12635 | }; | |
12636 | ||
12637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
12638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12640 | { | |
12641 | arg2 = (int)(SWIG_As_int(obj1)); | |
12642 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12643 | } | |
d55e5bfc RD |
12644 | { |
12645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12646 | (arg1)->SetMin(arg2); | |
12647 | ||
12648 | wxPyEndAllowThreads(__tstate); | |
12649 | if (PyErr_Occurred()) SWIG_fail; | |
12650 | } | |
12651 | Py_INCREF(Py_None); resultobj = Py_None; | |
12652 | return resultobj; | |
12653 | fail: | |
12654 | return NULL; | |
12655 | } | |
12656 | ||
12657 | ||
c370783e | 12658 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12659 | PyObject *resultobj; |
12660 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12661 | int arg2 ; | |
12662 | PyObject * obj0 = 0 ; | |
12663 | PyObject * obj1 = 0 ; | |
12664 | char *kwnames[] = { | |
12665 | (char *) "self",(char *) "maxVal", NULL | |
12666 | }; | |
12667 | ||
12668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
12669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12671 | { | |
12672 | arg2 = (int)(SWIG_As_int(obj1)); | |
12673 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12674 | } | |
d55e5bfc RD |
12675 | { |
12676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12677 | (arg1)->SetMax(arg2); | |
12678 | ||
12679 | wxPyEndAllowThreads(__tstate); | |
12680 | if (PyErr_Occurred()) SWIG_fail; | |
12681 | } | |
12682 | Py_INCREF(Py_None); resultobj = Py_None; | |
12683 | return resultobj; | |
12684 | fail: | |
12685 | return NULL; | |
12686 | } | |
12687 | ||
12688 | ||
c370783e | 12689 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12690 | PyObject *resultobj; |
12691 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12692 | int arg2 ; | |
12693 | int arg3 ; | |
12694 | PyObject * obj0 = 0 ; | |
12695 | PyObject * obj1 = 0 ; | |
12696 | PyObject * obj2 = 0 ; | |
12697 | char *kwnames[] = { | |
12698 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
12699 | }; | |
12700 | ||
12701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
12702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12704 | { | |
12705 | arg2 = (int)(SWIG_As_int(obj1)); | |
12706 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12707 | } | |
12708 | { | |
12709 | arg3 = (int)(SWIG_As_int(obj2)); | |
12710 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12711 | } | |
d55e5bfc RD |
12712 | { |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | (arg1)->SetRange(arg2,arg3); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
f20a2e1f RD |
12719 | Py_INCREF(Py_None); resultobj = Py_None; |
12720 | return resultobj; | |
12721 | fail: | |
12722 | return NULL; | |
12723 | } | |
12724 | ||
12725 | ||
c370783e | 12726 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
12727 | PyObject *resultobj; |
12728 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12729 | bool result; | |
12730 | PyObject * obj0 = 0 ; | |
12731 | char *kwnames[] = { | |
12732 | (char *) "self", NULL | |
12733 | }; | |
12734 | ||
12735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
12736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
f20a2e1f RD |
12738 | { |
12739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12740 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
12741 | ||
12742 | wxPyEndAllowThreads(__tstate); | |
12743 | if (PyErr_Occurred()) SWIG_fail; | |
12744 | } | |
12745 | { | |
12746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12747 | } | |
d55e5bfc RD |
12748 | return resultobj; |
12749 | fail: | |
12750 | return NULL; | |
12751 | } | |
12752 | ||
12753 | ||
c370783e | 12754 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 12755 | PyObject *resultobj; |
36ed4f51 | 12756 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f | 12757 | wxVisualAttributes result; |
d55e5bfc RD |
12758 | PyObject * obj0 = 0 ; |
12759 | char *kwnames[] = { | |
f20a2e1f | 12760 | (char *) "variant", NULL |
d55e5bfc RD |
12761 | }; |
12762 | ||
f20a2e1f RD |
12763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
12764 | if (obj0) { | |
36ed4f51 RD |
12765 | { |
12766 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12768 | } | |
f20a2e1f | 12769 | } |
d55e5bfc | 12770 | { |
0439c23b | 12771 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 12772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f20a2e1f | 12773 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d55e5bfc RD |
12774 | |
12775 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12776 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12777 | } |
12778 | { | |
f20a2e1f | 12779 | wxVisualAttributes * resultptr; |
36ed4f51 | 12780 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f | 12781 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
d55e5bfc RD |
12782 | } |
12783 | return resultobj; | |
12784 | fail: | |
12785 | return NULL; | |
12786 | } | |
12787 | ||
12788 | ||
c370783e | 12789 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12790 | PyObject *obj; |
12791 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12792 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
12793 | Py_INCREF(obj); | |
12794 | return Py_BuildValue((char *)""); | |
12795 | } | |
c370783e | 12796 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12797 | PyObject *resultobj; |
12798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12799 | int arg2 = (int) -1 ; | |
12800 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12801 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12802 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12803 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12804 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12805 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12806 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
12807 | int arg7 = (int) 0 ; | |
12808 | int arg8 = (int) 100 ; | |
12809 | int arg9 = (int) 0 ; | |
12810 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
12811 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12812 | wxSpinCtrl *result; | |
b411df4a | 12813 | bool temp3 = false ; |
d55e5bfc RD |
12814 | wxPoint temp4 ; |
12815 | wxSize temp5 ; | |
b411df4a | 12816 | bool temp10 = false ; |
d55e5bfc RD |
12817 | PyObject * obj0 = 0 ; |
12818 | PyObject * obj1 = 0 ; | |
12819 | PyObject * obj2 = 0 ; | |
12820 | PyObject * obj3 = 0 ; | |
12821 | PyObject * obj4 = 0 ; | |
12822 | PyObject * obj5 = 0 ; | |
12823 | PyObject * obj6 = 0 ; | |
12824 | PyObject * obj7 = 0 ; | |
12825 | PyObject * obj8 = 0 ; | |
12826 | PyObject * obj9 = 0 ; | |
12827 | char *kwnames[] = { | |
12828 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
12829 | }; | |
12830 | ||
12831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
36ed4f51 RD |
12832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12834 | if (obj1) { |
36ed4f51 RD |
12835 | { |
12836 | arg2 = (int)(SWIG_As_int(obj1)); | |
12837 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12838 | } | |
d55e5bfc RD |
12839 | } |
12840 | if (obj2) { | |
12841 | { | |
12842 | arg3 = wxString_in_helper(obj2); | |
12843 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 12844 | temp3 = true; |
d55e5bfc RD |
12845 | } |
12846 | } | |
12847 | if (obj3) { | |
12848 | { | |
12849 | arg4 = &temp4; | |
12850 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12851 | } | |
12852 | } | |
12853 | if (obj4) { | |
12854 | { | |
12855 | arg5 = &temp5; | |
12856 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12857 | } | |
12858 | } | |
12859 | if (obj5) { | |
36ed4f51 RD |
12860 | { |
12861 | arg6 = (long)(SWIG_As_long(obj5)); | |
12862 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12863 | } | |
d55e5bfc RD |
12864 | } |
12865 | if (obj6) { | |
36ed4f51 RD |
12866 | { |
12867 | arg7 = (int)(SWIG_As_int(obj6)); | |
12868 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12869 | } | |
d55e5bfc RD |
12870 | } |
12871 | if (obj7) { | |
36ed4f51 RD |
12872 | { |
12873 | arg8 = (int)(SWIG_As_int(obj7)); | |
12874 | if (SWIG_arg_fail(8)) SWIG_fail; | |
12875 | } | |
d55e5bfc RD |
12876 | } |
12877 | if (obj8) { | |
36ed4f51 RD |
12878 | { |
12879 | arg9 = (int)(SWIG_As_int(obj8)); | |
12880 | if (SWIG_arg_fail(9)) SWIG_fail; | |
12881 | } | |
d55e5bfc RD |
12882 | } |
12883 | if (obj9) { | |
12884 | { | |
12885 | arg10 = wxString_in_helper(obj9); | |
12886 | if (arg10 == NULL) SWIG_fail; | |
b411df4a | 12887 | temp10 = true; |
d55e5bfc RD |
12888 | } |
12889 | } | |
12890 | { | |
0439c23b | 12891 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12893 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
12894 | ||
12895 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12896 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12897 | } |
12898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
12899 | { | |
12900 | if (temp3) | |
12901 | delete arg3; | |
12902 | } | |
12903 | { | |
12904 | if (temp10) | |
12905 | delete arg10; | |
12906 | } | |
12907 | return resultobj; | |
12908 | fail: | |
12909 | { | |
12910 | if (temp3) | |
12911 | delete arg3; | |
12912 | } | |
12913 | { | |
12914 | if (temp10) | |
12915 | delete arg10; | |
12916 | } | |
12917 | return NULL; | |
12918 | } | |
12919 | ||
12920 | ||
c370783e | 12921 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12922 | PyObject *resultobj; |
12923 | wxSpinCtrl *result; | |
12924 | char *kwnames[] = { | |
12925 | NULL | |
12926 | }; | |
12927 | ||
12928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
12929 | { | |
0439c23b | 12930 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12932 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
12933 | ||
12934 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12935 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12936 | } |
12937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
12938 | return resultobj; | |
12939 | fail: | |
12940 | return NULL; | |
12941 | } | |
12942 | ||
12943 | ||
c370783e | 12944 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12945 | PyObject *resultobj; |
12946 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
12947 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12948 | int arg3 = (int) -1 ; | |
12949 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12950 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12951 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12952 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12953 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12954 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12955 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
12956 | int arg8 = (int) 0 ; | |
12957 | int arg9 = (int) 100 ; | |
12958 | int arg10 = (int) 0 ; | |
12959 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
12960 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12961 | bool result; | |
b411df4a | 12962 | bool temp4 = false ; |
d55e5bfc RD |
12963 | wxPoint temp5 ; |
12964 | wxSize temp6 ; | |
b411df4a | 12965 | bool temp11 = false ; |
d55e5bfc RD |
12966 | PyObject * obj0 = 0 ; |
12967 | PyObject * obj1 = 0 ; | |
12968 | PyObject * obj2 = 0 ; | |
12969 | PyObject * obj3 = 0 ; | |
12970 | PyObject * obj4 = 0 ; | |
12971 | PyObject * obj5 = 0 ; | |
12972 | PyObject * obj6 = 0 ; | |
12973 | PyObject * obj7 = 0 ; | |
12974 | PyObject * obj8 = 0 ; | |
12975 | PyObject * obj9 = 0 ; | |
12976 | PyObject * obj10 = 0 ; | |
12977 | char *kwnames[] = { | |
12978 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
12979 | }; | |
12980 | ||
12981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
36ed4f51 RD |
12982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
12983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12984 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12985 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 12986 | if (obj2) { |
36ed4f51 RD |
12987 | { |
12988 | arg3 = (int)(SWIG_As_int(obj2)); | |
12989 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12990 | } | |
d55e5bfc RD |
12991 | } |
12992 | if (obj3) { | |
12993 | { | |
12994 | arg4 = wxString_in_helper(obj3); | |
12995 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 12996 | temp4 = true; |
d55e5bfc RD |
12997 | } |
12998 | } | |
12999 | if (obj4) { | |
13000 | { | |
13001 | arg5 = &temp5; | |
13002 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13003 | } | |
13004 | } | |
13005 | if (obj5) { | |
13006 | { | |
13007 | arg6 = &temp6; | |
13008 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13009 | } | |
13010 | } | |
13011 | if (obj6) { | |
36ed4f51 RD |
13012 | { |
13013 | arg7 = (long)(SWIG_As_long(obj6)); | |
13014 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13015 | } | |
d55e5bfc RD |
13016 | } |
13017 | if (obj7) { | |
36ed4f51 RD |
13018 | { |
13019 | arg8 = (int)(SWIG_As_int(obj7)); | |
13020 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13021 | } | |
d55e5bfc RD |
13022 | } |
13023 | if (obj8) { | |
36ed4f51 RD |
13024 | { |
13025 | arg9 = (int)(SWIG_As_int(obj8)); | |
13026 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13027 | } | |
d55e5bfc RD |
13028 | } |
13029 | if (obj9) { | |
36ed4f51 RD |
13030 | { |
13031 | arg10 = (int)(SWIG_As_int(obj9)); | |
13032 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13033 | } | |
d55e5bfc RD |
13034 | } |
13035 | if (obj10) { | |
13036 | { | |
13037 | arg11 = wxString_in_helper(obj10); | |
13038 | if (arg11 == NULL) SWIG_fail; | |
b411df4a | 13039 | temp11 = true; |
d55e5bfc RD |
13040 | } |
13041 | } | |
13042 | { | |
13043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13044 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
13045 | ||
13046 | wxPyEndAllowThreads(__tstate); | |
13047 | if (PyErr_Occurred()) SWIG_fail; | |
13048 | } | |
13049 | { | |
13050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13051 | } | |
13052 | { | |
13053 | if (temp4) | |
13054 | delete arg4; | |
13055 | } | |
13056 | { | |
13057 | if (temp11) | |
13058 | delete arg11; | |
13059 | } | |
13060 | return resultobj; | |
13061 | fail: | |
13062 | { | |
13063 | if (temp4) | |
13064 | delete arg4; | |
13065 | } | |
13066 | { | |
13067 | if (temp11) | |
13068 | delete arg11; | |
13069 | } | |
13070 | return NULL; | |
13071 | } | |
13072 | ||
13073 | ||
c370783e | 13074 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13075 | PyObject *resultobj; |
13076 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13077 | int result; | |
13078 | PyObject * obj0 = 0 ; | |
13079 | char *kwnames[] = { | |
13080 | (char *) "self", NULL | |
13081 | }; | |
13082 | ||
13083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13086 | { |
13087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13088 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
13089 | ||
13090 | wxPyEndAllowThreads(__tstate); | |
13091 | if (PyErr_Occurred()) SWIG_fail; | |
13092 | } | |
36ed4f51 RD |
13093 | { |
13094 | resultobj = SWIG_From_int((int)(result)); | |
13095 | } | |
d55e5bfc RD |
13096 | return resultobj; |
13097 | fail: | |
13098 | return NULL; | |
13099 | } | |
13100 | ||
13101 | ||
c370783e | 13102 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13103 | PyObject *resultobj; |
13104 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13105 | int arg2 ; | |
13106 | PyObject * obj0 = 0 ; | |
13107 | PyObject * obj1 = 0 ; | |
13108 | char *kwnames[] = { | |
13109 | (char *) "self",(char *) "value", NULL | |
13110 | }; | |
13111 | ||
13112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13115 | { | |
13116 | arg2 = (int)(SWIG_As_int(obj1)); | |
13117 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13118 | } | |
d55e5bfc RD |
13119 | { |
13120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13121 | (arg1)->SetValue(arg2); | |
13122 | ||
13123 | wxPyEndAllowThreads(__tstate); | |
13124 | if (PyErr_Occurred()) SWIG_fail; | |
13125 | } | |
13126 | Py_INCREF(Py_None); resultobj = Py_None; | |
13127 | return resultobj; | |
13128 | fail: | |
13129 | return NULL; | |
13130 | } | |
13131 | ||
13132 | ||
c370783e | 13133 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13134 | PyObject *resultobj; |
13135 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13136 | wxString *arg2 = 0 ; | |
b411df4a | 13137 | bool temp2 = false ; |
d55e5bfc RD |
13138 | PyObject * obj0 = 0 ; |
13139 | PyObject * obj1 = 0 ; | |
13140 | char *kwnames[] = { | |
13141 | (char *) "self",(char *) "text", NULL | |
13142 | }; | |
13143 | ||
13144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13147 | { |
13148 | arg2 = wxString_in_helper(obj1); | |
13149 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13150 | temp2 = true; |
d55e5bfc RD |
13151 | } |
13152 | { | |
13153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13154 | (arg1)->SetValue((wxString const &)*arg2); | |
13155 | ||
13156 | wxPyEndAllowThreads(__tstate); | |
13157 | if (PyErr_Occurred()) SWIG_fail; | |
13158 | } | |
13159 | Py_INCREF(Py_None); resultobj = Py_None; | |
13160 | { | |
13161 | if (temp2) | |
13162 | delete arg2; | |
13163 | } | |
13164 | return resultobj; | |
13165 | fail: | |
13166 | { | |
13167 | if (temp2) | |
13168 | delete arg2; | |
13169 | } | |
13170 | return NULL; | |
13171 | } | |
13172 | ||
13173 | ||
c370783e | 13174 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13175 | PyObject *resultobj; |
13176 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13177 | int arg2 ; | |
13178 | int arg3 ; | |
13179 | PyObject * obj0 = 0 ; | |
13180 | PyObject * obj1 = 0 ; | |
13181 | PyObject * obj2 = 0 ; | |
13182 | char *kwnames[] = { | |
13183 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
13184 | }; | |
13185 | ||
13186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
13187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13189 | { | |
13190 | arg2 = (int)(SWIG_As_int(obj1)); | |
13191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13192 | } | |
13193 | { | |
13194 | arg3 = (int)(SWIG_As_int(obj2)); | |
13195 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13196 | } | |
d55e5bfc RD |
13197 | { |
13198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13199 | (arg1)->SetRange(arg2,arg3); | |
13200 | ||
13201 | wxPyEndAllowThreads(__tstate); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | Py_INCREF(Py_None); resultobj = Py_None; | |
13205 | return resultobj; | |
13206 | fail: | |
13207 | return NULL; | |
13208 | } | |
13209 | ||
13210 | ||
c370783e | 13211 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13212 | PyObject *resultobj; |
13213 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13214 | int result; | |
13215 | PyObject * obj0 = 0 ; | |
13216 | char *kwnames[] = { | |
13217 | (char *) "self", NULL | |
13218 | }; | |
13219 | ||
13220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13223 | { |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
13226 | ||
13227 | wxPyEndAllowThreads(__tstate); | |
13228 | if (PyErr_Occurred()) SWIG_fail; | |
13229 | } | |
36ed4f51 RD |
13230 | { |
13231 | resultobj = SWIG_From_int((int)(result)); | |
13232 | } | |
d55e5bfc RD |
13233 | return resultobj; |
13234 | fail: | |
13235 | return NULL; | |
13236 | } | |
13237 | ||
13238 | ||
c370783e | 13239 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13240 | PyObject *resultobj; |
13241 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13242 | int result; | |
13243 | PyObject * obj0 = 0 ; | |
13244 | char *kwnames[] = { | |
13245 | (char *) "self", NULL | |
13246 | }; | |
13247 | ||
13248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13251 | { |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13253 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
13254 | ||
13255 | wxPyEndAllowThreads(__tstate); | |
13256 | if (PyErr_Occurred()) SWIG_fail; | |
13257 | } | |
36ed4f51 RD |
13258 | { |
13259 | resultobj = SWIG_From_int((int)(result)); | |
13260 | } | |
d55e5bfc RD |
13261 | return resultobj; |
13262 | fail: | |
13263 | return NULL; | |
13264 | } | |
13265 | ||
13266 | ||
c370783e | 13267 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13268 | PyObject *resultobj; |
13269 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13270 | long arg2 ; | |
13271 | long arg3 ; | |
13272 | PyObject * obj0 = 0 ; | |
13273 | PyObject * obj1 = 0 ; | |
13274 | PyObject * obj2 = 0 ; | |
13275 | char *kwnames[] = { | |
13276 | (char *) "self",(char *) "from",(char *) "to", NULL | |
13277 | }; | |
13278 | ||
13279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
13280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13282 | { | |
13283 | arg2 = (long)(SWIG_As_long(obj1)); | |
13284 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13285 | } | |
13286 | { | |
13287 | arg3 = (long)(SWIG_As_long(obj2)); | |
13288 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13289 | } | |
d55e5bfc RD |
13290 | { |
13291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13292 | (arg1)->SetSelection(arg2,arg3); | |
13293 | ||
13294 | wxPyEndAllowThreads(__tstate); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
13297 | Py_INCREF(Py_None); resultobj = Py_None; | |
13298 | return resultobj; | |
13299 | fail: | |
13300 | return NULL; | |
13301 | } | |
13302 | ||
13303 | ||
c370783e | 13304 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 13305 | PyObject *resultobj; |
36ed4f51 | 13306 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
13307 | wxVisualAttributes result; |
13308 | PyObject * obj0 = 0 ; | |
13309 | char *kwnames[] = { | |
13310 | (char *) "variant", NULL | |
13311 | }; | |
13312 | ||
13313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13314 | if (obj0) { | |
36ed4f51 RD |
13315 | { |
13316 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
13317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13318 | } | |
f20a2e1f RD |
13319 | } |
13320 | { | |
0439c23b | 13321 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
13322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13323 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13324 | ||
13325 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13326 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
13327 | } |
13328 | { | |
13329 | wxVisualAttributes * resultptr; | |
36ed4f51 | 13330 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
13331 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
13332 | } | |
13333 | return resultobj; | |
13334 | fail: | |
13335 | return NULL; | |
13336 | } | |
13337 | ||
13338 | ||
c370783e | 13339 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13340 | PyObject *obj; |
13341 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13342 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
13343 | Py_INCREF(obj); | |
13344 | return Py_BuildValue((char *)""); | |
13345 | } | |
c370783e | 13346 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13347 | PyObject *resultobj; |
13348 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13349 | int arg2 = (int) 0 ; | |
13350 | wxSpinEvent *result; | |
13351 | PyObject * obj0 = 0 ; | |
13352 | PyObject * obj1 = 0 ; | |
13353 | char *kwnames[] = { | |
13354 | (char *) "commandType",(char *) "winid", NULL | |
13355 | }; | |
13356 | ||
13357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
13358 | if (obj0) { | |
36ed4f51 RD |
13359 | { |
13360 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
13361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13362 | } | |
d55e5bfc RD |
13363 | } |
13364 | if (obj1) { | |
36ed4f51 RD |
13365 | { |
13366 | arg2 = (int)(SWIG_As_int(obj1)); | |
13367 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13368 | } | |
d55e5bfc RD |
13369 | } |
13370 | { | |
13371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13372 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
13373 | ||
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
13377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
13378 | return resultobj; | |
13379 | fail: | |
13380 | return NULL; | |
13381 | } | |
13382 | ||
13383 | ||
c370783e | 13384 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13385 | PyObject *resultobj; |
13386 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13387 | int result; | |
13388 | PyObject * obj0 = 0 ; | |
13389 | char *kwnames[] = { | |
13390 | (char *) "self", NULL | |
13391 | }; | |
13392 | ||
13393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13396 | { |
13397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13398 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
13399 | ||
13400 | wxPyEndAllowThreads(__tstate); | |
13401 | if (PyErr_Occurred()) SWIG_fail; | |
13402 | } | |
36ed4f51 RD |
13403 | { |
13404 | resultobj = SWIG_From_int((int)(result)); | |
13405 | } | |
d55e5bfc RD |
13406 | return resultobj; |
13407 | fail: | |
13408 | return NULL; | |
13409 | } | |
13410 | ||
13411 | ||
c370783e | 13412 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13413 | PyObject *resultobj; |
13414 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13415 | int arg2 ; | |
13416 | PyObject * obj0 = 0 ; | |
13417 | PyObject * obj1 = 0 ; | |
13418 | char *kwnames[] = { | |
13419 | (char *) "self",(char *) "pos", NULL | |
13420 | }; | |
13421 | ||
13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13425 | { | |
13426 | arg2 = (int)(SWIG_As_int(obj1)); | |
13427 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13428 | } | |
d55e5bfc RD |
13429 | { |
13430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13431 | (arg1)->SetPosition(arg2); | |
13432 | ||
13433 | wxPyEndAllowThreads(__tstate); | |
13434 | if (PyErr_Occurred()) SWIG_fail; | |
13435 | } | |
13436 | Py_INCREF(Py_None); resultobj = Py_None; | |
13437 | return resultobj; | |
13438 | fail: | |
13439 | return NULL; | |
13440 | } | |
13441 | ||
13442 | ||
c370783e | 13443 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13444 | PyObject *obj; |
13445 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13446 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
13447 | Py_INCREF(obj); | |
13448 | return Py_BuildValue((char *)""); | |
13449 | } | |
c370783e | 13450 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
13451 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
13452 | return 1; | |
13453 | } | |
13454 | ||
13455 | ||
36ed4f51 | 13456 | static PyObject *_wrap_RadioBoxNameStr_get(void) { |
d55e5bfc RD |
13457 | PyObject *pyobj; |
13458 | ||
13459 | { | |
13460 | #if wxUSE_UNICODE | |
13461 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13462 | #else | |
13463 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13464 | #endif | |
13465 | } | |
13466 | return pyobj; | |
13467 | } | |
13468 | ||
13469 | ||
c370783e | 13470 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
13471 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
13472 | return 1; | |
13473 | } | |
13474 | ||
13475 | ||
36ed4f51 | 13476 | static PyObject *_wrap_RadioButtonNameStr_get(void) { |
d55e5bfc RD |
13477 | PyObject *pyobj; |
13478 | ||
13479 | { | |
13480 | #if wxUSE_UNICODE | |
13481 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13482 | #else | |
13483 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13484 | #endif | |
13485 | } | |
13486 | return pyobj; | |
13487 | } | |
13488 | ||
13489 | ||
c370783e | 13490 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13491 | PyObject *resultobj; |
13492 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
13493 | int arg2 = (int) -1 ; |
13494 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13495 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
13496 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13497 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13498 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13499 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13500 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
13501 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
13502 | int arg7 = (int) 0 ; | |
13503 | long arg8 = (long) wxRA_HORIZONTAL ; | |
13504 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13505 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13506 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
13507 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
13508 | wxRadioBox *result; | |
b411df4a | 13509 | bool temp3 = false ; |
d55e5bfc RD |
13510 | wxPoint temp4 ; |
13511 | wxSize temp5 ; | |
b411df4a RD |
13512 | bool temp6 = false ; |
13513 | bool temp10 = false ; | |
d55e5bfc RD |
13514 | PyObject * obj0 = 0 ; |
13515 | PyObject * obj1 = 0 ; | |
13516 | PyObject * obj2 = 0 ; | |
13517 | PyObject * obj3 = 0 ; | |
13518 | PyObject * obj4 = 0 ; | |
13519 | PyObject * obj5 = 0 ; | |
13520 | PyObject * obj6 = 0 ; | |
13521 | PyObject * obj7 = 0 ; | |
13522 | PyObject * obj8 = 0 ; | |
13523 | PyObject * obj9 = 0 ; | |
13524 | char *kwnames[] = { | |
13525 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13526 | }; | |
13527 | ||
bfddbb17 | 13528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
36ed4f51 RD |
13529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
13530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 13531 | if (obj1) { |
36ed4f51 RD |
13532 | { |
13533 | arg2 = (int)(SWIG_As_int(obj1)); | |
13534 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13535 | } | |
bfddbb17 RD |
13536 | } |
13537 | if (obj2) { | |
13538 | { | |
13539 | arg3 = wxString_in_helper(obj2); | |
13540 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 13541 | temp3 = true; |
bfddbb17 | 13542 | } |
d55e5bfc RD |
13543 | } |
13544 | if (obj3) { | |
13545 | { | |
13546 | arg4 = &temp4; | |
13547 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13548 | } | |
13549 | } | |
13550 | if (obj4) { | |
13551 | { | |
13552 | arg5 = &temp5; | |
13553 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13554 | } | |
13555 | } | |
13556 | if (obj5) { | |
13557 | { | |
13558 | if (! PySequence_Check(obj5)) { | |
13559 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13560 | SWIG_fail; | |
13561 | } | |
13562 | arg6 = new wxArrayString; | |
b411df4a | 13563 | temp6 = true; |
d55e5bfc RD |
13564 | int i, len=PySequence_Length(obj5); |
13565 | for (i=0; i<len; i++) { | |
13566 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 13567 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 13568 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
13569 | arg6->Add(*s); |
13570 | delete s; | |
d55e5bfc | 13571 | Py_DECREF(item); |
d55e5bfc RD |
13572 | } |
13573 | } | |
13574 | } | |
13575 | if (obj6) { | |
36ed4f51 RD |
13576 | { |
13577 | arg7 = (int)(SWIG_As_int(obj6)); | |
13578 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13579 | } | |
d55e5bfc RD |
13580 | } |
13581 | if (obj7) { | |
36ed4f51 RD |
13582 | { |
13583 | arg8 = (long)(SWIG_As_long(obj7)); | |
13584 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13585 | } | |
d55e5bfc RD |
13586 | } |
13587 | if (obj8) { | |
36ed4f51 RD |
13588 | { |
13589 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13590 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13591 | if (arg9 == NULL) { | |
13592 | SWIG_null_ref("wxValidator"); | |
13593 | } | |
13594 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d55e5bfc RD |
13595 | } |
13596 | } | |
13597 | if (obj9) { | |
13598 | { | |
13599 | arg10 = wxString_in_helper(obj9); | |
13600 | if (arg10 == NULL) SWIG_fail; | |
b411df4a | 13601 | temp10 = true; |
d55e5bfc RD |
13602 | } |
13603 | } | |
13604 | { | |
0439c23b | 13605 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13607 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
13608 | ||
13609 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13610 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13611 | } |
13612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
13613 | { | |
13614 | if (temp3) | |
13615 | delete arg3; | |
13616 | } | |
13617 | { | |
13618 | if (temp6) delete arg6; | |
13619 | } | |
13620 | { | |
13621 | if (temp10) | |
13622 | delete arg10; | |
13623 | } | |
13624 | return resultobj; | |
13625 | fail: | |
13626 | { | |
13627 | if (temp3) | |
13628 | delete arg3; | |
13629 | } | |
13630 | { | |
13631 | if (temp6) delete arg6; | |
13632 | } | |
13633 | { | |
13634 | if (temp10) | |
13635 | delete arg10; | |
13636 | } | |
13637 | return NULL; | |
13638 | } | |
13639 | ||
13640 | ||
c370783e | 13641 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13642 | PyObject *resultobj; |
13643 | wxRadioBox *result; | |
13644 | char *kwnames[] = { | |
13645 | NULL | |
13646 | }; | |
13647 | ||
13648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
13649 | { | |
0439c23b | 13650 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13652 | result = (wxRadioBox *)new wxRadioBox(); | |
13653 | ||
13654 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13655 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13656 | } |
13657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
13658 | return resultobj; | |
13659 | fail: | |
13660 | return NULL; | |
13661 | } | |
13662 | ||
13663 | ||
c370783e | 13664 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13665 | PyObject *resultobj; |
13666 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13667 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
13668 | int arg3 = (int) -1 ; |
13669 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13670 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
13671 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13672 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13673 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13674 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13675 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
13676 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
13677 | int arg8 = (int) 0 ; | |
13678 | long arg9 = (long) wxRA_HORIZONTAL ; | |
13679 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13680 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13681 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
13682 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13683 | bool result; | |
b411df4a | 13684 | bool temp4 = false ; |
d55e5bfc RD |
13685 | wxPoint temp5 ; |
13686 | wxSize temp6 ; | |
b411df4a RD |
13687 | bool temp7 = false ; |
13688 | bool temp11 = false ; | |
d55e5bfc RD |
13689 | PyObject * obj0 = 0 ; |
13690 | PyObject * obj1 = 0 ; | |
13691 | PyObject * obj2 = 0 ; | |
13692 | PyObject * obj3 = 0 ; | |
13693 | PyObject * obj4 = 0 ; | |
13694 | PyObject * obj5 = 0 ; | |
13695 | PyObject * obj6 = 0 ; | |
13696 | PyObject * obj7 = 0 ; | |
13697 | PyObject * obj8 = 0 ; | |
13698 | PyObject * obj9 = 0 ; | |
13699 | PyObject * obj10 = 0 ; | |
13700 | char *kwnames[] = { | |
13701 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13702 | }; | |
13703 | ||
bfddbb17 | 13704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
36ed4f51 RD |
13705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13707 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13708 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 13709 | if (obj2) { |
36ed4f51 RD |
13710 | { |
13711 | arg3 = (int)(SWIG_As_int(obj2)); | |
13712 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13713 | } | |
bfddbb17 RD |
13714 | } |
13715 | if (obj3) { | |
13716 | { | |
13717 | arg4 = wxString_in_helper(obj3); | |
13718 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 13719 | temp4 = true; |
bfddbb17 | 13720 | } |
d55e5bfc RD |
13721 | } |
13722 | if (obj4) { | |
13723 | { | |
13724 | arg5 = &temp5; | |
13725 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13726 | } | |
13727 | } | |
13728 | if (obj5) { | |
13729 | { | |
13730 | arg6 = &temp6; | |
13731 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13732 | } | |
13733 | } | |
13734 | if (obj6) { | |
13735 | { | |
13736 | if (! PySequence_Check(obj6)) { | |
13737 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13738 | SWIG_fail; | |
13739 | } | |
13740 | arg7 = new wxArrayString; | |
b411df4a | 13741 | temp7 = true; |
d55e5bfc RD |
13742 | int i, len=PySequence_Length(obj6); |
13743 | for (i=0; i<len; i++) { | |
13744 | PyObject* item = PySequence_GetItem(obj6, i); | |
71237536 | 13745 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 13746 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
13747 | arg7->Add(*s); |
13748 | delete s; | |
d55e5bfc | 13749 | Py_DECREF(item); |
d55e5bfc RD |
13750 | } |
13751 | } | |
13752 | } | |
13753 | if (obj7) { | |
36ed4f51 RD |
13754 | { |
13755 | arg8 = (int)(SWIG_As_int(obj7)); | |
13756 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13757 | } | |
d55e5bfc RD |
13758 | } |
13759 | if (obj8) { | |
36ed4f51 RD |
13760 | { |
13761 | arg9 = (long)(SWIG_As_long(obj8)); | |
13762 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13763 | } | |
d55e5bfc RD |
13764 | } |
13765 | if (obj9) { | |
36ed4f51 RD |
13766 | { |
13767 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13768 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13769 | if (arg10 == NULL) { | |
13770 | SWIG_null_ref("wxValidator"); | |
13771 | } | |
13772 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d55e5bfc RD |
13773 | } |
13774 | } | |
13775 | if (obj10) { | |
13776 | { | |
13777 | arg11 = wxString_in_helper(obj10); | |
13778 | if (arg11 == NULL) SWIG_fail; | |
b411df4a | 13779 | temp11 = true; |
d55e5bfc RD |
13780 | } |
13781 | } | |
13782 | { | |
13783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13784 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13785 | ||
13786 | wxPyEndAllowThreads(__tstate); | |
13787 | if (PyErr_Occurred()) SWIG_fail; | |
13788 | } | |
13789 | { | |
13790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13791 | } | |
13792 | { | |
13793 | if (temp4) | |
13794 | delete arg4; | |
13795 | } | |
13796 | { | |
13797 | if (temp7) delete arg7; | |
13798 | } | |
13799 | { | |
13800 | if (temp11) | |
13801 | delete arg11; | |
13802 | } | |
13803 | return resultobj; | |
13804 | fail: | |
13805 | { | |
13806 | if (temp4) | |
13807 | delete arg4; | |
13808 | } | |
13809 | { | |
13810 | if (temp7) delete arg7; | |
13811 | } | |
13812 | { | |
13813 | if (temp11) | |
13814 | delete arg11; | |
13815 | } | |
13816 | return NULL; | |
13817 | } | |
13818 | ||
13819 | ||
c370783e | 13820 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13821 | PyObject *resultobj; |
13822 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13823 | int arg2 ; | |
13824 | PyObject * obj0 = 0 ; | |
13825 | PyObject * obj1 = 0 ; | |
13826 | char *kwnames[] = { | |
13827 | (char *) "self",(char *) "n", NULL | |
13828 | }; | |
13829 | ||
13830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13833 | { | |
13834 | arg2 = (int)(SWIG_As_int(obj1)); | |
13835 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13836 | } | |
d55e5bfc RD |
13837 | { |
13838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13839 | (arg1)->SetSelection(arg2); | |
13840 | ||
13841 | wxPyEndAllowThreads(__tstate); | |
13842 | if (PyErr_Occurred()) SWIG_fail; | |
13843 | } | |
13844 | Py_INCREF(Py_None); resultobj = Py_None; | |
13845 | return resultobj; | |
13846 | fail: | |
13847 | return NULL; | |
13848 | } | |
13849 | ||
13850 | ||
c370783e | 13851 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13852 | PyObject *resultobj; |
13853 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13854 | int result; | |
13855 | PyObject * obj0 = 0 ; | |
13856 | char *kwnames[] = { | |
13857 | (char *) "self", NULL | |
13858 | }; | |
13859 | ||
13860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13863 | { |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
13866 | ||
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
36ed4f51 RD |
13870 | { |
13871 | resultobj = SWIG_From_int((int)(result)); | |
13872 | } | |
d55e5bfc RD |
13873 | return resultobj; |
13874 | fail: | |
13875 | return NULL; | |
13876 | } | |
13877 | ||
13878 | ||
c370783e | 13879 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13880 | PyObject *resultobj; |
13881 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13882 | wxString result; | |
13883 | PyObject * obj0 = 0 ; | |
13884 | char *kwnames[] = { | |
13885 | (char *) "self", NULL | |
13886 | }; | |
13887 | ||
13888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13891 | { |
13892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13893 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
13894 | ||
13895 | wxPyEndAllowThreads(__tstate); | |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
13898 | { | |
13899 | #if wxUSE_UNICODE | |
13900 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13901 | #else | |
13902 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13903 | #endif | |
13904 | } | |
13905 | return resultobj; | |
13906 | fail: | |
13907 | return NULL; | |
13908 | } | |
13909 | ||
13910 | ||
c370783e | 13911 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13912 | PyObject *resultobj; |
13913 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13914 | wxString *arg2 = 0 ; | |
13915 | bool result; | |
b411df4a | 13916 | bool temp2 = false ; |
d55e5bfc RD |
13917 | PyObject * obj0 = 0 ; |
13918 | PyObject * obj1 = 0 ; | |
13919 | char *kwnames[] = { | |
13920 | (char *) "self",(char *) "s", NULL | |
13921 | }; | |
13922 | ||
13923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13926 | { |
13927 | arg2 = wxString_in_helper(obj1); | |
13928 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13929 | temp2 = true; |
d55e5bfc RD |
13930 | } |
13931 | { | |
13932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13933 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
13934 | ||
13935 | wxPyEndAllowThreads(__tstate); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
13938 | { | |
13939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13940 | } | |
13941 | { | |
13942 | if (temp2) | |
13943 | delete arg2; | |
13944 | } | |
13945 | return resultobj; | |
13946 | fail: | |
13947 | { | |
13948 | if (temp2) | |
13949 | delete arg2; | |
13950 | } | |
13951 | return NULL; | |
13952 | } | |
13953 | ||
13954 | ||
c370783e | 13955 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13956 | PyObject *resultobj; |
13957 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13958 | int result; | |
13959 | PyObject * obj0 = 0 ; | |
13960 | char *kwnames[] = { | |
13961 | (char *) "self", NULL | |
13962 | }; | |
13963 | ||
13964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
13965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13967 | { |
13968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13969 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
13970 | ||
13971 | wxPyEndAllowThreads(__tstate); | |
13972 | if (PyErr_Occurred()) SWIG_fail; | |
13973 | } | |
36ed4f51 RD |
13974 | { |
13975 | resultobj = SWIG_From_int((int)(result)); | |
13976 | } | |
d55e5bfc RD |
13977 | return resultobj; |
13978 | fail: | |
13979 | return NULL; | |
13980 | } | |
13981 | ||
13982 | ||
c370783e | 13983 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13984 | PyObject *resultobj; |
13985 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13986 | wxString *arg2 = 0 ; | |
13987 | int result; | |
b411df4a | 13988 | bool temp2 = false ; |
d55e5bfc RD |
13989 | PyObject * obj0 = 0 ; |
13990 | PyObject * obj1 = 0 ; | |
13991 | char *kwnames[] = { | |
13992 | (char *) "self",(char *) "s", NULL | |
13993 | }; | |
13994 | ||
13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
13996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13998 | { |
13999 | arg2 = wxString_in_helper(obj1); | |
14000 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 14001 | temp2 = true; |
d55e5bfc RD |
14002 | } |
14003 | { | |
14004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14005 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
14006 | ||
14007 | wxPyEndAllowThreads(__tstate); | |
14008 | if (PyErr_Occurred()) SWIG_fail; | |
14009 | } | |
36ed4f51 RD |
14010 | { |
14011 | resultobj = SWIG_From_int((int)(result)); | |
14012 | } | |
d55e5bfc RD |
14013 | { |
14014 | if (temp2) | |
14015 | delete arg2; | |
14016 | } | |
14017 | return resultobj; | |
14018 | fail: | |
14019 | { | |
14020 | if (temp2) | |
14021 | delete arg2; | |
14022 | } | |
14023 | return NULL; | |
14024 | } | |
14025 | ||
14026 | ||
c370783e | 14027 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14028 | PyObject *resultobj; |
14029 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14030 | int arg2 ; | |
14031 | wxString result; | |
14032 | PyObject * obj0 = 0 ; | |
14033 | PyObject * obj1 = 0 ; | |
14034 | char *kwnames[] = { | |
14035 | (char *) "self",(char *) "n", NULL | |
14036 | }; | |
14037 | ||
14038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
14039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14041 | { | |
14042 | arg2 = (int)(SWIG_As_int(obj1)); | |
14043 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14044 | } | |
d55e5bfc RD |
14045 | { |
14046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14047 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
14048 | ||
14049 | wxPyEndAllowThreads(__tstate); | |
14050 | if (PyErr_Occurred()) SWIG_fail; | |
14051 | } | |
14052 | { | |
14053 | #if wxUSE_UNICODE | |
14054 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14055 | #else | |
14056 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14057 | #endif | |
14058 | } | |
14059 | return resultobj; | |
14060 | fail: | |
14061 | return NULL; | |
14062 | } | |
14063 | ||
14064 | ||
c370783e | 14065 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14066 | PyObject *resultobj; |
14067 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14068 | int arg2 ; | |
14069 | wxString *arg3 = 0 ; | |
b411df4a | 14070 | bool temp3 = false ; |
d55e5bfc RD |
14071 | PyObject * obj0 = 0 ; |
14072 | PyObject * obj1 = 0 ; | |
14073 | PyObject * obj2 = 0 ; | |
14074 | char *kwnames[] = { | |
14075 | (char *) "self",(char *) "n",(char *) "label", NULL | |
14076 | }; | |
14077 | ||
14078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
14079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14081 | { | |
14082 | arg2 = (int)(SWIG_As_int(obj1)); | |
14083 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14084 | } | |
d55e5bfc RD |
14085 | { |
14086 | arg3 = wxString_in_helper(obj2); | |
14087 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 14088 | temp3 = true; |
d55e5bfc RD |
14089 | } |
14090 | { | |
14091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14092 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
14093 | ||
14094 | wxPyEndAllowThreads(__tstate); | |
14095 | if (PyErr_Occurred()) SWIG_fail; | |
14096 | } | |
14097 | Py_INCREF(Py_None); resultobj = Py_None; | |
14098 | { | |
14099 | if (temp3) | |
14100 | delete arg3; | |
14101 | } | |
14102 | return resultobj; | |
14103 | fail: | |
14104 | { | |
14105 | if (temp3) | |
14106 | delete arg3; | |
14107 | } | |
14108 | return NULL; | |
14109 | } | |
14110 | ||
14111 | ||
c370783e | 14112 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14113 | PyObject *resultobj; |
14114 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14115 | int arg2 ; | |
b411df4a | 14116 | bool arg3 = (bool) true ; |
d55e5bfc RD |
14117 | PyObject * obj0 = 0 ; |
14118 | PyObject * obj1 = 0 ; | |
14119 | PyObject * obj2 = 0 ; | |
14120 | char *kwnames[] = { | |
14121 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
14122 | }; | |
14123 | ||
14124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
14125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14127 | { | |
14128 | arg2 = (int)(SWIG_As_int(obj1)); | |
14129 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14130 | } | |
d55e5bfc | 14131 | if (obj2) { |
36ed4f51 RD |
14132 | { |
14133 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14134 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14135 | } | |
d55e5bfc RD |
14136 | } |
14137 | { | |
14138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14139 | (arg1)->Enable(arg2,arg3); | |
14140 | ||
14141 | wxPyEndAllowThreads(__tstate); | |
14142 | if (PyErr_Occurred()) SWIG_fail; | |
14143 | } | |
14144 | Py_INCREF(Py_None); resultobj = Py_None; | |
14145 | return resultobj; | |
14146 | fail: | |
14147 | return NULL; | |
14148 | } | |
14149 | ||
14150 | ||
c370783e | 14151 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14152 | PyObject *resultobj; |
14153 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14154 | int arg2 ; | |
b411df4a | 14155 | bool arg3 = (bool) true ; |
d55e5bfc RD |
14156 | PyObject * obj0 = 0 ; |
14157 | PyObject * obj1 = 0 ; | |
14158 | PyObject * obj2 = 0 ; | |
14159 | char *kwnames[] = { | |
14160 | (char *) "self",(char *) "n",(char *) "show", NULL | |
14161 | }; | |
14162 | ||
14163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
14164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14166 | { | |
14167 | arg2 = (int)(SWIG_As_int(obj1)); | |
14168 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14169 | } | |
d55e5bfc | 14170 | if (obj2) { |
36ed4f51 RD |
14171 | { |
14172 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14173 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14174 | } | |
d55e5bfc RD |
14175 | } |
14176 | { | |
14177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14178 | (arg1)->Show(arg2,arg3); | |
14179 | ||
14180 | wxPyEndAllowThreads(__tstate); | |
14181 | if (PyErr_Occurred()) SWIG_fail; | |
14182 | } | |
14183 | Py_INCREF(Py_None); resultobj = Py_None; | |
14184 | return resultobj; | |
14185 | fail: | |
14186 | return NULL; | |
14187 | } | |
14188 | ||
14189 | ||
c370783e | 14190 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14191 | PyObject *resultobj; |
14192 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14193 | int result; | |
14194 | PyObject * obj0 = 0 ; | |
14195 | char *kwnames[] = { | |
14196 | (char *) "self", NULL | |
14197 | }; | |
14198 | ||
14199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14202 | { |
14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14204 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
14205 | ||
14206 | wxPyEndAllowThreads(__tstate); | |
14207 | if (PyErr_Occurred()) SWIG_fail; | |
14208 | } | |
36ed4f51 RD |
14209 | { |
14210 | resultobj = SWIG_From_int((int)(result)); | |
14211 | } | |
d55e5bfc RD |
14212 | return resultobj; |
14213 | fail: | |
14214 | return NULL; | |
14215 | } | |
14216 | ||
14217 | ||
c370783e | 14218 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14219 | PyObject *resultobj; |
14220 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14221 | int result; | |
14222 | PyObject * obj0 = 0 ; | |
14223 | char *kwnames[] = { | |
14224 | (char *) "self", NULL | |
14225 | }; | |
14226 | ||
14227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14228 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14229 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14230 | { |
14231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14232 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
14233 | ||
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
36ed4f51 RD |
14237 | { |
14238 | resultobj = SWIG_From_int((int)(result)); | |
14239 | } | |
d55e5bfc RD |
14240 | return resultobj; |
14241 | fail: | |
14242 | return NULL; | |
14243 | } | |
14244 | ||
14245 | ||
c370783e | 14246 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14247 | PyObject *resultobj; |
14248 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14249 | int arg2 ; | |
36ed4f51 | 14250 | wxDirection arg3 ; |
d55e5bfc RD |
14251 | long arg4 ; |
14252 | int result; | |
14253 | PyObject * obj0 = 0 ; | |
14254 | PyObject * obj1 = 0 ; | |
14255 | PyObject * obj2 = 0 ; | |
14256 | PyObject * obj3 = 0 ; | |
14257 | char *kwnames[] = { | |
14258 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
14259 | }; | |
14260 | ||
14261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
14262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14264 | { | |
14265 | arg2 = (int)(SWIG_As_int(obj1)); | |
14266 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14267 | } | |
14268 | { | |
14269 | arg3 = (wxDirection)(SWIG_As_int(obj2)); | |
14270 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14271 | } | |
14272 | { | |
14273 | arg4 = (long)(SWIG_As_long(obj3)); | |
14274 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14275 | } | |
d55e5bfc RD |
14276 | { |
14277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14278 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
14279 | ||
14280 | wxPyEndAllowThreads(__tstate); | |
14281 | if (PyErr_Occurred()) SWIG_fail; | |
14282 | } | |
36ed4f51 RD |
14283 | { |
14284 | resultobj = SWIG_From_int((int)(result)); | |
14285 | } | |
d55e5bfc RD |
14286 | return resultobj; |
14287 | fail: | |
14288 | return NULL; | |
14289 | } | |
14290 | ||
14291 | ||
c370783e | 14292 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 14293 | PyObject *resultobj; |
36ed4f51 | 14294 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
14295 | wxVisualAttributes result; |
14296 | PyObject * obj0 = 0 ; | |
14297 | char *kwnames[] = { | |
14298 | (char *) "variant", NULL | |
14299 | }; | |
14300 | ||
14301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14302 | if (obj0) { | |
36ed4f51 RD |
14303 | { |
14304 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14306 | } | |
f20a2e1f RD |
14307 | } |
14308 | { | |
0439c23b | 14309 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14311 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14312 | ||
14313 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14314 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14315 | } |
14316 | { | |
14317 | wxVisualAttributes * resultptr; | |
36ed4f51 | 14318 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
14319 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14320 | } | |
14321 | return resultobj; | |
14322 | fail: | |
14323 | return NULL; | |
14324 | } | |
14325 | ||
14326 | ||
c370783e | 14327 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14328 | PyObject *obj; |
14329 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14330 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
14331 | Py_INCREF(obj); | |
14332 | return Py_BuildValue((char *)""); | |
14333 | } | |
c370783e | 14334 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14335 | PyObject *resultobj; |
14336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
14337 | int arg2 = (int) -1 ; |
14338 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14339 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
14340 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14341 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14342 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14343 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14344 | long arg6 = (long) 0 ; | |
14345 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14346 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14347 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
14348 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14349 | wxRadioButton *result; | |
b411df4a | 14350 | bool temp3 = false ; |
d55e5bfc RD |
14351 | wxPoint temp4 ; |
14352 | wxSize temp5 ; | |
b411df4a | 14353 | bool temp8 = false ; |
d55e5bfc RD |
14354 | PyObject * obj0 = 0 ; |
14355 | PyObject * obj1 = 0 ; | |
14356 | PyObject * obj2 = 0 ; | |
14357 | PyObject * obj3 = 0 ; | |
14358 | PyObject * obj4 = 0 ; | |
14359 | PyObject * obj5 = 0 ; | |
14360 | PyObject * obj6 = 0 ; | |
14361 | PyObject * obj7 = 0 ; | |
14362 | char *kwnames[] = { | |
14363 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14364 | }; | |
14365 | ||
bfddbb17 | 14366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
14367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 14369 | if (obj1) { |
36ed4f51 RD |
14370 | { |
14371 | arg2 = (int)(SWIG_As_int(obj1)); | |
14372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14373 | } | |
bfddbb17 RD |
14374 | } |
14375 | if (obj2) { | |
14376 | { | |
14377 | arg3 = wxString_in_helper(obj2); | |
14378 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 14379 | temp3 = true; |
bfddbb17 | 14380 | } |
d55e5bfc RD |
14381 | } |
14382 | if (obj3) { | |
14383 | { | |
14384 | arg4 = &temp4; | |
14385 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14386 | } | |
14387 | } | |
14388 | if (obj4) { | |
14389 | { | |
14390 | arg5 = &temp5; | |
14391 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14392 | } | |
14393 | } | |
14394 | if (obj5) { | |
36ed4f51 RD |
14395 | { |
14396 | arg6 = (long)(SWIG_As_long(obj5)); | |
14397 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14398 | } | |
d55e5bfc RD |
14399 | } |
14400 | if (obj6) { | |
36ed4f51 RD |
14401 | { |
14402 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14403 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14404 | if (arg7 == NULL) { | |
14405 | SWIG_null_ref("wxValidator"); | |
14406 | } | |
14407 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
14408 | } |
14409 | } | |
14410 | if (obj7) { | |
14411 | { | |
14412 | arg8 = wxString_in_helper(obj7); | |
14413 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 14414 | temp8 = true; |
d55e5bfc RD |
14415 | } |
14416 | } | |
14417 | { | |
0439c23b | 14418 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14420 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14421 | ||
14422 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14423 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14424 | } |
14425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
14426 | { | |
14427 | if (temp3) | |
14428 | delete arg3; | |
14429 | } | |
14430 | { | |
14431 | if (temp8) | |
14432 | delete arg8; | |
14433 | } | |
14434 | return resultobj; | |
14435 | fail: | |
14436 | { | |
14437 | if (temp3) | |
14438 | delete arg3; | |
14439 | } | |
14440 | { | |
14441 | if (temp8) | |
14442 | delete arg8; | |
14443 | } | |
14444 | return NULL; | |
14445 | } | |
14446 | ||
14447 | ||
c370783e | 14448 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14449 | PyObject *resultobj; |
14450 | wxRadioButton *result; | |
14451 | char *kwnames[] = { | |
14452 | NULL | |
14453 | }; | |
14454 | ||
14455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
14456 | { | |
0439c23b | 14457 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14459 | result = (wxRadioButton *)new wxRadioButton(); | |
14460 | ||
14461 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14462 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14463 | } |
14464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
14465 | return resultobj; | |
14466 | fail: | |
14467 | return NULL; | |
14468 | } | |
14469 | ||
14470 | ||
c370783e | 14471 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14472 | PyObject *resultobj; |
14473 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14474 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
14475 | int arg3 = (int) -1 ; |
14476 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14477 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
14478 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14479 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14480 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14481 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14482 | long arg7 = (long) 0 ; | |
14483 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14484 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14485 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
14486 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14487 | bool result; | |
b411df4a | 14488 | bool temp4 = false ; |
d55e5bfc RD |
14489 | wxPoint temp5 ; |
14490 | wxSize temp6 ; | |
b411df4a | 14491 | bool temp9 = false ; |
d55e5bfc RD |
14492 | PyObject * obj0 = 0 ; |
14493 | PyObject * obj1 = 0 ; | |
14494 | PyObject * obj2 = 0 ; | |
14495 | PyObject * obj3 = 0 ; | |
14496 | PyObject * obj4 = 0 ; | |
14497 | PyObject * obj5 = 0 ; | |
14498 | PyObject * obj6 = 0 ; | |
14499 | PyObject * obj7 = 0 ; | |
14500 | PyObject * obj8 = 0 ; | |
14501 | char *kwnames[] = { | |
14502 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14503 | }; | |
14504 | ||
bfddbb17 | 14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
14506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14508 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14509 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 14510 | if (obj2) { |
36ed4f51 RD |
14511 | { |
14512 | arg3 = (int)(SWIG_As_int(obj2)); | |
14513 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14514 | } | |
bfddbb17 RD |
14515 | } |
14516 | if (obj3) { | |
14517 | { | |
14518 | arg4 = wxString_in_helper(obj3); | |
14519 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 14520 | temp4 = true; |
bfddbb17 | 14521 | } |
d55e5bfc RD |
14522 | } |
14523 | if (obj4) { | |
14524 | { | |
14525 | arg5 = &temp5; | |
14526 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14527 | } | |
14528 | } | |
14529 | if (obj5) { | |
14530 | { | |
14531 | arg6 = &temp6; | |
14532 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14533 | } | |
14534 | } | |
14535 | if (obj6) { | |
36ed4f51 RD |
14536 | { |
14537 | arg7 = (long)(SWIG_As_long(obj6)); | |
14538 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14539 | } | |
d55e5bfc RD |
14540 | } |
14541 | if (obj7) { | |
36ed4f51 RD |
14542 | { |
14543 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14544 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14545 | if (arg8 == NULL) { | |
14546 | SWIG_null_ref("wxValidator"); | |
14547 | } | |
14548 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
14549 | } |
14550 | } | |
14551 | if (obj8) { | |
14552 | { | |
14553 | arg9 = wxString_in_helper(obj8); | |
14554 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 14555 | temp9 = true; |
d55e5bfc RD |
14556 | } |
14557 | } | |
14558 | { | |
14559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14560 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14561 | ||
14562 | wxPyEndAllowThreads(__tstate); | |
14563 | if (PyErr_Occurred()) SWIG_fail; | |
14564 | } | |
14565 | { | |
14566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14567 | } | |
14568 | { | |
14569 | if (temp4) | |
14570 | delete arg4; | |
14571 | } | |
14572 | { | |
14573 | if (temp9) | |
14574 | delete arg9; | |
14575 | } | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | { | |
14579 | if (temp4) | |
14580 | delete arg4; | |
14581 | } | |
14582 | { | |
14583 | if (temp9) | |
14584 | delete arg9; | |
14585 | } | |
14586 | return NULL; | |
14587 | } | |
14588 | ||
14589 | ||
c370783e | 14590 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14591 | PyObject *resultobj; |
14592 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14593 | bool result; | |
14594 | PyObject * obj0 = 0 ; | |
14595 | char *kwnames[] = { | |
14596 | (char *) "self", NULL | |
14597 | }; | |
14598 | ||
14599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14602 | { |
14603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14604 | result = (bool)(arg1)->GetValue(); | |
14605 | ||
14606 | wxPyEndAllowThreads(__tstate); | |
14607 | if (PyErr_Occurred()) SWIG_fail; | |
14608 | } | |
14609 | { | |
14610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14611 | } | |
14612 | return resultobj; | |
14613 | fail: | |
14614 | return NULL; | |
14615 | } | |
14616 | ||
14617 | ||
c370783e | 14618 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14619 | PyObject *resultobj; |
14620 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14621 | bool arg2 ; | |
14622 | PyObject * obj0 = 0 ; | |
14623 | PyObject * obj1 = 0 ; | |
14624 | char *kwnames[] = { | |
14625 | (char *) "self",(char *) "value", NULL | |
14626 | }; | |
14627 | ||
14628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
14629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14631 | { | |
14632 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14633 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14634 | } | |
d55e5bfc RD |
14635 | { |
14636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14637 | (arg1)->SetValue(arg2); | |
14638 | ||
14639 | wxPyEndAllowThreads(__tstate); | |
14640 | if (PyErr_Occurred()) SWIG_fail; | |
14641 | } | |
14642 | Py_INCREF(Py_None); resultobj = Py_None; | |
14643 | return resultobj; | |
14644 | fail: | |
14645 | return NULL; | |
14646 | } | |
14647 | ||
14648 | ||
c370783e | 14649 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 14650 | PyObject *resultobj; |
36ed4f51 | 14651 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
14652 | wxVisualAttributes result; |
14653 | PyObject * obj0 = 0 ; | |
14654 | char *kwnames[] = { | |
14655 | (char *) "variant", NULL | |
14656 | }; | |
14657 | ||
14658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14659 | if (obj0) { | |
36ed4f51 RD |
14660 | { |
14661 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14663 | } | |
f20a2e1f RD |
14664 | } |
14665 | { | |
0439c23b | 14666 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14668 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14669 | ||
14670 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14671 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14672 | } |
14673 | { | |
14674 | wxVisualAttributes * resultptr; | |
36ed4f51 | 14675 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
14676 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14677 | } | |
14678 | return resultobj; | |
14679 | fail: | |
14680 | return NULL; | |
14681 | } | |
14682 | ||
14683 | ||
c370783e | 14684 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14685 | PyObject *obj; |
14686 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14687 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
14688 | Py_INCREF(obj); | |
14689 | return Py_BuildValue((char *)""); | |
14690 | } | |
c370783e | 14691 | static int _wrap_SliderNameStr_set(PyObject *) { |
d55e5bfc RD |
14692 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
14693 | return 1; | |
14694 | } | |
14695 | ||
14696 | ||
36ed4f51 | 14697 | static PyObject *_wrap_SliderNameStr_get(void) { |
d55e5bfc RD |
14698 | PyObject *pyobj; |
14699 | ||
14700 | { | |
14701 | #if wxUSE_UNICODE | |
14702 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14703 | #else | |
14704 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14705 | #endif | |
14706 | } | |
14707 | return pyobj; | |
14708 | } | |
14709 | ||
14710 | ||
c370783e | 14711 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14712 | PyObject *resultobj; |
14713 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
14714 | int arg2 = (int) -1 ; |
14715 | int arg3 = (int) 0 ; | |
14716 | int arg4 = (int) 0 ; | |
14717 | int arg5 = (int) 100 ; | |
d55e5bfc RD |
14718 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
14719 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
14720 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
14721 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
14722 | long arg8 = (long) wxSL_HORIZONTAL ; | |
14723 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
14724 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
14725 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
14726 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
14727 | wxSlider *result; | |
14728 | wxPoint temp6 ; | |
14729 | wxSize temp7 ; | |
b411df4a | 14730 | bool temp10 = false ; |
d55e5bfc RD |
14731 | PyObject * obj0 = 0 ; |
14732 | PyObject * obj1 = 0 ; | |
14733 | PyObject * obj2 = 0 ; | |
14734 | PyObject * obj3 = 0 ; | |
14735 | PyObject * obj4 = 0 ; | |
14736 | PyObject * obj5 = 0 ; | |
14737 | PyObject * obj6 = 0 ; | |
14738 | PyObject * obj7 = 0 ; | |
14739 | PyObject * obj8 = 0 ; | |
14740 | PyObject * obj9 = 0 ; | |
14741 | char *kwnames[] = { | |
14742 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14743 | }; | |
14744 | ||
bfddbb17 | 14745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
36ed4f51 RD |
14746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 14748 | if (obj1) { |
36ed4f51 RD |
14749 | { |
14750 | arg2 = (int)(SWIG_As_int(obj1)); | |
14751 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14752 | } | |
bfddbb17 RD |
14753 | } |
14754 | if (obj2) { | |
36ed4f51 RD |
14755 | { |
14756 | arg3 = (int)(SWIG_As_int(obj2)); | |
14757 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14758 | } | |
bfddbb17 RD |
14759 | } |
14760 | if (obj3) { | |
36ed4f51 RD |
14761 | { |
14762 | arg4 = (int)(SWIG_As_int(obj3)); | |
14763 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14764 | } | |
bfddbb17 RD |
14765 | } |
14766 | if (obj4) { | |
36ed4f51 RD |
14767 | { |
14768 | arg5 = (int)(SWIG_As_int(obj4)); | |
14769 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14770 | } | |
bfddbb17 | 14771 | } |
d55e5bfc RD |
14772 | if (obj5) { |
14773 | { | |
14774 | arg6 = &temp6; | |
14775 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
14776 | } | |
14777 | } | |
14778 | if (obj6) { | |
14779 | { | |
14780 | arg7 = &temp7; | |
14781 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
14782 | } | |
14783 | } | |
14784 | if (obj7) { | |
36ed4f51 RD |
14785 | { |
14786 | arg8 = (long)(SWIG_As_long(obj7)); | |
14787 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14788 | } | |
d55e5bfc RD |
14789 | } |
14790 | if (obj8) { | |
36ed4f51 RD |
14791 | { |
14792 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14793 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14794 | if (arg9 == NULL) { | |
14795 | SWIG_null_ref("wxValidator"); | |
14796 | } | |
14797 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d55e5bfc RD |
14798 | } |
14799 | } | |
14800 | if (obj9) { | |
14801 | { | |
14802 | arg10 = wxString_in_helper(obj9); | |
14803 | if (arg10 == NULL) SWIG_fail; | |
b411df4a | 14804 | temp10 = true; |
d55e5bfc RD |
14805 | } |
14806 | } | |
14807 | { | |
0439c23b | 14808 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14810 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
14811 | ||
14812 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14813 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14814 | } |
14815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
14816 | { | |
14817 | if (temp10) | |
14818 | delete arg10; | |
14819 | } | |
14820 | return resultobj; | |
14821 | fail: | |
14822 | { | |
14823 | if (temp10) | |
14824 | delete arg10; | |
14825 | } | |
14826 | return NULL; | |
14827 | } | |
14828 | ||
14829 | ||
c370783e | 14830 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14831 | PyObject *resultobj; |
14832 | wxSlider *result; | |
14833 | char *kwnames[] = { | |
14834 | NULL | |
14835 | }; | |
14836 | ||
14837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
14838 | { | |
0439c23b | 14839 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14841 | result = (wxSlider *)new wxSlider(); | |
14842 | ||
14843 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14844 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14845 | } |
14846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
14847 | return resultobj; | |
14848 | fail: | |
14849 | return NULL; | |
14850 | } | |
14851 | ||
14852 | ||
c370783e | 14853 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14854 | PyObject *resultobj; |
14855 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14856 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
14857 | int arg3 = (int) -1 ; |
14858 | int arg4 = (int) 0 ; | |
14859 | int arg5 = (int) 0 ; | |
14860 | int arg6 = (int) 100 ; | |
d55e5bfc RD |
14861 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
14862 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
14863 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
14864 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
14865 | long arg9 = (long) wxSL_HORIZONTAL ; | |
14866 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
14867 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
14868 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
14869 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
14870 | bool result; | |
14871 | wxPoint temp7 ; | |
14872 | wxSize temp8 ; | |
b411df4a | 14873 | bool temp11 = false ; |
d55e5bfc RD |
14874 | PyObject * obj0 = 0 ; |
14875 | PyObject * obj1 = 0 ; | |
14876 | PyObject * obj2 = 0 ; | |
14877 | PyObject * obj3 = 0 ; | |
14878 | PyObject * obj4 = 0 ; | |
14879 | PyObject * obj5 = 0 ; | |
14880 | PyObject * obj6 = 0 ; | |
14881 | PyObject * obj7 = 0 ; | |
14882 | PyObject * obj8 = 0 ; | |
14883 | PyObject * obj9 = 0 ; | |
14884 | PyObject * obj10 = 0 ; | |
14885 | char *kwnames[] = { | |
14886 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14887 | }; | |
14888 | ||
bfddbb17 | 14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
36ed4f51 RD |
14890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
14891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14892 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14893 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 14894 | if (obj2) { |
36ed4f51 RD |
14895 | { |
14896 | arg3 = (int)(SWIG_As_int(obj2)); | |
14897 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14898 | } | |
bfddbb17 RD |
14899 | } |
14900 | if (obj3) { | |
36ed4f51 RD |
14901 | { |
14902 | arg4 = (int)(SWIG_As_int(obj3)); | |
14903 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14904 | } | |
bfddbb17 RD |
14905 | } |
14906 | if (obj4) { | |
36ed4f51 RD |
14907 | { |
14908 | arg5 = (int)(SWIG_As_int(obj4)); | |
14909 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14910 | } | |
bfddbb17 RD |
14911 | } |
14912 | if (obj5) { | |
36ed4f51 RD |
14913 | { |
14914 | arg6 = (int)(SWIG_As_int(obj5)); | |
14915 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14916 | } | |
bfddbb17 | 14917 | } |
d55e5bfc RD |
14918 | if (obj6) { |
14919 | { | |
14920 | arg7 = &temp7; | |
14921 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
14922 | } | |
14923 | } | |
14924 | if (obj7) { | |
14925 | { | |
14926 | arg8 = &temp8; | |
14927 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
14928 | } | |
14929 | } | |
14930 | if (obj8) { | |
36ed4f51 RD |
14931 | { |
14932 | arg9 = (long)(SWIG_As_long(obj8)); | |
14933 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14934 | } | |
d55e5bfc RD |
14935 | } |
14936 | if (obj9) { | |
36ed4f51 RD |
14937 | { |
14938 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14939 | if (SWIG_arg_fail(10)) SWIG_fail; | |
14940 | if (arg10 == NULL) { | |
14941 | SWIG_null_ref("wxValidator"); | |
14942 | } | |
14943 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d55e5bfc RD |
14944 | } |
14945 | } | |
14946 | if (obj10) { | |
14947 | { | |
14948 | arg11 = wxString_in_helper(obj10); | |
14949 | if (arg11 == NULL) SWIG_fail; | |
b411df4a | 14950 | temp11 = true; |
d55e5bfc RD |
14951 | } |
14952 | } | |
14953 | { | |
14954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14955 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
14956 | ||
14957 | wxPyEndAllowThreads(__tstate); | |
14958 | if (PyErr_Occurred()) SWIG_fail; | |
14959 | } | |
14960 | { | |
14961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14962 | } | |
14963 | { | |
14964 | if (temp11) | |
14965 | delete arg11; | |
14966 | } | |
14967 | return resultobj; | |
14968 | fail: | |
14969 | { | |
14970 | if (temp11) | |
14971 | delete arg11; | |
14972 | } | |
14973 | return NULL; | |
14974 | } | |
14975 | ||
14976 | ||
c370783e | 14977 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14978 | PyObject *resultobj; |
14979 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14980 | int result; | |
14981 | PyObject * obj0 = 0 ; | |
14982 | char *kwnames[] = { | |
14983 | (char *) "self", NULL | |
14984 | }; | |
14985 | ||
14986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
14987 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
14988 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14989 | { |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14991 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
14992 | ||
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
36ed4f51 RD |
14996 | { |
14997 | resultobj = SWIG_From_int((int)(result)); | |
14998 | } | |
d55e5bfc RD |
14999 | return resultobj; |
15000 | fail: | |
15001 | return NULL; | |
15002 | } | |
15003 | ||
15004 | ||
c370783e | 15005 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15006 | PyObject *resultobj; |
15007 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15008 | int arg2 ; | |
15009 | PyObject * obj0 = 0 ; | |
15010 | PyObject * obj1 = 0 ; | |
15011 | char *kwnames[] = { | |
15012 | (char *) "self",(char *) "value", NULL | |
15013 | }; | |
15014 | ||
15015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15018 | { | |
15019 | arg2 = (int)(SWIG_As_int(obj1)); | |
15020 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15021 | } | |
d55e5bfc RD |
15022 | { |
15023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15024 | (arg1)->SetValue(arg2); | |
15025 | ||
15026 | wxPyEndAllowThreads(__tstate); | |
15027 | if (PyErr_Occurred()) SWIG_fail; | |
15028 | } | |
15029 | Py_INCREF(Py_None); resultobj = Py_None; | |
15030 | return resultobj; | |
15031 | fail: | |
15032 | return NULL; | |
15033 | } | |
15034 | ||
15035 | ||
c370783e | 15036 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15037 | PyObject *resultobj; |
15038 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15039 | int arg2 ; | |
15040 | int arg3 ; | |
15041 | PyObject * obj0 = 0 ; | |
15042 | PyObject * obj1 = 0 ; | |
15043 | PyObject * obj2 = 0 ; | |
15044 | char *kwnames[] = { | |
15045 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
15046 | }; | |
15047 | ||
15048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
15049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15051 | { | |
15052 | arg2 = (int)(SWIG_As_int(obj1)); | |
15053 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15054 | } | |
15055 | { | |
15056 | arg3 = (int)(SWIG_As_int(obj2)); | |
15057 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15058 | } | |
d55e5bfc RD |
15059 | { |
15060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15061 | (arg1)->SetRange(arg2,arg3); | |
15062 | ||
15063 | wxPyEndAllowThreads(__tstate); | |
15064 | if (PyErr_Occurred()) SWIG_fail; | |
15065 | } | |
15066 | Py_INCREF(Py_None); resultobj = Py_None; | |
15067 | return resultobj; | |
15068 | fail: | |
15069 | return NULL; | |
15070 | } | |
15071 | ||
15072 | ||
c370783e | 15073 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15074 | PyObject *resultobj; |
15075 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15076 | int result; | |
15077 | PyObject * obj0 = 0 ; | |
15078 | char *kwnames[] = { | |
15079 | (char *) "self", NULL | |
15080 | }; | |
15081 | ||
15082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15085 | { |
15086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15087 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
15088 | ||
15089 | wxPyEndAllowThreads(__tstate); | |
15090 | if (PyErr_Occurred()) SWIG_fail; | |
15091 | } | |
36ed4f51 RD |
15092 | { |
15093 | resultobj = SWIG_From_int((int)(result)); | |
15094 | } | |
d55e5bfc RD |
15095 | return resultobj; |
15096 | fail: | |
15097 | return NULL; | |
15098 | } | |
15099 | ||
15100 | ||
c370783e | 15101 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15102 | PyObject *resultobj; |
15103 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15104 | int result; | |
15105 | PyObject * obj0 = 0 ; | |
15106 | char *kwnames[] = { | |
15107 | (char *) "self", NULL | |
15108 | }; | |
15109 | ||
15110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15113 | { |
15114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15115 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
15116 | ||
15117 | wxPyEndAllowThreads(__tstate); | |
15118 | if (PyErr_Occurred()) SWIG_fail; | |
15119 | } | |
36ed4f51 RD |
15120 | { |
15121 | resultobj = SWIG_From_int((int)(result)); | |
15122 | } | |
d55e5bfc RD |
15123 | return resultobj; |
15124 | fail: | |
15125 | return NULL; | |
15126 | } | |
15127 | ||
15128 | ||
c370783e | 15129 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15130 | PyObject *resultobj; |
15131 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15132 | int arg2 ; | |
15133 | PyObject * obj0 = 0 ; | |
15134 | PyObject * obj1 = 0 ; | |
15135 | char *kwnames[] = { | |
15136 | (char *) "self",(char *) "minValue", NULL | |
15137 | }; | |
15138 | ||
15139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15142 | { | |
15143 | arg2 = (int)(SWIG_As_int(obj1)); | |
15144 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15145 | } | |
d55e5bfc RD |
15146 | { |
15147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15148 | (arg1)->SetMin(arg2); | |
15149 | ||
15150 | wxPyEndAllowThreads(__tstate); | |
15151 | if (PyErr_Occurred()) SWIG_fail; | |
15152 | } | |
15153 | Py_INCREF(Py_None); resultobj = Py_None; | |
15154 | return resultobj; | |
15155 | fail: | |
15156 | return NULL; | |
15157 | } | |
15158 | ||
15159 | ||
c370783e | 15160 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15161 | PyObject *resultobj; |
15162 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15163 | int arg2 ; | |
15164 | PyObject * obj0 = 0 ; | |
15165 | PyObject * obj1 = 0 ; | |
15166 | char *kwnames[] = { | |
15167 | (char *) "self",(char *) "maxValue", NULL | |
15168 | }; | |
15169 | ||
15170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15173 | { | |
15174 | arg2 = (int)(SWIG_As_int(obj1)); | |
15175 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15176 | } | |
d55e5bfc RD |
15177 | { |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15179 | (arg1)->SetMax(arg2); | |
15180 | ||
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
15184 | Py_INCREF(Py_None); resultobj = Py_None; | |
15185 | return resultobj; | |
15186 | fail: | |
15187 | return NULL; | |
15188 | } | |
15189 | ||
15190 | ||
c370783e | 15191 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15192 | PyObject *resultobj; |
15193 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15194 | int arg2 ; | |
15195 | PyObject * obj0 = 0 ; | |
15196 | PyObject * obj1 = 0 ; | |
15197 | char *kwnames[] = { | |
15198 | (char *) "self",(char *) "lineSize", NULL | |
15199 | }; | |
15200 | ||
15201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15202 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15203 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15204 | { | |
15205 | arg2 = (int)(SWIG_As_int(obj1)); | |
15206 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15207 | } | |
d55e5bfc RD |
15208 | { |
15209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15210 | (arg1)->SetLineSize(arg2); | |
15211 | ||
15212 | wxPyEndAllowThreads(__tstate); | |
15213 | if (PyErr_Occurred()) SWIG_fail; | |
15214 | } | |
15215 | Py_INCREF(Py_None); resultobj = Py_None; | |
15216 | return resultobj; | |
15217 | fail: | |
15218 | return NULL; | |
15219 | } | |
15220 | ||
15221 | ||
c370783e | 15222 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15223 | PyObject *resultobj; |
15224 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15225 | int arg2 ; | |
15226 | PyObject * obj0 = 0 ; | |
15227 | PyObject * obj1 = 0 ; | |
15228 | char *kwnames[] = { | |
15229 | (char *) "self",(char *) "pageSize", NULL | |
15230 | }; | |
15231 | ||
15232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15235 | { | |
15236 | arg2 = (int)(SWIG_As_int(obj1)); | |
15237 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15238 | } | |
d55e5bfc RD |
15239 | { |
15240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15241 | (arg1)->SetPageSize(arg2); | |
15242 | ||
15243 | wxPyEndAllowThreads(__tstate); | |
15244 | if (PyErr_Occurred()) SWIG_fail; | |
15245 | } | |
15246 | Py_INCREF(Py_None); resultobj = Py_None; | |
15247 | return resultobj; | |
15248 | fail: | |
15249 | return NULL; | |
15250 | } | |
15251 | ||
15252 | ||
c370783e | 15253 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15254 | PyObject *resultobj; |
15255 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15256 | int result; | |
15257 | PyObject * obj0 = 0 ; | |
15258 | char *kwnames[] = { | |
15259 | (char *) "self", NULL | |
15260 | }; | |
15261 | ||
15262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15265 | { |
15266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15267 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
15268 | ||
15269 | wxPyEndAllowThreads(__tstate); | |
15270 | if (PyErr_Occurred()) SWIG_fail; | |
15271 | } | |
36ed4f51 RD |
15272 | { |
15273 | resultobj = SWIG_From_int((int)(result)); | |
15274 | } | |
d55e5bfc RD |
15275 | return resultobj; |
15276 | fail: | |
15277 | return NULL; | |
15278 | } | |
15279 | ||
15280 | ||
c370783e | 15281 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15282 | PyObject *resultobj; |
15283 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15284 | int result; | |
15285 | PyObject * obj0 = 0 ; | |
15286 | char *kwnames[] = { | |
15287 | (char *) "self", NULL | |
15288 | }; | |
15289 | ||
15290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15293 | { |
15294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15295 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
15296 | ||
15297 | wxPyEndAllowThreads(__tstate); | |
15298 | if (PyErr_Occurred()) SWIG_fail; | |
15299 | } | |
36ed4f51 RD |
15300 | { |
15301 | resultobj = SWIG_From_int((int)(result)); | |
15302 | } | |
d55e5bfc RD |
15303 | return resultobj; |
15304 | fail: | |
15305 | return NULL; | |
15306 | } | |
15307 | ||
15308 | ||
c370783e | 15309 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15310 | PyObject *resultobj; |
15311 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15312 | int arg2 ; | |
15313 | PyObject * obj0 = 0 ; | |
15314 | PyObject * obj1 = 0 ; | |
15315 | char *kwnames[] = { | |
15316 | (char *) "self",(char *) "lenPixels", NULL | |
15317 | }; | |
15318 | ||
15319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15322 | { | |
15323 | arg2 = (int)(SWIG_As_int(obj1)); | |
15324 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15325 | } | |
d55e5bfc RD |
15326 | { |
15327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15328 | (arg1)->SetThumbLength(arg2); | |
15329 | ||
15330 | wxPyEndAllowThreads(__tstate); | |
15331 | if (PyErr_Occurred()) SWIG_fail; | |
15332 | } | |
15333 | Py_INCREF(Py_None); resultobj = Py_None; | |
15334 | return resultobj; | |
15335 | fail: | |
15336 | return NULL; | |
15337 | } | |
15338 | ||
15339 | ||
c370783e | 15340 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15341 | PyObject *resultobj; |
15342 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15343 | int result; | |
15344 | PyObject * obj0 = 0 ; | |
15345 | char *kwnames[] = { | |
15346 | (char *) "self", NULL | |
15347 | }; | |
15348 | ||
15349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15350 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15351 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15352 | { |
15353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15354 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
15355 | ||
15356 | wxPyEndAllowThreads(__tstate); | |
15357 | if (PyErr_Occurred()) SWIG_fail; | |
15358 | } | |
36ed4f51 RD |
15359 | { |
15360 | resultobj = SWIG_From_int((int)(result)); | |
15361 | } | |
d55e5bfc RD |
15362 | return resultobj; |
15363 | fail: | |
15364 | return NULL; | |
15365 | } | |
15366 | ||
15367 | ||
c370783e | 15368 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15369 | PyObject *resultobj; |
15370 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15371 | int arg2 ; | |
15372 | int arg3 = (int) 1 ; | |
15373 | PyObject * obj0 = 0 ; | |
15374 | PyObject * obj1 = 0 ; | |
15375 | PyObject * obj2 = 0 ; | |
15376 | char *kwnames[] = { | |
15377 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
15378 | }; | |
15379 | ||
15380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
15381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15383 | { | |
15384 | arg2 = (int)(SWIG_As_int(obj1)); | |
15385 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15386 | } | |
d55e5bfc | 15387 | if (obj2) { |
36ed4f51 RD |
15388 | { |
15389 | arg3 = (int)(SWIG_As_int(obj2)); | |
15390 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15391 | } | |
d55e5bfc RD |
15392 | } |
15393 | { | |
15394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15395 | (arg1)->SetTickFreq(arg2,arg3); | |
15396 | ||
15397 | wxPyEndAllowThreads(__tstate); | |
15398 | if (PyErr_Occurred()) SWIG_fail; | |
15399 | } | |
15400 | Py_INCREF(Py_None); resultobj = Py_None; | |
15401 | return resultobj; | |
15402 | fail: | |
15403 | return NULL; | |
15404 | } | |
15405 | ||
15406 | ||
c370783e | 15407 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15408 | PyObject *resultobj; |
15409 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15410 | int result; | |
15411 | PyObject * obj0 = 0 ; | |
15412 | char *kwnames[] = { | |
15413 | (char *) "self", NULL | |
15414 | }; | |
15415 | ||
15416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15419 | { |
15420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15421 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
15422 | ||
15423 | wxPyEndAllowThreads(__tstate); | |
15424 | if (PyErr_Occurred()) SWIG_fail; | |
15425 | } | |
36ed4f51 RD |
15426 | { |
15427 | resultobj = SWIG_From_int((int)(result)); | |
15428 | } | |
d55e5bfc RD |
15429 | return resultobj; |
15430 | fail: | |
15431 | return NULL; | |
15432 | } | |
15433 | ||
15434 | ||
c370783e | 15435 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15436 | PyObject *resultobj; |
15437 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15438 | PyObject * obj0 = 0 ; | |
15439 | char *kwnames[] = { | |
15440 | (char *) "self", NULL | |
15441 | }; | |
15442 | ||
15443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15446 | { |
15447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15448 | (arg1)->ClearTicks(); | |
15449 | ||
15450 | wxPyEndAllowThreads(__tstate); | |
15451 | if (PyErr_Occurred()) SWIG_fail; | |
15452 | } | |
15453 | Py_INCREF(Py_None); resultobj = Py_None; | |
15454 | return resultobj; | |
15455 | fail: | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
c370783e | 15460 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15461 | PyObject *resultobj; |
15462 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15463 | int arg2 ; | |
15464 | PyObject * obj0 = 0 ; | |
15465 | PyObject * obj1 = 0 ; | |
15466 | char *kwnames[] = { | |
15467 | (char *) "self",(char *) "tickPos", NULL | |
15468 | }; | |
15469 | ||
15470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15473 | { | |
15474 | arg2 = (int)(SWIG_As_int(obj1)); | |
15475 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15476 | } | |
d55e5bfc RD |
15477 | { |
15478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15479 | (arg1)->SetTick(arg2); | |
15480 | ||
15481 | wxPyEndAllowThreads(__tstate); | |
15482 | if (PyErr_Occurred()) SWIG_fail; | |
15483 | } | |
15484 | Py_INCREF(Py_None); resultobj = Py_None; | |
15485 | return resultobj; | |
15486 | fail: | |
15487 | return NULL; | |
15488 | } | |
15489 | ||
15490 | ||
c370783e | 15491 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15492 | PyObject *resultobj; |
15493 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15494 | PyObject * obj0 = 0 ; | |
15495 | char *kwnames[] = { | |
15496 | (char *) "self", NULL | |
15497 | }; | |
15498 | ||
15499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15502 | { |
15503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15504 | (arg1)->ClearSel(); | |
15505 | ||
15506 | wxPyEndAllowThreads(__tstate); | |
15507 | if (PyErr_Occurred()) SWIG_fail; | |
15508 | } | |
15509 | Py_INCREF(Py_None); resultobj = Py_None; | |
15510 | return resultobj; | |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
c370783e | 15516 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15517 | PyObject *resultobj; |
15518 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15519 | int result; | |
15520 | PyObject * obj0 = 0 ; | |
15521 | char *kwnames[] = { | |
15522 | (char *) "self", NULL | |
15523 | }; | |
15524 | ||
15525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15528 | { |
15529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15530 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
15531 | ||
15532 | wxPyEndAllowThreads(__tstate); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | } | |
36ed4f51 RD |
15535 | { |
15536 | resultobj = SWIG_From_int((int)(result)); | |
15537 | } | |
d55e5bfc RD |
15538 | return resultobj; |
15539 | fail: | |
15540 | return NULL; | |
15541 | } | |
15542 | ||
15543 | ||
c370783e | 15544 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15545 | PyObject *resultobj; |
15546 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15547 | int result; | |
15548 | PyObject * obj0 = 0 ; | |
15549 | char *kwnames[] = { | |
15550 | (char *) "self", NULL | |
15551 | }; | |
15552 | ||
15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15556 | { |
15557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15558 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
15559 | ||
15560 | wxPyEndAllowThreads(__tstate); | |
15561 | if (PyErr_Occurred()) SWIG_fail; | |
15562 | } | |
36ed4f51 RD |
15563 | { |
15564 | resultobj = SWIG_From_int((int)(result)); | |
15565 | } | |
d55e5bfc RD |
15566 | return resultobj; |
15567 | fail: | |
15568 | return NULL; | |
15569 | } | |
15570 | ||
15571 | ||
c370783e | 15572 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15573 | PyObject *resultobj; |
15574 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15575 | int arg2 ; | |
15576 | int arg3 ; | |
15577 | PyObject * obj0 = 0 ; | |
15578 | PyObject * obj1 = 0 ; | |
15579 | PyObject * obj2 = 0 ; | |
15580 | char *kwnames[] = { | |
15581 | (char *) "self",(char *) "min",(char *) "max", NULL | |
15582 | }; | |
15583 | ||
15584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
15585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15587 | { | |
15588 | arg2 = (int)(SWIG_As_int(obj1)); | |
15589 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15590 | } | |
15591 | { | |
15592 | arg3 = (int)(SWIG_As_int(obj2)); | |
15593 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15594 | } | |
d55e5bfc RD |
15595 | { |
15596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15597 | (arg1)->SetSelection(arg2,arg3); | |
15598 | ||
15599 | wxPyEndAllowThreads(__tstate); | |
15600 | if (PyErr_Occurred()) SWIG_fail; | |
15601 | } | |
15602 | Py_INCREF(Py_None); resultobj = Py_None; | |
15603 | return resultobj; | |
15604 | fail: | |
15605 | return NULL; | |
15606 | } | |
15607 | ||
15608 | ||
c370783e | 15609 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 15610 | PyObject *resultobj; |
36ed4f51 | 15611 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
15612 | wxVisualAttributes result; |
15613 | PyObject * obj0 = 0 ; | |
15614 | char *kwnames[] = { | |
15615 | (char *) "variant", NULL | |
15616 | }; | |
15617 | ||
15618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15619 | if (obj0) { | |
36ed4f51 RD |
15620 | { |
15621 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
15622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15623 | } | |
f20a2e1f RD |
15624 | } |
15625 | { | |
0439c23b | 15626 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
15627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15628 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15629 | ||
15630 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15631 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
15632 | } |
15633 | { | |
15634 | wxVisualAttributes * resultptr; | |
36ed4f51 | 15635 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
15636 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
15637 | } | |
15638 | return resultobj; | |
15639 | fail: | |
15640 | return NULL; | |
15641 | } | |
15642 | ||
15643 | ||
c370783e | 15644 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15645 | PyObject *obj; |
15646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15647 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
15648 | Py_INCREF(obj); | |
15649 | return Py_BuildValue((char *)""); | |
15650 | } | |
c370783e | 15651 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
15652 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
15653 | return 1; | |
15654 | } | |
15655 | ||
15656 | ||
36ed4f51 | 15657 | static PyObject *_wrap_ToggleButtonNameStr_get(void) { |
d55e5bfc RD |
15658 | PyObject *pyobj; |
15659 | ||
15660 | { | |
15661 | #if wxUSE_UNICODE | |
15662 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15663 | #else | |
15664 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15665 | #endif | |
15666 | } | |
15667 | return pyobj; | |
15668 | } | |
15669 | ||
15670 | ||
c370783e | 15671 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15672 | PyObject *resultobj; |
15673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 RD |
15674 | int arg2 = (int) -1 ; |
15675 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15676 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
15677 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15678 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15679 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15680 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15681 | long arg6 = (long) 0 ; | |
15682 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
15683 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
15684 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
15685 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15686 | wxToggleButton *result; | |
b411df4a | 15687 | bool temp3 = false ; |
d55e5bfc RD |
15688 | wxPoint temp4 ; |
15689 | wxSize temp5 ; | |
b411df4a | 15690 | bool temp8 = false ; |
d55e5bfc RD |
15691 | PyObject * obj0 = 0 ; |
15692 | PyObject * obj1 = 0 ; | |
15693 | PyObject * obj2 = 0 ; | |
15694 | PyObject * obj3 = 0 ; | |
15695 | PyObject * obj4 = 0 ; | |
15696 | PyObject * obj5 = 0 ; | |
15697 | PyObject * obj6 = 0 ; | |
15698 | PyObject * obj7 = 0 ; | |
15699 | char *kwnames[] = { | |
15700 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15701 | }; | |
15702 | ||
bfddbb17 | 15703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
36ed4f51 RD |
15704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
15705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 15706 | if (obj1) { |
36ed4f51 RD |
15707 | { |
15708 | arg2 = (int)(SWIG_As_int(obj1)); | |
15709 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15710 | } | |
bfddbb17 RD |
15711 | } |
15712 | if (obj2) { | |
15713 | { | |
15714 | arg3 = wxString_in_helper(obj2); | |
15715 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 15716 | temp3 = true; |
bfddbb17 | 15717 | } |
d55e5bfc RD |
15718 | } |
15719 | if (obj3) { | |
15720 | { | |
15721 | arg4 = &temp4; | |
15722 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15723 | } | |
15724 | } | |
15725 | if (obj4) { | |
15726 | { | |
15727 | arg5 = &temp5; | |
15728 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15729 | } | |
15730 | } | |
15731 | if (obj5) { | |
36ed4f51 RD |
15732 | { |
15733 | arg6 = (long)(SWIG_As_long(obj5)); | |
15734 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15735 | } | |
d55e5bfc RD |
15736 | } |
15737 | if (obj6) { | |
36ed4f51 RD |
15738 | { |
15739 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15740 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15741 | if (arg7 == NULL) { | |
15742 | SWIG_null_ref("wxValidator"); | |
15743 | } | |
15744 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
15745 | } |
15746 | } | |
15747 | if (obj7) { | |
15748 | { | |
15749 | arg8 = wxString_in_helper(obj7); | |
15750 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 15751 | temp8 = true; |
d55e5bfc RD |
15752 | } |
15753 | } | |
15754 | { | |
0439c23b | 15755 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15757 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
15758 | ||
15759 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15760 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15761 | } |
15762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
15763 | { | |
15764 | if (temp3) | |
15765 | delete arg3; | |
15766 | } | |
15767 | { | |
15768 | if (temp8) | |
15769 | delete arg8; | |
15770 | } | |
15771 | return resultobj; | |
15772 | fail: | |
15773 | { | |
15774 | if (temp3) | |
15775 | delete arg3; | |
15776 | } | |
15777 | { | |
15778 | if (temp8) | |
15779 | delete arg8; | |
15780 | } | |
15781 | return NULL; | |
15782 | } | |
15783 | ||
15784 | ||
c370783e | 15785 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15786 | PyObject *resultobj; |
15787 | wxToggleButton *result; | |
15788 | char *kwnames[] = { | |
15789 | NULL | |
15790 | }; | |
15791 | ||
15792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
15793 | { | |
0439c23b | 15794 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15796 | result = (wxToggleButton *)new wxToggleButton(); | |
15797 | ||
15798 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15799 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15800 | } |
15801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
15802 | return resultobj; | |
15803 | fail: | |
15804 | return NULL; | |
15805 | } | |
15806 | ||
15807 | ||
c370783e | 15808 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
15809 | PyObject *resultobj; |
15810 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15811 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 RD |
15812 | int arg3 = (int) -1 ; |
15813 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15814 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
121b9a67 RD |
15815 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
15816 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15817 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15818 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15819 | long arg7 = (long) 0 ; | |
15820 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
15821 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
15822 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
15823 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15824 | bool result; | |
b411df4a | 15825 | bool temp4 = false ; |
121b9a67 RD |
15826 | wxPoint temp5 ; |
15827 | wxSize temp6 ; | |
b411df4a | 15828 | bool temp9 = false ; |
121b9a67 RD |
15829 | PyObject * obj0 = 0 ; |
15830 | PyObject * obj1 = 0 ; | |
15831 | PyObject * obj2 = 0 ; | |
15832 | PyObject * obj3 = 0 ; | |
15833 | PyObject * obj4 = 0 ; | |
15834 | PyObject * obj5 = 0 ; | |
15835 | PyObject * obj6 = 0 ; | |
15836 | PyObject * obj7 = 0 ; | |
15837 | PyObject * obj8 = 0 ; | |
15838 | char *kwnames[] = { | |
15839 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15840 | }; | |
15841 | ||
bfddbb17 | 15842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
36ed4f51 RD |
15843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15845 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15846 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 15847 | if (obj2) { |
36ed4f51 RD |
15848 | { |
15849 | arg3 = (int)(SWIG_As_int(obj2)); | |
15850 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15851 | } | |
bfddbb17 RD |
15852 | } |
15853 | if (obj3) { | |
15854 | { | |
15855 | arg4 = wxString_in_helper(obj3); | |
15856 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 15857 | temp4 = true; |
bfddbb17 | 15858 | } |
121b9a67 RD |
15859 | } |
15860 | if (obj4) { | |
15861 | { | |
15862 | arg5 = &temp5; | |
15863 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15864 | } | |
15865 | } | |
15866 | if (obj5) { | |
15867 | { | |
15868 | arg6 = &temp6; | |
15869 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15870 | } | |
15871 | } | |
15872 | if (obj6) { | |
36ed4f51 RD |
15873 | { |
15874 | arg7 = (long)(SWIG_As_long(obj6)); | |
15875 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15876 | } | |
121b9a67 RD |
15877 | } |
15878 | if (obj7) { | |
36ed4f51 RD |
15879 | { |
15880 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15881 | if (SWIG_arg_fail(8)) SWIG_fail; | |
15882 | if (arg8 == NULL) { | |
15883 | SWIG_null_ref("wxValidator"); | |
15884 | } | |
15885 | if (SWIG_arg_fail(8)) SWIG_fail; | |
121b9a67 RD |
15886 | } |
15887 | } | |
15888 | if (obj8) { | |
15889 | { | |
15890 | arg9 = wxString_in_helper(obj8); | |
15891 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 15892 | temp9 = true; |
121b9a67 RD |
15893 | } |
15894 | } | |
15895 | { | |
15896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15897 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
15898 | ||
15899 | wxPyEndAllowThreads(__tstate); | |
15900 | if (PyErr_Occurred()) SWIG_fail; | |
15901 | } | |
15902 | { | |
15903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15904 | } | |
15905 | { | |
15906 | if (temp4) | |
15907 | delete arg4; | |
15908 | } | |
15909 | { | |
15910 | if (temp9) | |
15911 | delete arg9; | |
15912 | } | |
15913 | return resultobj; | |
15914 | fail: | |
15915 | { | |
15916 | if (temp4) | |
15917 | delete arg4; | |
15918 | } | |
15919 | { | |
15920 | if (temp9) | |
15921 | delete arg9; | |
15922 | } | |
15923 | return NULL; | |
15924 | } | |
15925 | ||
15926 | ||
c370783e | 15927 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
15928 | PyObject *resultobj; |
15929 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15930 | bool arg2 ; | |
15931 | PyObject * obj0 = 0 ; | |
15932 | PyObject * obj1 = 0 ; | |
15933 | char *kwnames[] = { | |
15934 | (char *) "self",(char *) "value", NULL | |
15935 | }; | |
15936 | ||
15937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15940 | { | |
15941 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
15942 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15943 | } | |
121b9a67 RD |
15944 | { |
15945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15946 | (arg1)->SetValue(arg2); | |
15947 | ||
15948 | wxPyEndAllowThreads(__tstate); | |
15949 | if (PyErr_Occurred()) SWIG_fail; | |
15950 | } | |
15951 | Py_INCREF(Py_None); resultobj = Py_None; | |
15952 | return resultobj; | |
15953 | fail: | |
15954 | return NULL; | |
15955 | } | |
15956 | ||
15957 | ||
c370783e | 15958 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
15959 | PyObject *resultobj; |
15960 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15961 | bool result; | |
15962 | PyObject * obj0 = 0 ; | |
15963 | char *kwnames[] = { | |
15964 | (char *) "self", NULL | |
15965 | }; | |
15966 | ||
15967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
15968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
121b9a67 RD |
15970 | { |
15971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15972 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
15973 | ||
15974 | wxPyEndAllowThreads(__tstate); | |
15975 | if (PyErr_Occurred()) SWIG_fail; | |
15976 | } | |
15977 | { | |
15978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15979 | } | |
15980 | return resultobj; | |
15981 | fail: | |
15982 | return NULL; | |
15983 | } | |
15984 | ||
15985 | ||
c370783e | 15986 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
15987 | PyObject *resultobj; |
15988 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15989 | wxString *arg2 = 0 ; | |
b411df4a | 15990 | bool temp2 = false ; |
121b9a67 RD |
15991 | PyObject * obj0 = 0 ; |
15992 | PyObject * obj1 = 0 ; | |
15993 | char *kwnames[] = { | |
15994 | (char *) "self",(char *) "label", NULL | |
15995 | }; | |
15996 | ||
15997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
15998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
121b9a67 RD |
16000 | { |
16001 | arg2 = wxString_in_helper(obj1); | |
16002 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 16003 | temp2 = true; |
121b9a67 RD |
16004 | } |
16005 | { | |
16006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16007 | (arg1)->SetLabel((wxString const &)*arg2); | |
16008 | ||
16009 | wxPyEndAllowThreads(__tstate); | |
16010 | if (PyErr_Occurred()) SWIG_fail; | |
16011 | } | |
16012 | Py_INCREF(Py_None); resultobj = Py_None; | |
16013 | { | |
16014 | if (temp2) | |
16015 | delete arg2; | |
16016 | } | |
16017 | return resultobj; | |
16018 | fail: | |
16019 | { | |
16020 | if (temp2) | |
16021 | delete arg2; | |
16022 | } | |
16023 | return NULL; | |
16024 | } | |
16025 | ||
16026 | ||
c370783e | 16027 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 16028 | PyObject *resultobj; |
36ed4f51 | 16029 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
16030 | wxVisualAttributes result; |
16031 | PyObject * obj0 = 0 ; | |
16032 | char *kwnames[] = { | |
16033 | (char *) "variant", NULL | |
16034 | }; | |
16035 | ||
16036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
16037 | if (obj0) { | |
36ed4f51 RD |
16038 | { |
16039 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16041 | } | |
f20a2e1f RD |
16042 | } |
16043 | { | |
0439c23b | 16044 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
16045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16046 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
16047 | ||
16048 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16049 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
16050 | } |
16051 | { | |
16052 | wxVisualAttributes * resultptr; | |
36ed4f51 | 16053 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
16054 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16055 | } | |
16056 | return resultobj; | |
16057 | fail: | |
16058 | return NULL; | |
16059 | } | |
16060 | ||
16061 | ||
c370783e | 16062 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16063 | PyObject *obj; |
16064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16065 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
16066 | Py_INCREF(obj); | |
16067 | return Py_BuildValue((char *)""); | |
16068 | } | |
51b83b37 RD |
16069 | static int _wrap_NotebookNameStr_set(PyObject *) { |
16070 | PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only."); | |
d55e5bfc RD |
16071 | return 1; |
16072 | } | |
16073 | ||
16074 | ||
51b83b37 | 16075 | static PyObject *_wrap_NotebookNameStr_get(void) { |
d55e5bfc RD |
16076 | PyObject *pyobj; |
16077 | ||
16078 | { | |
16079 | #if wxUSE_UNICODE | |
51b83b37 | 16080 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc | 16081 | #else |
51b83b37 | 16082 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc RD |
16083 | #endif |
16084 | } | |
16085 | return pyobj; | |
16086 | } | |
16087 | ||
16088 | ||
6e0de3df | 16089 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16090 | PyObject *resultobj; |
6e0de3df | 16091 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16092 | size_t result; |
16093 | PyObject * obj0 = 0 ; | |
16094 | char *kwnames[] = { | |
16095 | (char *) "self", NULL | |
16096 | }; | |
16097 | ||
6e0de3df | 16098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
16099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16101 | { |
16102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16103 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); |
d55e5bfc RD |
16104 | |
16105 | wxPyEndAllowThreads(__tstate); | |
16106 | if (PyErr_Occurred()) SWIG_fail; | |
16107 | } | |
36ed4f51 RD |
16108 | { |
16109 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
16110 | } | |
d55e5bfc RD |
16111 | return resultobj; |
16112 | fail: | |
16113 | return NULL; | |
16114 | } | |
16115 | ||
16116 | ||
6e0de3df | 16117 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16118 | PyObject *resultobj; |
6e0de3df | 16119 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16120 | size_t arg2 ; |
16121 | wxWindow *result; | |
16122 | PyObject * obj0 = 0 ; | |
16123 | PyObject * obj1 = 0 ; | |
16124 | char *kwnames[] = { | |
16125 | (char *) "self",(char *) "n", NULL | |
16126 | }; | |
16127 | ||
6e0de3df | 16128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16131 | { | |
16132 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16133 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16134 | } | |
d55e5bfc RD |
16135 | { |
16136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16137 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
16138 | ||
16139 | wxPyEndAllowThreads(__tstate); | |
16140 | if (PyErr_Occurred()) SWIG_fail; | |
16141 | } | |
16142 | { | |
412d302d | 16143 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16144 | } |
16145 | return resultobj; | |
16146 | fail: | |
16147 | return NULL; | |
16148 | } | |
16149 | ||
16150 | ||
6e0de3df | 16151 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
8fb0e70a | 16152 | PyObject *resultobj; |
6e0de3df | 16153 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
8fb0e70a RD |
16154 | wxWindow *result; |
16155 | PyObject * obj0 = 0 ; | |
16156 | char *kwnames[] = { | |
16157 | (char *) "self", NULL | |
16158 | }; | |
16159 | ||
6e0de3df | 16160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
16161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
16163 | { |
16164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16165 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); |
8fb0e70a RD |
16166 | |
16167 | wxPyEndAllowThreads(__tstate); | |
16168 | if (PyErr_Occurred()) SWIG_fail; | |
16169 | } | |
16170 | { | |
16171 | resultobj = wxPyMake_wxObject(result, 0); | |
16172 | } | |
16173 | return resultobj; | |
16174 | fail: | |
16175 | return NULL; | |
16176 | } | |
16177 | ||
16178 | ||
6e0de3df | 16179 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16180 | PyObject *resultobj; |
6e0de3df | 16181 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16182 | int result; |
16183 | PyObject * obj0 = 0 ; | |
16184 | char *kwnames[] = { | |
16185 | (char *) "self", NULL | |
16186 | }; | |
16187 | ||
6e0de3df | 16188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
16189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16191 | { |
16192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16193 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); |
d55e5bfc RD |
16194 | |
16195 | wxPyEndAllowThreads(__tstate); | |
16196 | if (PyErr_Occurred()) SWIG_fail; | |
16197 | } | |
36ed4f51 RD |
16198 | { |
16199 | resultobj = SWIG_From_int((int)(result)); | |
16200 | } | |
d55e5bfc RD |
16201 | return resultobj; |
16202 | fail: | |
16203 | return NULL; | |
16204 | } | |
16205 | ||
16206 | ||
6e0de3df | 16207 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16208 | PyObject *resultobj; |
6e0de3df | 16209 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16210 | size_t arg2 ; |
16211 | wxString *arg3 = 0 ; | |
16212 | bool result; | |
b411df4a | 16213 | bool temp3 = false ; |
d55e5bfc RD |
16214 | PyObject * obj0 = 0 ; |
16215 | PyObject * obj1 = 0 ; | |
16216 | PyObject * obj2 = 0 ; | |
16217 | char *kwnames[] = { | |
16218 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
16219 | }; | |
16220 | ||
6e0de3df | 16221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
16222 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16223 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16224 | { | |
16225 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16226 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16227 | } | |
d55e5bfc RD |
16228 | { |
16229 | arg3 = wxString_in_helper(obj2); | |
16230 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16231 | temp3 = true; |
d55e5bfc RD |
16232 | } |
16233 | { | |
16234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16235 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
16236 | ||
16237 | wxPyEndAllowThreads(__tstate); | |
16238 | if (PyErr_Occurred()) SWIG_fail; | |
16239 | } | |
16240 | { | |
16241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16242 | } | |
16243 | { | |
16244 | if (temp3) | |
16245 | delete arg3; | |
16246 | } | |
16247 | return resultobj; | |
16248 | fail: | |
16249 | { | |
16250 | if (temp3) | |
16251 | delete arg3; | |
16252 | } | |
16253 | return NULL; | |
16254 | } | |
16255 | ||
16256 | ||
6e0de3df | 16257 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16258 | PyObject *resultobj; |
6e0de3df | 16259 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16260 | size_t arg2 ; |
16261 | wxString result; | |
16262 | PyObject * obj0 = 0 ; | |
16263 | PyObject * obj1 = 0 ; | |
16264 | char *kwnames[] = { | |
16265 | (char *) "self",(char *) "n", NULL | |
16266 | }; | |
16267 | ||
6e0de3df | 16268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16271 | { | |
16272 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16274 | } | |
d55e5bfc RD |
16275 | { |
16276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16277 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); |
d55e5bfc RD |
16278 | |
16279 | wxPyEndAllowThreads(__tstate); | |
16280 | if (PyErr_Occurred()) SWIG_fail; | |
16281 | } | |
16282 | { | |
16283 | #if wxUSE_UNICODE | |
16284 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16285 | #else | |
16286 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16287 | #endif | |
16288 | } | |
16289 | return resultobj; | |
16290 | fail: | |
16291 | return NULL; | |
16292 | } | |
16293 | ||
16294 | ||
6e0de3df | 16295 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16296 | PyObject *resultobj; |
6e0de3df | 16297 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16298 | wxImageList *arg2 = (wxImageList *) 0 ; |
16299 | PyObject * obj0 = 0 ; | |
16300 | PyObject * obj1 = 0 ; | |
16301 | char *kwnames[] = { | |
16302 | (char *) "self",(char *) "imageList", NULL | |
16303 | }; | |
16304 | ||
6e0de3df | 16305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16308 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
16309 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16310 | { |
16311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16312 | (arg1)->SetImageList(arg2); | |
16313 | ||
16314 | wxPyEndAllowThreads(__tstate); | |
16315 | if (PyErr_Occurred()) SWIG_fail; | |
16316 | } | |
16317 | Py_INCREF(Py_None); resultobj = Py_None; | |
16318 | return resultobj; | |
16319 | fail: | |
16320 | return NULL; | |
16321 | } | |
16322 | ||
16323 | ||
6e0de3df | 16324 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16325 | PyObject *resultobj; |
6e0de3df | 16326 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16327 | wxImageList *arg2 = (wxImageList *) 0 ; |
16328 | PyObject * obj0 = 0 ; | |
16329 | PyObject * obj1 = 0 ; | |
16330 | char *kwnames[] = { | |
16331 | (char *) "self",(char *) "imageList", NULL | |
16332 | }; | |
16333 | ||
6e0de3df | 16334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16337 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
16338 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16339 | { |
16340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16341 | (arg1)->AssignImageList(arg2); | |
16342 | ||
16343 | wxPyEndAllowThreads(__tstate); | |
16344 | if (PyErr_Occurred()) SWIG_fail; | |
16345 | } | |
16346 | Py_INCREF(Py_None); resultobj = Py_None; | |
16347 | return resultobj; | |
16348 | fail: | |
16349 | return NULL; | |
16350 | } | |
16351 | ||
16352 | ||
6e0de3df | 16353 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16354 | PyObject *resultobj; |
6e0de3df | 16355 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16356 | wxImageList *result; |
16357 | PyObject * obj0 = 0 ; | |
16358 | char *kwnames[] = { | |
16359 | (char *) "self", NULL | |
16360 | }; | |
16361 | ||
6e0de3df | 16362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
16363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16365 | { |
16366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16367 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); |
d55e5bfc RD |
16368 | |
16369 | wxPyEndAllowThreads(__tstate); | |
16370 | if (PyErr_Occurred()) SWIG_fail; | |
16371 | } | |
16372 | { | |
412d302d | 16373 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16374 | } |
16375 | return resultobj; | |
16376 | fail: | |
16377 | return NULL; | |
16378 | } | |
16379 | ||
16380 | ||
6e0de3df | 16381 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16382 | PyObject *resultobj; |
6e0de3df | 16383 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16384 | size_t arg2 ; |
16385 | int result; | |
16386 | PyObject * obj0 = 0 ; | |
16387 | PyObject * obj1 = 0 ; | |
16388 | char *kwnames[] = { | |
16389 | (char *) "self",(char *) "n", NULL | |
16390 | }; | |
16391 | ||
6e0de3df | 16392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16395 | { | |
16396 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16397 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16398 | } | |
d55e5bfc RD |
16399 | { |
16400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16401 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); |
d55e5bfc RD |
16402 | |
16403 | wxPyEndAllowThreads(__tstate); | |
16404 | if (PyErr_Occurred()) SWIG_fail; | |
16405 | } | |
36ed4f51 RD |
16406 | { |
16407 | resultobj = SWIG_From_int((int)(result)); | |
16408 | } | |
d55e5bfc RD |
16409 | return resultobj; |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
6e0de3df | 16415 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16416 | PyObject *resultobj; |
6e0de3df | 16417 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16418 | size_t arg2 ; |
16419 | int arg3 ; | |
16420 | bool result; | |
16421 | PyObject * obj0 = 0 ; | |
16422 | PyObject * obj1 = 0 ; | |
16423 | PyObject * obj2 = 0 ; | |
16424 | char *kwnames[] = { | |
16425 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
16426 | }; | |
16427 | ||
6e0de3df | 16428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
16429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16431 | { | |
16432 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16433 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16434 | } | |
16435 | { | |
16436 | arg3 = (int)(SWIG_As_int(obj2)); | |
16437 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16438 | } | |
d55e5bfc RD |
16439 | { |
16440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16441 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
16442 | ||
16443 | wxPyEndAllowThreads(__tstate); | |
16444 | if (PyErr_Occurred()) SWIG_fail; | |
16445 | } | |
16446 | { | |
16447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16448 | } | |
16449 | return resultobj; | |
16450 | fail: | |
16451 | return NULL; | |
16452 | } | |
16453 | ||
16454 | ||
6e0de3df | 16455 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16456 | PyObject *resultobj; |
6e0de3df | 16457 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16458 | wxSize *arg2 = 0 ; |
16459 | wxSize temp2 ; | |
16460 | PyObject * obj0 = 0 ; | |
16461 | PyObject * obj1 = 0 ; | |
16462 | char *kwnames[] = { | |
16463 | (char *) "self",(char *) "size", NULL | |
16464 | }; | |
16465 | ||
6e0de3df | 16466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16469 | { |
16470 | arg2 = &temp2; | |
16471 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16472 | } | |
16473 | { | |
16474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16475 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
16476 | ||
16477 | wxPyEndAllowThreads(__tstate); | |
16478 | if (PyErr_Occurred()) SWIG_fail; | |
16479 | } | |
16480 | Py_INCREF(Py_None); resultobj = Py_None; | |
16481 | return resultobj; | |
16482 | fail: | |
16483 | return NULL; | |
16484 | } | |
16485 | ||
16486 | ||
6e0de3df | 16487 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16488 | PyObject *resultobj; |
6e0de3df | 16489 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16490 | wxSize *arg2 = 0 ; |
16491 | wxSize result; | |
16492 | wxSize temp2 ; | |
16493 | PyObject * obj0 = 0 ; | |
16494 | PyObject * obj1 = 0 ; | |
16495 | char *kwnames[] = { | |
16496 | (char *) "self",(char *) "sizePage", NULL | |
16497 | }; | |
16498 | ||
6e0de3df | 16499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16502 | { |
16503 | arg2 = &temp2; | |
16504 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16505 | } | |
16506 | { | |
16507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16508 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); |
d55e5bfc RD |
16509 | |
16510 | wxPyEndAllowThreads(__tstate); | |
16511 | if (PyErr_Occurred()) SWIG_fail; | |
16512 | } | |
16513 | { | |
16514 | wxSize * resultptr; | |
36ed4f51 | 16515 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
16516 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
16517 | } | |
16518 | return resultobj; | |
16519 | fail: | |
16520 | return NULL; | |
16521 | } | |
16522 | ||
16523 | ||
6e0de3df | 16524 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16525 | PyObject *resultobj; |
6e0de3df | 16526 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16527 | size_t arg2 ; |
16528 | bool result; | |
16529 | PyObject * obj0 = 0 ; | |
16530 | PyObject * obj1 = 0 ; | |
16531 | char *kwnames[] = { | |
16532 | (char *) "self",(char *) "n", NULL | |
16533 | }; | |
16534 | ||
6e0de3df | 16535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16538 | { | |
16539 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16540 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16541 | } | |
d55e5bfc RD |
16542 | { |
16543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16544 | result = (bool)(arg1)->DeletePage(arg2); | |
16545 | ||
16546 | wxPyEndAllowThreads(__tstate); | |
16547 | if (PyErr_Occurred()) SWIG_fail; | |
16548 | } | |
16549 | { | |
16550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16551 | } | |
16552 | return resultobj; | |
16553 | fail: | |
16554 | return NULL; | |
16555 | } | |
16556 | ||
16557 | ||
6e0de3df | 16558 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16559 | PyObject *resultobj; |
6e0de3df | 16560 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16561 | size_t arg2 ; |
16562 | bool result; | |
16563 | PyObject * obj0 = 0 ; | |
16564 | PyObject * obj1 = 0 ; | |
16565 | char *kwnames[] = { | |
16566 | (char *) "self",(char *) "n", NULL | |
16567 | }; | |
16568 | ||
6e0de3df | 16569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16572 | { | |
16573 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16575 | } | |
d55e5bfc RD |
16576 | { |
16577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16578 | result = (bool)(arg1)->RemovePage(arg2); | |
16579 | ||
16580 | wxPyEndAllowThreads(__tstate); | |
16581 | if (PyErr_Occurred()) SWIG_fail; | |
16582 | } | |
16583 | { | |
16584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16585 | } | |
16586 | return resultobj; | |
16587 | fail: | |
16588 | return NULL; | |
16589 | } | |
16590 | ||
16591 | ||
6e0de3df | 16592 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16593 | PyObject *resultobj; |
6e0de3df | 16594 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16595 | bool result; |
16596 | PyObject * obj0 = 0 ; | |
16597 | char *kwnames[] = { | |
16598 | (char *) "self", NULL | |
16599 | }; | |
16600 | ||
6e0de3df | 16601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
16602 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16604 | { |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16606 | result = (bool)(arg1)->DeleteAllPages(); | |
16607 | ||
16608 | wxPyEndAllowThreads(__tstate); | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
16611 | { | |
16612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16613 | } | |
16614 | return resultobj; | |
16615 | fail: | |
16616 | return NULL; | |
16617 | } | |
16618 | ||
16619 | ||
6e0de3df | 16620 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16621 | PyObject *resultobj; |
6e0de3df | 16622 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16623 | wxWindow *arg2 = (wxWindow *) 0 ; |
16624 | wxString *arg3 = 0 ; | |
b411df4a | 16625 | bool arg4 = (bool) false ; |
d55e5bfc RD |
16626 | int arg5 = (int) -1 ; |
16627 | bool result; | |
b411df4a | 16628 | bool temp3 = false ; |
d55e5bfc RD |
16629 | PyObject * obj0 = 0 ; |
16630 | PyObject * obj1 = 0 ; | |
16631 | PyObject * obj2 = 0 ; | |
16632 | PyObject * obj3 = 0 ; | |
16633 | PyObject * obj4 = 0 ; | |
16634 | char *kwnames[] = { | |
16635 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16636 | }; | |
16637 | ||
6e0de3df | 16638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
36ed4f51 RD |
16639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16641 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16642 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16643 | { |
16644 | arg3 = wxString_in_helper(obj2); | |
16645 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 16646 | temp3 = true; |
d55e5bfc RD |
16647 | } |
16648 | if (obj3) { | |
36ed4f51 RD |
16649 | { |
16650 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
16651 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16652 | } | |
d55e5bfc RD |
16653 | } |
16654 | if (obj4) { | |
36ed4f51 RD |
16655 | { |
16656 | arg5 = (int)(SWIG_As_int(obj4)); | |
16657 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16658 | } | |
d55e5bfc RD |
16659 | } |
16660 | { | |
16661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16662 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
16663 | ||
16664 | wxPyEndAllowThreads(__tstate); | |
16665 | if (PyErr_Occurred()) SWIG_fail; | |
16666 | } | |
16667 | { | |
16668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16669 | } | |
16670 | { | |
16671 | if (temp3) | |
16672 | delete arg3; | |
16673 | } | |
16674 | return resultobj; | |
16675 | fail: | |
16676 | { | |
16677 | if (temp3) | |
16678 | delete arg3; | |
16679 | } | |
16680 | return NULL; | |
16681 | } | |
16682 | ||
16683 | ||
6e0de3df | 16684 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16685 | PyObject *resultobj; |
6e0de3df | 16686 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16687 | size_t arg2 ; |
16688 | wxWindow *arg3 = (wxWindow *) 0 ; | |
16689 | wxString *arg4 = 0 ; | |
b411df4a | 16690 | bool arg5 = (bool) false ; |
d55e5bfc RD |
16691 | int arg6 = (int) -1 ; |
16692 | bool result; | |
b411df4a | 16693 | bool temp4 = false ; |
d55e5bfc RD |
16694 | PyObject * obj0 = 0 ; |
16695 | PyObject * obj1 = 0 ; | |
16696 | PyObject * obj2 = 0 ; | |
16697 | PyObject * obj3 = 0 ; | |
16698 | PyObject * obj4 = 0 ; | |
16699 | PyObject * obj5 = 0 ; | |
16700 | char *kwnames[] = { | |
16701 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16702 | }; | |
16703 | ||
6e0de3df | 16704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
36ed4f51 RD |
16705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16707 | { | |
16708 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16709 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16710 | } | |
16711 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16712 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
16713 | { |
16714 | arg4 = wxString_in_helper(obj3); | |
16715 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 16716 | temp4 = true; |
d55e5bfc RD |
16717 | } |
16718 | if (obj4) { | |
36ed4f51 RD |
16719 | { |
16720 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
16721 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16722 | } | |
d55e5bfc RD |
16723 | } |
16724 | if (obj5) { | |
36ed4f51 RD |
16725 | { |
16726 | arg6 = (int)(SWIG_As_int(obj5)); | |
16727 | if (SWIG_arg_fail(6)) SWIG_fail; | |
16728 | } | |
d55e5bfc RD |
16729 | } |
16730 | { | |
16731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16732 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
16733 | ||
16734 | wxPyEndAllowThreads(__tstate); | |
16735 | if (PyErr_Occurred()) SWIG_fail; | |
16736 | } | |
16737 | { | |
16738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16739 | } | |
16740 | { | |
16741 | if (temp4) | |
16742 | delete arg4; | |
16743 | } | |
16744 | return resultobj; | |
16745 | fail: | |
16746 | { | |
16747 | if (temp4) | |
16748 | delete arg4; | |
16749 | } | |
16750 | return NULL; | |
16751 | } | |
16752 | ||
16753 | ||
6e0de3df | 16754 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16755 | PyObject *resultobj; |
6e0de3df | 16756 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16757 | size_t arg2 ; |
16758 | int result; | |
16759 | PyObject * obj0 = 0 ; | |
16760 | PyObject * obj1 = 0 ; | |
16761 | char *kwnames[] = { | |
16762 | (char *) "self",(char *) "n", NULL | |
16763 | }; | |
16764 | ||
6e0de3df | 16765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16768 | { | |
16769 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16770 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16771 | } | |
d55e5bfc RD |
16772 | { |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | result = (int)(arg1)->SetSelection(arg2); | |
16775 | ||
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
36ed4f51 RD |
16779 | { |
16780 | resultobj = SWIG_From_int((int)(result)); | |
16781 | } | |
d55e5bfc RD |
16782 | return resultobj; |
16783 | fail: | |
16784 | return NULL; | |
16785 | } | |
16786 | ||
16787 | ||
6e0de3df | 16788 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16789 | PyObject *resultobj; |
6e0de3df | 16790 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
b411df4a | 16791 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16792 | PyObject * obj0 = 0 ; |
16793 | PyObject * obj1 = 0 ; | |
16794 | char *kwnames[] = { | |
16795 | (char *) "self",(char *) "forward", NULL | |
16796 | }; | |
16797 | ||
6e0de3df | 16798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 16801 | if (obj1) { |
36ed4f51 RD |
16802 | { |
16803 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16804 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16805 | } | |
d55e5bfc RD |
16806 | } |
16807 | { | |
16808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16809 | (arg1)->AdvanceSelection(arg2); | |
16810 | ||
16811 | wxPyEndAllowThreads(__tstate); | |
16812 | if (PyErr_Occurred()) SWIG_fail; | |
16813 | } | |
16814 | Py_INCREF(Py_None); resultobj = Py_None; | |
16815 | return resultobj; | |
16816 | fail: | |
16817 | return NULL; | |
16818 | } | |
16819 | ||
16820 | ||
6e0de3df | 16821 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 16822 | PyObject *resultobj; |
36ed4f51 | 16823 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
16824 | wxVisualAttributes result; |
16825 | PyObject * obj0 = 0 ; | |
16826 | char *kwnames[] = { | |
16827 | (char *) "variant", NULL | |
16828 | }; | |
16829 | ||
6e0de3df | 16830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
f20a2e1f | 16831 | if (obj0) { |
36ed4f51 RD |
16832 | { |
16833 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16835 | } | |
f20a2e1f RD |
16836 | } |
16837 | { | |
0439c23b | 16838 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f | 16839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e0de3df | 16840 | result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1); |
f20a2e1f RD |
16841 | |
16842 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16843 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
16844 | } |
16845 | { | |
16846 | wxVisualAttributes * resultptr; | |
36ed4f51 | 16847 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
16848 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16849 | } | |
16850 | return resultobj; | |
16851 | fail: | |
16852 | return NULL; | |
16853 | } | |
16854 | ||
16855 | ||
6e0de3df | 16856 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16857 | PyObject *obj; |
16858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6e0de3df | 16859 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); |
d55e5bfc RD |
16860 | Py_INCREF(obj); |
16861 | return Py_BuildValue((char *)""); | |
16862 | } | |
6e0de3df | 16863 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16864 | PyObject *resultobj; |
16865 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16866 | int arg2 = (int) 0 ; | |
16867 | int arg3 = (int) -1 ; | |
16868 | int arg4 = (int) -1 ; | |
6e0de3df | 16869 | wxBookCtrlBaseEvent *result; |
d55e5bfc RD |
16870 | PyObject * obj0 = 0 ; |
16871 | PyObject * obj1 = 0 ; | |
16872 | PyObject * obj2 = 0 ; | |
16873 | PyObject * obj3 = 0 ; | |
16874 | char *kwnames[] = { | |
16875 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16876 | }; | |
16877 | ||
6e0de3df | 16878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc | 16879 | if (obj0) { |
36ed4f51 RD |
16880 | { |
16881 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16883 | } | |
d55e5bfc RD |
16884 | } |
16885 | if (obj1) { | |
36ed4f51 RD |
16886 | { |
16887 | arg2 = (int)(SWIG_As_int(obj1)); | |
16888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16889 | } | |
d55e5bfc RD |
16890 | } |
16891 | if (obj2) { | |
36ed4f51 RD |
16892 | { |
16893 | arg3 = (int)(SWIG_As_int(obj2)); | |
16894 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16895 | } | |
d55e5bfc RD |
16896 | } |
16897 | if (obj3) { | |
36ed4f51 RD |
16898 | { |
16899 | arg4 = (int)(SWIG_As_int(obj3)); | |
16900 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16901 | } | |
d55e5bfc RD |
16902 | } |
16903 | { | |
16904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16905 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
16906 | |
16907 | wxPyEndAllowThreads(__tstate); | |
16908 | if (PyErr_Occurred()) SWIG_fail; | |
16909 | } | |
6e0de3df | 16910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); |
d55e5bfc RD |
16911 | return resultobj; |
16912 | fail: | |
16913 | return NULL; | |
16914 | } | |
16915 | ||
16916 | ||
6e0de3df | 16917 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16918 | PyObject *resultobj; |
6e0de3df | 16919 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
16920 | int result; |
16921 | PyObject * obj0 = 0 ; | |
16922 | char *kwnames[] = { | |
16923 | (char *) "self", NULL | |
16924 | }; | |
16925 | ||
6e0de3df | 16926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
16927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
16928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16929 | { |
16930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16931 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); |
d55e5bfc RD |
16932 | |
16933 | wxPyEndAllowThreads(__tstate); | |
16934 | if (PyErr_Occurred()) SWIG_fail; | |
16935 | } | |
36ed4f51 RD |
16936 | { |
16937 | resultobj = SWIG_From_int((int)(result)); | |
16938 | } | |
d55e5bfc RD |
16939 | return resultobj; |
16940 | fail: | |
16941 | return NULL; | |
16942 | } | |
16943 | ||
16944 | ||
6e0de3df | 16945 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16946 | PyObject *resultobj; |
6e0de3df | 16947 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
16948 | int arg2 ; |
16949 | PyObject * obj0 = 0 ; | |
16950 | PyObject * obj1 = 0 ; | |
16951 | char *kwnames[] = { | |
16952 | (char *) "self",(char *) "nSel", NULL | |
16953 | }; | |
16954 | ||
6e0de3df | 16955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
16956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
16957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16958 | { | |
16959 | arg2 = (int)(SWIG_As_int(obj1)); | |
16960 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16961 | } | |
d55e5bfc RD |
16962 | { |
16963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16964 | (arg1)->SetSelection(arg2); | |
16965 | ||
16966 | wxPyEndAllowThreads(__tstate); | |
16967 | if (PyErr_Occurred()) SWIG_fail; | |
16968 | } | |
16969 | Py_INCREF(Py_None); resultobj = Py_None; | |
16970 | return resultobj; | |
16971 | fail: | |
16972 | return NULL; | |
16973 | } | |
16974 | ||
16975 | ||
6e0de3df | 16976 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16977 | PyObject *resultobj; |
6e0de3df | 16978 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
16979 | int result; |
16980 | PyObject * obj0 = 0 ; | |
16981 | char *kwnames[] = { | |
16982 | (char *) "self", NULL | |
16983 | }; | |
16984 | ||
6e0de3df | 16985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
16986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
16987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16988 | { |
16989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6e0de3df | 16990 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); |
d55e5bfc RD |
16991 | |
16992 | wxPyEndAllowThreads(__tstate); | |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
16994 | } | |
36ed4f51 RD |
16995 | { |
16996 | resultobj = SWIG_From_int((int)(result)); | |
16997 | } | |
d55e5bfc RD |
16998 | return resultobj; |
16999 | fail: | |
17000 | return NULL; | |
17001 | } | |
17002 | ||
17003 | ||
6e0de3df | 17004 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 17005 | PyObject *resultobj; |
6e0de3df | 17006 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
17007 | int arg2 ; |
17008 | PyObject * obj0 = 0 ; | |
17009 | PyObject * obj1 = 0 ; | |
17010 | char *kwnames[] = { | |
17011 | (char *) "self",(char *) "nOldSel", NULL | |
17012 | }; | |
17013 | ||
6e0de3df | 17014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
17015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17017 | { | |
17018 | arg2 = (int)(SWIG_As_int(obj1)); | |
17019 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17020 | } | |
d55e5bfc RD |
17021 | { |
17022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17023 | (arg1)->SetOldSelection(arg2); | |
17024 | ||
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | Py_INCREF(Py_None); resultobj = Py_None; | |
17029 | return resultobj; | |
17030 | fail: | |
17031 | return NULL; | |
17032 | } | |
17033 | ||
17034 | ||
6e0de3df | 17035 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17036 | PyObject *obj; |
17037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6e0de3df | 17038 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); |
d55e5bfc RD |
17039 | Py_INCREF(obj); |
17040 | return Py_BuildValue((char *)""); | |
17041 | } | |
c370783e | 17042 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17043 | PyObject *resultobj; |
17044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17045 | int arg2 = (int) -1 ; | |
17046 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17047 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17048 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17049 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17050 | long arg5 = (long) 0 ; | |
51b83b37 | 17051 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; |
d55e5bfc RD |
17052 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
17053 | wxNotebook *result; | |
17054 | wxPoint temp3 ; | |
17055 | wxSize temp4 ; | |
b411df4a | 17056 | bool temp6 = false ; |
d55e5bfc RD |
17057 | PyObject * obj0 = 0 ; |
17058 | PyObject * obj1 = 0 ; | |
17059 | PyObject * obj2 = 0 ; | |
17060 | PyObject * obj3 = 0 ; | |
17061 | PyObject * obj4 = 0 ; | |
17062 | PyObject * obj5 = 0 ; | |
17063 | char *kwnames[] = { | |
17064 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17065 | }; | |
17066 | ||
17067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
17068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 17070 | if (obj1) { |
36ed4f51 RD |
17071 | { |
17072 | arg2 = (int)(SWIG_As_int(obj1)); | |
17073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17074 | } | |
d55e5bfc RD |
17075 | } |
17076 | if (obj2) { | |
17077 | { | |
17078 | arg3 = &temp3; | |
17079 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17080 | } | |
17081 | } | |
17082 | if (obj3) { | |
17083 | { | |
17084 | arg4 = &temp4; | |
17085 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17086 | } | |
17087 | } | |
17088 | if (obj4) { | |
36ed4f51 RD |
17089 | { |
17090 | arg5 = (long)(SWIG_As_long(obj4)); | |
17091 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17092 | } | |
d55e5bfc RD |
17093 | } |
17094 | if (obj5) { | |
17095 | { | |
17096 | arg6 = wxString_in_helper(obj5); | |
17097 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 17098 | temp6 = true; |
d55e5bfc RD |
17099 | } |
17100 | } | |
17101 | { | |
0439c23b | 17102 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17104 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17105 | ||
17106 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17107 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 17108 | } |
b0f7404b | 17109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
17110 | { |
17111 | if (temp6) | |
17112 | delete arg6; | |
17113 | } | |
17114 | return resultobj; | |
17115 | fail: | |
17116 | { | |
17117 | if (temp6) | |
17118 | delete arg6; | |
17119 | } | |
17120 | return NULL; | |
17121 | } | |
17122 | ||
17123 | ||
c370783e | 17124 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17125 | PyObject *resultobj; |
17126 | wxNotebook *result; | |
17127 | char *kwnames[] = { | |
17128 | NULL | |
17129 | }; | |
17130 | ||
17131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
17132 | { | |
0439c23b | 17133 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17135 | result = (wxNotebook *)new wxNotebook(); | |
17136 | ||
17137 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17138 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 17139 | } |
b0f7404b | 17140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
17141 | return resultobj; |
17142 | fail: | |
17143 | return NULL; | |
17144 | } | |
17145 | ||
17146 | ||
c370783e | 17147 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17148 | PyObject *resultobj; |
17149 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17150 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 17151 | int arg3 = (int) -1 ; |
d55e5bfc RD |
17152 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17153 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17154 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17155 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17156 | long arg6 = (long) 0 ; | |
51b83b37 | 17157 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; |
d55e5bfc RD |
17158 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
17159 | bool result; | |
17160 | wxPoint temp4 ; | |
17161 | wxSize temp5 ; | |
b411df4a | 17162 | bool temp7 = false ; |
d55e5bfc RD |
17163 | PyObject * obj0 = 0 ; |
17164 | PyObject * obj1 = 0 ; | |
17165 | PyObject * obj2 = 0 ; | |
17166 | PyObject * obj3 = 0 ; | |
17167 | PyObject * obj4 = 0 ; | |
17168 | PyObject * obj5 = 0 ; | |
17169 | PyObject * obj6 = 0 ; | |
17170 | char *kwnames[] = { | |
17171 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17172 | }; | |
17173 | ||
bfddbb17 | 17174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36ed4f51 RD |
17175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17177 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17178 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 17179 | if (obj2) { |
36ed4f51 RD |
17180 | { |
17181 | arg3 = (int)(SWIG_As_int(obj2)); | |
17182 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17183 | } | |
bfddbb17 | 17184 | } |
d55e5bfc RD |
17185 | if (obj3) { |
17186 | { | |
17187 | arg4 = &temp4; | |
17188 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17189 | } | |
17190 | } | |
17191 | if (obj4) { | |
17192 | { | |
17193 | arg5 = &temp5; | |
17194 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17195 | } | |
17196 | } | |
17197 | if (obj5) { | |
36ed4f51 RD |
17198 | { |
17199 | arg6 = (long)(SWIG_As_long(obj5)); | |
17200 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17201 | } | |
d55e5bfc RD |
17202 | } |
17203 | if (obj6) { | |
17204 | { | |
17205 | arg7 = wxString_in_helper(obj6); | |
17206 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 17207 | temp7 = true; |
d55e5bfc RD |
17208 | } |
17209 | } | |
17210 | { | |
17211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17212 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17213 | ||
17214 | wxPyEndAllowThreads(__tstate); | |
17215 | if (PyErr_Occurred()) SWIG_fail; | |
17216 | } | |
17217 | { | |
17218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17219 | } | |
17220 | { | |
17221 | if (temp7) | |
17222 | delete arg7; | |
17223 | } | |
17224 | return resultobj; | |
17225 | fail: | |
17226 | { | |
17227 | if (temp7) | |
17228 | delete arg7; | |
17229 | } | |
17230 | return NULL; | |
17231 | } | |
17232 | ||
17233 | ||
c370783e | 17234 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17235 | PyObject *resultobj; |
17236 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17237 | int result; | |
17238 | PyObject * obj0 = 0 ; | |
17239 | char *kwnames[] = { | |
17240 | (char *) "self", NULL | |
17241 | }; | |
17242 | ||
17243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
17244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17246 | { |
17247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17248 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
17249 | ||
17250 | wxPyEndAllowThreads(__tstate); | |
17251 | if (PyErr_Occurred()) SWIG_fail; | |
17252 | } | |
36ed4f51 RD |
17253 | { |
17254 | resultobj = SWIG_From_int((int)(result)); | |
17255 | } | |
d55e5bfc RD |
17256 | return resultobj; |
17257 | fail: | |
17258 | return NULL; | |
17259 | } | |
17260 | ||
17261 | ||
c370783e | 17262 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17263 | PyObject *resultobj; |
17264 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17265 | wxSize *arg2 = 0 ; | |
17266 | wxSize temp2 ; | |
17267 | PyObject * obj0 = 0 ; | |
17268 | PyObject * obj1 = 0 ; | |
17269 | char *kwnames[] = { | |
17270 | (char *) "self",(char *) "padding", NULL | |
17271 | }; | |
17272 | ||
17273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17276 | { |
17277 | arg2 = &temp2; | |
17278 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17279 | } | |
17280 | { | |
17281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17282 | (arg1)->SetPadding((wxSize const &)*arg2); | |
17283 | ||
17284 | wxPyEndAllowThreads(__tstate); | |
17285 | if (PyErr_Occurred()) SWIG_fail; | |
17286 | } | |
17287 | Py_INCREF(Py_None); resultobj = Py_None; | |
17288 | return resultobj; | |
17289 | fail: | |
17290 | return NULL; | |
17291 | } | |
17292 | ||
17293 | ||
c370783e | 17294 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17295 | PyObject *resultobj; |
17296 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17297 | wxSize *arg2 = 0 ; | |
17298 | wxSize temp2 ; | |
17299 | PyObject * obj0 = 0 ; | |
17300 | PyObject * obj1 = 0 ; | |
17301 | char *kwnames[] = { | |
17302 | (char *) "self",(char *) "sz", NULL | |
17303 | }; | |
17304 | ||
17305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17308 | { |
17309 | arg2 = &temp2; | |
17310 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17311 | } | |
17312 | { | |
17313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17314 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
17315 | ||
17316 | wxPyEndAllowThreads(__tstate); | |
17317 | if (PyErr_Occurred()) SWIG_fail; | |
17318 | } | |
17319 | Py_INCREF(Py_None); resultobj = Py_None; | |
17320 | return resultobj; | |
17321 | fail: | |
17322 | return NULL; | |
17323 | } | |
17324 | ||
17325 | ||
c370783e | 17326 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17327 | PyObject *resultobj; |
17328 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17329 | wxPoint *arg2 = 0 ; | |
17330 | long *arg3 = (long *) 0 ; | |
17331 | int result; | |
17332 | wxPoint temp2 ; | |
17333 | long temp3 ; | |
c370783e | 17334 | int res3 = 0 ; |
d55e5bfc RD |
17335 | PyObject * obj0 = 0 ; |
17336 | PyObject * obj1 = 0 ; | |
17337 | char *kwnames[] = { | |
17338 | (char *) "self",(char *) "pt", NULL | |
17339 | }; | |
17340 | ||
c370783e | 17341 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc | 17342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
17343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17345 | { |
17346 | arg2 = &temp2; | |
17347 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17348 | } | |
17349 | { | |
17350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17351 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
17352 | ||
17353 | wxPyEndAllowThreads(__tstate); | |
17354 | if (PyErr_Occurred()) SWIG_fail; | |
17355 | } | |
36ed4f51 RD |
17356 | { |
17357 | resultobj = SWIG_From_int((int)(result)); | |
17358 | } | |
c370783e RD |
17359 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
17360 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
17361 | return resultobj; |
17362 | fail: | |
17363 | return NULL; | |
17364 | } | |
17365 | ||
17366 | ||
c370783e | 17367 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17368 | PyObject *resultobj; |
17369 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17370 | wxSize *arg2 = 0 ; | |
17371 | wxSize result; | |
17372 | wxSize temp2 ; | |
17373 | PyObject * obj0 = 0 ; | |
17374 | PyObject * obj1 = 0 ; | |
17375 | char *kwnames[] = { | |
17376 | (char *) "self",(char *) "sizePage", NULL | |
17377 | }; | |
17378 | ||
17379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
17380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17382 | { |
17383 | arg2 = &temp2; | |
17384 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17385 | } | |
17386 | { | |
17387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17388 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
17389 | ||
17390 | wxPyEndAllowThreads(__tstate); | |
17391 | if (PyErr_Occurred()) SWIG_fail; | |
17392 | } | |
17393 | { | |
17394 | wxSize * resultptr; | |
36ed4f51 | 17395 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
17396 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
17397 | } | |
17398 | return resultobj; | |
17399 | fail: | |
17400 | return NULL; | |
17401 | } | |
17402 | ||
17403 | ||
091fdbfa RD |
17404 | static PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
17405 | PyObject *resultobj; | |
17406 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17407 | wxColour result; | |
17408 | PyObject * obj0 = 0 ; | |
17409 | char *kwnames[] = { | |
17410 | (char *) "self", NULL | |
17411 | }; | |
17412 | ||
17413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetThemeBackgroundColour",kwnames,&obj0)) goto fail; | |
17414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17416 | { | |
17417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17418 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
17419 | ||
17420 | wxPyEndAllowThreads(__tstate); | |
17421 | if (PyErr_Occurred()) SWIG_fail; | |
17422 | } | |
17423 | { | |
17424 | wxColour * resultptr; | |
17425 | resultptr = new wxColour((wxColour &)(result)); | |
17426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17427 | } | |
17428 | return resultobj; | |
17429 | fail: | |
17430 | return NULL; | |
17431 | } | |
17432 | ||
17433 | ||
c370783e | 17434 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 17435 | PyObject *resultobj; |
36ed4f51 | 17436 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
17437 | wxVisualAttributes result; |
17438 | PyObject * obj0 = 0 ; | |
17439 | char *kwnames[] = { | |
17440 | (char *) "variant", NULL | |
17441 | }; | |
17442 | ||
17443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
17444 | if (obj0) { | |
36ed4f51 RD |
17445 | { |
17446 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
17447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17448 | } | |
f20a2e1f RD |
17449 | } |
17450 | { | |
0439c23b | 17451 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
17452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17453 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
17454 | ||
17455 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17456 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
17457 | } |
17458 | { | |
17459 | wxVisualAttributes * resultptr; | |
36ed4f51 | 17460 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
17461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
17462 | } | |
17463 | return resultobj; | |
17464 | fail: | |
17465 | return NULL; | |
17466 | } | |
17467 | ||
17468 | ||
c370783e | 17469 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17470 | PyObject *obj; |
17471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17472 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
17473 | Py_INCREF(obj); | |
17474 | return Py_BuildValue((char *)""); | |
17475 | } | |
c370783e | 17476 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17477 | PyObject *resultobj; |
17478 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17479 | int arg2 = (int) 0 ; | |
17480 | int arg3 = (int) -1 ; | |
17481 | int arg4 = (int) -1 ; | |
17482 | wxNotebookEvent *result; | |
17483 | PyObject * obj0 = 0 ; | |
17484 | PyObject * obj1 = 0 ; | |
17485 | PyObject * obj2 = 0 ; | |
17486 | PyObject * obj3 = 0 ; | |
17487 | char *kwnames[] = { | |
17488 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17489 | }; | |
17490 | ||
17491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17492 | if (obj0) { | |
36ed4f51 RD |
17493 | { |
17494 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17496 | } | |
d55e5bfc RD |
17497 | } |
17498 | if (obj1) { | |
36ed4f51 RD |
17499 | { |
17500 | arg2 = (int)(SWIG_As_int(obj1)); | |
17501 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17502 | } | |
d55e5bfc RD |
17503 | } |
17504 | if (obj2) { | |
36ed4f51 RD |
17505 | { |
17506 | arg3 = (int)(SWIG_As_int(obj2)); | |
17507 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17508 | } | |
d55e5bfc RD |
17509 | } |
17510 | if (obj3) { | |
36ed4f51 RD |
17511 | { |
17512 | arg4 = (int)(SWIG_As_int(obj3)); | |
17513 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17514 | } | |
d55e5bfc RD |
17515 | } |
17516 | { | |
17517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17518 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
17519 | ||
17520 | wxPyEndAllowThreads(__tstate); | |
17521 | if (PyErr_Occurred()) SWIG_fail; | |
17522 | } | |
17523 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
17524 | return resultobj; | |
17525 | fail: | |
17526 | return NULL; | |
17527 | } | |
17528 | ||
17529 | ||
c370783e | 17530 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17531 | PyObject *obj; |
17532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17533 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
17534 | Py_INCREF(obj); | |
17535 | return Py_BuildValue((char *)""); | |
17536 | } | |
c370783e | 17537 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17538 | PyObject *resultobj; |
17539 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17540 | int arg2 = (int) -1 ; | |
17541 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17542 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17543 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17544 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17545 | long arg5 = (long) 0 ; | |
17546 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17547 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17548 | wxListbook *result; | |
17549 | wxPoint temp3 ; | |
17550 | wxSize temp4 ; | |
b411df4a | 17551 | bool temp6 = false ; |
d55e5bfc RD |
17552 | PyObject * obj0 = 0 ; |
17553 | PyObject * obj1 = 0 ; | |
17554 | PyObject * obj2 = 0 ; | |
17555 | PyObject * obj3 = 0 ; | |
17556 | PyObject * obj4 = 0 ; | |
17557 | PyObject * obj5 = 0 ; | |
17558 | char *kwnames[] = { | |
17559 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17560 | }; | |
17561 | ||
17562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
17563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 17565 | if (obj1) { |
36ed4f51 RD |
17566 | { |
17567 | arg2 = (int)(SWIG_As_int(obj1)); | |
17568 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17569 | } | |
d55e5bfc RD |
17570 | } |
17571 | if (obj2) { | |
17572 | { | |
17573 | arg3 = &temp3; | |
17574 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17575 | } | |
17576 | } | |
17577 | if (obj3) { | |
17578 | { | |
17579 | arg4 = &temp4; | |
17580 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17581 | } | |
17582 | } | |
17583 | if (obj4) { | |
36ed4f51 RD |
17584 | { |
17585 | arg5 = (long)(SWIG_As_long(obj4)); | |
17586 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17587 | } | |
d55e5bfc RD |
17588 | } |
17589 | if (obj5) { | |
17590 | { | |
17591 | arg6 = wxString_in_helper(obj5); | |
17592 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 17593 | temp6 = true; |
d55e5bfc RD |
17594 | } |
17595 | } | |
17596 | { | |
0439c23b | 17597 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17599 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17600 | ||
17601 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17602 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17603 | } |
17604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
17605 | { | |
17606 | if (temp6) | |
17607 | delete arg6; | |
17608 | } | |
17609 | return resultobj; | |
17610 | fail: | |
17611 | { | |
17612 | if (temp6) | |
17613 | delete arg6; | |
17614 | } | |
17615 | return NULL; | |
17616 | } | |
17617 | ||
17618 | ||
c370783e | 17619 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17620 | PyObject *resultobj; |
17621 | wxListbook *result; | |
17622 | char *kwnames[] = { | |
17623 | NULL | |
17624 | }; | |
17625 | ||
17626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
17627 | { | |
0439c23b | 17628 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17630 | result = (wxListbook *)new wxListbook(); | |
17631 | ||
17632 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17633 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17634 | } |
17635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
17636 | return resultobj; | |
17637 | fail: | |
17638 | return NULL; | |
17639 | } | |
17640 | ||
17641 | ||
c370783e | 17642 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17643 | PyObject *resultobj; |
17644 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 17646 | int arg3 = (int) -1 ; |
d55e5bfc RD |
17647 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17648 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17649 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17650 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17651 | long arg6 = (long) 0 ; | |
17652 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17653 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17654 | bool result; | |
17655 | wxPoint temp4 ; | |
17656 | wxSize temp5 ; | |
b411df4a | 17657 | bool temp7 = false ; |
d55e5bfc RD |
17658 | PyObject * obj0 = 0 ; |
17659 | PyObject * obj1 = 0 ; | |
17660 | PyObject * obj2 = 0 ; | |
17661 | PyObject * obj3 = 0 ; | |
17662 | PyObject * obj4 = 0 ; | |
17663 | PyObject * obj5 = 0 ; | |
17664 | PyObject * obj6 = 0 ; | |
17665 | char *kwnames[] = { | |
17666 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17667 | }; | |
17668 | ||
bfddbb17 | 17669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36ed4f51 RD |
17670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17672 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17673 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 17674 | if (obj2) { |
36ed4f51 RD |
17675 | { |
17676 | arg3 = (int)(SWIG_As_int(obj2)); | |
17677 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17678 | } | |
bfddbb17 | 17679 | } |
d55e5bfc RD |
17680 | if (obj3) { |
17681 | { | |
17682 | arg4 = &temp4; | |
17683 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17684 | } | |
17685 | } | |
17686 | if (obj4) { | |
17687 | { | |
17688 | arg5 = &temp5; | |
17689 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17690 | } | |
17691 | } | |
17692 | if (obj5) { | |
36ed4f51 RD |
17693 | { |
17694 | arg6 = (long)(SWIG_As_long(obj5)); | |
17695 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17696 | } | |
d55e5bfc RD |
17697 | } |
17698 | if (obj6) { | |
17699 | { | |
17700 | arg7 = wxString_in_helper(obj6); | |
17701 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 17702 | temp7 = true; |
d55e5bfc RD |
17703 | } |
17704 | } | |
17705 | { | |
17706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17707 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17708 | ||
17709 | wxPyEndAllowThreads(__tstate); | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
17711 | } | |
17712 | { | |
17713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17714 | } | |
17715 | { | |
17716 | if (temp7) | |
17717 | delete arg7; | |
17718 | } | |
17719 | return resultobj; | |
17720 | fail: | |
17721 | { | |
17722 | if (temp7) | |
17723 | delete arg7; | |
17724 | } | |
17725 | return NULL; | |
17726 | } | |
17727 | ||
17728 | ||
c370783e | 17729 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17730 | PyObject *resultobj; |
17731 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17732 | bool result; | |
17733 | PyObject * obj0 = 0 ; | |
17734 | char *kwnames[] = { | |
17735 | (char *) "self", NULL | |
17736 | }; | |
17737 | ||
17738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
17739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17741 | { |
17742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17743 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
17744 | ||
17745 | wxPyEndAllowThreads(__tstate); | |
17746 | if (PyErr_Occurred()) SWIG_fail; | |
17747 | } | |
17748 | { | |
17749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17750 | } | |
17751 | return resultobj; | |
17752 | fail: | |
17753 | return NULL; | |
17754 | } | |
17755 | ||
17756 | ||
44bf767a RD |
17757 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
17758 | PyObject *resultobj; | |
17759 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17760 | wxListView *result; | |
17761 | PyObject * obj0 = 0 ; | |
17762 | char *kwnames[] = { | |
17763 | (char *) "self", NULL | |
17764 | }; | |
17765 | ||
17766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
17767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
44bf767a RD |
17769 | { |
17770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17771 | result = (wxListView *)(arg1)->GetListView(); | |
17772 | ||
17773 | wxPyEndAllowThreads(__tstate); | |
17774 | if (PyErr_Occurred()) SWIG_fail; | |
17775 | } | |
17776 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
17777 | return resultobj; | |
17778 | fail: | |
17779 | return NULL; | |
17780 | } | |
17781 | ||
17782 | ||
c370783e | 17783 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17784 | PyObject *obj; |
17785 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17786 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
17787 | Py_INCREF(obj); | |
17788 | return Py_BuildValue((char *)""); | |
17789 | } | |
c370783e | 17790 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17791 | PyObject *resultobj; |
17792 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17793 | int arg2 = (int) 0 ; | |
17794 | int arg3 = (int) -1 ; | |
17795 | int arg4 = (int) -1 ; | |
17796 | wxListbookEvent *result; | |
17797 | PyObject * obj0 = 0 ; | |
17798 | PyObject * obj1 = 0 ; | |
17799 | PyObject * obj2 = 0 ; | |
17800 | PyObject * obj3 = 0 ; | |
17801 | char *kwnames[] = { | |
17802 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17803 | }; | |
17804 | ||
17805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17806 | if (obj0) { | |
36ed4f51 RD |
17807 | { |
17808 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17810 | } | |
d55e5bfc RD |
17811 | } |
17812 | if (obj1) { | |
36ed4f51 RD |
17813 | { |
17814 | arg2 = (int)(SWIG_As_int(obj1)); | |
17815 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17816 | } | |
d55e5bfc RD |
17817 | } |
17818 | if (obj2) { | |
36ed4f51 RD |
17819 | { |
17820 | arg3 = (int)(SWIG_As_int(obj2)); | |
17821 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17822 | } | |
d55e5bfc RD |
17823 | } |
17824 | if (obj3) { | |
36ed4f51 RD |
17825 | { |
17826 | arg4 = (int)(SWIG_As_int(obj3)); | |
17827 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17828 | } | |
d55e5bfc RD |
17829 | } |
17830 | { | |
17831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17832 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
17833 | ||
17834 | wxPyEndAllowThreads(__tstate); | |
17835 | if (PyErr_Occurred()) SWIG_fail; | |
17836 | } | |
17837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
17838 | return resultobj; | |
17839 | fail: | |
17840 | return NULL; | |
17841 | } | |
17842 | ||
17843 | ||
c370783e | 17844 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17845 | PyObject *obj; |
17846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17847 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
17848 | Py_INCREF(obj); | |
17849 | return Py_BuildValue((char *)""); | |
17850 | } | |
b411df4a RD |
17851 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { |
17852 | PyObject *resultobj; | |
17853 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17854 | int arg2 ; | |
17855 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17856 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17857 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17858 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17859 | long arg5 = (long) 0 ; | |
17860 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17861 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17862 | wxChoicebook *result; | |
17863 | wxPoint temp3 ; | |
17864 | wxSize temp4 ; | |
17865 | bool temp6 = false ; | |
17866 | PyObject * obj0 = 0 ; | |
17867 | PyObject * obj1 = 0 ; | |
17868 | PyObject * obj2 = 0 ; | |
17869 | PyObject * obj3 = 0 ; | |
17870 | PyObject * obj4 = 0 ; | |
17871 | PyObject * obj5 = 0 ; | |
17872 | char *kwnames[] = { | |
17873 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17874 | }; | |
17875 | ||
17876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
17877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17879 | { | |
17880 | arg2 = (int)(SWIG_As_int(obj1)); | |
17881 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17882 | } | |
b411df4a RD |
17883 | if (obj2) { |
17884 | { | |
17885 | arg3 = &temp3; | |
17886 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17887 | } | |
17888 | } | |
17889 | if (obj3) { | |
17890 | { | |
17891 | arg4 = &temp4; | |
17892 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17893 | } | |
17894 | } | |
17895 | if (obj4) { | |
36ed4f51 RD |
17896 | { |
17897 | arg5 = (long)(SWIG_As_long(obj4)); | |
17898 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17899 | } | |
b411df4a RD |
17900 | } |
17901 | if (obj5) { | |
17902 | { | |
17903 | arg6 = wxString_in_helper(obj5); | |
17904 | if (arg6 == NULL) SWIG_fail; | |
17905 | temp6 = true; | |
17906 | } | |
17907 | } | |
17908 | { | |
17909 | if (!wxPyCheckForApp()) SWIG_fail; | |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
17917 | { | |
17918 | if (temp6) | |
17919 | delete arg6; | |
17920 | } | |
17921 | return resultobj; | |
17922 | fail: | |
17923 | { | |
17924 | if (temp6) | |
17925 | delete arg6; | |
17926 | } | |
17927 | return NULL; | |
17928 | } | |
17929 | ||
17930 | ||
17931 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
17932 | PyObject *resultobj; | |
17933 | wxChoicebook *result; | |
17934 | char *kwnames[] = { | |
17935 | NULL | |
17936 | }; | |
17937 | ||
17938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
17939 | { | |
17940 | if (!wxPyCheckForApp()) SWIG_fail; | |
17941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17942 | result = (wxChoicebook *)new wxChoicebook(); | |
17943 | ||
17944 | wxPyEndAllowThreads(__tstate); | |
17945 | if (PyErr_Occurred()) SWIG_fail; | |
17946 | } | |
17947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
17948 | return resultobj; | |
17949 | fail: | |
17950 | return NULL; | |
17951 | } | |
17952 | ||
17953 | ||
17954 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
17955 | PyObject *resultobj; | |
17956 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
17957 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17958 | int arg3 ; | |
17959 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17960 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17961 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17962 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17963 | long arg6 = (long) 0 ; | |
17964 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17965 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17966 | bool result; | |
17967 | wxPoint temp4 ; | |
17968 | wxSize temp5 ; | |
17969 | bool temp7 = false ; | |
17970 | PyObject * obj0 = 0 ; | |
17971 | PyObject * obj1 = 0 ; | |
17972 | PyObject * obj2 = 0 ; | |
17973 | PyObject * obj3 = 0 ; | |
17974 | PyObject * obj4 = 0 ; | |
17975 | PyObject * obj5 = 0 ; | |
17976 | PyObject * obj6 = 0 ; | |
17977 | char *kwnames[] = { | |
17978 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17979 | }; | |
17980 | ||
17981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
17982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
17983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17984 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17985 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17986 | { | |
17987 | arg3 = (int)(SWIG_As_int(obj2)); | |
17988 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17989 | } | |
b411df4a RD |
17990 | if (obj3) { |
17991 | { | |
17992 | arg4 = &temp4; | |
17993 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17994 | } | |
17995 | } | |
17996 | if (obj4) { | |
17997 | { | |
17998 | arg5 = &temp5; | |
17999 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18000 | } | |
18001 | } | |
18002 | if (obj5) { | |
36ed4f51 RD |
18003 | { |
18004 | arg6 = (long)(SWIG_As_long(obj5)); | |
18005 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18006 | } | |
b411df4a RD |
18007 | } |
18008 | if (obj6) { | |
18009 | { | |
18010 | arg7 = wxString_in_helper(obj6); | |
18011 | if (arg7 == NULL) SWIG_fail; | |
18012 | temp7 = true; | |
18013 | } | |
18014 | } | |
18015 | { | |
18016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18017 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18018 | ||
18019 | wxPyEndAllowThreads(__tstate); | |
18020 | if (PyErr_Occurred()) SWIG_fail; | |
18021 | } | |
18022 | { | |
18023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18024 | } | |
18025 | { | |
18026 | if (temp7) | |
18027 | delete arg7; | |
18028 | } | |
18029 | return resultobj; | |
18030 | fail: | |
18031 | { | |
18032 | if (temp7) | |
18033 | delete arg7; | |
18034 | } | |
18035 | return NULL; | |
18036 | } | |
18037 | ||
18038 | ||
18039 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
18040 | PyObject *resultobj; | |
18041 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18042 | bool result; | |
18043 | PyObject * obj0 = 0 ; | |
18044 | char *kwnames[] = { | |
18045 | (char *) "self", NULL | |
18046 | }; | |
18047 | ||
18048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b411df4a RD |
18051 | { |
18052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18053 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
18054 | ||
18055 | wxPyEndAllowThreads(__tstate); | |
18056 | if (PyErr_Occurred()) SWIG_fail; | |
18057 | } | |
18058 | { | |
18059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18060 | } | |
18061 | return resultobj; | |
18062 | fail: | |
18063 | return NULL; | |
18064 | } | |
18065 | ||
18066 | ||
7993762b RD |
18067 | static PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
18068 | PyObject *resultobj; | |
18069 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18070 | wxChoice *result; | |
18071 | PyObject * obj0 = 0 ; | |
18072 | char *kwnames[] = { | |
18073 | (char *) "self", NULL | |
18074 | }; | |
18075 | ||
18076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_GetChoiceCtrl",kwnames,&obj0)) goto fail; | |
18077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18079 | { | |
18080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18081 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
18082 | ||
18083 | wxPyEndAllowThreads(__tstate); | |
18084 | if (PyErr_Occurred()) SWIG_fail; | |
18085 | } | |
18086 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 0); | |
18087 | return resultobj; | |
18088 | fail: | |
18089 | return NULL; | |
18090 | } | |
18091 | ||
18092 | ||
b411df4a RD |
18093 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
18094 | PyObject *resultobj; | |
18095 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18096 | bool result; | |
18097 | PyObject * obj0 = 0 ; | |
18098 | char *kwnames[] = { | |
18099 | (char *) "self", NULL | |
18100 | }; | |
18101 | ||
18102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b411df4a RD |
18105 | { |
18106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18107 | result = (bool)(arg1)->DeleteAllPages(); | |
18108 | ||
18109 | wxPyEndAllowThreads(__tstate); | |
18110 | if (PyErr_Occurred()) SWIG_fail; | |
18111 | } | |
18112 | { | |
18113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18114 | } | |
18115 | return resultobj; | |
18116 | fail: | |
18117 | return NULL; | |
18118 | } | |
18119 | ||
18120 | ||
18121 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
18122 | PyObject *obj; | |
18123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18124 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
18125 | Py_INCREF(obj); | |
18126 | return Py_BuildValue((char *)""); | |
18127 | } | |
18128 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
18129 | PyObject *resultobj; | |
18130 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18131 | int arg2 = (int) 0 ; | |
18132 | int arg3 = (int) -1 ; | |
18133 | int arg4 = (int) -1 ; | |
18134 | wxChoicebookEvent *result; | |
18135 | PyObject * obj0 = 0 ; | |
18136 | PyObject * obj1 = 0 ; | |
18137 | PyObject * obj2 = 0 ; | |
18138 | PyObject * obj3 = 0 ; | |
18139 | char *kwnames[] = { | |
18140 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18141 | }; | |
18142 | ||
18143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18144 | if (obj0) { | |
36ed4f51 RD |
18145 | { |
18146 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
18147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18148 | } | |
b411df4a RD |
18149 | } |
18150 | if (obj1) { | |
36ed4f51 RD |
18151 | { |
18152 | arg2 = (int)(SWIG_As_int(obj1)); | |
18153 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18154 | } | |
b411df4a RD |
18155 | } |
18156 | if (obj2) { | |
36ed4f51 RD |
18157 | { |
18158 | arg3 = (int)(SWIG_As_int(obj2)); | |
18159 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18160 | } | |
b411df4a RD |
18161 | } |
18162 | if (obj3) { | |
36ed4f51 RD |
18163 | { |
18164 | arg4 = (int)(SWIG_As_int(obj3)); | |
18165 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18166 | } | |
b411df4a RD |
18167 | } |
18168 | { | |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
18171 | ||
18172 | wxPyEndAllowThreads(__tstate); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
18175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
18183 | PyObject *obj; | |
18184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18185 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
18186 | Py_INCREF(obj); | |
18187 | return Py_BuildValue((char *)""); | |
18188 | } | |
c370783e | 18189 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18190 | PyObject *resultobj; |
18191 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18192 | int result; | |
18193 | PyObject * obj0 = 0 ; | |
18194 | char *kwnames[] = { | |
18195 | (char *) "self", NULL | |
18196 | }; | |
18197 | ||
18198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18201 | { |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | result = (int)(arg1)->GetId(); | |
18204 | ||
18205 | wxPyEndAllowThreads(__tstate); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | } | |
36ed4f51 RD |
18208 | { |
18209 | resultobj = SWIG_From_int((int)(result)); | |
18210 | } | |
d55e5bfc RD |
18211 | return resultobj; |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
c370783e | 18217 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18218 | PyObject *resultobj; |
18219 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18220 | wxControl *result; | |
18221 | PyObject * obj0 = 0 ; | |
18222 | char *kwnames[] = { | |
18223 | (char *) "self", NULL | |
18224 | }; | |
18225 | ||
18226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18229 | { |
18230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18231 | result = (wxControl *)(arg1)->GetControl(); | |
18232 | ||
18233 | wxPyEndAllowThreads(__tstate); | |
18234 | if (PyErr_Occurred()) SWIG_fail; | |
18235 | } | |
18236 | { | |
412d302d | 18237 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18238 | } |
18239 | return resultobj; | |
18240 | fail: | |
18241 | return NULL; | |
18242 | } | |
18243 | ||
18244 | ||
c370783e | 18245 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18246 | PyObject *resultobj; |
18247 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18248 | wxToolBarBase *result; | |
18249 | PyObject * obj0 = 0 ; | |
18250 | char *kwnames[] = { | |
18251 | (char *) "self", NULL | |
18252 | }; | |
18253 | ||
18254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18257 | { |
18258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18259 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
18260 | ||
18261 | wxPyEndAllowThreads(__tstate); | |
18262 | if (PyErr_Occurred()) SWIG_fail; | |
18263 | } | |
18264 | { | |
412d302d | 18265 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18266 | } |
18267 | return resultobj; | |
18268 | fail: | |
18269 | return NULL; | |
18270 | } | |
18271 | ||
18272 | ||
c370783e | 18273 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18274 | PyObject *resultobj; |
18275 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18276 | int result; | |
18277 | PyObject * obj0 = 0 ; | |
18278 | char *kwnames[] = { | |
18279 | (char *) "self", NULL | |
18280 | }; | |
18281 | ||
18282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18285 | { |
18286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18287 | result = (int)(arg1)->IsButton(); | |
18288 | ||
18289 | wxPyEndAllowThreads(__tstate); | |
18290 | if (PyErr_Occurred()) SWIG_fail; | |
18291 | } | |
36ed4f51 RD |
18292 | { |
18293 | resultobj = SWIG_From_int((int)(result)); | |
18294 | } | |
d55e5bfc RD |
18295 | return resultobj; |
18296 | fail: | |
18297 | return NULL; | |
18298 | } | |
18299 | ||
18300 | ||
c370783e | 18301 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18302 | PyObject *resultobj; |
18303 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18304 | int result; | |
18305 | PyObject * obj0 = 0 ; | |
18306 | char *kwnames[] = { | |
18307 | (char *) "self", NULL | |
18308 | }; | |
18309 | ||
18310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18313 | { |
18314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18315 | result = (int)(arg1)->IsControl(); | |
18316 | ||
18317 | wxPyEndAllowThreads(__tstate); | |
18318 | if (PyErr_Occurred()) SWIG_fail; | |
18319 | } | |
36ed4f51 RD |
18320 | { |
18321 | resultobj = SWIG_From_int((int)(result)); | |
18322 | } | |
d55e5bfc RD |
18323 | return resultobj; |
18324 | fail: | |
18325 | return NULL; | |
18326 | } | |
18327 | ||
18328 | ||
c370783e | 18329 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18330 | PyObject *resultobj; |
18331 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18332 | int result; | |
18333 | PyObject * obj0 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "self", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18341 | { |
18342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18343 | result = (int)(arg1)->IsSeparator(); | |
18344 | ||
18345 | wxPyEndAllowThreads(__tstate); | |
18346 | if (PyErr_Occurred()) SWIG_fail; | |
18347 | } | |
36ed4f51 RD |
18348 | { |
18349 | resultobj = SWIG_From_int((int)(result)); | |
18350 | } | |
d55e5bfc RD |
18351 | return resultobj; |
18352 | fail: | |
18353 | return NULL; | |
18354 | } | |
18355 | ||
18356 | ||
c370783e | 18357 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18358 | PyObject *resultobj; |
18359 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18360 | int result; | |
18361 | PyObject * obj0 = 0 ; | |
18362 | char *kwnames[] = { | |
18363 | (char *) "self", NULL | |
18364 | }; | |
18365 | ||
18366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18369 | { |
18370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18371 | result = (int)(arg1)->GetStyle(); | |
18372 | ||
18373 | wxPyEndAllowThreads(__tstate); | |
18374 | if (PyErr_Occurred()) SWIG_fail; | |
18375 | } | |
36ed4f51 RD |
18376 | { |
18377 | resultobj = SWIG_From_int((int)(result)); | |
18378 | } | |
d55e5bfc RD |
18379 | return resultobj; |
18380 | fail: | |
18381 | return NULL; | |
18382 | } | |
18383 | ||
18384 | ||
c370783e | 18385 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18386 | PyObject *resultobj; |
18387 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
36ed4f51 | 18388 | wxItemKind result; |
d55e5bfc RD |
18389 | PyObject * obj0 = 0 ; |
18390 | char *kwnames[] = { | |
18391 | (char *) "self", NULL | |
18392 | }; | |
18393 | ||
18394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18397 | { |
18398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 18399 | result = (wxItemKind)(arg1)->GetKind(); |
d55e5bfc RD |
18400 | |
18401 | wxPyEndAllowThreads(__tstate); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | } | |
36ed4f51 | 18404 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
18405 | return resultobj; |
18406 | fail: | |
18407 | return NULL; | |
18408 | } | |
18409 | ||
18410 | ||
c370783e | 18411 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18412 | PyObject *resultobj; |
18413 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18414 | bool result; | |
18415 | PyObject * obj0 = 0 ; | |
18416 | char *kwnames[] = { | |
18417 | (char *) "self", NULL | |
18418 | }; | |
18419 | ||
18420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18423 | { |
18424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18425 | result = (bool)(arg1)->IsEnabled(); | |
18426 | ||
18427 | wxPyEndAllowThreads(__tstate); | |
18428 | if (PyErr_Occurred()) SWIG_fail; | |
18429 | } | |
18430 | { | |
18431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18432 | } | |
18433 | return resultobj; | |
18434 | fail: | |
18435 | return NULL; | |
18436 | } | |
18437 | ||
18438 | ||
c370783e | 18439 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18440 | PyObject *resultobj; |
18441 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18442 | bool result; | |
18443 | PyObject * obj0 = 0 ; | |
18444 | char *kwnames[] = { | |
18445 | (char *) "self", NULL | |
18446 | }; | |
18447 | ||
18448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18451 | { |
18452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18453 | result = (bool)(arg1)->IsToggled(); | |
18454 | ||
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | { | |
18459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18460 | } | |
18461 | return resultobj; | |
18462 | fail: | |
18463 | return NULL; | |
18464 | } | |
18465 | ||
18466 | ||
c370783e | 18467 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18468 | PyObject *resultobj; |
18469 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18470 | bool result; | |
18471 | PyObject * obj0 = 0 ; | |
18472 | char *kwnames[] = { | |
18473 | (char *) "self", NULL | |
18474 | }; | |
18475 | ||
18476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18479 | { |
18480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18481 | result = (bool)(arg1)->CanBeToggled(); | |
18482 | ||
18483 | wxPyEndAllowThreads(__tstate); | |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
18485 | } | |
18486 | { | |
18487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18488 | } | |
18489 | return resultobj; | |
18490 | fail: | |
18491 | return NULL; | |
18492 | } | |
18493 | ||
18494 | ||
c370783e | 18495 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18496 | PyObject *resultobj; |
18497 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18498 | wxBitmap *result; | |
18499 | PyObject * obj0 = 0 ; | |
18500 | char *kwnames[] = { | |
18501 | (char *) "self", NULL | |
18502 | }; | |
18503 | ||
18504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18507 | { |
18508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18509 | { | |
18510 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
18511 | result = (wxBitmap *) &_result_ref; | |
18512 | } | |
18513 | ||
18514 | wxPyEndAllowThreads(__tstate); | |
18515 | if (PyErr_Occurred()) SWIG_fail; | |
18516 | } | |
18517 | { | |
18518 | wxBitmap* resultptr = new wxBitmap(*result); | |
18519 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18520 | } | |
18521 | return resultobj; | |
18522 | fail: | |
18523 | return NULL; | |
18524 | } | |
18525 | ||
18526 | ||
c370783e | 18527 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18528 | PyObject *resultobj; |
18529 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18530 | wxBitmap *result; | |
18531 | PyObject * obj0 = 0 ; | |
18532 | char *kwnames[] = { | |
18533 | (char *) "self", NULL | |
18534 | }; | |
18535 | ||
18536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18539 | { |
18540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18541 | { | |
18542 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
18543 | result = (wxBitmap *) &_result_ref; | |
18544 | } | |
18545 | ||
18546 | wxPyEndAllowThreads(__tstate); | |
18547 | if (PyErr_Occurred()) SWIG_fail; | |
18548 | } | |
18549 | { | |
18550 | wxBitmap* resultptr = new wxBitmap(*result); | |
18551 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18552 | } | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | return NULL; | |
18556 | } | |
18557 | ||
18558 | ||
c370783e | 18559 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18560 | PyObject *resultobj; |
18561 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18562 | wxBitmap result; | |
18563 | PyObject * obj0 = 0 ; | |
18564 | char *kwnames[] = { | |
18565 | (char *) "self", NULL | |
18566 | }; | |
18567 | ||
18568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18571 | { |
18572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18573 | result = (arg1)->GetBitmap(); | |
18574 | ||
18575 | wxPyEndAllowThreads(__tstate); | |
18576 | if (PyErr_Occurred()) SWIG_fail; | |
18577 | } | |
18578 | { | |
18579 | wxBitmap * resultptr; | |
36ed4f51 | 18580 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
18581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
18582 | } | |
18583 | return resultobj; | |
18584 | fail: | |
18585 | return NULL; | |
18586 | } | |
18587 | ||
18588 | ||
c370783e | 18589 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18590 | PyObject *resultobj; |
18591 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18592 | wxString result; | |
18593 | PyObject * obj0 = 0 ; | |
18594 | char *kwnames[] = { | |
18595 | (char *) "self", NULL | |
18596 | }; | |
18597 | ||
18598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18601 | { |
18602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18603 | result = (arg1)->GetLabel(); | |
18604 | ||
18605 | wxPyEndAllowThreads(__tstate); | |
18606 | if (PyErr_Occurred()) SWIG_fail; | |
18607 | } | |
18608 | { | |
18609 | #if wxUSE_UNICODE | |
18610 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18611 | #else | |
18612 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18613 | #endif | |
18614 | } | |
18615 | return resultobj; | |
18616 | fail: | |
18617 | return NULL; | |
18618 | } | |
18619 | ||
18620 | ||
c370783e | 18621 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18622 | PyObject *resultobj; |
18623 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18624 | wxString result; | |
18625 | PyObject * obj0 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "self", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18633 | { |
18634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18635 | result = (arg1)->GetShortHelp(); | |
18636 | ||
18637 | wxPyEndAllowThreads(__tstate); | |
18638 | if (PyErr_Occurred()) SWIG_fail; | |
18639 | } | |
18640 | { | |
18641 | #if wxUSE_UNICODE | |
18642 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18643 | #else | |
18644 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18645 | #endif | |
18646 | } | |
18647 | return resultobj; | |
18648 | fail: | |
18649 | return NULL; | |
18650 | } | |
18651 | ||
18652 | ||
c370783e | 18653 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18654 | PyObject *resultobj; |
18655 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18656 | wxString result; | |
18657 | PyObject * obj0 = 0 ; | |
18658 | char *kwnames[] = { | |
18659 | (char *) "self", NULL | |
18660 | }; | |
18661 | ||
18662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18665 | { |
18666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18667 | result = (arg1)->GetLongHelp(); | |
18668 | ||
18669 | wxPyEndAllowThreads(__tstate); | |
18670 | if (PyErr_Occurred()) SWIG_fail; | |
18671 | } | |
18672 | { | |
18673 | #if wxUSE_UNICODE | |
18674 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18675 | #else | |
18676 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18677 | #endif | |
18678 | } | |
18679 | return resultobj; | |
18680 | fail: | |
18681 | return NULL; | |
18682 | } | |
18683 | ||
18684 | ||
c370783e | 18685 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18686 | PyObject *resultobj; |
18687 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18688 | bool arg2 ; | |
18689 | bool result; | |
18690 | PyObject * obj0 = 0 ; | |
18691 | PyObject * obj1 = 0 ; | |
18692 | char *kwnames[] = { | |
18693 | (char *) "self",(char *) "enable", NULL | |
18694 | }; | |
18695 | ||
18696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18699 | { | |
18700 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18701 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18702 | } | |
d55e5bfc RD |
18703 | { |
18704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18705 | result = (bool)(arg1)->Enable(arg2); | |
18706 | ||
18707 | wxPyEndAllowThreads(__tstate); | |
18708 | if (PyErr_Occurred()) SWIG_fail; | |
18709 | } | |
18710 | { | |
18711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18712 | } | |
18713 | return resultobj; | |
18714 | fail: | |
18715 | return NULL; | |
18716 | } | |
18717 | ||
18718 | ||
c370783e | 18719 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18720 | PyObject *resultobj; |
18721 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | char *kwnames[] = { | |
18724 | (char *) "self", NULL | |
18725 | }; | |
18726 | ||
18727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18728 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18729 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18730 | { |
18731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18732 | (arg1)->Toggle(); | |
18733 | ||
18734 | wxPyEndAllowThreads(__tstate); | |
18735 | if (PyErr_Occurred()) SWIG_fail; | |
18736 | } | |
18737 | Py_INCREF(Py_None); resultobj = Py_None; | |
18738 | return resultobj; | |
18739 | fail: | |
18740 | return NULL; | |
18741 | } | |
18742 | ||
18743 | ||
c370783e | 18744 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18745 | PyObject *resultobj; |
18746 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18747 | bool arg2 ; | |
18748 | bool result; | |
18749 | PyObject * obj0 = 0 ; | |
18750 | PyObject * obj1 = 0 ; | |
18751 | char *kwnames[] = { | |
18752 | (char *) "self",(char *) "toggle", NULL | |
18753 | }; | |
18754 | ||
18755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18758 | { | |
18759 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18760 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18761 | } | |
d55e5bfc RD |
18762 | { |
18763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18764 | result = (bool)(arg1)->SetToggle(arg2); | |
18765 | ||
18766 | wxPyEndAllowThreads(__tstate); | |
18767 | if (PyErr_Occurred()) SWIG_fail; | |
18768 | } | |
18769 | { | |
18770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18771 | } | |
18772 | return resultobj; | |
18773 | fail: | |
18774 | return NULL; | |
18775 | } | |
18776 | ||
18777 | ||
c370783e | 18778 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18779 | PyObject *resultobj; |
18780 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18781 | wxString *arg2 = 0 ; | |
18782 | bool result; | |
b411df4a | 18783 | bool temp2 = false ; |
d55e5bfc RD |
18784 | PyObject * obj0 = 0 ; |
18785 | PyObject * obj1 = 0 ; | |
18786 | char *kwnames[] = { | |
18787 | (char *) "self",(char *) "help", NULL | |
18788 | }; | |
18789 | ||
18790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18793 | { |
18794 | arg2 = wxString_in_helper(obj1); | |
18795 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18796 | temp2 = true; |
d55e5bfc RD |
18797 | } |
18798 | { | |
18799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18800 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
18801 | ||
18802 | wxPyEndAllowThreads(__tstate); | |
18803 | if (PyErr_Occurred()) SWIG_fail; | |
18804 | } | |
18805 | { | |
18806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18807 | } | |
18808 | { | |
18809 | if (temp2) | |
18810 | delete arg2; | |
18811 | } | |
18812 | return resultobj; | |
18813 | fail: | |
18814 | { | |
18815 | if (temp2) | |
18816 | delete arg2; | |
18817 | } | |
18818 | return NULL; | |
18819 | } | |
18820 | ||
18821 | ||
c370783e | 18822 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18823 | PyObject *resultobj; |
18824 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18825 | wxString *arg2 = 0 ; | |
18826 | bool result; | |
b411df4a | 18827 | bool temp2 = false ; |
d55e5bfc RD |
18828 | PyObject * obj0 = 0 ; |
18829 | PyObject * obj1 = 0 ; | |
18830 | char *kwnames[] = { | |
18831 | (char *) "self",(char *) "help", NULL | |
18832 | }; | |
18833 | ||
18834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18837 | { |
18838 | arg2 = wxString_in_helper(obj1); | |
18839 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18840 | temp2 = true; |
d55e5bfc RD |
18841 | } |
18842 | { | |
18843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18844 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
18845 | ||
18846 | wxPyEndAllowThreads(__tstate); | |
18847 | if (PyErr_Occurred()) SWIG_fail; | |
18848 | } | |
18849 | { | |
18850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18851 | } | |
18852 | { | |
18853 | if (temp2) | |
18854 | delete arg2; | |
18855 | } | |
18856 | return resultobj; | |
18857 | fail: | |
18858 | { | |
18859 | if (temp2) | |
18860 | delete arg2; | |
18861 | } | |
18862 | return NULL; | |
18863 | } | |
18864 | ||
18865 | ||
c370783e | 18866 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18867 | PyObject *resultobj; |
18868 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18869 | wxBitmap *arg2 = 0 ; | |
18870 | PyObject * obj0 = 0 ; | |
18871 | PyObject * obj1 = 0 ; | |
18872 | char *kwnames[] = { | |
18873 | (char *) "self",(char *) "bmp", NULL | |
18874 | }; | |
18875 | ||
18876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18879 | { | |
18880 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18881 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18882 | if (arg2 == NULL) { | |
18883 | SWIG_null_ref("wxBitmap"); | |
18884 | } | |
18885 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
18886 | } |
18887 | { | |
18888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18889 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
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 | ||
c370783e | 18901 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18902 | PyObject *resultobj; |
18903 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18904 | wxBitmap *arg2 = 0 ; | |
18905 | PyObject * obj0 = 0 ; | |
18906 | PyObject * obj1 = 0 ; | |
18907 | char *kwnames[] = { | |
18908 | (char *) "self",(char *) "bmp", NULL | |
18909 | }; | |
18910 | ||
18911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18914 | { | |
18915 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
18916 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18917 | if (arg2 == NULL) { | |
18918 | SWIG_null_ref("wxBitmap"); | |
18919 | } | |
18920 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
18921 | } |
18922 | { | |
18923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18924 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
18925 | ||
18926 | wxPyEndAllowThreads(__tstate); | |
18927 | if (PyErr_Occurred()) SWIG_fail; | |
18928 | } | |
18929 | Py_INCREF(Py_None); resultobj = Py_None; | |
18930 | return resultobj; | |
18931 | fail: | |
18932 | return NULL; | |
18933 | } | |
18934 | ||
18935 | ||
c370783e | 18936 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18937 | PyObject *resultobj; |
18938 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18939 | wxString *arg2 = 0 ; | |
b411df4a | 18940 | bool temp2 = false ; |
d55e5bfc RD |
18941 | PyObject * obj0 = 0 ; |
18942 | PyObject * obj1 = 0 ; | |
18943 | char *kwnames[] = { | |
18944 | (char *) "self",(char *) "label", NULL | |
18945 | }; | |
18946 | ||
18947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
18948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18950 | { |
18951 | arg2 = wxString_in_helper(obj1); | |
18952 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18953 | temp2 = true; |
d55e5bfc RD |
18954 | } |
18955 | { | |
18956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18957 | (arg1)->SetLabel((wxString const &)*arg2); | |
18958 | ||
18959 | wxPyEndAllowThreads(__tstate); | |
18960 | if (PyErr_Occurred()) SWIG_fail; | |
18961 | } | |
18962 | Py_INCREF(Py_None); resultobj = Py_None; | |
18963 | { | |
18964 | if (temp2) | |
18965 | delete arg2; | |
18966 | } | |
18967 | return resultobj; | |
18968 | fail: | |
18969 | { | |
18970 | if (temp2) | |
18971 | delete arg2; | |
18972 | } | |
18973 | return NULL; | |
18974 | } | |
18975 | ||
18976 | ||
c370783e | 18977 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18978 | PyObject *resultobj; |
18979 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18980 | PyObject * obj0 = 0 ; | |
18981 | char *kwnames[] = { | |
18982 | (char *) "self", NULL | |
18983 | }; | |
18984 | ||
18985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
18986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18988 | { |
18989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18990 | (arg1)->Detach(); | |
18991 | ||
18992 | wxPyEndAllowThreads(__tstate); | |
18993 | if (PyErr_Occurred()) SWIG_fail; | |
18994 | } | |
18995 | Py_INCREF(Py_None); resultobj = Py_None; | |
18996 | return resultobj; | |
18997 | fail: | |
18998 | return NULL; | |
18999 | } | |
19000 | ||
19001 | ||
c370783e | 19002 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19003 | PyObject *resultobj; |
19004 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19005 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
19006 | PyObject * obj0 = 0 ; | |
19007 | PyObject * obj1 = 0 ; | |
19008 | char *kwnames[] = { | |
19009 | (char *) "self",(char *) "tbar", NULL | |
19010 | }; | |
19011 | ||
19012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19015 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19017 | { |
19018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19019 | (arg1)->Attach(arg2); | |
19020 | ||
19021 | wxPyEndAllowThreads(__tstate); | |
19022 | if (PyErr_Occurred()) SWIG_fail; | |
19023 | } | |
19024 | Py_INCREF(Py_None); resultobj = Py_None; | |
19025 | return resultobj; | |
19026 | fail: | |
19027 | return NULL; | |
19028 | } | |
19029 | ||
19030 | ||
c370783e | 19031 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19032 | PyObject *resultobj; |
19033 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19034 | PyObject *result; | |
19035 | PyObject * obj0 = 0 ; | |
19036 | char *kwnames[] = { | |
19037 | (char *) "self", NULL | |
19038 | }; | |
19039 | ||
19040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19043 | { |
19044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19045 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
19046 | ||
19047 | wxPyEndAllowThreads(__tstate); | |
19048 | if (PyErr_Occurred()) SWIG_fail; | |
19049 | } | |
19050 | resultobj = result; | |
19051 | return resultobj; | |
19052 | fail: | |
19053 | return NULL; | |
19054 | } | |
19055 | ||
19056 | ||
c370783e | 19057 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19058 | PyObject *resultobj; |
19059 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19060 | PyObject *arg2 = (PyObject *) 0 ; | |
19061 | PyObject * obj0 = 0 ; | |
19062 | PyObject * obj1 = 0 ; | |
19063 | char *kwnames[] = { | |
19064 | (char *) "self",(char *) "clientData", NULL | |
19065 | }; | |
19066 | ||
19067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19070 | arg2 = obj1; |
19071 | { | |
19072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19073 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
19074 | ||
19075 | wxPyEndAllowThreads(__tstate); | |
19076 | if (PyErr_Occurred()) SWIG_fail; | |
19077 | } | |
19078 | Py_INCREF(Py_None); resultobj = Py_None; | |
19079 | return resultobj; | |
19080 | fail: | |
19081 | return NULL; | |
19082 | } | |
19083 | ||
19084 | ||
c370783e | 19085 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19086 | PyObject *obj; |
19087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19088 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
19089 | Py_INCREF(obj); | |
19090 | return Py_BuildValue((char *)""); | |
19091 | } | |
c370783e | 19092 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19093 | PyObject *resultobj; |
19094 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19095 | int arg2 ; | |
19096 | wxString *arg3 = 0 ; | |
19097 | wxBitmap *arg4 = 0 ; | |
19098 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
19099 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
36ed4f51 | 19100 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc RD |
19101 | wxString const &arg7_defvalue = wxPyEmptyString ; |
19102 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19103 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
19104 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19105 | PyObject *arg9 = (PyObject *) NULL ; | |
19106 | wxToolBarToolBase *result; | |
b411df4a RD |
19107 | bool temp3 = false ; |
19108 | bool temp7 = false ; | |
19109 | bool temp8 = false ; | |
d55e5bfc RD |
19110 | PyObject * obj0 = 0 ; |
19111 | PyObject * obj1 = 0 ; | |
19112 | PyObject * obj2 = 0 ; | |
19113 | PyObject * obj3 = 0 ; | |
19114 | PyObject * obj4 = 0 ; | |
19115 | PyObject * obj5 = 0 ; | |
19116 | PyObject * obj6 = 0 ; | |
19117 | PyObject * obj7 = 0 ; | |
19118 | PyObject * obj8 = 0 ; | |
19119 | char *kwnames[] = { | |
19120 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19121 | }; | |
19122 | ||
19123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
36ed4f51 RD |
19124 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19125 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19126 | { | |
19127 | arg2 = (int)(SWIG_As_int(obj1)); | |
19128 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19129 | } | |
d55e5bfc RD |
19130 | { |
19131 | arg3 = wxString_in_helper(obj2); | |
19132 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 19133 | temp3 = true; |
d55e5bfc | 19134 | } |
36ed4f51 RD |
19135 | { |
19136 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19137 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19138 | if (arg4 == NULL) { | |
19139 | SWIG_null_ref("wxBitmap"); | |
19140 | } | |
19141 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
19142 | } |
19143 | if (obj4) { | |
36ed4f51 RD |
19144 | { |
19145 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19146 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19147 | if (arg5 == NULL) { | |
19148 | SWIG_null_ref("wxBitmap"); | |
19149 | } | |
19150 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
19151 | } |
19152 | } | |
19153 | if (obj5) { | |
36ed4f51 RD |
19154 | { |
19155 | arg6 = (wxItemKind)(SWIG_As_int(obj5)); | |
19156 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19157 | } | |
d55e5bfc RD |
19158 | } |
19159 | if (obj6) { | |
19160 | { | |
19161 | arg7 = wxString_in_helper(obj6); | |
19162 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 19163 | temp7 = true; |
d55e5bfc RD |
19164 | } |
19165 | } | |
19166 | if (obj7) { | |
19167 | { | |
19168 | arg8 = wxString_in_helper(obj7); | |
19169 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 19170 | temp8 = true; |
d55e5bfc RD |
19171 | } |
19172 | } | |
19173 | if (obj8) { | |
19174 | arg9 = obj8; | |
19175 | } | |
19176 | { | |
19177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19178 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
19179 | ||
19180 | wxPyEndAllowThreads(__tstate); | |
19181 | if (PyErr_Occurred()) SWIG_fail; | |
19182 | } | |
19183 | { | |
412d302d | 19184 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19185 | } |
19186 | { | |
19187 | if (temp3) | |
19188 | delete arg3; | |
19189 | } | |
19190 | { | |
19191 | if (temp7) | |
19192 | delete arg7; | |
19193 | } | |
19194 | { | |
19195 | if (temp8) | |
19196 | delete arg8; | |
19197 | } | |
19198 | return resultobj; | |
19199 | fail: | |
19200 | { | |
19201 | if (temp3) | |
19202 | delete arg3; | |
19203 | } | |
19204 | { | |
19205 | if (temp7) | |
19206 | delete arg7; | |
19207 | } | |
19208 | { | |
19209 | if (temp8) | |
19210 | delete arg8; | |
19211 | } | |
19212 | return NULL; | |
19213 | } | |
19214 | ||
19215 | ||
c370783e | 19216 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19217 | PyObject *resultobj; |
19218 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19219 | size_t arg2 ; | |
19220 | int arg3 ; | |
19221 | wxString *arg4 = 0 ; | |
19222 | wxBitmap *arg5 = 0 ; | |
19223 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
19224 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
36ed4f51 | 19225 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc RD |
19226 | wxString const &arg8_defvalue = wxPyEmptyString ; |
19227 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19228 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
19229 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
19230 | PyObject *arg10 = (PyObject *) NULL ; | |
19231 | wxToolBarToolBase *result; | |
b411df4a RD |
19232 | bool temp4 = false ; |
19233 | bool temp8 = false ; | |
19234 | bool temp9 = false ; | |
d55e5bfc RD |
19235 | PyObject * obj0 = 0 ; |
19236 | PyObject * obj1 = 0 ; | |
19237 | PyObject * obj2 = 0 ; | |
19238 | PyObject * obj3 = 0 ; | |
19239 | PyObject * obj4 = 0 ; | |
19240 | PyObject * obj5 = 0 ; | |
19241 | PyObject * obj6 = 0 ; | |
19242 | PyObject * obj7 = 0 ; | |
19243 | PyObject * obj8 = 0 ; | |
19244 | PyObject * obj9 = 0 ; | |
19245 | char *kwnames[] = { | |
19246 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19247 | }; | |
19248 | ||
19249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
36ed4f51 RD |
19250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19252 | { | |
19253 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19254 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19255 | } | |
19256 | { | |
19257 | arg3 = (int)(SWIG_As_int(obj2)); | |
19258 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19259 | } | |
d55e5bfc RD |
19260 | { |
19261 | arg4 = wxString_in_helper(obj3); | |
19262 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 19263 | temp4 = true; |
d55e5bfc | 19264 | } |
36ed4f51 RD |
19265 | { |
19266 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19267 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19268 | if (arg5 == NULL) { | |
19269 | SWIG_null_ref("wxBitmap"); | |
19270 | } | |
19271 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
19272 | } |
19273 | if (obj5) { | |
36ed4f51 RD |
19274 | { |
19275 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19276 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19277 | if (arg6 == NULL) { | |
19278 | SWIG_null_ref("wxBitmap"); | |
19279 | } | |
19280 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
19281 | } |
19282 | } | |
19283 | if (obj6) { | |
36ed4f51 RD |
19284 | { |
19285 | arg7 = (wxItemKind)(SWIG_As_int(obj6)); | |
19286 | if (SWIG_arg_fail(7)) SWIG_fail; | |
19287 | } | |
d55e5bfc RD |
19288 | } |
19289 | if (obj7) { | |
19290 | { | |
19291 | arg8 = wxString_in_helper(obj7); | |
19292 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 19293 | temp8 = true; |
d55e5bfc RD |
19294 | } |
19295 | } | |
19296 | if (obj8) { | |
19297 | { | |
19298 | arg9 = wxString_in_helper(obj8); | |
19299 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 19300 | temp9 = true; |
d55e5bfc RD |
19301 | } |
19302 | } | |
19303 | if (obj9) { | |
19304 | arg10 = obj9; | |
19305 | } | |
19306 | { | |
19307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19308 | 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); | |
19309 | ||
19310 | wxPyEndAllowThreads(__tstate); | |
19311 | if (PyErr_Occurred()) SWIG_fail; | |
19312 | } | |
19313 | { | |
412d302d | 19314 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19315 | } |
19316 | { | |
19317 | if (temp4) | |
19318 | delete arg4; | |
19319 | } | |
19320 | { | |
19321 | if (temp8) | |
19322 | delete arg8; | |
19323 | } | |
19324 | { | |
19325 | if (temp9) | |
19326 | delete arg9; | |
19327 | } | |
19328 | return resultobj; | |
19329 | fail: | |
19330 | { | |
19331 | if (temp4) | |
19332 | delete arg4; | |
19333 | } | |
19334 | { | |
19335 | if (temp8) | |
19336 | delete arg8; | |
19337 | } | |
19338 | { | |
19339 | if (temp9) | |
19340 | delete arg9; | |
19341 | } | |
19342 | return NULL; | |
19343 | } | |
19344 | ||
19345 | ||
c370783e | 19346 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19347 | PyObject *resultobj; |
19348 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19349 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
19350 | wxToolBarToolBase *result; | |
19351 | PyObject * obj0 = 0 ; | |
19352 | PyObject * obj1 = 0 ; | |
19353 | char *kwnames[] = { | |
19354 | (char *) "self",(char *) "tool", NULL | |
19355 | }; | |
19356 | ||
19357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19360 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19361 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19362 | { |
19363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19364 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
19365 | ||
19366 | wxPyEndAllowThreads(__tstate); | |
19367 | if (PyErr_Occurred()) SWIG_fail; | |
19368 | } | |
19369 | { | |
412d302d | 19370 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19371 | } |
19372 | return resultobj; | |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
c370783e | 19378 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19379 | PyObject *resultobj; |
19380 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19381 | size_t arg2 ; | |
19382 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
19383 | wxToolBarToolBase *result; | |
19384 | PyObject * obj0 = 0 ; | |
19385 | PyObject * obj1 = 0 ; | |
19386 | PyObject * obj2 = 0 ; | |
19387 | char *kwnames[] = { | |
19388 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
19389 | }; | |
19390 | ||
19391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
19392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19394 | { | |
19395 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19396 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19397 | } | |
19398 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19399 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
19400 | { |
19401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19402 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
19403 | ||
19404 | wxPyEndAllowThreads(__tstate); | |
19405 | if (PyErr_Occurred()) SWIG_fail; | |
19406 | } | |
19407 | { | |
412d302d | 19408 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19409 | } |
19410 | return resultobj; | |
19411 | fail: | |
19412 | return NULL; | |
19413 | } | |
19414 | ||
19415 | ||
c370783e | 19416 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19417 | PyObject *resultobj; |
19418 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19419 | wxControl *arg2 = (wxControl *) 0 ; | |
19420 | wxToolBarToolBase *result; | |
19421 | PyObject * obj0 = 0 ; | |
19422 | PyObject * obj1 = 0 ; | |
19423 | char *kwnames[] = { | |
19424 | (char *) "self",(char *) "control", NULL | |
19425 | }; | |
19426 | ||
19427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19430 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19431 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19432 | { |
19433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19434 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
19435 | ||
19436 | wxPyEndAllowThreads(__tstate); | |
19437 | if (PyErr_Occurred()) SWIG_fail; | |
19438 | } | |
19439 | { | |
412d302d | 19440 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19441 | } |
19442 | return resultobj; | |
19443 | fail: | |
19444 | return NULL; | |
19445 | } | |
19446 | ||
19447 | ||
c370783e | 19448 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19449 | PyObject *resultobj; |
19450 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19451 | size_t arg2 ; | |
19452 | wxControl *arg3 = (wxControl *) 0 ; | |
19453 | wxToolBarToolBase *result; | |
19454 | PyObject * obj0 = 0 ; | |
19455 | PyObject * obj1 = 0 ; | |
19456 | PyObject * obj2 = 0 ; | |
19457 | char *kwnames[] = { | |
19458 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
19459 | }; | |
19460 | ||
19461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
19462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19464 | { | |
19465 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19466 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19467 | } | |
19468 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19469 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
19470 | { |
19471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19472 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
19473 | ||
19474 | wxPyEndAllowThreads(__tstate); | |
19475 | if (PyErr_Occurred()) SWIG_fail; | |
19476 | } | |
19477 | { | |
412d302d | 19478 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19479 | } |
19480 | return resultobj; | |
19481 | fail: | |
19482 | return NULL; | |
19483 | } | |
19484 | ||
19485 | ||
c370783e | 19486 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19487 | PyObject *resultobj; |
19488 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19489 | int arg2 ; | |
19490 | wxControl *result; | |
19491 | PyObject * obj0 = 0 ; | |
19492 | PyObject * obj1 = 0 ; | |
19493 | char *kwnames[] = { | |
19494 | (char *) "self",(char *) "id", NULL | |
19495 | }; | |
19496 | ||
19497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19500 | { | |
19501 | arg2 = (int)(SWIG_As_int(obj1)); | |
19502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19503 | } | |
d55e5bfc RD |
19504 | { |
19505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19506 | result = (wxControl *)(arg1)->FindControl(arg2); | |
19507 | ||
19508 | wxPyEndAllowThreads(__tstate); | |
19509 | if (PyErr_Occurred()) SWIG_fail; | |
19510 | } | |
19511 | { | |
412d302d | 19512 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19513 | } |
19514 | return resultobj; | |
19515 | fail: | |
19516 | return NULL; | |
19517 | } | |
19518 | ||
19519 | ||
c370783e | 19520 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19521 | PyObject *resultobj; |
19522 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19523 | wxToolBarToolBase *result; | |
19524 | PyObject * obj0 = 0 ; | |
19525 | char *kwnames[] = { | |
19526 | (char *) "self", NULL | |
19527 | }; | |
19528 | ||
19529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19532 | { |
19533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19534 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
19535 | ||
19536 | wxPyEndAllowThreads(__tstate); | |
19537 | if (PyErr_Occurred()) SWIG_fail; | |
19538 | } | |
19539 | { | |
412d302d | 19540 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19541 | } |
19542 | return resultobj; | |
19543 | fail: | |
19544 | return NULL; | |
19545 | } | |
19546 | ||
19547 | ||
c370783e | 19548 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19549 | PyObject *resultobj; |
19550 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19551 | size_t arg2 ; | |
19552 | wxToolBarToolBase *result; | |
19553 | PyObject * obj0 = 0 ; | |
19554 | PyObject * obj1 = 0 ; | |
19555 | char *kwnames[] = { | |
19556 | (char *) "self",(char *) "pos", NULL | |
19557 | }; | |
19558 | ||
19559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19562 | { | |
19563 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19564 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19565 | } | |
d55e5bfc RD |
19566 | { |
19567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19568 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
19569 | ||
19570 | wxPyEndAllowThreads(__tstate); | |
19571 | if (PyErr_Occurred()) SWIG_fail; | |
19572 | } | |
19573 | { | |
412d302d | 19574 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19575 | } |
19576 | return resultobj; | |
19577 | fail: | |
19578 | return NULL; | |
19579 | } | |
19580 | ||
19581 | ||
c370783e | 19582 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19583 | PyObject *resultobj; |
19584 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19585 | int arg2 ; | |
19586 | wxToolBarToolBase *result; | |
19587 | PyObject * obj0 = 0 ; | |
19588 | PyObject * obj1 = 0 ; | |
19589 | char *kwnames[] = { | |
19590 | (char *) "self",(char *) "id", NULL | |
19591 | }; | |
19592 | ||
19593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19596 | { | |
19597 | arg2 = (int)(SWIG_As_int(obj1)); | |
19598 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19599 | } | |
d55e5bfc RD |
19600 | { |
19601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19602 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
19603 | ||
19604 | wxPyEndAllowThreads(__tstate); | |
19605 | if (PyErr_Occurred()) SWIG_fail; | |
19606 | } | |
19607 | { | |
412d302d | 19608 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19609 | } |
19610 | return resultobj; | |
19611 | fail: | |
19612 | return NULL; | |
19613 | } | |
19614 | ||
19615 | ||
c370783e | 19616 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19617 | PyObject *resultobj; |
19618 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19619 | size_t arg2 ; | |
19620 | bool result; | |
19621 | PyObject * obj0 = 0 ; | |
19622 | PyObject * obj1 = 0 ; | |
19623 | char *kwnames[] = { | |
19624 | (char *) "self",(char *) "pos", NULL | |
19625 | }; | |
19626 | ||
19627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19630 | { | |
19631 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19632 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19633 | } | |
d55e5bfc RD |
19634 | { |
19635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19636 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
19637 | ||
19638 | wxPyEndAllowThreads(__tstate); | |
19639 | if (PyErr_Occurred()) SWIG_fail; | |
19640 | } | |
19641 | { | |
19642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19643 | } | |
19644 | return resultobj; | |
19645 | fail: | |
19646 | return NULL; | |
19647 | } | |
19648 | ||
19649 | ||
c370783e | 19650 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19651 | PyObject *resultobj; |
19652 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19653 | int arg2 ; | |
19654 | bool result; | |
19655 | PyObject * obj0 = 0 ; | |
19656 | PyObject * obj1 = 0 ; | |
19657 | char *kwnames[] = { | |
19658 | (char *) "self",(char *) "id", NULL | |
19659 | }; | |
19660 | ||
19661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19664 | { | |
19665 | arg2 = (int)(SWIG_As_int(obj1)); | |
19666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19667 | } | |
d55e5bfc RD |
19668 | { |
19669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19670 | result = (bool)(arg1)->DeleteTool(arg2); | |
19671 | ||
19672 | wxPyEndAllowThreads(__tstate); | |
19673 | if (PyErr_Occurred()) SWIG_fail; | |
19674 | } | |
19675 | { | |
19676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19677 | } | |
19678 | return resultobj; | |
19679 | fail: | |
19680 | return NULL; | |
19681 | } | |
19682 | ||
19683 | ||
c370783e | 19684 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19685 | PyObject *resultobj; |
19686 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19687 | PyObject * obj0 = 0 ; | |
19688 | char *kwnames[] = { | |
19689 | (char *) "self", NULL | |
19690 | }; | |
19691 | ||
19692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19695 | { |
19696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19697 | (arg1)->ClearTools(); | |
19698 | ||
19699 | wxPyEndAllowThreads(__tstate); | |
19700 | if (PyErr_Occurred()) SWIG_fail; | |
19701 | } | |
19702 | Py_INCREF(Py_None); resultobj = Py_None; | |
19703 | return resultobj; | |
19704 | fail: | |
19705 | return NULL; | |
19706 | } | |
19707 | ||
19708 | ||
c370783e | 19709 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19710 | PyObject *resultobj; |
19711 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19712 | bool result; | |
19713 | PyObject * obj0 = 0 ; | |
19714 | char *kwnames[] = { | |
19715 | (char *) "self", NULL | |
19716 | }; | |
19717 | ||
19718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
19719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19721 | { |
19722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19723 | result = (bool)(arg1)->Realize(); | |
19724 | ||
19725 | wxPyEndAllowThreads(__tstate); | |
19726 | if (PyErr_Occurred()) SWIG_fail; | |
19727 | } | |
19728 | { | |
19729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19730 | } | |
19731 | return resultobj; | |
19732 | fail: | |
19733 | return NULL; | |
19734 | } | |
19735 | ||
19736 | ||
c370783e | 19737 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19738 | PyObject *resultobj; |
19739 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19740 | int arg2 ; | |
19741 | bool arg3 ; | |
19742 | PyObject * obj0 = 0 ; | |
19743 | PyObject * obj1 = 0 ; | |
19744 | PyObject * obj2 = 0 ; | |
19745 | char *kwnames[] = { | |
19746 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
19747 | }; | |
19748 | ||
19749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
19750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19752 | { | |
19753 | arg2 = (int)(SWIG_As_int(obj1)); | |
19754 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19755 | } | |
19756 | { | |
19757 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
19758 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19759 | } | |
d55e5bfc RD |
19760 | { |
19761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19762 | (arg1)->EnableTool(arg2,arg3); | |
19763 | ||
19764 | wxPyEndAllowThreads(__tstate); | |
19765 | if (PyErr_Occurred()) SWIG_fail; | |
19766 | } | |
19767 | Py_INCREF(Py_None); resultobj = Py_None; | |
19768 | return resultobj; | |
19769 | fail: | |
19770 | return NULL; | |
19771 | } | |
19772 | ||
19773 | ||
c370783e | 19774 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19775 | PyObject *resultobj; |
19776 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19777 | int arg2 ; | |
19778 | bool arg3 ; | |
19779 | PyObject * obj0 = 0 ; | |
19780 | PyObject * obj1 = 0 ; | |
19781 | PyObject * obj2 = 0 ; | |
19782 | char *kwnames[] = { | |
19783 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
19784 | }; | |
19785 | ||
19786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
19787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19789 | { | |
19790 | arg2 = (int)(SWIG_As_int(obj1)); | |
19791 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19792 | } | |
19793 | { | |
19794 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
19795 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19796 | } | |
d55e5bfc RD |
19797 | { |
19798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19799 | (arg1)->ToggleTool(arg2,arg3); | |
19800 | ||
19801 | wxPyEndAllowThreads(__tstate); | |
19802 | if (PyErr_Occurred()) SWIG_fail; | |
19803 | } | |
19804 | Py_INCREF(Py_None); resultobj = Py_None; | |
19805 | return resultobj; | |
19806 | fail: | |
19807 | return NULL; | |
19808 | } | |
19809 | ||
19810 | ||
c370783e | 19811 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19812 | PyObject *resultobj; |
19813 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19814 | int arg2 ; | |
19815 | bool arg3 ; | |
19816 | PyObject * obj0 = 0 ; | |
19817 | PyObject * obj1 = 0 ; | |
19818 | PyObject * obj2 = 0 ; | |
19819 | char *kwnames[] = { | |
19820 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
19821 | }; | |
19822 | ||
19823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
19824 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19825 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19826 | { | |
19827 | arg2 = (int)(SWIG_As_int(obj1)); | |
19828 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19829 | } | |
19830 | { | |
19831 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
19832 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19833 | } | |
d55e5bfc RD |
19834 | { |
19835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19836 | (arg1)->SetToggle(arg2,arg3); | |
19837 | ||
19838 | wxPyEndAllowThreads(__tstate); | |
19839 | if (PyErr_Occurred()) SWIG_fail; | |
19840 | } | |
19841 | Py_INCREF(Py_None); resultobj = Py_None; | |
19842 | return resultobj; | |
19843 | fail: | |
19844 | return NULL; | |
19845 | } | |
19846 | ||
19847 | ||
c370783e | 19848 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19849 | PyObject *resultobj; |
19850 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19851 | int arg2 ; | |
19852 | PyObject *result; | |
19853 | PyObject * obj0 = 0 ; | |
19854 | PyObject * obj1 = 0 ; | |
19855 | char *kwnames[] = { | |
19856 | (char *) "self",(char *) "id", NULL | |
19857 | }; | |
19858 | ||
19859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19862 | { | |
19863 | arg2 = (int)(SWIG_As_int(obj1)); | |
19864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19865 | } | |
d55e5bfc RD |
19866 | { |
19867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19868 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
19869 | ||
19870 | wxPyEndAllowThreads(__tstate); | |
19871 | if (PyErr_Occurred()) SWIG_fail; | |
19872 | } | |
19873 | resultobj = result; | |
19874 | return resultobj; | |
19875 | fail: | |
19876 | return NULL; | |
19877 | } | |
19878 | ||
19879 | ||
c370783e | 19880 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19881 | PyObject *resultobj; |
19882 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19883 | int arg2 ; | |
19884 | PyObject *arg3 = (PyObject *) 0 ; | |
19885 | PyObject * obj0 = 0 ; | |
19886 | PyObject * obj1 = 0 ; | |
19887 | PyObject * obj2 = 0 ; | |
19888 | char *kwnames[] = { | |
19889 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
19890 | }; | |
19891 | ||
19892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
19893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19895 | { | |
19896 | arg2 = (int)(SWIG_As_int(obj1)); | |
19897 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19898 | } | |
d55e5bfc RD |
19899 | arg3 = obj2; |
19900 | { | |
19901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19902 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
19903 | ||
19904 | wxPyEndAllowThreads(__tstate); | |
19905 | if (PyErr_Occurred()) SWIG_fail; | |
19906 | } | |
19907 | Py_INCREF(Py_None); resultobj = Py_None; | |
19908 | return resultobj; | |
19909 | fail: | |
19910 | return NULL; | |
19911 | } | |
19912 | ||
19913 | ||
c370783e | 19914 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19915 | PyObject *resultobj; |
19916 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19917 | int arg2 ; | |
19918 | int result; | |
19919 | PyObject * obj0 = 0 ; | |
19920 | PyObject * obj1 = 0 ; | |
19921 | char *kwnames[] = { | |
19922 | (char *) "self",(char *) "id", NULL | |
19923 | }; | |
19924 | ||
19925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19928 | { | |
19929 | arg2 = (int)(SWIG_As_int(obj1)); | |
19930 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19931 | } | |
d55e5bfc RD |
19932 | { |
19933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19934 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
19935 | ||
19936 | wxPyEndAllowThreads(__tstate); | |
19937 | if (PyErr_Occurred()) SWIG_fail; | |
19938 | } | |
36ed4f51 RD |
19939 | { |
19940 | resultobj = SWIG_From_int((int)(result)); | |
19941 | } | |
d55e5bfc RD |
19942 | return resultobj; |
19943 | fail: | |
19944 | return NULL; | |
19945 | } | |
19946 | ||
19947 | ||
c370783e | 19948 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19949 | PyObject *resultobj; |
19950 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19951 | int arg2 ; | |
19952 | bool result; | |
19953 | PyObject * obj0 = 0 ; | |
19954 | PyObject * obj1 = 0 ; | |
19955 | char *kwnames[] = { | |
19956 | (char *) "self",(char *) "id", NULL | |
19957 | }; | |
19958 | ||
19959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19962 | { | |
19963 | arg2 = (int)(SWIG_As_int(obj1)); | |
19964 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19965 | } | |
d55e5bfc RD |
19966 | { |
19967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19968 | result = (bool)(arg1)->GetToolState(arg2); | |
19969 | ||
19970 | wxPyEndAllowThreads(__tstate); | |
19971 | if (PyErr_Occurred()) SWIG_fail; | |
19972 | } | |
19973 | { | |
19974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19975 | } | |
19976 | return resultobj; | |
19977 | fail: | |
19978 | return NULL; | |
19979 | } | |
19980 | ||
19981 | ||
c370783e | 19982 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19983 | PyObject *resultobj; |
19984 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19985 | int arg2 ; | |
19986 | bool result; | |
19987 | PyObject * obj0 = 0 ; | |
19988 | PyObject * obj1 = 0 ; | |
19989 | char *kwnames[] = { | |
19990 | (char *) "self",(char *) "id", NULL | |
19991 | }; | |
19992 | ||
19993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
19994 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19996 | { | |
19997 | arg2 = (int)(SWIG_As_int(obj1)); | |
19998 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19999 | } | |
d55e5bfc RD |
20000 | { |
20001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20002 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
20003 | ||
20004 | wxPyEndAllowThreads(__tstate); | |
20005 | if (PyErr_Occurred()) SWIG_fail; | |
20006 | } | |
20007 | { | |
20008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20009 | } | |
20010 | return resultobj; | |
20011 | fail: | |
20012 | return NULL; | |
20013 | } | |
20014 | ||
20015 | ||
c370783e | 20016 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20017 | PyObject *resultobj; |
20018 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20019 | int arg2 ; | |
20020 | wxString *arg3 = 0 ; | |
b411df4a | 20021 | bool temp3 = false ; |
d55e5bfc RD |
20022 | PyObject * obj0 = 0 ; |
20023 | PyObject * obj1 = 0 ; | |
20024 | PyObject * obj2 = 0 ; | |
20025 | char *kwnames[] = { | |
20026 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20027 | }; | |
20028 | ||
20029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20032 | { | |
20033 | arg2 = (int)(SWIG_As_int(obj1)); | |
20034 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20035 | } | |
d55e5bfc RD |
20036 | { |
20037 | arg3 = wxString_in_helper(obj2); | |
20038 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 20039 | temp3 = true; |
d55e5bfc RD |
20040 | } |
20041 | { | |
20042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20043 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
20044 | ||
20045 | wxPyEndAllowThreads(__tstate); | |
20046 | if (PyErr_Occurred()) SWIG_fail; | |
20047 | } | |
20048 | Py_INCREF(Py_None); resultobj = Py_None; | |
20049 | { | |
20050 | if (temp3) | |
20051 | delete arg3; | |
20052 | } | |
20053 | return resultobj; | |
20054 | fail: | |
20055 | { | |
20056 | if (temp3) | |
20057 | delete arg3; | |
20058 | } | |
20059 | return NULL; | |
20060 | } | |
20061 | ||
20062 | ||
c370783e | 20063 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20064 | PyObject *resultobj; |
20065 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20066 | int arg2 ; | |
20067 | wxString result; | |
20068 | PyObject * obj0 = 0 ; | |
20069 | PyObject * obj1 = 0 ; | |
20070 | char *kwnames[] = { | |
20071 | (char *) "self",(char *) "id", NULL | |
20072 | }; | |
20073 | ||
20074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20077 | { | |
20078 | arg2 = (int)(SWIG_As_int(obj1)); | |
20079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20080 | } | |
d55e5bfc RD |
20081 | { |
20082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20083 | result = (arg1)->GetToolShortHelp(arg2); | |
20084 | ||
20085 | wxPyEndAllowThreads(__tstate); | |
20086 | if (PyErr_Occurred()) SWIG_fail; | |
20087 | } | |
20088 | { | |
20089 | #if wxUSE_UNICODE | |
20090 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20091 | #else | |
20092 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20093 | #endif | |
20094 | } | |
20095 | return resultobj; | |
20096 | fail: | |
20097 | return NULL; | |
20098 | } | |
20099 | ||
20100 | ||
c370783e | 20101 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20102 | PyObject *resultobj; |
20103 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20104 | int arg2 ; | |
20105 | wxString *arg3 = 0 ; | |
b411df4a | 20106 | bool temp3 = false ; |
d55e5bfc RD |
20107 | PyObject * obj0 = 0 ; |
20108 | PyObject * obj1 = 0 ; | |
20109 | PyObject * obj2 = 0 ; | |
20110 | char *kwnames[] = { | |
20111 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20112 | }; | |
20113 | ||
20114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20117 | { | |
20118 | arg2 = (int)(SWIG_As_int(obj1)); | |
20119 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20120 | } | |
d55e5bfc RD |
20121 | { |
20122 | arg3 = wxString_in_helper(obj2); | |
20123 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 20124 | temp3 = true; |
d55e5bfc RD |
20125 | } |
20126 | { | |
20127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20128 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
20129 | ||
20130 | wxPyEndAllowThreads(__tstate); | |
20131 | if (PyErr_Occurred()) SWIG_fail; | |
20132 | } | |
20133 | Py_INCREF(Py_None); resultobj = Py_None; | |
20134 | { | |
20135 | if (temp3) | |
20136 | delete arg3; | |
20137 | } | |
20138 | return resultobj; | |
20139 | fail: | |
20140 | { | |
20141 | if (temp3) | |
20142 | delete arg3; | |
20143 | } | |
20144 | return NULL; | |
20145 | } | |
20146 | ||
20147 | ||
c370783e | 20148 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20149 | PyObject *resultobj; |
20150 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20151 | int arg2 ; | |
20152 | wxString result; | |
20153 | PyObject * obj0 = 0 ; | |
20154 | PyObject * obj1 = 0 ; | |
20155 | char *kwnames[] = { | |
20156 | (char *) "self",(char *) "id", NULL | |
20157 | }; | |
20158 | ||
20159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20162 | { | |
20163 | arg2 = (int)(SWIG_As_int(obj1)); | |
20164 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20165 | } | |
d55e5bfc RD |
20166 | { |
20167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20168 | result = (arg1)->GetToolLongHelp(arg2); | |
20169 | ||
20170 | wxPyEndAllowThreads(__tstate); | |
20171 | if (PyErr_Occurred()) SWIG_fail; | |
20172 | } | |
20173 | { | |
20174 | #if wxUSE_UNICODE | |
20175 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20176 | #else | |
20177 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20178 | #endif | |
20179 | } | |
20180 | return resultobj; | |
20181 | fail: | |
20182 | return NULL; | |
20183 | } | |
20184 | ||
20185 | ||
c370783e | 20186 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20187 | PyObject *resultobj; |
20188 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20189 | int arg2 ; | |
20190 | int arg3 ; | |
20191 | PyObject * obj0 = 0 ; | |
20192 | PyObject * obj1 = 0 ; | |
20193 | PyObject * obj2 = 0 ; | |
20194 | char *kwnames[] = { | |
20195 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20196 | }; | |
20197 | ||
20198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20201 | { | |
20202 | arg2 = (int)(SWIG_As_int(obj1)); | |
20203 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20204 | } | |
20205 | { | |
20206 | arg3 = (int)(SWIG_As_int(obj2)); | |
20207 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20208 | } | |
d55e5bfc RD |
20209 | { |
20210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20211 | (arg1)->SetMargins(arg2,arg3); | |
20212 | ||
20213 | wxPyEndAllowThreads(__tstate); | |
20214 | if (PyErr_Occurred()) SWIG_fail; | |
20215 | } | |
20216 | Py_INCREF(Py_None); resultobj = Py_None; | |
20217 | return resultobj; | |
20218 | fail: | |
20219 | return NULL; | |
20220 | } | |
20221 | ||
20222 | ||
c370783e | 20223 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20224 | PyObject *resultobj; |
20225 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20226 | wxSize *arg2 = 0 ; | |
20227 | wxSize temp2 ; | |
20228 | PyObject * obj0 = 0 ; | |
20229 | PyObject * obj1 = 0 ; | |
20230 | char *kwnames[] = { | |
20231 | (char *) "self",(char *) "size", NULL | |
20232 | }; | |
20233 | ||
20234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20237 | { |
20238 | arg2 = &temp2; | |
20239 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20240 | } | |
20241 | { | |
20242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20243 | (arg1)->SetMargins((wxSize const &)*arg2); | |
20244 | ||
20245 | wxPyEndAllowThreads(__tstate); | |
20246 | if (PyErr_Occurred()) SWIG_fail; | |
20247 | } | |
20248 | Py_INCREF(Py_None); resultobj = Py_None; | |
20249 | return resultobj; | |
20250 | fail: | |
20251 | return NULL; | |
20252 | } | |
20253 | ||
20254 | ||
c370783e | 20255 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20256 | PyObject *resultobj; |
20257 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20258 | int arg2 ; | |
20259 | PyObject * obj0 = 0 ; | |
20260 | PyObject * obj1 = 0 ; | |
20261 | char *kwnames[] = { | |
20262 | (char *) "self",(char *) "packing", NULL | |
20263 | }; | |
20264 | ||
20265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20268 | { | |
20269 | arg2 = (int)(SWIG_As_int(obj1)); | |
20270 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20271 | } | |
d55e5bfc RD |
20272 | { |
20273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20274 | (arg1)->SetToolPacking(arg2); | |
20275 | ||
20276 | wxPyEndAllowThreads(__tstate); | |
20277 | if (PyErr_Occurred()) SWIG_fail; | |
20278 | } | |
20279 | Py_INCREF(Py_None); resultobj = Py_None; | |
20280 | return resultobj; | |
20281 | fail: | |
20282 | return NULL; | |
20283 | } | |
20284 | ||
20285 | ||
c370783e | 20286 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20287 | PyObject *resultobj; |
20288 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20289 | int arg2 ; | |
20290 | PyObject * obj0 = 0 ; | |
20291 | PyObject * obj1 = 0 ; | |
20292 | char *kwnames[] = { | |
20293 | (char *) "self",(char *) "separation", NULL | |
20294 | }; | |
20295 | ||
20296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20297 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20299 | { | |
20300 | arg2 = (int)(SWIG_As_int(obj1)); | |
20301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20302 | } | |
d55e5bfc RD |
20303 | { |
20304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20305 | (arg1)->SetToolSeparation(arg2); | |
20306 | ||
20307 | wxPyEndAllowThreads(__tstate); | |
20308 | if (PyErr_Occurred()) SWIG_fail; | |
20309 | } | |
20310 | Py_INCREF(Py_None); resultobj = Py_None; | |
20311 | return resultobj; | |
20312 | fail: | |
20313 | return NULL; | |
20314 | } | |
20315 | ||
20316 | ||
c370783e | 20317 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20318 | PyObject *resultobj; |
20319 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20320 | wxSize result; | |
20321 | PyObject * obj0 = 0 ; | |
20322 | char *kwnames[] = { | |
20323 | (char *) "self", NULL | |
20324 | }; | |
20325 | ||
20326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20329 | { |
20330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20331 | result = (arg1)->GetToolMargins(); | |
20332 | ||
20333 | wxPyEndAllowThreads(__tstate); | |
20334 | if (PyErr_Occurred()) SWIG_fail; | |
20335 | } | |
20336 | { | |
20337 | wxSize * resultptr; | |
36ed4f51 | 20338 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
20339 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
20340 | } | |
20341 | return resultobj; | |
20342 | fail: | |
20343 | return NULL; | |
20344 | } | |
20345 | ||
20346 | ||
c370783e | 20347 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20348 | PyObject *resultobj; |
20349 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20350 | wxSize result; | |
20351 | PyObject * obj0 = 0 ; | |
20352 | char *kwnames[] = { | |
20353 | (char *) "self", NULL | |
20354 | }; | |
20355 | ||
20356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20357 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20358 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20359 | { |
20360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20361 | result = (arg1)->GetMargins(); | |
20362 | ||
20363 | wxPyEndAllowThreads(__tstate); | |
20364 | if (PyErr_Occurred()) SWIG_fail; | |
20365 | } | |
20366 | { | |
20367 | wxSize * resultptr; | |
36ed4f51 | 20368 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
20369 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
20370 | } | |
20371 | return resultobj; | |
20372 | fail: | |
20373 | return NULL; | |
20374 | } | |
20375 | ||
20376 | ||
c370783e | 20377 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20378 | PyObject *resultobj; |
20379 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20380 | int result; | |
20381 | PyObject * obj0 = 0 ; | |
20382 | char *kwnames[] = { | |
20383 | (char *) "self", NULL | |
20384 | }; | |
20385 | ||
20386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20389 | { |
20390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20391 | result = (int)(arg1)->GetToolPacking(); | |
20392 | ||
20393 | wxPyEndAllowThreads(__tstate); | |
20394 | if (PyErr_Occurred()) SWIG_fail; | |
20395 | } | |
36ed4f51 RD |
20396 | { |
20397 | resultobj = SWIG_From_int((int)(result)); | |
20398 | } | |
d55e5bfc RD |
20399 | return resultobj; |
20400 | fail: | |
20401 | return NULL; | |
20402 | } | |
20403 | ||
20404 | ||
c370783e | 20405 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20406 | PyObject *resultobj; |
20407 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20408 | int result; | |
20409 | PyObject * obj0 = 0 ; | |
20410 | char *kwnames[] = { | |
20411 | (char *) "self", NULL | |
20412 | }; | |
20413 | ||
20414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20417 | { |
20418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20419 | result = (int)(arg1)->GetToolSeparation(); | |
20420 | ||
20421 | wxPyEndAllowThreads(__tstate); | |
20422 | if (PyErr_Occurred()) SWIG_fail; | |
20423 | } | |
36ed4f51 RD |
20424 | { |
20425 | resultobj = SWIG_From_int((int)(result)); | |
20426 | } | |
d55e5bfc RD |
20427 | return resultobj; |
20428 | fail: | |
20429 | return NULL; | |
20430 | } | |
20431 | ||
20432 | ||
c370783e | 20433 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20434 | PyObject *resultobj; |
20435 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20436 | int arg2 ; | |
20437 | PyObject * obj0 = 0 ; | |
20438 | PyObject * obj1 = 0 ; | |
20439 | char *kwnames[] = { | |
20440 | (char *) "self",(char *) "nRows", NULL | |
20441 | }; | |
20442 | ||
20443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20446 | { | |
20447 | arg2 = (int)(SWIG_As_int(obj1)); | |
20448 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20449 | } | |
d55e5bfc RD |
20450 | { |
20451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20452 | (arg1)->SetRows(arg2); | |
20453 | ||
20454 | wxPyEndAllowThreads(__tstate); | |
20455 | if (PyErr_Occurred()) SWIG_fail; | |
20456 | } | |
20457 | Py_INCREF(Py_None); resultobj = Py_None; | |
20458 | return resultobj; | |
20459 | fail: | |
20460 | return NULL; | |
20461 | } | |
20462 | ||
20463 | ||
c370783e | 20464 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20465 | PyObject *resultobj; |
20466 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20467 | int arg2 ; | |
20468 | int arg3 ; | |
20469 | PyObject * obj0 = 0 ; | |
20470 | PyObject * obj1 = 0 ; | |
20471 | PyObject * obj2 = 0 ; | |
20472 | char *kwnames[] = { | |
20473 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
20474 | }; | |
20475 | ||
20476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20479 | { | |
20480 | arg2 = (int)(SWIG_As_int(obj1)); | |
20481 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20482 | } | |
20483 | { | |
20484 | arg3 = (int)(SWIG_As_int(obj2)); | |
20485 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20486 | } | |
d55e5bfc RD |
20487 | { |
20488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20489 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
20490 | ||
20491 | wxPyEndAllowThreads(__tstate); | |
20492 | if (PyErr_Occurred()) SWIG_fail; | |
20493 | } | |
20494 | Py_INCREF(Py_None); resultobj = Py_None; | |
20495 | return resultobj; | |
20496 | fail: | |
20497 | return NULL; | |
20498 | } | |
20499 | ||
20500 | ||
c370783e | 20501 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20502 | PyObject *resultobj; |
20503 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20504 | int result; | |
20505 | PyObject * obj0 = 0 ; | |
20506 | char *kwnames[] = { | |
20507 | (char *) "self", NULL | |
20508 | }; | |
20509 | ||
20510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20513 | { |
20514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20515 | result = (int)(arg1)->GetMaxRows(); | |
20516 | ||
20517 | wxPyEndAllowThreads(__tstate); | |
20518 | if (PyErr_Occurred()) SWIG_fail; | |
20519 | } | |
36ed4f51 RD |
20520 | { |
20521 | resultobj = SWIG_From_int((int)(result)); | |
20522 | } | |
d55e5bfc RD |
20523 | return resultobj; |
20524 | fail: | |
20525 | return NULL; | |
20526 | } | |
20527 | ||
20528 | ||
c370783e | 20529 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20530 | PyObject *resultobj; |
20531 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20532 | int result; | |
20533 | PyObject * obj0 = 0 ; | |
20534 | char *kwnames[] = { | |
20535 | (char *) "self", NULL | |
20536 | }; | |
20537 | ||
20538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20541 | { |
20542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20543 | result = (int)(arg1)->GetMaxCols(); | |
20544 | ||
20545 | wxPyEndAllowThreads(__tstate); | |
20546 | if (PyErr_Occurred()) SWIG_fail; | |
20547 | } | |
36ed4f51 RD |
20548 | { |
20549 | resultobj = SWIG_From_int((int)(result)); | |
20550 | } | |
d55e5bfc RD |
20551 | return resultobj; |
20552 | fail: | |
20553 | return NULL; | |
20554 | } | |
20555 | ||
20556 | ||
c370783e | 20557 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20558 | PyObject *resultobj; |
20559 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20560 | wxSize *arg2 = 0 ; | |
20561 | wxSize temp2 ; | |
20562 | PyObject * obj0 = 0 ; | |
20563 | PyObject * obj1 = 0 ; | |
20564 | char *kwnames[] = { | |
20565 | (char *) "self",(char *) "size", NULL | |
20566 | }; | |
20567 | ||
20568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20571 | { |
20572 | arg2 = &temp2; | |
20573 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20574 | } | |
20575 | { | |
20576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20577 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
20578 | ||
20579 | wxPyEndAllowThreads(__tstate); | |
20580 | if (PyErr_Occurred()) SWIG_fail; | |
20581 | } | |
20582 | Py_INCREF(Py_None); resultobj = Py_None; | |
20583 | return resultobj; | |
20584 | fail: | |
20585 | return NULL; | |
20586 | } | |
20587 | ||
20588 | ||
c370783e | 20589 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20590 | PyObject *resultobj; |
20591 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20592 | wxSize result; | |
20593 | PyObject * obj0 = 0 ; | |
20594 | char *kwnames[] = { | |
20595 | (char *) "self", NULL | |
20596 | }; | |
20597 | ||
20598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20601 | { |
20602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20603 | result = (arg1)->GetToolBitmapSize(); | |
20604 | ||
20605 | wxPyEndAllowThreads(__tstate); | |
20606 | if (PyErr_Occurred()) SWIG_fail; | |
20607 | } | |
20608 | { | |
20609 | wxSize * resultptr; | |
36ed4f51 | 20610 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
20611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
20612 | } | |
20613 | return resultobj; | |
20614 | fail: | |
20615 | return NULL; | |
20616 | } | |
20617 | ||
20618 | ||
c370783e | 20619 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20620 | PyObject *resultobj; |
20621 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20622 | wxSize result; | |
20623 | PyObject * obj0 = 0 ; | |
20624 | char *kwnames[] = { | |
20625 | (char *) "self", NULL | |
20626 | }; | |
20627 | ||
20628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20631 | { |
20632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20633 | result = (arg1)->GetToolSize(); | |
20634 | ||
20635 | wxPyEndAllowThreads(__tstate); | |
20636 | if (PyErr_Occurred()) SWIG_fail; | |
20637 | } | |
20638 | { | |
20639 | wxSize * resultptr; | |
36ed4f51 | 20640 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
20641 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
20642 | } | |
20643 | return resultobj; | |
20644 | fail: | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
c370783e | 20649 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20650 | PyObject *resultobj; |
20651 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20652 | int arg2 ; | |
20653 | int arg3 ; | |
20654 | wxToolBarToolBase *result; | |
20655 | PyObject * obj0 = 0 ; | |
20656 | PyObject * obj1 = 0 ; | |
20657 | PyObject * obj2 = 0 ; | |
20658 | char *kwnames[] = { | |
20659 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20660 | }; | |
20661 | ||
20662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20665 | { | |
20666 | arg2 = (int)(SWIG_As_int(obj1)); | |
20667 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20668 | } | |
20669 | { | |
20670 | arg3 = (int)(SWIG_As_int(obj2)); | |
20671 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20672 | } | |
d55e5bfc RD |
20673 | { |
20674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20675 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
20676 | ||
20677 | wxPyEndAllowThreads(__tstate); | |
20678 | if (PyErr_Occurred()) SWIG_fail; | |
20679 | } | |
20680 | { | |
412d302d | 20681 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20682 | } |
20683 | return resultobj; | |
20684 | fail: | |
20685 | return NULL; | |
20686 | } | |
20687 | ||
20688 | ||
c370783e | 20689 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20690 | PyObject *resultobj; |
20691 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20692 | int arg2 ; | |
20693 | wxToolBarToolBase *result; | |
20694 | PyObject * obj0 = 0 ; | |
20695 | PyObject * obj1 = 0 ; | |
20696 | char *kwnames[] = { | |
20697 | (char *) "self",(char *) "toolid", NULL | |
20698 | }; | |
20699 | ||
20700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
20701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20703 | { | |
20704 | arg2 = (int)(SWIG_As_int(obj1)); | |
20705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20706 | } | |
d55e5bfc RD |
20707 | { |
20708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20709 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
20710 | ||
20711 | wxPyEndAllowThreads(__tstate); | |
20712 | if (PyErr_Occurred()) SWIG_fail; | |
20713 | } | |
20714 | { | |
412d302d | 20715 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20716 | } |
20717 | return resultobj; | |
20718 | fail: | |
20719 | return NULL; | |
20720 | } | |
20721 | ||
20722 | ||
c370783e | 20723 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20724 | PyObject *resultobj; |
20725 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20726 | bool result; | |
20727 | PyObject * obj0 = 0 ; | |
20728 | char *kwnames[] = { | |
20729 | (char *) "self", NULL | |
20730 | }; | |
20731 | ||
20732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
20733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20735 | { |
20736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20737 | result = (bool)(arg1)->IsVertical(); | |
20738 | ||
20739 | wxPyEndAllowThreads(__tstate); | |
20740 | if (PyErr_Occurred()) SWIG_fail; | |
20741 | } | |
20742 | { | |
20743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20744 | } | |
20745 | return resultobj; | |
20746 | fail: | |
20747 | return NULL; | |
20748 | } | |
20749 | ||
20750 | ||
c370783e | 20751 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20752 | PyObject *obj; |
20753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20754 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
20755 | Py_INCREF(obj); | |
20756 | return Py_BuildValue((char *)""); | |
20757 | } | |
c370783e | 20758 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20759 | PyObject *resultobj; |
20760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 20761 | int arg2 = (int) -1 ; |
d55e5bfc RD |
20762 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20763 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20764 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20765 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20766 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
20767 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
20768 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20769 | wxToolBar *result; | |
20770 | wxPoint temp3 ; | |
20771 | wxSize temp4 ; | |
b411df4a | 20772 | bool temp6 = false ; |
d55e5bfc RD |
20773 | PyObject * obj0 = 0 ; |
20774 | PyObject * obj1 = 0 ; | |
20775 | PyObject * obj2 = 0 ; | |
20776 | PyObject * obj3 = 0 ; | |
20777 | PyObject * obj4 = 0 ; | |
20778 | PyObject * obj5 = 0 ; | |
20779 | char *kwnames[] = { | |
20780 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20781 | }; | |
20782 | ||
bfddbb17 | 20783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
36ed4f51 RD |
20784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
20785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 20786 | if (obj1) { |
36ed4f51 RD |
20787 | { |
20788 | arg2 = (int)(SWIG_As_int(obj1)); | |
20789 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20790 | } | |
bfddbb17 | 20791 | } |
d55e5bfc RD |
20792 | if (obj2) { |
20793 | { | |
20794 | arg3 = &temp3; | |
20795 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20796 | } | |
20797 | } | |
20798 | if (obj3) { | |
20799 | { | |
20800 | arg4 = &temp4; | |
20801 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20802 | } | |
20803 | } | |
20804 | if (obj4) { | |
36ed4f51 RD |
20805 | { |
20806 | arg5 = (long)(SWIG_As_long(obj4)); | |
20807 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20808 | } | |
d55e5bfc RD |
20809 | } |
20810 | if (obj5) { | |
20811 | { | |
20812 | arg6 = wxString_in_helper(obj5); | |
20813 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 20814 | temp6 = true; |
d55e5bfc RD |
20815 | } |
20816 | } | |
20817 | { | |
0439c23b | 20818 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
20819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
20820 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20821 | ||
20822 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 20823 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 20824 | } |
b0f7404b | 20825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
20826 | { |
20827 | if (temp6) | |
20828 | delete arg6; | |
20829 | } | |
20830 | return resultobj; | |
20831 | fail: | |
20832 | { | |
20833 | if (temp6) | |
20834 | delete arg6; | |
20835 | } | |
20836 | return NULL; | |
20837 | } | |
20838 | ||
20839 | ||
c370783e | 20840 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20841 | PyObject *resultobj; |
20842 | wxToolBar *result; | |
20843 | char *kwnames[] = { | |
20844 | NULL | |
20845 | }; | |
20846 | ||
20847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
20848 | { | |
0439c23b | 20849 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
20850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
20851 | result = (wxToolBar *)new wxToolBar(); | |
20852 | ||
20853 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 20854 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 20855 | } |
b0f7404b | 20856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
20857 | return resultobj; |
20858 | fail: | |
20859 | return NULL; | |
20860 | } | |
20861 | ||
20862 | ||
c370783e | 20863 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20864 | PyObject *resultobj; |
20865 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
20866 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 20867 | int arg3 = (int) -1 ; |
d55e5bfc RD |
20868 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20869 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20870 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20871 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20872 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
20873 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
20874 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20875 | bool result; | |
20876 | wxPoint temp4 ; | |
20877 | wxSize temp5 ; | |
b411df4a | 20878 | bool temp7 = false ; |
d55e5bfc RD |
20879 | PyObject * obj0 = 0 ; |
20880 | PyObject * obj1 = 0 ; | |
20881 | PyObject * obj2 = 0 ; | |
20882 | PyObject * obj3 = 0 ; | |
20883 | PyObject * obj4 = 0 ; | |
20884 | PyObject * obj5 = 0 ; | |
20885 | PyObject * obj6 = 0 ; | |
20886 | char *kwnames[] = { | |
20887 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20888 | }; | |
20889 | ||
bfddbb17 | 20890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36ed4f51 RD |
20891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
20892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20893 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
20894 | if (SWIG_arg_fail(2)) SWIG_fail; | |
bfddbb17 | 20895 | if (obj2) { |
36ed4f51 RD |
20896 | { |
20897 | arg3 = (int)(SWIG_As_int(obj2)); | |
20898 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20899 | } | |
bfddbb17 | 20900 | } |
d55e5bfc RD |
20901 | if (obj3) { |
20902 | { | |
20903 | arg4 = &temp4; | |
20904 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20905 | } | |
20906 | } | |
20907 | if (obj4) { | |
20908 | { | |
20909 | arg5 = &temp5; | |
20910 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20911 | } | |
20912 | } | |
20913 | if (obj5) { | |
36ed4f51 RD |
20914 | { |
20915 | arg6 = (long)(SWIG_As_long(obj5)); | |
20916 | if (SWIG_arg_fail(6)) SWIG_fail; | |
20917 | } | |
d55e5bfc RD |
20918 | } |
20919 | if (obj6) { | |
20920 | { | |
20921 | arg7 = wxString_in_helper(obj6); | |
20922 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 20923 | temp7 = true; |
d55e5bfc RD |
20924 | } |
20925 | } | |
20926 | { | |
20927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20928 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20929 | ||
20930 | wxPyEndAllowThreads(__tstate); | |
20931 | if (PyErr_Occurred()) SWIG_fail; | |
20932 | } | |
20933 | { | |
20934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20935 | } | |
20936 | { | |
20937 | if (temp7) | |
20938 | delete arg7; | |
20939 | } | |
20940 | return resultobj; | |
20941 | fail: | |
20942 | { | |
20943 | if (temp7) | |
20944 | delete arg7; | |
20945 | } | |
20946 | return NULL; | |
20947 | } | |
20948 | ||
20949 | ||
c370783e | 20950 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20951 | PyObject *resultobj; |
20952 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
20953 | int arg2 ; | |
20954 | int arg3 ; | |
20955 | wxToolBarToolBase *result; | |
20956 | PyObject * obj0 = 0 ; | |
20957 | PyObject * obj1 = 0 ; | |
20958 | PyObject * obj2 = 0 ; | |
20959 | char *kwnames[] = { | |
20960 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20961 | }; | |
20962 | ||
20963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
20964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
20965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20966 | { | |
20967 | arg2 = (int)(SWIG_As_int(obj1)); | |
20968 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20969 | } | |
20970 | { | |
20971 | arg3 = (int)(SWIG_As_int(obj2)); | |
20972 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20973 | } | |
d55e5bfc RD |
20974 | { |
20975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20976 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
20977 | ||
20978 | wxPyEndAllowThreads(__tstate); | |
20979 | if (PyErr_Occurred()) SWIG_fail; | |
20980 | } | |
20981 | { | |
412d302d | 20982 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20983 | } |
20984 | return resultobj; | |
20985 | fail: | |
20986 | return NULL; | |
20987 | } | |
20988 | ||
20989 | ||
c370783e | 20990 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 20991 | PyObject *resultobj; |
36ed4f51 | 20992 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
20993 | wxVisualAttributes result; |
20994 | PyObject * obj0 = 0 ; | |
20995 | char *kwnames[] = { | |
20996 | (char *) "variant", NULL | |
20997 | }; | |
20998 | ||
20999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
21000 | if (obj0) { | |
36ed4f51 RD |
21001 | { |
21002 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
21003 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21004 | } | |
f20a2e1f RD |
21005 | } |
21006 | { | |
0439c23b | 21007 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
21008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21009 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
21010 | ||
21011 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21012 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
21013 | } |
21014 | { | |
21015 | wxVisualAttributes * resultptr; | |
36ed4f51 | 21016 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
21017 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
21018 | } | |
21019 | return resultobj; | |
21020 | fail: | |
21021 | return NULL; | |
21022 | } | |
21023 | ||
21024 | ||
c370783e | 21025 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21026 | PyObject *obj; |
21027 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21028 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
21029 | Py_INCREF(obj); | |
21030 | return Py_BuildValue((char *)""); | |
21031 | } | |
c370783e | 21032 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
21033 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
21034 | return 1; | |
21035 | } | |
21036 | ||
21037 | ||
36ed4f51 | 21038 | static PyObject *_wrap_ListCtrlNameStr_get(void) { |
d55e5bfc RD |
21039 | PyObject *pyobj; |
21040 | ||
21041 | { | |
21042 | #if wxUSE_UNICODE | |
21043 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21044 | #else | |
21045 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21046 | #endif | |
21047 | } | |
21048 | return pyobj; | |
21049 | } | |
21050 | ||
21051 | ||
c370783e | 21052 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21053 | PyObject *resultobj; |
21054 | wxColour const &arg1_defvalue = wxNullColour ; | |
21055 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
21056 | wxColour const &arg2_defvalue = wxNullColour ; | |
21057 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
21058 | wxFont const &arg3_defvalue = wxNullFont ; | |
21059 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
21060 | wxListItemAttr *result; | |
21061 | wxColour temp1 ; | |
21062 | wxColour temp2 ; | |
21063 | PyObject * obj0 = 0 ; | |
21064 | PyObject * obj1 = 0 ; | |
21065 | PyObject * obj2 = 0 ; | |
21066 | char *kwnames[] = { | |
21067 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
21068 | }; | |
21069 | ||
21070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21071 | if (obj0) { | |
21072 | { | |
21073 | arg1 = &temp1; | |
21074 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
21075 | } | |
21076 | } | |
21077 | if (obj1) { | |
21078 | { | |
21079 | arg2 = &temp2; | |
21080 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21081 | } | |
21082 | } | |
21083 | if (obj2) { | |
36ed4f51 RD |
21084 | { |
21085 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21086 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21087 | if (arg3 == NULL) { | |
21088 | SWIG_null_ref("wxFont"); | |
21089 | } | |
21090 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
21091 | } |
21092 | } | |
21093 | { | |
21094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21095 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
21096 | ||
21097 | wxPyEndAllowThreads(__tstate); | |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
21099 | } | |
21100 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
21101 | return resultobj; | |
21102 | fail: | |
21103 | return NULL; | |
21104 | } | |
21105 | ||
21106 | ||
c370783e | 21107 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21108 | PyObject *resultobj; |
21109 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21110 | wxColour *arg2 = 0 ; | |
21111 | wxColour temp2 ; | |
21112 | PyObject * obj0 = 0 ; | |
21113 | PyObject * obj1 = 0 ; | |
21114 | char *kwnames[] = { | |
21115 | (char *) "self",(char *) "colText", NULL | |
21116 | }; | |
21117 | ||
21118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21121 | { |
21122 | arg2 = &temp2; | |
21123 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21124 | } | |
21125 | { | |
21126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21127 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21128 | ||
21129 | wxPyEndAllowThreads(__tstate); | |
21130 | if (PyErr_Occurred()) SWIG_fail; | |
21131 | } | |
21132 | Py_INCREF(Py_None); resultobj = Py_None; | |
21133 | return resultobj; | |
21134 | fail: | |
21135 | return NULL; | |
21136 | } | |
21137 | ||
21138 | ||
c370783e | 21139 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21140 | PyObject *resultobj; |
21141 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21142 | wxColour *arg2 = 0 ; | |
21143 | wxColour temp2 ; | |
21144 | PyObject * obj0 = 0 ; | |
21145 | PyObject * obj1 = 0 ; | |
21146 | char *kwnames[] = { | |
21147 | (char *) "self",(char *) "colBack", NULL | |
21148 | }; | |
21149 | ||
21150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21153 | { |
21154 | arg2 = &temp2; | |
21155 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21156 | } | |
21157 | { | |
21158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21159 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21160 | ||
21161 | wxPyEndAllowThreads(__tstate); | |
21162 | if (PyErr_Occurred()) SWIG_fail; | |
21163 | } | |
21164 | Py_INCREF(Py_None); resultobj = Py_None; | |
21165 | return resultobj; | |
21166 | fail: | |
21167 | return NULL; | |
21168 | } | |
21169 | ||
21170 | ||
c370783e | 21171 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21172 | PyObject *resultobj; |
21173 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21174 | wxFont *arg2 = 0 ; | |
21175 | PyObject * obj0 = 0 ; | |
21176 | PyObject * obj1 = 0 ; | |
21177 | char *kwnames[] = { | |
21178 | (char *) "self",(char *) "font", NULL | |
21179 | }; | |
21180 | ||
21181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21184 | { | |
21185 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21186 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21187 | if (arg2 == NULL) { | |
21188 | SWIG_null_ref("wxFont"); | |
21189 | } | |
21190 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
21191 | } |
21192 | { | |
21193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21194 | (arg1)->SetFont((wxFont const &)*arg2); | |
21195 | ||
21196 | wxPyEndAllowThreads(__tstate); | |
21197 | if (PyErr_Occurred()) SWIG_fail; | |
21198 | } | |
21199 | Py_INCREF(Py_None); resultobj = Py_None; | |
21200 | return resultobj; | |
21201 | fail: | |
21202 | return NULL; | |
21203 | } | |
21204 | ||
21205 | ||
c370783e | 21206 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21207 | PyObject *resultobj; |
21208 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21209 | bool result; | |
21210 | PyObject * obj0 = 0 ; | |
21211 | char *kwnames[] = { | |
21212 | (char *) "self", NULL | |
21213 | }; | |
21214 | ||
21215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21218 | { |
21219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21220 | result = (bool)(arg1)->HasTextColour(); | |
21221 | ||
21222 | wxPyEndAllowThreads(__tstate); | |
21223 | if (PyErr_Occurred()) SWIG_fail; | |
21224 | } | |
21225 | { | |
21226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21227 | } | |
21228 | return resultobj; | |
21229 | fail: | |
21230 | return NULL; | |
21231 | } | |
21232 | ||
21233 | ||
c370783e | 21234 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21235 | PyObject *resultobj; |
21236 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21237 | bool result; | |
21238 | PyObject * obj0 = 0 ; | |
21239 | char *kwnames[] = { | |
21240 | (char *) "self", NULL | |
21241 | }; | |
21242 | ||
21243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21246 | { |
21247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21248 | result = (bool)(arg1)->HasBackgroundColour(); | |
21249 | ||
21250 | wxPyEndAllowThreads(__tstate); | |
21251 | if (PyErr_Occurred()) SWIG_fail; | |
21252 | } | |
21253 | { | |
21254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21255 | } | |
21256 | return resultobj; | |
21257 | fail: | |
21258 | return NULL; | |
21259 | } | |
21260 | ||
21261 | ||
c370783e | 21262 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21263 | PyObject *resultobj; |
21264 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21265 | bool result; | |
21266 | PyObject * obj0 = 0 ; | |
21267 | char *kwnames[] = { | |
21268 | (char *) "self", NULL | |
21269 | }; | |
21270 | ||
21271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21274 | { |
21275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21276 | result = (bool)(arg1)->HasFont(); | |
21277 | ||
21278 | wxPyEndAllowThreads(__tstate); | |
21279 | if (PyErr_Occurred()) SWIG_fail; | |
21280 | } | |
21281 | { | |
21282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21283 | } | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
c370783e | 21290 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21291 | PyObject *resultobj; |
21292 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21293 | wxColour result; | |
21294 | PyObject * obj0 = 0 ; | |
21295 | char *kwnames[] = { | |
21296 | (char *) "self", NULL | |
21297 | }; | |
21298 | ||
21299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21302 | { |
21303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21304 | result = (arg1)->GetTextColour(); | |
21305 | ||
21306 | wxPyEndAllowThreads(__tstate); | |
21307 | if (PyErr_Occurred()) SWIG_fail; | |
21308 | } | |
21309 | { | |
21310 | wxColour * resultptr; | |
36ed4f51 | 21311 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
21312 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
21313 | } | |
21314 | return resultobj; | |
21315 | fail: | |
21316 | return NULL; | |
21317 | } | |
21318 | ||
21319 | ||
c370783e | 21320 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21321 | PyObject *resultobj; |
21322 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21323 | wxColour result; | |
21324 | PyObject * obj0 = 0 ; | |
21325 | char *kwnames[] = { | |
21326 | (char *) "self", NULL | |
21327 | }; | |
21328 | ||
21329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21332 | { |
21333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21334 | result = (arg1)->GetBackgroundColour(); | |
21335 | ||
21336 | wxPyEndAllowThreads(__tstate); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
21339 | { | |
21340 | wxColour * resultptr; | |
36ed4f51 | 21341 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
21342 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
21343 | } | |
21344 | return resultobj; | |
21345 | fail: | |
21346 | return NULL; | |
21347 | } | |
21348 | ||
21349 | ||
c370783e | 21350 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21351 | PyObject *resultobj; |
21352 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21353 | wxFont result; | |
21354 | PyObject * obj0 = 0 ; | |
21355 | char *kwnames[] = { | |
21356 | (char *) "self", NULL | |
21357 | }; | |
21358 | ||
21359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21362 | { |
21363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21364 | result = (arg1)->GetFont(); | |
21365 | ||
21366 | wxPyEndAllowThreads(__tstate); | |
21367 | if (PyErr_Occurred()) SWIG_fail; | |
21368 | } | |
21369 | { | |
21370 | wxFont * resultptr; | |
36ed4f51 | 21371 | resultptr = new wxFont((wxFont &)(result)); |
d55e5bfc RD |
21372 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
21373 | } | |
21374 | return resultobj; | |
21375 | fail: | |
21376 | return NULL; | |
21377 | } | |
21378 | ||
21379 | ||
c370783e | 21380 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21381 | PyObject *resultobj; |
21382 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21383 | PyObject * obj0 = 0 ; | |
21384 | char *kwnames[] = { | |
21385 | (char *) "self", NULL | |
21386 | }; | |
21387 | ||
21388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21391 | { |
21392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21393 | wxListItemAttr_Destroy(arg1); | |
21394 | ||
21395 | wxPyEndAllowThreads(__tstate); | |
21396 | if (PyErr_Occurred()) SWIG_fail; | |
21397 | } | |
21398 | Py_INCREF(Py_None); resultobj = Py_None; | |
21399 | return resultobj; | |
21400 | fail: | |
21401 | return NULL; | |
21402 | } | |
21403 | ||
21404 | ||
c370783e | 21405 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21406 | PyObject *obj; |
21407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21408 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
21409 | Py_INCREF(obj); | |
21410 | return Py_BuildValue((char *)""); | |
21411 | } | |
c370783e | 21412 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21413 | PyObject *resultobj; |
21414 | wxListItem *result; | |
21415 | char *kwnames[] = { | |
21416 | NULL | |
21417 | }; | |
21418 | ||
21419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
21420 | { | |
21421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21422 | result = (wxListItem *)new wxListItem(); | |
21423 | ||
21424 | wxPyEndAllowThreads(__tstate); | |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
21426 | } | |
21427 | { | |
412d302d | 21428 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
21429 | } |
21430 | return resultobj; | |
21431 | fail: | |
21432 | return NULL; | |
21433 | } | |
21434 | ||
21435 | ||
c370783e | 21436 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21437 | PyObject *resultobj; |
21438 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21439 | PyObject * obj0 = 0 ; | |
21440 | char *kwnames[] = { | |
21441 | (char *) "self", NULL | |
21442 | }; | |
21443 | ||
21444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21447 | { |
21448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21449 | delete arg1; | |
21450 | ||
21451 | wxPyEndAllowThreads(__tstate); | |
21452 | if (PyErr_Occurred()) SWIG_fail; | |
21453 | } | |
21454 | Py_INCREF(Py_None); resultobj = Py_None; | |
21455 | return resultobj; | |
21456 | fail: | |
21457 | return NULL; | |
21458 | } | |
21459 | ||
21460 | ||
c370783e | 21461 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21462 | PyObject *resultobj; |
21463 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21464 | PyObject * obj0 = 0 ; | |
21465 | char *kwnames[] = { | |
21466 | (char *) "self", NULL | |
21467 | }; | |
21468 | ||
21469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21472 | { |
21473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21474 | (arg1)->Clear(); | |
21475 | ||
21476 | wxPyEndAllowThreads(__tstate); | |
21477 | if (PyErr_Occurred()) SWIG_fail; | |
21478 | } | |
21479 | Py_INCREF(Py_None); resultobj = Py_None; | |
21480 | return resultobj; | |
21481 | fail: | |
21482 | return NULL; | |
21483 | } | |
21484 | ||
21485 | ||
c370783e | 21486 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21487 | PyObject *resultobj; |
21488 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21489 | PyObject * obj0 = 0 ; | |
21490 | char *kwnames[] = { | |
21491 | (char *) "self", NULL | |
21492 | }; | |
21493 | ||
21494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21497 | { |
21498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21499 | (arg1)->ClearAttributes(); | |
21500 | ||
21501 | wxPyEndAllowThreads(__tstate); | |
21502 | if (PyErr_Occurred()) SWIG_fail; | |
21503 | } | |
21504 | Py_INCREF(Py_None); resultobj = Py_None; | |
21505 | return resultobj; | |
21506 | fail: | |
21507 | return NULL; | |
21508 | } | |
21509 | ||
21510 | ||
c370783e | 21511 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21512 | PyObject *resultobj; |
21513 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21514 | long arg2 ; | |
21515 | PyObject * obj0 = 0 ; | |
21516 | PyObject * obj1 = 0 ; | |
21517 | char *kwnames[] = { | |
21518 | (char *) "self",(char *) "mask", NULL | |
21519 | }; | |
21520 | ||
21521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21524 | { | |
21525 | arg2 = (long)(SWIG_As_long(obj1)); | |
21526 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21527 | } | |
d55e5bfc RD |
21528 | { |
21529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21530 | (arg1)->SetMask(arg2); | |
21531 | ||
21532 | wxPyEndAllowThreads(__tstate); | |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | } | |
21535 | Py_INCREF(Py_None); resultobj = Py_None; | |
21536 | return resultobj; | |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
c370783e | 21542 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21543 | PyObject *resultobj; |
21544 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21545 | long arg2 ; | |
21546 | PyObject * obj0 = 0 ; | |
21547 | PyObject * obj1 = 0 ; | |
21548 | char *kwnames[] = { | |
21549 | (char *) "self",(char *) "id", NULL | |
21550 | }; | |
21551 | ||
21552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21553 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21554 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21555 | { | |
21556 | arg2 = (long)(SWIG_As_long(obj1)); | |
21557 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21558 | } | |
d55e5bfc RD |
21559 | { |
21560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21561 | (arg1)->SetId(arg2); | |
21562 | ||
21563 | wxPyEndAllowThreads(__tstate); | |
21564 | if (PyErr_Occurred()) SWIG_fail; | |
21565 | } | |
21566 | Py_INCREF(Py_None); resultobj = Py_None; | |
21567 | return resultobj; | |
21568 | fail: | |
21569 | return NULL; | |
21570 | } | |
21571 | ||
21572 | ||
c370783e | 21573 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21574 | PyObject *resultobj; |
21575 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21576 | int arg2 ; | |
21577 | PyObject * obj0 = 0 ; | |
21578 | PyObject * obj1 = 0 ; | |
21579 | char *kwnames[] = { | |
21580 | (char *) "self",(char *) "col", NULL | |
21581 | }; | |
21582 | ||
21583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21584 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21585 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21586 | { | |
21587 | arg2 = (int)(SWIG_As_int(obj1)); | |
21588 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21589 | } | |
d55e5bfc RD |
21590 | { |
21591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21592 | (arg1)->SetColumn(arg2); | |
21593 | ||
21594 | wxPyEndAllowThreads(__tstate); | |
21595 | if (PyErr_Occurred()) SWIG_fail; | |
21596 | } | |
21597 | Py_INCREF(Py_None); resultobj = Py_None; | |
21598 | return resultobj; | |
21599 | fail: | |
21600 | return NULL; | |
21601 | } | |
21602 | ||
21603 | ||
c370783e | 21604 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21605 | PyObject *resultobj; |
21606 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21607 | long arg2 ; | |
21608 | PyObject * obj0 = 0 ; | |
21609 | PyObject * obj1 = 0 ; | |
21610 | char *kwnames[] = { | |
21611 | (char *) "self",(char *) "state", NULL | |
21612 | }; | |
21613 | ||
21614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21617 | { | |
21618 | arg2 = (long)(SWIG_As_long(obj1)); | |
21619 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21620 | } | |
d55e5bfc RD |
21621 | { |
21622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21623 | (arg1)->SetState(arg2); | |
21624 | ||
21625 | wxPyEndAllowThreads(__tstate); | |
21626 | if (PyErr_Occurred()) SWIG_fail; | |
21627 | } | |
21628 | Py_INCREF(Py_None); resultobj = Py_None; | |
21629 | return resultobj; | |
21630 | fail: | |
21631 | return NULL; | |
21632 | } | |
21633 | ||
21634 | ||
c370783e | 21635 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21636 | PyObject *resultobj; |
21637 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21638 | long arg2 ; | |
21639 | PyObject * obj0 = 0 ; | |
21640 | PyObject * obj1 = 0 ; | |
21641 | char *kwnames[] = { | |
21642 | (char *) "self",(char *) "stateMask", NULL | |
21643 | }; | |
21644 | ||
21645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21648 | { | |
21649 | arg2 = (long)(SWIG_As_long(obj1)); | |
21650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21651 | } | |
d55e5bfc RD |
21652 | { |
21653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21654 | (arg1)->SetStateMask(arg2); | |
21655 | ||
21656 | wxPyEndAllowThreads(__tstate); | |
21657 | if (PyErr_Occurred()) SWIG_fail; | |
21658 | } | |
21659 | Py_INCREF(Py_None); resultobj = Py_None; | |
21660 | return resultobj; | |
21661 | fail: | |
21662 | return NULL; | |
21663 | } | |
21664 | ||
21665 | ||
c370783e | 21666 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21667 | PyObject *resultobj; |
21668 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21669 | wxString *arg2 = 0 ; | |
b411df4a | 21670 | bool temp2 = false ; |
d55e5bfc RD |
21671 | PyObject * obj0 = 0 ; |
21672 | PyObject * obj1 = 0 ; | |
21673 | char *kwnames[] = { | |
21674 | (char *) "self",(char *) "text", NULL | |
21675 | }; | |
21676 | ||
21677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21680 | { |
21681 | arg2 = wxString_in_helper(obj1); | |
21682 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 21683 | temp2 = true; |
d55e5bfc RD |
21684 | } |
21685 | { | |
21686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21687 | (arg1)->SetText((wxString const &)*arg2); | |
21688 | ||
21689 | wxPyEndAllowThreads(__tstate); | |
21690 | if (PyErr_Occurred()) SWIG_fail; | |
21691 | } | |
21692 | Py_INCREF(Py_None); resultobj = Py_None; | |
21693 | { | |
21694 | if (temp2) | |
21695 | delete arg2; | |
21696 | } | |
21697 | return resultobj; | |
21698 | fail: | |
21699 | { | |
21700 | if (temp2) | |
21701 | delete arg2; | |
21702 | } | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
c370783e | 21707 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21708 | PyObject *resultobj; |
21709 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21710 | int arg2 ; | |
21711 | PyObject * obj0 = 0 ; | |
21712 | PyObject * obj1 = 0 ; | |
21713 | char *kwnames[] = { | |
21714 | (char *) "self",(char *) "image", NULL | |
21715 | }; | |
21716 | ||
21717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21720 | { | |
21721 | arg2 = (int)(SWIG_As_int(obj1)); | |
21722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21723 | } | |
d55e5bfc RD |
21724 | { |
21725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21726 | (arg1)->SetImage(arg2); | |
21727 | ||
21728 | wxPyEndAllowThreads(__tstate); | |
21729 | if (PyErr_Occurred()) SWIG_fail; | |
21730 | } | |
21731 | Py_INCREF(Py_None); resultobj = Py_None; | |
21732 | return resultobj; | |
21733 | fail: | |
21734 | return NULL; | |
21735 | } | |
21736 | ||
21737 | ||
c370783e | 21738 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21739 | PyObject *resultobj; |
21740 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21741 | long arg2 ; | |
21742 | PyObject * obj0 = 0 ; | |
21743 | PyObject * obj1 = 0 ; | |
21744 | char *kwnames[] = { | |
21745 | (char *) "self",(char *) "data", NULL | |
21746 | }; | |
21747 | ||
21748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21751 | { | |
21752 | arg2 = (long)(SWIG_As_long(obj1)); | |
21753 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21754 | } | |
d55e5bfc RD |
21755 | { |
21756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21757 | (arg1)->SetData(arg2); | |
21758 | ||
21759 | wxPyEndAllowThreads(__tstate); | |
21760 | if (PyErr_Occurred()) SWIG_fail; | |
21761 | } | |
21762 | Py_INCREF(Py_None); resultobj = Py_None; | |
21763 | return resultobj; | |
21764 | fail: | |
21765 | return NULL; | |
21766 | } | |
21767 | ||
21768 | ||
c370783e | 21769 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21770 | PyObject *resultobj; |
21771 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21772 | int arg2 ; | |
21773 | PyObject * obj0 = 0 ; | |
21774 | PyObject * obj1 = 0 ; | |
21775 | char *kwnames[] = { | |
21776 | (char *) "self",(char *) "width", NULL | |
21777 | }; | |
21778 | ||
21779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21782 | { | |
21783 | arg2 = (int)(SWIG_As_int(obj1)); | |
21784 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21785 | } | |
d55e5bfc RD |
21786 | { |
21787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21788 | (arg1)->SetWidth(arg2); | |
21789 | ||
21790 | wxPyEndAllowThreads(__tstate); | |
21791 | if (PyErr_Occurred()) SWIG_fail; | |
21792 | } | |
21793 | Py_INCREF(Py_None); resultobj = Py_None; | |
21794 | return resultobj; | |
21795 | fail: | |
21796 | return NULL; | |
21797 | } | |
21798 | ||
21799 | ||
c370783e | 21800 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21801 | PyObject *resultobj; |
21802 | wxListItem *arg1 = (wxListItem *) 0 ; | |
36ed4f51 | 21803 | wxListColumnFormat arg2 ; |
d55e5bfc RD |
21804 | PyObject * obj0 = 0 ; |
21805 | PyObject * obj1 = 0 ; | |
21806 | char *kwnames[] = { | |
21807 | (char *) "self",(char *) "align", NULL | |
21808 | }; | |
21809 | ||
21810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21813 | { | |
21814 | arg2 = (wxListColumnFormat)(SWIG_As_int(obj1)); | |
21815 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21816 | } | |
d55e5bfc RD |
21817 | { |
21818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21819 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
21820 | ||
21821 | wxPyEndAllowThreads(__tstate); | |
21822 | if (PyErr_Occurred()) SWIG_fail; | |
21823 | } | |
21824 | Py_INCREF(Py_None); resultobj = Py_None; | |
21825 | return resultobj; | |
21826 | fail: | |
21827 | return NULL; | |
21828 | } | |
21829 | ||
21830 | ||
c370783e | 21831 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21832 | PyObject *resultobj; |
21833 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21834 | wxColour *arg2 = 0 ; | |
21835 | wxColour temp2 ; | |
21836 | PyObject * obj0 = 0 ; | |
21837 | PyObject * obj1 = 0 ; | |
21838 | char *kwnames[] = { | |
21839 | (char *) "self",(char *) "colText", NULL | |
21840 | }; | |
21841 | ||
21842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21845 | { |
21846 | arg2 = &temp2; | |
21847 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21848 | } | |
21849 | { | |
21850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21851 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21852 | ||
21853 | wxPyEndAllowThreads(__tstate); | |
21854 | if (PyErr_Occurred()) SWIG_fail; | |
21855 | } | |
21856 | Py_INCREF(Py_None); resultobj = Py_None; | |
21857 | return resultobj; | |
21858 | fail: | |
21859 | return NULL; | |
21860 | } | |
21861 | ||
21862 | ||
c370783e | 21863 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21864 | PyObject *resultobj; |
21865 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21866 | wxColour *arg2 = 0 ; | |
21867 | wxColour temp2 ; | |
21868 | PyObject * obj0 = 0 ; | |
21869 | PyObject * obj1 = 0 ; | |
21870 | char *kwnames[] = { | |
21871 | (char *) "self",(char *) "colBack", NULL | |
21872 | }; | |
21873 | ||
21874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21877 | { |
21878 | arg2 = &temp2; | |
21879 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21880 | } | |
21881 | { | |
21882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21883 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21884 | ||
21885 | wxPyEndAllowThreads(__tstate); | |
21886 | if (PyErr_Occurred()) SWIG_fail; | |
21887 | } | |
21888 | Py_INCREF(Py_None); resultobj = Py_None; | |
21889 | return resultobj; | |
21890 | fail: | |
21891 | return NULL; | |
21892 | } | |
21893 | ||
21894 | ||
c370783e | 21895 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21896 | PyObject *resultobj; |
21897 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21898 | wxFont *arg2 = 0 ; | |
21899 | PyObject * obj0 = 0 ; | |
21900 | PyObject * obj1 = 0 ; | |
21901 | char *kwnames[] = { | |
21902 | (char *) "self",(char *) "font", NULL | |
21903 | }; | |
21904 | ||
21905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
21906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21908 | { | |
21909 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21910 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21911 | if (arg2 == NULL) { | |
21912 | SWIG_null_ref("wxFont"); | |
21913 | } | |
21914 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
21915 | } |
21916 | { | |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | (arg1)->SetFont((wxFont const &)*arg2); | |
21919 | ||
21920 | wxPyEndAllowThreads(__tstate); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | Py_INCREF(Py_None); resultobj = Py_None; | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
c370783e | 21930 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21931 | PyObject *resultobj; |
21932 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21933 | long result; | |
21934 | PyObject * obj0 = 0 ; | |
21935 | char *kwnames[] = { | |
21936 | (char *) "self", NULL | |
21937 | }; | |
21938 | ||
21939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21942 | { |
21943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21944 | result = (long)(arg1)->GetMask(); | |
21945 | ||
21946 | wxPyEndAllowThreads(__tstate); | |
21947 | if (PyErr_Occurred()) SWIG_fail; | |
21948 | } | |
36ed4f51 RD |
21949 | { |
21950 | resultobj = SWIG_From_long((long)(result)); | |
21951 | } | |
d55e5bfc RD |
21952 | return resultobj; |
21953 | fail: | |
21954 | return NULL; | |
21955 | } | |
21956 | ||
21957 | ||
c370783e | 21958 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21959 | PyObject *resultobj; |
21960 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21961 | long result; | |
21962 | PyObject * obj0 = 0 ; | |
21963 | char *kwnames[] = { | |
21964 | (char *) "self", NULL | |
21965 | }; | |
21966 | ||
21967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21970 | { |
21971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21972 | result = (long)(arg1)->GetId(); | |
21973 | ||
21974 | wxPyEndAllowThreads(__tstate); | |
21975 | if (PyErr_Occurred()) SWIG_fail; | |
21976 | } | |
36ed4f51 RD |
21977 | { |
21978 | resultobj = SWIG_From_long((long)(result)); | |
21979 | } | |
d55e5bfc RD |
21980 | return resultobj; |
21981 | fail: | |
21982 | return NULL; | |
21983 | } | |
21984 | ||
21985 | ||
c370783e | 21986 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21987 | PyObject *resultobj; |
21988 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21989 | int result; | |
21990 | PyObject * obj0 = 0 ; | |
21991 | char *kwnames[] = { | |
21992 | (char *) "self", NULL | |
21993 | }; | |
21994 | ||
21995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
21996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21998 | { |
21999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22000 | result = (int)(arg1)->GetColumn(); | |
22001 | ||
22002 | wxPyEndAllowThreads(__tstate); | |
22003 | if (PyErr_Occurred()) SWIG_fail; | |
22004 | } | |
36ed4f51 RD |
22005 | { |
22006 | resultobj = SWIG_From_int((int)(result)); | |
22007 | } | |
d55e5bfc RD |
22008 | return resultobj; |
22009 | fail: | |
22010 | return NULL; | |
22011 | } | |
22012 | ||
22013 | ||
c370783e | 22014 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22015 | PyObject *resultobj; |
22016 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22017 | long result; | |
22018 | PyObject * obj0 = 0 ; | |
22019 | char *kwnames[] = { | |
22020 | (char *) "self", NULL | |
22021 | }; | |
22022 | ||
22023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22026 | { |
22027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22028 | result = (long)(arg1)->GetState(); | |
22029 | ||
22030 | wxPyEndAllowThreads(__tstate); | |
22031 | if (PyErr_Occurred()) SWIG_fail; | |
22032 | } | |
36ed4f51 RD |
22033 | { |
22034 | resultobj = SWIG_From_long((long)(result)); | |
22035 | } | |
d55e5bfc RD |
22036 | return resultobj; |
22037 | fail: | |
22038 | return NULL; | |
22039 | } | |
22040 | ||
22041 | ||
c370783e | 22042 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22043 | PyObject *resultobj; |
22044 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22045 | wxString *result; | |
22046 | PyObject * obj0 = 0 ; | |
22047 | char *kwnames[] = { | |
22048 | (char *) "self", NULL | |
22049 | }; | |
22050 | ||
22051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22054 | { |
22055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22056 | { | |
22057 | wxString const &_result_ref = (arg1)->GetText(); | |
22058 | result = (wxString *) &_result_ref; | |
22059 | } | |
22060 | ||
22061 | wxPyEndAllowThreads(__tstate); | |
22062 | if (PyErr_Occurred()) SWIG_fail; | |
22063 | } | |
22064 | { | |
22065 | #if wxUSE_UNICODE | |
22066 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22067 | #else | |
22068 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22069 | #endif | |
22070 | } | |
22071 | return resultobj; | |
22072 | fail: | |
22073 | return NULL; | |
22074 | } | |
22075 | ||
22076 | ||
c370783e | 22077 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22078 | PyObject *resultobj; |
22079 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22080 | int result; | |
22081 | PyObject * obj0 = 0 ; | |
22082 | char *kwnames[] = { | |
22083 | (char *) "self", NULL | |
22084 | }; | |
22085 | ||
22086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22089 | { |
22090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22091 | result = (int)(arg1)->GetImage(); | |
22092 | ||
22093 | wxPyEndAllowThreads(__tstate); | |
22094 | if (PyErr_Occurred()) SWIG_fail; | |
22095 | } | |
36ed4f51 RD |
22096 | { |
22097 | resultobj = SWIG_From_int((int)(result)); | |
22098 | } | |
d55e5bfc RD |
22099 | return resultobj; |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
c370783e | 22105 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22106 | PyObject *resultobj; |
22107 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22108 | long result; | |
22109 | PyObject * obj0 = 0 ; | |
22110 | char *kwnames[] = { | |
22111 | (char *) "self", NULL | |
22112 | }; | |
22113 | ||
22114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22117 | { |
22118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22119 | result = (long)(arg1)->GetData(); | |
22120 | ||
22121 | wxPyEndAllowThreads(__tstate); | |
22122 | if (PyErr_Occurred()) SWIG_fail; | |
22123 | } | |
36ed4f51 RD |
22124 | { |
22125 | resultobj = SWIG_From_long((long)(result)); | |
22126 | } | |
d55e5bfc RD |
22127 | return resultobj; |
22128 | fail: | |
22129 | return NULL; | |
22130 | } | |
22131 | ||
22132 | ||
c370783e | 22133 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22134 | PyObject *resultobj; |
22135 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22136 | int result; | |
22137 | PyObject * obj0 = 0 ; | |
22138 | char *kwnames[] = { | |
22139 | (char *) "self", NULL | |
22140 | }; | |
22141 | ||
22142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22145 | { |
22146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22147 | result = (int)(arg1)->GetWidth(); | |
22148 | ||
22149 | wxPyEndAllowThreads(__tstate); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
36ed4f51 RD |
22152 | { |
22153 | resultobj = SWIG_From_int((int)(result)); | |
22154 | } | |
d55e5bfc RD |
22155 | return resultobj; |
22156 | fail: | |
22157 | return NULL; | |
22158 | } | |
22159 | ||
22160 | ||
c370783e | 22161 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22162 | PyObject *resultobj; |
22163 | wxListItem *arg1 = (wxListItem *) 0 ; | |
36ed4f51 | 22164 | wxListColumnFormat result; |
d55e5bfc RD |
22165 | PyObject * obj0 = 0 ; |
22166 | char *kwnames[] = { | |
22167 | (char *) "self", NULL | |
22168 | }; | |
22169 | ||
22170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22173 | { |
22174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36ed4f51 | 22175 | result = (wxListColumnFormat)(arg1)->GetAlign(); |
d55e5bfc RD |
22176 | |
22177 | wxPyEndAllowThreads(__tstate); | |
22178 | if (PyErr_Occurred()) SWIG_fail; | |
22179 | } | |
36ed4f51 | 22180 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
22181 | return resultobj; |
22182 | fail: | |
22183 | return NULL; | |
22184 | } | |
22185 | ||
22186 | ||
c370783e | 22187 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22188 | PyObject *resultobj; |
22189 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22190 | wxListItemAttr *result; | |
22191 | PyObject * obj0 = 0 ; | |
22192 | char *kwnames[] = { | |
22193 | (char *) "self", NULL | |
22194 | }; | |
22195 | ||
22196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22199 | { |
22200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22201 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
22202 | ||
22203 | wxPyEndAllowThreads(__tstate); | |
22204 | if (PyErr_Occurred()) SWIG_fail; | |
22205 | } | |
22206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
22207 | return resultobj; | |
22208 | fail: | |
22209 | return NULL; | |
22210 | } | |
22211 | ||
22212 | ||
c370783e | 22213 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22214 | PyObject *resultobj; |
22215 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22216 | bool result; | |
22217 | PyObject * obj0 = 0 ; | |
22218 | char *kwnames[] = { | |
22219 | (char *) "self", NULL | |
22220 | }; | |
22221 | ||
22222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22225 | { |
22226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22227 | result = (bool)(arg1)->HasAttributes(); | |
22228 | ||
22229 | wxPyEndAllowThreads(__tstate); | |
22230 | if (PyErr_Occurred()) SWIG_fail; | |
22231 | } | |
22232 | { | |
22233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22234 | } | |
22235 | return resultobj; | |
22236 | fail: | |
22237 | return NULL; | |
22238 | } | |
22239 | ||
22240 | ||
c370783e | 22241 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22242 | PyObject *resultobj; |
22243 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22244 | wxColour result; | |
22245 | PyObject * obj0 = 0 ; | |
22246 | char *kwnames[] = { | |
22247 | (char *) "self", NULL | |
22248 | }; | |
22249 | ||
22250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22253 | { |
22254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22255 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
22256 | ||
22257 | wxPyEndAllowThreads(__tstate); | |
22258 | if (PyErr_Occurred()) SWIG_fail; | |
22259 | } | |
22260 | { | |
22261 | wxColour * resultptr; | |
36ed4f51 | 22262 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
22263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
22264 | } | |
22265 | return resultobj; | |
22266 | fail: | |
22267 | return NULL; | |
22268 | } | |
22269 | ||
22270 | ||
c370783e | 22271 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22272 | PyObject *resultobj; |
22273 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22274 | wxColour result; | |
22275 | PyObject * obj0 = 0 ; | |
22276 | char *kwnames[] = { | |
22277 | (char *) "self", NULL | |
22278 | }; | |
22279 | ||
22280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22283 | { |
22284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22285 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
22286 | ||
22287 | wxPyEndAllowThreads(__tstate); | |
22288 | if (PyErr_Occurred()) SWIG_fail; | |
22289 | } | |
22290 | { | |
22291 | wxColour * resultptr; | |
36ed4f51 | 22292 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
22293 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
22294 | } | |
22295 | return resultobj; | |
22296 | fail: | |
22297 | return NULL; | |
22298 | } | |
22299 | ||
22300 | ||
c370783e | 22301 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22302 | PyObject *resultobj; |
22303 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22304 | wxFont result; | |
22305 | PyObject * obj0 = 0 ; | |
22306 | char *kwnames[] = { | |
22307 | (char *) "self", NULL | |
22308 | }; | |
22309 | ||
22310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22313 | { |
22314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22315 | result = ((wxListItem const *)arg1)->GetFont(); | |
22316 | ||
22317 | wxPyEndAllowThreads(__tstate); | |
22318 | if (PyErr_Occurred()) SWIG_fail; | |
22319 | } | |
22320 | { | |
22321 | wxFont * resultptr; | |
36ed4f51 | 22322 | resultptr = new wxFont((wxFont &)(result)); |
d55e5bfc RD |
22323 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
22324 | } | |
22325 | return resultobj; | |
22326 | fail: | |
22327 | return NULL; | |
22328 | } | |
22329 | ||
22330 | ||
c370783e | 22331 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22332 | PyObject *resultobj; |
22333 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22334 | long arg2 ; | |
22335 | PyObject * obj0 = 0 ; | |
22336 | PyObject * obj1 = 0 ; | |
22337 | char *kwnames[] = { | |
22338 | (char *) "self",(char *) "m_mask", NULL | |
22339 | }; | |
22340 | ||
22341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22344 | { | |
22345 | arg2 = (long)(SWIG_As_long(obj1)); | |
22346 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22347 | } | |
d55e5bfc RD |
22348 | if (arg1) (arg1)->m_mask = arg2; |
22349 | ||
22350 | Py_INCREF(Py_None); resultobj = Py_None; | |
22351 | return resultobj; | |
22352 | fail: | |
22353 | return NULL; | |
22354 | } | |
22355 | ||
22356 | ||
c370783e | 22357 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22358 | PyObject *resultobj; |
22359 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22360 | long result; | |
22361 | PyObject * obj0 = 0 ; | |
22362 | char *kwnames[] = { | |
22363 | (char *) "self", NULL | |
22364 | }; | |
22365 | ||
22366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22369 | result = (long) ((arg1)->m_mask); |
22370 | ||
36ed4f51 RD |
22371 | { |
22372 | resultobj = SWIG_From_long((long)(result)); | |
22373 | } | |
d55e5bfc RD |
22374 | return resultobj; |
22375 | fail: | |
22376 | return NULL; | |
22377 | } | |
22378 | ||
22379 | ||
c370783e | 22380 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22381 | PyObject *resultobj; |
22382 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22383 | long arg2 ; | |
22384 | PyObject * obj0 = 0 ; | |
22385 | PyObject * obj1 = 0 ; | |
22386 | char *kwnames[] = { | |
22387 | (char *) "self",(char *) "m_itemId", NULL | |
22388 | }; | |
22389 | ||
22390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22393 | { | |
22394 | arg2 = (long)(SWIG_As_long(obj1)); | |
22395 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22396 | } | |
d55e5bfc RD |
22397 | if (arg1) (arg1)->m_itemId = arg2; |
22398 | ||
22399 | Py_INCREF(Py_None); resultobj = Py_None; | |
22400 | return resultobj; | |
22401 | fail: | |
22402 | return NULL; | |
22403 | } | |
22404 | ||
22405 | ||
c370783e | 22406 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22407 | PyObject *resultobj; |
22408 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22409 | long result; | |
22410 | PyObject * obj0 = 0 ; | |
22411 | char *kwnames[] = { | |
22412 | (char *) "self", NULL | |
22413 | }; | |
22414 | ||
22415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22418 | result = (long) ((arg1)->m_itemId); |
22419 | ||
36ed4f51 RD |
22420 | { |
22421 | resultobj = SWIG_From_long((long)(result)); | |
22422 | } | |
d55e5bfc RD |
22423 | return resultobj; |
22424 | fail: | |
22425 | return NULL; | |
22426 | } | |
22427 | ||
22428 | ||
c370783e | 22429 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22430 | PyObject *resultobj; |
22431 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22432 | int arg2 ; | |
22433 | PyObject * obj0 = 0 ; | |
22434 | PyObject * obj1 = 0 ; | |
22435 | char *kwnames[] = { | |
22436 | (char *) "self",(char *) "m_col", NULL | |
22437 | }; | |
22438 | ||
22439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22442 | { | |
22443 | arg2 = (int)(SWIG_As_int(obj1)); | |
22444 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22445 | } | |
d55e5bfc RD |
22446 | if (arg1) (arg1)->m_col = arg2; |
22447 | ||
22448 | Py_INCREF(Py_None); resultobj = Py_None; | |
22449 | return resultobj; | |
22450 | fail: | |
22451 | return NULL; | |
22452 | } | |
22453 | ||
22454 | ||
c370783e | 22455 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22456 | PyObject *resultobj; |
22457 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22458 | int result; | |
22459 | PyObject * obj0 = 0 ; | |
22460 | char *kwnames[] = { | |
22461 | (char *) "self", NULL | |
22462 | }; | |
22463 | ||
22464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22467 | result = (int) ((arg1)->m_col); |
22468 | ||
36ed4f51 RD |
22469 | { |
22470 | resultobj = SWIG_From_int((int)(result)); | |
22471 | } | |
d55e5bfc RD |
22472 | return resultobj; |
22473 | fail: | |
22474 | return NULL; | |
22475 | } | |
22476 | ||
22477 | ||
c370783e | 22478 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22479 | PyObject *resultobj; |
22480 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22481 | long arg2 ; | |
22482 | PyObject * obj0 = 0 ; | |
22483 | PyObject * obj1 = 0 ; | |
22484 | char *kwnames[] = { | |
22485 | (char *) "self",(char *) "m_state", NULL | |
22486 | }; | |
22487 | ||
22488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22491 | { | |
22492 | arg2 = (long)(SWIG_As_long(obj1)); | |
22493 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22494 | } | |
d55e5bfc RD |
22495 | if (arg1) (arg1)->m_state = arg2; |
22496 | ||
22497 | Py_INCREF(Py_None); resultobj = Py_None; | |
22498 | return resultobj; | |
22499 | fail: | |
22500 | return NULL; | |
22501 | } | |
22502 | ||
22503 | ||
c370783e | 22504 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22505 | PyObject *resultobj; |
22506 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22507 | long result; | |
22508 | PyObject * obj0 = 0 ; | |
22509 | char *kwnames[] = { | |
22510 | (char *) "self", NULL | |
22511 | }; | |
22512 | ||
22513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22516 | result = (long) ((arg1)->m_state); |
22517 | ||
36ed4f51 RD |
22518 | { |
22519 | resultobj = SWIG_From_long((long)(result)); | |
22520 | } | |
d55e5bfc RD |
22521 | return resultobj; |
22522 | fail: | |
22523 | return NULL; | |
22524 | } | |
22525 | ||
22526 | ||
c370783e | 22527 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22528 | PyObject *resultobj; |
22529 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22530 | long arg2 ; | |
22531 | PyObject * obj0 = 0 ; | |
22532 | PyObject * obj1 = 0 ; | |
22533 | char *kwnames[] = { | |
22534 | (char *) "self",(char *) "m_stateMask", NULL | |
22535 | }; | |
22536 | ||
22537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22540 | { | |
22541 | arg2 = (long)(SWIG_As_long(obj1)); | |
22542 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22543 | } | |
d55e5bfc RD |
22544 | if (arg1) (arg1)->m_stateMask = arg2; |
22545 | ||
22546 | Py_INCREF(Py_None); resultobj = Py_None; | |
22547 | return resultobj; | |
22548 | fail: | |
22549 | return NULL; | |
22550 | } | |
22551 | ||
22552 | ||
c370783e | 22553 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22554 | PyObject *resultobj; |
22555 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22556 | long result; | |
22557 | PyObject * obj0 = 0 ; | |
22558 | char *kwnames[] = { | |
22559 | (char *) "self", NULL | |
22560 | }; | |
22561 | ||
22562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22565 | result = (long) ((arg1)->m_stateMask); |
22566 | ||
36ed4f51 RD |
22567 | { |
22568 | resultobj = SWIG_From_long((long)(result)); | |
22569 | } | |
d55e5bfc RD |
22570 | return resultobj; |
22571 | fail: | |
22572 | return NULL; | |
22573 | } | |
22574 | ||
22575 | ||
c370783e | 22576 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22577 | PyObject *resultobj; |
22578 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22579 | wxString *arg2 = (wxString *) 0 ; | |
b411df4a | 22580 | bool temp2 = false ; |
d55e5bfc RD |
22581 | PyObject * obj0 = 0 ; |
22582 | PyObject * obj1 = 0 ; | |
22583 | char *kwnames[] = { | |
22584 | (char *) "self",(char *) "m_text", NULL | |
22585 | }; | |
22586 | ||
22587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22590 | { |
22591 | arg2 = wxString_in_helper(obj1); | |
22592 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22593 | temp2 = true; |
d55e5bfc RD |
22594 | } |
22595 | if (arg1) (arg1)->m_text = *arg2; | |
22596 | ||
22597 | Py_INCREF(Py_None); resultobj = Py_None; | |
22598 | { | |
22599 | if (temp2) | |
22600 | delete arg2; | |
22601 | } | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | { | |
22605 | if (temp2) | |
22606 | delete arg2; | |
22607 | } | |
22608 | return NULL; | |
22609 | } | |
22610 | ||
22611 | ||
c370783e | 22612 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22613 | PyObject *resultobj; |
22614 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22615 | wxString *result; | |
22616 | PyObject * obj0 = 0 ; | |
22617 | char *kwnames[] = { | |
22618 | (char *) "self", NULL | |
22619 | }; | |
22620 | ||
22621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22624 | result = (wxString *)& ((arg1)->m_text); |
22625 | ||
22626 | { | |
22627 | #if wxUSE_UNICODE | |
22628 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22629 | #else | |
22630 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22631 | #endif | |
22632 | } | |
22633 | return resultobj; | |
22634 | fail: | |
22635 | return NULL; | |
22636 | } | |
22637 | ||
22638 | ||
c370783e | 22639 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22640 | PyObject *resultobj; |
22641 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22642 | int arg2 ; | |
22643 | PyObject * obj0 = 0 ; | |
22644 | PyObject * obj1 = 0 ; | |
22645 | char *kwnames[] = { | |
22646 | (char *) "self",(char *) "m_image", NULL | |
22647 | }; | |
22648 | ||
22649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22652 | { | |
22653 | arg2 = (int)(SWIG_As_int(obj1)); | |
22654 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22655 | } | |
d55e5bfc RD |
22656 | if (arg1) (arg1)->m_image = arg2; |
22657 | ||
22658 | Py_INCREF(Py_None); resultobj = Py_None; | |
22659 | return resultobj; | |
22660 | fail: | |
22661 | return NULL; | |
22662 | } | |
22663 | ||
22664 | ||
c370783e | 22665 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22666 | PyObject *resultobj; |
22667 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22668 | int result; | |
22669 | PyObject * obj0 = 0 ; | |
22670 | char *kwnames[] = { | |
22671 | (char *) "self", NULL | |
22672 | }; | |
22673 | ||
22674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22677 | result = (int) ((arg1)->m_image); |
22678 | ||
36ed4f51 RD |
22679 | { |
22680 | resultobj = SWIG_From_int((int)(result)); | |
22681 | } | |
d55e5bfc RD |
22682 | return resultobj; |
22683 | fail: | |
22684 | return NULL; | |
22685 | } | |
22686 | ||
22687 | ||
c370783e | 22688 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22689 | PyObject *resultobj; |
22690 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22691 | long arg2 ; | |
22692 | PyObject * obj0 = 0 ; | |
22693 | PyObject * obj1 = 0 ; | |
22694 | char *kwnames[] = { | |
22695 | (char *) "self",(char *) "m_data", NULL | |
22696 | }; | |
22697 | ||
22698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22701 | { | |
22702 | arg2 = (long)(SWIG_As_long(obj1)); | |
22703 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22704 | } | |
d55e5bfc RD |
22705 | if (arg1) (arg1)->m_data = arg2; |
22706 | ||
22707 | Py_INCREF(Py_None); resultobj = Py_None; | |
22708 | return resultobj; | |
22709 | fail: | |
22710 | return NULL; | |
22711 | } | |
22712 | ||
22713 | ||
c370783e | 22714 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22715 | PyObject *resultobj; |
22716 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22717 | long result; | |
22718 | PyObject * obj0 = 0 ; | |
22719 | char *kwnames[] = { | |
22720 | (char *) "self", NULL | |
22721 | }; | |
22722 | ||
22723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22726 | result = (long) ((arg1)->m_data); |
22727 | ||
36ed4f51 RD |
22728 | { |
22729 | resultobj = SWIG_From_long((long)(result)); | |
22730 | } | |
d55e5bfc RD |
22731 | return resultobj; |
22732 | fail: | |
22733 | return NULL; | |
22734 | } | |
22735 | ||
22736 | ||
c370783e | 22737 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22738 | PyObject *resultobj; |
22739 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22740 | int arg2 ; | |
22741 | PyObject * obj0 = 0 ; | |
22742 | PyObject * obj1 = 0 ; | |
22743 | char *kwnames[] = { | |
22744 | (char *) "self",(char *) "m_format", NULL | |
22745 | }; | |
22746 | ||
22747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22750 | { | |
22751 | arg2 = (int)(SWIG_As_int(obj1)); | |
22752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22753 | } | |
d55e5bfc RD |
22754 | if (arg1) (arg1)->m_format = arg2; |
22755 | ||
22756 | Py_INCREF(Py_None); resultobj = Py_None; | |
22757 | return resultobj; | |
22758 | fail: | |
22759 | return NULL; | |
22760 | } | |
22761 | ||
22762 | ||
c370783e | 22763 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22764 | PyObject *resultobj; |
22765 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22766 | int result; | |
22767 | PyObject * obj0 = 0 ; | |
22768 | char *kwnames[] = { | |
22769 | (char *) "self", NULL | |
22770 | }; | |
22771 | ||
22772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22775 | result = (int) ((arg1)->m_format); |
22776 | ||
36ed4f51 RD |
22777 | { |
22778 | resultobj = SWIG_From_int((int)(result)); | |
22779 | } | |
d55e5bfc RD |
22780 | return resultobj; |
22781 | fail: | |
22782 | return NULL; | |
22783 | } | |
22784 | ||
22785 | ||
c370783e | 22786 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22787 | PyObject *resultobj; |
22788 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22789 | int arg2 ; | |
22790 | PyObject * obj0 = 0 ; | |
22791 | PyObject * obj1 = 0 ; | |
22792 | char *kwnames[] = { | |
22793 | (char *) "self",(char *) "m_width", NULL | |
22794 | }; | |
22795 | ||
22796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22799 | { | |
22800 | arg2 = (int)(SWIG_As_int(obj1)); | |
22801 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22802 | } | |
d55e5bfc RD |
22803 | if (arg1) (arg1)->m_width = arg2; |
22804 | ||
22805 | Py_INCREF(Py_None); resultobj = Py_None; | |
22806 | return resultobj; | |
22807 | fail: | |
22808 | return NULL; | |
22809 | } | |
22810 | ||
22811 | ||
c370783e | 22812 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22813 | PyObject *resultobj; |
22814 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22815 | int result; | |
22816 | PyObject * obj0 = 0 ; | |
22817 | char *kwnames[] = { | |
22818 | (char *) "self", NULL | |
22819 | }; | |
22820 | ||
22821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22824 | result = (int) ((arg1)->m_width); |
22825 | ||
36ed4f51 RD |
22826 | { |
22827 | resultobj = SWIG_From_int((int)(result)); | |
22828 | } | |
d55e5bfc RD |
22829 | return resultobj; |
22830 | fail: | |
22831 | return NULL; | |
22832 | } | |
22833 | ||
22834 | ||
c370783e | 22835 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22836 | PyObject *obj; |
22837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22838 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
22839 | Py_INCREF(obj); | |
22840 | return Py_BuildValue((char *)""); | |
22841 | } | |
c370783e | 22842 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22843 | PyObject *resultobj; |
22844 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22845 | int arg2 = (int) 0 ; | |
22846 | wxListEvent *result; | |
22847 | PyObject * obj0 = 0 ; | |
22848 | PyObject * obj1 = 0 ; | |
22849 | char *kwnames[] = { | |
22850 | (char *) "commandType",(char *) "id", NULL | |
22851 | }; | |
22852 | ||
22853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
22854 | if (obj0) { | |
36ed4f51 RD |
22855 | { |
22856 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
22857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22858 | } | |
d55e5bfc RD |
22859 | } |
22860 | if (obj1) { | |
36ed4f51 RD |
22861 | { |
22862 | arg2 = (int)(SWIG_As_int(obj1)); | |
22863 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22864 | } | |
d55e5bfc RD |
22865 | } |
22866 | { | |
22867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22868 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
22869 | ||
22870 | wxPyEndAllowThreads(__tstate); | |
22871 | if (PyErr_Occurred()) SWIG_fail; | |
22872 | } | |
22873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
c370783e | 22880 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22881 | PyObject *resultobj; |
22882 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
22883 | int arg2 ; | |
22884 | PyObject * obj0 = 0 ; | |
22885 | PyObject * obj1 = 0 ; | |
22886 | char *kwnames[] = { | |
22887 | (char *) "self",(char *) "m_code", NULL | |
22888 | }; | |
22889 | ||
22890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
22892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22893 | { | |
22894 | arg2 = (int)(SWIG_As_int(obj1)); | |
22895 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22896 | } | |
d55e5bfc RD |
22897 | if (arg1) (arg1)->m_code = arg2; |
22898 | ||
22899 | Py_INCREF(Py_None); resultobj = Py_None; | |
22900 | return resultobj; | |
22901 | fail: | |
22902 | return NULL; | |
22903 | } | |
22904 | ||
22905 | ||
c370783e | 22906 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22907 | PyObject *resultobj; |
22908 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
22909 | int result; | |
22910 | PyObject * obj0 = 0 ; | |
22911 | char *kwnames[] = { | |
22912 | (char *) "self", NULL | |
22913 | }; | |
22914 | ||
22915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22916 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
22917 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22918 | result = (int) ((arg1)->m_code); |
22919 | ||
36ed4f51 RD |
22920 | { |
22921 | resultobj = SWIG_From_int((int)(result)); | |
22922 | } | |
d55e5bfc RD |
22923 | return resultobj; |
22924 | fail: | |
22925 | return NULL; | |
22926 | } | |
22927 | ||
22928 | ||
c370783e | 22929 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22930 | PyObject *resultobj; |
22931 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
22932 | long arg2 ; | |
22933 | PyObject * obj0 = 0 ; | |
22934 | PyObject * obj1 = 0 ; | |
22935 | char *kwnames[] = { | |
22936 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
22937 | }; | |
22938 | ||
22939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
22941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22942 | { | |
22943 | arg2 = (long)(SWIG_As_long(obj1)); | |
22944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22945 | } | |
d55e5bfc RD |
22946 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
22947 | ||
22948 | Py_INCREF(Py_None); resultobj = Py_None; | |
22949 | return resultobj; | |
22950 | fail: | |
22951 | return NULL; | |
22952 | } | |
22953 | ||
22954 | ||
c370783e | 22955 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22956 | PyObject *resultobj; |
22957 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
22958 | long result; | |
22959 | PyObject * obj0 = 0 ; | |
22960 | char *kwnames[] = { | |
22961 | (char *) "self", NULL | |
22962 | }; | |
22963 | ||
22964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
22965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
22966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22967 | result = (long) ((arg1)->m_oldItemIndex); |
22968 | ||
36ed4f51 RD |
22969 | { |
22970 | resultobj = SWIG_From_long((long)(result)); | |
22971 | } | |
d55e5bfc RD |
22972 | return resultobj; |
22973 | fail: | |
22974 | return NULL; | |
22975 | } | |
22976 | ||
22977 | ||
c370783e | 22978 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22979 | PyObject *resultobj; |
22980 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
22981 | long arg2 ; | |
22982 | PyObject * obj0 = 0 ; | |
22983 | PyObject * obj1 = 0 ; | |
22984 | char *kwnames[] = { | |
22985 | (char *) "self",(char *) "m_itemIndex", NULL | |
22986 | }; | |
22987 | ||
22988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
22989 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
22990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22991 | { | |
22992 | arg2 = (long)(SWIG_As_long(obj1)); | |
22993 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22994 | } | |
d55e5bfc RD |
22995 | if (arg1) (arg1)->m_itemIndex = arg2; |
22996 | ||
22997 | Py_INCREF(Py_None); resultobj = Py_None; | |
22998 | return resultobj; | |
22999 | fail: | |
23000 | return NULL; | |
23001 | } | |
23002 | ||
23003 | ||
c370783e | 23004 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23005 | PyObject *resultobj; |
23006 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23007 | long result; | |
23008 | PyObject * obj0 = 0 ; | |
23009 | char *kwnames[] = { | |
23010 | (char *) "self", NULL | |
23011 | }; | |
23012 | ||
23013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23016 | result = (long) ((arg1)->m_itemIndex); |
23017 | ||
36ed4f51 RD |
23018 | { |
23019 | resultobj = SWIG_From_long((long)(result)); | |
23020 | } | |
d55e5bfc RD |
23021 | return resultobj; |
23022 | fail: | |
23023 | return NULL; | |
23024 | } | |
23025 | ||
23026 | ||
c370783e | 23027 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23028 | PyObject *resultobj; |
23029 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23030 | int arg2 ; | |
23031 | PyObject * obj0 = 0 ; | |
23032 | PyObject * obj1 = 0 ; | |
23033 | char *kwnames[] = { | |
23034 | (char *) "self",(char *) "m_col", NULL | |
23035 | }; | |
23036 | ||
23037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23038 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23039 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23040 | { | |
23041 | arg2 = (int)(SWIG_As_int(obj1)); | |
23042 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23043 | } | |
d55e5bfc RD |
23044 | if (arg1) (arg1)->m_col = arg2; |
23045 | ||
23046 | Py_INCREF(Py_None); resultobj = Py_None; | |
23047 | return resultobj; | |
23048 | fail: | |
23049 | return NULL; | |
23050 | } | |
23051 | ||
23052 | ||
c370783e | 23053 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23054 | PyObject *resultobj; |
23055 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23056 | int result; | |
23057 | PyObject * obj0 = 0 ; | |
23058 | char *kwnames[] = { | |
23059 | (char *) "self", NULL | |
23060 | }; | |
23061 | ||
23062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23065 | result = (int) ((arg1)->m_col); |
23066 | ||
36ed4f51 RD |
23067 | { |
23068 | resultobj = SWIG_From_int((int)(result)); | |
23069 | } | |
d55e5bfc RD |
23070 | return resultobj; |
23071 | fail: | |
23072 | return NULL; | |
23073 | } | |
23074 | ||
23075 | ||
c370783e | 23076 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23077 | PyObject *resultobj; |
23078 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23079 | wxPoint *arg2 = (wxPoint *) 0 ; | |
23080 | PyObject * obj0 = 0 ; | |
23081 | PyObject * obj1 = 0 ; | |
23082 | char *kwnames[] = { | |
23083 | (char *) "self",(char *) "m_pointDrag", NULL | |
23084 | }; | |
23085 | ||
23086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23089 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); | |
23090 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23091 | if (arg1) (arg1)->m_pointDrag = *arg2; |
23092 | ||
23093 | Py_INCREF(Py_None); resultobj = Py_None; | |
23094 | return resultobj; | |
23095 | fail: | |
23096 | return NULL; | |
23097 | } | |
23098 | ||
23099 | ||
c370783e | 23100 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23101 | PyObject *resultobj; |
23102 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23103 | wxPoint *result; | |
23104 | PyObject * obj0 = 0 ; | |
23105 | char *kwnames[] = { | |
23106 | (char *) "self", NULL | |
23107 | }; | |
23108 | ||
23109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23112 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
23113 | ||
23114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
23115 | return resultobj; | |
23116 | fail: | |
23117 | return NULL; | |
23118 | } | |
23119 | ||
23120 | ||
c370783e | 23121 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23122 | PyObject *resultobj; |
23123 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23124 | wxListItem *result; | |
23125 | PyObject * obj0 = 0 ; | |
23126 | char *kwnames[] = { | |
23127 | (char *) "self", NULL | |
23128 | }; | |
23129 | ||
23130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23133 | result = (wxListItem *)& ((arg1)->m_item); |
23134 | ||
23135 | { | |
412d302d | 23136 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23137 | } |
23138 | return resultobj; | |
23139 | fail: | |
23140 | return NULL; | |
23141 | } | |
23142 | ||
23143 | ||
c370783e | 23144 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23145 | PyObject *resultobj; |
23146 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23147 | int result; | |
23148 | PyObject * obj0 = 0 ; | |
23149 | char *kwnames[] = { | |
23150 | (char *) "self", NULL | |
23151 | }; | |
23152 | ||
23153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23156 | { |
23157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23158 | result = (int)(arg1)->GetKeyCode(); | |
23159 | ||
23160 | wxPyEndAllowThreads(__tstate); | |
23161 | if (PyErr_Occurred()) SWIG_fail; | |
23162 | } | |
36ed4f51 RD |
23163 | { |
23164 | resultobj = SWIG_From_int((int)(result)); | |
23165 | } | |
d55e5bfc RD |
23166 | return resultobj; |
23167 | fail: | |
23168 | return NULL; | |
23169 | } | |
23170 | ||
23171 | ||
c370783e | 23172 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23173 | PyObject *resultobj; |
23174 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23175 | long result; | |
23176 | PyObject * obj0 = 0 ; | |
23177 | char *kwnames[] = { | |
23178 | (char *) "self", NULL | |
23179 | }; | |
23180 | ||
23181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23184 | { |
23185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23186 | result = (long)(arg1)->GetIndex(); | |
23187 | ||
23188 | wxPyEndAllowThreads(__tstate); | |
23189 | if (PyErr_Occurred()) SWIG_fail; | |
23190 | } | |
36ed4f51 RD |
23191 | { |
23192 | resultobj = SWIG_From_long((long)(result)); | |
23193 | } | |
d55e5bfc RD |
23194 | return resultobj; |
23195 | fail: | |
23196 | return NULL; | |
23197 | } | |
23198 | ||
23199 | ||
c370783e | 23200 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23201 | PyObject *resultobj; |
23202 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23203 | int result; | |
23204 | PyObject * obj0 = 0 ; | |
23205 | char *kwnames[] = { | |
23206 | (char *) "self", NULL | |
23207 | }; | |
23208 | ||
23209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23212 | { |
23213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23214 | result = (int)(arg1)->GetColumn(); | |
23215 | ||
23216 | wxPyEndAllowThreads(__tstate); | |
23217 | if (PyErr_Occurred()) SWIG_fail; | |
23218 | } | |
36ed4f51 RD |
23219 | { |
23220 | resultobj = SWIG_From_int((int)(result)); | |
23221 | } | |
d55e5bfc RD |
23222 | return resultobj; |
23223 | fail: | |
23224 | return NULL; | |
23225 | } | |
23226 | ||
23227 | ||
c370783e | 23228 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23229 | PyObject *resultobj; |
23230 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23231 | wxPoint result; | |
23232 | PyObject * obj0 = 0 ; | |
23233 | char *kwnames[] = { | |
23234 | (char *) "self", NULL | |
23235 | }; | |
23236 | ||
23237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23240 | { |
23241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23242 | result = (arg1)->GetPoint(); | |
23243 | ||
23244 | wxPyEndAllowThreads(__tstate); | |
23245 | if (PyErr_Occurred()) SWIG_fail; | |
23246 | } | |
23247 | { | |
23248 | wxPoint * resultptr; | |
36ed4f51 | 23249 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
23250 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
23251 | } | |
23252 | return resultobj; | |
23253 | fail: | |
23254 | return NULL; | |
23255 | } | |
23256 | ||
23257 | ||
c370783e | 23258 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23259 | PyObject *resultobj; |
23260 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23261 | wxString *result; | |
23262 | PyObject * obj0 = 0 ; | |
23263 | char *kwnames[] = { | |
23264 | (char *) "self", NULL | |
23265 | }; | |
23266 | ||
23267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23270 | { |
23271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23272 | { | |
23273 | wxString const &_result_ref = (arg1)->GetLabel(); | |
23274 | result = (wxString *) &_result_ref; | |
23275 | } | |
23276 | ||
23277 | wxPyEndAllowThreads(__tstate); | |
23278 | if (PyErr_Occurred()) SWIG_fail; | |
23279 | } | |
23280 | { | |
23281 | #if wxUSE_UNICODE | |
23282 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23283 | #else | |
23284 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23285 | #endif | |
23286 | } | |
23287 | return resultobj; | |
23288 | fail: | |
23289 | return NULL; | |
23290 | } | |
23291 | ||
23292 | ||
c370783e | 23293 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23294 | PyObject *resultobj; |
23295 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23296 | wxString *result; | |
23297 | PyObject * obj0 = 0 ; | |
23298 | char *kwnames[] = { | |
23299 | (char *) "self", NULL | |
23300 | }; | |
23301 | ||
23302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23305 | { |
23306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23307 | { | |
23308 | wxString const &_result_ref = (arg1)->GetText(); | |
23309 | result = (wxString *) &_result_ref; | |
23310 | } | |
23311 | ||
23312 | wxPyEndAllowThreads(__tstate); | |
23313 | if (PyErr_Occurred()) SWIG_fail; | |
23314 | } | |
23315 | { | |
23316 | #if wxUSE_UNICODE | |
23317 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23318 | #else | |
23319 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23320 | #endif | |
23321 | } | |
23322 | return resultobj; | |
23323 | fail: | |
23324 | return NULL; | |
23325 | } | |
23326 | ||
23327 | ||
c370783e | 23328 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23329 | PyObject *resultobj; |
23330 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23331 | int result; | |
23332 | PyObject * obj0 = 0 ; | |
23333 | char *kwnames[] = { | |
23334 | (char *) "self", NULL | |
23335 | }; | |
23336 | ||
23337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23340 | { |
23341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23342 | result = (int)(arg1)->GetImage(); | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
36ed4f51 RD |
23347 | { |
23348 | resultobj = SWIG_From_int((int)(result)); | |
23349 | } | |
d55e5bfc RD |
23350 | return resultobj; |
23351 | fail: | |
23352 | return NULL; | |
23353 | } | |
23354 | ||
23355 | ||
c370783e | 23356 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23357 | PyObject *resultobj; |
23358 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23359 | long result; | |
23360 | PyObject * obj0 = 0 ; | |
23361 | char *kwnames[] = { | |
23362 | (char *) "self", NULL | |
23363 | }; | |
23364 | ||
23365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23368 | { |
23369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23370 | result = (long)(arg1)->GetData(); | |
23371 | ||
23372 | wxPyEndAllowThreads(__tstate); | |
23373 | if (PyErr_Occurred()) SWIG_fail; | |
23374 | } | |
36ed4f51 RD |
23375 | { |
23376 | resultobj = SWIG_From_long((long)(result)); | |
23377 | } | |
d55e5bfc RD |
23378 | return resultobj; |
23379 | fail: | |
23380 | return NULL; | |
23381 | } | |
23382 | ||
23383 | ||
c370783e | 23384 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23385 | PyObject *resultobj; |
23386 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23387 | long result; | |
23388 | PyObject * obj0 = 0 ; | |
23389 | char *kwnames[] = { | |
23390 | (char *) "self", NULL | |
23391 | }; | |
23392 | ||
23393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23396 | { |
23397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23398 | result = (long)(arg1)->GetMask(); | |
23399 | ||
23400 | wxPyEndAllowThreads(__tstate); | |
23401 | if (PyErr_Occurred()) SWIG_fail; | |
23402 | } | |
36ed4f51 RD |
23403 | { |
23404 | resultobj = SWIG_From_long((long)(result)); | |
23405 | } | |
d55e5bfc RD |
23406 | return resultobj; |
23407 | fail: | |
23408 | return NULL; | |
23409 | } | |
23410 | ||
23411 | ||
c370783e | 23412 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23413 | PyObject *resultobj; |
23414 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23415 | wxListItem *result; | |
23416 | PyObject * obj0 = 0 ; | |
23417 | char *kwnames[] = { | |
23418 | (char *) "self", NULL | |
23419 | }; | |
23420 | ||
23421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23424 | { |
23425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23426 | { | |
23427 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
23428 | result = (wxListItem *) &_result_ref; | |
23429 | } | |
23430 | ||
23431 | wxPyEndAllowThreads(__tstate); | |
23432 | if (PyErr_Occurred()) SWIG_fail; | |
23433 | } | |
23434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
23435 | return resultobj; | |
23436 | fail: | |
23437 | return NULL; | |
23438 | } | |
23439 | ||
23440 | ||
c370783e | 23441 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23442 | PyObject *resultobj; |
23443 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23444 | long result; | |
23445 | PyObject * obj0 = 0 ; | |
23446 | char *kwnames[] = { | |
23447 | (char *) "self", NULL | |
23448 | }; | |
23449 | ||
23450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23453 | { |
23454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23455 | result = (long)(arg1)->GetCacheFrom(); | |
23456 | ||
23457 | wxPyEndAllowThreads(__tstate); | |
23458 | if (PyErr_Occurred()) SWIG_fail; | |
23459 | } | |
36ed4f51 RD |
23460 | { |
23461 | resultobj = SWIG_From_long((long)(result)); | |
23462 | } | |
d55e5bfc RD |
23463 | return resultobj; |
23464 | fail: | |
23465 | return NULL; | |
23466 | } | |
23467 | ||
23468 | ||
c370783e | 23469 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23470 | PyObject *resultobj; |
23471 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23472 | long result; | |
23473 | PyObject * obj0 = 0 ; | |
23474 | char *kwnames[] = { | |
23475 | (char *) "self", NULL | |
23476 | }; | |
23477 | ||
23478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23481 | { |
23482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23483 | result = (long)(arg1)->GetCacheTo(); | |
23484 | ||
23485 | wxPyEndAllowThreads(__tstate); | |
23486 | if (PyErr_Occurred()) SWIG_fail; | |
23487 | } | |
36ed4f51 RD |
23488 | { |
23489 | resultobj = SWIG_From_long((long)(result)); | |
23490 | } | |
d55e5bfc RD |
23491 | return resultobj; |
23492 | fail: | |
23493 | return NULL; | |
23494 | } | |
23495 | ||
23496 | ||
c370783e | 23497 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23498 | PyObject *resultobj; |
23499 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23500 | bool result; | |
23501 | PyObject * obj0 = 0 ; | |
23502 | char *kwnames[] = { | |
23503 | (char *) "self", NULL | |
23504 | }; | |
23505 | ||
23506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
23507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23509 | { |
23510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23511 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
23512 | ||
23513 | wxPyEndAllowThreads(__tstate); | |
23514 | if (PyErr_Occurred()) SWIG_fail; | |
23515 | } | |
23516 | { | |
23517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23518 | } | |
23519 | return resultobj; | |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
c370783e | 23525 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23526 | PyObject *resultobj; |
23527 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23528 | bool arg2 ; | |
23529 | PyObject * obj0 = 0 ; | |
23530 | PyObject * obj1 = 0 ; | |
23531 | char *kwnames[] = { | |
23532 | (char *) "self",(char *) "editCancelled", NULL | |
23533 | }; | |
23534 | ||
23535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23538 | { | |
23539 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23540 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23541 | } | |
d55e5bfc RD |
23542 | { |
23543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23544 | (arg1)->SetEditCanceled(arg2); | |
23545 | ||
23546 | wxPyEndAllowThreads(__tstate); | |
23547 | if (PyErr_Occurred()) SWIG_fail; | |
23548 | } | |
23549 | Py_INCREF(Py_None); resultobj = Py_None; | |
23550 | return resultobj; | |
23551 | fail: | |
23552 | return NULL; | |
23553 | } | |
23554 | ||
23555 | ||
c370783e | 23556 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23557 | PyObject *obj; |
23558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23559 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
23560 | Py_INCREF(obj); | |
23561 | return Py_BuildValue((char *)""); | |
23562 | } | |
c370783e | 23563 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23564 | PyObject *resultobj; |
23565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23566 | int arg2 = (int) -1 ; | |
23567 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23568 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23569 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23570 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23571 | long arg5 = (long) wxLC_ICON ; | |
23572 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23573 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23574 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23575 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23576 | wxPyListCtrl *result; | |
23577 | wxPoint temp3 ; | |
23578 | wxSize temp4 ; | |
b411df4a | 23579 | bool temp7 = false ; |
d55e5bfc RD |
23580 | PyObject * obj0 = 0 ; |
23581 | PyObject * obj1 = 0 ; | |
23582 | PyObject * obj2 = 0 ; | |
23583 | PyObject * obj3 = 0 ; | |
23584 | PyObject * obj4 = 0 ; | |
23585 | PyObject * obj5 = 0 ; | |
23586 | PyObject * obj6 = 0 ; | |
23587 | char *kwnames[] = { | |
23588 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
23592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
23593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 23594 | if (obj1) { |
36ed4f51 RD |
23595 | { |
23596 | arg2 = (int)(SWIG_As_int(obj1)); | |
23597 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23598 | } | |
d55e5bfc RD |
23599 | } |
23600 | if (obj2) { | |
23601 | { | |
23602 | arg3 = &temp3; | |
23603 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23604 | } | |
23605 | } | |
23606 | if (obj3) { | |
23607 | { | |
23608 | arg4 = &temp4; | |
23609 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23610 | } | |
23611 | } | |
23612 | if (obj4) { | |
36ed4f51 RD |
23613 | { |
23614 | arg5 = (long)(SWIG_As_long(obj4)); | |
23615 | if (SWIG_arg_fail(5)) SWIG_fail; | |
23616 | } | |
d55e5bfc RD |
23617 | } |
23618 | if (obj5) { | |
36ed4f51 RD |
23619 | { |
23620 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23621 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23622 | if (arg6 == NULL) { | |
23623 | SWIG_null_ref("wxValidator"); | |
23624 | } | |
23625 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
23626 | } |
23627 | } | |
23628 | if (obj6) { | |
23629 | { | |
23630 | arg7 = wxString_in_helper(obj6); | |
23631 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 23632 | temp7 = true; |
d55e5bfc RD |
23633 | } |
23634 | } | |
23635 | { | |
0439c23b | 23636 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23638 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23639 | ||
23640 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23641 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23642 | } |
23643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
23644 | { | |
23645 | if (temp7) | |
23646 | delete arg7; | |
23647 | } | |
23648 | return resultobj; | |
23649 | fail: | |
23650 | { | |
23651 | if (temp7) | |
23652 | delete arg7; | |
23653 | } | |
23654 | return NULL; | |
23655 | } | |
23656 | ||
23657 | ||
c370783e | 23658 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23659 | PyObject *resultobj; |
23660 | wxPyListCtrl *result; | |
23661 | char *kwnames[] = { | |
23662 | NULL | |
23663 | }; | |
23664 | ||
23665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
23666 | { | |
0439c23b | 23667 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23669 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
23670 | ||
23671 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23672 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23673 | } |
23674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
23675 | return resultobj; | |
23676 | fail: | |
23677 | return NULL; | |
23678 | } | |
23679 | ||
23680 | ||
c370783e | 23681 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23682 | PyObject *resultobj; |
23683 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23684 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23685 | int arg3 = (int) -1 ; | |
23686 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23687 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23688 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23689 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23690 | long arg6 = (long) wxLC_ICON ; | |
23691 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23692 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23693 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23694 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23695 | bool result; | |
23696 | wxPoint temp4 ; | |
23697 | wxSize temp5 ; | |
b411df4a | 23698 | bool temp8 = false ; |
d55e5bfc RD |
23699 | PyObject * obj0 = 0 ; |
23700 | PyObject * obj1 = 0 ; | |
23701 | PyObject * obj2 = 0 ; | |
23702 | PyObject * obj3 = 0 ; | |
23703 | PyObject * obj4 = 0 ; | |
23704 | PyObject * obj5 = 0 ; | |
23705 | PyObject * obj6 = 0 ; | |
23706 | PyObject * obj7 = 0 ; | |
23707 | char *kwnames[] = { | |
23708 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23709 | }; | |
23710 | ||
23711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
36ed4f51 RD |
23712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23714 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23715 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 23716 | if (obj2) { |
36ed4f51 RD |
23717 | { |
23718 | arg3 = (int)(SWIG_As_int(obj2)); | |
23719 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23720 | } | |
d55e5bfc RD |
23721 | } |
23722 | if (obj3) { | |
23723 | { | |
23724 | arg4 = &temp4; | |
23725 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23726 | } | |
23727 | } | |
23728 | if (obj4) { | |
23729 | { | |
23730 | arg5 = &temp5; | |
23731 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23732 | } | |
23733 | } | |
23734 | if (obj5) { | |
36ed4f51 RD |
23735 | { |
23736 | arg6 = (long)(SWIG_As_long(obj5)); | |
23737 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23738 | } | |
d55e5bfc RD |
23739 | } |
23740 | if (obj6) { | |
36ed4f51 RD |
23741 | { |
23742 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23743 | if (SWIG_arg_fail(7)) SWIG_fail; | |
23744 | if (arg7 == NULL) { | |
23745 | SWIG_null_ref("wxValidator"); | |
23746 | } | |
23747 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
23748 | } |
23749 | } | |
23750 | if (obj7) { | |
23751 | { | |
23752 | arg8 = wxString_in_helper(obj7); | |
23753 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 23754 | temp8 = true; |
d55e5bfc RD |
23755 | } |
23756 | } | |
23757 | { | |
23758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23759 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23760 | ||
23761 | wxPyEndAllowThreads(__tstate); | |
23762 | if (PyErr_Occurred()) SWIG_fail; | |
23763 | } | |
23764 | { | |
23765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23766 | } | |
23767 | { | |
23768 | if (temp8) | |
23769 | delete arg8; | |
23770 | } | |
23771 | return resultobj; | |
23772 | fail: | |
23773 | { | |
23774 | if (temp8) | |
23775 | delete arg8; | |
23776 | } | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
c370783e | 23781 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23782 | PyObject *resultobj; |
23783 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23784 | PyObject *arg2 = (PyObject *) 0 ; | |
23785 | PyObject *arg3 = (PyObject *) 0 ; | |
23786 | PyObject * obj0 = 0 ; | |
23787 | PyObject * obj1 = 0 ; | |
23788 | PyObject * obj2 = 0 ; | |
23789 | char *kwnames[] = { | |
23790 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23791 | }; | |
23792 | ||
23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
23794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23796 | arg2 = obj1; |
23797 | arg3 = obj2; | |
23798 | { | |
23799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23800 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23801 | ||
23802 | wxPyEndAllowThreads(__tstate); | |
23803 | if (PyErr_Occurred()) SWIG_fail; | |
23804 | } | |
23805 | Py_INCREF(Py_None); resultobj = Py_None; | |
23806 | return resultobj; | |
23807 | fail: | |
23808 | return NULL; | |
23809 | } | |
23810 | ||
23811 | ||
c370783e | 23812 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23813 | PyObject *resultobj; |
23814 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23815 | wxColour *arg2 = 0 ; | |
23816 | bool result; | |
23817 | wxColour temp2 ; | |
23818 | PyObject * obj0 = 0 ; | |
23819 | PyObject * obj1 = 0 ; | |
23820 | char *kwnames[] = { | |
23821 | (char *) "self",(char *) "col", NULL | |
23822 | }; | |
23823 | ||
23824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23827 | { |
23828 | arg2 = &temp2; | |
23829 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23830 | } | |
23831 | { | |
23832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23833 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
23834 | ||
23835 | wxPyEndAllowThreads(__tstate); | |
23836 | if (PyErr_Occurred()) SWIG_fail; | |
23837 | } | |
23838 | { | |
23839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23840 | } | |
23841 | return resultobj; | |
23842 | fail: | |
23843 | return NULL; | |
23844 | } | |
23845 | ||
23846 | ||
c370783e | 23847 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23848 | PyObject *resultobj; |
23849 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23850 | wxColour *arg2 = 0 ; | |
23851 | bool result; | |
23852 | wxColour temp2 ; | |
23853 | PyObject * obj0 = 0 ; | |
23854 | PyObject * obj1 = 0 ; | |
23855 | char *kwnames[] = { | |
23856 | (char *) "self",(char *) "col", NULL | |
23857 | }; | |
23858 | ||
23859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23862 | { |
23863 | arg2 = &temp2; | |
23864 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23865 | } | |
23866 | { | |
23867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23868 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
23869 | ||
23870 | wxPyEndAllowThreads(__tstate); | |
23871 | if (PyErr_Occurred()) SWIG_fail; | |
23872 | } | |
23873 | { | |
23874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23875 | } | |
23876 | return resultobj; | |
23877 | fail: | |
23878 | return NULL; | |
23879 | } | |
23880 | ||
23881 | ||
c370783e | 23882 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23883 | PyObject *resultobj; |
23884 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23885 | int arg2 ; | |
23886 | wxListItem *result; | |
23887 | PyObject * obj0 = 0 ; | |
23888 | PyObject * obj1 = 0 ; | |
23889 | char *kwnames[] = { | |
23890 | (char *) "self",(char *) "col", NULL | |
23891 | }; | |
23892 | ||
23893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23896 | { | |
23897 | arg2 = (int)(SWIG_As_int(obj1)); | |
23898 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23899 | } | |
d55e5bfc RD |
23900 | { |
23901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23902 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
23903 | ||
23904 | wxPyEndAllowThreads(__tstate); | |
23905 | if (PyErr_Occurred()) SWIG_fail; | |
23906 | } | |
23907 | { | |
412d302d | 23908 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23909 | } |
23910 | return resultobj; | |
23911 | fail: | |
23912 | return NULL; | |
23913 | } | |
23914 | ||
23915 | ||
c370783e | 23916 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23917 | PyObject *resultobj; |
23918 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23919 | int arg2 ; | |
23920 | wxListItem *arg3 = 0 ; | |
23921 | bool result; | |
23922 | PyObject * obj0 = 0 ; | |
23923 | PyObject * obj1 = 0 ; | |
23924 | PyObject * obj2 = 0 ; | |
23925 | char *kwnames[] = { | |
23926 | (char *) "self",(char *) "col",(char *) "item", NULL | |
23927 | }; | |
23928 | ||
23929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
23930 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23931 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23932 | { | |
23933 | arg2 = (int)(SWIG_As_int(obj1)); | |
23934 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23935 | } | |
23936 | { | |
23937 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
23938 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23939 | if (arg3 == NULL) { | |
23940 | SWIG_null_ref("wxListItem"); | |
23941 | } | |
23942 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
23943 | } |
23944 | { | |
23945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23946 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
23947 | ||
23948 | wxPyEndAllowThreads(__tstate); | |
23949 | if (PyErr_Occurred()) SWIG_fail; | |
23950 | } | |
23951 | { | |
23952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23953 | } | |
23954 | return resultobj; | |
23955 | fail: | |
23956 | return NULL; | |
23957 | } | |
23958 | ||
23959 | ||
c370783e | 23960 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23961 | PyObject *resultobj; |
23962 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23963 | int arg2 ; | |
23964 | int result; | |
23965 | PyObject * obj0 = 0 ; | |
23966 | PyObject * obj1 = 0 ; | |
23967 | char *kwnames[] = { | |
23968 | (char *) "self",(char *) "col", NULL | |
23969 | }; | |
23970 | ||
23971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
23972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23974 | { | |
23975 | arg2 = (int)(SWIG_As_int(obj1)); | |
23976 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23977 | } | |
d55e5bfc RD |
23978 | { |
23979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23980 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
23981 | ||
23982 | wxPyEndAllowThreads(__tstate); | |
23983 | if (PyErr_Occurred()) SWIG_fail; | |
23984 | } | |
36ed4f51 RD |
23985 | { |
23986 | resultobj = SWIG_From_int((int)(result)); | |
23987 | } | |
d55e5bfc RD |
23988 | return resultobj; |
23989 | fail: | |
23990 | return NULL; | |
23991 | } | |
23992 | ||
23993 | ||
c370783e | 23994 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23995 | PyObject *resultobj; |
23996 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23997 | int arg2 ; | |
23998 | int arg3 ; | |
23999 | bool result; | |
24000 | PyObject * obj0 = 0 ; | |
24001 | PyObject * obj1 = 0 ; | |
24002 | PyObject * obj2 = 0 ; | |
24003 | char *kwnames[] = { | |
24004 | (char *) "self",(char *) "col",(char *) "width", NULL | |
24005 | }; | |
24006 | ||
24007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24010 | { | |
24011 | arg2 = (int)(SWIG_As_int(obj1)); | |
24012 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24013 | } | |
24014 | { | |
24015 | arg3 = (int)(SWIG_As_int(obj2)); | |
24016 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24017 | } | |
d55e5bfc RD |
24018 | { |
24019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24020 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
24021 | ||
24022 | wxPyEndAllowThreads(__tstate); | |
24023 | if (PyErr_Occurred()) SWIG_fail; | |
24024 | } | |
24025 | { | |
24026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24027 | } | |
24028 | return resultobj; | |
24029 | fail: | |
24030 | return NULL; | |
24031 | } | |
24032 | ||
24033 | ||
c370783e | 24034 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24035 | PyObject *resultobj; |
24036 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24037 | int result; | |
24038 | PyObject * obj0 = 0 ; | |
24039 | char *kwnames[] = { | |
24040 | (char *) "self", NULL | |
24041 | }; | |
24042 | ||
24043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24046 | { |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
24049 | ||
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
36ed4f51 RD |
24053 | { |
24054 | resultobj = SWIG_From_int((int)(result)); | |
24055 | } | |
d55e5bfc RD |
24056 | return resultobj; |
24057 | fail: | |
24058 | return NULL; | |
24059 | } | |
24060 | ||
24061 | ||
c370783e | 24062 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24063 | PyObject *resultobj; |
24064 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24065 | wxRect result; | |
24066 | PyObject * obj0 = 0 ; | |
24067 | char *kwnames[] = { | |
24068 | (char *) "self", NULL | |
24069 | }; | |
24070 | ||
24071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24074 | { |
24075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24076 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
24077 | ||
24078 | wxPyEndAllowThreads(__tstate); | |
24079 | if (PyErr_Occurred()) SWIG_fail; | |
24080 | } | |
24081 | { | |
24082 | wxRect * resultptr; | |
36ed4f51 | 24083 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
24084 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
24085 | } | |
24086 | return resultobj; | |
24087 | fail: | |
24088 | return NULL; | |
24089 | } | |
24090 | ||
24091 | ||
c370783e | 24092 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24093 | PyObject *resultobj; |
24094 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24095 | long arg2 ; | |
24096 | int arg3 = (int) 0 ; | |
24097 | wxListItem *result; | |
24098 | PyObject * obj0 = 0 ; | |
24099 | PyObject * obj1 = 0 ; | |
24100 | PyObject * obj2 = 0 ; | |
24101 | char *kwnames[] = { | |
24102 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
24103 | }; | |
24104 | ||
24105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24108 | { | |
24109 | arg2 = (long)(SWIG_As_long(obj1)); | |
24110 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24111 | } | |
d55e5bfc | 24112 | if (obj2) { |
36ed4f51 RD |
24113 | { |
24114 | arg3 = (int)(SWIG_As_int(obj2)); | |
24115 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24116 | } | |
d55e5bfc RD |
24117 | } |
24118 | { | |
24119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24120 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
24121 | ||
24122 | wxPyEndAllowThreads(__tstate); | |
24123 | if (PyErr_Occurred()) SWIG_fail; | |
24124 | } | |
24125 | { | |
412d302d | 24126 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24127 | } |
24128 | return resultobj; | |
24129 | fail: | |
24130 | return NULL; | |
24131 | } | |
24132 | ||
24133 | ||
c370783e | 24134 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24135 | PyObject *resultobj; |
24136 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24137 | wxListItem *arg2 = 0 ; | |
24138 | bool result; | |
24139 | PyObject * obj0 = 0 ; | |
24140 | PyObject * obj1 = 0 ; | |
24141 | char *kwnames[] = { | |
24142 | (char *) "self",(char *) "info", NULL | |
24143 | }; | |
24144 | ||
24145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24148 | { | |
24149 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24150 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24151 | if (arg2 == NULL) { | |
24152 | SWIG_null_ref("wxListItem"); | |
24153 | } | |
24154 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24155 | } |
24156 | { | |
24157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24158 | result = (bool)(arg1)->SetItem(*arg2); | |
24159 | ||
24160 | wxPyEndAllowThreads(__tstate); | |
24161 | if (PyErr_Occurred()) SWIG_fail; | |
24162 | } | |
24163 | { | |
24164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24165 | } | |
24166 | return resultobj; | |
24167 | fail: | |
24168 | return NULL; | |
24169 | } | |
24170 | ||
24171 | ||
c370783e | 24172 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24173 | PyObject *resultobj; |
24174 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24175 | long arg2 ; | |
24176 | int arg3 ; | |
24177 | wxString *arg4 = 0 ; | |
24178 | int arg5 = (int) -1 ; | |
24179 | long result; | |
b411df4a | 24180 | bool temp4 = false ; |
d55e5bfc RD |
24181 | PyObject * obj0 = 0 ; |
24182 | PyObject * obj1 = 0 ; | |
24183 | PyObject * obj2 = 0 ; | |
24184 | PyObject * obj3 = 0 ; | |
24185 | PyObject * obj4 = 0 ; | |
24186 | char *kwnames[] = { | |
24187 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
24188 | }; | |
24189 | ||
24190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
24191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24193 | { | |
24194 | arg2 = (long)(SWIG_As_long(obj1)); | |
24195 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24196 | } | |
24197 | { | |
24198 | arg3 = (int)(SWIG_As_int(obj2)); | |
24199 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24200 | } | |
d55e5bfc RD |
24201 | { |
24202 | arg4 = wxString_in_helper(obj3); | |
24203 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 24204 | temp4 = true; |
d55e5bfc RD |
24205 | } |
24206 | if (obj4) { | |
36ed4f51 RD |
24207 | { |
24208 | arg5 = (int)(SWIG_As_int(obj4)); | |
24209 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24210 | } | |
d55e5bfc RD |
24211 | } |
24212 | { | |
24213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24214 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
24215 | ||
24216 | wxPyEndAllowThreads(__tstate); | |
24217 | if (PyErr_Occurred()) SWIG_fail; | |
24218 | } | |
36ed4f51 RD |
24219 | { |
24220 | resultobj = SWIG_From_long((long)(result)); | |
24221 | } | |
d55e5bfc RD |
24222 | { |
24223 | if (temp4) | |
24224 | delete arg4; | |
24225 | } | |
24226 | return resultobj; | |
24227 | fail: | |
24228 | { | |
24229 | if (temp4) | |
24230 | delete arg4; | |
24231 | } | |
24232 | return NULL; | |
24233 | } | |
24234 | ||
24235 | ||
c370783e | 24236 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24237 | PyObject *resultobj; |
24238 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24239 | long arg2 ; | |
24240 | long arg3 ; | |
24241 | int result; | |
24242 | PyObject * obj0 = 0 ; | |
24243 | PyObject * obj1 = 0 ; | |
24244 | PyObject * obj2 = 0 ; | |
24245 | char *kwnames[] = { | |
24246 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
24247 | }; | |
24248 | ||
24249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24252 | { | |
24253 | arg2 = (long)(SWIG_As_long(obj1)); | |
24254 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24255 | } | |
24256 | { | |
24257 | arg3 = (long)(SWIG_As_long(obj2)); | |
24258 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24259 | } | |
d55e5bfc RD |
24260 | { |
24261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24262 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
24263 | ||
24264 | wxPyEndAllowThreads(__tstate); | |
24265 | if (PyErr_Occurred()) SWIG_fail; | |
24266 | } | |
36ed4f51 RD |
24267 | { |
24268 | resultobj = SWIG_From_int((int)(result)); | |
24269 | } | |
d55e5bfc RD |
24270 | return resultobj; |
24271 | fail: | |
24272 | return NULL; | |
24273 | } | |
24274 | ||
24275 | ||
c370783e | 24276 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24277 | PyObject *resultobj; |
24278 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24279 | long arg2 ; | |
24280 | long arg3 ; | |
24281 | long arg4 ; | |
24282 | bool result; | |
24283 | PyObject * obj0 = 0 ; | |
24284 | PyObject * obj1 = 0 ; | |
24285 | PyObject * obj2 = 0 ; | |
24286 | PyObject * obj3 = 0 ; | |
24287 | char *kwnames[] = { | |
24288 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
24289 | }; | |
24290 | ||
24291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
24292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24294 | { | |
24295 | arg2 = (long)(SWIG_As_long(obj1)); | |
24296 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24297 | } | |
24298 | { | |
24299 | arg3 = (long)(SWIG_As_long(obj2)); | |
24300 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24301 | } | |
24302 | { | |
24303 | arg4 = (long)(SWIG_As_long(obj3)); | |
24304 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24305 | } | |
d55e5bfc RD |
24306 | { |
24307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24308 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
24309 | ||
24310 | wxPyEndAllowThreads(__tstate); | |
24311 | if (PyErr_Occurred()) SWIG_fail; | |
24312 | } | |
24313 | { | |
24314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24315 | } | |
24316 | return resultobj; | |
24317 | fail: | |
24318 | return NULL; | |
24319 | } | |
24320 | ||
24321 | ||
c370783e | 24322 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24323 | PyObject *resultobj; |
24324 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24325 | long arg2 ; | |
24326 | int arg3 ; | |
84f85550 | 24327 | int arg4 = (int) -1 ; |
d55e5bfc RD |
24328 | bool result; |
24329 | PyObject * obj0 = 0 ; | |
24330 | PyObject * obj1 = 0 ; | |
24331 | PyObject * obj2 = 0 ; | |
24332 | PyObject * obj3 = 0 ; | |
24333 | char *kwnames[] = { | |
24334 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
24335 | }; | |
24336 | ||
84f85550 | 24337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
36ed4f51 RD |
24338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24340 | { | |
24341 | arg2 = (long)(SWIG_As_long(obj1)); | |
24342 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24343 | } | |
24344 | { | |
24345 | arg3 = (int)(SWIG_As_int(obj2)); | |
24346 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24347 | } | |
84f85550 | 24348 | if (obj3) { |
36ed4f51 RD |
24349 | { |
24350 | arg4 = (int)(SWIG_As_int(obj3)); | |
24351 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24352 | } | |
84f85550 | 24353 | } |
d55e5bfc RD |
24354 | { |
24355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24356 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
24357 | ||
24358 | wxPyEndAllowThreads(__tstate); | |
24359 | if (PyErr_Occurred()) SWIG_fail; | |
24360 | } | |
24361 | { | |
24362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24363 | } | |
24364 | return resultobj; | |
24365 | fail: | |
24366 | return NULL; | |
24367 | } | |
24368 | ||
24369 | ||
c370783e | 24370 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24371 | PyObject *resultobj; |
24372 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24373 | long arg2 ; | |
24374 | wxString result; | |
24375 | PyObject * obj0 = 0 ; | |
24376 | PyObject * obj1 = 0 ; | |
24377 | char *kwnames[] = { | |
24378 | (char *) "self",(char *) "item", NULL | |
24379 | }; | |
24380 | ||
24381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24384 | { | |
24385 | arg2 = (long)(SWIG_As_long(obj1)); | |
24386 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24387 | } | |
d55e5bfc RD |
24388 | { |
24389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24390 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
24391 | ||
24392 | wxPyEndAllowThreads(__tstate); | |
24393 | if (PyErr_Occurred()) SWIG_fail; | |
24394 | } | |
24395 | { | |
24396 | #if wxUSE_UNICODE | |
24397 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24398 | #else | |
24399 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24400 | #endif | |
24401 | } | |
24402 | return resultobj; | |
24403 | fail: | |
24404 | return NULL; | |
24405 | } | |
24406 | ||
24407 | ||
c370783e | 24408 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24409 | PyObject *resultobj; |
24410 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24411 | long arg2 ; | |
24412 | wxString *arg3 = 0 ; | |
b411df4a | 24413 | bool temp3 = false ; |
d55e5bfc RD |
24414 | PyObject * obj0 = 0 ; |
24415 | PyObject * obj1 = 0 ; | |
24416 | PyObject * obj2 = 0 ; | |
24417 | char *kwnames[] = { | |
24418 | (char *) "self",(char *) "item",(char *) "str", NULL | |
24419 | }; | |
24420 | ||
24421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24424 | { | |
24425 | arg2 = (long)(SWIG_As_long(obj1)); | |
24426 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24427 | } | |
d55e5bfc RD |
24428 | { |
24429 | arg3 = wxString_in_helper(obj2); | |
24430 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 24431 | temp3 = true; |
d55e5bfc RD |
24432 | } |
24433 | { | |
24434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24435 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
24436 | ||
24437 | wxPyEndAllowThreads(__tstate); | |
24438 | if (PyErr_Occurred()) SWIG_fail; | |
24439 | } | |
24440 | Py_INCREF(Py_None); resultobj = Py_None; | |
24441 | { | |
24442 | if (temp3) | |
24443 | delete arg3; | |
24444 | } | |
24445 | return resultobj; | |
24446 | fail: | |
24447 | { | |
24448 | if (temp3) | |
24449 | delete arg3; | |
24450 | } | |
24451 | return NULL; | |
24452 | } | |
24453 | ||
24454 | ||
c370783e | 24455 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24456 | PyObject *resultobj; |
24457 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24458 | long arg2 ; | |
24459 | long result; | |
24460 | PyObject * obj0 = 0 ; | |
24461 | PyObject * obj1 = 0 ; | |
24462 | char *kwnames[] = { | |
24463 | (char *) "self",(char *) "item", NULL | |
24464 | }; | |
24465 | ||
24466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24469 | { | |
24470 | arg2 = (long)(SWIG_As_long(obj1)); | |
24471 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24472 | } | |
d55e5bfc RD |
24473 | { |
24474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24475 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
24476 | ||
24477 | wxPyEndAllowThreads(__tstate); | |
24478 | if (PyErr_Occurred()) SWIG_fail; | |
24479 | } | |
36ed4f51 RD |
24480 | { |
24481 | resultobj = SWIG_From_long((long)(result)); | |
24482 | } | |
d55e5bfc RD |
24483 | return resultobj; |
24484 | fail: | |
24485 | return NULL; | |
24486 | } | |
24487 | ||
24488 | ||
c370783e | 24489 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24490 | PyObject *resultobj; |
24491 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24492 | long arg2 ; | |
24493 | long arg3 ; | |
24494 | bool result; | |
24495 | PyObject * obj0 = 0 ; | |
24496 | PyObject * obj1 = 0 ; | |
24497 | PyObject * obj2 = 0 ; | |
24498 | char *kwnames[] = { | |
24499 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24500 | }; | |
24501 | ||
24502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24505 | { | |
24506 | arg2 = (long)(SWIG_As_long(obj1)); | |
24507 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24508 | } | |
24509 | { | |
24510 | arg3 = (long)(SWIG_As_long(obj2)); | |
24511 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24512 | } | |
d55e5bfc RD |
24513 | { |
24514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24515 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
24516 | ||
24517 | wxPyEndAllowThreads(__tstate); | |
24518 | if (PyErr_Occurred()) SWIG_fail; | |
24519 | } | |
24520 | { | |
24521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24522 | } | |
24523 | return resultobj; | |
24524 | fail: | |
24525 | return NULL; | |
24526 | } | |
24527 | ||
24528 | ||
c370783e | 24529 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24530 | PyObject *resultobj; |
24531 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24532 | long arg2 ; | |
24533 | wxPoint result; | |
24534 | PyObject * obj0 = 0 ; | |
24535 | PyObject * obj1 = 0 ; | |
24536 | char *kwnames[] = { | |
24537 | (char *) "self",(char *) "item", NULL | |
24538 | }; | |
24539 | ||
24540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24543 | { | |
24544 | arg2 = (long)(SWIG_As_long(obj1)); | |
24545 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24546 | } | |
d55e5bfc RD |
24547 | { |
24548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24549 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
24550 | ||
24551 | wxPyEndAllowThreads(__tstate); | |
24552 | if (PyErr_Occurred()) SWIG_fail; | |
24553 | } | |
24554 | { | |
24555 | wxPoint * resultptr; | |
36ed4f51 | 24556 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
24557 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
24558 | } | |
24559 | return resultobj; | |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
c370783e | 24565 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24566 | PyObject *resultobj; |
24567 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24568 | long arg2 ; | |
24569 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
24570 | wxRect result; | |
24571 | PyObject * obj0 = 0 ; | |
24572 | PyObject * obj1 = 0 ; | |
24573 | PyObject * obj2 = 0 ; | |
24574 | char *kwnames[] = { | |
24575 | (char *) "self",(char *) "item",(char *) "code", NULL | |
24576 | }; | |
24577 | ||
24578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24581 | { | |
24582 | arg2 = (long)(SWIG_As_long(obj1)); | |
24583 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24584 | } | |
d55e5bfc | 24585 | if (obj2) { |
36ed4f51 RD |
24586 | { |
24587 | arg3 = (int)(SWIG_As_int(obj2)); | |
24588 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24589 | } | |
d55e5bfc RD |
24590 | } |
24591 | { | |
24592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24593 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
24594 | ||
24595 | wxPyEndAllowThreads(__tstate); | |
24596 | if (PyErr_Occurred()) SWIG_fail; | |
24597 | } | |
24598 | { | |
24599 | wxRect * resultptr; | |
36ed4f51 | 24600 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
24601 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
24602 | } | |
24603 | return resultobj; | |
24604 | fail: | |
24605 | return NULL; | |
24606 | } | |
24607 | ||
24608 | ||
c370783e | 24609 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24610 | PyObject *resultobj; |
24611 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24612 | long arg2 ; | |
24613 | wxPoint *arg3 = 0 ; | |
24614 | bool result; | |
24615 | wxPoint temp3 ; | |
24616 | PyObject * obj0 = 0 ; | |
24617 | PyObject * obj1 = 0 ; | |
24618 | PyObject * obj2 = 0 ; | |
24619 | char *kwnames[] = { | |
24620 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
24621 | }; | |
24622 | ||
24623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24626 | { | |
24627 | arg2 = (long)(SWIG_As_long(obj1)); | |
24628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24629 | } | |
d55e5bfc RD |
24630 | { |
24631 | arg3 = &temp3; | |
24632 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24633 | } | |
24634 | { | |
24635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24636 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
24637 | ||
24638 | wxPyEndAllowThreads(__tstate); | |
24639 | if (PyErr_Occurred()) SWIG_fail; | |
24640 | } | |
24641 | { | |
24642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24643 | } | |
24644 | return resultobj; | |
24645 | fail: | |
24646 | return NULL; | |
24647 | } | |
24648 | ||
24649 | ||
c370783e | 24650 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24651 | PyObject *resultobj; |
24652 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24653 | int result; | |
24654 | PyObject * obj0 = 0 ; | |
24655 | char *kwnames[] = { | |
24656 | (char *) "self", NULL | |
24657 | }; | |
24658 | ||
24659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24662 | { |
24663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24664 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
24665 | ||
24666 | wxPyEndAllowThreads(__tstate); | |
24667 | if (PyErr_Occurred()) SWIG_fail; | |
24668 | } | |
36ed4f51 RD |
24669 | { |
24670 | resultobj = SWIG_From_int((int)(result)); | |
24671 | } | |
d55e5bfc RD |
24672 | return resultobj; |
24673 | fail: | |
24674 | return NULL; | |
24675 | } | |
24676 | ||
24677 | ||
c370783e | 24678 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24679 | PyObject *resultobj; |
24680 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24681 | int result; | |
24682 | PyObject * obj0 = 0 ; | |
24683 | char *kwnames[] = { | |
24684 | (char *) "self", NULL | |
24685 | }; | |
24686 | ||
24687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24690 | { |
24691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24692 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
24693 | ||
24694 | wxPyEndAllowThreads(__tstate); | |
24695 | if (PyErr_Occurred()) SWIG_fail; | |
24696 | } | |
36ed4f51 RD |
24697 | { |
24698 | resultobj = SWIG_From_int((int)(result)); | |
24699 | } | |
d55e5bfc RD |
24700 | return resultobj; |
24701 | fail: | |
24702 | return NULL; | |
24703 | } | |
24704 | ||
24705 | ||
c370783e | 24706 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24707 | PyObject *resultobj; |
24708 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24709 | wxSize result; | |
24710 | PyObject * obj0 = 0 ; | |
24711 | char *kwnames[] = { | |
24712 | (char *) "self", NULL | |
24713 | }; | |
24714 | ||
24715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24718 | { |
24719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24720 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
24721 | ||
24722 | wxPyEndAllowThreads(__tstate); | |
24723 | if (PyErr_Occurred()) SWIG_fail; | |
24724 | } | |
24725 | { | |
24726 | wxSize * resultptr; | |
36ed4f51 | 24727 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
24728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
24729 | } | |
24730 | return resultobj; | |
24731 | fail: | |
24732 | return NULL; | |
24733 | } | |
24734 | ||
24735 | ||
c370783e | 24736 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24737 | PyObject *resultobj; |
24738 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24739 | int arg2 ; | |
b411df4a | 24740 | bool arg3 = (bool) false ; |
d55e5bfc RD |
24741 | PyObject * obj0 = 0 ; |
24742 | PyObject * obj1 = 0 ; | |
24743 | PyObject * obj2 = 0 ; | |
24744 | char *kwnames[] = { | |
24745 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
24746 | }; | |
24747 | ||
24748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24751 | { | |
24752 | arg2 = (int)(SWIG_As_int(obj1)); | |
24753 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24754 | } | |
d55e5bfc | 24755 | if (obj2) { |
36ed4f51 RD |
24756 | { |
24757 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
24758 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24759 | } | |
d55e5bfc RD |
24760 | } |
24761 | { | |
24762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24763 | (arg1)->SetItemSpacing(arg2,arg3); | |
24764 | ||
24765 | wxPyEndAllowThreads(__tstate); | |
24766 | if (PyErr_Occurred()) SWIG_fail; | |
24767 | } | |
24768 | Py_INCREF(Py_None); resultobj = Py_None; | |
24769 | return resultobj; | |
24770 | fail: | |
24771 | return NULL; | |
24772 | } | |
24773 | ||
24774 | ||
c370783e | 24775 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24776 | PyObject *resultobj; |
24777 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24778 | int result; | |
24779 | PyObject * obj0 = 0 ; | |
24780 | char *kwnames[] = { | |
24781 | (char *) "self", NULL | |
24782 | }; | |
24783 | ||
24784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24787 | { |
24788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24789 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
24790 | ||
24791 | wxPyEndAllowThreads(__tstate); | |
24792 | if (PyErr_Occurred()) SWIG_fail; | |
24793 | } | |
36ed4f51 RD |
24794 | { |
24795 | resultobj = SWIG_From_int((int)(result)); | |
24796 | } | |
d55e5bfc RD |
24797 | return resultobj; |
24798 | fail: | |
24799 | return NULL; | |
24800 | } | |
24801 | ||
24802 | ||
c370783e | 24803 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24804 | PyObject *resultobj; |
24805 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24806 | wxColour result; | |
24807 | PyObject * obj0 = 0 ; | |
24808 | char *kwnames[] = { | |
24809 | (char *) "self", NULL | |
24810 | }; | |
24811 | ||
24812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24815 | { |
24816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24817 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
24818 | ||
24819 | wxPyEndAllowThreads(__tstate); | |
24820 | if (PyErr_Occurred()) SWIG_fail; | |
24821 | } | |
24822 | { | |
24823 | wxColour * resultptr; | |
36ed4f51 | 24824 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
24825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
24826 | } | |
24827 | return resultobj; | |
24828 | fail: | |
24829 | return NULL; | |
24830 | } | |
24831 | ||
24832 | ||
c370783e | 24833 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24834 | PyObject *resultobj; |
24835 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24836 | wxColour *arg2 = 0 ; | |
24837 | wxColour temp2 ; | |
24838 | PyObject * obj0 = 0 ; | |
24839 | PyObject * obj1 = 0 ; | |
24840 | char *kwnames[] = { | |
24841 | (char *) "self",(char *) "col", NULL | |
24842 | }; | |
24843 | ||
24844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24847 | { |
24848 | arg2 = &temp2; | |
24849 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24850 | } | |
24851 | { | |
24852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24853 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
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 | ||
c370783e | 24865 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24866 | PyObject *resultobj; |
24867 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24868 | long result; | |
24869 | PyObject * obj0 = 0 ; | |
24870 | char *kwnames[] = { | |
24871 | (char *) "self", NULL | |
24872 | }; | |
24873 | ||
24874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
24875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24877 | { |
24878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24879 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
24880 | ||
24881 | wxPyEndAllowThreads(__tstate); | |
24882 | if (PyErr_Occurred()) SWIG_fail; | |
24883 | } | |
36ed4f51 RD |
24884 | { |
24885 | resultobj = SWIG_From_long((long)(result)); | |
24886 | } | |
d55e5bfc RD |
24887 | return resultobj; |
24888 | fail: | |
24889 | return NULL; | |
24890 | } | |
24891 | ||
24892 | ||
c370783e | 24893 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24894 | PyObject *resultobj; |
24895 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24896 | long arg2 ; | |
b411df4a | 24897 | bool arg3 = (bool) true ; |
d55e5bfc RD |
24898 | PyObject * obj0 = 0 ; |
24899 | PyObject * obj1 = 0 ; | |
24900 | PyObject * obj2 = 0 ; | |
24901 | char *kwnames[] = { | |
24902 | (char *) "self",(char *) "style",(char *) "add", NULL | |
24903 | }; | |
24904 | ||
24905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
24906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24908 | { | |
24909 | arg2 = (long)(SWIG_As_long(obj1)); | |
24910 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24911 | } | |
d55e5bfc | 24912 | if (obj2) { |
36ed4f51 RD |
24913 | { |
24914 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
24915 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24916 | } | |
d55e5bfc RD |
24917 | } |
24918 | { | |
24919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24920 | (arg1)->SetSingleStyle(arg2,arg3); | |
24921 | ||
24922 | wxPyEndAllowThreads(__tstate); | |
24923 | if (PyErr_Occurred()) SWIG_fail; | |
24924 | } | |
24925 | Py_INCREF(Py_None); resultobj = Py_None; | |
24926 | return resultobj; | |
24927 | fail: | |
24928 | return NULL; | |
24929 | } | |
24930 | ||
24931 | ||
c370783e | 24932 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24933 | PyObject *resultobj; |
24934 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24935 | long arg2 ; | |
24936 | PyObject * obj0 = 0 ; | |
24937 | PyObject * obj1 = 0 ; | |
24938 | char *kwnames[] = { | |
24939 | (char *) "self",(char *) "style", NULL | |
24940 | }; | |
24941 | ||
24942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
24943 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24944 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24945 | { | |
24946 | arg2 = (long)(SWIG_As_long(obj1)); | |
24947 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24948 | } | |
d55e5bfc RD |
24949 | { |
24950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24951 | (arg1)->SetWindowStyleFlag(arg2); | |
24952 | ||
24953 | wxPyEndAllowThreads(__tstate); | |
24954 | if (PyErr_Occurred()) SWIG_fail; | |
24955 | } | |
24956 | Py_INCREF(Py_None); resultobj = Py_None; | |
24957 | return resultobj; | |
24958 | fail: | |
24959 | return NULL; | |
24960 | } | |
24961 | ||
24962 | ||
c370783e | 24963 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24964 | PyObject *resultobj; |
24965 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24966 | long arg2 ; | |
24967 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
24968 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
24969 | long result; | |
24970 | PyObject * obj0 = 0 ; | |
24971 | PyObject * obj1 = 0 ; | |
24972 | PyObject * obj2 = 0 ; | |
24973 | PyObject * obj3 = 0 ; | |
24974 | char *kwnames[] = { | |
24975 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
24976 | }; | |
24977 | ||
24978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
24979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24981 | { | |
24982 | arg2 = (long)(SWIG_As_long(obj1)); | |
24983 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24984 | } | |
d55e5bfc | 24985 | if (obj2) { |
36ed4f51 RD |
24986 | { |
24987 | arg3 = (int)(SWIG_As_int(obj2)); | |
24988 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24989 | } | |
d55e5bfc RD |
24990 | } |
24991 | if (obj3) { | |
36ed4f51 RD |
24992 | { |
24993 | arg4 = (int)(SWIG_As_int(obj3)); | |
24994 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24995 | } | |
d55e5bfc RD |
24996 | } |
24997 | { | |
24998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24999 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
25000 | ||
25001 | wxPyEndAllowThreads(__tstate); | |
25002 | if (PyErr_Occurred()) SWIG_fail; | |
25003 | } | |
36ed4f51 RD |
25004 | { |
25005 | resultobj = SWIG_From_long((long)(result)); | |
25006 | } | |
d55e5bfc RD |
25007 | return resultobj; |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
c370783e | 25013 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25014 | PyObject *resultobj; |
25015 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25016 | int arg2 ; | |
25017 | wxImageList *result; | |
25018 | PyObject * obj0 = 0 ; | |
25019 | PyObject * obj1 = 0 ; | |
25020 | char *kwnames[] = { | |
25021 | (char *) "self",(char *) "which", NULL | |
25022 | }; | |
25023 | ||
25024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25027 | { | |
25028 | arg2 = (int)(SWIG_As_int(obj1)); | |
25029 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25030 | } | |
d55e5bfc RD |
25031 | { |
25032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25033 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
25034 | ||
25035 | wxPyEndAllowThreads(__tstate); | |
25036 | if (PyErr_Occurred()) SWIG_fail; | |
25037 | } | |
25038 | { | |
412d302d | 25039 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25040 | } |
25041 | return resultobj; | |
25042 | fail: | |
25043 | return NULL; | |
25044 | } | |
25045 | ||
25046 | ||
c370783e | 25047 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25048 | PyObject *resultobj; |
25049 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25050 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25051 | int arg3 ; | |
25052 | PyObject * obj0 = 0 ; | |
25053 | PyObject * obj1 = 0 ; | |
25054 | PyObject * obj2 = 0 ; | |
25055 | char *kwnames[] = { | |
25056 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25057 | }; | |
25058 | ||
25059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
25060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25062 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
25063 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25064 | { | |
25065 | arg3 = (int)(SWIG_As_int(obj2)); | |
25066 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25067 | } | |
d55e5bfc RD |
25068 | { |
25069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25070 | (arg1)->SetImageList(arg2,arg3); | |
25071 | ||
25072 | wxPyEndAllowThreads(__tstate); | |
25073 | if (PyErr_Occurred()) SWIG_fail; | |
25074 | } | |
25075 | Py_INCREF(Py_None); resultobj = Py_None; | |
25076 | return resultobj; | |
25077 | fail: | |
25078 | return NULL; | |
25079 | } | |
25080 | ||
25081 | ||
c370783e | 25082 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25083 | PyObject *resultobj; |
25084 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25085 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25086 | int arg3 ; | |
25087 | PyObject * obj0 = 0 ; | |
25088 | PyObject * obj1 = 0 ; | |
25089 | PyObject * obj2 = 0 ; | |
25090 | char *kwnames[] = { | |
25091 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25092 | }; | |
25093 | ||
25094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
25095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25097 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
25098 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25099 | { | |
25100 | arg3 = (int)(SWIG_As_int(obj2)); | |
25101 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25102 | } | |
d55e5bfc RD |
25103 | { |
25104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25105 | (arg1)->AssignImageList(arg2,arg3); | |
25106 | ||
25107 | wxPyEndAllowThreads(__tstate); | |
25108 | if (PyErr_Occurred()) SWIG_fail; | |
25109 | } | |
25110 | Py_INCREF(Py_None); resultobj = Py_None; | |
25111 | return resultobj; | |
25112 | fail: | |
25113 | return NULL; | |
25114 | } | |
25115 | ||
25116 | ||
c370783e | 25117 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25118 | PyObject *resultobj; |
25119 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25120 | bool result; | |
25121 | PyObject * obj0 = 0 ; | |
25122 | char *kwnames[] = { | |
25123 | (char *) "self", NULL | |
25124 | }; | |
25125 | ||
25126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25129 | { |
25130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25131 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
25132 | ||
25133 | wxPyEndAllowThreads(__tstate); | |
25134 | if (PyErr_Occurred()) SWIG_fail; | |
25135 | } | |
25136 | { | |
25137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25138 | } | |
25139 | return resultobj; | |
25140 | fail: | |
25141 | return NULL; | |
25142 | } | |
25143 | ||
25144 | ||
c370783e | 25145 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25146 | PyObject *resultobj; |
25147 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25148 | bool result; | |
25149 | PyObject * obj0 = 0 ; | |
25150 | char *kwnames[] = { | |
25151 | (char *) "self", NULL | |
25152 | }; | |
25153 | ||
25154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25157 | { |
25158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25159 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
25160 | ||
25161 | wxPyEndAllowThreads(__tstate); | |
25162 | if (PyErr_Occurred()) SWIG_fail; | |
25163 | } | |
25164 | { | |
25165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25166 | } | |
25167 | return resultobj; | |
25168 | fail: | |
25169 | return NULL; | |
25170 | } | |
25171 | ||
25172 | ||
c370783e | 25173 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25174 | PyObject *resultobj; |
25175 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25176 | long arg2 ; | |
25177 | PyObject * obj0 = 0 ; | |
25178 | PyObject * obj1 = 0 ; | |
25179 | char *kwnames[] = { | |
25180 | (char *) "self",(char *) "item", NULL | |
25181 | }; | |
25182 | ||
25183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25186 | { | |
25187 | arg2 = (long)(SWIG_As_long(obj1)); | |
25188 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25189 | } | |
d55e5bfc RD |
25190 | { |
25191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25192 | (arg1)->RefreshItem(arg2); | |
25193 | ||
25194 | wxPyEndAllowThreads(__tstate); | |
25195 | if (PyErr_Occurred()) SWIG_fail; | |
25196 | } | |
25197 | Py_INCREF(Py_None); resultobj = Py_None; | |
25198 | return resultobj; | |
25199 | fail: | |
25200 | return NULL; | |
25201 | } | |
25202 | ||
25203 | ||
c370783e | 25204 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25205 | PyObject *resultobj; |
25206 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25207 | long arg2 ; | |
25208 | long arg3 ; | |
25209 | PyObject * obj0 = 0 ; | |
25210 | PyObject * obj1 = 0 ; | |
25211 | PyObject * obj2 = 0 ; | |
25212 | char *kwnames[] = { | |
25213 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
25214 | }; | |
25215 | ||
25216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
25217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25219 | { | |
25220 | arg2 = (long)(SWIG_As_long(obj1)); | |
25221 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25222 | } | |
25223 | { | |
25224 | arg3 = (long)(SWIG_As_long(obj2)); | |
25225 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25226 | } | |
d55e5bfc RD |
25227 | { |
25228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25229 | (arg1)->RefreshItems(arg2,arg3); | |
25230 | ||
25231 | wxPyEndAllowThreads(__tstate); | |
25232 | if (PyErr_Occurred()) SWIG_fail; | |
25233 | } | |
25234 | Py_INCREF(Py_None); resultobj = Py_None; | |
25235 | return resultobj; | |
25236 | fail: | |
25237 | return NULL; | |
25238 | } | |
25239 | ||
25240 | ||
c370783e | 25241 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25242 | PyObject *resultobj; |
25243 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25244 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
25245 | bool result; | |
25246 | PyObject * obj0 = 0 ; | |
25247 | PyObject * obj1 = 0 ; | |
25248 | char *kwnames[] = { | |
25249 | (char *) "self",(char *) "flag", NULL | |
25250 | }; | |
25251 | ||
25252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 25255 | if (obj1) { |
36ed4f51 RD |
25256 | { |
25257 | arg2 = (int)(SWIG_As_int(obj1)); | |
25258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25259 | } | |
d55e5bfc RD |
25260 | } |
25261 | { | |
25262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25263 | result = (bool)(arg1)->Arrange(arg2); | |
25264 | ||
25265 | wxPyEndAllowThreads(__tstate); | |
25266 | if (PyErr_Occurred()) SWIG_fail; | |
25267 | } | |
25268 | { | |
25269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25270 | } | |
25271 | return resultobj; | |
25272 | fail: | |
25273 | return NULL; | |
25274 | } | |
25275 | ||
25276 | ||
c370783e | 25277 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25278 | PyObject *resultobj; |
25279 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25280 | long arg2 ; | |
25281 | bool result; | |
25282 | PyObject * obj0 = 0 ; | |
25283 | PyObject * obj1 = 0 ; | |
25284 | char *kwnames[] = { | |
25285 | (char *) "self",(char *) "item", NULL | |
25286 | }; | |
25287 | ||
25288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25291 | { | |
25292 | arg2 = (long)(SWIG_As_long(obj1)); | |
25293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25294 | } | |
d55e5bfc RD |
25295 | { |
25296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25297 | result = (bool)(arg1)->DeleteItem(arg2); | |
25298 | ||
25299 | wxPyEndAllowThreads(__tstate); | |
25300 | if (PyErr_Occurred()) SWIG_fail; | |
25301 | } | |
25302 | { | |
25303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25304 | } | |
25305 | return resultobj; | |
25306 | fail: | |
25307 | return NULL; | |
25308 | } | |
25309 | ||
25310 | ||
c370783e | 25311 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25312 | PyObject *resultobj; |
25313 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25314 | bool result; | |
25315 | PyObject * obj0 = 0 ; | |
25316 | char *kwnames[] = { | |
25317 | (char *) "self", NULL | |
25318 | }; | |
25319 | ||
25320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25323 | { |
25324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25325 | result = (bool)(arg1)->DeleteAllItems(); | |
25326 | ||
25327 | wxPyEndAllowThreads(__tstate); | |
25328 | if (PyErr_Occurred()) SWIG_fail; | |
25329 | } | |
25330 | { | |
25331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25332 | } | |
25333 | return resultobj; | |
25334 | fail: | |
25335 | return NULL; | |
25336 | } | |
25337 | ||
25338 | ||
c370783e | 25339 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25340 | PyObject *resultobj; |
25341 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25342 | int arg2 ; | |
25343 | bool result; | |
25344 | PyObject * obj0 = 0 ; | |
25345 | PyObject * obj1 = 0 ; | |
25346 | char *kwnames[] = { | |
25347 | (char *) "self",(char *) "col", NULL | |
25348 | }; | |
25349 | ||
25350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25353 | { | |
25354 | arg2 = (int)(SWIG_As_int(obj1)); | |
25355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25356 | } | |
d55e5bfc RD |
25357 | { |
25358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25359 | result = (bool)(arg1)->DeleteColumn(arg2); | |
25360 | ||
25361 | wxPyEndAllowThreads(__tstate); | |
25362 | if (PyErr_Occurred()) SWIG_fail; | |
25363 | } | |
25364 | { | |
25365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25366 | } | |
25367 | return resultobj; | |
25368 | fail: | |
25369 | return NULL; | |
25370 | } | |
25371 | ||
25372 | ||
c370783e | 25373 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25374 | PyObject *resultobj; |
25375 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25376 | bool result; | |
25377 | PyObject * obj0 = 0 ; | |
25378 | char *kwnames[] = { | |
25379 | (char *) "self", NULL | |
25380 | }; | |
25381 | ||
25382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25383 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25384 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25385 | { |
25386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25387 | result = (bool)(arg1)->DeleteAllColumns(); | |
25388 | ||
25389 | wxPyEndAllowThreads(__tstate); | |
25390 | if (PyErr_Occurred()) SWIG_fail; | |
25391 | } | |
25392 | { | |
25393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25394 | } | |
25395 | return resultobj; | |
25396 | fail: | |
25397 | return NULL; | |
25398 | } | |
25399 | ||
25400 | ||
c370783e | 25401 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25402 | PyObject *resultobj; |
25403 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25404 | PyObject * obj0 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "self", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
25410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25412 | { |
25413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25414 | (arg1)->ClearAll(); | |
25415 | ||
25416 | wxPyEndAllowThreads(__tstate); | |
25417 | if (PyErr_Occurred()) SWIG_fail; | |
25418 | } | |
25419 | Py_INCREF(Py_None); resultobj = Py_None; | |
25420 | return resultobj; | |
25421 | fail: | |
25422 | return NULL; | |
25423 | } | |
25424 | ||
25425 | ||
c370783e | 25426 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25427 | PyObject *resultobj; |
25428 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25429 | long arg2 ; | |
25430 | PyObject * obj0 = 0 ; | |
25431 | PyObject * obj1 = 0 ; | |
25432 | char *kwnames[] = { | |
25433 | (char *) "self",(char *) "item", NULL | |
25434 | }; | |
25435 | ||
25436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25439 | { | |
25440 | arg2 = (long)(SWIG_As_long(obj1)); | |
25441 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25442 | } | |
d55e5bfc RD |
25443 | { |
25444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25445 | (arg1)->EditLabel(arg2); | |
25446 | ||
25447 | wxPyEndAllowThreads(__tstate); | |
25448 | if (PyErr_Occurred()) SWIG_fail; | |
25449 | } | |
25450 | Py_INCREF(Py_None); resultobj = Py_None; | |
25451 | return resultobj; | |
25452 | fail: | |
25453 | return NULL; | |
25454 | } | |
25455 | ||
25456 | ||
c370783e | 25457 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25458 | PyObject *resultobj; |
25459 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25460 | long arg2 ; | |
25461 | bool result; | |
25462 | PyObject * obj0 = 0 ; | |
25463 | PyObject * obj1 = 0 ; | |
25464 | char *kwnames[] = { | |
25465 | (char *) "self",(char *) "item", NULL | |
25466 | }; | |
25467 | ||
25468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25469 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25470 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25471 | { | |
25472 | arg2 = (long)(SWIG_As_long(obj1)); | |
25473 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25474 | } | |
d55e5bfc RD |
25475 | { |
25476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25477 | result = (bool)(arg1)->EnsureVisible(arg2); | |
25478 | ||
25479 | wxPyEndAllowThreads(__tstate); | |
25480 | if (PyErr_Occurred()) SWIG_fail; | |
25481 | } | |
25482 | { | |
25483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25484 | } | |
25485 | return resultobj; | |
25486 | fail: | |
25487 | return NULL; | |
25488 | } | |
25489 | ||
25490 | ||
c370783e | 25491 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25492 | PyObject *resultobj; |
25493 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25494 | long arg2 ; | |
25495 | wxString *arg3 = 0 ; | |
b411df4a | 25496 | bool arg4 = (bool) false ; |
d55e5bfc | 25497 | long result; |
b411df4a | 25498 | bool temp3 = false ; |
d55e5bfc RD |
25499 | PyObject * obj0 = 0 ; |
25500 | PyObject * obj1 = 0 ; | |
25501 | PyObject * obj2 = 0 ; | |
25502 | PyObject * obj3 = 0 ; | |
25503 | char *kwnames[] = { | |
25504 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
25505 | }; | |
25506 | ||
25507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
25508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25510 | { | |
25511 | arg2 = (long)(SWIG_As_long(obj1)); | |
25512 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25513 | } | |
d55e5bfc RD |
25514 | { |
25515 | arg3 = wxString_in_helper(obj2); | |
25516 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 25517 | temp3 = true; |
d55e5bfc RD |
25518 | } |
25519 | if (obj3) { | |
36ed4f51 RD |
25520 | { |
25521 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
25522 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25523 | } | |
d55e5bfc RD |
25524 | } |
25525 | { | |
25526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25527 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
25528 | ||
25529 | wxPyEndAllowThreads(__tstate); | |
25530 | if (PyErr_Occurred()) SWIG_fail; | |
25531 | } | |
36ed4f51 RD |
25532 | { |
25533 | resultobj = SWIG_From_long((long)(result)); | |
25534 | } | |
d55e5bfc RD |
25535 | { |
25536 | if (temp3) | |
25537 | delete arg3; | |
25538 | } | |
25539 | return resultobj; | |
25540 | fail: | |
25541 | { | |
25542 | if (temp3) | |
25543 | delete arg3; | |
25544 | } | |
25545 | return NULL; | |
25546 | } | |
25547 | ||
25548 | ||
c370783e | 25549 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25550 | PyObject *resultobj; |
25551 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25552 | long arg2 ; | |
25553 | long arg3 ; | |
25554 | long result; | |
25555 | PyObject * obj0 = 0 ; | |
25556 | PyObject * obj1 = 0 ; | |
25557 | PyObject * obj2 = 0 ; | |
25558 | char *kwnames[] = { | |
25559 | (char *) "self",(char *) "start",(char *) "data", NULL | |
25560 | }; | |
25561 | ||
25562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
25563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25565 | { | |
25566 | arg2 = (long)(SWIG_As_long(obj1)); | |
25567 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25568 | } | |
25569 | { | |
25570 | arg3 = (long)(SWIG_As_long(obj2)); | |
25571 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25572 | } | |
d55e5bfc RD |
25573 | { |
25574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25575 | result = (long)(arg1)->FindItem(arg2,arg3); | |
25576 | ||
25577 | wxPyEndAllowThreads(__tstate); | |
25578 | if (PyErr_Occurred()) SWIG_fail; | |
25579 | } | |
36ed4f51 RD |
25580 | { |
25581 | resultobj = SWIG_From_long((long)(result)); | |
25582 | } | |
d55e5bfc RD |
25583 | return resultobj; |
25584 | fail: | |
25585 | return NULL; | |
25586 | } | |
25587 | ||
25588 | ||
c370783e | 25589 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25590 | PyObject *resultobj; |
25591 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25592 | long arg2 ; | |
25593 | wxPoint *arg3 = 0 ; | |
25594 | int arg4 ; | |
25595 | long result; | |
25596 | wxPoint temp3 ; | |
25597 | PyObject * obj0 = 0 ; | |
25598 | PyObject * obj1 = 0 ; | |
25599 | PyObject * obj2 = 0 ; | |
25600 | PyObject * obj3 = 0 ; | |
25601 | char *kwnames[] = { | |
25602 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
25603 | }; | |
25604 | ||
25605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
25606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25608 | { | |
25609 | arg2 = (long)(SWIG_As_long(obj1)); | |
25610 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25611 | } | |
d55e5bfc RD |
25612 | { |
25613 | arg3 = &temp3; | |
25614 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25615 | } | |
36ed4f51 RD |
25616 | { |
25617 | arg4 = (int)(SWIG_As_int(obj3)); | |
25618 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25619 | } | |
d55e5bfc RD |
25620 | { |
25621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25622 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
25623 | ||
25624 | wxPyEndAllowThreads(__tstate); | |
25625 | if (PyErr_Occurred()) SWIG_fail; | |
25626 | } | |
36ed4f51 RD |
25627 | { |
25628 | resultobj = SWIG_From_long((long)(result)); | |
25629 | } | |
d55e5bfc RD |
25630 | return resultobj; |
25631 | fail: | |
25632 | return NULL; | |
25633 | } | |
25634 | ||
25635 | ||
c370783e | 25636 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25637 | PyObject *resultobj; |
25638 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25639 | wxPoint *arg2 = 0 ; | |
25640 | int *arg3 = 0 ; | |
25641 | long result; | |
25642 | wxPoint temp2 ; | |
25643 | int temp3 ; | |
c370783e | 25644 | int res3 = 0 ; |
d55e5bfc RD |
25645 | PyObject * obj0 = 0 ; |
25646 | PyObject * obj1 = 0 ; | |
25647 | char *kwnames[] = { | |
25648 | (char *) "self",(char *) "point", NULL | |
25649 | }; | |
25650 | ||
c370783e | 25651 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc | 25652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
25653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25655 | { |
25656 | arg2 = &temp2; | |
25657 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25658 | } | |
25659 | { | |
25660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25661 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25662 | ||
25663 | wxPyEndAllowThreads(__tstate); | |
25664 | if (PyErr_Occurred()) SWIG_fail; | |
25665 | } | |
36ed4f51 RD |
25666 | { |
25667 | resultobj = SWIG_From_long((long)(result)); | |
25668 | } | |
c370783e RD |
25669 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
25670 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
25671 | return resultobj; |
25672 | fail: | |
25673 | return NULL; | |
25674 | } | |
25675 | ||
25676 | ||
c370783e | 25677 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25678 | PyObject *resultobj; |
25679 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25680 | wxListItem *arg2 = 0 ; | |
25681 | long result; | |
25682 | PyObject * obj0 = 0 ; | |
25683 | PyObject * obj1 = 0 ; | |
25684 | char *kwnames[] = { | |
25685 | (char *) "self",(char *) "info", NULL | |
25686 | }; | |
25687 | ||
25688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25691 | { | |
25692 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25694 | if (arg2 == NULL) { | |
25695 | SWIG_null_ref("wxListItem"); | |
25696 | } | |
25697 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25698 | } |
25699 | { | |
25700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25701 | result = (long)(arg1)->InsertItem(*arg2); | |
25702 | ||
25703 | wxPyEndAllowThreads(__tstate); | |
25704 | if (PyErr_Occurred()) SWIG_fail; | |
25705 | } | |
36ed4f51 RD |
25706 | { |
25707 | resultobj = SWIG_From_long((long)(result)); | |
25708 | } | |
d55e5bfc RD |
25709 | return resultobj; |
25710 | fail: | |
25711 | return NULL; | |
25712 | } | |
25713 | ||
25714 | ||
c370783e | 25715 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25716 | PyObject *resultobj; |
25717 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25718 | long arg2 ; | |
25719 | wxString *arg3 = 0 ; | |
25720 | long result; | |
b411df4a | 25721 | bool temp3 = false ; |
d55e5bfc RD |
25722 | PyObject * obj0 = 0 ; |
25723 | PyObject * obj1 = 0 ; | |
25724 | PyObject * obj2 = 0 ; | |
25725 | char *kwnames[] = { | |
25726 | (char *) "self",(char *) "index",(char *) "label", NULL | |
25727 | }; | |
25728 | ||
25729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
25730 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25731 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25732 | { | |
25733 | arg2 = (long)(SWIG_As_long(obj1)); | |
25734 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25735 | } | |
d55e5bfc RD |
25736 | { |
25737 | arg3 = wxString_in_helper(obj2); | |
25738 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 25739 | temp3 = true; |
d55e5bfc RD |
25740 | } |
25741 | { | |
25742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25743 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
25744 | ||
25745 | wxPyEndAllowThreads(__tstate); | |
25746 | if (PyErr_Occurred()) SWIG_fail; | |
25747 | } | |
36ed4f51 RD |
25748 | { |
25749 | resultobj = SWIG_From_long((long)(result)); | |
25750 | } | |
d55e5bfc RD |
25751 | { |
25752 | if (temp3) | |
25753 | delete arg3; | |
25754 | } | |
25755 | return resultobj; | |
25756 | fail: | |
25757 | { | |
25758 | if (temp3) | |
25759 | delete arg3; | |
25760 | } | |
25761 | return NULL; | |
25762 | } | |
25763 | ||
25764 | ||
c370783e | 25765 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25766 | PyObject *resultobj; |
25767 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25768 | long arg2 ; | |
25769 | int arg3 ; | |
25770 | long result; | |
25771 | PyObject * obj0 = 0 ; | |
25772 | PyObject * obj1 = 0 ; | |
25773 | PyObject * obj2 = 0 ; | |
25774 | char *kwnames[] = { | |
25775 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
25776 | }; | |
25777 | ||
25778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
25779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25781 | { | |
25782 | arg2 = (long)(SWIG_As_long(obj1)); | |
25783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25784 | } | |
25785 | { | |
25786 | arg3 = (int)(SWIG_As_int(obj2)); | |
25787 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25788 | } | |
d55e5bfc RD |
25789 | { |
25790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25791 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
25792 | ||
25793 | wxPyEndAllowThreads(__tstate); | |
25794 | if (PyErr_Occurred()) SWIG_fail; | |
25795 | } | |
36ed4f51 RD |
25796 | { |
25797 | resultobj = SWIG_From_long((long)(result)); | |
25798 | } | |
d55e5bfc RD |
25799 | return resultobj; |
25800 | fail: | |
25801 | return NULL; | |
25802 | } | |
25803 | ||
25804 | ||
c370783e | 25805 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25806 | PyObject *resultobj; |
25807 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25808 | long arg2 ; | |
25809 | wxString *arg3 = 0 ; | |
25810 | int arg4 ; | |
25811 | long result; | |
b411df4a | 25812 | bool temp3 = false ; |
d55e5bfc RD |
25813 | PyObject * obj0 = 0 ; |
25814 | PyObject * obj1 = 0 ; | |
25815 | PyObject * obj2 = 0 ; | |
25816 | PyObject * obj3 = 0 ; | |
25817 | char *kwnames[] = { | |
25818 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
25819 | }; | |
25820 | ||
25821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
25822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25824 | { | |
25825 | arg2 = (long)(SWIG_As_long(obj1)); | |
25826 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25827 | } | |
d55e5bfc RD |
25828 | { |
25829 | arg3 = wxString_in_helper(obj2); | |
25830 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 25831 | temp3 = true; |
d55e5bfc | 25832 | } |
36ed4f51 RD |
25833 | { |
25834 | arg4 = (int)(SWIG_As_int(obj3)); | |
25835 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25836 | } | |
d55e5bfc RD |
25837 | { |
25838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25839 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
25840 | ||
25841 | wxPyEndAllowThreads(__tstate); | |
25842 | if (PyErr_Occurred()) SWIG_fail; | |
25843 | } | |
36ed4f51 RD |
25844 | { |
25845 | resultobj = SWIG_From_long((long)(result)); | |
25846 | } | |
d55e5bfc RD |
25847 | { |
25848 | if (temp3) | |
25849 | delete arg3; | |
25850 | } | |
25851 | return resultobj; | |
25852 | fail: | |
25853 | { | |
25854 | if (temp3) | |
25855 | delete arg3; | |
25856 | } | |
25857 | return NULL; | |
25858 | } | |
25859 | ||
25860 | ||
a3957d3d | 25861 | static PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25862 | PyObject *resultobj; |
25863 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25864 | long arg2 ; | |
25865 | wxListItem *arg3 = 0 ; | |
25866 | long result; | |
25867 | PyObject * obj0 = 0 ; | |
25868 | PyObject * obj1 = 0 ; | |
25869 | PyObject * obj2 = 0 ; | |
25870 | char *kwnames[] = { | |
25871 | (char *) "self",(char *) "col",(char *) "info", NULL | |
25872 | }; | |
25873 | ||
a3957d3d | 25874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
25875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25877 | { | |
25878 | arg2 = (long)(SWIG_As_long(obj1)); | |
25879 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25880 | } | |
25881 | { | |
25882 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25883 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25884 | if (arg3 == NULL) { | |
25885 | SWIG_null_ref("wxListItem"); | |
25886 | } | |
25887 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
25888 | } |
25889 | { | |
25890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25891 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
25892 | ||
25893 | wxPyEndAllowThreads(__tstate); | |
25894 | if (PyErr_Occurred()) SWIG_fail; | |
25895 | } | |
36ed4f51 RD |
25896 | { |
25897 | resultobj = SWIG_From_long((long)(result)); | |
25898 | } | |
d55e5bfc RD |
25899 | return resultobj; |
25900 | fail: | |
25901 | return NULL; | |
25902 | } | |
25903 | ||
25904 | ||
c370783e | 25905 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25906 | PyObject *resultobj; |
25907 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25908 | long arg2 ; | |
25909 | wxString *arg3 = 0 ; | |
25910 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
25911 | int arg5 = (int) -1 ; | |
25912 | long result; | |
b411df4a | 25913 | bool temp3 = false ; |
d55e5bfc RD |
25914 | PyObject * obj0 = 0 ; |
25915 | PyObject * obj1 = 0 ; | |
25916 | PyObject * obj2 = 0 ; | |
25917 | PyObject * obj3 = 0 ; | |
25918 | PyObject * obj4 = 0 ; | |
25919 | char *kwnames[] = { | |
25920 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
25921 | }; | |
25922 | ||
25923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
25924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25926 | { | |
25927 | arg2 = (long)(SWIG_As_long(obj1)); | |
25928 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25929 | } | |
d55e5bfc RD |
25930 | { |
25931 | arg3 = wxString_in_helper(obj2); | |
25932 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 25933 | temp3 = true; |
d55e5bfc RD |
25934 | } |
25935 | if (obj3) { | |
36ed4f51 RD |
25936 | { |
25937 | arg4 = (int)(SWIG_As_int(obj3)); | |
25938 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25939 | } | |
d55e5bfc RD |
25940 | } |
25941 | if (obj4) { | |
36ed4f51 RD |
25942 | { |
25943 | arg5 = (int)(SWIG_As_int(obj4)); | |
25944 | if (SWIG_arg_fail(5)) SWIG_fail; | |
25945 | } | |
d55e5bfc RD |
25946 | } |
25947 | { | |
25948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25949 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
25950 | ||
25951 | wxPyEndAllowThreads(__tstate); | |
25952 | if (PyErr_Occurred()) SWIG_fail; | |
25953 | } | |
36ed4f51 RD |
25954 | { |
25955 | resultobj = SWIG_From_long((long)(result)); | |
25956 | } | |
d55e5bfc RD |
25957 | { |
25958 | if (temp3) | |
25959 | delete arg3; | |
25960 | } | |
25961 | return resultobj; | |
25962 | fail: | |
25963 | { | |
25964 | if (temp3) | |
25965 | delete arg3; | |
25966 | } | |
25967 | return NULL; | |
25968 | } | |
25969 | ||
25970 | ||
c370783e | 25971 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25972 | PyObject *resultobj; |
25973 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25974 | long arg2 ; | |
25975 | PyObject * obj0 = 0 ; | |
25976 | PyObject * obj1 = 0 ; | |
25977 | char *kwnames[] = { | |
25978 | (char *) "self",(char *) "count", NULL | |
25979 | }; | |
25980 | ||
25981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
25982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25984 | { | |
25985 | arg2 = (long)(SWIG_As_long(obj1)); | |
25986 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25987 | } | |
d55e5bfc RD |
25988 | { |
25989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25990 | (arg1)->SetItemCount(arg2); | |
25991 | ||
25992 | wxPyEndAllowThreads(__tstate); | |
25993 | if (PyErr_Occurred()) SWIG_fail; | |
25994 | } | |
25995 | Py_INCREF(Py_None); resultobj = Py_None; | |
25996 | return resultobj; | |
25997 | fail: | |
25998 | return NULL; | |
25999 | } | |
26000 | ||
26001 | ||
c370783e | 26002 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26003 | PyObject *resultobj; |
26004 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26005 | int arg2 ; | |
26006 | int arg3 ; | |
26007 | bool result; | |
26008 | PyObject * obj0 = 0 ; | |
26009 | PyObject * obj1 = 0 ; | |
26010 | PyObject * obj2 = 0 ; | |
26011 | char *kwnames[] = { | |
26012 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26013 | }; | |
26014 | ||
26015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
26016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26018 | { | |
26019 | arg2 = (int)(SWIG_As_int(obj1)); | |
26020 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26021 | } | |
26022 | { | |
26023 | arg3 = (int)(SWIG_As_int(obj2)); | |
26024 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26025 | } | |
d55e5bfc RD |
26026 | { |
26027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26028 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
26029 | ||
26030 | wxPyEndAllowThreads(__tstate); | |
26031 | if (PyErr_Occurred()) SWIG_fail; | |
26032 | } | |
26033 | { | |
26034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26035 | } | |
26036 | return resultobj; | |
26037 | fail: | |
26038 | return NULL; | |
26039 | } | |
26040 | ||
26041 | ||
c370783e | 26042 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26043 | PyObject *resultobj; |
26044 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26045 | long arg2 ; | |
26046 | wxColour *arg3 = 0 ; | |
26047 | wxColour temp3 ; | |
26048 | PyObject * obj0 = 0 ; | |
26049 | PyObject * obj1 = 0 ; | |
26050 | PyObject * obj2 = 0 ; | |
26051 | char *kwnames[] = { | |
26052 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26053 | }; | |
26054 | ||
26055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
26056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26058 | { | |
26059 | arg2 = (long)(SWIG_As_long(obj1)); | |
26060 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26061 | } | |
d55e5bfc RD |
26062 | { |
26063 | arg3 = &temp3; | |
26064 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26065 | } | |
26066 | { | |
26067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26068 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
26069 | ||
26070 | wxPyEndAllowThreads(__tstate); | |
26071 | if (PyErr_Occurred()) SWIG_fail; | |
26072 | } | |
26073 | Py_INCREF(Py_None); resultobj = Py_None; | |
26074 | return resultobj; | |
26075 | fail: | |
26076 | return NULL; | |
26077 | } | |
26078 | ||
26079 | ||
c370783e | 26080 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26081 | PyObject *resultobj; |
26082 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26083 | long arg2 ; | |
26084 | wxColour result; | |
26085 | PyObject * obj0 = 0 ; | |
26086 | PyObject * obj1 = 0 ; | |
26087 | char *kwnames[] = { | |
26088 | (char *) "self",(char *) "item", NULL | |
26089 | }; | |
26090 | ||
26091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26094 | { | |
26095 | arg2 = (long)(SWIG_As_long(obj1)); | |
26096 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26097 | } | |
d55e5bfc RD |
26098 | { |
26099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26100 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
26101 | ||
26102 | wxPyEndAllowThreads(__tstate); | |
26103 | if (PyErr_Occurred()) SWIG_fail; | |
26104 | } | |
26105 | { | |
26106 | wxColour * resultptr; | |
36ed4f51 | 26107 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
26108 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
26109 | } | |
26110 | return resultobj; | |
26111 | fail: | |
26112 | return NULL; | |
26113 | } | |
26114 | ||
26115 | ||
c370783e | 26116 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26117 | PyObject *resultobj; |
26118 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26119 | long arg2 ; | |
26120 | wxColour *arg3 = 0 ; | |
26121 | wxColour temp3 ; | |
26122 | PyObject * obj0 = 0 ; | |
26123 | PyObject * obj1 = 0 ; | |
26124 | PyObject * obj2 = 0 ; | |
26125 | char *kwnames[] = { | |
26126 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26127 | }; | |
26128 | ||
26129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
26130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26132 | { | |
26133 | arg2 = (long)(SWIG_As_long(obj1)); | |
26134 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26135 | } | |
d55e5bfc RD |
26136 | { |
26137 | arg3 = &temp3; | |
26138 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26139 | } | |
26140 | { | |
26141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26142 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
26143 | ||
26144 | wxPyEndAllowThreads(__tstate); | |
26145 | if (PyErr_Occurred()) SWIG_fail; | |
26146 | } | |
26147 | Py_INCREF(Py_None); resultobj = Py_None; | |
26148 | return resultobj; | |
26149 | fail: | |
26150 | return NULL; | |
26151 | } | |
26152 | ||
26153 | ||
c370783e | 26154 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26155 | PyObject *resultobj; |
26156 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26157 | long arg2 ; | |
26158 | wxColour result; | |
26159 | PyObject * obj0 = 0 ; | |
26160 | PyObject * obj1 = 0 ; | |
26161 | char *kwnames[] = { | |
26162 | (char *) "self",(char *) "item", NULL | |
26163 | }; | |
26164 | ||
26165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26168 | { | |
26169 | arg2 = (long)(SWIG_As_long(obj1)); | |
26170 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26171 | } | |
d55e5bfc RD |
26172 | { |
26173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26174 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
26175 | ||
26176 | wxPyEndAllowThreads(__tstate); | |
26177 | if (PyErr_Occurred()) SWIG_fail; | |
26178 | } | |
26179 | { | |
26180 | wxColour * resultptr; | |
36ed4f51 | 26181 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
26182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
26183 | } | |
26184 | return resultobj; | |
26185 | fail: | |
26186 | return NULL; | |
26187 | } | |
26188 | ||
26189 | ||
943e8dfd RD |
26190 | static PyObject *_wrap_ListCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
26191 | PyObject *resultobj; | |
26192 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26193 | long arg2 ; | |
26194 | wxFont *arg3 = 0 ; | |
26195 | PyObject * obj0 = 0 ; | |
26196 | PyObject * obj1 = 0 ; | |
26197 | PyObject * obj2 = 0 ; | |
26198 | char *kwnames[] = { | |
26199 | (char *) "self",(char *) "item",(char *) "f", NULL | |
26200 | }; | |
26201 | ||
26202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26203 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26204 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26205 | { | |
26206 | arg2 = (long)(SWIG_As_long(obj1)); | |
26207 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26208 | } | |
26209 | { | |
26210 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
26211 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26212 | if (arg3 == NULL) { | |
26213 | SWIG_null_ref("wxFont"); | |
26214 | } | |
26215 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26216 | } | |
26217 | { | |
26218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26219 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
26220 | ||
26221 | wxPyEndAllowThreads(__tstate); | |
26222 | if (PyErr_Occurred()) SWIG_fail; | |
26223 | } | |
26224 | Py_INCREF(Py_None); resultobj = Py_None; | |
26225 | return resultobj; | |
26226 | fail: | |
26227 | return NULL; | |
26228 | } | |
26229 | ||
26230 | ||
26231 | static PyObject *_wrap_ListCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
26232 | PyObject *resultobj; | |
26233 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26234 | long arg2 ; | |
26235 | wxFont result; | |
26236 | PyObject * obj0 = 0 ; | |
26237 | PyObject * obj1 = 0 ; | |
26238 | char *kwnames[] = { | |
26239 | (char *) "self",(char *) "item", NULL | |
26240 | }; | |
26241 | ||
26242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
26243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26245 | { | |
26246 | arg2 = (long)(SWIG_As_long(obj1)); | |
26247 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26248 | } | |
26249 | { | |
26250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26251 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
26252 | ||
26253 | wxPyEndAllowThreads(__tstate); | |
26254 | if (PyErr_Occurred()) SWIG_fail; | |
26255 | } | |
26256 | { | |
26257 | wxFont * resultptr; | |
26258 | resultptr = new wxFont((wxFont &)(result)); | |
26259 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26260 | } | |
26261 | return resultobj; | |
26262 | fail: | |
26263 | return NULL; | |
26264 | } | |
26265 | ||
26266 | ||
c370783e | 26267 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26268 | PyObject *resultobj; |
26269 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26270 | PyObject *arg2 = (PyObject *) 0 ; | |
26271 | bool result; | |
26272 | PyObject * obj0 = 0 ; | |
26273 | PyObject * obj1 = 0 ; | |
26274 | char *kwnames[] = { | |
26275 | (char *) "self",(char *) "func", NULL | |
26276 | }; | |
26277 | ||
26278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26279 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26280 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26281 | arg2 = obj1; |
26282 | { | |
26283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26284 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
26285 | ||
26286 | wxPyEndAllowThreads(__tstate); | |
26287 | if (PyErr_Occurred()) SWIG_fail; | |
26288 | } | |
26289 | { | |
26290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26291 | } | |
26292 | return resultobj; | |
26293 | fail: | |
26294 | return NULL; | |
26295 | } | |
26296 | ||
26297 | ||
c370783e | 26298 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26299 | PyObject *resultobj; |
26300 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26301 | wxWindow *result; | |
26302 | PyObject * obj0 = 0 ; | |
26303 | char *kwnames[] = { | |
26304 | (char *) "self", NULL | |
26305 | }; | |
26306 | ||
26307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26310 | { |
26311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26312 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
26313 | ||
26314 | wxPyEndAllowThreads(__tstate); | |
26315 | if (PyErr_Occurred()) SWIG_fail; | |
26316 | } | |
26317 | { | |
412d302d | 26318 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26319 | } |
26320 | return resultobj; | |
26321 | fail: | |
26322 | return NULL; | |
26323 | } | |
26324 | ||
26325 | ||
c370783e | 26326 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 26327 | PyObject *resultobj; |
36ed4f51 | 26328 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
26329 | wxVisualAttributes result; |
26330 | PyObject * obj0 = 0 ; | |
26331 | char *kwnames[] = { | |
26332 | (char *) "variant", NULL | |
26333 | }; | |
26334 | ||
26335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26336 | if (obj0) { | |
36ed4f51 RD |
26337 | { |
26338 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
26339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26340 | } | |
d55e5bfc RD |
26341 | } |
26342 | { | |
0439c23b | 26343 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26345 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26346 | ||
26347 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26348 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26349 | } |
26350 | { | |
26351 | wxVisualAttributes * resultptr; | |
36ed4f51 | 26352 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
26353 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
26354 | } | |
26355 | return resultobj; | |
26356 | fail: | |
26357 | return NULL; | |
26358 | } | |
26359 | ||
26360 | ||
c370783e | 26361 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26362 | PyObject *obj; |
26363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26364 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
26365 | Py_INCREF(obj); | |
26366 | return Py_BuildValue((char *)""); | |
26367 | } | |
c370783e | 26368 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26369 | PyObject *resultobj; |
26370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26371 | int arg2 = (int) -1 ; | |
26372 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
26373 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26374 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26375 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26376 | long arg5 = (long) wxLC_REPORT ; | |
26377 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
26378 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
26379 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
26380 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26381 | wxListView *result; | |
26382 | wxPoint temp3 ; | |
26383 | wxSize temp4 ; | |
b411df4a | 26384 | bool temp7 = false ; |
d55e5bfc RD |
26385 | PyObject * obj0 = 0 ; |
26386 | PyObject * obj1 = 0 ; | |
26387 | PyObject * obj2 = 0 ; | |
26388 | PyObject * obj3 = 0 ; | |
26389 | PyObject * obj4 = 0 ; | |
26390 | PyObject * obj5 = 0 ; | |
26391 | PyObject * obj6 = 0 ; | |
26392 | char *kwnames[] = { | |
26393 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26394 | }; | |
26395 | ||
26396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
26397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26399 | if (obj1) { |
36ed4f51 RD |
26400 | { |
26401 | arg2 = (int)(SWIG_As_int(obj1)); | |
26402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26403 | } | |
d55e5bfc RD |
26404 | } |
26405 | if (obj2) { | |
26406 | { | |
26407 | arg3 = &temp3; | |
26408 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26409 | } | |
26410 | } | |
26411 | if (obj3) { | |
26412 | { | |
26413 | arg4 = &temp4; | |
26414 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26415 | } | |
26416 | } | |
26417 | if (obj4) { | |
36ed4f51 RD |
26418 | { |
26419 | arg5 = (long)(SWIG_As_long(obj4)); | |
26420 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26421 | } | |
d55e5bfc RD |
26422 | } |
26423 | if (obj5) { | |
36ed4f51 RD |
26424 | { |
26425 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26426 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26427 | if (arg6 == NULL) { | |
26428 | SWIG_null_ref("wxValidator"); | |
26429 | } | |
26430 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
26431 | } |
26432 | } | |
26433 | if (obj6) { | |
26434 | { | |
26435 | arg7 = wxString_in_helper(obj6); | |
26436 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 26437 | temp7 = true; |
d55e5bfc RD |
26438 | } |
26439 | } | |
26440 | { | |
0439c23b | 26441 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26443 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
26444 | ||
26445 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26446 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26447 | } |
26448 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
26449 | { | |
26450 | if (temp7) | |
26451 | delete arg7; | |
26452 | } | |
26453 | return resultobj; | |
26454 | fail: | |
26455 | { | |
26456 | if (temp7) | |
26457 | delete arg7; | |
26458 | } | |
26459 | return NULL; | |
26460 | } | |
26461 | ||
26462 | ||
c370783e | 26463 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26464 | PyObject *resultobj; |
26465 | wxListView *result; | |
26466 | char *kwnames[] = { | |
26467 | NULL | |
26468 | }; | |
26469 | ||
26470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
26471 | { | |
0439c23b | 26472 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26474 | result = (wxListView *)new wxListView(); | |
26475 | ||
26476 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26477 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26478 | } |
26479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
26480 | return resultobj; | |
26481 | fail: | |
26482 | return NULL; | |
26483 | } | |
26484 | ||
26485 | ||
c370783e | 26486 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26487 | PyObject *resultobj; |
26488 | wxListView *arg1 = (wxListView *) 0 ; | |
26489 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26490 | int arg3 = (int) -1 ; | |
26491 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26492 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26493 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26494 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26495 | long arg6 = (long) wxLC_REPORT ; | |
26496 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
26497 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
26498 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
26499 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26500 | bool result; | |
26501 | wxPoint temp4 ; | |
26502 | wxSize temp5 ; | |
b411df4a | 26503 | bool temp8 = false ; |
d55e5bfc RD |
26504 | PyObject * obj0 = 0 ; |
26505 | PyObject * obj1 = 0 ; | |
26506 | PyObject * obj2 = 0 ; | |
26507 | PyObject * obj3 = 0 ; | |
26508 | PyObject * obj4 = 0 ; | |
26509 | PyObject * obj5 = 0 ; | |
26510 | PyObject * obj6 = 0 ; | |
26511 | PyObject * obj7 = 0 ; | |
26512 | char *kwnames[] = { | |
26513 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26514 | }; | |
26515 | ||
26516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
36ed4f51 RD |
26517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26519 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
26520 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 26521 | if (obj2) { |
36ed4f51 RD |
26522 | { |
26523 | arg3 = (int)(SWIG_As_int(obj2)); | |
26524 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26525 | } | |
d55e5bfc RD |
26526 | } |
26527 | if (obj3) { | |
26528 | { | |
26529 | arg4 = &temp4; | |
26530 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26531 | } | |
26532 | } | |
26533 | if (obj4) { | |
26534 | { | |
26535 | arg5 = &temp5; | |
26536 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26537 | } | |
26538 | } | |
26539 | if (obj5) { | |
36ed4f51 RD |
26540 | { |
26541 | arg6 = (long)(SWIG_As_long(obj5)); | |
26542 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26543 | } | |
d55e5bfc RD |
26544 | } |
26545 | if (obj6) { | |
36ed4f51 RD |
26546 | { |
26547 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26548 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26549 | if (arg7 == NULL) { | |
26550 | SWIG_null_ref("wxValidator"); | |
26551 | } | |
26552 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
26553 | } |
26554 | } | |
26555 | if (obj7) { | |
26556 | { | |
26557 | arg8 = wxString_in_helper(obj7); | |
26558 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 26559 | temp8 = true; |
d55e5bfc RD |
26560 | } |
26561 | } | |
26562 | { | |
26563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26564 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
26565 | ||
26566 | wxPyEndAllowThreads(__tstate); | |
26567 | if (PyErr_Occurred()) SWIG_fail; | |
26568 | } | |
26569 | { | |
26570 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26571 | } | |
26572 | { | |
26573 | if (temp8) | |
26574 | delete arg8; | |
26575 | } | |
26576 | return resultobj; | |
26577 | fail: | |
26578 | { | |
26579 | if (temp8) | |
26580 | delete arg8; | |
26581 | } | |
26582 | return NULL; | |
26583 | } | |
26584 | ||
26585 | ||
c370783e | 26586 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26587 | PyObject *resultobj; |
26588 | wxListView *arg1 = (wxListView *) 0 ; | |
26589 | long arg2 ; | |
b411df4a | 26590 | bool arg3 = (bool) true ; |
d55e5bfc RD |
26591 | PyObject * obj0 = 0 ; |
26592 | PyObject * obj1 = 0 ; | |
26593 | PyObject * obj2 = 0 ; | |
26594 | char *kwnames[] = { | |
26595 | (char *) "self",(char *) "n",(char *) "on", NULL | |
26596 | }; | |
26597 | ||
26598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
26599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26601 | { | |
26602 | arg2 = (long)(SWIG_As_long(obj1)); | |
26603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26604 | } | |
d55e5bfc | 26605 | if (obj2) { |
36ed4f51 RD |
26606 | { |
26607 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
26608 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26609 | } | |
d55e5bfc RD |
26610 | } |
26611 | { | |
26612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26613 | (arg1)->Select(arg2,arg3); | |
26614 | ||
26615 | wxPyEndAllowThreads(__tstate); | |
26616 | if (PyErr_Occurred()) SWIG_fail; | |
26617 | } | |
26618 | Py_INCREF(Py_None); resultobj = Py_None; | |
26619 | return resultobj; | |
26620 | fail: | |
26621 | return NULL; | |
26622 | } | |
26623 | ||
26624 | ||
c370783e | 26625 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26626 | PyObject *resultobj; |
26627 | wxListView *arg1 = (wxListView *) 0 ; | |
26628 | long arg2 ; | |
26629 | PyObject * obj0 = 0 ; | |
26630 | PyObject * obj1 = 0 ; | |
26631 | char *kwnames[] = { | |
26632 | (char *) "self",(char *) "index", NULL | |
26633 | }; | |
26634 | ||
26635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26638 | { | |
26639 | arg2 = (long)(SWIG_As_long(obj1)); | |
26640 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26641 | } | |
d55e5bfc RD |
26642 | { |
26643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26644 | (arg1)->Focus(arg2); | |
26645 | ||
26646 | wxPyEndAllowThreads(__tstate); | |
26647 | if (PyErr_Occurred()) SWIG_fail; | |
26648 | } | |
26649 | Py_INCREF(Py_None); resultobj = Py_None; | |
26650 | return resultobj; | |
26651 | fail: | |
26652 | return NULL; | |
26653 | } | |
26654 | ||
26655 | ||
c370783e | 26656 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26657 | PyObject *resultobj; |
26658 | wxListView *arg1 = (wxListView *) 0 ; | |
26659 | long result; | |
26660 | PyObject * obj0 = 0 ; | |
26661 | char *kwnames[] = { | |
26662 | (char *) "self", NULL | |
26663 | }; | |
26664 | ||
26665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26666 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26667 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26668 | { |
26669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26670 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
26671 | ||
26672 | wxPyEndAllowThreads(__tstate); | |
26673 | if (PyErr_Occurred()) SWIG_fail; | |
26674 | } | |
36ed4f51 RD |
26675 | { |
26676 | resultobj = SWIG_From_long((long)(result)); | |
26677 | } | |
d55e5bfc RD |
26678 | return resultobj; |
26679 | fail: | |
26680 | return NULL; | |
26681 | } | |
26682 | ||
26683 | ||
c370783e | 26684 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26685 | PyObject *resultobj; |
26686 | wxListView *arg1 = (wxListView *) 0 ; | |
26687 | long arg2 ; | |
26688 | long result; | |
26689 | PyObject * obj0 = 0 ; | |
26690 | PyObject * obj1 = 0 ; | |
26691 | char *kwnames[] = { | |
26692 | (char *) "self",(char *) "item", NULL | |
26693 | }; | |
26694 | ||
26695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26696 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26698 | { | |
26699 | arg2 = (long)(SWIG_As_long(obj1)); | |
26700 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26701 | } | |
d55e5bfc RD |
26702 | { |
26703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26704 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
26705 | ||
26706 | wxPyEndAllowThreads(__tstate); | |
26707 | if (PyErr_Occurred()) SWIG_fail; | |
26708 | } | |
36ed4f51 RD |
26709 | { |
26710 | resultobj = SWIG_From_long((long)(result)); | |
26711 | } | |
d55e5bfc RD |
26712 | return resultobj; |
26713 | fail: | |
26714 | return NULL; | |
26715 | } | |
26716 | ||
26717 | ||
c370783e | 26718 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26719 | PyObject *resultobj; |
26720 | wxListView *arg1 = (wxListView *) 0 ; | |
26721 | long result; | |
26722 | PyObject * obj0 = 0 ; | |
26723 | char *kwnames[] = { | |
26724 | (char *) "self", NULL | |
26725 | }; | |
26726 | ||
26727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26728 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26729 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26730 | { |
26731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26732 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
26733 | ||
26734 | wxPyEndAllowThreads(__tstate); | |
26735 | if (PyErr_Occurred()) SWIG_fail; | |
26736 | } | |
36ed4f51 RD |
26737 | { |
26738 | resultobj = SWIG_From_long((long)(result)); | |
26739 | } | |
d55e5bfc RD |
26740 | return resultobj; |
26741 | fail: | |
26742 | return NULL; | |
26743 | } | |
26744 | ||
26745 | ||
c370783e | 26746 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26747 | PyObject *resultobj; |
26748 | wxListView *arg1 = (wxListView *) 0 ; | |
26749 | long arg2 ; | |
26750 | bool result; | |
26751 | PyObject * obj0 = 0 ; | |
26752 | PyObject * obj1 = 0 ; | |
26753 | char *kwnames[] = { | |
26754 | (char *) "self",(char *) "index", NULL | |
26755 | }; | |
26756 | ||
26757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26760 | { | |
26761 | arg2 = (long)(SWIG_As_long(obj1)); | |
26762 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26763 | } | |
d55e5bfc RD |
26764 | { |
26765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26766 | result = (bool)(arg1)->IsSelected(arg2); | |
26767 | ||
26768 | wxPyEndAllowThreads(__tstate); | |
26769 | if (PyErr_Occurred()) SWIG_fail; | |
26770 | } | |
26771 | { | |
26772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26773 | } | |
26774 | return resultobj; | |
26775 | fail: | |
26776 | return NULL; | |
26777 | } | |
26778 | ||
26779 | ||
c370783e | 26780 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26781 | PyObject *resultobj; |
26782 | wxListView *arg1 = (wxListView *) 0 ; | |
26783 | int arg2 ; | |
26784 | int arg3 ; | |
26785 | PyObject * obj0 = 0 ; | |
26786 | PyObject * obj1 = 0 ; | |
26787 | PyObject * obj2 = 0 ; | |
26788 | char *kwnames[] = { | |
26789 | (char *) "self",(char *) "col",(char *) "image", NULL | |
26790 | }; | |
26791 | ||
26792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
26793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26795 | { | |
26796 | arg2 = (int)(SWIG_As_int(obj1)); | |
26797 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26798 | } | |
26799 | { | |
26800 | arg3 = (int)(SWIG_As_int(obj2)); | |
26801 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26802 | } | |
d55e5bfc RD |
26803 | { |
26804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26805 | (arg1)->SetColumnImage(arg2,arg3); | |
26806 | ||
26807 | wxPyEndAllowThreads(__tstate); | |
26808 | if (PyErr_Occurred()) SWIG_fail; | |
26809 | } | |
26810 | Py_INCREF(Py_None); resultobj = Py_None; | |
26811 | return resultobj; | |
26812 | fail: | |
26813 | return NULL; | |
26814 | } | |
26815 | ||
26816 | ||
c370783e | 26817 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26818 | PyObject *resultobj; |
26819 | wxListView *arg1 = (wxListView *) 0 ; | |
26820 | int arg2 ; | |
26821 | PyObject * obj0 = 0 ; | |
26822 | PyObject * obj1 = 0 ; | |
26823 | char *kwnames[] = { | |
26824 | (char *) "self",(char *) "col", NULL | |
26825 | }; | |
26826 | ||
26827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26830 | { | |
26831 | arg2 = (int)(SWIG_As_int(obj1)); | |
26832 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26833 | } | |
d55e5bfc RD |
26834 | { |
26835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26836 | (arg1)->ClearColumnImage(arg2); | |
26837 | ||
26838 | wxPyEndAllowThreads(__tstate); | |
26839 | if (PyErr_Occurred()) SWIG_fail; | |
26840 | } | |
26841 | Py_INCREF(Py_None); resultobj = Py_None; | |
26842 | return resultobj; | |
26843 | fail: | |
26844 | return NULL; | |
26845 | } | |
26846 | ||
26847 | ||
c370783e | 26848 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26849 | PyObject *obj; |
26850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26851 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
26852 | Py_INCREF(obj); | |
26853 | return Py_BuildValue((char *)""); | |
26854 | } | |
c370783e | 26855 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
26856 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
26857 | return 1; | |
26858 | } | |
26859 | ||
26860 | ||
36ed4f51 | 26861 | static PyObject *_wrap_TreeCtrlNameStr_get(void) { |
d55e5bfc RD |
26862 | PyObject *pyobj; |
26863 | ||
26864 | { | |
26865 | #if wxUSE_UNICODE | |
26866 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
26867 | #else | |
26868 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
26869 | #endif | |
26870 | } | |
26871 | return pyobj; | |
26872 | } | |
26873 | ||
26874 | ||
c370783e | 26875 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26876 | PyObject *resultobj; |
26877 | wxTreeItemId *result; | |
26878 | char *kwnames[] = { | |
26879 | NULL | |
26880 | }; | |
26881 | ||
26882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
26883 | { | |
26884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26885 | result = (wxTreeItemId *)new wxTreeItemId(); | |
26886 | ||
26887 | wxPyEndAllowThreads(__tstate); | |
26888 | if (PyErr_Occurred()) SWIG_fail; | |
26889 | } | |
26890 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
26891 | return resultobj; | |
26892 | fail: | |
26893 | return NULL; | |
26894 | } | |
26895 | ||
26896 | ||
c370783e | 26897 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26898 | PyObject *resultobj; |
26899 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
26900 | PyObject * obj0 = 0 ; | |
26901 | char *kwnames[] = { | |
26902 | (char *) "self", NULL | |
26903 | }; | |
26904 | ||
26905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
26907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26908 | { |
26909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26910 | delete arg1; | |
26911 | ||
26912 | wxPyEndAllowThreads(__tstate); | |
26913 | if (PyErr_Occurred()) SWIG_fail; | |
26914 | } | |
26915 | Py_INCREF(Py_None); resultobj = Py_None; | |
26916 | return resultobj; | |
26917 | fail: | |
26918 | return NULL; | |
26919 | } | |
26920 | ||
26921 | ||
c370783e | 26922 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26923 | PyObject *resultobj; |
26924 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
26925 | bool result; | |
26926 | PyObject * obj0 = 0 ; | |
26927 | char *kwnames[] = { | |
26928 | (char *) "self", NULL | |
26929 | }; | |
26930 | ||
26931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
26932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
26933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26934 | { |
26935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26936 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
26937 | ||
26938 | wxPyEndAllowThreads(__tstate); | |
26939 | if (PyErr_Occurred()) SWIG_fail; | |
26940 | } | |
26941 | { | |
26942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26943 | } | |
26944 | return resultobj; | |
26945 | fail: | |
26946 | return NULL; | |
26947 | } | |
26948 | ||
26949 | ||
c370783e | 26950 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26951 | PyObject *resultobj; |
26952 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
26953 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
26954 | bool result; | |
26955 | PyObject * obj0 = 0 ; | |
26956 | PyObject * obj1 = 0 ; | |
26957 | char *kwnames[] = { | |
26958 | (char *) "self",(char *) "other", NULL | |
26959 | }; | |
26960 | ||
26961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
26963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26964 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
26965 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26966 | { |
26967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26968 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
26969 | ||
26970 | wxPyEndAllowThreads(__tstate); | |
26971 | if (PyErr_Occurred()) SWIG_fail; | |
26972 | } | |
26973 | { | |
26974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26975 | } | |
26976 | return resultobj; | |
26977 | fail: | |
26978 | return NULL; | |
26979 | } | |
26980 | ||
26981 | ||
c370783e | 26982 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26983 | PyObject *resultobj; |
26984 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
26985 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
26986 | bool result; | |
26987 | PyObject * obj0 = 0 ; | |
26988 | PyObject * obj1 = 0 ; | |
26989 | char *kwnames[] = { | |
26990 | (char *) "self",(char *) "other", NULL | |
26991 | }; | |
26992 | ||
26993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
26994 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
26995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26996 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
26997 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
26998 | { |
26999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27000 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
27001 | ||
27002 | wxPyEndAllowThreads(__tstate); | |
27003 | if (PyErr_Occurred()) SWIG_fail; | |
27004 | } | |
27005 | { | |
27006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27007 | } | |
27008 | return resultobj; | |
27009 | fail: | |
27010 | return NULL; | |
27011 | } | |
27012 | ||
27013 | ||
c370783e | 27014 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27015 | PyObject *resultobj; |
27016 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27017 | void *arg2 = (void *) 0 ; | |
27018 | PyObject * obj0 = 0 ; | |
27019 | PyObject * obj1 = 0 ; | |
27020 | char *kwnames[] = { | |
27021 | (char *) "self",(char *) "m_pItem", NULL | |
27022 | }; | |
27023 | ||
27024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27027 | { | |
27028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),0,SWIG_POINTER_EXCEPTION|SWIG_POINTER_DISOWN))== -1) { | |
27029 | SWIG_arg_fail(2);SWIG_fail; | |
27030 | } | |
27031 | } | |
d55e5bfc RD |
27032 | if (arg1) (arg1)->m_pItem = arg2; |
27033 | ||
27034 | Py_INCREF(Py_None); resultobj = Py_None; | |
27035 | return resultobj; | |
27036 | fail: | |
27037 | return NULL; | |
27038 | } | |
27039 | ||
27040 | ||
c370783e | 27041 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27042 | PyObject *resultobj; |
27043 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27044 | void *result; | |
27045 | PyObject * obj0 = 0 ; | |
27046 | char *kwnames[] = { | |
27047 | (char *) "self", NULL | |
27048 | }; | |
27049 | ||
27050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27053 | result = (void *) ((arg1)->m_pItem); |
27054 | ||
27055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
27056 | return resultobj; | |
27057 | fail: | |
27058 | return NULL; | |
27059 | } | |
27060 | ||
27061 | ||
c370783e | 27062 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27063 | PyObject *obj; |
27064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27065 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
27066 | Py_INCREF(obj); | |
27067 | return Py_BuildValue((char *)""); | |
27068 | } | |
c370783e | 27069 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27070 | PyObject *resultobj; |
27071 | PyObject *arg1 = (PyObject *) NULL ; | |
27072 | wxPyTreeItemData *result; | |
27073 | PyObject * obj0 = 0 ; | |
27074 | char *kwnames[] = { | |
27075 | (char *) "obj", NULL | |
27076 | }; | |
27077 | ||
27078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
27079 | if (obj0) { | |
27080 | arg1 = obj0; | |
27081 | } | |
27082 | { | |
27083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27084 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
27085 | ||
27086 | wxPyEndAllowThreads(__tstate); | |
27087 | if (PyErr_Occurred()) SWIG_fail; | |
27088 | } | |
27089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
27090 | return resultobj; | |
27091 | fail: | |
27092 | return NULL; | |
27093 | } | |
27094 | ||
27095 | ||
c370783e | 27096 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27097 | PyObject *resultobj; |
27098 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27099 | PyObject *result; | |
27100 | PyObject * obj0 = 0 ; | |
27101 | char *kwnames[] = { | |
27102 | (char *) "self", NULL | |
27103 | }; | |
27104 | ||
27105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27108 | { |
27109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27110 | result = (PyObject *)(arg1)->GetData(); | |
27111 | ||
27112 | wxPyEndAllowThreads(__tstate); | |
27113 | if (PyErr_Occurred()) SWIG_fail; | |
27114 | } | |
27115 | resultobj = result; | |
27116 | return resultobj; | |
27117 | fail: | |
27118 | return NULL; | |
27119 | } | |
27120 | ||
27121 | ||
c370783e | 27122 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27123 | PyObject *resultobj; |
27124 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27125 | PyObject *arg2 = (PyObject *) 0 ; | |
27126 | PyObject * obj0 = 0 ; | |
27127 | PyObject * obj1 = 0 ; | |
27128 | char *kwnames[] = { | |
27129 | (char *) "self",(char *) "obj", NULL | |
27130 | }; | |
27131 | ||
27132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27135 | arg2 = obj1; |
27136 | { | |
27137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27138 | (arg1)->SetData(arg2); | |
27139 | ||
27140 | wxPyEndAllowThreads(__tstate); | |
27141 | if (PyErr_Occurred()) SWIG_fail; | |
27142 | } | |
27143 | Py_INCREF(Py_None); resultobj = Py_None; | |
27144 | return resultobj; | |
27145 | fail: | |
27146 | return NULL; | |
27147 | } | |
27148 | ||
27149 | ||
c370783e | 27150 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27151 | PyObject *resultobj; |
27152 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27153 | wxTreeItemId *result; | |
27154 | PyObject * obj0 = 0 ; | |
27155 | char *kwnames[] = { | |
27156 | (char *) "self", NULL | |
27157 | }; | |
27158 | ||
27159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27162 | { |
27163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27164 | { | |
27165 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
27166 | result = (wxTreeItemId *) &_result_ref; | |
27167 | } | |
27168 | ||
27169 | wxPyEndAllowThreads(__tstate); | |
27170 | if (PyErr_Occurred()) SWIG_fail; | |
27171 | } | |
27172 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
27173 | return resultobj; | |
27174 | fail: | |
27175 | return NULL; | |
27176 | } | |
27177 | ||
27178 | ||
c370783e | 27179 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27180 | PyObject *resultobj; |
27181 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27182 | wxTreeItemId *arg2 = 0 ; | |
27183 | PyObject * obj0 = 0 ; | |
27184 | PyObject * obj1 = 0 ; | |
27185 | char *kwnames[] = { | |
27186 | (char *) "self",(char *) "id", NULL | |
27187 | }; | |
27188 | ||
27189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27192 | { | |
27193 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27194 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27195 | if (arg2 == NULL) { | |
27196 | SWIG_null_ref("wxTreeItemId"); | |
27197 | } | |
27198 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27199 | } |
27200 | { | |
27201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27202 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
27203 | ||
27204 | wxPyEndAllowThreads(__tstate); | |
27205 | if (PyErr_Occurred()) SWIG_fail; | |
27206 | } | |
27207 | Py_INCREF(Py_None); resultobj = Py_None; | |
27208 | return resultobj; | |
27209 | fail: | |
27210 | return NULL; | |
27211 | } | |
27212 | ||
27213 | ||
c370783e | 27214 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27215 | PyObject *resultobj; |
27216 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27217 | PyObject * obj0 = 0 ; | |
27218 | char *kwnames[] = { | |
27219 | (char *) "self", NULL | |
27220 | }; | |
27221 | ||
27222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27225 | { |
27226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27227 | wxPyTreeItemData_Destroy(arg1); | |
27228 | ||
27229 | wxPyEndAllowThreads(__tstate); | |
27230 | if (PyErr_Occurred()) SWIG_fail; | |
27231 | } | |
27232 | Py_INCREF(Py_None); resultobj = Py_None; | |
27233 | return resultobj; | |
27234 | fail: | |
27235 | return NULL; | |
27236 | } | |
27237 | ||
27238 | ||
c370783e | 27239 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27240 | PyObject *obj; |
27241 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27242 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
27243 | Py_INCREF(obj); | |
27244 | return Py_BuildValue((char *)""); | |
27245 | } | |
c370783e | 27246 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27247 | PyObject *resultobj; |
27248 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
27249 | int arg2 = (int) 0 ; | |
27250 | wxTreeEvent *result; | |
27251 | PyObject * obj0 = 0 ; | |
27252 | PyObject * obj1 = 0 ; | |
27253 | char *kwnames[] = { | |
27254 | (char *) "commandType",(char *) "id", NULL | |
27255 | }; | |
27256 | ||
27257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
27258 | if (obj0) { | |
36ed4f51 RD |
27259 | { |
27260 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
27261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27262 | } | |
d55e5bfc RD |
27263 | } |
27264 | if (obj1) { | |
36ed4f51 RD |
27265 | { |
27266 | arg2 = (int)(SWIG_As_int(obj1)); | |
27267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27268 | } | |
d55e5bfc RD |
27269 | } |
27270 | { | |
27271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27272 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
27273 | ||
27274 | wxPyEndAllowThreads(__tstate); | |
27275 | if (PyErr_Occurred()) SWIG_fail; | |
27276 | } | |
27277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
27278 | return resultobj; | |
27279 | fail: | |
27280 | return NULL; | |
27281 | } | |
27282 | ||
27283 | ||
c370783e | 27284 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27285 | PyObject *resultobj; |
27286 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27287 | wxTreeItemId result; | |
27288 | PyObject * obj0 = 0 ; | |
27289 | char *kwnames[] = { | |
27290 | (char *) "self", NULL | |
27291 | }; | |
27292 | ||
27293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27296 | { |
27297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27298 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
27299 | ||
27300 | wxPyEndAllowThreads(__tstate); | |
27301 | if (PyErr_Occurred()) SWIG_fail; | |
27302 | } | |
27303 | { | |
27304 | wxTreeItemId * resultptr; | |
36ed4f51 | 27305 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
27306 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
27307 | } | |
27308 | return resultobj; | |
27309 | fail: | |
27310 | return NULL; | |
27311 | } | |
27312 | ||
27313 | ||
c370783e | 27314 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27315 | PyObject *resultobj; |
27316 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27317 | wxTreeItemId *arg2 = 0 ; | |
27318 | PyObject * obj0 = 0 ; | |
27319 | PyObject * obj1 = 0 ; | |
27320 | char *kwnames[] = { | |
27321 | (char *) "self",(char *) "item", NULL | |
27322 | }; | |
27323 | ||
27324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27327 | { | |
27328 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27329 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27330 | if (arg2 == NULL) { | |
27331 | SWIG_null_ref("wxTreeItemId"); | |
27332 | } | |
27333 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27334 | } |
27335 | { | |
27336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27337 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
27338 | ||
27339 | wxPyEndAllowThreads(__tstate); | |
27340 | if (PyErr_Occurred()) SWIG_fail; | |
27341 | } | |
27342 | Py_INCREF(Py_None); resultobj = Py_None; | |
27343 | return resultobj; | |
27344 | fail: | |
27345 | return NULL; | |
27346 | } | |
27347 | ||
27348 | ||
c370783e | 27349 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27350 | PyObject *resultobj; |
27351 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27352 | wxTreeItemId result; | |
27353 | PyObject * obj0 = 0 ; | |
27354 | char *kwnames[] = { | |
27355 | (char *) "self", NULL | |
27356 | }; | |
27357 | ||
27358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27361 | { |
27362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27363 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
27364 | ||
27365 | wxPyEndAllowThreads(__tstate); | |
27366 | if (PyErr_Occurred()) SWIG_fail; | |
27367 | } | |
27368 | { | |
27369 | wxTreeItemId * resultptr; | |
36ed4f51 | 27370 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
27371 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
27372 | } | |
27373 | return resultobj; | |
27374 | fail: | |
27375 | return NULL; | |
27376 | } | |
27377 | ||
27378 | ||
c370783e | 27379 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27380 | PyObject *resultobj; |
27381 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27382 | wxTreeItemId *arg2 = 0 ; | |
27383 | PyObject * obj0 = 0 ; | |
27384 | PyObject * obj1 = 0 ; | |
27385 | char *kwnames[] = { | |
27386 | (char *) "self",(char *) "item", NULL | |
27387 | }; | |
27388 | ||
27389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27392 | { | |
27393 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27394 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27395 | if (arg2 == NULL) { | |
27396 | SWIG_null_ref("wxTreeItemId"); | |
27397 | } | |
27398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27399 | } |
27400 | { | |
27401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27402 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
27403 | ||
27404 | wxPyEndAllowThreads(__tstate); | |
27405 | if (PyErr_Occurred()) SWIG_fail; | |
27406 | } | |
27407 | Py_INCREF(Py_None); resultobj = Py_None; | |
27408 | return resultobj; | |
27409 | fail: | |
27410 | return NULL; | |
27411 | } | |
27412 | ||
27413 | ||
c370783e | 27414 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27415 | PyObject *resultobj; |
27416 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27417 | wxPoint result; | |
27418 | PyObject * obj0 = 0 ; | |
27419 | char *kwnames[] = { | |
27420 | (char *) "self", NULL | |
27421 | }; | |
27422 | ||
27423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27426 | { |
27427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27428 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
27429 | ||
27430 | wxPyEndAllowThreads(__tstate); | |
27431 | if (PyErr_Occurred()) SWIG_fail; | |
27432 | } | |
27433 | { | |
27434 | wxPoint * resultptr; | |
36ed4f51 | 27435 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
27436 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
27437 | } | |
27438 | return resultobj; | |
27439 | fail: | |
27440 | return NULL; | |
27441 | } | |
27442 | ||
27443 | ||
c370783e | 27444 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27445 | PyObject *resultobj; |
27446 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27447 | wxPoint *arg2 = 0 ; | |
27448 | wxPoint temp2 ; | |
27449 | PyObject * obj0 = 0 ; | |
27450 | PyObject * obj1 = 0 ; | |
27451 | char *kwnames[] = { | |
27452 | (char *) "self",(char *) "pt", NULL | |
27453 | }; | |
27454 | ||
27455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27458 | { |
27459 | arg2 = &temp2; | |
27460 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27461 | } | |
27462 | { | |
27463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27464 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
27465 | ||
27466 | wxPyEndAllowThreads(__tstate); | |
27467 | if (PyErr_Occurred()) SWIG_fail; | |
27468 | } | |
27469 | Py_INCREF(Py_None); resultobj = Py_None; | |
27470 | return resultobj; | |
27471 | fail: | |
27472 | return NULL; | |
27473 | } | |
27474 | ||
27475 | ||
c370783e | 27476 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27477 | PyObject *resultobj; |
27478 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27479 | wxKeyEvent *result; | |
27480 | PyObject * obj0 = 0 ; | |
27481 | char *kwnames[] = { | |
27482 | (char *) "self", NULL | |
27483 | }; | |
27484 | ||
27485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27488 | { |
27489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27490 | { | |
27491 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
27492 | result = (wxKeyEvent *) &_result_ref; | |
27493 | } | |
27494 | ||
27495 | wxPyEndAllowThreads(__tstate); | |
27496 | if (PyErr_Occurred()) SWIG_fail; | |
27497 | } | |
27498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
27499 | return resultobj; | |
27500 | fail: | |
27501 | return NULL; | |
27502 | } | |
27503 | ||
27504 | ||
c370783e | 27505 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27506 | PyObject *resultobj; |
27507 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27508 | int result; | |
27509 | PyObject * obj0 = 0 ; | |
27510 | char *kwnames[] = { | |
27511 | (char *) "self", NULL | |
27512 | }; | |
27513 | ||
27514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27515 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27516 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27517 | { |
27518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27519 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
27520 | ||
27521 | wxPyEndAllowThreads(__tstate); | |
27522 | if (PyErr_Occurred()) SWIG_fail; | |
27523 | } | |
36ed4f51 RD |
27524 | { |
27525 | resultobj = SWIG_From_int((int)(result)); | |
27526 | } | |
d55e5bfc RD |
27527 | return resultobj; |
27528 | fail: | |
27529 | return NULL; | |
27530 | } | |
27531 | ||
27532 | ||
c370783e | 27533 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27534 | PyObject *resultobj; |
27535 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27536 | wxKeyEvent *arg2 = 0 ; | |
27537 | PyObject * obj0 = 0 ; | |
27538 | PyObject * obj1 = 0 ; | |
27539 | char *kwnames[] = { | |
27540 | (char *) "self",(char *) "evt", NULL | |
27541 | }; | |
27542 | ||
27543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27546 | { | |
27547 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
27548 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27549 | if (arg2 == NULL) { | |
27550 | SWIG_null_ref("wxKeyEvent"); | |
27551 | } | |
27552 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27553 | } |
27554 | { | |
27555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27556 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
27557 | ||
27558 | wxPyEndAllowThreads(__tstate); | |
27559 | if (PyErr_Occurred()) SWIG_fail; | |
27560 | } | |
27561 | Py_INCREF(Py_None); resultobj = Py_None; | |
27562 | return resultobj; | |
27563 | fail: | |
27564 | return NULL; | |
27565 | } | |
27566 | ||
27567 | ||
c370783e | 27568 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27569 | PyObject *resultobj; |
27570 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27571 | wxString *result; | |
27572 | PyObject * obj0 = 0 ; | |
27573 | char *kwnames[] = { | |
27574 | (char *) "self", NULL | |
27575 | }; | |
27576 | ||
27577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27580 | { |
27581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27582 | { | |
27583 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
27584 | result = (wxString *) &_result_ref; | |
27585 | } | |
27586 | ||
27587 | wxPyEndAllowThreads(__tstate); | |
27588 | if (PyErr_Occurred()) SWIG_fail; | |
27589 | } | |
27590 | { | |
27591 | #if wxUSE_UNICODE | |
27592 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27593 | #else | |
27594 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27595 | #endif | |
27596 | } | |
27597 | return resultobj; | |
27598 | fail: | |
27599 | return NULL; | |
27600 | } | |
27601 | ||
27602 | ||
c370783e | 27603 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27604 | PyObject *resultobj; |
27605 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27606 | wxString *arg2 = 0 ; | |
b411df4a | 27607 | bool temp2 = false ; |
d55e5bfc RD |
27608 | PyObject * obj0 = 0 ; |
27609 | PyObject * obj1 = 0 ; | |
27610 | char *kwnames[] = { | |
27611 | (char *) "self",(char *) "label", NULL | |
27612 | }; | |
27613 | ||
27614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27617 | { |
27618 | arg2 = wxString_in_helper(obj1); | |
27619 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27620 | temp2 = true; |
d55e5bfc RD |
27621 | } |
27622 | { | |
27623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27624 | (arg1)->SetLabel((wxString const &)*arg2); | |
27625 | ||
27626 | wxPyEndAllowThreads(__tstate); | |
27627 | if (PyErr_Occurred()) SWIG_fail; | |
27628 | } | |
27629 | Py_INCREF(Py_None); resultobj = Py_None; | |
27630 | { | |
27631 | if (temp2) | |
27632 | delete arg2; | |
27633 | } | |
27634 | return resultobj; | |
27635 | fail: | |
27636 | { | |
27637 | if (temp2) | |
27638 | delete arg2; | |
27639 | } | |
27640 | return NULL; | |
27641 | } | |
27642 | ||
27643 | ||
c370783e | 27644 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27645 | PyObject *resultobj; |
27646 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27647 | bool result; | |
27648 | PyObject * obj0 = 0 ; | |
27649 | char *kwnames[] = { | |
27650 | (char *) "self", NULL | |
27651 | }; | |
27652 | ||
27653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
27654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27656 | { |
27657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27658 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
27659 | ||
27660 | wxPyEndAllowThreads(__tstate); | |
27661 | if (PyErr_Occurred()) SWIG_fail; | |
27662 | } | |
27663 | { | |
27664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27665 | } | |
27666 | return resultobj; | |
27667 | fail: | |
27668 | return NULL; | |
27669 | } | |
27670 | ||
27671 | ||
c370783e | 27672 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27673 | PyObject *resultobj; |
27674 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27675 | bool arg2 ; | |
27676 | PyObject * obj0 = 0 ; | |
27677 | PyObject * obj1 = 0 ; | |
27678 | char *kwnames[] = { | |
27679 | (char *) "self",(char *) "editCancelled", NULL | |
27680 | }; | |
27681 | ||
27682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27685 | { | |
27686 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27688 | } | |
d55e5bfc RD |
27689 | { |
27690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27691 | (arg1)->SetEditCanceled(arg2); | |
27692 | ||
27693 | wxPyEndAllowThreads(__tstate); | |
27694 | if (PyErr_Occurred()) SWIG_fail; | |
27695 | } | |
27696 | Py_INCREF(Py_None); resultobj = Py_None; | |
27697 | return resultobj; | |
27698 | fail: | |
27699 | return NULL; | |
27700 | } | |
27701 | ||
27702 | ||
c370783e | 27703 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27704 | PyObject *resultobj; |
27705 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27706 | wxString *arg2 = 0 ; | |
b411df4a | 27707 | bool temp2 = false ; |
d55e5bfc RD |
27708 | PyObject * obj0 = 0 ; |
27709 | PyObject * obj1 = 0 ; | |
27710 | char *kwnames[] = { | |
27711 | (char *) "self",(char *) "toolTip", NULL | |
27712 | }; | |
27713 | ||
27714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
27715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27717 | { |
27718 | arg2 = wxString_in_helper(obj1); | |
27719 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27720 | temp2 = true; |
d55e5bfc RD |
27721 | } |
27722 | { | |
27723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27724 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27725 | ||
27726 | wxPyEndAllowThreads(__tstate); | |
27727 | if (PyErr_Occurred()) SWIG_fail; | |
27728 | } | |
27729 | Py_INCREF(Py_None); resultobj = Py_None; | |
27730 | { | |
27731 | if (temp2) | |
27732 | delete arg2; | |
27733 | } | |
27734 | return resultobj; | |
27735 | fail: | |
27736 | { | |
27737 | if (temp2) | |
27738 | delete arg2; | |
27739 | } | |
27740 | return NULL; | |
27741 | } | |
27742 | ||
27743 | ||
dcb8fc74 RD |
27744 | static PyObject *_wrap_TreeEvent_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
27745 | PyObject *resultobj; | |
27746 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27747 | wxString result; | |
27748 | PyObject * obj0 = 0 ; | |
27749 | char *kwnames[] = { | |
27750 | (char *) "self", NULL | |
27751 | }; | |
27752 | ||
27753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetToolTip",kwnames,&obj0)) goto fail; | |
27754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27756 | { | |
27757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27758 | result = (arg1)->GetToolTip(); | |
27759 | ||
27760 | wxPyEndAllowThreads(__tstate); | |
27761 | if (PyErr_Occurred()) SWIG_fail; | |
27762 | } | |
27763 | { | |
27764 | #if wxUSE_UNICODE | |
27765 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27766 | #else | |
27767 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27768 | #endif | |
27769 | } | |
27770 | return resultobj; | |
27771 | fail: | |
27772 | return NULL; | |
27773 | } | |
27774 | ||
27775 | ||
c370783e | 27776 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27777 | PyObject *obj; |
27778 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27779 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
27780 | Py_INCREF(obj); | |
27781 | return Py_BuildValue((char *)""); | |
27782 | } | |
c370783e | 27783 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27784 | PyObject *resultobj; |
27785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27786 | int arg2 = (int) -1 ; | |
27787 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
27788 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27789 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27790 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27791 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
27792 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27793 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27794 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
27795 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27796 | wxPyTreeCtrl *result; | |
27797 | wxPoint temp3 ; | |
27798 | wxSize temp4 ; | |
b411df4a | 27799 | bool temp7 = false ; |
d55e5bfc RD |
27800 | PyObject * obj0 = 0 ; |
27801 | PyObject * obj1 = 0 ; | |
27802 | PyObject * obj2 = 0 ; | |
27803 | PyObject * obj3 = 0 ; | |
27804 | PyObject * obj4 = 0 ; | |
27805 | PyObject * obj5 = 0 ; | |
27806 | PyObject * obj6 = 0 ; | |
27807 | char *kwnames[] = { | |
27808 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27809 | }; | |
27810 | ||
27811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
27812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 27814 | if (obj1) { |
36ed4f51 RD |
27815 | { |
27816 | arg2 = (int)(SWIG_As_int(obj1)); | |
27817 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27818 | } | |
d55e5bfc RD |
27819 | } |
27820 | if (obj2) { | |
27821 | { | |
27822 | arg3 = &temp3; | |
27823 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27824 | } | |
27825 | } | |
27826 | if (obj3) { | |
27827 | { | |
27828 | arg4 = &temp4; | |
27829 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27830 | } | |
27831 | } | |
27832 | if (obj4) { | |
36ed4f51 RD |
27833 | { |
27834 | arg5 = (long)(SWIG_As_long(obj4)); | |
27835 | if (SWIG_arg_fail(5)) SWIG_fail; | |
27836 | } | |
d55e5bfc RD |
27837 | } |
27838 | if (obj5) { | |
36ed4f51 RD |
27839 | { |
27840 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
27841 | if (SWIG_arg_fail(6)) SWIG_fail; | |
27842 | if (arg6 == NULL) { | |
27843 | SWIG_null_ref("wxValidator"); | |
27844 | } | |
27845 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
27846 | } |
27847 | } | |
27848 | if (obj6) { | |
27849 | { | |
27850 | arg7 = wxString_in_helper(obj6); | |
27851 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 27852 | temp7 = true; |
d55e5bfc RD |
27853 | } |
27854 | } | |
27855 | { | |
0439c23b | 27856 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27858 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27859 | ||
27860 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27861 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 27862 | } |
b0f7404b | 27863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
27864 | { |
27865 | if (temp7) | |
27866 | delete arg7; | |
27867 | } | |
27868 | return resultobj; | |
27869 | fail: | |
27870 | { | |
27871 | if (temp7) | |
27872 | delete arg7; | |
27873 | } | |
27874 | return NULL; | |
27875 | } | |
27876 | ||
27877 | ||
c370783e | 27878 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27879 | PyObject *resultobj; |
27880 | wxPyTreeCtrl *result; | |
27881 | char *kwnames[] = { | |
27882 | NULL | |
27883 | }; | |
27884 | ||
27885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
27886 | { | |
0439c23b | 27887 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
27888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27889 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
27890 | ||
27891 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27892 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 27893 | } |
b0f7404b | 27894 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
27895 | return resultobj; |
27896 | fail: | |
27897 | return NULL; | |
27898 | } | |
27899 | ||
27900 | ||
c370783e | 27901 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27902 | PyObject *resultobj; |
27903 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27904 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27905 | int arg3 = (int) -1 ; | |
27906 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27907 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27908 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27909 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27910 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
27911 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
27912 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
27913 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
27914 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27915 | bool result; | |
27916 | wxPoint temp4 ; | |
27917 | wxSize temp5 ; | |
b411df4a | 27918 | bool temp8 = false ; |
d55e5bfc RD |
27919 | PyObject * obj0 = 0 ; |
27920 | PyObject * obj1 = 0 ; | |
27921 | PyObject * obj2 = 0 ; | |
27922 | PyObject * obj3 = 0 ; | |
27923 | PyObject * obj4 = 0 ; | |
27924 | PyObject * obj5 = 0 ; | |
27925 | PyObject * obj6 = 0 ; | |
27926 | PyObject * obj7 = 0 ; | |
27927 | char *kwnames[] = { | |
27928 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27929 | }; | |
27930 | ||
27931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
36ed4f51 RD |
27932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
27933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27934 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27935 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 27936 | if (obj2) { |
36ed4f51 RD |
27937 | { |
27938 | arg3 = (int)(SWIG_As_int(obj2)); | |
27939 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27940 | } | |
d55e5bfc RD |
27941 | } |
27942 | if (obj3) { | |
27943 | { | |
27944 | arg4 = &temp4; | |
27945 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27946 | } | |
27947 | } | |
27948 | if (obj4) { | |
27949 | { | |
27950 | arg5 = &temp5; | |
27951 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27952 | } | |
27953 | } | |
27954 | if (obj5) { | |
36ed4f51 RD |
27955 | { |
27956 | arg6 = (long)(SWIG_As_long(obj5)); | |
27957 | if (SWIG_arg_fail(6)) SWIG_fail; | |
27958 | } | |
d55e5bfc RD |
27959 | } |
27960 | if (obj6) { | |
36ed4f51 RD |
27961 | { |
27962 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
27963 | if (SWIG_arg_fail(7)) SWIG_fail; | |
27964 | if (arg7 == NULL) { | |
27965 | SWIG_null_ref("wxValidator"); | |
27966 | } | |
27967 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
27968 | } |
27969 | } | |
27970 | if (obj7) { | |
27971 | { | |
27972 | arg8 = wxString_in_helper(obj7); | |
27973 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 27974 | temp8 = true; |
d55e5bfc RD |
27975 | } |
27976 | } | |
27977 | { | |
27978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27979 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
27980 | ||
27981 | wxPyEndAllowThreads(__tstate); | |
27982 | if (PyErr_Occurred()) SWIG_fail; | |
27983 | } | |
27984 | { | |
27985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27986 | } | |
27987 | { | |
27988 | if (temp8) | |
27989 | delete arg8; | |
27990 | } | |
27991 | return resultobj; | |
27992 | fail: | |
27993 | { | |
27994 | if (temp8) | |
27995 | delete arg8; | |
27996 | } | |
27997 | return NULL; | |
27998 | } | |
27999 | ||
28000 | ||
c370783e | 28001 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28002 | PyObject *resultobj; |
28003 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28004 | PyObject *arg2 = (PyObject *) 0 ; | |
28005 | PyObject *arg3 = (PyObject *) 0 ; | |
28006 | PyObject * obj0 = 0 ; | |
28007 | PyObject * obj1 = 0 ; | |
28008 | PyObject * obj2 = 0 ; | |
28009 | char *kwnames[] = { | |
28010 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28011 | }; | |
28012 | ||
28013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28016 | arg2 = obj1; |
28017 | arg3 = obj2; | |
28018 | { | |
28019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28020 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28021 | ||
28022 | wxPyEndAllowThreads(__tstate); | |
28023 | if (PyErr_Occurred()) SWIG_fail; | |
28024 | } | |
28025 | Py_INCREF(Py_None); resultobj = Py_None; | |
28026 | return resultobj; | |
28027 | fail: | |
28028 | return NULL; | |
28029 | } | |
28030 | ||
28031 | ||
c370783e | 28032 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28033 | PyObject *resultobj; |
28034 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28035 | size_t result; | |
28036 | PyObject * obj0 = 0 ; | |
28037 | char *kwnames[] = { | |
28038 | (char *) "self", NULL | |
28039 | }; | |
28040 | ||
28041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28044 | { |
28045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28046 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
28047 | ||
28048 | wxPyEndAllowThreads(__tstate); | |
28049 | if (PyErr_Occurred()) SWIG_fail; | |
28050 | } | |
36ed4f51 RD |
28051 | { |
28052 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
28053 | } | |
d55e5bfc RD |
28054 | return resultobj; |
28055 | fail: | |
28056 | return NULL; | |
28057 | } | |
28058 | ||
28059 | ||
c370783e | 28060 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28061 | PyObject *resultobj; |
28062 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28063 | unsigned int result; | |
28064 | PyObject * obj0 = 0 ; | |
28065 | char *kwnames[] = { | |
28066 | (char *) "self", NULL | |
28067 | }; | |
28068 | ||
28069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28072 | { |
28073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28074 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
28075 | ||
28076 | wxPyEndAllowThreads(__tstate); | |
28077 | if (PyErr_Occurred()) SWIG_fail; | |
28078 | } | |
36ed4f51 RD |
28079 | { |
28080 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28081 | } | |
d55e5bfc RD |
28082 | return resultobj; |
28083 | fail: | |
28084 | return NULL; | |
28085 | } | |
28086 | ||
28087 | ||
c370783e | 28088 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28089 | PyObject *resultobj; |
28090 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28091 | unsigned int arg2 ; | |
28092 | PyObject * obj0 = 0 ; | |
28093 | PyObject * obj1 = 0 ; | |
28094 | char *kwnames[] = { | |
28095 | (char *) "self",(char *) "indent", NULL | |
28096 | }; | |
28097 | ||
28098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28101 | { | |
28102 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28103 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28104 | } | |
d55e5bfc RD |
28105 | { |
28106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28107 | (arg1)->SetIndent(arg2); | |
28108 | ||
28109 | wxPyEndAllowThreads(__tstate); | |
28110 | if (PyErr_Occurred()) SWIG_fail; | |
28111 | } | |
28112 | Py_INCREF(Py_None); resultobj = Py_None; | |
28113 | return resultobj; | |
28114 | fail: | |
28115 | return NULL; | |
28116 | } | |
28117 | ||
28118 | ||
c370783e | 28119 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28120 | PyObject *resultobj; |
28121 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28122 | unsigned int result; | |
28123 | PyObject * obj0 = 0 ; | |
28124 | char *kwnames[] = { | |
28125 | (char *) "self", NULL | |
28126 | }; | |
28127 | ||
28128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28131 | { |
28132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28133 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
28134 | ||
28135 | wxPyEndAllowThreads(__tstate); | |
28136 | if (PyErr_Occurred()) SWIG_fail; | |
28137 | } | |
36ed4f51 RD |
28138 | { |
28139 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28140 | } | |
d55e5bfc RD |
28141 | return resultobj; |
28142 | fail: | |
28143 | return NULL; | |
28144 | } | |
28145 | ||
28146 | ||
c370783e | 28147 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28148 | PyObject *resultobj; |
28149 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28150 | unsigned int arg2 ; | |
28151 | PyObject * obj0 = 0 ; | |
28152 | PyObject * obj1 = 0 ; | |
28153 | char *kwnames[] = { | |
28154 | (char *) "self",(char *) "spacing", NULL | |
28155 | }; | |
28156 | ||
28157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28160 | { | |
28161 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28163 | } | |
d55e5bfc RD |
28164 | { |
28165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28166 | (arg1)->SetSpacing(arg2); | |
28167 | ||
28168 | wxPyEndAllowThreads(__tstate); | |
28169 | if (PyErr_Occurred()) SWIG_fail; | |
28170 | } | |
28171 | Py_INCREF(Py_None); resultobj = Py_None; | |
28172 | return resultobj; | |
28173 | fail: | |
28174 | return NULL; | |
28175 | } | |
28176 | ||
28177 | ||
c370783e | 28178 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28179 | PyObject *resultobj; |
28180 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28181 | wxImageList *result; | |
28182 | PyObject * obj0 = 0 ; | |
28183 | char *kwnames[] = { | |
28184 | (char *) "self", NULL | |
28185 | }; | |
28186 | ||
28187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28190 | { |
28191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28192 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
28193 | ||
28194 | wxPyEndAllowThreads(__tstate); | |
28195 | if (PyErr_Occurred()) SWIG_fail; | |
28196 | } | |
28197 | { | |
412d302d | 28198 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28199 | } |
28200 | return resultobj; | |
28201 | fail: | |
28202 | return NULL; | |
28203 | } | |
28204 | ||
28205 | ||
c370783e | 28206 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28207 | PyObject *resultobj; |
28208 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28209 | wxImageList *result; | |
28210 | PyObject * obj0 = 0 ; | |
28211 | char *kwnames[] = { | |
28212 | (char *) "self", NULL | |
28213 | }; | |
28214 | ||
28215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
28216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28218 | { |
28219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28220 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
28221 | ||
28222 | wxPyEndAllowThreads(__tstate); | |
28223 | if (PyErr_Occurred()) SWIG_fail; | |
28224 | } | |
28225 | { | |
412d302d | 28226 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28227 | } |
28228 | return resultobj; | |
28229 | fail: | |
28230 | return NULL; | |
28231 | } | |
28232 | ||
28233 | ||
c370783e | 28234 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28235 | PyObject *resultobj; |
28236 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28237 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28238 | PyObject * obj0 = 0 ; | |
28239 | PyObject * obj1 = 0 ; | |
28240 | char *kwnames[] = { | |
28241 | (char *) "self",(char *) "imageList", NULL | |
28242 | }; | |
28243 | ||
28244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28247 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28248 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28249 | { |
28250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28251 | (arg1)->SetImageList(arg2); | |
28252 | ||
28253 | wxPyEndAllowThreads(__tstate); | |
28254 | if (PyErr_Occurred()) SWIG_fail; | |
28255 | } | |
28256 | Py_INCREF(Py_None); resultobj = Py_None; | |
28257 | return resultobj; | |
28258 | fail: | |
28259 | return NULL; | |
28260 | } | |
28261 | ||
28262 | ||
c370783e | 28263 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28264 | PyObject *resultobj; |
28265 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28266 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28267 | PyObject * obj0 = 0 ; | |
28268 | PyObject * obj1 = 0 ; | |
28269 | char *kwnames[] = { | |
28270 | (char *) "self",(char *) "imageList", NULL | |
28271 | }; | |
28272 | ||
28273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28276 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28278 | { |
28279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28280 | (arg1)->SetStateImageList(arg2); | |
28281 | ||
28282 | wxPyEndAllowThreads(__tstate); | |
28283 | if (PyErr_Occurred()) SWIG_fail; | |
28284 | } | |
28285 | Py_INCREF(Py_None); resultobj = Py_None; | |
28286 | return resultobj; | |
28287 | fail: | |
28288 | return NULL; | |
28289 | } | |
28290 | ||
28291 | ||
c370783e | 28292 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28293 | PyObject *resultobj; |
28294 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28295 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28296 | PyObject * obj0 = 0 ; | |
28297 | PyObject * obj1 = 0 ; | |
28298 | char *kwnames[] = { | |
28299 | (char *) "self",(char *) "imageList", NULL | |
28300 | }; | |
28301 | ||
28302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28305 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28306 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28307 | { |
28308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28309 | (arg1)->AssignImageList(arg2); | |
28310 | ||
28311 | wxPyEndAllowThreads(__tstate); | |
28312 | if (PyErr_Occurred()) SWIG_fail; | |
28313 | } | |
28314 | Py_INCREF(Py_None); resultobj = Py_None; | |
28315 | return resultobj; | |
28316 | fail: | |
28317 | return NULL; | |
28318 | } | |
28319 | ||
28320 | ||
c370783e | 28321 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28322 | PyObject *resultobj; |
28323 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28324 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28325 | PyObject * obj0 = 0 ; | |
28326 | PyObject * obj1 = 0 ; | |
28327 | char *kwnames[] = { | |
28328 | (char *) "self",(char *) "imageList", NULL | |
28329 | }; | |
28330 | ||
28331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28332 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28333 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28334 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28336 | { |
28337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28338 | (arg1)->AssignStateImageList(arg2); | |
28339 | ||
28340 | wxPyEndAllowThreads(__tstate); | |
28341 | if (PyErr_Occurred()) SWIG_fail; | |
28342 | } | |
28343 | Py_INCREF(Py_None); resultobj = Py_None; | |
28344 | return resultobj; | |
28345 | fail: | |
28346 | return NULL; | |
28347 | } | |
28348 | ||
28349 | ||
c370783e | 28350 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28351 | PyObject *resultobj; |
28352 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28353 | wxTreeItemId *arg2 = 0 ; | |
28354 | wxString result; | |
28355 | PyObject * obj0 = 0 ; | |
28356 | PyObject * obj1 = 0 ; | |
28357 | char *kwnames[] = { | |
28358 | (char *) "self",(char *) "item", NULL | |
28359 | }; | |
28360 | ||
28361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28364 | { | |
28365 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28366 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28367 | if (arg2 == NULL) { | |
28368 | SWIG_null_ref("wxTreeItemId"); | |
28369 | } | |
28370 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28371 | } |
28372 | { | |
28373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28374 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
28375 | ||
28376 | wxPyEndAllowThreads(__tstate); | |
28377 | if (PyErr_Occurred()) SWIG_fail; | |
28378 | } | |
28379 | { | |
28380 | #if wxUSE_UNICODE | |
28381 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28382 | #else | |
28383 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28384 | #endif | |
28385 | } | |
28386 | return resultobj; | |
28387 | fail: | |
28388 | return NULL; | |
28389 | } | |
28390 | ||
28391 | ||
c370783e | 28392 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28393 | PyObject *resultobj; |
28394 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28395 | wxTreeItemId *arg2 = 0 ; | |
36ed4f51 | 28396 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d55e5bfc RD |
28397 | int result; |
28398 | PyObject * obj0 = 0 ; | |
28399 | PyObject * obj1 = 0 ; | |
28400 | PyObject * obj2 = 0 ; | |
28401 | char *kwnames[] = { | |
28402 | (char *) "self",(char *) "item",(char *) "which", NULL | |
28403 | }; | |
28404 | ||
28405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28406 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28407 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28408 | { | |
28409 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28410 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28411 | if (arg2 == NULL) { | |
28412 | SWIG_null_ref("wxTreeItemId"); | |
28413 | } | |
28414 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28415 | } |
28416 | if (obj2) { | |
36ed4f51 RD |
28417 | { |
28418 | arg3 = (wxTreeItemIcon)(SWIG_As_int(obj2)); | |
28419 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28420 | } | |
d55e5bfc RD |
28421 | } |
28422 | { | |
28423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28424 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
28425 | ||
28426 | wxPyEndAllowThreads(__tstate); | |
28427 | if (PyErr_Occurred()) SWIG_fail; | |
28428 | } | |
36ed4f51 RD |
28429 | { |
28430 | resultobj = SWIG_From_int((int)(result)); | |
28431 | } | |
d55e5bfc RD |
28432 | return resultobj; |
28433 | fail: | |
28434 | return NULL; | |
28435 | } | |
28436 | ||
28437 | ||
c370783e | 28438 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28439 | PyObject *resultobj; |
28440 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28441 | wxTreeItemId *arg2 = 0 ; | |
28442 | wxPyTreeItemData *result; | |
28443 | PyObject * obj0 = 0 ; | |
28444 | PyObject * obj1 = 0 ; | |
28445 | char *kwnames[] = { | |
28446 | (char *) "self",(char *) "item", NULL | |
28447 | }; | |
28448 | ||
28449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28452 | { | |
28453 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28454 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28455 | if (arg2 == NULL) { | |
28456 | SWIG_null_ref("wxTreeItemId"); | |
28457 | } | |
28458 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28459 | } |
28460 | { | |
28461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28462 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
28463 | ||
28464 | wxPyEndAllowThreads(__tstate); | |
28465 | if (PyErr_Occurred()) SWIG_fail; | |
28466 | } | |
28467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
28468 | return resultobj; | |
28469 | fail: | |
28470 | return NULL; | |
28471 | } | |
28472 | ||
28473 | ||
c370783e | 28474 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28475 | PyObject *resultobj; |
28476 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28477 | wxTreeItemId *arg2 = 0 ; | |
28478 | PyObject *result; | |
28479 | PyObject * obj0 = 0 ; | |
28480 | PyObject * obj1 = 0 ; | |
28481 | char *kwnames[] = { | |
28482 | (char *) "self",(char *) "item", NULL | |
28483 | }; | |
28484 | ||
28485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28488 | { | |
28489 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28490 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28491 | if (arg2 == NULL) { | |
28492 | SWIG_null_ref("wxTreeItemId"); | |
28493 | } | |
28494 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28495 | } |
28496 | { | |
28497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28498 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
28499 | ||
28500 | wxPyEndAllowThreads(__tstate); | |
28501 | if (PyErr_Occurred()) SWIG_fail; | |
28502 | } | |
28503 | resultobj = result; | |
28504 | return resultobj; | |
28505 | fail: | |
28506 | return NULL; | |
28507 | } | |
28508 | ||
28509 | ||
c370783e | 28510 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28511 | PyObject *resultobj; |
28512 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28513 | wxTreeItemId *arg2 = 0 ; | |
28514 | wxColour result; | |
28515 | PyObject * obj0 = 0 ; | |
28516 | PyObject * obj1 = 0 ; | |
28517 | char *kwnames[] = { | |
28518 | (char *) "self",(char *) "item", NULL | |
28519 | }; | |
28520 | ||
28521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28524 | { | |
28525 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28526 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28527 | if (arg2 == NULL) { | |
28528 | SWIG_null_ref("wxTreeItemId"); | |
28529 | } | |
28530 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28531 | } |
28532 | { | |
28533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28534 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
28535 | ||
28536 | wxPyEndAllowThreads(__tstate); | |
28537 | if (PyErr_Occurred()) SWIG_fail; | |
28538 | } | |
28539 | { | |
28540 | wxColour * resultptr; | |
36ed4f51 | 28541 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
28542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
28543 | } | |
28544 | return resultobj; | |
28545 | fail: | |
28546 | return NULL; | |
28547 | } | |
28548 | ||
28549 | ||
c370783e | 28550 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28551 | PyObject *resultobj; |
28552 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28553 | wxTreeItemId *arg2 = 0 ; | |
28554 | wxColour result; | |
28555 | PyObject * obj0 = 0 ; | |
28556 | PyObject * obj1 = 0 ; | |
28557 | char *kwnames[] = { | |
28558 | (char *) "self",(char *) "item", NULL | |
28559 | }; | |
28560 | ||
28561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28564 | { | |
28565 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28567 | if (arg2 == NULL) { | |
28568 | SWIG_null_ref("wxTreeItemId"); | |
28569 | } | |
28570 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28571 | } |
28572 | { | |
28573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28574 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
28575 | ||
28576 | wxPyEndAllowThreads(__tstate); | |
28577 | if (PyErr_Occurred()) SWIG_fail; | |
28578 | } | |
28579 | { | |
28580 | wxColour * resultptr; | |
36ed4f51 | 28581 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
28582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
28583 | } | |
28584 | return resultobj; | |
28585 | fail: | |
28586 | return NULL; | |
28587 | } | |
28588 | ||
28589 | ||
c370783e | 28590 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28591 | PyObject *resultobj; |
28592 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28593 | wxTreeItemId *arg2 = 0 ; | |
28594 | wxFont result; | |
28595 | PyObject * obj0 = 0 ; | |
28596 | PyObject * obj1 = 0 ; | |
28597 | char *kwnames[] = { | |
28598 | (char *) "self",(char *) "item", NULL | |
28599 | }; | |
28600 | ||
28601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
28602 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28604 | { | |
28605 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28606 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28607 | if (arg2 == NULL) { | |
28608 | SWIG_null_ref("wxTreeItemId"); | |
28609 | } | |
28610 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28611 | } |
28612 | { | |
28613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28614 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
28615 | ||
28616 | wxPyEndAllowThreads(__tstate); | |
28617 | if (PyErr_Occurred()) SWIG_fail; | |
28618 | } | |
28619 | { | |
28620 | wxFont * resultptr; | |
36ed4f51 | 28621 | resultptr = new wxFont((wxFont &)(result)); |
d55e5bfc RD |
28622 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
28623 | } | |
28624 | return resultobj; | |
28625 | fail: | |
28626 | return NULL; | |
28627 | } | |
28628 | ||
28629 | ||
c370783e | 28630 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28631 | PyObject *resultobj; |
28632 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28633 | wxTreeItemId *arg2 = 0 ; | |
28634 | wxString *arg3 = 0 ; | |
b411df4a | 28635 | bool temp3 = false ; |
d55e5bfc RD |
28636 | PyObject * obj0 = 0 ; |
28637 | PyObject * obj1 = 0 ; | |
28638 | PyObject * obj2 = 0 ; | |
28639 | char *kwnames[] = { | |
28640 | (char *) "self",(char *) "item",(char *) "text", NULL | |
28641 | }; | |
28642 | ||
28643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28646 | { | |
28647 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28648 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28649 | if (arg2 == NULL) { | |
28650 | SWIG_null_ref("wxTreeItemId"); | |
28651 | } | |
28652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28653 | } |
28654 | { | |
28655 | arg3 = wxString_in_helper(obj2); | |
28656 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 28657 | temp3 = true; |
d55e5bfc RD |
28658 | } |
28659 | { | |
28660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28661 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
28662 | ||
28663 | wxPyEndAllowThreads(__tstate); | |
28664 | if (PyErr_Occurred()) SWIG_fail; | |
28665 | } | |
28666 | Py_INCREF(Py_None); resultobj = Py_None; | |
28667 | { | |
28668 | if (temp3) | |
28669 | delete arg3; | |
28670 | } | |
28671 | return resultobj; | |
28672 | fail: | |
28673 | { | |
28674 | if (temp3) | |
28675 | delete arg3; | |
28676 | } | |
28677 | return NULL; | |
28678 | } | |
28679 | ||
28680 | ||
c370783e | 28681 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28682 | PyObject *resultobj; |
28683 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28684 | wxTreeItemId *arg2 = 0 ; | |
28685 | int arg3 ; | |
36ed4f51 | 28686 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d55e5bfc RD |
28687 | PyObject * obj0 = 0 ; |
28688 | PyObject * obj1 = 0 ; | |
28689 | PyObject * obj2 = 0 ; | |
28690 | PyObject * obj3 = 0 ; | |
28691 | char *kwnames[] = { | |
28692 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
28693 | }; | |
28694 | ||
28695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
28696 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28698 | { | |
28699 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28700 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28701 | if (arg2 == NULL) { | |
28702 | SWIG_null_ref("wxTreeItemId"); | |
28703 | } | |
28704 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28705 | } | |
28706 | { | |
28707 | arg3 = (int)(SWIG_As_int(obj2)); | |
28708 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28709 | } | |
d55e5bfc | 28710 | if (obj3) { |
36ed4f51 RD |
28711 | { |
28712 | arg4 = (wxTreeItemIcon)(SWIG_As_int(obj3)); | |
28713 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28714 | } | |
d55e5bfc RD |
28715 | } |
28716 | { | |
28717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28718 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
28719 | ||
28720 | wxPyEndAllowThreads(__tstate); | |
28721 | if (PyErr_Occurred()) SWIG_fail; | |
28722 | } | |
28723 | Py_INCREF(Py_None); resultobj = Py_None; | |
28724 | return resultobj; | |
28725 | fail: | |
28726 | return NULL; | |
28727 | } | |
28728 | ||
28729 | ||
c370783e | 28730 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28731 | PyObject *resultobj; |
28732 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28733 | wxTreeItemId *arg2 = 0 ; | |
28734 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
28735 | PyObject * obj0 = 0 ; | |
28736 | PyObject * obj1 = 0 ; | |
28737 | PyObject * obj2 = 0 ; | |
28738 | char *kwnames[] = { | |
28739 | (char *) "self",(char *) "item",(char *) "data", NULL | |
28740 | }; | |
28741 | ||
28742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28745 | { | |
28746 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28747 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28748 | if (arg2 == NULL) { | |
28749 | SWIG_null_ref("wxTreeItemId"); | |
28750 | } | |
28751 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 28752 | } |
36ed4f51 RD |
28753 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28754 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
28755 | { |
28756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28757 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28758 | ||
28759 | wxPyEndAllowThreads(__tstate); | |
28760 | if (PyErr_Occurred()) SWIG_fail; | |
28761 | } | |
28762 | Py_INCREF(Py_None); resultobj = Py_None; | |
28763 | return resultobj; | |
28764 | fail: | |
28765 | return NULL; | |
28766 | } | |
28767 | ||
28768 | ||
c370783e | 28769 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28770 | PyObject *resultobj; |
28771 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28772 | wxTreeItemId *arg2 = 0 ; | |
28773 | PyObject *arg3 = (PyObject *) 0 ; | |
28774 | PyObject * obj0 = 0 ; | |
28775 | PyObject * obj1 = 0 ; | |
28776 | PyObject * obj2 = 0 ; | |
28777 | char *kwnames[] = { | |
28778 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
28779 | }; | |
28780 | ||
28781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28784 | { | |
28785 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28787 | if (arg2 == NULL) { | |
28788 | SWIG_null_ref("wxTreeItemId"); | |
28789 | } | |
28790 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28791 | } |
28792 | arg3 = obj2; | |
28793 | { | |
28794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28795 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28796 | ||
28797 | wxPyEndAllowThreads(__tstate); | |
28798 | if (PyErr_Occurred()) SWIG_fail; | |
28799 | } | |
28800 | Py_INCREF(Py_None); resultobj = Py_None; | |
28801 | return resultobj; | |
28802 | fail: | |
28803 | return NULL; | |
28804 | } | |
28805 | ||
28806 | ||
c370783e | 28807 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28808 | PyObject *resultobj; |
28809 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28810 | wxTreeItemId *arg2 = 0 ; | |
b411df4a | 28811 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28812 | PyObject * obj0 = 0 ; |
28813 | PyObject * obj1 = 0 ; | |
28814 | PyObject * obj2 = 0 ; | |
28815 | char *kwnames[] = { | |
28816 | (char *) "self",(char *) "item",(char *) "has", NULL | |
28817 | }; | |
28818 | ||
28819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28822 | { | |
28823 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28824 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28825 | if (arg2 == NULL) { | |
28826 | SWIG_null_ref("wxTreeItemId"); | |
28827 | } | |
28828 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28829 | } |
28830 | if (obj2) { | |
36ed4f51 RD |
28831 | { |
28832 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
28833 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28834 | } | |
d55e5bfc RD |
28835 | } |
28836 | { | |
28837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28838 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
28839 | ||
28840 | wxPyEndAllowThreads(__tstate); | |
28841 | if (PyErr_Occurred()) SWIG_fail; | |
28842 | } | |
28843 | Py_INCREF(Py_None); resultobj = Py_None; | |
28844 | return resultobj; | |
28845 | fail: | |
28846 | return NULL; | |
28847 | } | |
28848 | ||
28849 | ||
c370783e | 28850 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28851 | PyObject *resultobj; |
28852 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28853 | wxTreeItemId *arg2 = 0 ; | |
b411df4a | 28854 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28855 | PyObject * obj0 = 0 ; |
28856 | PyObject * obj1 = 0 ; | |
28857 | PyObject * obj2 = 0 ; | |
28858 | char *kwnames[] = { | |
28859 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
28860 | }; | |
28861 | ||
28862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28863 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28864 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28865 | { | |
28866 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28867 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28868 | if (arg2 == NULL) { | |
28869 | SWIG_null_ref("wxTreeItemId"); | |
28870 | } | |
28871 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28872 | } |
28873 | if (obj2) { | |
36ed4f51 RD |
28874 | { |
28875 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
28876 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28877 | } | |
d55e5bfc RD |
28878 | } |
28879 | { | |
28880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28881 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
28882 | ||
28883 | wxPyEndAllowThreads(__tstate); | |
28884 | if (PyErr_Occurred()) SWIG_fail; | |
28885 | } | |
28886 | Py_INCREF(Py_None); resultobj = Py_None; | |
28887 | return resultobj; | |
28888 | fail: | |
28889 | return NULL; | |
28890 | } | |
28891 | ||
28892 | ||
fef4c27a RD |
28893 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
28894 | PyObject *resultobj; | |
28895 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28896 | wxTreeItemId *arg2 = 0 ; | |
28897 | bool arg3 = (bool) true ; | |
28898 | PyObject * obj0 = 0 ; | |
28899 | PyObject * obj1 = 0 ; | |
28900 | PyObject * obj2 = 0 ; | |
28901 | char *kwnames[] = { | |
28902 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
28903 | }; | |
28904 | ||
28905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28908 | { | |
28909 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28910 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28911 | if (arg2 == NULL) { | |
28912 | SWIG_null_ref("wxTreeItemId"); | |
28913 | } | |
28914 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28915 | } | |
28916 | if (obj2) { | |
28917 | { | |
28918 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
28919 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28920 | } | |
28921 | } | |
28922 | { | |
28923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28924 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
28925 | ||
28926 | wxPyEndAllowThreads(__tstate); | |
28927 | if (PyErr_Occurred()) SWIG_fail; | |
28928 | } | |
28929 | Py_INCREF(Py_None); resultobj = Py_None; | |
28930 | return resultobj; | |
28931 | fail: | |
28932 | return NULL; | |
28933 | } | |
28934 | ||
28935 | ||
c370783e | 28936 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28937 | PyObject *resultobj; |
28938 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28939 | wxTreeItemId *arg2 = 0 ; | |
28940 | wxColour *arg3 = 0 ; | |
28941 | wxColour temp3 ; | |
28942 | PyObject * obj0 = 0 ; | |
28943 | PyObject * obj1 = 0 ; | |
28944 | PyObject * obj2 = 0 ; | |
28945 | char *kwnames[] = { | |
28946 | (char *) "self",(char *) "item",(char *) "col", NULL | |
28947 | }; | |
28948 | ||
28949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28952 | { | |
28953 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28954 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28955 | if (arg2 == NULL) { | |
28956 | SWIG_null_ref("wxTreeItemId"); | |
28957 | } | |
28958 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28959 | } |
28960 | { | |
28961 | arg3 = &temp3; | |
28962 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
28963 | } | |
28964 | { | |
28965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28966 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
28967 | ||
28968 | wxPyEndAllowThreads(__tstate); | |
28969 | if (PyErr_Occurred()) SWIG_fail; | |
28970 | } | |
28971 | Py_INCREF(Py_None); resultobj = Py_None; | |
28972 | return resultobj; | |
28973 | fail: | |
28974 | return NULL; | |
28975 | } | |
28976 | ||
28977 | ||
c370783e | 28978 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28979 | PyObject *resultobj; |
28980 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28981 | wxTreeItemId *arg2 = 0 ; | |
28982 | wxColour *arg3 = 0 ; | |
28983 | wxColour temp3 ; | |
28984 | PyObject * obj0 = 0 ; | |
28985 | PyObject * obj1 = 0 ; | |
28986 | PyObject * obj2 = 0 ; | |
28987 | char *kwnames[] = { | |
28988 | (char *) "self",(char *) "item",(char *) "col", NULL | |
28989 | }; | |
28990 | ||
28991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
28992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28994 | { | |
28995 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28997 | if (arg2 == NULL) { | |
28998 | SWIG_null_ref("wxTreeItemId"); | |
28999 | } | |
29000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29001 | } |
29002 | { | |
29003 | arg3 = &temp3; | |
29004 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29005 | } | |
29006 | { | |
29007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29008 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29009 | ||
29010 | wxPyEndAllowThreads(__tstate); | |
29011 | if (PyErr_Occurred()) SWIG_fail; | |
29012 | } | |
29013 | Py_INCREF(Py_None); resultobj = Py_None; | |
29014 | return resultobj; | |
29015 | fail: | |
29016 | return NULL; | |
29017 | } | |
29018 | ||
29019 | ||
c370783e | 29020 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29021 | PyObject *resultobj; |
29022 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29023 | wxTreeItemId *arg2 = 0 ; | |
29024 | wxFont *arg3 = 0 ; | |
29025 | PyObject * obj0 = 0 ; | |
29026 | PyObject * obj1 = 0 ; | |
29027 | PyObject * obj2 = 0 ; | |
29028 | char *kwnames[] = { | |
29029 | (char *) "self",(char *) "item",(char *) "font", NULL | |
29030 | }; | |
29031 | ||
29032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
29033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29035 | { | |
29036 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29038 | if (arg2 == NULL) { | |
29039 | SWIG_null_ref("wxTreeItemId"); | |
29040 | } | |
29041 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 29042 | } |
36ed4f51 RD |
29043 | { |
29044 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
29045 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29046 | if (arg3 == NULL) { | |
29047 | SWIG_null_ref("wxFont"); | |
29048 | } | |
29049 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
29050 | } |
29051 | { | |
29052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29053 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
29054 | ||
29055 | wxPyEndAllowThreads(__tstate); | |
29056 | if (PyErr_Occurred()) SWIG_fail; | |
29057 | } | |
29058 | Py_INCREF(Py_None); resultobj = Py_None; | |
29059 | return resultobj; | |
29060 | fail: | |
29061 | return NULL; | |
29062 | } | |
29063 | ||
29064 | ||
c370783e | 29065 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29066 | PyObject *resultobj; |
29067 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29068 | wxTreeItemId *arg2 = 0 ; | |
29069 | bool result; | |
29070 | PyObject * obj0 = 0 ; | |
29071 | PyObject * obj1 = 0 ; | |
29072 | char *kwnames[] = { | |
29073 | (char *) "self",(char *) "item", NULL | |
29074 | }; | |
29075 | ||
29076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29079 | { | |
29080 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29081 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29082 | if (arg2 == NULL) { | |
29083 | SWIG_null_ref("wxTreeItemId"); | |
29084 | } | |
29085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29086 | } |
29087 | { | |
29088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29089 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
29090 | ||
29091 | wxPyEndAllowThreads(__tstate); | |
29092 | if (PyErr_Occurred()) SWIG_fail; | |
29093 | } | |
29094 | { | |
29095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29096 | } | |
29097 | return resultobj; | |
29098 | fail: | |
29099 | return NULL; | |
29100 | } | |
29101 | ||
29102 | ||
c370783e | 29103 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29104 | PyObject *resultobj; |
29105 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29106 | wxTreeItemId *arg2 = 0 ; | |
29107 | bool result; | |
29108 | PyObject * obj0 = 0 ; | |
29109 | PyObject * obj1 = 0 ; | |
29110 | char *kwnames[] = { | |
29111 | (char *) "self",(char *) "item", NULL | |
29112 | }; | |
29113 | ||
29114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29117 | { | |
29118 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29119 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29120 | if (arg2 == NULL) { | |
29121 | SWIG_null_ref("wxTreeItemId"); | |
29122 | } | |
29123 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29124 | } |
29125 | { | |
29126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29127 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
29128 | ||
29129 | wxPyEndAllowThreads(__tstate); | |
29130 | if (PyErr_Occurred()) SWIG_fail; | |
29131 | } | |
29132 | { | |
29133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29134 | } | |
29135 | return resultobj; | |
29136 | fail: | |
29137 | return NULL; | |
29138 | } | |
29139 | ||
29140 | ||
c370783e | 29141 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29142 | PyObject *resultobj; |
29143 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29144 | wxTreeItemId *arg2 = 0 ; | |
29145 | bool result; | |
29146 | PyObject * obj0 = 0 ; | |
29147 | PyObject * obj1 = 0 ; | |
29148 | char *kwnames[] = { | |
29149 | (char *) "self",(char *) "item", NULL | |
29150 | }; | |
29151 | ||
29152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29155 | { | |
29156 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29157 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29158 | if (arg2 == NULL) { | |
29159 | SWIG_null_ref("wxTreeItemId"); | |
29160 | } | |
29161 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29162 | } |
29163 | { | |
29164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29165 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
29166 | ||
29167 | wxPyEndAllowThreads(__tstate); | |
29168 | if (PyErr_Occurred()) SWIG_fail; | |
29169 | } | |
29170 | { | |
29171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29172 | } | |
29173 | return resultobj; | |
29174 | fail: | |
29175 | return NULL; | |
29176 | } | |
29177 | ||
29178 | ||
c370783e | 29179 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29180 | PyObject *resultobj; |
29181 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29182 | wxTreeItemId *arg2 = 0 ; | |
29183 | bool result; | |
29184 | PyObject * obj0 = 0 ; | |
29185 | PyObject * obj1 = 0 ; | |
29186 | char *kwnames[] = { | |
29187 | (char *) "self",(char *) "item", NULL | |
29188 | }; | |
29189 | ||
29190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29193 | { | |
29194 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29195 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29196 | if (arg2 == NULL) { | |
29197 | SWIG_null_ref("wxTreeItemId"); | |
29198 | } | |
29199 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29200 | } |
29201 | { | |
29202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29203 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
29204 | ||
29205 | wxPyEndAllowThreads(__tstate); | |
29206 | if (PyErr_Occurred()) SWIG_fail; | |
29207 | } | |
29208 | { | |
29209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29210 | } | |
29211 | return resultobj; | |
29212 | fail: | |
29213 | return NULL; | |
29214 | } | |
29215 | ||
29216 | ||
c370783e | 29217 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29218 | PyObject *resultobj; |
29219 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29220 | wxTreeItemId *arg2 = 0 ; | |
29221 | bool result; | |
29222 | PyObject * obj0 = 0 ; | |
29223 | PyObject * obj1 = 0 ; | |
29224 | char *kwnames[] = { | |
29225 | (char *) "self",(char *) "item", NULL | |
29226 | }; | |
29227 | ||
29228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29231 | { | |
29232 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29233 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29234 | if (arg2 == NULL) { | |
29235 | SWIG_null_ref("wxTreeItemId"); | |
29236 | } | |
29237 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29238 | } |
29239 | { | |
29240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29241 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
29242 | ||
29243 | wxPyEndAllowThreads(__tstate); | |
29244 | if (PyErr_Occurred()) SWIG_fail; | |
29245 | } | |
29246 | { | |
29247 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29248 | } | |
29249 | return resultobj; | |
29250 | fail: | |
29251 | return NULL; | |
29252 | } | |
29253 | ||
29254 | ||
c370783e | 29255 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29256 | PyObject *resultobj; |
29257 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29258 | wxTreeItemId *arg2 = 0 ; | |
b411df4a | 29259 | bool arg3 = (bool) true ; |
d55e5bfc RD |
29260 | size_t result; |
29261 | PyObject * obj0 = 0 ; | |
29262 | PyObject * obj1 = 0 ; | |
29263 | PyObject * obj2 = 0 ; | |
29264 | char *kwnames[] = { | |
29265 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
29266 | }; | |
29267 | ||
29268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
29269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29271 | { | |
29272 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29274 | if (arg2 == NULL) { | |
29275 | SWIG_null_ref("wxTreeItemId"); | |
29276 | } | |
29277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29278 | } |
29279 | if (obj2) { | |
36ed4f51 RD |
29280 | { |
29281 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29282 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29283 | } | |
d55e5bfc RD |
29284 | } |
29285 | { | |
29286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29287 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
29288 | ||
29289 | wxPyEndAllowThreads(__tstate); | |
29290 | if (PyErr_Occurred()) SWIG_fail; | |
29291 | } | |
36ed4f51 RD |
29292 | { |
29293 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
29294 | } | |
d55e5bfc RD |
29295 | return resultobj; |
29296 | fail: | |
29297 | return NULL; | |
29298 | } | |
29299 | ||
29300 | ||
c370783e | 29301 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29302 | PyObject *resultobj; |
29303 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29304 | wxTreeItemId result; | |
29305 | PyObject * obj0 = 0 ; | |
29306 | char *kwnames[] = { | |
29307 | (char *) "self", NULL | |
29308 | }; | |
29309 | ||
29310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29313 | { |
29314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29315 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
29316 | ||
29317 | wxPyEndAllowThreads(__tstate); | |
29318 | if (PyErr_Occurred()) SWIG_fail; | |
29319 | } | |
29320 | { | |
29321 | wxTreeItemId * resultptr; | |
36ed4f51 | 29322 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29323 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29324 | } | |
29325 | return resultobj; | |
29326 | fail: | |
29327 | return NULL; | |
29328 | } | |
29329 | ||
29330 | ||
c370783e | 29331 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29332 | PyObject *resultobj; |
29333 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29334 | wxTreeItemId result; | |
29335 | PyObject * obj0 = 0 ; | |
29336 | char *kwnames[] = { | |
29337 | (char *) "self", NULL | |
29338 | }; | |
29339 | ||
29340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29343 | { |
29344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29345 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
29346 | ||
29347 | wxPyEndAllowThreads(__tstate); | |
29348 | if (PyErr_Occurred()) SWIG_fail; | |
29349 | } | |
29350 | { | |
29351 | wxTreeItemId * resultptr; | |
36ed4f51 | 29352 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29353 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29354 | } | |
29355 | return resultobj; | |
29356 | fail: | |
29357 | return NULL; | |
29358 | } | |
29359 | ||
29360 | ||
c370783e | 29361 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29362 | PyObject *resultobj; |
29363 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29364 | PyObject *result; | |
29365 | PyObject * obj0 = 0 ; | |
29366 | char *kwnames[] = { | |
29367 | (char *) "self", NULL | |
29368 | }; | |
29369 | ||
29370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29373 | { |
29374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29375 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
29376 | ||
29377 | wxPyEndAllowThreads(__tstate); | |
29378 | if (PyErr_Occurred()) SWIG_fail; | |
29379 | } | |
29380 | resultobj = result; | |
29381 | return resultobj; | |
29382 | fail: | |
29383 | return NULL; | |
29384 | } | |
29385 | ||
29386 | ||
c370783e | 29387 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29388 | PyObject *resultobj; |
29389 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29390 | wxTreeItemId *arg2 = 0 ; | |
29391 | wxTreeItemId result; | |
29392 | PyObject * obj0 = 0 ; | |
29393 | PyObject * obj1 = 0 ; | |
29394 | char *kwnames[] = { | |
29395 | (char *) "self",(char *) "item", NULL | |
29396 | }; | |
29397 | ||
29398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29401 | { | |
29402 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29403 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29404 | if (arg2 == NULL) { | |
29405 | SWIG_null_ref("wxTreeItemId"); | |
29406 | } | |
29407 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29408 | } |
29409 | { | |
29410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29411 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
29412 | ||
29413 | wxPyEndAllowThreads(__tstate); | |
29414 | if (PyErr_Occurred()) SWIG_fail; | |
29415 | } | |
29416 | { | |
29417 | wxTreeItemId * resultptr; | |
36ed4f51 | 29418 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29420 | } | |
29421 | return resultobj; | |
29422 | fail: | |
29423 | return NULL; | |
29424 | } | |
29425 | ||
29426 | ||
c370783e | 29427 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29428 | PyObject *resultobj; |
29429 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29430 | wxTreeItemId *arg2 = 0 ; | |
29431 | PyObject *result; | |
29432 | PyObject * obj0 = 0 ; | |
29433 | PyObject * obj1 = 0 ; | |
29434 | char *kwnames[] = { | |
29435 | (char *) "self",(char *) "item", NULL | |
29436 | }; | |
29437 | ||
29438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29441 | { | |
29442 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29443 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29444 | if (arg2 == NULL) { | |
29445 | SWIG_null_ref("wxTreeItemId"); | |
29446 | } | |
29447 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29448 | } |
29449 | { | |
29450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29451 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
29452 | ||
29453 | wxPyEndAllowThreads(__tstate); | |
29454 | if (PyErr_Occurred()) SWIG_fail; | |
29455 | } | |
29456 | resultobj = result; | |
29457 | return resultobj; | |
29458 | fail: | |
29459 | return NULL; | |
29460 | } | |
29461 | ||
29462 | ||
c370783e | 29463 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29464 | PyObject *resultobj; |
29465 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29466 | wxTreeItemId *arg2 = 0 ; | |
29467 | void *arg3 = (void *) 0 ; | |
29468 | PyObject *result; | |
29469 | PyObject * obj0 = 0 ; | |
29470 | PyObject * obj1 = 0 ; | |
29471 | PyObject * obj2 = 0 ; | |
29472 | char *kwnames[] = { | |
29473 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
29474 | }; | |
29475 | ||
29476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
29477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29479 | { | |
29480 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29481 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29482 | if (arg2 == NULL) { | |
29483 | SWIG_null_ref("wxTreeItemId"); | |
29484 | } | |
29485 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29486 | } | |
29487 | { | |
29488 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),0,SWIG_POINTER_EXCEPTION|0))== -1) { | |
29489 | SWIG_arg_fail(3);SWIG_fail; | |
29490 | } | |
d55e5bfc | 29491 | } |
d55e5bfc RD |
29492 | { |
29493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29494 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
29495 | ||
29496 | wxPyEndAllowThreads(__tstate); | |
29497 | if (PyErr_Occurred()) SWIG_fail; | |
29498 | } | |
29499 | resultobj = result; | |
29500 | return resultobj; | |
29501 | fail: | |
29502 | return NULL; | |
29503 | } | |
29504 | ||
29505 | ||
c370783e | 29506 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29507 | PyObject *resultobj; |
29508 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29509 | wxTreeItemId *arg2 = 0 ; | |
29510 | wxTreeItemId result; | |
29511 | PyObject * obj0 = 0 ; | |
29512 | PyObject * obj1 = 0 ; | |
29513 | char *kwnames[] = { | |
29514 | (char *) "self",(char *) "item", NULL | |
29515 | }; | |
29516 | ||
29517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29520 | { | |
29521 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29522 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29523 | if (arg2 == NULL) { | |
29524 | SWIG_null_ref("wxTreeItemId"); | |
29525 | } | |
29526 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29527 | } |
29528 | { | |
29529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29530 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
29531 | ||
29532 | wxPyEndAllowThreads(__tstate); | |
29533 | if (PyErr_Occurred()) SWIG_fail; | |
29534 | } | |
29535 | { | |
29536 | wxTreeItemId * resultptr; | |
36ed4f51 | 29537 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29538 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29539 | } | |
29540 | return resultobj; | |
29541 | fail: | |
29542 | return NULL; | |
29543 | } | |
29544 | ||
29545 | ||
c370783e | 29546 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29547 | PyObject *resultobj; |
29548 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29549 | wxTreeItemId *arg2 = 0 ; | |
29550 | wxTreeItemId result; | |
29551 | PyObject * obj0 = 0 ; | |
29552 | PyObject * obj1 = 0 ; | |
29553 | char *kwnames[] = { | |
29554 | (char *) "self",(char *) "item", NULL | |
29555 | }; | |
29556 | ||
29557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29560 | { | |
29561 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29563 | if (arg2 == NULL) { | |
29564 | SWIG_null_ref("wxTreeItemId"); | |
29565 | } | |
29566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29567 | } |
29568 | { | |
29569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29570 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
29571 | ||
29572 | wxPyEndAllowThreads(__tstate); | |
29573 | if (PyErr_Occurred()) SWIG_fail; | |
29574 | } | |
29575 | { | |
29576 | wxTreeItemId * resultptr; | |
36ed4f51 | 29577 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29578 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29579 | } | |
29580 | return resultobj; | |
29581 | fail: | |
29582 | return NULL; | |
29583 | } | |
29584 | ||
29585 | ||
c370783e | 29586 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29587 | PyObject *resultobj; |
29588 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29589 | wxTreeItemId *arg2 = 0 ; | |
29590 | wxTreeItemId result; | |
29591 | PyObject * obj0 = 0 ; | |
29592 | PyObject * obj1 = 0 ; | |
29593 | char *kwnames[] = { | |
29594 | (char *) "self",(char *) "item", NULL | |
29595 | }; | |
29596 | ||
29597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29600 | { | |
29601 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29602 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29603 | if (arg2 == NULL) { | |
29604 | SWIG_null_ref("wxTreeItemId"); | |
29605 | } | |
29606 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29607 | } |
29608 | { | |
29609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29610 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
29611 | ||
29612 | wxPyEndAllowThreads(__tstate); | |
29613 | if (PyErr_Occurred()) SWIG_fail; | |
29614 | } | |
29615 | { | |
29616 | wxTreeItemId * resultptr; | |
36ed4f51 | 29617 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29619 | } | |
29620 | return resultobj; | |
29621 | fail: | |
29622 | return NULL; | |
29623 | } | |
29624 | ||
29625 | ||
c370783e | 29626 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29627 | PyObject *resultobj; |
29628 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29629 | wxTreeItemId result; | |
29630 | PyObject * obj0 = 0 ; | |
29631 | char *kwnames[] = { | |
29632 | (char *) "self", NULL | |
29633 | }; | |
29634 | ||
29635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
29636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29638 | { |
29639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29640 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
29641 | ||
29642 | wxPyEndAllowThreads(__tstate); | |
29643 | if (PyErr_Occurred()) SWIG_fail; | |
29644 | } | |
29645 | { | |
29646 | wxTreeItemId * resultptr; | |
36ed4f51 | 29647 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29648 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29649 | } | |
29650 | return resultobj; | |
29651 | fail: | |
29652 | return NULL; | |
29653 | } | |
29654 | ||
29655 | ||
c370783e | 29656 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29657 | PyObject *resultobj; |
29658 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29659 | wxTreeItemId *arg2 = 0 ; | |
29660 | wxTreeItemId result; | |
29661 | PyObject * obj0 = 0 ; | |
29662 | PyObject * obj1 = 0 ; | |
29663 | char *kwnames[] = { | |
29664 | (char *) "self",(char *) "item", NULL | |
29665 | }; | |
29666 | ||
29667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29670 | { | |
29671 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29672 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29673 | if (arg2 == NULL) { | |
29674 | SWIG_null_ref("wxTreeItemId"); | |
29675 | } | |
29676 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29677 | } |
29678 | { | |
29679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29680 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
29681 | ||
29682 | wxPyEndAllowThreads(__tstate); | |
29683 | if (PyErr_Occurred()) SWIG_fail; | |
29684 | } | |
29685 | { | |
29686 | wxTreeItemId * resultptr; | |
36ed4f51 | 29687 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29688 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29689 | } | |
29690 | return resultobj; | |
29691 | fail: | |
29692 | return NULL; | |
29693 | } | |
29694 | ||
29695 | ||
c370783e | 29696 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29697 | PyObject *resultobj; |
29698 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29699 | wxTreeItemId *arg2 = 0 ; | |
29700 | wxTreeItemId result; | |
29701 | PyObject * obj0 = 0 ; | |
29702 | PyObject * obj1 = 0 ; | |
29703 | char *kwnames[] = { | |
29704 | (char *) "self",(char *) "item", NULL | |
29705 | }; | |
29706 | ||
29707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
29708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29710 | { | |
29711 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29712 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29713 | if (arg2 == NULL) { | |
29714 | SWIG_null_ref("wxTreeItemId"); | |
29715 | } | |
29716 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29717 | } |
29718 | { | |
29719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29720 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
29721 | ||
29722 | wxPyEndAllowThreads(__tstate); | |
29723 | if (PyErr_Occurred()) SWIG_fail; | |
29724 | } | |
29725 | { | |
29726 | wxTreeItemId * resultptr; | |
36ed4f51 | 29727 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29729 | } | |
29730 | return resultobj; | |
29731 | fail: | |
29732 | return NULL; | |
29733 | } | |
29734 | ||
29735 | ||
c370783e | 29736 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29737 | PyObject *resultobj; |
29738 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29739 | wxString *arg2 = 0 ; | |
29740 | int arg3 = (int) -1 ; | |
29741 | int arg4 = (int) -1 ; | |
29742 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
29743 | wxTreeItemId result; | |
b411df4a | 29744 | bool temp2 = false ; |
d55e5bfc RD |
29745 | PyObject * obj0 = 0 ; |
29746 | PyObject * obj1 = 0 ; | |
29747 | PyObject * obj2 = 0 ; | |
29748 | PyObject * obj3 = 0 ; | |
29749 | PyObject * obj4 = 0 ; | |
29750 | char *kwnames[] = { | |
29751 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29752 | }; | |
29753 | ||
29754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
29755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29757 | { |
29758 | arg2 = wxString_in_helper(obj1); | |
29759 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 29760 | temp2 = true; |
d55e5bfc RD |
29761 | } |
29762 | if (obj2) { | |
36ed4f51 RD |
29763 | { |
29764 | arg3 = (int)(SWIG_As_int(obj2)); | |
29765 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29766 | } | |
d55e5bfc RD |
29767 | } |
29768 | if (obj3) { | |
36ed4f51 RD |
29769 | { |
29770 | arg4 = (int)(SWIG_As_int(obj3)); | |
29771 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29772 | } | |
d55e5bfc RD |
29773 | } |
29774 | if (obj4) { | |
36ed4f51 RD |
29775 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
29776 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
29777 | } |
29778 | { | |
29779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29780 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
29781 | ||
29782 | wxPyEndAllowThreads(__tstate); | |
29783 | if (PyErr_Occurred()) SWIG_fail; | |
29784 | } | |
29785 | { | |
29786 | wxTreeItemId * resultptr; | |
36ed4f51 | 29787 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29788 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29789 | } | |
29790 | { | |
29791 | if (temp2) | |
29792 | delete arg2; | |
29793 | } | |
29794 | return resultobj; | |
29795 | fail: | |
29796 | { | |
29797 | if (temp2) | |
29798 | delete arg2; | |
29799 | } | |
29800 | return NULL; | |
29801 | } | |
29802 | ||
29803 | ||
c370783e | 29804 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29805 | PyObject *resultobj; |
29806 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29807 | wxTreeItemId *arg2 = 0 ; | |
29808 | wxString *arg3 = 0 ; | |
29809 | int arg4 = (int) -1 ; | |
29810 | int arg5 = (int) -1 ; | |
29811 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
29812 | wxTreeItemId result; | |
b411df4a | 29813 | bool temp3 = false ; |
d55e5bfc RD |
29814 | PyObject * obj0 = 0 ; |
29815 | PyObject * obj1 = 0 ; | |
29816 | PyObject * obj2 = 0 ; | |
29817 | PyObject * obj3 = 0 ; | |
29818 | PyObject * obj4 = 0 ; | |
29819 | PyObject * obj5 = 0 ; | |
29820 | char *kwnames[] = { | |
29821 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29822 | }; | |
29823 | ||
29824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
29825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29827 | { | |
29828 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29829 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29830 | if (arg2 == NULL) { | |
29831 | SWIG_null_ref("wxTreeItemId"); | |
29832 | } | |
29833 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29834 | } |
29835 | { | |
29836 | arg3 = wxString_in_helper(obj2); | |
29837 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29838 | temp3 = true; |
d55e5bfc RD |
29839 | } |
29840 | if (obj3) { | |
36ed4f51 RD |
29841 | { |
29842 | arg4 = (int)(SWIG_As_int(obj3)); | |
29843 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29844 | } | |
d55e5bfc RD |
29845 | } |
29846 | if (obj4) { | |
36ed4f51 RD |
29847 | { |
29848 | arg5 = (int)(SWIG_As_int(obj4)); | |
29849 | if (SWIG_arg_fail(5)) SWIG_fail; | |
29850 | } | |
d55e5bfc RD |
29851 | } |
29852 | if (obj5) { | |
36ed4f51 RD |
29853 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
29854 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
29855 | } |
29856 | { | |
29857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29858 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
29859 | ||
29860 | wxPyEndAllowThreads(__tstate); | |
29861 | if (PyErr_Occurred()) SWIG_fail; | |
29862 | } | |
29863 | { | |
29864 | wxTreeItemId * resultptr; | |
36ed4f51 | 29865 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29867 | } | |
29868 | { | |
29869 | if (temp3) | |
29870 | delete arg3; | |
29871 | } | |
29872 | return resultobj; | |
29873 | fail: | |
29874 | { | |
29875 | if (temp3) | |
29876 | delete arg3; | |
29877 | } | |
29878 | return NULL; | |
29879 | } | |
29880 | ||
29881 | ||
c370783e | 29882 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29883 | PyObject *resultobj; |
29884 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29885 | wxTreeItemId *arg2 = 0 ; | |
29886 | wxTreeItemId *arg3 = 0 ; | |
29887 | wxString *arg4 = 0 ; | |
29888 | int arg5 = (int) -1 ; | |
29889 | int arg6 = (int) -1 ; | |
29890 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
29891 | wxTreeItemId result; | |
b411df4a | 29892 | bool temp4 = false ; |
d55e5bfc RD |
29893 | PyObject * obj0 = 0 ; |
29894 | PyObject * obj1 = 0 ; | |
29895 | PyObject * obj2 = 0 ; | |
29896 | PyObject * obj3 = 0 ; | |
29897 | PyObject * obj4 = 0 ; | |
29898 | PyObject * obj5 = 0 ; | |
29899 | PyObject * obj6 = 0 ; | |
29900 | char *kwnames[] = { | |
29901 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29902 | }; | |
29903 | ||
29904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
29905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29907 | { | |
29908 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29909 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29910 | if (arg2 == NULL) { | |
29911 | SWIG_null_ref("wxTreeItemId"); | |
29912 | } | |
29913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29914 | } | |
29915 | { | |
29916 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29917 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29918 | if (arg3 == NULL) { | |
29919 | SWIG_null_ref("wxTreeItemId"); | |
29920 | } | |
29921 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
29922 | } |
29923 | { | |
29924 | arg4 = wxString_in_helper(obj3); | |
29925 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29926 | temp4 = true; |
d55e5bfc RD |
29927 | } |
29928 | if (obj4) { | |
36ed4f51 RD |
29929 | { |
29930 | arg5 = (int)(SWIG_As_int(obj4)); | |
29931 | if (SWIG_arg_fail(5)) SWIG_fail; | |
29932 | } | |
d55e5bfc RD |
29933 | } |
29934 | if (obj5) { | |
36ed4f51 RD |
29935 | { |
29936 | arg6 = (int)(SWIG_As_int(obj5)); | |
29937 | if (SWIG_arg_fail(6)) SWIG_fail; | |
29938 | } | |
d55e5bfc RD |
29939 | } |
29940 | if (obj6) { | |
36ed4f51 RD |
29941 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
29942 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
29943 | } |
29944 | { | |
29945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29946 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
29947 | ||
29948 | wxPyEndAllowThreads(__tstate); | |
29949 | if (PyErr_Occurred()) SWIG_fail; | |
29950 | } | |
29951 | { | |
29952 | wxTreeItemId * resultptr; | |
36ed4f51 | 29953 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29954 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29955 | } | |
29956 | { | |
29957 | if (temp4) | |
29958 | delete arg4; | |
29959 | } | |
29960 | return resultobj; | |
29961 | fail: | |
29962 | { | |
29963 | if (temp4) | |
29964 | delete arg4; | |
29965 | } | |
29966 | return NULL; | |
29967 | } | |
29968 | ||
29969 | ||
c370783e | 29970 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29971 | PyObject *resultobj; |
29972 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29973 | wxTreeItemId *arg2 = 0 ; | |
29974 | size_t arg3 ; | |
29975 | wxString *arg4 = 0 ; | |
29976 | int arg5 = (int) -1 ; | |
29977 | int arg6 = (int) -1 ; | |
29978 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
29979 | wxTreeItemId result; | |
b411df4a | 29980 | bool temp4 = false ; |
d55e5bfc RD |
29981 | PyObject * obj0 = 0 ; |
29982 | PyObject * obj1 = 0 ; | |
29983 | PyObject * obj2 = 0 ; | |
29984 | PyObject * obj3 = 0 ; | |
29985 | PyObject * obj4 = 0 ; | |
29986 | PyObject * obj5 = 0 ; | |
29987 | PyObject * obj6 = 0 ; | |
29988 | char *kwnames[] = { | |
29989 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29990 | }; | |
29991 | ||
29992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
36ed4f51 RD |
29993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29995 | { | |
29996 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29997 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29998 | if (arg2 == NULL) { | |
29999 | SWIG_null_ref("wxTreeItemId"); | |
30000 | } | |
30001 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30002 | } | |
30003 | { | |
30004 | arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2)); | |
30005 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30006 | } | |
d55e5bfc RD |
30007 | { |
30008 | arg4 = wxString_in_helper(obj3); | |
30009 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30010 | temp4 = true; |
d55e5bfc RD |
30011 | } |
30012 | if (obj4) { | |
36ed4f51 RD |
30013 | { |
30014 | arg5 = (int)(SWIG_As_int(obj4)); | |
30015 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30016 | } | |
d55e5bfc RD |
30017 | } |
30018 | if (obj5) { | |
36ed4f51 RD |
30019 | { |
30020 | arg6 = (int)(SWIG_As_int(obj5)); | |
30021 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30022 | } | |
d55e5bfc RD |
30023 | } |
30024 | if (obj6) { | |
36ed4f51 RD |
30025 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30026 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
30027 | } |
30028 | { | |
30029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30030 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30031 | ||
30032 | wxPyEndAllowThreads(__tstate); | |
30033 | if (PyErr_Occurred()) SWIG_fail; | |
30034 | } | |
30035 | { | |
30036 | wxTreeItemId * resultptr; | |
36ed4f51 | 30037 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
30038 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
30039 | } | |
30040 | { | |
30041 | if (temp4) | |
30042 | delete arg4; | |
30043 | } | |
30044 | return resultobj; | |
30045 | fail: | |
30046 | { | |
30047 | if (temp4) | |
30048 | delete arg4; | |
30049 | } | |
30050 | return NULL; | |
30051 | } | |
30052 | ||
30053 | ||
c370783e | 30054 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30055 | PyObject *resultobj; |
30056 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30057 | wxTreeItemId *arg2 = 0 ; | |
30058 | wxString *arg3 = 0 ; | |
30059 | int arg4 = (int) -1 ; | |
30060 | int arg5 = (int) -1 ; | |
30061 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
30062 | wxTreeItemId result; | |
b411df4a | 30063 | bool temp3 = false ; |
d55e5bfc RD |
30064 | PyObject * obj0 = 0 ; |
30065 | PyObject * obj1 = 0 ; | |
30066 | PyObject * obj2 = 0 ; | |
30067 | PyObject * obj3 = 0 ; | |
30068 | PyObject * obj4 = 0 ; | |
30069 | PyObject * obj5 = 0 ; | |
30070 | char *kwnames[] = { | |
30071 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30072 | }; | |
30073 | ||
30074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
30075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30077 | { | |
30078 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30080 | if (arg2 == NULL) { | |
30081 | SWIG_null_ref("wxTreeItemId"); | |
30082 | } | |
30083 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30084 | } |
30085 | { | |
30086 | arg3 = wxString_in_helper(obj2); | |
30087 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30088 | temp3 = true; |
d55e5bfc RD |
30089 | } |
30090 | if (obj3) { | |
36ed4f51 RD |
30091 | { |
30092 | arg4 = (int)(SWIG_As_int(obj3)); | |
30093 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30094 | } | |
d55e5bfc RD |
30095 | } |
30096 | if (obj4) { | |
36ed4f51 RD |
30097 | { |
30098 | arg5 = (int)(SWIG_As_int(obj4)); | |
30099 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30100 | } | |
d55e5bfc RD |
30101 | } |
30102 | if (obj5) { | |
36ed4f51 RD |
30103 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30104 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
30105 | } |
30106 | { | |
30107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30108 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30109 | ||
30110 | wxPyEndAllowThreads(__tstate); | |
30111 | if (PyErr_Occurred()) SWIG_fail; | |
30112 | } | |
30113 | { | |
30114 | wxTreeItemId * resultptr; | |
36ed4f51 | 30115 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
30116 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
30117 | } | |
30118 | { | |
30119 | if (temp3) | |
30120 | delete arg3; | |
30121 | } | |
30122 | return resultobj; | |
30123 | fail: | |
30124 | { | |
30125 | if (temp3) | |
30126 | delete arg3; | |
30127 | } | |
30128 | return NULL; | |
30129 | } | |
30130 | ||
30131 | ||
c370783e | 30132 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30133 | PyObject *resultobj; |
30134 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30135 | wxTreeItemId *arg2 = 0 ; | |
30136 | PyObject * obj0 = 0 ; | |
30137 | PyObject * obj1 = 0 ; | |
30138 | char *kwnames[] = { | |
30139 | (char *) "self",(char *) "item", NULL | |
30140 | }; | |
30141 | ||
30142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30145 | { | |
30146 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30148 | if (arg2 == NULL) { | |
30149 | SWIG_null_ref("wxTreeItemId"); | |
30150 | } | |
30151 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30152 | } |
30153 | { | |
30154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30155 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
30156 | ||
30157 | wxPyEndAllowThreads(__tstate); | |
30158 | if (PyErr_Occurred()) SWIG_fail; | |
30159 | } | |
30160 | Py_INCREF(Py_None); resultobj = Py_None; | |
30161 | return resultobj; | |
30162 | fail: | |
30163 | return NULL; | |
30164 | } | |
30165 | ||
30166 | ||
c370783e | 30167 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30168 | PyObject *resultobj; |
30169 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30170 | wxTreeItemId *arg2 = 0 ; | |
30171 | PyObject * obj0 = 0 ; | |
30172 | PyObject * obj1 = 0 ; | |
30173 | char *kwnames[] = { | |
30174 | (char *) "self",(char *) "item", NULL | |
30175 | }; | |
30176 | ||
30177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30180 | { | |
30181 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30182 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30183 | if (arg2 == NULL) { | |
30184 | SWIG_null_ref("wxTreeItemId"); | |
30185 | } | |
30186 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30187 | } |
30188 | { | |
30189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30190 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
30191 | ||
30192 | wxPyEndAllowThreads(__tstate); | |
30193 | if (PyErr_Occurred()) SWIG_fail; | |
30194 | } | |
30195 | Py_INCREF(Py_None); resultobj = Py_None; | |
30196 | return resultobj; | |
30197 | fail: | |
30198 | return NULL; | |
30199 | } | |
30200 | ||
30201 | ||
c370783e | 30202 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30203 | PyObject *resultobj; |
30204 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30205 | PyObject * obj0 = 0 ; | |
30206 | char *kwnames[] = { | |
30207 | (char *) "self", NULL | |
30208 | }; | |
30209 | ||
30210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30213 | { |
30214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30215 | (arg1)->DeleteAllItems(); | |
30216 | ||
30217 | wxPyEndAllowThreads(__tstate); | |
30218 | if (PyErr_Occurred()) SWIG_fail; | |
30219 | } | |
30220 | Py_INCREF(Py_None); resultobj = Py_None; | |
30221 | return resultobj; | |
30222 | fail: | |
30223 | return NULL; | |
30224 | } | |
30225 | ||
30226 | ||
c370783e | 30227 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30228 | PyObject *resultobj; |
30229 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30230 | wxTreeItemId *arg2 = 0 ; | |
30231 | PyObject * obj0 = 0 ; | |
30232 | PyObject * obj1 = 0 ; | |
30233 | char *kwnames[] = { | |
30234 | (char *) "self",(char *) "item", NULL | |
30235 | }; | |
30236 | ||
30237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30240 | { | |
30241 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30243 | if (arg2 == NULL) { | |
30244 | SWIG_null_ref("wxTreeItemId"); | |
30245 | } | |
30246 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30247 | } |
30248 | { | |
30249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30250 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
30251 | ||
30252 | wxPyEndAllowThreads(__tstate); | |
30253 | if (PyErr_Occurred()) SWIG_fail; | |
30254 | } | |
30255 | Py_INCREF(Py_None); resultobj = Py_None; | |
30256 | return resultobj; | |
30257 | fail: | |
30258 | return NULL; | |
30259 | } | |
30260 | ||
30261 | ||
c370783e | 30262 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30263 | PyObject *resultobj; |
30264 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30265 | wxTreeItemId *arg2 = 0 ; | |
30266 | PyObject * obj0 = 0 ; | |
30267 | PyObject * obj1 = 0 ; | |
30268 | char *kwnames[] = { | |
30269 | (char *) "self",(char *) "item", NULL | |
30270 | }; | |
30271 | ||
30272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30275 | { | |
30276 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30278 | if (arg2 == NULL) { | |
30279 | SWIG_null_ref("wxTreeItemId"); | |
30280 | } | |
30281 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30282 | } |
30283 | { | |
30284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30285 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
30286 | ||
30287 | wxPyEndAllowThreads(__tstate); | |
30288 | if (PyErr_Occurred()) SWIG_fail; | |
30289 | } | |
30290 | Py_INCREF(Py_None); resultobj = Py_None; | |
30291 | return resultobj; | |
30292 | fail: | |
30293 | return NULL; | |
30294 | } | |
30295 | ||
30296 | ||
c370783e | 30297 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30298 | PyObject *resultobj; |
30299 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30300 | wxTreeItemId *arg2 = 0 ; | |
30301 | PyObject * obj0 = 0 ; | |
30302 | PyObject * obj1 = 0 ; | |
30303 | char *kwnames[] = { | |
30304 | (char *) "self",(char *) "item", NULL | |
30305 | }; | |
30306 | ||
30307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30310 | { | |
30311 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30312 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30313 | if (arg2 == NULL) { | |
30314 | SWIG_null_ref("wxTreeItemId"); | |
30315 | } | |
30316 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30317 | } |
30318 | { | |
30319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30320 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
30321 | ||
30322 | wxPyEndAllowThreads(__tstate); | |
30323 | if (PyErr_Occurred()) SWIG_fail; | |
30324 | } | |
30325 | Py_INCREF(Py_None); resultobj = Py_None; | |
30326 | return resultobj; | |
30327 | fail: | |
30328 | return NULL; | |
30329 | } | |
30330 | ||
30331 | ||
c370783e | 30332 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30333 | PyObject *resultobj; |
30334 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30335 | wxTreeItemId *arg2 = 0 ; | |
30336 | PyObject * obj0 = 0 ; | |
30337 | PyObject * obj1 = 0 ; | |
30338 | char *kwnames[] = { | |
30339 | (char *) "self",(char *) "item", NULL | |
30340 | }; | |
30341 | ||
30342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30345 | { | |
30346 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30347 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30348 | if (arg2 == NULL) { | |
30349 | SWIG_null_ref("wxTreeItemId"); | |
30350 | } | |
30351 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30352 | } |
30353 | { | |
30354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30355 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
30356 | ||
30357 | wxPyEndAllowThreads(__tstate); | |
30358 | if (PyErr_Occurred()) SWIG_fail; | |
30359 | } | |
30360 | Py_INCREF(Py_None); resultobj = Py_None; | |
30361 | return resultobj; | |
30362 | fail: | |
30363 | return NULL; | |
30364 | } | |
30365 | ||
30366 | ||
c370783e | 30367 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30368 | PyObject *resultobj; |
30369 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30370 | PyObject * obj0 = 0 ; | |
30371 | char *kwnames[] = { | |
30372 | (char *) "self", NULL | |
30373 | }; | |
30374 | ||
30375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30378 | { |
30379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30380 | (arg1)->Unselect(); | |
30381 | ||
30382 | wxPyEndAllowThreads(__tstate); | |
30383 | if (PyErr_Occurred()) SWIG_fail; | |
30384 | } | |
30385 | Py_INCREF(Py_None); resultobj = Py_None; | |
30386 | return resultobj; | |
30387 | fail: | |
30388 | return NULL; | |
30389 | } | |
30390 | ||
30391 | ||
c370783e | 30392 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30393 | PyObject *resultobj; |
30394 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30395 | wxTreeItemId *arg2 = 0 ; | |
30396 | PyObject * obj0 = 0 ; | |
30397 | PyObject * obj1 = 0 ; | |
30398 | char *kwnames[] = { | |
30399 | (char *) "self",(char *) "item", NULL | |
30400 | }; | |
30401 | ||
30402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30405 | { | |
30406 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30407 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30408 | if (arg2 == NULL) { | |
30409 | SWIG_null_ref("wxTreeItemId"); | |
30410 | } | |
30411 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30412 | } |
30413 | { | |
30414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30415 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
30416 | ||
30417 | wxPyEndAllowThreads(__tstate); | |
30418 | if (PyErr_Occurred()) SWIG_fail; | |
30419 | } | |
30420 | Py_INCREF(Py_None); resultobj = Py_None; | |
30421 | return resultobj; | |
30422 | fail: | |
30423 | return NULL; | |
30424 | } | |
30425 | ||
30426 | ||
c370783e | 30427 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30428 | PyObject *resultobj; |
30429 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30430 | PyObject * obj0 = 0 ; | |
30431 | char *kwnames[] = { | |
30432 | (char *) "self", NULL | |
30433 | }; | |
30434 | ||
30435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30438 | { |
30439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30440 | (arg1)->UnselectAll(); | |
30441 | ||
30442 | wxPyEndAllowThreads(__tstate); | |
30443 | if (PyErr_Occurred()) SWIG_fail; | |
30444 | } | |
30445 | Py_INCREF(Py_None); resultobj = Py_None; | |
30446 | return resultobj; | |
30447 | fail: | |
30448 | return NULL; | |
30449 | } | |
30450 | ||
30451 | ||
c370783e | 30452 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30453 | PyObject *resultobj; |
30454 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30455 | wxTreeItemId *arg2 = 0 ; | |
b411df4a | 30456 | bool arg3 = (bool) true ; |
d55e5bfc RD |
30457 | PyObject * obj0 = 0 ; |
30458 | PyObject * obj1 = 0 ; | |
30459 | PyObject * obj2 = 0 ; | |
30460 | char *kwnames[] = { | |
30461 | (char *) "self",(char *) "item",(char *) "select", NULL | |
30462 | }; | |
30463 | ||
30464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
30465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30467 | { | |
30468 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30469 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30470 | if (arg2 == NULL) { | |
30471 | SWIG_null_ref("wxTreeItemId"); | |
30472 | } | |
30473 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30474 | } |
30475 | if (obj2) { | |
36ed4f51 RD |
30476 | { |
30477 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30478 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30479 | } | |
d55e5bfc RD |
30480 | } |
30481 | { | |
30482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30483 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
30484 | ||
30485 | wxPyEndAllowThreads(__tstate); | |
30486 | if (PyErr_Occurred()) SWIG_fail; | |
30487 | } | |
30488 | Py_INCREF(Py_None); resultobj = Py_None; | |
30489 | return resultobj; | |
30490 | fail: | |
30491 | return NULL; | |
30492 | } | |
30493 | ||
30494 | ||
c370783e | 30495 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30496 | PyObject *resultobj; |
30497 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30498 | wxTreeItemId *arg2 = 0 ; | |
30499 | PyObject * obj0 = 0 ; | |
30500 | PyObject * obj1 = 0 ; | |
30501 | char *kwnames[] = { | |
30502 | (char *) "self",(char *) "item", NULL | |
30503 | }; | |
30504 | ||
30505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30508 | { | |
30509 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30511 | if (arg2 == NULL) { | |
30512 | SWIG_null_ref("wxTreeItemId"); | |
30513 | } | |
30514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30515 | } |
30516 | { | |
30517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30518 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
30519 | ||
30520 | wxPyEndAllowThreads(__tstate); | |
30521 | if (PyErr_Occurred()) SWIG_fail; | |
30522 | } | |
30523 | Py_INCREF(Py_None); resultobj = Py_None; | |
30524 | return resultobj; | |
30525 | fail: | |
30526 | return NULL; | |
30527 | } | |
30528 | ||
30529 | ||
c370783e | 30530 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30531 | PyObject *resultobj; |
30532 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30533 | wxTreeItemId *arg2 = 0 ; | |
30534 | PyObject * obj0 = 0 ; | |
30535 | PyObject * obj1 = 0 ; | |
30536 | char *kwnames[] = { | |
30537 | (char *) "self",(char *) "item", NULL | |
30538 | }; | |
30539 | ||
30540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30543 | { | |
30544 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30545 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30546 | if (arg2 == NULL) { | |
30547 | SWIG_null_ref("wxTreeItemId"); | |
30548 | } | |
30549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30550 | } |
30551 | { | |
30552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30553 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
30554 | ||
30555 | wxPyEndAllowThreads(__tstate); | |
30556 | if (PyErr_Occurred()) SWIG_fail; | |
30557 | } | |
30558 | Py_INCREF(Py_None); resultobj = Py_None; | |
30559 | return resultobj; | |
30560 | fail: | |
30561 | return NULL; | |
30562 | } | |
30563 | ||
30564 | ||
c370783e | 30565 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30566 | PyObject *resultobj; |
30567 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30568 | wxTreeItemId *arg2 = 0 ; | |
30569 | PyObject * obj0 = 0 ; | |
30570 | PyObject * obj1 = 0 ; | |
30571 | char *kwnames[] = { | |
30572 | (char *) "self",(char *) "item", NULL | |
30573 | }; | |
30574 | ||
30575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30578 | { | |
30579 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30580 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30581 | if (arg2 == NULL) { | |
30582 | SWIG_null_ref("wxTreeItemId"); | |
30583 | } | |
30584 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30585 | } |
30586 | { | |
30587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30588 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
30589 | ||
30590 | wxPyEndAllowThreads(__tstate); | |
30591 | if (PyErr_Occurred()) SWIG_fail; | |
30592 | } | |
30593 | Py_INCREF(Py_None); resultobj = Py_None; | |
30594 | return resultobj; | |
30595 | fail: | |
30596 | return NULL; | |
30597 | } | |
30598 | ||
30599 | ||
c370783e | 30600 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30601 | PyObject *resultobj; |
30602 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30603 | wxTreeItemId *arg2 = 0 ; | |
30604 | PyObject * obj0 = 0 ; | |
30605 | PyObject * obj1 = 0 ; | |
30606 | char *kwnames[] = { | |
30607 | (char *) "self",(char *) "item", NULL | |
30608 | }; | |
30609 | ||
30610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30611 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30612 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30613 | { | |
30614 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30615 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30616 | if (arg2 == NULL) { | |
30617 | SWIG_null_ref("wxTreeItemId"); | |
30618 | } | |
30619 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30620 | } |
30621 | { | |
30622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30623 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
30624 | ||
30625 | wxPyEndAllowThreads(__tstate); | |
30626 | if (PyErr_Occurred()) SWIG_fail; | |
30627 | } | |
30628 | Py_INCREF(Py_None); resultobj = Py_None; | |
30629 | return resultobj; | |
30630 | fail: | |
30631 | return NULL; | |
30632 | } | |
30633 | ||
30634 | ||
c370783e | 30635 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30636 | PyObject *resultobj; |
30637 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30638 | wxTextCtrl *result; | |
30639 | PyObject * obj0 = 0 ; | |
30640 | char *kwnames[] = { | |
30641 | (char *) "self", NULL | |
30642 | }; | |
30643 | ||
30644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
30645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30647 | { |
30648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30649 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
30650 | ||
30651 | wxPyEndAllowThreads(__tstate); | |
30652 | if (PyErr_Occurred()) SWIG_fail; | |
30653 | } | |
30654 | { | |
412d302d | 30655 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30656 | } |
30657 | return resultobj; | |
30658 | fail: | |
30659 | return NULL; | |
30660 | } | |
30661 | ||
30662 | ||
c370783e | 30663 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30664 | PyObject *resultobj; |
30665 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30666 | wxTreeItemId *arg2 = 0 ; | |
30667 | PyObject * obj0 = 0 ; | |
30668 | PyObject * obj1 = 0 ; | |
30669 | char *kwnames[] = { | |
30670 | (char *) "self",(char *) "item", NULL | |
30671 | }; | |
30672 | ||
30673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
30674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30676 | { | |
30677 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30678 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30679 | if (arg2 == NULL) { | |
30680 | SWIG_null_ref("wxTreeItemId"); | |
30681 | } | |
30682 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30683 | } |
30684 | { | |
30685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30686 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
30687 | ||
30688 | wxPyEndAllowThreads(__tstate); | |
30689 | if (PyErr_Occurred()) SWIG_fail; | |
30690 | } | |
30691 | Py_INCREF(Py_None); resultobj = Py_None; | |
30692 | return resultobj; | |
30693 | fail: | |
30694 | return NULL; | |
30695 | } | |
30696 | ||
30697 | ||
c370783e | 30698 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30699 | PyObject *resultobj; |
30700 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30701 | wxPoint *arg2 = 0 ; | |
30702 | int *arg3 = 0 ; | |
30703 | wxTreeItemId result; | |
30704 | wxPoint temp2 ; | |
30705 | int temp3 ; | |
c370783e | 30706 | int res3 = 0 ; |
d55e5bfc RD |
30707 | PyObject * obj0 = 0 ; |
30708 | PyObject * obj1 = 0 ; | |
30709 | char *kwnames[] = { | |
30710 | (char *) "self",(char *) "point", NULL | |
30711 | }; | |
30712 | ||
c370783e | 30713 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc | 30714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
36ed4f51 RD |
30715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30717 | { |
30718 | arg2 = &temp2; | |
30719 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30720 | } | |
30721 | { | |
30722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30723 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
30724 | ||
30725 | wxPyEndAllowThreads(__tstate); | |
30726 | if (PyErr_Occurred()) SWIG_fail; | |
30727 | } | |
30728 | { | |
30729 | wxTreeItemId * resultptr; | |
36ed4f51 | 30730 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
30731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
30732 | } | |
c370783e RD |
30733 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30734 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30735 | return resultobj; |
30736 | fail: | |
30737 | return NULL; | |
30738 | } | |
30739 | ||
30740 | ||
c370783e | 30741 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30742 | PyObject *resultobj; |
30743 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30744 | wxTreeItemId *arg2 = 0 ; | |
b411df4a | 30745 | bool arg3 = (bool) false ; |
d55e5bfc RD |
30746 | PyObject *result; |
30747 | PyObject * obj0 = 0 ; | |
30748 | PyObject * obj1 = 0 ; | |
30749 | PyObject * obj2 = 0 ; | |
30750 | char *kwnames[] = { | |
30751 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
30752 | }; | |
30753 | ||
30754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
30755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30757 | { | |
30758 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30760 | if (arg2 == NULL) { | |
30761 | SWIG_null_ref("wxTreeItemId"); | |
30762 | } | |
30763 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30764 | } |
30765 | if (obj2) { | |
36ed4f51 RD |
30766 | { |
30767 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30768 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30769 | } | |
d55e5bfc RD |
30770 | } |
30771 | { | |
30772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30773 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
30774 | ||
30775 | wxPyEndAllowThreads(__tstate); | |
30776 | if (PyErr_Occurred()) SWIG_fail; | |
30777 | } | |
30778 | resultobj = result; | |
30779 | return resultobj; | |
30780 | fail: | |
30781 | return NULL; | |
30782 | } | |
30783 | ||
30784 | ||
c370783e | 30785 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 30786 | PyObject *resultobj; |
36ed4f51 | 30787 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
30788 | wxVisualAttributes result; |
30789 | PyObject * obj0 = 0 ; | |
30790 | char *kwnames[] = { | |
30791 | (char *) "variant", NULL | |
30792 | }; | |
30793 | ||
30794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
30795 | if (obj0) { | |
36ed4f51 RD |
30796 | { |
30797 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
30798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30799 | } | |
d55e5bfc RD |
30800 | } |
30801 | { | |
0439c23b | 30802 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30804 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
30805 | ||
30806 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30807 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30808 | } |
30809 | { | |
30810 | wxVisualAttributes * resultptr; | |
36ed4f51 | 30811 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
30812 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
30813 | } | |
30814 | return resultobj; | |
30815 | fail: | |
30816 | return NULL; | |
30817 | } | |
30818 | ||
30819 | ||
c370783e | 30820 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
30821 | PyObject *obj; |
30822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30823 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
30824 | Py_INCREF(obj); | |
30825 | return Py_BuildValue((char *)""); | |
30826 | } | |
c370783e | 30827 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
d55e5bfc RD |
30828 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
30829 | return 1; | |
30830 | } | |
30831 | ||
30832 | ||
36ed4f51 | 30833 | static PyObject *_wrap_DirDialogDefaultFolderStr_get(void) { |
d55e5bfc RD |
30834 | PyObject *pyobj; |
30835 | ||
30836 | { | |
30837 | #if wxUSE_UNICODE | |
30838 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
30839 | #else | |
30840 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
30841 | #endif | |
30842 | } | |
30843 | return pyobj; | |
30844 | } | |
30845 | ||
30846 | ||
c370783e | 30847 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30848 | PyObject *resultobj; |
30849 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30850 | int arg2 = (int) (int)-1 ; | |
30851 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
30852 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30853 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30854 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30855 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30856 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30857 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
30858 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
30859 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30860 | int arg8 = (int) 0 ; | |
30861 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
30862 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
30863 | wxGenericDirCtrl *result; | |
b411df4a | 30864 | bool temp3 = false ; |
d55e5bfc RD |
30865 | wxPoint temp4 ; |
30866 | wxSize temp5 ; | |
b411df4a RD |
30867 | bool temp7 = false ; |
30868 | bool temp9 = false ; | |
d55e5bfc RD |
30869 | PyObject * obj0 = 0 ; |
30870 | PyObject * obj1 = 0 ; | |
30871 | PyObject * obj2 = 0 ; | |
30872 | PyObject * obj3 = 0 ; | |
30873 | PyObject * obj4 = 0 ; | |
30874 | PyObject * obj5 = 0 ; | |
30875 | PyObject * obj6 = 0 ; | |
30876 | PyObject * obj7 = 0 ; | |
30877 | PyObject * obj8 = 0 ; | |
30878 | char *kwnames[] = { | |
30879 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
30880 | }; | |
30881 | ||
30882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
36ed4f51 RD |
30883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
30884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 30885 | if (obj1) { |
36ed4f51 RD |
30886 | { |
30887 | arg2 = (int const)(SWIG_As_int(obj1)); | |
30888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30889 | } | |
d55e5bfc RD |
30890 | } |
30891 | if (obj2) { | |
30892 | { | |
30893 | arg3 = wxString_in_helper(obj2); | |
30894 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30895 | temp3 = true; |
d55e5bfc RD |
30896 | } |
30897 | } | |
30898 | if (obj3) { | |
30899 | { | |
30900 | arg4 = &temp4; | |
30901 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
30902 | } | |
30903 | } | |
30904 | if (obj4) { | |
30905 | { | |
30906 | arg5 = &temp5; | |
30907 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
30908 | } | |
30909 | } | |
30910 | if (obj5) { | |
36ed4f51 RD |
30911 | { |
30912 | arg6 = (long)(SWIG_As_long(obj5)); | |
30913 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30914 | } | |
d55e5bfc RD |
30915 | } |
30916 | if (obj6) { | |
30917 | { | |
30918 | arg7 = wxString_in_helper(obj6); | |
30919 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 30920 | temp7 = true; |
d55e5bfc RD |
30921 | } |
30922 | } | |
30923 | if (obj7) { | |
36ed4f51 RD |
30924 | { |
30925 | arg8 = (int)(SWIG_As_int(obj7)); | |
30926 | if (SWIG_arg_fail(8)) SWIG_fail; | |
30927 | } | |
d55e5bfc RD |
30928 | } |
30929 | if (obj8) { | |
30930 | { | |
30931 | arg9 = wxString_in_helper(obj8); | |
30932 | if (arg9 == NULL) SWIG_fail; | |
b411df4a | 30933 | temp9 = true; |
d55e5bfc RD |
30934 | } |
30935 | } | |
30936 | { | |
0439c23b | 30937 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30939 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
30940 | ||
30941 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30942 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30943 | } |
30944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
30945 | { | |
30946 | if (temp3) | |
30947 | delete arg3; | |
30948 | } | |
30949 | { | |
30950 | if (temp7) | |
30951 | delete arg7; | |
30952 | } | |
30953 | { | |
30954 | if (temp9) | |
30955 | delete arg9; | |
30956 | } | |
30957 | return resultobj; | |
30958 | fail: | |
30959 | { | |
30960 | if (temp3) | |
30961 | delete arg3; | |
30962 | } | |
30963 | { | |
30964 | if (temp7) | |
30965 | delete arg7; | |
30966 | } | |
30967 | { | |
30968 | if (temp9) | |
30969 | delete arg9; | |
30970 | } | |
30971 | return NULL; | |
30972 | } | |
30973 | ||
30974 | ||
c370783e | 30975 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30976 | PyObject *resultobj; |
30977 | wxGenericDirCtrl *result; | |
30978 | char *kwnames[] = { | |
30979 | NULL | |
30980 | }; | |
30981 | ||
30982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
30983 | { | |
0439c23b | 30984 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30986 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
30987 | ||
30988 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30989 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30990 | } |
30991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
30992 | return resultobj; | |
30993 | fail: | |
30994 | return NULL; | |
30995 | } | |
30996 | ||
30997 | ||
c370783e | 30998 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30999 | PyObject *resultobj; |
31000 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31001 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31002 | int arg3 = (int) (int)-1 ; | |
31003 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
31004 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31005 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
31006 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
31007 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
31008 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
31009 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31010 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
31011 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31012 | int arg9 = (int) 0 ; | |
31013 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
31014 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
31015 | bool result; | |
b411df4a | 31016 | bool temp4 = false ; |
d55e5bfc RD |
31017 | wxPoint temp5 ; |
31018 | wxSize temp6 ; | |
b411df4a RD |
31019 | bool temp8 = false ; |
31020 | bool temp10 = false ; | |
d55e5bfc RD |
31021 | PyObject * obj0 = 0 ; |
31022 | PyObject * obj1 = 0 ; | |
31023 | PyObject * obj2 = 0 ; | |
31024 | PyObject * obj3 = 0 ; | |
31025 | PyObject * obj4 = 0 ; | |
31026 | PyObject * obj5 = 0 ; | |
31027 | PyObject * obj6 = 0 ; | |
31028 | PyObject * obj7 = 0 ; | |
31029 | PyObject * obj8 = 0 ; | |
31030 | PyObject * obj9 = 0 ; | |
31031 | char *kwnames[] = { | |
31032 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31033 | }; | |
31034 | ||
31035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
36ed4f51 RD |
31036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31038 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
31039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 31040 | if (obj2) { |
36ed4f51 RD |
31041 | { |
31042 | arg3 = (int const)(SWIG_As_int(obj2)); | |
31043 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31044 | } | |
d55e5bfc RD |
31045 | } |
31046 | if (obj3) { | |
31047 | { | |
31048 | arg4 = wxString_in_helper(obj3); | |
31049 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 31050 | temp4 = true; |
d55e5bfc RD |
31051 | } |
31052 | } | |
31053 | if (obj4) { | |
31054 | { | |
31055 | arg5 = &temp5; | |
31056 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
31057 | } | |
31058 | } | |
31059 | if (obj5) { | |
31060 | { | |
31061 | arg6 = &temp6; | |
31062 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
31063 | } | |
31064 | } | |
31065 | if (obj6) { | |
36ed4f51 RD |
31066 | { |
31067 | arg7 = (long)(SWIG_As_long(obj6)); | |
31068 | if (SWIG_arg_fail(7)) SWIG_fail; | |
31069 | } | |
d55e5bfc RD |
31070 | } |
31071 | if (obj7) { | |
31072 | { | |
31073 | arg8 = wxString_in_helper(obj7); | |
31074 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 31075 | temp8 = true; |
d55e5bfc RD |
31076 | } |
31077 | } | |
31078 | if (obj8) { | |
36ed4f51 RD |
31079 | { |
31080 | arg9 = (int)(SWIG_As_int(obj8)); | |
31081 | if (SWIG_arg_fail(9)) SWIG_fail; | |
31082 | } | |
d55e5bfc RD |
31083 | } |
31084 | if (obj9) { | |
31085 | { | |
31086 | arg10 = wxString_in_helper(obj9); | |
31087 | if (arg10 == NULL) SWIG_fail; | |
b411df4a | 31088 | temp10 = true; |
d55e5bfc RD |
31089 | } |
31090 | } | |
31091 | { | |
31092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31093 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
31094 | ||
31095 | wxPyEndAllowThreads(__tstate); | |
31096 | if (PyErr_Occurred()) SWIG_fail; | |
31097 | } | |
31098 | { | |
31099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31100 | } | |
31101 | { | |
31102 | if (temp4) | |
31103 | delete arg4; | |
31104 | } | |
31105 | { | |
31106 | if (temp8) | |
31107 | delete arg8; | |
31108 | } | |
31109 | { | |
31110 | if (temp10) | |
31111 | delete arg10; | |
31112 | } | |
31113 | return resultobj; | |
31114 | fail: | |
31115 | { | |
31116 | if (temp4) | |
31117 | delete arg4; | |
31118 | } | |
31119 | { | |
31120 | if (temp8) | |
31121 | delete arg8; | |
31122 | } | |
31123 | { | |
31124 | if (temp10) | |
31125 | delete arg10; | |
31126 | } | |
31127 | return NULL; | |
31128 | } | |
31129 | ||
31130 | ||
c370783e | 31131 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31132 | PyObject *resultobj; |
31133 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31134 | wxString *arg2 = 0 ; | |
31135 | bool result; | |
b411df4a | 31136 | bool temp2 = false ; |
d55e5bfc RD |
31137 | PyObject * obj0 = 0 ; |
31138 | PyObject * obj1 = 0 ; | |
31139 | char *kwnames[] = { | |
31140 | (char *) "self",(char *) "path", NULL | |
31141 | }; | |
31142 | ||
31143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
31144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31146 | { |
31147 | arg2 = wxString_in_helper(obj1); | |
31148 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31149 | temp2 = true; |
d55e5bfc RD |
31150 | } |
31151 | { | |
31152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31153 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
31154 | ||
31155 | wxPyEndAllowThreads(__tstate); | |
31156 | if (PyErr_Occurred()) SWIG_fail; | |
31157 | } | |
31158 | { | |
31159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31160 | } | |
31161 | { | |
31162 | if (temp2) | |
31163 | delete arg2; | |
31164 | } | |
31165 | return resultobj; | |
31166 | fail: | |
31167 | { | |
31168 | if (temp2) | |
31169 | delete arg2; | |
31170 | } | |
31171 | return NULL; | |
31172 | } | |
31173 | ||
31174 | ||
c370783e | 31175 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31176 | PyObject *resultobj; |
31177 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31178 | wxString result; | |
31179 | PyObject * obj0 = 0 ; | |
31180 | char *kwnames[] = { | |
31181 | (char *) "self", NULL | |
31182 | }; | |
31183 | ||
31184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31187 | { |
31188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31189 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
31190 | ||
31191 | wxPyEndAllowThreads(__tstate); | |
31192 | if (PyErr_Occurred()) SWIG_fail; | |
31193 | } | |
31194 | { | |
31195 | #if wxUSE_UNICODE | |
31196 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31197 | #else | |
31198 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31199 | #endif | |
31200 | } | |
31201 | return resultobj; | |
31202 | fail: | |
31203 | return NULL; | |
31204 | } | |
31205 | ||
31206 | ||
c370783e | 31207 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31208 | PyObject *resultobj; |
31209 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31210 | wxString *arg2 = 0 ; | |
b411df4a | 31211 | bool temp2 = false ; |
d55e5bfc RD |
31212 | PyObject * obj0 = 0 ; |
31213 | PyObject * obj1 = 0 ; | |
31214 | char *kwnames[] = { | |
31215 | (char *) "self",(char *) "path", NULL | |
31216 | }; | |
31217 | ||
31218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
31219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31221 | { |
31222 | arg2 = wxString_in_helper(obj1); | |
31223 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31224 | temp2 = true; |
d55e5bfc RD |
31225 | } |
31226 | { | |
31227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31228 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
31229 | ||
31230 | wxPyEndAllowThreads(__tstate); | |
31231 | if (PyErr_Occurred()) SWIG_fail; | |
31232 | } | |
31233 | Py_INCREF(Py_None); resultobj = Py_None; | |
31234 | { | |
31235 | if (temp2) | |
31236 | delete arg2; | |
31237 | } | |
31238 | return resultobj; | |
31239 | fail: | |
31240 | { | |
31241 | if (temp2) | |
31242 | delete arg2; | |
31243 | } | |
31244 | return NULL; | |
31245 | } | |
31246 | ||
31247 | ||
c370783e | 31248 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31249 | PyObject *resultobj; |
31250 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31251 | wxString result; | |
31252 | PyObject * obj0 = 0 ; | |
31253 | char *kwnames[] = { | |
31254 | (char *) "self", NULL | |
31255 | }; | |
31256 | ||
31257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31260 | { |
31261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31262 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
31263 | ||
31264 | wxPyEndAllowThreads(__tstate); | |
31265 | if (PyErr_Occurred()) SWIG_fail; | |
31266 | } | |
31267 | { | |
31268 | #if wxUSE_UNICODE | |
31269 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31270 | #else | |
31271 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31272 | #endif | |
31273 | } | |
31274 | return resultobj; | |
31275 | fail: | |
31276 | return NULL; | |
31277 | } | |
31278 | ||
31279 | ||
c370783e | 31280 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31281 | PyObject *resultobj; |
31282 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31283 | wxString result; | |
31284 | PyObject * obj0 = 0 ; | |
31285 | char *kwnames[] = { | |
31286 | (char *) "self", NULL | |
31287 | }; | |
31288 | ||
31289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31292 | { |
31293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31294 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
31295 | ||
31296 | wxPyEndAllowThreads(__tstate); | |
31297 | if (PyErr_Occurred()) SWIG_fail; | |
31298 | } | |
31299 | { | |
31300 | #if wxUSE_UNICODE | |
31301 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31302 | #else | |
31303 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31304 | #endif | |
31305 | } | |
31306 | return resultobj; | |
31307 | fail: | |
31308 | return NULL; | |
31309 | } | |
31310 | ||
31311 | ||
c370783e | 31312 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31313 | PyObject *resultobj; |
31314 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31315 | wxString *arg2 = 0 ; | |
b411df4a | 31316 | bool temp2 = false ; |
d55e5bfc RD |
31317 | PyObject * obj0 = 0 ; |
31318 | PyObject * obj1 = 0 ; | |
31319 | char *kwnames[] = { | |
31320 | (char *) "self",(char *) "path", NULL | |
31321 | }; | |
31322 | ||
31323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
31324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31326 | { |
31327 | arg2 = wxString_in_helper(obj1); | |
31328 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31329 | temp2 = true; |
d55e5bfc RD |
31330 | } |
31331 | { | |
31332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31333 | (arg1)->SetPath((wxString const &)*arg2); | |
31334 | ||
31335 | wxPyEndAllowThreads(__tstate); | |
31336 | if (PyErr_Occurred()) SWIG_fail; | |
31337 | } | |
31338 | Py_INCREF(Py_None); resultobj = Py_None; | |
31339 | { | |
31340 | if (temp2) | |
31341 | delete arg2; | |
31342 | } | |
31343 | return resultobj; | |
31344 | fail: | |
31345 | { | |
31346 | if (temp2) | |
31347 | delete arg2; | |
31348 | } | |
31349 | return NULL; | |
31350 | } | |
31351 | ||
31352 | ||
c370783e | 31353 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31354 | PyObject *resultobj; |
31355 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31356 | bool arg2 ; | |
31357 | PyObject * obj0 = 0 ; | |
31358 | PyObject * obj1 = 0 ; | |
31359 | char *kwnames[] = { | |
31360 | (char *) "self",(char *) "show", NULL | |
31361 | }; | |
31362 | ||
31363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
31364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31366 | { | |
31367 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
31368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31369 | } | |
d55e5bfc RD |
31370 | { |
31371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31372 | (arg1)->ShowHidden(arg2); | |
31373 | ||
31374 | wxPyEndAllowThreads(__tstate); | |
31375 | if (PyErr_Occurred()) SWIG_fail; | |
31376 | } | |
31377 | Py_INCREF(Py_None); resultobj = Py_None; | |
31378 | return resultobj; | |
31379 | fail: | |
31380 | return NULL; | |
31381 | } | |
31382 | ||
31383 | ||
c370783e | 31384 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31385 | PyObject *resultobj; |
31386 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31387 | bool result; | |
31388 | PyObject * obj0 = 0 ; | |
31389 | char *kwnames[] = { | |
31390 | (char *) "self", NULL | |
31391 | }; | |
31392 | ||
31393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31396 | { |
31397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31398 | result = (bool)(arg1)->GetShowHidden(); | |
31399 | ||
31400 | wxPyEndAllowThreads(__tstate); | |
31401 | if (PyErr_Occurred()) SWIG_fail; | |
31402 | } | |
31403 | { | |
31404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31405 | } | |
31406 | return resultobj; | |
31407 | fail: | |
31408 | return NULL; | |
31409 | } | |
31410 | ||
31411 | ||
c370783e | 31412 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31413 | PyObject *resultobj; |
31414 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31415 | wxString result; | |
31416 | PyObject * obj0 = 0 ; | |
31417 | char *kwnames[] = { | |
31418 | (char *) "self", NULL | |
31419 | }; | |
31420 | ||
31421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31424 | { |
31425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31426 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
31427 | ||
31428 | wxPyEndAllowThreads(__tstate); | |
31429 | if (PyErr_Occurred()) SWIG_fail; | |
31430 | } | |
31431 | { | |
31432 | #if wxUSE_UNICODE | |
31433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31434 | #else | |
31435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31436 | #endif | |
31437 | } | |
31438 | return resultobj; | |
31439 | fail: | |
31440 | return NULL; | |
31441 | } | |
31442 | ||
31443 | ||
c370783e | 31444 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31445 | PyObject *resultobj; |
31446 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31447 | wxString *arg2 = 0 ; | |
b411df4a | 31448 | bool temp2 = false ; |
d55e5bfc RD |
31449 | PyObject * obj0 = 0 ; |
31450 | PyObject * obj1 = 0 ; | |
31451 | char *kwnames[] = { | |
31452 | (char *) "self",(char *) "filter", NULL | |
31453 | }; | |
31454 | ||
31455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
31456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31458 | { |
31459 | arg2 = wxString_in_helper(obj1); | |
31460 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31461 | temp2 = true; |
d55e5bfc RD |
31462 | } |
31463 | { | |
31464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31465 | (arg1)->SetFilter((wxString const &)*arg2); | |
31466 | ||
31467 | wxPyEndAllowThreads(__tstate); | |
31468 | if (PyErr_Occurred()) SWIG_fail; | |
31469 | } | |
31470 | Py_INCREF(Py_None); resultobj = Py_None; | |
31471 | { | |
31472 | if (temp2) | |
31473 | delete arg2; | |
31474 | } | |
31475 | return resultobj; | |
31476 | fail: | |
31477 | { | |
31478 | if (temp2) | |
31479 | delete arg2; | |
31480 | } | |
31481 | return NULL; | |
31482 | } | |
31483 | ||
31484 | ||
c370783e | 31485 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31486 | PyObject *resultobj; |
31487 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31488 | int result; | |
31489 | PyObject * obj0 = 0 ; | |
31490 | char *kwnames[] = { | |
31491 | (char *) "self", NULL | |
31492 | }; | |
31493 | ||
31494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31497 | { |
31498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31499 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
31500 | ||
31501 | wxPyEndAllowThreads(__tstate); | |
31502 | if (PyErr_Occurred()) SWIG_fail; | |
31503 | } | |
36ed4f51 RD |
31504 | { |
31505 | resultobj = SWIG_From_int((int)(result)); | |
31506 | } | |
d55e5bfc RD |
31507 | return resultobj; |
31508 | fail: | |
31509 | return NULL; | |
31510 | } | |
31511 | ||
31512 | ||
c370783e | 31513 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31514 | PyObject *resultobj; |
31515 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31516 | int arg2 ; | |
31517 | PyObject * obj0 = 0 ; | |
31518 | PyObject * obj1 = 0 ; | |
31519 | char *kwnames[] = { | |
31520 | (char *) "self",(char *) "n", NULL | |
31521 | }; | |
31522 | ||
31523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
31524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31526 | { | |
31527 | arg2 = (int)(SWIG_As_int(obj1)); | |
31528 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31529 | } | |
d55e5bfc RD |
31530 | { |
31531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31532 | (arg1)->SetFilterIndex(arg2); | |
31533 | ||
31534 | wxPyEndAllowThreads(__tstate); | |
31535 | if (PyErr_Occurred()) SWIG_fail; | |
31536 | } | |
31537 | Py_INCREF(Py_None); resultobj = Py_None; | |
31538 | return resultobj; | |
31539 | fail: | |
31540 | return NULL; | |
31541 | } | |
31542 | ||
31543 | ||
c370783e | 31544 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31545 | PyObject *resultobj; |
31546 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31547 | wxTreeItemId result; | |
31548 | PyObject * obj0 = 0 ; | |
31549 | char *kwnames[] = { | |
31550 | (char *) "self", NULL | |
31551 | }; | |
31552 | ||
31553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31556 | { |
31557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31558 | result = (arg1)->GetRootId(); | |
31559 | ||
31560 | wxPyEndAllowThreads(__tstate); | |
31561 | if (PyErr_Occurred()) SWIG_fail; | |
31562 | } | |
31563 | { | |
31564 | wxTreeItemId * resultptr; | |
36ed4f51 | 31565 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
31566 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
31567 | } | |
31568 | return resultobj; | |
31569 | fail: | |
31570 | return NULL; | |
31571 | } | |
31572 | ||
31573 | ||
c370783e | 31574 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31575 | PyObject *resultobj; |
31576 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31577 | wxPyTreeCtrl *result; | |
31578 | PyObject * obj0 = 0 ; | |
31579 | char *kwnames[] = { | |
31580 | (char *) "self", NULL | |
31581 | }; | |
31582 | ||
31583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31584 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31585 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31586 | { |
31587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31588 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
31589 | ||
31590 | wxPyEndAllowThreads(__tstate); | |
31591 | if (PyErr_Occurred()) SWIG_fail; | |
31592 | } | |
31593 | { | |
412d302d | 31594 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31595 | } |
31596 | return resultobj; | |
31597 | fail: | |
31598 | return NULL; | |
31599 | } | |
31600 | ||
31601 | ||
c370783e | 31602 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31603 | PyObject *resultobj; |
31604 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31605 | wxDirFilterListCtrl *result; | |
31606 | PyObject * obj0 = 0 ; | |
31607 | char *kwnames[] = { | |
31608 | (char *) "self", NULL | |
31609 | }; | |
31610 | ||
31611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31614 | { |
31615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31616 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
31617 | ||
31618 | wxPyEndAllowThreads(__tstate); | |
31619 | if (PyErr_Occurred()) SWIG_fail; | |
31620 | } | |
31621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
31622 | return resultobj; | |
31623 | fail: | |
31624 | return NULL; | |
31625 | } | |
31626 | ||
31627 | ||
c370783e | 31628 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31629 | PyObject *resultobj; |
31630 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31631 | wxTreeItemId arg2 ; | |
31632 | wxString *arg3 = 0 ; | |
31633 | bool *arg4 = 0 ; | |
31634 | wxTreeItemId result; | |
b411df4a | 31635 | bool temp3 = false ; |
d55e5bfc | 31636 | bool temp4 ; |
c370783e | 31637 | int res4 = 0 ; |
d55e5bfc RD |
31638 | PyObject * obj0 = 0 ; |
31639 | PyObject * obj1 = 0 ; | |
31640 | PyObject * obj2 = 0 ; | |
31641 | char *kwnames[] = { | |
31642 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
31643 | }; | |
31644 | ||
c370783e | 31645 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d55e5bfc | 31646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
36ed4f51 RD |
31647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31649 | { | |
31650 | wxTreeItemId * argp; | |
31651 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION); | |
31652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31653 | if (argp == NULL) { | |
31654 | SWIG_null_ref("wxTreeItemId"); | |
31655 | } | |
31656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31657 | arg2 = *argp; | |
31658 | } | |
d55e5bfc RD |
31659 | { |
31660 | arg3 = wxString_in_helper(obj2); | |
31661 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31662 | temp3 = true; |
d55e5bfc RD |
31663 | } |
31664 | { | |
31665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31666 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
31667 | ||
31668 | wxPyEndAllowThreads(__tstate); | |
31669 | if (PyErr_Occurred()) SWIG_fail; | |
31670 | } | |
31671 | { | |
31672 | wxTreeItemId * resultptr; | |
36ed4f51 | 31673 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
31674 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
31675 | } | |
c370783e RD |
31676 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
31677 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d55e5bfc RD |
31678 | { |
31679 | if (temp3) | |
31680 | delete arg3; | |
31681 | } | |
31682 | return resultobj; | |
31683 | fail: | |
31684 | { | |
31685 | if (temp3) | |
31686 | delete arg3; | |
31687 | } | |
31688 | return NULL; | |
31689 | } | |
31690 | ||
31691 | ||
c370783e | 31692 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31693 | PyObject *resultobj; |
31694 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31695 | PyObject * obj0 = 0 ; | |
31696 | char *kwnames[] = { | |
31697 | (char *) "self", NULL | |
31698 | }; | |
31699 | ||
31700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31703 | { |
31704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31705 | (arg1)->DoResize(); | |
31706 | ||
31707 | wxPyEndAllowThreads(__tstate); | |
31708 | if (PyErr_Occurred()) SWIG_fail; | |
31709 | } | |
31710 | Py_INCREF(Py_None); resultobj = Py_None; | |
31711 | return resultobj; | |
31712 | fail: | |
31713 | return NULL; | |
31714 | } | |
31715 | ||
31716 | ||
c370783e | 31717 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31718 | PyObject *resultobj; |
31719 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31720 | PyObject * obj0 = 0 ; | |
31721 | char *kwnames[] = { | |
31722 | (char *) "self", NULL | |
31723 | }; | |
31724 | ||
31725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
31726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31728 | { |
31729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31730 | (arg1)->ReCreateTree(); | |
31731 | ||
31732 | wxPyEndAllowThreads(__tstate); | |
31733 | if (PyErr_Occurred()) SWIG_fail; | |
31734 | } | |
31735 | Py_INCREF(Py_None); resultobj = Py_None; | |
31736 | return resultobj; | |
31737 | fail: | |
31738 | return NULL; | |
31739 | } | |
31740 | ||
31741 | ||
c370783e | 31742 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31743 | PyObject *obj; |
31744 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31745 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
31746 | Py_INCREF(obj); | |
31747 | return Py_BuildValue((char *)""); | |
31748 | } | |
c370783e | 31749 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31750 | PyObject *resultobj; |
31751 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31752 | int arg2 = (int) (int)-1 ; | |
31753 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
31754 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31755 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31756 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31757 | long arg5 = (long) 0 ; | |
31758 | wxDirFilterListCtrl *result; | |
31759 | wxPoint temp3 ; | |
31760 | wxSize temp4 ; | |
31761 | PyObject * obj0 = 0 ; | |
31762 | PyObject * obj1 = 0 ; | |
31763 | PyObject * obj2 = 0 ; | |
31764 | PyObject * obj3 = 0 ; | |
31765 | PyObject * obj4 = 0 ; | |
31766 | char *kwnames[] = { | |
31767 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
31768 | }; | |
31769 | ||
31770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
31771 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 31773 | if (obj1) { |
36ed4f51 RD |
31774 | { |
31775 | arg2 = (int const)(SWIG_As_int(obj1)); | |
31776 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31777 | } | |
d55e5bfc RD |
31778 | } |
31779 | if (obj2) { | |
31780 | { | |
31781 | arg3 = &temp3; | |
31782 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31783 | } | |
31784 | } | |
31785 | if (obj3) { | |
31786 | { | |
31787 | arg4 = &temp4; | |
31788 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31789 | } | |
31790 | } | |
31791 | if (obj4) { | |
36ed4f51 RD |
31792 | { |
31793 | arg5 = (long)(SWIG_As_long(obj4)); | |
31794 | if (SWIG_arg_fail(5)) SWIG_fail; | |
31795 | } | |
d55e5bfc RD |
31796 | } |
31797 | { | |
0439c23b | 31798 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31800 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
31801 | ||
31802 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31803 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31804 | } |
31805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
31806 | return resultobj; | |
31807 | fail: | |
31808 | return NULL; | |
31809 | } | |
31810 | ||
31811 | ||
c370783e | 31812 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31813 | PyObject *resultobj; |
31814 | wxDirFilterListCtrl *result; | |
31815 | char *kwnames[] = { | |
31816 | NULL | |
31817 | }; | |
31818 | ||
31819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
31820 | { | |
0439c23b | 31821 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31823 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
31824 | ||
31825 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31826 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31827 | } |
31828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
31829 | return resultobj; | |
31830 | fail: | |
31831 | return NULL; | |
31832 | } | |
31833 | ||
31834 | ||
c370783e | 31835 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31836 | PyObject *resultobj; |
31837 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
31838 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
31839 | int arg3 = (int) (int)-1 ; | |
31840 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31841 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31842 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31843 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31844 | long arg6 = (long) 0 ; | |
31845 | bool result; | |
31846 | wxPoint temp4 ; | |
31847 | wxSize temp5 ; | |
31848 | PyObject * obj0 = 0 ; | |
31849 | PyObject * obj1 = 0 ; | |
31850 | PyObject * obj2 = 0 ; | |
31851 | PyObject * obj3 = 0 ; | |
31852 | PyObject * obj4 = 0 ; | |
31853 | PyObject * obj5 = 0 ; | |
31854 | char *kwnames[] = { | |
31855 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
31856 | }; | |
31857 | ||
31858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
31859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
31860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31861 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31862 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 31863 | if (obj2) { |
36ed4f51 RD |
31864 | { |
31865 | arg3 = (int const)(SWIG_As_int(obj2)); | |
31866 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31867 | } | |
d55e5bfc RD |
31868 | } |
31869 | if (obj3) { | |
31870 | { | |
31871 | arg4 = &temp4; | |
31872 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31873 | } | |
31874 | } | |
31875 | if (obj4) { | |
31876 | { | |
31877 | arg5 = &temp5; | |
31878 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31879 | } | |
31880 | } | |
31881 | if (obj5) { | |
36ed4f51 RD |
31882 | { |
31883 | arg6 = (long)(SWIG_As_long(obj5)); | |
31884 | if (SWIG_arg_fail(6)) SWIG_fail; | |
31885 | } | |
d55e5bfc RD |
31886 | } |
31887 | { | |
31888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31889 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
31890 | ||
31891 | wxPyEndAllowThreads(__tstate); | |
31892 | if (PyErr_Occurred()) SWIG_fail; | |
31893 | } | |
31894 | { | |
31895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31896 | } | |
31897 | return resultobj; | |
31898 | fail: | |
31899 | return NULL; | |
31900 | } | |
31901 | ||
31902 | ||
c370783e | 31903 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31904 | PyObject *resultobj; |
31905 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
31906 | wxString *arg2 = 0 ; | |
31907 | int arg3 ; | |
b411df4a | 31908 | bool temp2 = false ; |
d55e5bfc RD |
31909 | PyObject * obj0 = 0 ; |
31910 | PyObject * obj1 = 0 ; | |
31911 | PyObject * obj2 = 0 ; | |
31912 | char *kwnames[] = { | |
31913 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
31914 | }; | |
31915 | ||
31916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
31917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
31918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31919 | { |
31920 | arg2 = wxString_in_helper(obj1); | |
31921 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31922 | temp2 = true; |
d55e5bfc | 31923 | } |
36ed4f51 RD |
31924 | { |
31925 | arg3 = (int)(SWIG_As_int(obj2)); | |
31926 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31927 | } | |
d55e5bfc RD |
31928 | { |
31929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31930 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
31931 | ||
31932 | wxPyEndAllowThreads(__tstate); | |
31933 | if (PyErr_Occurred()) SWIG_fail; | |
31934 | } | |
31935 | Py_INCREF(Py_None); resultobj = Py_None; | |
31936 | { | |
31937 | if (temp2) | |
31938 | delete arg2; | |
31939 | } | |
31940 | return resultobj; | |
31941 | fail: | |
31942 | { | |
31943 | if (temp2) | |
31944 | delete arg2; | |
31945 | } | |
31946 | return NULL; | |
31947 | } | |
31948 | ||
31949 | ||
c370783e | 31950 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31951 | PyObject *obj; |
31952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31953 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
31954 | Py_INCREF(obj); | |
31955 | return Py_BuildValue((char *)""); | |
31956 | } | |
c370783e | 31957 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31958 | PyObject *resultobj; |
31959 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 31960 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
31961 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
31962 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31963 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31964 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31965 | long arg5 = (long) 0 ; | |
31966 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
31967 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
31968 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
31969 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31970 | wxPyControl *result; | |
31971 | wxPoint temp3 ; | |
31972 | wxSize temp4 ; | |
b411df4a | 31973 | bool temp7 = false ; |
d55e5bfc RD |
31974 | PyObject * obj0 = 0 ; |
31975 | PyObject * obj1 = 0 ; | |
31976 | PyObject * obj2 = 0 ; | |
31977 | PyObject * obj3 = 0 ; | |
31978 | PyObject * obj4 = 0 ; | |
31979 | PyObject * obj5 = 0 ; | |
31980 | PyObject * obj6 = 0 ; | |
31981 | char *kwnames[] = { | |
31982 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
31983 | }; | |
31984 | ||
bfddbb17 | 31985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
36ed4f51 RD |
31986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
bfddbb17 | 31988 | if (obj1) { |
36ed4f51 RD |
31989 | { |
31990 | arg2 = (int const)(SWIG_As_int(obj1)); | |
31991 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31992 | } | |
bfddbb17 | 31993 | } |
d55e5bfc RD |
31994 | if (obj2) { |
31995 | { | |
31996 | arg3 = &temp3; | |
31997 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31998 | } | |
31999 | } | |
32000 | if (obj3) { | |
32001 | { | |
32002 | arg4 = &temp4; | |
32003 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32004 | } | |
32005 | } | |
32006 | if (obj4) { | |
36ed4f51 RD |
32007 | { |
32008 | arg5 = (long)(SWIG_As_long(obj4)); | |
32009 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32010 | } | |
d55e5bfc RD |
32011 | } |
32012 | if (obj5) { | |
36ed4f51 RD |
32013 | { |
32014 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
32015 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32016 | if (arg6 == NULL) { | |
32017 | SWIG_null_ref("wxValidator"); | |
32018 | } | |
32019 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
32020 | } |
32021 | } | |
32022 | if (obj6) { | |
32023 | { | |
32024 | arg7 = wxString_in_helper(obj6); | |
32025 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 32026 | temp7 = true; |
d55e5bfc RD |
32027 | } |
32028 | } | |
32029 | { | |
0439c23b | 32030 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32032 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32033 | ||
32034 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32035 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32036 | } |
32037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32038 | { | |
32039 | if (temp7) | |
32040 | delete arg7; | |
32041 | } | |
32042 | return resultobj; | |
32043 | fail: | |
32044 | { | |
32045 | if (temp7) | |
32046 | delete arg7; | |
32047 | } | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
c370783e | 32052 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32053 | PyObject *resultobj; |
32054 | wxPyControl *result; | |
32055 | char *kwnames[] = { | |
32056 | NULL | |
32057 | }; | |
32058 | ||
32059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
32060 | { | |
0439c23b | 32061 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32063 | result = (wxPyControl *)new wxPyControl(); | |
32064 | ||
32065 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32066 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32067 | } |
32068 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32069 | return resultobj; | |
32070 | fail: | |
32071 | return NULL; | |
32072 | } | |
32073 | ||
32074 | ||
c370783e | 32075 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32076 | PyObject *resultobj; |
32077 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32078 | PyObject *arg2 = (PyObject *) 0 ; | |
32079 | PyObject *arg3 = (PyObject *) 0 ; | |
32080 | PyObject * obj0 = 0 ; | |
32081 | PyObject * obj1 = 0 ; | |
32082 | PyObject * obj2 = 0 ; | |
32083 | char *kwnames[] = { | |
32084 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
32085 | }; | |
32086 | ||
32087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
32088 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32089 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32090 | arg2 = obj1; |
32091 | arg3 = obj2; | |
32092 | { | |
32093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32094 | (arg1)->_setCallbackInfo(arg2,arg3); | |
32095 | ||
32096 | wxPyEndAllowThreads(__tstate); | |
32097 | if (PyErr_Occurred()) SWIG_fail; | |
32098 | } | |
32099 | Py_INCREF(Py_None); resultobj = Py_None; | |
32100 | return resultobj; | |
32101 | fail: | |
32102 | return NULL; | |
32103 | } | |
32104 | ||
32105 | ||
c370783e | 32106 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a5ee0656 RD |
32107 | PyObject *resultobj; |
32108 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32109 | wxSize *arg2 = 0 ; | |
32110 | wxSize temp2 ; | |
32111 | PyObject * obj0 = 0 ; | |
32112 | PyObject * obj1 = 0 ; | |
32113 | char *kwnames[] = { | |
32114 | (char *) "self",(char *) "size", NULL | |
32115 | }; | |
32116 | ||
32117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
32118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a5ee0656 RD |
32120 | { |
32121 | arg2 = &temp2; | |
32122 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
32123 | } | |
32124 | { | |
32125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32126 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
32127 | ||
32128 | wxPyEndAllowThreads(__tstate); | |
32129 | if (PyErr_Occurred()) SWIG_fail; | |
32130 | } | |
32131 | Py_INCREF(Py_None); resultobj = Py_None; | |
32132 | return resultobj; | |
32133 | fail: | |
32134 | return NULL; | |
32135 | } | |
32136 | ||
32137 | ||
976dbff5 RD |
32138 | static PyObject *_wrap_PyControl_DoEraseBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32139 | PyObject *resultobj; | |
32140 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32141 | wxDC *arg2 = (wxDC *) 0 ; | |
32142 | bool result; | |
32143 | PyObject * obj0 = 0 ; | |
32144 | PyObject * obj1 = 0 ; | |
32145 | char *kwnames[] = { | |
32146 | (char *) "self",(char *) "dc", NULL | |
32147 | }; | |
32148 | ||
32149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) goto fail; | |
32150 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32152 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
32153 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32154 | { | |
32155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32156 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
32157 | ||
32158 | wxPyEndAllowThreads(__tstate); | |
32159 | if (PyErr_Occurred()) SWIG_fail; | |
32160 | } | |
32161 | { | |
32162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32163 | } | |
32164 | return resultobj; | |
32165 | fail: | |
32166 | return NULL; | |
32167 | } | |
32168 | ||
32169 | ||
c370783e | 32170 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32171 | PyObject *resultobj; |
32172 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32173 | int arg2 ; | |
32174 | int arg3 ; | |
32175 | int arg4 ; | |
32176 | int arg5 ; | |
32177 | PyObject * obj0 = 0 ; | |
32178 | PyObject * obj1 = 0 ; | |
32179 | PyObject * obj2 = 0 ; | |
32180 | PyObject * obj3 = 0 ; | |
32181 | PyObject * obj4 = 0 ; | |
32182 | char *kwnames[] = { | |
32183 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
32184 | }; | |
32185 | ||
32186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
32187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32189 | { | |
32190 | arg2 = (int)(SWIG_As_int(obj1)); | |
32191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32192 | } | |
32193 | { | |
32194 | arg3 = (int)(SWIG_As_int(obj2)); | |
32195 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32196 | } | |
32197 | { | |
32198 | arg4 = (int)(SWIG_As_int(obj3)); | |
32199 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32200 | } | |
32201 | { | |
32202 | arg5 = (int)(SWIG_As_int(obj4)); | |
32203 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32204 | } | |
d55e5bfc RD |
32205 | { |
32206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32207 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
32208 | ||
32209 | wxPyEndAllowThreads(__tstate); | |
32210 | if (PyErr_Occurred()) SWIG_fail; | |
32211 | } | |
32212 | Py_INCREF(Py_None); resultobj = Py_None; | |
32213 | return resultobj; | |
32214 | fail: | |
32215 | return NULL; | |
32216 | } | |
32217 | ||
32218 | ||
c370783e | 32219 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32220 | PyObject *resultobj; |
32221 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32222 | int arg2 ; | |
32223 | int arg3 ; | |
32224 | int arg4 ; | |
32225 | int arg5 ; | |
32226 | int arg6 = (int) wxSIZE_AUTO ; | |
32227 | PyObject * obj0 = 0 ; | |
32228 | PyObject * obj1 = 0 ; | |
32229 | PyObject * obj2 = 0 ; | |
32230 | PyObject * obj3 = 0 ; | |
32231 | PyObject * obj4 = 0 ; | |
32232 | PyObject * obj5 = 0 ; | |
32233 | char *kwnames[] = { | |
32234 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
32235 | }; | |
32236 | ||
32237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
36ed4f51 RD |
32238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32240 | { | |
32241 | arg2 = (int)(SWIG_As_int(obj1)); | |
32242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32243 | } | |
32244 | { | |
32245 | arg3 = (int)(SWIG_As_int(obj2)); | |
32246 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32247 | } | |
32248 | { | |
32249 | arg4 = (int)(SWIG_As_int(obj3)); | |
32250 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32251 | } | |
32252 | { | |
32253 | arg5 = (int)(SWIG_As_int(obj4)); | |
32254 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32255 | } | |
d55e5bfc | 32256 | if (obj5) { |
36ed4f51 RD |
32257 | { |
32258 | arg6 = (int)(SWIG_As_int(obj5)); | |
32259 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32260 | } | |
d55e5bfc RD |
32261 | } |
32262 | { | |
32263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32264 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
32265 | ||
32266 | wxPyEndAllowThreads(__tstate); | |
32267 | if (PyErr_Occurred()) SWIG_fail; | |
32268 | } | |
32269 | Py_INCREF(Py_None); resultobj = Py_None; | |
32270 | return resultobj; | |
32271 | fail: | |
32272 | return NULL; | |
32273 | } | |
32274 | ||
32275 | ||
c370783e | 32276 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32277 | PyObject *resultobj; |
32278 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32279 | int arg2 ; | |
32280 | int arg3 ; | |
32281 | PyObject * obj0 = 0 ; | |
32282 | PyObject * obj1 = 0 ; | |
32283 | PyObject * obj2 = 0 ; | |
32284 | char *kwnames[] = { | |
32285 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32286 | }; | |
32287 | ||
32288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
32289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32291 | { | |
32292 | arg2 = (int)(SWIG_As_int(obj1)); | |
32293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32294 | } | |
32295 | { | |
32296 | arg3 = (int)(SWIG_As_int(obj2)); | |
32297 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32298 | } | |
d55e5bfc RD |
32299 | { |
32300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32301 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
32302 | ||
32303 | wxPyEndAllowThreads(__tstate); | |
32304 | if (PyErr_Occurred()) SWIG_fail; | |
32305 | } | |
32306 | Py_INCREF(Py_None); resultobj = Py_None; | |
32307 | return resultobj; | |
32308 | fail: | |
32309 | return NULL; | |
32310 | } | |
32311 | ||
32312 | ||
c370783e | 32313 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32314 | PyObject *resultobj; |
32315 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32316 | int arg2 ; | |
32317 | int arg3 ; | |
32318 | PyObject * obj0 = 0 ; | |
32319 | PyObject * obj1 = 0 ; | |
32320 | PyObject * obj2 = 0 ; | |
32321 | char *kwnames[] = { | |
32322 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32323 | }; | |
32324 | ||
32325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
32326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32328 | { | |
32329 | arg2 = (int)(SWIG_As_int(obj1)); | |
32330 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32331 | } | |
32332 | { | |
32333 | arg3 = (int)(SWIG_As_int(obj2)); | |
32334 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32335 | } | |
d55e5bfc RD |
32336 | { |
32337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32338 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
32339 | ||
32340 | wxPyEndAllowThreads(__tstate); | |
32341 | if (PyErr_Occurred()) SWIG_fail; | |
32342 | } | |
32343 | Py_INCREF(Py_None); resultobj = Py_None; | |
32344 | return resultobj; | |
32345 | fail: | |
32346 | return NULL; | |
32347 | } | |
32348 | ||
32349 | ||
c370783e | 32350 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32351 | PyObject *resultobj; |
32352 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32353 | int *arg2 = (int *) 0 ; | |
32354 | int *arg3 = (int *) 0 ; | |
32355 | int temp2 ; | |
c370783e | 32356 | int res2 = 0 ; |
d55e5bfc | 32357 | int temp3 ; |
c370783e | 32358 | int res3 = 0 ; |
d55e5bfc RD |
32359 | PyObject * obj0 = 0 ; |
32360 | char *kwnames[] = { | |
32361 | (char *) "self", NULL | |
32362 | }; | |
32363 | ||
c370783e RD |
32364 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32365 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 32366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
32367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32369 | { |
32370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32371 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
32372 | ||
32373 | wxPyEndAllowThreads(__tstate); | |
32374 | if (PyErr_Occurred()) SWIG_fail; | |
32375 | } | |
32376 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
32377 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32378 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32379 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32380 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
32381 | return resultobj; |
32382 | fail: | |
32383 | return NULL; | |
32384 | } | |
32385 | ||
32386 | ||
c370783e | 32387 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32388 | PyObject *resultobj; |
32389 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32390 | int *arg2 = (int *) 0 ; | |
32391 | int *arg3 = (int *) 0 ; | |
32392 | int temp2 ; | |
c370783e | 32393 | int res2 = 0 ; |
d55e5bfc | 32394 | int temp3 ; |
c370783e | 32395 | int res3 = 0 ; |
d55e5bfc RD |
32396 | PyObject * obj0 = 0 ; |
32397 | char *kwnames[] = { | |
32398 | (char *) "self", NULL | |
32399 | }; | |
32400 | ||
c370783e RD |
32401 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32402 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 32403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
32404 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32406 | { |
32407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32408 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
32409 | ||
32410 | wxPyEndAllowThreads(__tstate); | |
32411 | if (PyErr_Occurred()) SWIG_fail; | |
32412 | } | |
32413 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
32414 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32415 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32416 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32417 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
32418 | return resultobj; |
32419 | fail: | |
32420 | return NULL; | |
32421 | } | |
32422 | ||
32423 | ||
c370783e | 32424 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32425 | PyObject *resultobj; |
32426 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32427 | int *arg2 = (int *) 0 ; | |
32428 | int *arg3 = (int *) 0 ; | |
32429 | int temp2 ; | |
c370783e | 32430 | int res2 = 0 ; |
d55e5bfc | 32431 | int temp3 ; |
c370783e | 32432 | int res3 = 0 ; |
d55e5bfc RD |
32433 | PyObject * obj0 = 0 ; |
32434 | char *kwnames[] = { | |
32435 | (char *) "self", NULL | |
32436 | }; | |
32437 | ||
c370783e RD |
32438 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32439 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 32440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
36ed4f51 RD |
32441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32443 | { |
32444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32445 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
32446 | ||
32447 | wxPyEndAllowThreads(__tstate); | |
32448 | if (PyErr_Occurred()) SWIG_fail; | |
32449 | } | |
32450 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
32451 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32452 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32453 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32454 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
32455 | return resultobj; |
32456 | fail: | |
32457 | return NULL; | |
32458 | } | |
32459 | ||
32460 | ||
c370783e | 32461 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32462 | PyObject *resultobj; |
32463 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32464 | wxSize result; | |
32465 | PyObject * obj0 = 0 ; | |
32466 | char *kwnames[] = { | |
32467 | (char *) "self", NULL | |
32468 | }; | |
32469 | ||
32470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32473 | { |
32474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32475 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
32476 | ||
32477 | wxPyEndAllowThreads(__tstate); | |
32478 | if (PyErr_Occurred()) SWIG_fail; | |
32479 | } | |
32480 | { | |
32481 | wxSize * resultptr; | |
36ed4f51 | 32482 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
32483 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
32484 | } | |
32485 | return resultobj; | |
32486 | fail: | |
32487 | return NULL; | |
32488 | } | |
32489 | ||
32490 | ||
c370783e | 32491 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32492 | PyObject *resultobj; |
32493 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32494 | wxSize result; | |
32495 | PyObject * obj0 = 0 ; | |
32496 | char *kwnames[] = { | |
32497 | (char *) "self", NULL | |
32498 | }; | |
32499 | ||
32500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32503 | { |
32504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32505 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
32506 | ||
32507 | wxPyEndAllowThreads(__tstate); | |
32508 | if (PyErr_Occurred()) SWIG_fail; | |
32509 | } | |
32510 | { | |
32511 | wxSize * resultptr; | |
36ed4f51 | 32512 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
32513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
32514 | } | |
32515 | return resultobj; | |
32516 | fail: | |
32517 | return NULL; | |
32518 | } | |
32519 | ||
32520 | ||
c370783e | 32521 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32522 | PyObject *resultobj; |
32523 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32524 | PyObject * obj0 = 0 ; | |
32525 | char *kwnames[] = { | |
32526 | (char *) "self", NULL | |
32527 | }; | |
32528 | ||
32529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32532 | { |
32533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32534 | (arg1)->base_InitDialog(); | |
32535 | ||
32536 | wxPyEndAllowThreads(__tstate); | |
32537 | if (PyErr_Occurred()) SWIG_fail; | |
32538 | } | |
32539 | Py_INCREF(Py_None); resultobj = Py_None; | |
32540 | return resultobj; | |
32541 | fail: | |
32542 | return NULL; | |
32543 | } | |
32544 | ||
32545 | ||
c370783e | 32546 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32547 | PyObject *resultobj; |
32548 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32549 | bool result; | |
32550 | PyObject * obj0 = 0 ; | |
32551 | char *kwnames[] = { | |
32552 | (char *) "self", NULL | |
32553 | }; | |
32554 | ||
32555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32558 | { |
32559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32560 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
32561 | ||
32562 | wxPyEndAllowThreads(__tstate); | |
32563 | if (PyErr_Occurred()) SWIG_fail; | |
32564 | } | |
32565 | { | |
32566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32567 | } | |
32568 | return resultobj; | |
32569 | fail: | |
32570 | return NULL; | |
32571 | } | |
32572 | ||
32573 | ||
c370783e | 32574 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32575 | PyObject *resultobj; |
32576 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32577 | bool result; | |
32578 | PyObject * obj0 = 0 ; | |
32579 | char *kwnames[] = { | |
32580 | (char *) "self", NULL | |
32581 | }; | |
32582 | ||
32583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32584 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32585 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32586 | { |
32587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32588 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
32589 | ||
32590 | wxPyEndAllowThreads(__tstate); | |
32591 | if (PyErr_Occurred()) SWIG_fail; | |
32592 | } | |
32593 | { | |
32594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32595 | } | |
32596 | return resultobj; | |
32597 | fail: | |
32598 | return NULL; | |
32599 | } | |
32600 | ||
32601 | ||
c370783e | 32602 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32603 | PyObject *resultobj; |
32604 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32605 | bool result; | |
32606 | PyObject * obj0 = 0 ; | |
32607 | char *kwnames[] = { | |
32608 | (char *) "self", NULL | |
32609 | }; | |
32610 | ||
32611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32614 | { |
32615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32616 | result = (bool)(arg1)->base_Validate(); | |
32617 | ||
32618 | wxPyEndAllowThreads(__tstate); | |
32619 | if (PyErr_Occurred()) SWIG_fail; | |
32620 | } | |
32621 | { | |
32622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32623 | } | |
32624 | return resultobj; | |
32625 | fail: | |
32626 | return NULL; | |
32627 | } | |
32628 | ||
32629 | ||
c370783e | 32630 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32631 | PyObject *resultobj; |
32632 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32633 | bool result; | |
32634 | PyObject * obj0 = 0 ; | |
32635 | char *kwnames[] = { | |
32636 | (char *) "self", NULL | |
32637 | }; | |
32638 | ||
32639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32642 | { |
32643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32644 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
32645 | ||
32646 | wxPyEndAllowThreads(__tstate); | |
32647 | if (PyErr_Occurred()) SWIG_fail; | |
32648 | } | |
32649 | { | |
32650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32651 | } | |
32652 | return resultobj; | |
32653 | fail: | |
32654 | return NULL; | |
32655 | } | |
32656 | ||
32657 | ||
c370783e | 32658 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32659 | PyObject *resultobj; |
32660 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32661 | bool result; | |
32662 | PyObject * obj0 = 0 ; | |
32663 | char *kwnames[] = { | |
32664 | (char *) "self", NULL | |
32665 | }; | |
32666 | ||
32667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32670 | { |
32671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32672 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
32673 | ||
32674 | wxPyEndAllowThreads(__tstate); | |
32675 | if (PyErr_Occurred()) SWIG_fail; | |
32676 | } | |
32677 | { | |
32678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32679 | } | |
32680 | return resultobj; | |
32681 | fail: | |
32682 | return NULL; | |
32683 | } | |
32684 | ||
32685 | ||
c370783e | 32686 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32687 | PyObject *resultobj; |
32688 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32689 | wxSize result; | |
32690 | PyObject * obj0 = 0 ; | |
32691 | char *kwnames[] = { | |
32692 | (char *) "self", NULL | |
32693 | }; | |
32694 | ||
32695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32696 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32698 | { |
32699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32700 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
32701 | ||
32702 | wxPyEndAllowThreads(__tstate); | |
32703 | if (PyErr_Occurred()) SWIG_fail; | |
32704 | } | |
32705 | { | |
32706 | wxSize * resultptr; | |
36ed4f51 | 32707 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
32708 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
32709 | } | |
32710 | return resultobj; | |
32711 | fail: | |
32712 | return NULL; | |
32713 | } | |
32714 | ||
32715 | ||
c370783e | 32716 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32717 | PyObject *resultobj; |
32718 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32719 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32720 | PyObject * obj0 = 0 ; | |
32721 | PyObject * obj1 = 0 ; | |
32722 | char *kwnames[] = { | |
32723 | (char *) "self",(char *) "child", NULL | |
32724 | }; | |
32725 | ||
32726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
32727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32729 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32730 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32731 | { |
32732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32733 | (arg1)->base_AddChild(arg2); | |
32734 | ||
32735 | wxPyEndAllowThreads(__tstate); | |
32736 | if (PyErr_Occurred()) SWIG_fail; | |
32737 | } | |
32738 | Py_INCREF(Py_None); resultobj = Py_None; | |
32739 | return resultobj; | |
32740 | fail: | |
32741 | return NULL; | |
32742 | } | |
32743 | ||
32744 | ||
c370783e | 32745 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32746 | PyObject *resultobj; |
32747 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32748 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32749 | PyObject * obj0 = 0 ; | |
32750 | PyObject * obj1 = 0 ; | |
32751 | char *kwnames[] = { | |
32752 | (char *) "self",(char *) "child", NULL | |
32753 | }; | |
32754 | ||
32755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
32756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32758 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
32760 | { |
32761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32762 | (arg1)->base_RemoveChild(arg2); | |
32763 | ||
32764 | wxPyEndAllowThreads(__tstate); | |
32765 | if (PyErr_Occurred()) SWIG_fail; | |
32766 | } | |
32767 | Py_INCREF(Py_None); resultobj = Py_None; | |
32768 | return resultobj; | |
32769 | fail: | |
32770 | return NULL; | |
32771 | } | |
32772 | ||
32773 | ||
c370783e | 32774 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32775 | PyObject *resultobj; |
32776 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32777 | bool result; | |
32778 | PyObject * obj0 = 0 ; | |
32779 | char *kwnames[] = { | |
32780 | (char *) "self", NULL | |
32781 | }; | |
32782 | ||
32783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32786 | { |
32787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 32788 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
32789 | |
32790 | wxPyEndAllowThreads(__tstate); | |
32791 | if (PyErr_Occurred()) SWIG_fail; | |
32792 | } | |
32793 | { | |
32794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32795 | } | |
32796 | return resultobj; | |
32797 | fail: | |
32798 | return NULL; | |
32799 | } | |
32800 | ||
32801 | ||
c370783e | 32802 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
a5ee0656 RD |
32803 | PyObject *resultobj; |
32804 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32805 | wxVisualAttributes result; | |
32806 | PyObject * obj0 = 0 ; | |
32807 | char *kwnames[] = { | |
32808 | (char *) "self", NULL | |
32809 | }; | |
32810 | ||
32811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a5ee0656 RD |
32814 | { |
32815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32816 | result = (arg1)->base_GetDefaultAttributes(); | |
32817 | ||
32818 | wxPyEndAllowThreads(__tstate); | |
32819 | if (PyErr_Occurred()) SWIG_fail; | |
32820 | } | |
32821 | { | |
32822 | wxVisualAttributes * resultptr; | |
36ed4f51 | 32823 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
a5ee0656 RD |
32824 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
32825 | } | |
32826 | return resultobj; | |
32827 | fail: | |
32828 | return NULL; | |
32829 | } | |
32830 | ||
32831 | ||
8d38bd1d RD |
32832 | static PyObject *_wrap_PyControl_base_OnInternalIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
32833 | PyObject *resultobj; | |
32834 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32835 | PyObject * obj0 = 0 ; | |
32836 | char *kwnames[] = { | |
32837 | (char *) "self", NULL | |
32838 | }; | |
32839 | ||
32840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_OnInternalIdle",kwnames,&obj0)) goto fail; | |
32841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32843 | { | |
32844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32845 | (arg1)->base_OnInternalIdle(); | |
32846 | ||
32847 | wxPyEndAllowThreads(__tstate); | |
32848 | if (PyErr_Occurred()) SWIG_fail; | |
32849 | } | |
32850 | Py_INCREF(Py_None); resultobj = Py_None; | |
32851 | return resultobj; | |
32852 | fail: | |
32853 | return NULL; | |
32854 | } | |
32855 | ||
32856 | ||
c370783e | 32857 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32858 | PyObject *obj; |
32859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32860 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
32861 | Py_INCREF(obj); | |
32862 | return Py_BuildValue((char *)""); | |
32863 | } | |
c370783e | 32864 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32865 | PyObject *resultobj; |
32866 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
32867 | int arg2 = (int) 0 ; | |
32868 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32869 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32870 | wxHelpEvent *result; | |
32871 | wxPoint temp3 ; | |
32872 | PyObject * obj0 = 0 ; | |
32873 | PyObject * obj1 = 0 ; | |
32874 | PyObject * obj2 = 0 ; | |
32875 | char *kwnames[] = { | |
32876 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
32877 | }; | |
32878 | ||
32879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32880 | if (obj0) { | |
36ed4f51 RD |
32881 | { |
32882 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
32883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32884 | } | |
d55e5bfc RD |
32885 | } |
32886 | if (obj1) { | |
36ed4f51 RD |
32887 | { |
32888 | arg2 = (int)(SWIG_As_int(obj1)); | |
32889 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32890 | } | |
d55e5bfc RD |
32891 | } |
32892 | if (obj2) { | |
32893 | { | |
32894 | arg3 = &temp3; | |
32895 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32896 | } | |
32897 | } | |
32898 | { | |
32899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32900 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
32901 | ||
32902 | wxPyEndAllowThreads(__tstate); | |
32903 | if (PyErr_Occurred()) SWIG_fail; | |
32904 | } | |
32905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
32906 | return resultobj; | |
32907 | fail: | |
32908 | return NULL; | |
32909 | } | |
32910 | ||
32911 | ||
c370783e | 32912 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32913 | PyObject *resultobj; |
32914 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
32915 | wxPoint result; | |
32916 | PyObject * obj0 = 0 ; | |
32917 | char *kwnames[] = { | |
32918 | (char *) "self", NULL | |
32919 | }; | |
32920 | ||
32921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
32923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32924 | { |
32925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32926 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
32927 | ||
32928 | wxPyEndAllowThreads(__tstate); | |
32929 | if (PyErr_Occurred()) SWIG_fail; | |
32930 | } | |
32931 | { | |
32932 | wxPoint * resultptr; | |
36ed4f51 | 32933 | resultptr = new wxPoint((wxPoint const &)(result)); |
d55e5bfc RD |
32934 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
32935 | } | |
32936 | return resultobj; | |
32937 | fail: | |
32938 | return NULL; | |
32939 | } | |
32940 | ||
32941 | ||
c370783e | 32942 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32943 | PyObject *resultobj; |
32944 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
32945 | wxPoint *arg2 = 0 ; | |
32946 | wxPoint temp2 ; | |
32947 | PyObject * obj0 = 0 ; | |
32948 | PyObject * obj1 = 0 ; | |
32949 | char *kwnames[] = { | |
32950 | (char *) "self",(char *) "pos", NULL | |
32951 | }; | |
32952 | ||
32953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
32954 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
32955 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32956 | { |
32957 | arg2 = &temp2; | |
32958 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
32959 | } | |
32960 | { | |
32961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32962 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
32963 | ||
32964 | wxPyEndAllowThreads(__tstate); | |
32965 | if (PyErr_Occurred()) SWIG_fail; | |
32966 | } | |
32967 | Py_INCREF(Py_None); resultobj = Py_None; | |
32968 | return resultobj; | |
32969 | fail: | |
32970 | return NULL; | |
32971 | } | |
32972 | ||
32973 | ||
c370783e | 32974 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32975 | PyObject *resultobj; |
32976 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
32977 | wxString *result; | |
32978 | PyObject * obj0 = 0 ; | |
32979 | char *kwnames[] = { | |
32980 | (char *) "self", NULL | |
32981 | }; | |
32982 | ||
32983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
32984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
32985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32986 | { |
32987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32988 | { | |
32989 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
32990 | result = (wxString *) &_result_ref; | |
32991 | } | |
32992 | ||
32993 | wxPyEndAllowThreads(__tstate); | |
32994 | if (PyErr_Occurred()) SWIG_fail; | |
32995 | } | |
32996 | { | |
32997 | #if wxUSE_UNICODE | |
32998 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32999 | #else | |
33000 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33001 | #endif | |
33002 | } | |
33003 | return resultobj; | |
33004 | fail: | |
33005 | return NULL; | |
33006 | } | |
33007 | ||
33008 | ||
c370783e | 33009 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33010 | PyObject *resultobj; |
33011 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33012 | wxString *arg2 = 0 ; | |
b411df4a | 33013 | bool temp2 = false ; |
d55e5bfc RD |
33014 | PyObject * obj0 = 0 ; |
33015 | PyObject * obj1 = 0 ; | |
33016 | char *kwnames[] = { | |
33017 | (char *) "self",(char *) "link", NULL | |
33018 | }; | |
33019 | ||
33020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33023 | { |
33024 | arg2 = wxString_in_helper(obj1); | |
33025 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33026 | temp2 = true; |
d55e5bfc RD |
33027 | } |
33028 | { | |
33029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33030 | (arg1)->SetLink((wxString const &)*arg2); | |
33031 | ||
33032 | wxPyEndAllowThreads(__tstate); | |
33033 | if (PyErr_Occurred()) SWIG_fail; | |
33034 | } | |
33035 | Py_INCREF(Py_None); resultobj = Py_None; | |
33036 | { | |
33037 | if (temp2) | |
33038 | delete arg2; | |
33039 | } | |
33040 | return resultobj; | |
33041 | fail: | |
33042 | { | |
33043 | if (temp2) | |
33044 | delete arg2; | |
33045 | } | |
33046 | return NULL; | |
33047 | } | |
33048 | ||
33049 | ||
c370783e | 33050 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33051 | PyObject *resultobj; |
33052 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33053 | wxString *result; | |
33054 | PyObject * obj0 = 0 ; | |
33055 | char *kwnames[] = { | |
33056 | (char *) "self", NULL | |
33057 | }; | |
33058 | ||
33059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
33060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33062 | { |
33063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33064 | { | |
33065 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
33066 | result = (wxString *) &_result_ref; | |
33067 | } | |
33068 | ||
33069 | wxPyEndAllowThreads(__tstate); | |
33070 | if (PyErr_Occurred()) SWIG_fail; | |
33071 | } | |
33072 | { | |
33073 | #if wxUSE_UNICODE | |
33074 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33075 | #else | |
33076 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33077 | #endif | |
33078 | } | |
33079 | return resultobj; | |
33080 | fail: | |
33081 | return NULL; | |
33082 | } | |
33083 | ||
33084 | ||
c370783e | 33085 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33086 | PyObject *resultobj; |
33087 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33088 | wxString *arg2 = 0 ; | |
b411df4a | 33089 | bool temp2 = false ; |
d55e5bfc RD |
33090 | PyObject * obj0 = 0 ; |
33091 | PyObject * obj1 = 0 ; | |
33092 | char *kwnames[] = { | |
33093 | (char *) "self",(char *) "target", NULL | |
33094 | }; | |
33095 | ||
33096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33099 | { |
33100 | arg2 = wxString_in_helper(obj1); | |
33101 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33102 | temp2 = true; |
d55e5bfc RD |
33103 | } |
33104 | { | |
33105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33106 | (arg1)->SetTarget((wxString const &)*arg2); | |
33107 | ||
33108 | wxPyEndAllowThreads(__tstate); | |
33109 | if (PyErr_Occurred()) SWIG_fail; | |
33110 | } | |
33111 | Py_INCREF(Py_None); resultobj = Py_None; | |
33112 | { | |
33113 | if (temp2) | |
33114 | delete arg2; | |
33115 | } | |
33116 | return resultobj; | |
33117 | fail: | |
33118 | { | |
33119 | if (temp2) | |
33120 | delete arg2; | |
33121 | } | |
33122 | return NULL; | |
33123 | } | |
33124 | ||
33125 | ||
c370783e | 33126 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33127 | PyObject *obj; |
33128 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33129 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
33130 | Py_INCREF(obj); | |
33131 | return Py_BuildValue((char *)""); | |
33132 | } | |
c370783e | 33133 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33134 | PyObject *resultobj; |
33135 | wxWindow *arg1 = (wxWindow *) NULL ; | |
b411df4a | 33136 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33137 | wxContextHelp *result; |
33138 | PyObject * obj0 = 0 ; | |
33139 | PyObject * obj1 = 0 ; | |
33140 | char *kwnames[] = { | |
33141 | (char *) "window",(char *) "doNow", NULL | |
33142 | }; | |
33143 | ||
33144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
33145 | if (obj0) { | |
36ed4f51 RD |
33146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33148 | } |
33149 | if (obj1) { | |
36ed4f51 RD |
33150 | { |
33151 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
33152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33153 | } | |
d55e5bfc RD |
33154 | } |
33155 | { | |
0439c23b | 33156 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33158 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
33159 | ||
33160 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33161 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33162 | } |
33163 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
33164 | return resultobj; | |
33165 | fail: | |
33166 | return NULL; | |
33167 | } | |
33168 | ||
33169 | ||
c370783e | 33170 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33171 | PyObject *resultobj; |
33172 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33173 | PyObject * obj0 = 0 ; | |
33174 | char *kwnames[] = { | |
33175 | (char *) "self", NULL | |
33176 | }; | |
33177 | ||
33178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
33179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33181 | { |
33182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33183 | delete arg1; | |
33184 | ||
33185 | wxPyEndAllowThreads(__tstate); | |
33186 | if (PyErr_Occurred()) SWIG_fail; | |
33187 | } | |
33188 | Py_INCREF(Py_None); resultobj = Py_None; | |
33189 | return resultobj; | |
33190 | fail: | |
33191 | return NULL; | |
33192 | } | |
33193 | ||
33194 | ||
c370783e | 33195 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33196 | PyObject *resultobj; |
33197 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33198 | wxWindow *arg2 = (wxWindow *) NULL ; | |
33199 | bool result; | |
33200 | PyObject * obj0 = 0 ; | |
33201 | PyObject * obj1 = 0 ; | |
33202 | char *kwnames[] = { | |
33203 | (char *) "self",(char *) "window", NULL | |
33204 | }; | |
33205 | ||
33206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 33209 | if (obj1) { |
36ed4f51 RD |
33210 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33211 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33212 | } |
33213 | { | |
33214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33215 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
33216 | ||
33217 | wxPyEndAllowThreads(__tstate); | |
33218 | if (PyErr_Occurred()) SWIG_fail; | |
33219 | } | |
33220 | { | |
33221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33222 | } | |
33223 | return resultobj; | |
33224 | fail: | |
33225 | return NULL; | |
33226 | } | |
33227 | ||
33228 | ||
c370783e | 33229 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33230 | PyObject *resultobj; |
33231 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33232 | bool result; | |
33233 | PyObject * obj0 = 0 ; | |
33234 | char *kwnames[] = { | |
33235 | (char *) "self", NULL | |
33236 | }; | |
33237 | ||
33238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
33239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33241 | { |
33242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33243 | result = (bool)(arg1)->EndContextHelp(); | |
33244 | ||
33245 | wxPyEndAllowThreads(__tstate); | |
33246 | if (PyErr_Occurred()) SWIG_fail; | |
33247 | } | |
33248 | { | |
33249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33250 | } | |
33251 | return resultobj; | |
33252 | fail: | |
33253 | return NULL; | |
33254 | } | |
33255 | ||
33256 | ||
c370783e | 33257 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33258 | PyObject *obj; |
33259 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33260 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
33261 | Py_INCREF(obj); | |
33262 | return Py_BuildValue((char *)""); | |
33263 | } | |
c370783e | 33264 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33265 | PyObject *resultobj; |
33266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33267 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
33268 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33269 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33270 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33271 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33272 | long arg5 = (long) wxBU_AUTODRAW ; | |
33273 | wxContextHelpButton *result; | |
33274 | wxPoint temp3 ; | |
33275 | wxSize temp4 ; | |
33276 | PyObject * obj0 = 0 ; | |
33277 | PyObject * obj1 = 0 ; | |
33278 | PyObject * obj2 = 0 ; | |
33279 | PyObject * obj3 = 0 ; | |
33280 | PyObject * obj4 = 0 ; | |
33281 | char *kwnames[] = { | |
33282 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
33283 | }; | |
33284 | ||
33285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
33286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 33288 | if (obj1) { |
36ed4f51 RD |
33289 | { |
33290 | arg2 = (int)(SWIG_As_int(obj1)); | |
33291 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33292 | } | |
d55e5bfc RD |
33293 | } |
33294 | if (obj2) { | |
33295 | { | |
33296 | arg3 = &temp3; | |
33297 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33298 | } | |
33299 | } | |
33300 | if (obj3) { | |
33301 | { | |
33302 | arg4 = &temp4; | |
33303 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33304 | } | |
33305 | } | |
33306 | if (obj4) { | |
36ed4f51 RD |
33307 | { |
33308 | arg5 = (long)(SWIG_As_long(obj4)); | |
33309 | if (SWIG_arg_fail(5)) SWIG_fail; | |
33310 | } | |
d55e5bfc RD |
33311 | } |
33312 | { | |
0439c23b | 33313 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33315 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
33316 | ||
33317 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33318 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33319 | } |
33320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
33321 | return resultobj; | |
33322 | fail: | |
33323 | return NULL; | |
33324 | } | |
33325 | ||
33326 | ||
c370783e | 33327 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33328 | PyObject *obj; |
33329 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33330 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
33331 | Py_INCREF(obj); | |
33332 | return Py_BuildValue((char *)""); | |
33333 | } | |
c370783e | 33334 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33335 | PyObject *resultobj; |
33336 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33337 | wxHelpProvider *result; | |
33338 | PyObject * obj0 = 0 ; | |
33339 | char *kwnames[] = { | |
33340 | (char *) "helpProvider", NULL | |
33341 | }; | |
33342 | ||
33343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
33344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33346 | { |
33347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33348 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
33349 | ||
33350 | wxPyEndAllowThreads(__tstate); | |
33351 | if (PyErr_Occurred()) SWIG_fail; | |
33352 | } | |
33353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
33354 | return resultobj; | |
33355 | fail: | |
33356 | return NULL; | |
33357 | } | |
33358 | ||
33359 | ||
c370783e | 33360 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33361 | PyObject *resultobj; |
33362 | wxHelpProvider *result; | |
33363 | char *kwnames[] = { | |
33364 | NULL | |
33365 | }; | |
33366 | ||
33367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
33368 | { | |
33369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33370 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
33371 | ||
33372 | wxPyEndAllowThreads(__tstate); | |
33373 | if (PyErr_Occurred()) SWIG_fail; | |
33374 | } | |
33375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
33376 | return resultobj; | |
33377 | fail: | |
33378 | return NULL; | |
33379 | } | |
33380 | ||
33381 | ||
c370783e | 33382 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33383 | PyObject *resultobj; |
33384 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33385 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33386 | wxString result; | |
33387 | PyObject * obj0 = 0 ; | |
33388 | PyObject * obj1 = 0 ; | |
33389 | char *kwnames[] = { | |
33390 | (char *) "self",(char *) "window", NULL | |
33391 | }; | |
33392 | ||
33393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33396 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33397 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33398 | { |
33399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33400 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
33401 | ||
33402 | wxPyEndAllowThreads(__tstate); | |
33403 | if (PyErr_Occurred()) SWIG_fail; | |
33404 | } | |
33405 | { | |
33406 | #if wxUSE_UNICODE | |
33407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33408 | #else | |
33409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33410 | #endif | |
33411 | } | |
33412 | return resultobj; | |
33413 | fail: | |
33414 | return NULL; | |
33415 | } | |
33416 | ||
33417 | ||
c370783e | 33418 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33419 | PyObject *resultobj; |
33420 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33421 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33422 | bool result; | |
33423 | PyObject * obj0 = 0 ; | |
33424 | PyObject * obj1 = 0 ; | |
33425 | char *kwnames[] = { | |
33426 | (char *) "self",(char *) "window", NULL | |
33427 | }; | |
33428 | ||
33429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33432 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33433 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33434 | { |
33435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33436 | result = (bool)(arg1)->ShowHelp(arg2); | |
33437 | ||
33438 | wxPyEndAllowThreads(__tstate); | |
33439 | if (PyErr_Occurred()) SWIG_fail; | |
33440 | } | |
33441 | { | |
33442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33443 | } | |
33444 | return resultobj; | |
33445 | fail: | |
33446 | return NULL; | |
33447 | } | |
33448 | ||
33449 | ||
c370783e | 33450 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33451 | PyObject *resultobj; |
33452 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33453 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33454 | wxString *arg3 = 0 ; | |
b411df4a | 33455 | bool temp3 = false ; |
d55e5bfc RD |
33456 | PyObject * obj0 = 0 ; |
33457 | PyObject * obj1 = 0 ; | |
33458 | PyObject * obj2 = 0 ; | |
33459 | char *kwnames[] = { | |
33460 | (char *) "self",(char *) "window",(char *) "text", NULL | |
33461 | }; | |
33462 | ||
33463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
33464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33466 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33467 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33468 | { |
33469 | arg3 = wxString_in_helper(obj2); | |
33470 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 33471 | temp3 = true; |
d55e5bfc RD |
33472 | } |
33473 | { | |
33474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33475 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33476 | ||
33477 | wxPyEndAllowThreads(__tstate); | |
33478 | if (PyErr_Occurred()) SWIG_fail; | |
33479 | } | |
33480 | Py_INCREF(Py_None); resultobj = Py_None; | |
33481 | { | |
33482 | if (temp3) | |
33483 | delete arg3; | |
33484 | } | |
33485 | return resultobj; | |
33486 | fail: | |
33487 | { | |
33488 | if (temp3) | |
33489 | delete arg3; | |
33490 | } | |
33491 | return NULL; | |
33492 | } | |
33493 | ||
33494 | ||
c370783e | 33495 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33496 | PyObject *resultobj; |
33497 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33498 | int arg2 ; | |
33499 | wxString *arg3 = 0 ; | |
b411df4a | 33500 | bool temp3 = false ; |
d55e5bfc RD |
33501 | PyObject * obj0 = 0 ; |
33502 | PyObject * obj1 = 0 ; | |
33503 | PyObject * obj2 = 0 ; | |
33504 | char *kwnames[] = { | |
33505 | (char *) "self",(char *) "id",(char *) "text", NULL | |
33506 | }; | |
33507 | ||
33508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
33509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33511 | { | |
33512 | arg2 = (int)(SWIG_As_int(obj1)); | |
33513 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33514 | } | |
d55e5bfc RD |
33515 | { |
33516 | arg3 = wxString_in_helper(obj2); | |
33517 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 33518 | temp3 = true; |
d55e5bfc RD |
33519 | } |
33520 | { | |
33521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33522 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33523 | ||
33524 | wxPyEndAllowThreads(__tstate); | |
33525 | if (PyErr_Occurred()) SWIG_fail; | |
33526 | } | |
33527 | Py_INCREF(Py_None); resultobj = Py_None; | |
33528 | { | |
33529 | if (temp3) | |
33530 | delete arg3; | |
33531 | } | |
33532 | return resultobj; | |
33533 | fail: | |
33534 | { | |
33535 | if (temp3) | |
33536 | delete arg3; | |
33537 | } | |
33538 | return NULL; | |
33539 | } | |
33540 | ||
33541 | ||
c370783e | 33542 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33543 | PyObject *resultobj; |
33544 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33545 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33546 | PyObject * obj0 = 0 ; | |
33547 | PyObject * obj1 = 0 ; | |
33548 | char *kwnames[] = { | |
33549 | (char *) "self",(char *) "window", NULL | |
33550 | }; | |
33551 | ||
33552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33553 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33554 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33555 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33556 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33557 | { |
33558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33559 | (arg1)->RemoveHelp(arg2); | |
33560 | ||
33561 | wxPyEndAllowThreads(__tstate); | |
33562 | if (PyErr_Occurred()) SWIG_fail; | |
33563 | } | |
33564 | Py_INCREF(Py_None); resultobj = Py_None; | |
33565 | return resultobj; | |
33566 | fail: | |
33567 | return NULL; | |
33568 | } | |
33569 | ||
33570 | ||
c370783e | 33571 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33572 | PyObject *resultobj; |
33573 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33574 | PyObject * obj0 = 0 ; | |
33575 | char *kwnames[] = { | |
33576 | (char *) "self", NULL | |
33577 | }; | |
33578 | ||
33579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
33580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33582 | { |
33583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33584 | wxHelpProvider_Destroy(arg1); | |
33585 | ||
33586 | wxPyEndAllowThreads(__tstate); | |
33587 | if (PyErr_Occurred()) SWIG_fail; | |
33588 | } | |
33589 | Py_INCREF(Py_None); resultobj = Py_None; | |
33590 | return resultobj; | |
33591 | fail: | |
33592 | return NULL; | |
33593 | } | |
33594 | ||
33595 | ||
c370783e | 33596 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33597 | PyObject *obj; |
33598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33599 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
33600 | Py_INCREF(obj); | |
33601 | return Py_BuildValue((char *)""); | |
33602 | } | |
c370783e | 33603 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33604 | PyObject *resultobj; |
33605 | wxSimpleHelpProvider *result; | |
33606 | char *kwnames[] = { | |
33607 | NULL | |
33608 | }; | |
33609 | ||
33610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
33611 | { | |
33612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33613 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
33614 | ||
33615 | wxPyEndAllowThreads(__tstate); | |
33616 | if (PyErr_Occurred()) SWIG_fail; | |
33617 | } | |
33618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
33619 | return resultobj; | |
33620 | fail: | |
33621 | return NULL; | |
33622 | } | |
33623 | ||
33624 | ||
c370783e | 33625 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33626 | PyObject *obj; |
33627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33628 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
33629 | Py_INCREF(obj); | |
33630 | return Py_BuildValue((char *)""); | |
33631 | } | |
c370783e | 33632 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33633 | PyObject *resultobj; |
33634 | wxBitmap *arg1 = 0 ; | |
33635 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33636 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33637 | wxGenericDragImage *result; | |
33638 | PyObject * obj0 = 0 ; | |
33639 | PyObject * obj1 = 0 ; | |
33640 | char *kwnames[] = { | |
33641 | (char *) "image",(char *) "cursor", NULL | |
33642 | }; | |
33643 | ||
33644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33645 | { |
33646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
33647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33648 | if (arg1 == NULL) { | |
33649 | SWIG_null_ref("wxBitmap"); | |
33650 | } | |
33651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33652 | } |
33653 | if (obj1) { | |
36ed4f51 RD |
33654 | { |
33655 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33657 | if (arg2 == NULL) { | |
33658 | SWIG_null_ref("wxCursor"); | |
33659 | } | |
33660 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33661 | } |
33662 | } | |
33663 | { | |
0439c23b | 33664 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33666 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
33667 | ||
33668 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33669 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33670 | } |
33671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33672 | return resultobj; | |
33673 | fail: | |
33674 | return NULL; | |
33675 | } | |
33676 | ||
33677 | ||
c370783e | 33678 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33679 | PyObject *resultobj; |
33680 | wxIcon *arg1 = 0 ; | |
33681 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33682 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33683 | wxGenericDragImage *result; | |
33684 | PyObject * obj0 = 0 ; | |
33685 | PyObject * obj1 = 0 ; | |
33686 | char *kwnames[] = { | |
33687 | (char *) "image",(char *) "cursor", NULL | |
33688 | }; | |
33689 | ||
33690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33691 | { |
33692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
33693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33694 | if (arg1 == NULL) { | |
33695 | SWIG_null_ref("wxIcon"); | |
33696 | } | |
33697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33698 | } |
33699 | if (obj1) { | |
36ed4f51 RD |
33700 | { |
33701 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33702 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33703 | if (arg2 == NULL) { | |
33704 | SWIG_null_ref("wxCursor"); | |
33705 | } | |
33706 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33707 | } |
33708 | } | |
33709 | { | |
0439c23b | 33710 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33712 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
33713 | ||
33714 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33715 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33716 | } |
33717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33718 | return resultobj; | |
33719 | fail: | |
33720 | return NULL; | |
33721 | } | |
33722 | ||
33723 | ||
c370783e | 33724 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33725 | PyObject *resultobj; |
33726 | wxString *arg1 = 0 ; | |
33727 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33728 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33729 | wxGenericDragImage *result; | |
b411df4a | 33730 | bool temp1 = false ; |
d55e5bfc RD |
33731 | PyObject * obj0 = 0 ; |
33732 | PyObject * obj1 = 0 ; | |
33733 | char *kwnames[] = { | |
33734 | (char *) "str",(char *) "cursor", NULL | |
33735 | }; | |
33736 | ||
33737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
33738 | { | |
33739 | arg1 = wxString_in_helper(obj0); | |
33740 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 33741 | temp1 = true; |
d55e5bfc RD |
33742 | } |
33743 | if (obj1) { | |
36ed4f51 RD |
33744 | { |
33745 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33746 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33747 | if (arg2 == NULL) { | |
33748 | SWIG_null_ref("wxCursor"); | |
33749 | } | |
33750 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33751 | } |
33752 | } | |
33753 | { | |
0439c23b | 33754 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33756 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
33757 | ||
33758 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33759 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33760 | } |
33761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33762 | { | |
33763 | if (temp1) | |
33764 | delete arg1; | |
33765 | } | |
33766 | return resultobj; | |
33767 | fail: | |
33768 | { | |
33769 | if (temp1) | |
33770 | delete arg1; | |
33771 | } | |
33772 | return NULL; | |
33773 | } | |
33774 | ||
33775 | ||
c370783e | 33776 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33777 | PyObject *resultobj; |
33778 | wxPyTreeCtrl *arg1 = 0 ; | |
33779 | wxTreeItemId *arg2 = 0 ; | |
33780 | wxGenericDragImage *result; | |
33781 | PyObject * obj0 = 0 ; | |
33782 | PyObject * obj1 = 0 ; | |
33783 | char *kwnames[] = { | |
33784 | (char *) "treeCtrl",(char *) "id", NULL | |
33785 | }; | |
33786 | ||
33787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33788 | { |
33789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33791 | if (arg1 == NULL) { | |
33792 | SWIG_null_ref("wxPyTreeCtrl"); | |
33793 | } | |
33794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 33795 | } |
36ed4f51 RD |
33796 | { |
33797 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
33798 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33799 | if (arg2 == NULL) { | |
33800 | SWIG_null_ref("wxTreeItemId"); | |
33801 | } | |
33802 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33803 | } |
33804 | { | |
0439c23b | 33805 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33807 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
33808 | ||
33809 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33810 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33811 | } |
33812 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33813 | return resultobj; | |
33814 | fail: | |
33815 | return NULL; | |
33816 | } | |
33817 | ||
33818 | ||
c370783e | 33819 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33820 | PyObject *resultobj; |
33821 | wxPyListCtrl *arg1 = 0 ; | |
33822 | long arg2 ; | |
33823 | wxGenericDragImage *result; | |
33824 | PyObject * obj0 = 0 ; | |
33825 | PyObject * obj1 = 0 ; | |
33826 | char *kwnames[] = { | |
33827 | (char *) "listCtrl",(char *) "id", NULL | |
33828 | }; | |
33829 | ||
33830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33831 | { |
33832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33834 | if (arg1 == NULL) { | |
33835 | SWIG_null_ref("wxPyListCtrl"); | |
33836 | } | |
33837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33838 | } | |
33839 | { | |
33840 | arg2 = (long)(SWIG_As_long(obj1)); | |
33841 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 33842 | } |
d55e5bfc | 33843 | { |
0439c23b | 33844 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33846 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
33847 | ||
33848 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33849 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33850 | } |
33851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33852 | return resultobj; | |
33853 | fail: | |
33854 | return NULL; | |
33855 | } | |
33856 | ||
33857 | ||
c370783e | 33858 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33859 | PyObject *resultobj; |
33860 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
33861 | PyObject * obj0 = 0 ; | |
33862 | char *kwnames[] = { | |
33863 | (char *) "self", NULL | |
33864 | }; | |
33865 | ||
33866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
33867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
33868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33869 | { |
33870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33871 | delete arg1; | |
33872 | ||
33873 | wxPyEndAllowThreads(__tstate); | |
33874 | if (PyErr_Occurred()) SWIG_fail; | |
33875 | } | |
33876 | Py_INCREF(Py_None); resultobj = Py_None; | |
33877 | return resultobj; | |
33878 | fail: | |
33879 | return NULL; | |
33880 | } | |
33881 | ||
33882 | ||
c370783e | 33883 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33884 | PyObject *resultobj; |
33885 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
33886 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
33887 | PyObject * obj0 = 0 ; | |
33888 | PyObject * obj1 = 0 ; | |
33889 | char *kwnames[] = { | |
33890 | (char *) "self",(char *) "bitmap", NULL | |
33891 | }; | |
33892 | ||
33893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
33894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
33895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33896 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
33897 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33898 | { |
33899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33900 | (arg1)->SetBackingBitmap(arg2); | |
33901 | ||
33902 | wxPyEndAllowThreads(__tstate); | |
33903 | if (PyErr_Occurred()) SWIG_fail; | |
33904 | } | |
33905 | Py_INCREF(Py_None); resultobj = Py_None; | |
33906 | return resultobj; | |
33907 | fail: | |
33908 | return NULL; | |
33909 | } | |
33910 | ||
33911 | ||
c370783e | 33912 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33913 | PyObject *resultobj; |
33914 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
33915 | wxPoint *arg2 = 0 ; | |
33916 | wxWindow *arg3 = (wxWindow *) 0 ; | |
b411df4a | 33917 | bool arg4 = (bool) false ; |
d55e5bfc RD |
33918 | wxRect *arg5 = (wxRect *) NULL ; |
33919 | bool result; | |
33920 | wxPoint temp2 ; | |
33921 | PyObject * obj0 = 0 ; | |
33922 | PyObject * obj1 = 0 ; | |
33923 | PyObject * obj2 = 0 ; | |
33924 | PyObject * obj3 = 0 ; | |
33925 | PyObject * obj4 = 0 ; | |
33926 | char *kwnames[] = { | |
33927 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
33928 | }; | |
33929 | ||
33930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
33931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
33932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33933 | { |
33934 | arg2 = &temp2; | |
33935 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33936 | } | |
36ed4f51 RD |
33937 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33938 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc | 33939 | if (obj3) { |
36ed4f51 RD |
33940 | { |
33941 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
33942 | if (SWIG_arg_fail(4)) SWIG_fail; | |
33943 | } | |
d55e5bfc RD |
33944 | } |
33945 | if (obj4) { | |
36ed4f51 RD |
33946 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
33947 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
33948 | } |
33949 | { | |
33950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33951 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
33952 | ||
33953 | wxPyEndAllowThreads(__tstate); | |
33954 | if (PyErr_Occurred()) SWIG_fail; | |
33955 | } | |
33956 | { | |
33957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33958 | } | |
33959 | return resultobj; | |
33960 | fail: | |
33961 | return NULL; | |
33962 | } | |
33963 | ||
33964 | ||
c370783e | 33965 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33966 | PyObject *resultobj; |
33967 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
33968 | wxPoint *arg2 = 0 ; | |
33969 | wxWindow *arg3 = (wxWindow *) 0 ; | |
33970 | wxWindow *arg4 = (wxWindow *) 0 ; | |
33971 | bool result; | |
33972 | wxPoint temp2 ; | |
33973 | PyObject * obj0 = 0 ; | |
33974 | PyObject * obj1 = 0 ; | |
33975 | PyObject * obj2 = 0 ; | |
33976 | PyObject * obj3 = 0 ; | |
33977 | char *kwnames[] = { | |
33978 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
33979 | }; | |
33980 | ||
33981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36ed4f51 RD |
33982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
33983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33984 | { |
33985 | arg2 = &temp2; | |
33986 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33987 | } | |
36ed4f51 RD |
33988 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33989 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33990 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33991 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
33992 | { |
33993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33994 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
33995 | ||
33996 | wxPyEndAllowThreads(__tstate); | |
33997 | if (PyErr_Occurred()) SWIG_fail; | |
33998 | } | |
33999 | { | |
34000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34001 | } | |
34002 | return resultobj; | |
34003 | fail: | |
34004 | return NULL; | |
34005 | } | |
34006 | ||
34007 | ||
c370783e | 34008 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34009 | PyObject *resultobj; |
34010 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34011 | bool result; | |
34012 | PyObject * obj0 = 0 ; | |
34013 | char *kwnames[] = { | |
34014 | (char *) "self", NULL | |
34015 | }; | |
34016 | ||
34017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
34018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34020 | { |
34021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34022 | result = (bool)(arg1)->EndDrag(); | |
34023 | ||
34024 | wxPyEndAllowThreads(__tstate); | |
34025 | if (PyErr_Occurred()) SWIG_fail; | |
34026 | } | |
34027 | { | |
34028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34029 | } | |
34030 | return resultobj; | |
34031 | fail: | |
34032 | return NULL; | |
34033 | } | |
34034 | ||
34035 | ||
c370783e | 34036 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34037 | PyObject *resultobj; |
34038 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34039 | wxPoint *arg2 = 0 ; | |
34040 | bool result; | |
34041 | wxPoint temp2 ; | |
34042 | PyObject * obj0 = 0 ; | |
34043 | PyObject * obj1 = 0 ; | |
34044 | char *kwnames[] = { | |
34045 | (char *) "self",(char *) "pt", NULL | |
34046 | }; | |
34047 | ||
34048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
34049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34051 | { |
34052 | arg2 = &temp2; | |
34053 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34054 | } | |
34055 | { | |
34056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34057 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
34058 | ||
34059 | wxPyEndAllowThreads(__tstate); | |
34060 | if (PyErr_Occurred()) SWIG_fail; | |
34061 | } | |
34062 | { | |
34063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34064 | } | |
34065 | return resultobj; | |
34066 | fail: | |
34067 | return NULL; | |
34068 | } | |
34069 | ||
34070 | ||
c370783e | 34071 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34072 | PyObject *resultobj; |
34073 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34074 | bool result; | |
34075 | PyObject * obj0 = 0 ; | |
34076 | char *kwnames[] = { | |
34077 | (char *) "self", NULL | |
34078 | }; | |
34079 | ||
34080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
34081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34083 | { |
34084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34085 | result = (bool)(arg1)->Show(); | |
34086 | ||
34087 | wxPyEndAllowThreads(__tstate); | |
34088 | if (PyErr_Occurred()) SWIG_fail; | |
34089 | } | |
34090 | { | |
34091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34092 | } | |
34093 | return resultobj; | |
34094 | fail: | |
34095 | return NULL; | |
34096 | } | |
34097 | ||
34098 | ||
c370783e | 34099 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34100 | PyObject *resultobj; |
34101 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34102 | bool result; | |
34103 | PyObject * obj0 = 0 ; | |
34104 | char *kwnames[] = { | |
34105 | (char *) "self", NULL | |
34106 | }; | |
34107 | ||
34108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
36ed4f51 RD |
34109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34111 | { |
34112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34113 | result = (bool)(arg1)->Hide(); | |
34114 | ||
34115 | wxPyEndAllowThreads(__tstate); | |
34116 | if (PyErr_Occurred()) SWIG_fail; | |
34117 | } | |
34118 | { | |
34119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34120 | } | |
34121 | return resultobj; | |
34122 | fail: | |
34123 | return NULL; | |
34124 | } | |
34125 | ||
34126 | ||
c370783e | 34127 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34128 | PyObject *resultobj; |
34129 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34130 | wxPoint *arg2 = 0 ; | |
34131 | wxRect result; | |
34132 | wxPoint temp2 ; | |
34133 | PyObject * obj0 = 0 ; | |
34134 | PyObject * obj1 = 0 ; | |
34135 | char *kwnames[] = { | |
34136 | (char *) "self",(char *) "pos", NULL | |
34137 | }; | |
34138 | ||
34139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
36ed4f51 RD |
34140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34142 | { |
34143 | arg2 = &temp2; | |
34144 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34145 | } | |
34146 | { | |
34147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34148 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
34149 | ||
34150 | wxPyEndAllowThreads(__tstate); | |
34151 | if (PyErr_Occurred()) SWIG_fail; | |
34152 | } | |
34153 | { | |
34154 | wxRect * resultptr; | |
36ed4f51 | 34155 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
34156 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
34157 | } | |
34158 | return resultobj; | |
34159 | fail: | |
34160 | return NULL; | |
34161 | } | |
34162 | ||
34163 | ||
c370783e | 34164 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34165 | PyObject *resultobj; |
34166 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34167 | wxDC *arg2 = 0 ; | |
34168 | wxPoint *arg3 = 0 ; | |
34169 | bool result; | |
34170 | wxPoint temp3 ; | |
34171 | PyObject * obj0 = 0 ; | |
34172 | PyObject * obj1 = 0 ; | |
34173 | PyObject * obj2 = 0 ; | |
34174 | char *kwnames[] = { | |
34175 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
34176 | }; | |
34177 | ||
34178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36ed4f51 RD |
34179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34181 | { | |
34182 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34183 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34184 | if (arg2 == NULL) { | |
34185 | SWIG_null_ref("wxDC"); | |
34186 | } | |
34187 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34188 | } |
34189 | { | |
34190 | arg3 = &temp3; | |
34191 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34192 | } | |
34193 | { | |
34194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34195 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
34196 | ||
34197 | wxPyEndAllowThreads(__tstate); | |
34198 | if (PyErr_Occurred()) SWIG_fail; | |
34199 | } | |
34200 | { | |
34201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34202 | } | |
34203 | return resultobj; | |
34204 | fail: | |
34205 | return NULL; | |
34206 | } | |
34207 | ||
34208 | ||
c370783e | 34209 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34210 | PyObject *resultobj; |
34211 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34212 | wxDC *arg2 = 0 ; | |
34213 | wxMemoryDC *arg3 = 0 ; | |
34214 | wxRect *arg4 = 0 ; | |
34215 | wxRect *arg5 = 0 ; | |
34216 | bool result; | |
34217 | wxRect temp4 ; | |
34218 | wxRect temp5 ; | |
34219 | PyObject * obj0 = 0 ; | |
34220 | PyObject * obj1 = 0 ; | |
34221 | PyObject * obj2 = 0 ; | |
34222 | PyObject * obj3 = 0 ; | |
34223 | PyObject * obj4 = 0 ; | |
34224 | char *kwnames[] = { | |
34225 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
34226 | }; | |
34227 | ||
34228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
34229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34231 | { | |
34232 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34233 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34234 | if (arg2 == NULL) { | |
34235 | SWIG_null_ref("wxDC"); | |
34236 | } | |
34237 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34238 | } | |
34239 | { | |
34240 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
34241 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34242 | if (arg3 == NULL) { | |
34243 | SWIG_null_ref("wxMemoryDC"); | |
34244 | } | |
34245 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
34246 | } |
34247 | { | |
34248 | arg4 = &temp4; | |
34249 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34250 | } | |
34251 | { | |
34252 | arg5 = &temp5; | |
34253 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
34254 | } | |
34255 | { | |
34256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34257 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
34258 | ||
34259 | wxPyEndAllowThreads(__tstate); | |
34260 | if (PyErr_Occurred()) SWIG_fail; | |
34261 | } | |
34262 | { | |
34263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34264 | } | |
34265 | return resultobj; | |
34266 | fail: | |
34267 | return NULL; | |
34268 | } | |
34269 | ||
34270 | ||
c370783e | 34271 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34272 | PyObject *resultobj; |
34273 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34274 | wxPoint *arg2 = 0 ; | |
34275 | wxPoint *arg3 = 0 ; | |
34276 | bool arg4 ; | |
34277 | bool arg5 ; | |
34278 | bool result; | |
34279 | wxPoint temp2 ; | |
34280 | wxPoint temp3 ; | |
34281 | PyObject * obj0 = 0 ; | |
34282 | PyObject * obj1 = 0 ; | |
34283 | PyObject * obj2 = 0 ; | |
34284 | PyObject * obj3 = 0 ; | |
34285 | PyObject * obj4 = 0 ; | |
34286 | char *kwnames[] = { | |
34287 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
34288 | }; | |
34289 | ||
34290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36ed4f51 RD |
34291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34293 | { |
34294 | arg2 = &temp2; | |
34295 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34296 | } | |
34297 | { | |
34298 | arg3 = &temp3; | |
34299 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34300 | } | |
36ed4f51 RD |
34301 | { |
34302 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
34303 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34304 | } | |
34305 | { | |
34306 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
34307 | if (SWIG_arg_fail(5)) SWIG_fail; | |
34308 | } | |
d55e5bfc RD |
34309 | { |
34310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34311 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
34312 | ||
34313 | wxPyEndAllowThreads(__tstate); | |
34314 | if (PyErr_Occurred()) SWIG_fail; | |
34315 | } | |
34316 | { | |
34317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34318 | } | |
34319 | return resultobj; | |
34320 | fail: | |
34321 | return NULL; | |
34322 | } | |
34323 | ||
34324 | ||
c370783e | 34325 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34326 | PyObject *obj; |
34327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34328 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
34329 | Py_INCREF(obj); | |
34330 | return Py_BuildValue((char *)""); | |
34331 | } | |
53aa7709 RD |
34332 | static int _wrap_DatePickerCtrlNameStr_set(PyObject *) { |
34333 | PyErr_SetString(PyExc_TypeError,"Variable DatePickerCtrlNameStr is read-only."); | |
34334 | return 1; | |
34335 | } | |
34336 | ||
34337 | ||
34338 | static PyObject *_wrap_DatePickerCtrlNameStr_get(void) { | |
34339 | PyObject *pyobj; | |
34340 | ||
34341 | { | |
34342 | #if wxUSE_UNICODE | |
34343 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34344 | #else | |
34345 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34346 | #endif | |
34347 | } | |
34348 | return pyobj; | |
34349 | } | |
34350 | ||
34351 | ||
34352 | static PyObject *_wrap_new_DatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
34353 | PyObject *resultobj; | |
34354 | wxWindow *arg1 = (wxWindow *) 0 ; | |
34355 | int arg2 = (int) -1 ; | |
34356 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
34357 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
34358 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
34359 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34360 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34361 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34362 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34363 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34364 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34365 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
34366 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34367 | wxDatePickerCtrl *result; | |
34368 | wxPoint temp4 ; | |
34369 | wxSize temp5 ; | |
34370 | bool temp8 = false ; | |
34371 | PyObject * obj0 = 0 ; | |
34372 | PyObject * obj1 = 0 ; | |
34373 | PyObject * obj2 = 0 ; | |
34374 | PyObject * obj3 = 0 ; | |
34375 | PyObject * obj4 = 0 ; | |
34376 | PyObject * obj5 = 0 ; | |
34377 | PyObject * obj6 = 0 ; | |
34378 | PyObject * obj7 = 0 ; | |
34379 | char *kwnames[] = { | |
34380 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34381 | }; | |
34382 | ||
34383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
34384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34386 | if (obj1) { | |
34387 | { | |
34388 | arg2 = (int)(SWIG_As_int(obj1)); | |
34389 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34390 | } | |
34391 | } | |
34392 | if (obj2) { | |
34393 | { | |
34394 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34395 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34396 | if (arg3 == NULL) { | |
34397 | SWIG_null_ref("wxDateTime"); | |
34398 | } | |
34399 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34400 | } | |
34401 | } | |
34402 | if (obj3) { | |
34403 | { | |
34404 | arg4 = &temp4; | |
34405 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34406 | } | |
34407 | } | |
34408 | if (obj4) { | |
34409 | { | |
34410 | arg5 = &temp5; | |
34411 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34412 | } | |
34413 | } | |
34414 | if (obj5) { | |
34415 | { | |
34416 | arg6 = (long)(SWIG_As_long(obj5)); | |
34417 | if (SWIG_arg_fail(6)) SWIG_fail; | |
34418 | } | |
34419 | } | |
34420 | if (obj6) { | |
34421 | { | |
34422 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34423 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34424 | if (arg7 == NULL) { | |
34425 | SWIG_null_ref("wxValidator"); | |
34426 | } | |
34427 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34428 | } | |
34429 | } | |
34430 | if (obj7) { | |
34431 | { | |
34432 | arg8 = wxString_in_helper(obj7); | |
34433 | if (arg8 == NULL) SWIG_fail; | |
34434 | temp8 = true; | |
34435 | } | |
34436 | } | |
34437 | { | |
34438 | if (!wxPyCheckForApp()) SWIG_fail; | |
34439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34440 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34441 | ||
34442 | wxPyEndAllowThreads(__tstate); | |
34443 | if (PyErr_Occurred()) SWIG_fail; | |
34444 | } | |
34445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34446 | { | |
34447 | if (temp8) | |
34448 | delete arg8; | |
34449 | } | |
34450 | return resultobj; | |
34451 | fail: | |
34452 | { | |
34453 | if (temp8) | |
34454 | delete arg8; | |
34455 | } | |
34456 | return NULL; | |
34457 | } | |
34458 | ||
34459 | ||
34460 | static PyObject *_wrap_new_PreDatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
34461 | PyObject *resultobj; | |
34462 | wxDatePickerCtrl *result; | |
34463 | char *kwnames[] = { | |
34464 | NULL | |
34465 | }; | |
34466 | ||
34467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDatePickerCtrl",kwnames)) goto fail; | |
34468 | { | |
34469 | if (!wxPyCheckForApp()) SWIG_fail; | |
34470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34471 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
34472 | ||
34473 | wxPyEndAllowThreads(__tstate); | |
34474 | if (PyErr_Occurred()) SWIG_fail; | |
34475 | } | |
34476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34477 | return resultobj; | |
34478 | fail: | |
34479 | return NULL; | |
34480 | } | |
34481 | ||
34482 | ||
34483 | static PyObject *_wrap_DatePickerCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
34484 | PyObject *resultobj; | |
34485 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34486 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34487 | int arg3 = (int) -1 ; | |
34488 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
34489 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
34490 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
34491 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
34492 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
34493 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
34494 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34495 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
34496 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
34497 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
34498 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
34499 | bool result; | |
34500 | wxPoint temp5 ; | |
34501 | wxSize temp6 ; | |
34502 | bool temp9 = false ; | |
34503 | PyObject * obj0 = 0 ; | |
34504 | PyObject * obj1 = 0 ; | |
34505 | PyObject * obj2 = 0 ; | |
34506 | PyObject * obj3 = 0 ; | |
34507 | PyObject * obj4 = 0 ; | |
34508 | PyObject * obj5 = 0 ; | |
34509 | PyObject * obj6 = 0 ; | |
34510 | PyObject * obj7 = 0 ; | |
34511 | PyObject * obj8 = 0 ; | |
34512 | char *kwnames[] = { | |
34513 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34514 | }; | |
34515 | ||
34516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
34517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34519 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34520 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34521 | if (obj2) { | |
34522 | { | |
34523 | arg3 = (int)(SWIG_As_int(obj2)); | |
34524 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34525 | } | |
34526 | } | |
34527 | if (obj3) { | |
34528 | { | |
34529 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34530 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34531 | if (arg4 == NULL) { | |
34532 | SWIG_null_ref("wxDateTime"); | |
34533 | } | |
34534 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34535 | } | |
34536 | } | |
34537 | if (obj4) { | |
34538 | { | |
34539 | arg5 = &temp5; | |
34540 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
34541 | } | |
34542 | } | |
34543 | if (obj5) { | |
34544 | { | |
34545 | arg6 = &temp6; | |
34546 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
34547 | } | |
34548 | } | |
34549 | if (obj6) { | |
34550 | { | |
34551 | arg7 = (long)(SWIG_As_long(obj6)); | |
34552 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34553 | } | |
34554 | } | |
34555 | if (obj7) { | |
34556 | { | |
34557 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34558 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34559 | if (arg8 == NULL) { | |
34560 | SWIG_null_ref("wxValidator"); | |
34561 | } | |
34562 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34563 | } | |
34564 | } | |
34565 | if (obj8) { | |
34566 | { | |
34567 | arg9 = wxString_in_helper(obj8); | |
34568 | if (arg9 == NULL) SWIG_fail; | |
34569 | temp9 = true; | |
34570 | } | |
34571 | } | |
34572 | { | |
34573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34574 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
34575 | ||
34576 | wxPyEndAllowThreads(__tstate); | |
34577 | if (PyErr_Occurred()) SWIG_fail; | |
34578 | } | |
34579 | { | |
34580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34581 | } | |
34582 | { | |
34583 | if (temp9) | |
34584 | delete arg9; | |
34585 | } | |
34586 | return resultobj; | |
34587 | fail: | |
34588 | { | |
34589 | if (temp9) | |
34590 | delete arg9; | |
34591 | } | |
34592 | return NULL; | |
34593 | } | |
34594 | ||
34595 | ||
34596 | static PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
34597 | PyObject *resultobj; | |
34598 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34599 | wxDateTime *arg2 = 0 ; | |
34600 | PyObject * obj0 = 0 ; | |
34601 | PyObject * obj1 = 0 ; | |
34602 | char *kwnames[] = { | |
34603 | (char *) "self",(char *) "dt", NULL | |
34604 | }; | |
34605 | ||
34606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
34607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34609 | { | |
34610 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34611 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34612 | if (arg2 == NULL) { | |
34613 | SWIG_null_ref("wxDateTime"); | |
34614 | } | |
34615 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34616 | } | |
34617 | { | |
34618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34619 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
34620 | ||
34621 | wxPyEndAllowThreads(__tstate); | |
34622 | if (PyErr_Occurred()) SWIG_fail; | |
34623 | } | |
34624 | Py_INCREF(Py_None); resultobj = Py_None; | |
34625 | return resultobj; | |
34626 | fail: | |
34627 | return NULL; | |
34628 | } | |
34629 | ||
34630 | ||
34631 | static PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
34632 | PyObject *resultobj; | |
34633 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34634 | wxDateTime result; | |
34635 | PyObject * obj0 = 0 ; | |
34636 | char *kwnames[] = { | |
34637 | (char *) "self", NULL | |
34638 | }; | |
34639 | ||
34640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetValue",kwnames,&obj0)) goto fail; | |
34641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34643 | { | |
34644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34645 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
34646 | ||
34647 | wxPyEndAllowThreads(__tstate); | |
34648 | if (PyErr_Occurred()) SWIG_fail; | |
34649 | } | |
34650 | { | |
34651 | wxDateTime * resultptr; | |
34652 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34653 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34654 | } | |
34655 | return resultobj; | |
34656 | fail: | |
34657 | return NULL; | |
34658 | } | |
34659 | ||
34660 | ||
34661 | static PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
34662 | PyObject *resultobj; | |
34663 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34664 | wxDateTime *arg2 = 0 ; | |
34665 | wxDateTime *arg3 = 0 ; | |
34666 | PyObject * obj0 = 0 ; | |
34667 | PyObject * obj1 = 0 ; | |
34668 | PyObject * obj2 = 0 ; | |
34669 | char *kwnames[] = { | |
34670 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
34671 | }; | |
34672 | ||
34673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34676 | { | |
34677 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34678 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34679 | if (arg2 == NULL) { | |
34680 | SWIG_null_ref("wxDateTime"); | |
34681 | } | |
34682 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34683 | } | |
34684 | { | |
34685 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34686 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34687 | if (arg3 == NULL) { | |
34688 | SWIG_null_ref("wxDateTime"); | |
34689 | } | |
34690 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34691 | } | |
34692 | { | |
34693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34694 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
34695 | ||
34696 | wxPyEndAllowThreads(__tstate); | |
34697 | if (PyErr_Occurred()) SWIG_fail; | |
34698 | } | |
34699 | Py_INCREF(Py_None); resultobj = Py_None; | |
34700 | return resultobj; | |
34701 | fail: | |
34702 | return NULL; | |
34703 | } | |
34704 | ||
34705 | ||
34706 | static PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
34707 | PyObject *resultobj; | |
34708 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34709 | wxDateTime result; | |
34710 | PyObject * obj0 = 0 ; | |
34711 | char *kwnames[] = { | |
34712 | (char *) "self", NULL | |
34713 | }; | |
34714 | ||
34715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetLowerLimit",kwnames,&obj0)) goto fail; | |
34716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34718 | { | |
34719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34720 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
34721 | ||
34722 | wxPyEndAllowThreads(__tstate); | |
34723 | if (PyErr_Occurred()) SWIG_fail; | |
34724 | } | |
34725 | { | |
34726 | wxDateTime * resultptr; | |
34727 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34729 | } | |
34730 | return resultobj; | |
34731 | fail: | |
34732 | return NULL; | |
34733 | } | |
34734 | ||
34735 | ||
34736 | static PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
34737 | PyObject *resultobj; | |
34738 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34739 | wxDateTime result; | |
34740 | PyObject * obj0 = 0 ; | |
34741 | char *kwnames[] = { | |
34742 | (char *) "self", NULL | |
34743 | }; | |
34744 | ||
34745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetUpperLimit",kwnames,&obj0)) goto fail; | |
34746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34748 | { | |
34749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34750 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
34751 | ||
34752 | wxPyEndAllowThreads(__tstate); | |
34753 | if (PyErr_Occurred()) SWIG_fail; | |
34754 | } | |
34755 | { | |
34756 | wxDateTime * resultptr; | |
34757 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34758 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34759 | } | |
34760 | return resultobj; | |
34761 | fail: | |
34762 | return NULL; | |
34763 | } | |
34764 | ||
34765 | ||
34766 | static PyObject * DatePickerCtrl_swigregister(PyObject *, PyObject *args) { | |
34767 | PyObject *obj; | |
34768 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34769 | SWIG_TypeClientData(SWIGTYPE_p_wxDatePickerCtrl, obj); | |
34770 | Py_INCREF(obj); | |
34771 | return Py_BuildValue((char *)""); | |
34772 | } | |
d55e5bfc | 34773 | static PyMethodDef SwigMethods[] = { |
36ed4f51 RD |
34774 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, |
34775 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34776 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34777 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34778 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34779 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34780 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
34781 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34782 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34783 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34784 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34785 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34786 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34787 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34788 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34789 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34790 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34791 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34792 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34793 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34794 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34795 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
34796 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34797 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34798 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34799 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34800 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34801 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34802 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34803 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34804 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34805 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34806 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34807 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
34808 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34809 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34810 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 34811 | { (char *)"Choice_GetCurrentSelection", (PyCFunction) _wrap_Choice_GetCurrentSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
34812 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
34813 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
34814 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34815 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34816 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34817 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34818 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34819 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34820 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34821 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34822 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34823 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34824 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34825 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34826 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34827 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 34828 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction) _wrap_ComboBox_GetCurrentSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
34829 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
34830 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34831 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34832 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34833 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34834 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34835 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34836 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34837 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34838 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34839 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34840 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34841 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34842 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34843 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34844 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
34845 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34846 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34847 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34848 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34849 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34850 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34851 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34852 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34853 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34854 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34855 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34856 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34857 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34858 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
34859 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34860 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34861 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34862 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34863 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
34864 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34865 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34866 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34867 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34868 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34869 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34870 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
34871 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34872 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34873 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 34874 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
34875 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
34876 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
34877 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34878 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34879 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34880 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34881 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34882 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34883 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34884 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
34885 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34886 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34887 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34888 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34889 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34890 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34891 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34892 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34893 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34894 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34895 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34896 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34897 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34898 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34899 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34900 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34901 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34902 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34903 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34904 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34905 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34906 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34907 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
34908 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34909 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34910 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34911 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34912 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34913 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34914 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34915 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
34916 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34917 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34918 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34919 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34920 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34921 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34922 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34923 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34924 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34925 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34926 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34927 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34928 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34929 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34930 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34931 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34932 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34933 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34934 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34935 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34936 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34937 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34938 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34939 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34940 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34941 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34942 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34943 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34944 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34945 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34946 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
34947 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34948 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34949 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34950 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34951 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34952 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34953 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34954 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34955 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34956 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34957 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34958 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34959 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34960 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34961 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34962 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34963 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34964 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34965 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34966 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34967 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34968 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34969 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34970 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34971 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34972 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34973 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34974 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34975 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34976 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34977 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34978 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34979 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34980 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34981 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34982 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34983 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34984 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34985 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34986 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34987 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34988 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34989 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34990 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34991 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34992 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34993 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34994 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34995 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34996 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34997 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34998 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34999 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35000 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35001 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35002 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
35003 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35004 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35005 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35006 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35007 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
35008 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35009 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35010 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35011 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35012 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35013 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35014 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35015 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35016 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35017 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35018 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35019 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
35020 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35021 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35022 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35023 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35024 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35025 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35026 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35027 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35028 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35029 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35030 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35031 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35032 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
35033 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35034 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35035 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35036 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35037 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35038 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35039 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35040 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35041 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35042 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35043 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35044 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
35045 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35046 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35047 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35048 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
35049 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35050 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35051 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35052 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35053 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35054 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35055 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35056 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35057 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35058 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35059 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35060 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35061 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35062 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35063 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35064 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35065 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35066 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
35067 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35068 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35069 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35070 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35071 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35072 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35073 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
35074 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35075 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35076 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35077 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35078 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35079 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35080 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35081 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35082 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35083 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35084 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35085 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35086 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35087 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35088 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35089 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35090 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35091 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35092 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35093 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35094 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35095 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35096 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35097 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35098 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35099 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
35100 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35101 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35102 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35103 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35104 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35105 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35106 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35107 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
35108 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35109 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35110 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35111 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35112 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35113 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35114 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35115 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35116 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35117 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35118 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35119 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35120 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35121 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35122 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35123 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35124 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35125 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35126 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35127 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35128 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35129 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
35130 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35131 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35132 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35133 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35134 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35135 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
35136 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35137 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35138 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35139 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35140 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35141 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35142 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35143 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
091fdbfa | 35144 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction) _wrap_Notebook_GetThemeBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
35145 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35146 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
35147 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35148 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
35149 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35150 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35151 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35152 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35153 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35154 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
35155 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35156 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
35157 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35158 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35159 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35160 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7993762b | 35161 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction) _wrap_Choicebook_GetChoiceCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
35162 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, |
35163 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
35164 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35165 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
36ed4f51 RD |
35166 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, |
35167 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35168 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35169 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35170 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35171 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35172 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35173 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35174 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35175 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35176 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35177 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35178 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35179 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35180 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35181 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35182 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35183 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35184 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35185 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35186 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35187 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35188 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35189 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35190 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35191 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35192 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35193 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35194 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35195 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
35196 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35197 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35198 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35199 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35200 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35201 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35202 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35203 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35204 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35205 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35206 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35207 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35208 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35209 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35210 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35211 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35212 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35213 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35214 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35215 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35216 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35217 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35218 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35219 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35220 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35221 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35222 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35223 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35224 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35225 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35226 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35227 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35228 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35229 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35230 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35231 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35232 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35233 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35234 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35235 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35236 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35237 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35238 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35239 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35240 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
35241 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35242 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35243 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35244 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35245 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35246 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
35247 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35248 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35249 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35250 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35251 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35252 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35253 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35254 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35255 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35256 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35257 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35258 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
35259 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35260 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35261 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35262 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35263 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35264 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35265 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35266 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35267 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35268 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35269 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35270 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35271 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35272 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35273 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35274 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35275 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35276 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35277 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35278 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35279 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35280 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35281 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35282 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35283 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35284 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35285 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35286 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35287 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35288 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35289 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35290 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35291 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35292 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35293 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35294 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35295 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35296 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35297 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35298 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35299 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35300 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35301 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35302 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35303 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35304 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35305 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35306 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35307 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35308 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35309 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35310 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
35311 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35312 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35313 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35314 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35315 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35316 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35317 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35318 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35319 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35320 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35321 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35322 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35323 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35324 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35325 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35326 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35327 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35328 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35329 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35330 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35331 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35332 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35333 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35334 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35335 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35336 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35337 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
35338 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35339 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35340 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35341 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35342 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35343 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35344 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35345 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35346 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35347 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35348 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35349 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35350 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35351 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35352 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35353 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35354 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35355 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35356 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35357 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35358 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35359 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35360 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35361 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35362 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35363 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35364 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35365 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35366 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35367 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35368 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35369 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35370 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35371 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35372 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35373 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35374 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35375 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35376 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35377 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35378 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35379 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35380 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35381 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35382 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35383 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35384 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35385 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35386 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35387 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35388 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35389 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35390 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35391 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35392 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35393 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35394 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35395 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35396 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
a3957d3d | 35397 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
35398 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, |
35399 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35400 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35401 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35402 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35403 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35404 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd RD |
35405 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
35406 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 RD |
35407 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, |
35408 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35409 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35410 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
35411 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35412 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35413 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35414 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35415 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35416 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35417 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35418 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35419 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35420 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35421 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35422 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
35423 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35424 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35425 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35426 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35427 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35428 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35429 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35430 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
35431 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35432 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35433 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35434 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35435 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35436 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35437 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
35438 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35439 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35440 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35441 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35442 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35443 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35444 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35445 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35446 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35447 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35448 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35449 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35450 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35451 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35452 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
dcb8fc74 | 35453 | { (char *)"TreeEvent_GetToolTip", (PyCFunction) _wrap_TreeEvent_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
35454 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, |
35455 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35456 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35457 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35458 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35459 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35460 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35461 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35462 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35463 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35464 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35465 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35466 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35467 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35468 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35469 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35470 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35471 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35472 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35473 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35474 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35475 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35476 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35477 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35478 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35479 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35480 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35481 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35482 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fef4c27a | 35483 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
35484 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
35485 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35486 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35487 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35488 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35489 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35490 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35491 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35492 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35493 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35494 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35495 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35496 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35497 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35498 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35499 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35500 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35501 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35502 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35503 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35504 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35505 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35506 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35507 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35508 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35509 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35510 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35511 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35512 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35513 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35514 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35515 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35516 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35517 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35518 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35519 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35520 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35521 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35522 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35523 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35524 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35525 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35526 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35527 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35528 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35529 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35530 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
35531 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35532 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35533 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35534 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35535 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35536 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35537 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35538 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35539 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35540 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35541 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35542 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35543 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35544 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35545 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35546 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35547 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35548 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35549 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35550 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35551 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35552 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
35553 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35554 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35555 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35556 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35557 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
35558 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35559 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35560 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35561 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 35562 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
35563 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
35564 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35565 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35566 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35567 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35568 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35569 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35570 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35571 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35572 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35573 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35574 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35575 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35576 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35577 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35578 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35579 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35580 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35581 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36ed4f51 | 35582 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
8d38bd1d | 35583 | { (char *)"PyControl_base_OnInternalIdle", (PyCFunction) _wrap_PyControl_base_OnInternalIdle, METH_VARARGS | METH_KEYWORDS, NULL}, |
36ed4f51 RD |
35584 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, |
35585 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35586 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35587 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35588 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35589 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35590 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35591 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35592 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
35593 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35594 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35595 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35596 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35597 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
35598 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35599 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
35600 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35601 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35602 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35603 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35604 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35605 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35606 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35607 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35608 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
35609 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35610 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
35611 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35612 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35613 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35614 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35615 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35616 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35617 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35618 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35619 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35620 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35621 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35622 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35623 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35624 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35625 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35626 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35627 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35628 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
53aa7709 RD |
35629 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
35630 | { (char *)"new_PreDatePickerCtrl", (PyCFunction) _wrap_new_PreDatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35631 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35632 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35633 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction) _wrap_DatePickerCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35634 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35635 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction) _wrap_DatePickerCtrl_GetLowerLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35636 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction) _wrap_DatePickerCtrl_GetUpperLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35637 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
c370783e | 35638 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
35639 | }; |
35640 | ||
35641 | ||
35642 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
35643 | ||
d55e5bfc RD |
35644 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
35645 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
35646 | } | |
35647 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
35648 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
35649 | } | |
35650 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
35651 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
35652 | } | |
35653 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
35654 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
35655 | } | |
35656 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
35657 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
35658 | } | |
6e0de3df RD |
35659 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { |
35660 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35661 | } | |
d55e5bfc RD |
35662 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { |
35663 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35664 | } | |
35665 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
35666 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
35667 | } | |
35668 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
35669 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
35670 | } | |
35671 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
35672 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
35673 | } | |
35674 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
35675 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
35676 | } | |
d55e5bfc RD |
35677 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
35678 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
35679 | } | |
35680 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
35681 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
35682 | } | |
35683 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
35684 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
35685 | } | |
35686 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
6e0de3df | 35687 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
35688 | } |
35689 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
6e0de3df | 35690 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 35691 | } |
b411df4a | 35692 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
6e0de3df | 35693 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
b411df4a | 35694 | } |
d55e5bfc RD |
35695 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
35696 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
35697 | } | |
35698 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
35699 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
35700 | } | |
35701 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
35702 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
35703 | } | |
35704 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
35705 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
35706 | } | |
35707 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
35708 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
35709 | } | |
35710 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
35711 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
35712 | } | |
35713 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
35714 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
35715 | } | |
35716 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
35717 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
35718 | } | |
35719 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
35720 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
35721 | } | |
53aa7709 RD |
35722 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
35723 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
35724 | } | |
d55e5bfc RD |
35725 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
35726 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
35727 | } | |
35728 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
35729 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
35730 | } | |
35731 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
35732 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
35733 | } | |
35734 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
35735 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
35736 | } | |
35737 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
35738 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
35739 | } | |
35740 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
35741 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
35742 | } | |
35743 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
35744 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
35745 | } | |
35746 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
35747 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
35748 | } | |
35749 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
35750 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
35751 | } | |
35752 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
35753 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
35754 | } | |
35755 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
35756 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
35757 | } | |
35758 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
35759 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
35760 | } | |
35761 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
35762 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
35763 | } | |
35764 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
35765 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
35766 | } | |
35767 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
35768 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
35769 | } | |
35770 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
35771 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
35772 | } | |
35773 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
35774 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
35775 | } | |
35776 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
35777 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
35778 | } | |
35779 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
35780 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
35781 | } | |
35782 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
35783 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35784 | } | |
35785 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
35786 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
35787 | } | |
35788 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
35789 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
35790 | } | |
35791 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
35792 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
35793 | } | |
35794 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
35795 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
35796 | } | |
35797 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
35798 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
35799 | } | |
6e0de3df RD |
35800 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
35801 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
d55e5bfc RD |
35802 | } |
35803 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
35804 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
35805 | } | |
b411df4a RD |
35806 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
35807 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d55e5bfc | 35808 | } |
b411df4a RD |
35809 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
35810 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d55e5bfc | 35811 | } |
b411df4a RD |
35812 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
35813 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
d55e5bfc | 35814 | } |
b411df4a RD |
35815 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
35816 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
35817 | } | |
35818 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
35819 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d55e5bfc RD |
35820 | } |
35821 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
35822 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
35823 | } | |
b411df4a RD |
35824 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
35825 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
d55e5bfc | 35826 | } |
b411df4a RD |
35827 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
35828 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d55e5bfc RD |
35829 | } |
35830 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
35831 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
35832 | } | |
b411df4a RD |
35833 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
35834 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d55e5bfc RD |
35835 | } |
35836 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
35837 | return (void *)((wxControl *) ((wxGauge *) x)); | |
35838 | } | |
b411df4a RD |
35839 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
35840 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d55e5bfc | 35841 | } |
b411df4a | 35842 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
6e0de3df | 35843 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); |
d55e5bfc | 35844 | } |
b411df4a | 35845 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
6e0de3df | 35846 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc | 35847 | } |
b411df4a RD |
35848 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
35849 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d55e5bfc | 35850 | } |
b411df4a RD |
35851 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
35852 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d55e5bfc RD |
35853 | } |
35854 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
35855 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
35856 | } | |
b411df4a RD |
35857 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
35858 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
35859 | } | |
35860 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
35861 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
35862 | } | |
35863 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
35864 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
35865 | } | |
35866 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
35867 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
35868 | } | |
d55e5bfc | 35869 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
6e0de3df | 35870 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc | 35871 | } |
b411df4a RD |
35872 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
35873 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d55e5bfc | 35874 | } |
b411df4a RD |
35875 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
35876 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d55e5bfc | 35877 | } |
b411df4a RD |
35878 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
35879 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d55e5bfc | 35880 | } |
b411df4a RD |
35881 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
35882 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d55e5bfc RD |
35883 | } |
35884 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
35885 | return (void *)((wxControl *) ((wxSlider *) x)); | |
35886 | } | |
b411df4a RD |
35887 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
35888 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
d55e5bfc | 35889 | } |
b411df4a RD |
35890 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
35891 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d55e5bfc | 35892 | } |
b411df4a RD |
35893 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
35894 | return (void *)((wxControl *) ((wxButton *) x)); | |
d55e5bfc | 35895 | } |
b411df4a RD |
35896 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
35897 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
35898 | } | |
53aa7709 RD |
35899 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { |
35900 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
35901 | } | |
b411df4a RD |
35902 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
35903 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d55e5bfc RD |
35904 | } |
35905 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
35906 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
35907 | } | |
35908 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
35909 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35910 | } | |
6e0de3df RD |
35911 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
35912 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35913 | } | |
d55e5bfc RD |
35914 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { |
35915 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35916 | } | |
d55e5bfc RD |
35917 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { |
35918 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
35919 | } | |
35920 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
35921 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
35922 | } | |
35923 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
6e0de3df | 35924 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
35925 | } |
35926 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
6e0de3df | 35927 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 35928 | } |
b411df4a | 35929 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
6e0de3df RD |
35930 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
35931 | } | |
35932 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
35933 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
35934 | } | |
35935 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
35936 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
b411df4a | 35937 | } |
6e0de3df RD |
35938 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { |
35939 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
d55e5bfc RD |
35940 | } |
35941 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
35942 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
35943 | } | |
6e0de3df RD |
35944 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { |
35945 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
35946 | } | |
d55e5bfc RD |
35947 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
35948 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
35949 | } | |
35950 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
35951 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
35952 | } | |
35953 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
35954 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
35955 | } | |
35956 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
35957 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
35958 | } | |
35959 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
35960 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
35961 | } | |
35962 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
35963 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
35964 | } | |
35965 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
35966 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
35967 | } | |
35968 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
35969 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
35970 | } | |
35971 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
35972 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
35973 | } | |
d55e5bfc RD |
35974 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
35975 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
35976 | } | |
b411df4a RD |
35977 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
35978 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
35979 | } | |
d55e5bfc RD |
35980 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
35981 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35982 | } | |
35983 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
35984 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
35985 | } | |
35986 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
35987 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
35988 | } | |
35989 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
35990 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
35991 | } | |
35992 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
35993 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
35994 | } | |
35995 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
35996 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
35997 | } | |
35998 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
35999 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36000 | } | |
36001 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
36002 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36003 | } | |
b411df4a | 36004 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
6e0de3df | 36005 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
b411df4a | 36006 | } |
d55e5bfc | 36007 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
6e0de3df | 36008 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
36009 | } |
36010 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
36011 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36012 | } | |
36013 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
36014 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36015 | } | |
36016 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
36017 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36018 | } | |
36019 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
36020 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36021 | } | |
36022 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
36023 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36024 | } | |
36025 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
36026 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36027 | } | |
36028 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
6e0de3df | 36029 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
36030 | } |
36031 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
36032 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36033 | } | |
36034 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
36035 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36036 | } | |
36037 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
36038 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36039 | } | |
36040 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
36041 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36042 | } | |
36043 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
36044 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36045 | } | |
36046 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
36047 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36048 | } | |
36049 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
36050 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36051 | } | |
36052 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
36053 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
36054 | } | |
36055 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
36056 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36057 | } | |
36058 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
36059 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36060 | } | |
53aa7709 RD |
36061 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { |
36062 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36063 | } | |
d55e5bfc RD |
36064 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
36065 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36066 | } | |
36067 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
36068 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
36069 | } | |
d55e5bfc RD |
36070 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { |
36071 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
36072 | } | |
36073 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
36074 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36075 | } | |
36076 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
36077 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36078 | } | |
36079 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
36080 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
36081 | } | |
36082 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
36083 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
36084 | } | |
36085 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
36086 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
36087 | } | |
36088 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
36089 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
36090 | } | |
36091 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
36092 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
36093 | } | |
36094 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
36095 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
36096 | } | |
36097 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
36098 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36099 | } | |
d55e5bfc RD |
36100 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
36101 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36102 | } | |
36103 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
36104 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
36105 | } | |
36106 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
36107 | return (void *)((wxObject *) ((wxSizer *) x)); | |
36108 | } | |
36109 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
36110 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36111 | } | |
36112 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
36113 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36114 | } | |
36115 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
36116 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36117 | } | |
36118 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
36119 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36120 | } | |
36121 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
36122 | return (void *)((wxObject *) ((wxEvent *) x)); | |
36123 | } | |
36124 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
36125 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36126 | } | |
36127 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
36128 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
36129 | } | |
36130 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
36131 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
36132 | } | |
36133 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
36134 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36135 | } | |
36136 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
36137 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36138 | } | |
36139 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
36140 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36141 | } | |
36142 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
36143 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
36144 | } | |
36145 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
36146 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
36147 | } | |
36148 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
36149 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36150 | } | |
36151 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
36152 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36153 | } | |
36154 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
36155 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36156 | } | |
36157 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
36158 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36159 | } | |
36160 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
36161 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36162 | } | |
36163 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
36164 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
36165 | } | |
36166 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
36167 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36168 | } | |
36169 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
36170 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36171 | } | |
36172 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
36173 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36174 | } | |
36175 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
36176 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36177 | } | |
36178 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
36179 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36180 | } | |
36181 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
36182 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
36183 | } | |
36184 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
36185 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36186 | } | |
36187 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
36188 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
36189 | } | |
36190 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
36191 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
36192 | } | |
36193 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
36194 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36195 | } | |
36196 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
36197 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36198 | } | |
36199 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
6e0de3df | 36200 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
36201 | } |
36202 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
36203 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
36204 | } | |
36205 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
36206 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36207 | } | |
b411df4a | 36208 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
6e0de3df | 36209 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
b411df4a | 36210 | } |
d55e5bfc | 36211 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
6e0de3df | 36212 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
36213 | } |
36214 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
36215 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
36216 | } | |
36217 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
36218 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36219 | } | |
36220 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
36221 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36222 | } | |
36223 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
36224 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
36225 | } | |
53aa7709 RD |
36226 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
36227 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
36228 | } | |
d55e5bfc RD |
36229 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
36230 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
36231 | } | |
36232 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
36233 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36234 | } | |
36235 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
36236 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36237 | } | |
36238 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
36239 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
36240 | } | |
36241 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
36242 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
36243 | } | |
36244 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
36245 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
36246 | } | |
36247 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
36248 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
36249 | } | |
36250 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
36251 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
36252 | } | |
36253 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
36254 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36255 | } | |
36256 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
36257 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
36258 | } | |
6e0de3df RD |
36259 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
36260 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36261 | } | |
d55e5bfc RD |
36262 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
36263 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
36264 | } | |
36265 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
36266 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
36267 | } | |
36268 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
36269 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
36270 | } | |
36271 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
36272 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
36273 | } | |
36274 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
36275 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
36276 | } | |
36277 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
36278 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36279 | } | |
36280 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
36281 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36282 | } | |
36283 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
36284 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
36285 | } | |
36286 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
36287 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
36288 | } | |
943e8dfd RD |
36289 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
36290 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
36291 | } | |
d55e5bfc RD |
36292 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
36293 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
36294 | } | |
943e8dfd RD |
36295 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
36296 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
36297 | } | |
d55e5bfc RD |
36298 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
36299 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
36300 | } | |
36301 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
36302 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
36303 | } | |
36304 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
36305 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
36306 | } | |
36307 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
36308 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36309 | } | |
36310 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
36311 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36312 | } | |
d55e5bfc RD |
36313 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
36314 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
36315 | } | |
36316 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
36317 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36318 | } | |
36319 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
36320 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36321 | } | |
36322 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
36323 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36324 | } | |
62d32a5f RD |
36325 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
36326 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
36327 | } | |
d55e5bfc RD |
36328 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
36329 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
36330 | } | |
36331 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
36332 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36333 | } | |
36334 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
36335 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36336 | } | |
36337 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
36338 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
36339 | } | |
36340 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
36341 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
36342 | } | |
36343 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
36344 | return (void *)((wxObject *) ((wxListItem *) x)); | |
36345 | } | |
36346 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36347 | return (void *)((wxObject *) ((wxImage *) x)); | |
36348 | } | |
d55e5bfc RD |
36349 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
36350 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
36351 | } | |
36352 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
36353 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36354 | } | |
36355 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
36356 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
36357 | } | |
36358 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
36359 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36360 | } | |
36361 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
6e0de3df | 36362 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
36363 | } |
36364 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
6e0de3df | 36365 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 36366 | } |
b411df4a | 36367 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
6e0de3df | 36368 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
b411df4a | 36369 | } |
d55e5bfc RD |
36370 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
36371 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36372 | } | |
36373 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
36374 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36375 | } | |
36376 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
36377 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
36378 | } | |
36379 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36380 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36381 | } | |
36382 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36383 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36384 | } | |
36385 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36386 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36387 | } | |
36388 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
36389 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
36390 | } | |
36391 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36392 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36393 | } | |
36394 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36395 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36396 | } | |
36397 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36398 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36399 | } | |
36400 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36401 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36402 | } | |
36403 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36404 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36405 | } | |
36406 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36407 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36408 | } | |
6e0de3df RD |
36409 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { |
36410 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36411 | } | |
d55e5bfc RD |
36412 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { |
36413 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36414 | } | |
36415 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
36416 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36417 | } | |
36418 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
36419 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
36420 | } | |
36421 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
36422 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36423 | } | |
36424 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
36425 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
36426 | } | |
36427 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
36428 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
36429 | } | |
36430 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
36431 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36432 | } | |
53aa7709 RD |
36433 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { |
36434 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36435 | } | |
d55e5bfc RD |
36436 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
36437 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36438 | } | |
36439 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
36440 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
36441 | } | |
36442 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
36443 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36444 | } | |
36445 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
36446 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36447 | } | |
36448 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36449 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36450 | } | |
d55e5bfc RD |
36451 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
36452 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
36453 | } | |
6e0de3df RD |
36454 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { |
36455 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
36456 | } | |
d55e5bfc RD |
36457 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { |
36458 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36459 | } | |
36460 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
36461 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
36462 | } | |
36463 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
36464 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
36465 | } | |
d55e5bfc RD |
36466 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
36467 | return (void *)((wxWindow *) ((wxControl *) x)); | |
36468 | } | |
36469 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
36470 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
36471 | } | |
36472 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
36473 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36474 | } | |
36475 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
36476 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
36477 | } | |
36478 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
36479 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
36480 | } | |
b411df4a RD |
36481 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
36482 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
36483 | } | |
d55e5bfc RD |
36484 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
36485 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
36486 | } | |
36487 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
36488 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
36489 | } | |
36490 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
36491 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
36492 | } | |
36493 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
36494 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
36495 | } | |
36496 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
36497 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
36498 | } | |
b411df4a | 36499 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
6e0de3df | 36500 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
b411df4a | 36501 | } |
d55e5bfc | 36502 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
6e0de3df | 36503 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
36504 | } |
36505 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
36506 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
36507 | } | |
36508 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
36509 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
36510 | } | |
36511 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
36512 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
36513 | } | |
36514 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
36515 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36516 | } | |
36517 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
36518 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36519 | } | |
36520 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
36521 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36522 | } | |
36523 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
36524 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36525 | } | |
36526 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
6e0de3df | 36527 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
36528 | } |
36529 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
36530 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
36531 | } | |
36532 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
36533 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
36534 | } | |
36535 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
36536 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
36537 | } | |
36538 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
36539 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
36540 | } | |
36541 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
36542 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
36543 | } | |
36544 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
36545 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
36546 | } | |
36547 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
36548 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
36549 | } | |
36550 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
36551 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36552 | } | |
36553 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
36554 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36555 | } | |
53aa7709 RD |
36556 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { |
36557 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
36558 | } | |
d55e5bfc RD |
36559 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
36560 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
36561 | } | |
6e0de3df RD |
36562 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
36563 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36564 | } | |
36565 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36566 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36567 | } | |
36568 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36569 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36570 | } | |
d55e5bfc RD |
36571 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
36572 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36573 | } | |
d55e5bfc RD |
36574 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
36575 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36576 | } | |
36577 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
36578 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
36579 | } | |
36580 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
36581 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36582 | } | |
36583 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
36584 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36585 | } | |
36586 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
36587 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36588 | } | |
36589 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
6e0de3df | 36590 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc RD |
36591 | } |
36592 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
6e0de3df | 36593 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc | 36594 | } |
53aa7709 RD |
36595 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
36596 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36597 | } | |
36598 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
36599 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
36600 | } | |
d55e5bfc RD |
36601 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
36602 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36603 | } | |
b411df4a RD |
36604 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
36605 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
36606 | } | |
6e0de3df RD |
36607 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
36608 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36609 | } | |
d55e5bfc RD |
36610 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
36611 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36612 | } | |
36613 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
36614 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36615 | } | |
36616 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
36617 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
36618 | } | |
36619 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
36620 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36621 | } | |
36622 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
36623 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36624 | } | |
36625 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
36626 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36627 | } | |
36628 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
36629 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
36630 | } | |
36631 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
36632 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
36633 | } | |
36634 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
36635 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
36636 | } | |
36637 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
36638 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
36639 | } | |
36640 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0, 0, 0, 0},{"_p_wxTextUrlEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
36641 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0, 0, 0, 0},{"_p_wxCheckBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36642 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 36643 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36644 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0, 0, 0, 0},{"_p_wxGenericDirCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36645 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
36646 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36647 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 | 36648 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0, 0, 0, 0},{"_p_wxPyTreeItemData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36649 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36650 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 36651 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDatePickerCtrl", _p_wxDatePickerCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36652 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0, 0, 0, 0},{"_p_wxPyControl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36653 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0, 0, 0, 0},{"_p_wxGauge", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36654 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0, 0, 0, 0},{"_p_wxToolBarBase", 0, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36655 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36656 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0, 0, 0, 0},{"_p_wxToggleButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36657 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0, 0, 0, 0},{"_p_wxRadioButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36658 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36659 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 RD |
36660 | static swig_type_info _swigt__ptrdiff_t[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36661 | static swig_type_info _swigt__std__ptrdiff_t[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
36662 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0, 0, 0, 0},{"_p_wxListItemAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36663 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36664 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36665 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36666 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36667 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0, 0, 0, 0},{"_p_wxListView", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36668 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36669 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36670 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36671 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0, 0, 0, 0},{"_p_wxNotebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
b411df4a | 36672 | static swig_type_info _swigt__p_wxChoicebook[] = {{"_p_wxChoicebook", 0, "wxChoicebook *", 0, 0, 0, 0},{"_p_wxChoicebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
6e0de3df | 36673 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 36674 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36ed4f51 | 36675 | static swig_type_info _swigt__p_form_ops_t[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36676 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0, 0, 0, 0},{"_p_wxListbook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36677 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0, 0, 0, 0},{"_p_wxStaticBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36678 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0, 0, 0, 0},{"_p_wxSlider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36679 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36680 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36681 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0, 0, 0, 0},{"_p_wxContextHelp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36682 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 | 36683 | static swig_type_info _swigt__p_wxDuplexMode[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
6e0de3df | 36684 | static swig_type_info _swigt__p_wxBookCtrlBase[] = {{"_p_wxBookCtrlBase", 0, "wxBookCtrlBase *", 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36685 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDatePickerCtrl", _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36686 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36687 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36688 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
36689 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0, 0, 0, 0},{"_p_wxSpinButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36690 | static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36691 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0, 0, 0, 0},{"_p_wxBitmapButton", 0, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36692 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36693 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0, 0, 0, 0},{"_p_wxContextHelpButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36694 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0, 0, 0, 0},{"_p_wxRadioBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36695 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0, 0, 0, 0},{"_p_wxScrollBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36696 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc | 36697 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0, 0, 0, 0},{"_p_wxComboBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36ed4f51 | 36698 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0, 0, 0, 0},{"_p_wxTreeItemId", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36699 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0, 0, 0, 0},{"_p_wxHelpEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36700 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0, 0, 0, 0},{"_p_wxListItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
36701 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0, 0, 0, 0},{"_p_wxSpinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36702 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0, 0, 0, 0},{"_p_wxGenericDragImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36703 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0, 0, 0, 0},{"_p_wxSpinCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 | 36704 | static swig_type_info _swigt__p_wxPaperSize[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36705 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36706 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0, 0, 0, 0},{"_p_wxHelpProvider", 0, 0, 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36707 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0, 0, 0, 0},{"_p_wxTextAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36708 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
b411df4a | 36709 | static swig_type_info _swigt__p_wxChoicebookEvent[] = {{"_p_wxChoicebookEvent", 0, "wxChoicebookEvent *", 0, 0, 0, 0},{"_p_wxChoicebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36710 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0, 0, 0, 0},{"_p_wxListbookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36711 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 | 36712 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
943e8dfd | 36713 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyImageHandler", _p_wxPyImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDatePickerCtrl", _p_wxDatePickerCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 36714 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36715 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 36716 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36ed4f51 | 36717 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36718 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDatePickerCtrl", _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36719 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36720 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36ed4f51 RD |
36721 | static swig_type_info _swigt__unsigned_int[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36722 | static swig_type_info _swigt__p_unsigned_int[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36723 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc | 36724 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
6e0de3df | 36725 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent[] = {{"_p_wxBookCtrlBaseEvent", 0, "wxBookCtrlBaseEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36ed4f51 | 36726 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36727 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc | 36728 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36729 | static swig_type_info _swigt__p_wxDatePickerCtrl[] = {{"_p_wxDatePickerCtrl", 0, "wxDatePickerCtrl *", 0, 0, 0, 0},{"_p_wxDatePickerCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
36730 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36731 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0, 0, 0, 0},{"_p_wxToolBarToolBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36732 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36733 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
36734 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
36735 | ||
36736 | static swig_type_info *swig_types_initial[] = { | |
36737 | _swigt__p_wxTextUrlEvent, | |
d55e5bfc RD |
36738 | _swigt__p_wxCheckBox, |
36739 | _swigt__p_wxPyTreeCtrl, | |
36740 | _swigt__p_wxEvent, | |
36741 | _swigt__p_wxGenericDirCtrl, | |
36742 | _swigt__p_bool, | |
d55e5bfc RD |
36743 | _swigt__p_wxItemContainer, |
36744 | _swigt__p_wxPyListCtrl, | |
36ed4f51 | 36745 | _swigt__p_wxPyTreeItemData, |
d55e5bfc RD |
36746 | _swigt__p_wxDirFilterListCtrl, |
36747 | _swigt__p_wxStaticLine, | |
36748 | _swigt__p_wxControl, | |
36749 | _swigt__p_wxPyControl, | |
36750 | _swigt__p_wxGauge, | |
36751 | _swigt__p_wxToolBarBase, | |
36752 | _swigt__p_wxFont, | |
36753 | _swigt__p_wxToggleButton, | |
36754 | _swigt__p_wxRadioButton, | |
36755 | _swigt__p_wxChoice, | |
36756 | _swigt__p_wxMemoryDC, | |
36ed4f51 RD |
36757 | _swigt__ptrdiff_t, |
36758 | _swigt__std__ptrdiff_t, | |
d55e5bfc RD |
36759 | _swigt__p_wxListItemAttr, |
36760 | _swigt__p_void, | |
36761 | _swigt__p_int, | |
36762 | _swigt__p_wxSize, | |
36763 | _swigt__p_wxDC, | |
36764 | _swigt__p_wxListView, | |
36765 | _swigt__p_wxIcon, | |
36766 | _swigt__p_wxVisualAttributes, | |
36767 | _swigt__p_wxTextCtrl, | |
36768 | _swigt__p_wxNotebook, | |
b411df4a | 36769 | _swigt__p_wxChoicebook, |
d55e5bfc RD |
36770 | _swigt__p_wxNotifyEvent, |
36771 | _swigt__p_wxArrayString, | |
36ed4f51 | 36772 | _swigt__p_form_ops_t, |
d55e5bfc RD |
36773 | _swigt__p_wxListbook, |
36774 | _swigt__p_wxStaticBitmap, | |
36775 | _swigt__p_wxSlider, | |
36776 | _swigt__p_wxStaticBox, | |
36777 | _swigt__p_wxArrayInt, | |
36778 | _swigt__p_wxContextHelp, | |
36779 | _swigt__p_long, | |
36ed4f51 | 36780 | _swigt__p_wxDuplexMode, |
6e0de3df | 36781 | _swigt__p_wxBookCtrlBase, |
d55e5bfc RD |
36782 | _swigt__p_wxEvtHandler, |
36783 | _swigt__p_wxListEvent, | |
36784 | _swigt__p_wxCheckListBox, | |
36785 | _swigt__p_wxListBox, | |
d55e5bfc RD |
36786 | _swigt__p_wxSpinButton, |
36787 | _swigt__p_wxButton, | |
36788 | _swigt__p_wxBitmapButton, | |
36789 | _swigt__p_wxRect, | |
36790 | _swigt__p_wxContextHelpButton, | |
36791 | _swigt__p_wxRadioBox, | |
36792 | _swigt__p_wxScrollBar, | |
36793 | _swigt__p_char, | |
d55e5bfc | 36794 | _swigt__p_wxComboBox, |
36ed4f51 | 36795 | _swigt__p_wxTreeItemId, |
d55e5bfc RD |
36796 | _swigt__p_wxHelpEvent, |
36797 | _swigt__p_wxListItem, | |
d55e5bfc RD |
36798 | _swigt__p_wxSpinEvent, |
36799 | _swigt__p_wxGenericDragImage, | |
36800 | _swigt__p_wxSpinCtrl, | |
36ed4f51 | 36801 | _swigt__p_wxPaperSize, |
d55e5bfc RD |
36802 | _swigt__p_wxImageList, |
36803 | _swigt__p_wxHelpProvider, | |
36804 | _swigt__p_wxTextAttr, | |
36805 | _swigt__p_wxSimpleHelpProvider, | |
b411df4a | 36806 | _swigt__p_wxChoicebookEvent, |
d55e5bfc RD |
36807 | _swigt__p_wxListbookEvent, |
36808 | _swigt__p_wxNotebookEvent, | |
36ed4f51 | 36809 | _swigt__p_wxPoint, |
d55e5bfc RD |
36810 | _swigt__p_wxObject, |
36811 | _swigt__p_wxCursor, | |
53aa7709 | 36812 | _swigt__p_wxDateTime, |
d55e5bfc | 36813 | _swigt__p_wxKeyEvent, |
36ed4f51 | 36814 | _swigt__p_unsigned_long, |
d55e5bfc RD |
36815 | _swigt__p_wxWindow, |
36816 | _swigt__p_wxString, | |
36817 | _swigt__p_wxBitmap, | |
36ed4f51 RD |
36818 | _swigt__unsigned_int, |
36819 | _swigt__p_unsigned_int, | |
36820 | _swigt__p_unsigned_char, | |
d55e5bfc | 36821 | _swigt__p_wxMouseEvent, |
6e0de3df | 36822 | _swigt__p_wxBookCtrlBaseEvent, |
36ed4f51 | 36823 | _swigt__p_wxTreeEvent, |
d55e5bfc RD |
36824 | _swigt__p_wxCommandEvent, |
36825 | _swigt__p_wxStaticText, | |
53aa7709 | 36826 | _swigt__p_wxDatePickerCtrl, |
d55e5bfc RD |
36827 | _swigt__p_wxControlWithItems, |
36828 | _swigt__p_wxToolBarToolBase, | |
36829 | _swigt__p_wxColour, | |
36830 | _swigt__p_wxToolBar, | |
d55e5bfc RD |
36831 | _swigt__p_wxValidator, |
36832 | 0 | |
36833 | }; | |
36834 | ||
36835 | ||
36836 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
36837 | ||
36838 | static swig_const_info swig_const_table[] = { | |
c370783e | 36839 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
36840 | |
36841 | #ifdef __cplusplus | |
36842 | } | |
36843 | #endif | |
36844 | ||
36ed4f51 RD |
36845 | |
36846 | #ifdef __cplusplus | |
36847 | extern "C" { | |
36848 | #endif | |
36849 | ||
36850 | /* Python-specific SWIG API */ | |
36851 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
36852 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
36853 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
36854 | ||
36855 | /* ----------------------------------------------------------------------------- | |
36856 | * global variable support code. | |
36857 | * ----------------------------------------------------------------------------- */ | |
36858 | ||
36859 | typedef struct swig_globalvar { | |
36860 | char *name; /* Name of global variable */ | |
36861 | PyObject *(*get_attr)(); /* Return the current value */ | |
36862 | int (*set_attr)(PyObject *); /* Set the value */ | |
36863 | struct swig_globalvar *next; | |
36864 | } swig_globalvar; | |
36865 | ||
36866 | typedef struct swig_varlinkobject { | |
36867 | PyObject_HEAD | |
36868 | swig_globalvar *vars; | |
36869 | } swig_varlinkobject; | |
36870 | ||
36871 | static PyObject * | |
36872 | swig_varlink_repr(swig_varlinkobject *v) { | |
36873 | v = v; | |
36874 | return PyString_FromString("<Swig global variables>"); | |
36875 | } | |
36876 | ||
36877 | static int | |
36878 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
36879 | swig_globalvar *var; | |
36880 | flags = flags; | |
36881 | fprintf(fp,"Swig global variables { "); | |
36882 | for (var = v->vars; var; var=var->next) { | |
36883 | fprintf(fp,"%s", var->name); | |
36884 | if (var->next) fprintf(fp,", "); | |
36885 | } | |
36886 | fprintf(fp," }\n"); | |
36887 | return 0; | |
36888 | } | |
36889 | ||
36890 | static PyObject * | |
36891 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
36892 | swig_globalvar *var = v->vars; | |
36893 | while (var) { | |
36894 | if (strcmp(var->name,n) == 0) { | |
36895 | return (*var->get_attr)(); | |
36896 | } | |
36897 | var = var->next; | |
36898 | } | |
36899 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36900 | return NULL; | |
36901 | } | |
36902 | ||
36903 | static int | |
36904 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
36905 | swig_globalvar *var = v->vars; | |
36906 | while (var) { | |
36907 | if (strcmp(var->name,n) == 0) { | |
36908 | return (*var->set_attr)(p); | |
36909 | } | |
36910 | var = var->next; | |
36911 | } | |
36912 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36913 | return 1; | |
36914 | } | |
36915 | ||
36916 | static PyTypeObject varlinktype = { | |
36917 | PyObject_HEAD_INIT(0) | |
36918 | 0, /* Number of items in variable part (ob_size) */ | |
36919 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
36920 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
36921 | 0, /* Itemsize (tp_itemsize) */ | |
36922 | 0, /* Deallocator (tp_dealloc) */ | |
36923 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
36924 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
36925 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
36926 | 0, /* tp_compare */ | |
36927 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
36928 | 0, /* tp_as_number */ | |
36929 | 0, /* tp_as_sequence */ | |
36930 | 0, /* tp_as_mapping */ | |
36931 | 0, /* tp_hash */ | |
36932 | 0, /* tp_call */ | |
36933 | 0, /* tp_str */ | |
36934 | 0, /* tp_getattro */ | |
36935 | 0, /* tp_setattro */ | |
36936 | 0, /* tp_as_buffer */ | |
36937 | 0, /* tp_flags */ | |
36938 | 0, /* tp_doc */ | |
36939 | #if PY_VERSION_HEX >= 0x02000000 | |
36940 | 0, /* tp_traverse */ | |
36941 | 0, /* tp_clear */ | |
36942 | #endif | |
36943 | #if PY_VERSION_HEX >= 0x02010000 | |
36944 | 0, /* tp_richcompare */ | |
36945 | 0, /* tp_weaklistoffset */ | |
36946 | #endif | |
36947 | #if PY_VERSION_HEX >= 0x02020000 | |
36948 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
36949 | #endif | |
36950 | #if PY_VERSION_HEX >= 0x02030000 | |
36951 | 0, /* tp_del */ | |
36952 | #endif | |
36953 | #ifdef COUNT_ALLOCS | |
36954 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
36955 | #endif | |
36956 | }; | |
36957 | ||
36958 | /* Create a variable linking object for use later */ | |
36959 | static PyObject * | |
36960 | SWIG_Python_newvarlink(void) { | |
36961 | swig_varlinkobject *result = 0; | |
36962 | result = PyMem_NEW(swig_varlinkobject,1); | |
36963 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
36964 | result->ob_type = &varlinktype; | |
36965 | result->vars = 0; | |
36966 | result->ob_refcnt = 0; | |
36967 | Py_XINCREF((PyObject *) result); | |
36968 | return ((PyObject*) result); | |
36969 | } | |
36970 | ||
36971 | static void | |
36972 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
36973 | swig_varlinkobject *v; | |
36974 | swig_globalvar *gv; | |
36975 | v= (swig_varlinkobject *) p; | |
36976 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
36977 | gv->name = (char *) malloc(strlen(name)+1); | |
36978 | strcpy(gv->name,name); | |
36979 | gv->get_attr = get_attr; | |
36980 | gv->set_attr = set_attr; | |
36981 | gv->next = v->vars; | |
36982 | v->vars = gv; | |
36983 | } | |
36984 | ||
36985 | /* ----------------------------------------------------------------------------- | |
36986 | * constants/methods manipulation | |
36987 | * ----------------------------------------------------------------------------- */ | |
36988 | ||
36989 | /* Install Constants */ | |
36990 | static void | |
36991 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
36992 | PyObject *obj = 0; | |
36993 | size_t i; | |
36994 | for (i = 0; constants[i].type; i++) { | |
36995 | switch(constants[i].type) { | |
36996 | case SWIG_PY_INT: | |
36997 | obj = PyInt_FromLong(constants[i].lvalue); | |
36998 | break; | |
36999 | case SWIG_PY_FLOAT: | |
37000 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
37001 | break; | |
37002 | case SWIG_PY_STRING: | |
37003 | if (constants[i].pvalue) { | |
37004 | obj = PyString_FromString((char *) constants[i].pvalue); | |
37005 | } else { | |
37006 | Py_INCREF(Py_None); | |
37007 | obj = Py_None; | |
37008 | } | |
37009 | break; | |
37010 | case SWIG_PY_POINTER: | |
37011 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
37012 | break; | |
37013 | case SWIG_PY_BINARY: | |
37014 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
37015 | break; | |
37016 | default: | |
37017 | obj = 0; | |
37018 | break; | |
37019 | } | |
37020 | if (obj) { | |
37021 | PyDict_SetItemString(d,constants[i].name,obj); | |
37022 | Py_DECREF(obj); | |
37023 | } | |
37024 | } | |
37025 | } | |
37026 | ||
37027 | /* -----------------------------------------------------------------------------*/ | |
37028 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37029 | /* -----------------------------------------------------------------------------*/ | |
37030 | ||
37031 | static void | |
37032 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
37033 | swig_const_info *const_table, | |
37034 | swig_type_info **types, | |
37035 | swig_type_info **types_initial) { | |
37036 | size_t i; | |
37037 | for (i = 0; methods[i].ml_name; ++i) { | |
37038 | char *c = methods[i].ml_doc; | |
37039 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
37040 | int j; | |
37041 | swig_const_info *ci = 0; | |
37042 | char *name = c + 10; | |
37043 | for (j = 0; const_table[j].type; j++) { | |
37044 | if (strncmp(const_table[j].name, name, | |
37045 | strlen(const_table[j].name)) == 0) { | |
37046 | ci = &(const_table[j]); | |
37047 | break; | |
37048 | } | |
37049 | } | |
37050 | if (ci) { | |
37051 | size_t shift = (ci->ptype) - types; | |
37052 | swig_type_info *ty = types_initial[shift]; | |
37053 | size_t ldoc = (c - methods[i].ml_doc); | |
37054 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
37055 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
37056 | char *buff = ndoc; | |
37057 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
37058 | strncpy(buff, methods[i].ml_doc, ldoc); | |
37059 | buff += ldoc; | |
37060 | strncpy(buff, "swig_ptr: ", 10); | |
37061 | buff += 10; | |
37062 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
37063 | methods[i].ml_doc = ndoc; | |
37064 | } | |
37065 | } | |
37066 | } | |
37067 | } | |
37068 | ||
37069 | /* -----------------------------------------------------------------------------* | |
37070 | * Initialize type list | |
37071 | * -----------------------------------------------------------------------------*/ | |
37072 | ||
37073 | #if PY_MAJOR_VERSION < 2 | |
37074 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
37075 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
37076 | static int | |
37077 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
37078 | { | |
37079 | PyObject *dict; | |
37080 | if (!PyModule_Check(m)) { | |
37081 | PyErr_SetString(PyExc_TypeError, | |
37082 | "PyModule_AddObject() needs module as first arg"); | |
37083 | return -1; | |
37084 | } | |
37085 | if (!o) { | |
37086 | PyErr_SetString(PyExc_TypeError, | |
37087 | "PyModule_AddObject() needs non-NULL value"); | |
37088 | return -1; | |
37089 | } | |
37090 | ||
37091 | dict = PyModule_GetDict(m); | |
37092 | if (dict == NULL) { | |
37093 | /* Internal error -- modules must have a dict! */ | |
37094 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
37095 | PyModule_GetName(m)); | |
37096 | return -1; | |
37097 | } | |
37098 | if (PyDict_SetItemString(dict, name, o)) | |
37099 | return -1; | |
37100 | Py_DECREF(o); | |
37101 | return 0; | |
37102 | } | |
37103 | #endif | |
37104 | ||
37105 | static swig_type_info ** | |
37106 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
37107 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
37108 | { | |
37109 | NULL, NULL, 0, NULL | |
37110 | } | |
37111 | };/* Sentinel */ | |
37112 | ||
37113 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
37114 | swig_empty_runtime_method_table); | |
37115 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
37116 | if (pointer && module) { | |
37117 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
37118 | } | |
37119 | return type_list_handle; | |
37120 | } | |
37121 | ||
37122 | static swig_type_info ** | |
37123 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
37124 | swig_type_info **type_pointer; | |
37125 | ||
37126 | /* first check if module already created */ | |
37127 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
37128 | if (type_pointer) { | |
37129 | return type_pointer; | |
37130 | } else { | |
37131 | /* create a new module and variable */ | |
37132 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
37133 | } | |
37134 | } | |
37135 | ||
37136 | #ifdef __cplusplus | |
37137 | } | |
37138 | #endif | |
37139 | ||
37140 | /* -----------------------------------------------------------------------------* | |
37141 | * Partial Init method | |
37142 | * -----------------------------------------------------------------------------*/ | |
37143 | ||
37144 | #ifdef SWIG_LINK_RUNTIME | |
37145 | #ifdef __cplusplus | |
37146 | extern "C" | |
37147 | #endif | |
37148 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
37149 | #endif | |
37150 | ||
d55e5bfc RD |
37151 | #ifdef __cplusplus |
37152 | extern "C" | |
37153 | #endif | |
37154 | SWIGEXPORT(void) SWIG_init(void) { | |
37155 | static PyObject *SWIG_globals = 0; | |
37156 | static int typeinit = 0; | |
37157 | PyObject *m, *d; | |
37158 | int i; | |
37159 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
36ed4f51 RD |
37160 | |
37161 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37162 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
37163 | ||
d55e5bfc RD |
37164 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
37165 | d = PyModule_GetDict(m); | |
37166 | ||
37167 | if (!typeinit) { | |
36ed4f51 RD |
37168 | #ifdef SWIG_LINK_RUNTIME |
37169 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
37170 | #else | |
37171 | # ifndef SWIG_STATIC_RUNTIME | |
37172 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
37173 | # endif | |
37174 | #endif | |
d55e5bfc RD |
37175 | for (i = 0; swig_types_initial[i]; i++) { |
37176 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
37177 | } | |
37178 | typeinit = 1; | |
37179 | } | |
37180 | SWIG_InstallConstants(d,swig_const_table); | |
37181 | ||
37182 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
37183 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
36ed4f51 RD |
37184 | { |
37185 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)(wxBU_LEFT))); | |
37186 | } | |
37187 | { | |
37188 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)(wxBU_TOP))); | |
37189 | } | |
37190 | { | |
37191 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)(wxBU_RIGHT))); | |
37192 | } | |
37193 | { | |
37194 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)(wxBU_BOTTOM))); | |
37195 | } | |
37196 | { | |
37197 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)(wxBU_ALIGN_MASK))); | |
37198 | } | |
37199 | { | |
37200 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)(wxBU_EXACTFIT))); | |
37201 | } | |
37202 | { | |
37203 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)(wxBU_AUTODRAW))); | |
37204 | } | |
d55e5bfc | 37205 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
36ed4f51 RD |
37206 | { |
37207 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)(wxCHK_2STATE))); | |
37208 | } | |
37209 | { | |
37210 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)(wxCHK_3STATE))); | |
37211 | } | |
37212 | { | |
37213 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
37214 | } | |
37215 | { | |
37216 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)(wxCHK_UNCHECKED))); | |
37217 | } | |
37218 | { | |
37219 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)(wxCHK_CHECKED))); | |
37220 | } | |
37221 | { | |
37222 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)(wxCHK_UNDETERMINED))); | |
37223 | } | |
d55e5bfc RD |
37224 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
37225 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
37226 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
36ed4f51 RD |
37227 | { |
37228 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)(wxGA_HORIZONTAL))); | |
37229 | } | |
37230 | { | |
37231 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)(wxGA_VERTICAL))); | |
37232 | } | |
37233 | { | |
37234 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)(wxGA_SMOOTH))); | |
37235 | } | |
37236 | { | |
37237 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)(wxGA_PROGRESSBAR))); | |
37238 | } | |
d55e5bfc RD |
37239 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
37240 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
37241 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
37242 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
37243 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
36ed4f51 RD |
37244 | { |
37245 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)(wxTE_NO_VSCROLL))); | |
37246 | } | |
37247 | { | |
37248 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)(wxTE_AUTO_SCROLL))); | |
37249 | } | |
37250 | { | |
37251 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)(wxTE_READONLY))); | |
37252 | } | |
37253 | { | |
37254 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)(wxTE_MULTILINE))); | |
37255 | } | |
37256 | { | |
37257 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)(wxTE_PROCESS_TAB))); | |
37258 | } | |
37259 | { | |
37260 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)(wxTE_LEFT))); | |
37261 | } | |
37262 | { | |
37263 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)(wxTE_CENTER))); | |
37264 | } | |
37265 | { | |
37266 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)(wxTE_RIGHT))); | |
37267 | } | |
37268 | { | |
37269 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)(wxTE_CENTRE))); | |
37270 | } | |
37271 | { | |
37272 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)(wxTE_RICH))); | |
37273 | } | |
37274 | { | |
37275 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)(wxTE_PROCESS_ENTER))); | |
37276 | } | |
37277 | { | |
37278 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)(wxTE_PASSWORD))); | |
37279 | } | |
37280 | { | |
37281 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)(wxTE_AUTO_URL))); | |
37282 | } | |
37283 | { | |
37284 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)(wxTE_NOHIDESEL))); | |
37285 | } | |
37286 | { | |
37287 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)(wxTE_DONTWRAP))); | |
37288 | } | |
37289 | { | |
08d9e66e | 37290 | PyDict_SetItemString(d,"TE_CHARWRAP", SWIG_From_int((int)(wxTE_CHARWRAP))); |
36ed4f51 RD |
37291 | } |
37292 | { | |
37293 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)(wxTE_WORDWRAP))); | |
37294 | } | |
08d9e66e RD |
37295 | { |
37296 | PyDict_SetItemString(d,"TE_BESTWRAP", SWIG_From_int((int)(wxTE_BESTWRAP))); | |
37297 | } | |
37298 | { | |
37299 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)(wxTE_LINEWRAP))); | |
37300 | } | |
36ed4f51 RD |
37301 | { |
37302 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)(wxTE_RICH2))); | |
37303 | } | |
88c6b281 RD |
37304 | { |
37305 | PyDict_SetItemString(d,"TE_CAPITALIZE", SWIG_From_int((int)(wxTE_CAPITALIZE))); | |
37306 | } | |
36ed4f51 RD |
37307 | { |
37308 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_DEFAULT))); | |
37309 | } | |
37310 | { | |
37311 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_LEFT))); | |
37312 | } | |
37313 | { | |
37314 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTRE))); | |
37315 | } | |
37316 | { | |
37317 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTER))); | |
37318 | } | |
37319 | { | |
37320 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_RIGHT))); | |
37321 | } | |
37322 | { | |
37323 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
37324 | } | |
37325 | { | |
37326 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_TEXT_COLOUR))); | |
37327 | } | |
37328 | { | |
37329 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
37330 | } | |
37331 | { | |
37332 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_FACE))); | |
37333 | } | |
37334 | { | |
37335 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_SIZE))); | |
37336 | } | |
37337 | { | |
37338 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)(wxTEXT_ATTR_FONT_WEIGHT))); | |
37339 | } | |
37340 | { | |
37341 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)(wxTEXT_ATTR_FONT_ITALIC))); | |
37342 | } | |
37343 | { | |
37344 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_UNDERLINE))); | |
37345 | } | |
37346 | { | |
37347 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)(wxTEXT_ATTR_FONT))); | |
37348 | } | |
37349 | { | |
37350 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)(wxTEXT_ATTR_ALIGNMENT))); | |
37351 | } | |
37352 | { | |
37353 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_LEFT_INDENT))); | |
37354 | } | |
37355 | { | |
37356 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_RIGHT_INDENT))); | |
37357 | } | |
37358 | { | |
37359 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)(wxTEXT_ATTR_TABS))); | |
37360 | } | |
37361 | { | |
37362 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)(wxTE_HT_UNKNOWN))); | |
37363 | } | |
37364 | { | |
37365 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)(wxTE_HT_BEFORE))); | |
37366 | } | |
37367 | { | |
37368 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)(wxTE_HT_ON_TEXT))); | |
37369 | } | |
37370 | { | |
37371 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)(wxTE_HT_BELOW))); | |
37372 | } | |
37373 | { | |
37374 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)(wxTE_HT_BEYOND))); | |
37375 | } | |
fef4c27a RD |
37376 | { |
37377 | PyDict_SetItemString(d,"OutOfRangeTextCoord", SWIG_From_int((int)(wxOutOfRangeTextCoord))); | |
37378 | } | |
37379 | { | |
37380 | PyDict_SetItemString(d,"InvalidTextCoord", SWIG_From_int((int)(wxInvalidTextCoord))); | |
37381 | } | |
d55e5bfc RD |
37382 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
37383 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
37384 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
37385 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
37386 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
37387 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
37388 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
36ed4f51 RD |
37389 | { |
37390 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)(wxSP_HORIZONTAL))); | |
37391 | } | |
37392 | { | |
37393 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)(wxSP_VERTICAL))); | |
37394 | } | |
37395 | { | |
37396 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)(wxSP_ARROW_KEYS))); | |
37397 | } | |
37398 | { | |
37399 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)(wxSP_WRAP))); | |
37400 | } | |
d55e5bfc RD |
37401 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
37402 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
37403 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
37404 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
fef4c27a RD |
37405 | { |
37406 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)(wxSL_HORIZONTAL))); | |
37407 | } | |
37408 | { | |
37409 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)(wxSL_VERTICAL))); | |
37410 | } | |
7993762b RD |
37411 | { |
37412 | PyDict_SetItemString(d,"SL_TICKS", SWIG_From_int((int)(wxSL_TICKS))); | |
37413 | } | |
fef4c27a RD |
37414 | { |
37415 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)(wxSL_AUTOTICKS))); | |
37416 | } | |
37417 | { | |
37418 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)(wxSL_LABELS))); | |
37419 | } | |
37420 | { | |
37421 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)(wxSL_LEFT))); | |
37422 | } | |
37423 | { | |
37424 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)(wxSL_TOP))); | |
37425 | } | |
37426 | { | |
37427 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)(wxSL_RIGHT))); | |
37428 | } | |
37429 | { | |
37430 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)(wxSL_BOTTOM))); | |
37431 | } | |
37432 | { | |
37433 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)(wxSL_BOTH))); | |
37434 | } | |
37435 | { | |
37436 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)(wxSL_SELRANGE))); | |
37437 | } | |
37438 | { | |
37439 | PyDict_SetItemString(d,"SL_INVERSE", SWIG_From_int((int)(wxSL_INVERSE))); | |
37440 | } | |
d55e5bfc RD |
37441 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); |
37442 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
51b83b37 | 37443 | SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set); |
36ed4f51 RD |
37444 | { |
37445 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)(wxNB_FIXEDWIDTH))); | |
37446 | } | |
37447 | { | |
37448 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)(wxNB_TOP))); | |
37449 | } | |
37450 | { | |
37451 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)(wxNB_LEFT))); | |
37452 | } | |
37453 | { | |
37454 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)(wxNB_RIGHT))); | |
37455 | } | |
37456 | { | |
37457 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)(wxNB_BOTTOM))); | |
37458 | } | |
37459 | { | |
37460 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)(wxNB_MULTILINE))); | |
37461 | } | |
091fdbfa RD |
37462 | { |
37463 | PyDict_SetItemString(d,"NB_NOPAGETHEME", SWIG_From_int((int)(wxNB_NOPAGETHEME))); | |
37464 | } | |
36ed4f51 RD |
37465 | { |
37466 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)(wxNB_HITTEST_NOWHERE))); | |
37467 | } | |
37468 | { | |
37469 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)(wxNB_HITTEST_ONICON))); | |
37470 | } | |
37471 | { | |
37472 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)(wxNB_HITTEST_ONLABEL))); | |
37473 | } | |
37474 | { | |
37475 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)(wxNB_HITTEST_ONITEM))); | |
37476 | } | |
d55e5bfc RD |
37477 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
37478 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
36ed4f51 RD |
37479 | { |
37480 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)(wxLB_DEFAULT))); | |
37481 | } | |
37482 | { | |
37483 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)(wxLB_TOP))); | |
37484 | } | |
37485 | { | |
37486 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)(wxLB_BOTTOM))); | |
37487 | } | |
37488 | { | |
37489 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)(wxLB_LEFT))); | |
37490 | } | |
37491 | { | |
37492 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)(wxLB_RIGHT))); | |
37493 | } | |
37494 | { | |
37495 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)(wxLB_ALIGN_MASK))); | |
37496 | } | |
d55e5bfc RD |
37497 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
37498 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
36ed4f51 RD |
37499 | { |
37500 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)(wxCHB_DEFAULT))); | |
37501 | } | |
37502 | { | |
37503 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)(wxCHB_TOP))); | |
37504 | } | |
37505 | { | |
37506 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)(wxCHB_BOTTOM))); | |
37507 | } | |
37508 | { | |
37509 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)(wxCHB_LEFT))); | |
37510 | } | |
37511 | { | |
37512 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)(wxCHB_RIGHT))); | |
37513 | } | |
37514 | { | |
37515 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)(wxCHB_ALIGN_MASK))); | |
37516 | } | |
b411df4a RD |
37517 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); |
37518 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
36ed4f51 RD |
37519 | { |
37520 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)(wxTOOL_STYLE_BUTTON))); | |
37521 | } | |
37522 | { | |
37523 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)(wxTOOL_STYLE_SEPARATOR))); | |
37524 | } | |
37525 | { | |
37526 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)(wxTOOL_STYLE_CONTROL))); | |
37527 | } | |
37528 | { | |
37529 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)(wxTB_HORIZONTAL))); | |
37530 | } | |
37531 | { | |
37532 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)(wxTB_VERTICAL))); | |
37533 | } | |
37534 | { | |
37535 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)(wxTB_3DBUTTONS))); | |
37536 | } | |
37537 | { | |
37538 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)(wxTB_FLAT))); | |
37539 | } | |
37540 | { | |
37541 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)(wxTB_DOCKABLE))); | |
37542 | } | |
37543 | { | |
37544 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)(wxTB_NOICONS))); | |
37545 | } | |
37546 | { | |
37547 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)(wxTB_TEXT))); | |
37548 | } | |
37549 | { | |
37550 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)(wxTB_NODIVIDER))); | |
37551 | } | |
37552 | { | |
37553 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)(wxTB_NOALIGN))); | |
37554 | } | |
37555 | { | |
37556 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)(wxTB_HORZ_LAYOUT))); | |
37557 | } | |
37558 | { | |
37559 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)(wxTB_HORZ_TEXT))); | |
37560 | } | |
d55e5bfc | 37561 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
36ed4f51 RD |
37562 | { |
37563 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)(wxLC_VRULES))); | |
37564 | } | |
37565 | { | |
37566 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)(wxLC_HRULES))); | |
37567 | } | |
37568 | { | |
37569 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)(wxLC_ICON))); | |
37570 | } | |
37571 | { | |
37572 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)(wxLC_SMALL_ICON))); | |
37573 | } | |
37574 | { | |
37575 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)(wxLC_LIST))); | |
37576 | } | |
37577 | { | |
37578 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)(wxLC_REPORT))); | |
37579 | } | |
37580 | { | |
37581 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)(wxLC_ALIGN_TOP))); | |
37582 | } | |
37583 | { | |
37584 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)(wxLC_ALIGN_LEFT))); | |
37585 | } | |
37586 | { | |
37587 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)(wxLC_AUTOARRANGE))); | |
37588 | } | |
37589 | { | |
37590 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)(wxLC_VIRTUAL))); | |
37591 | } | |
37592 | { | |
37593 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)(wxLC_EDIT_LABELS))); | |
37594 | } | |
37595 | { | |
37596 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)(wxLC_NO_HEADER))); | |
37597 | } | |
37598 | { | |
37599 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)(wxLC_NO_SORT_HEADER))); | |
37600 | } | |
37601 | { | |
37602 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)(wxLC_SINGLE_SEL))); | |
37603 | } | |
37604 | { | |
37605 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)(wxLC_SORT_ASCENDING))); | |
37606 | } | |
37607 | { | |
37608 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)(wxLC_SORT_DESCENDING))); | |
37609 | } | |
37610 | { | |
37611 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)(wxLC_MASK_TYPE))); | |
37612 | } | |
37613 | { | |
37614 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)(wxLC_MASK_ALIGN))); | |
37615 | } | |
37616 | { | |
37617 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)(wxLC_MASK_SORT))); | |
37618 | } | |
37619 | { | |
37620 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)(wxLIST_MASK_STATE))); | |
37621 | } | |
37622 | { | |
37623 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)(wxLIST_MASK_TEXT))); | |
37624 | } | |
37625 | { | |
37626 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)(wxLIST_MASK_IMAGE))); | |
37627 | } | |
37628 | { | |
37629 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)(wxLIST_MASK_DATA))); | |
37630 | } | |
37631 | { | |
37632 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)(wxLIST_SET_ITEM))); | |
37633 | } | |
37634 | { | |
37635 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)(wxLIST_MASK_WIDTH))); | |
37636 | } | |
37637 | { | |
37638 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)(wxLIST_MASK_FORMAT))); | |
37639 | } | |
37640 | { | |
37641 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)(wxLIST_STATE_DONTCARE))); | |
37642 | } | |
37643 | { | |
37644 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)(wxLIST_STATE_DROPHILITED))); | |
37645 | } | |
37646 | { | |
37647 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)(wxLIST_STATE_FOCUSED))); | |
37648 | } | |
37649 | { | |
37650 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)(wxLIST_STATE_SELECTED))); | |
37651 | } | |
37652 | { | |
37653 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)(wxLIST_STATE_CUT))); | |
37654 | } | |
37655 | { | |
37656 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)(wxLIST_STATE_DISABLED))); | |
37657 | } | |
37658 | { | |
37659 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)(wxLIST_STATE_FILTERED))); | |
37660 | } | |
37661 | { | |
37662 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)(wxLIST_STATE_INUSE))); | |
37663 | } | |
37664 | { | |
37665 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)(wxLIST_STATE_PICKED))); | |
37666 | } | |
37667 | { | |
37668 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)(wxLIST_STATE_SOURCE))); | |
37669 | } | |
37670 | { | |
37671 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)(wxLIST_HITTEST_ABOVE))); | |
37672 | } | |
37673 | { | |
37674 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)(wxLIST_HITTEST_BELOW))); | |
37675 | } | |
37676 | { | |
37677 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)(wxLIST_HITTEST_NOWHERE))); | |
37678 | } | |
37679 | { | |
37680 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMICON))); | |
37681 | } | |
37682 | { | |
37683 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMLABEL))); | |
37684 | } | |
37685 | { | |
37686 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMRIGHT))); | |
37687 | } | |
37688 | { | |
37689 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMSTATEICON))); | |
37690 | } | |
37691 | { | |
37692 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)(wxLIST_HITTEST_TOLEFT))); | |
37693 | } | |
37694 | { | |
37695 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)(wxLIST_HITTEST_TORIGHT))); | |
37696 | } | |
37697 | { | |
37698 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)(wxLIST_HITTEST_ONITEM))); | |
37699 | } | |
37700 | { | |
37701 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)(wxLIST_NEXT_ABOVE))); | |
37702 | } | |
37703 | { | |
37704 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)(wxLIST_NEXT_ALL))); | |
37705 | } | |
37706 | { | |
37707 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)(wxLIST_NEXT_BELOW))); | |
37708 | } | |
37709 | { | |
37710 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)(wxLIST_NEXT_LEFT))); | |
37711 | } | |
37712 | { | |
37713 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)(wxLIST_NEXT_RIGHT))); | |
37714 | } | |
37715 | { | |
37716 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)(wxLIST_ALIGN_DEFAULT))); | |
37717 | } | |
37718 | { | |
37719 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)(wxLIST_ALIGN_LEFT))); | |
37720 | } | |
37721 | { | |
37722 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)(wxLIST_ALIGN_TOP))); | |
37723 | } | |
37724 | { | |
37725 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)(wxLIST_ALIGN_SNAP_TO_GRID))); | |
37726 | } | |
37727 | { | |
37728 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)(wxLIST_FORMAT_LEFT))); | |
37729 | } | |
37730 | { | |
37731 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)(wxLIST_FORMAT_RIGHT))); | |
37732 | } | |
37733 | { | |
37734 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)(wxLIST_FORMAT_CENTRE))); | |
37735 | } | |
37736 | { | |
37737 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)(wxLIST_FORMAT_CENTER))); | |
37738 | } | |
37739 | { | |
37740 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)(wxLIST_AUTOSIZE))); | |
37741 | } | |
37742 | { | |
37743 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)(wxLIST_AUTOSIZE_USEHEADER))); | |
37744 | } | |
37745 | { | |
37746 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)(wxLIST_RECT_BOUNDS))); | |
37747 | } | |
37748 | { | |
37749 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)(wxLIST_RECT_ICON))); | |
37750 | } | |
37751 | { | |
37752 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)(wxLIST_RECT_LABEL))); | |
37753 | } | |
37754 | { | |
37755 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)(wxLIST_FIND_UP))); | |
37756 | } | |
37757 | { | |
37758 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)(wxLIST_FIND_DOWN))); | |
37759 | } | |
37760 | { | |
37761 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)(wxLIST_FIND_LEFT))); | |
37762 | } | |
37763 | { | |
37764 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)(wxLIST_FIND_RIGHT))); | |
37765 | } | |
d55e5bfc RD |
37766 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
37767 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
37768 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
37769 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
37770 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
37771 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
d55e5bfc RD |
37772 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); |
37773 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
37774 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
37775 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
37776 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
37777 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
37778 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
37779 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
37780 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
37781 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
37782 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
37783 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
37784 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
37785 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
37786 | ||
37787 | // Map renamed classes back to their common name for OOR | |
37788 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
37789 | ||
37790 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
36ed4f51 RD |
37791 | { |
37792 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)(wxTR_NO_BUTTONS))); | |
37793 | } | |
37794 | { | |
37795 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)(wxTR_HAS_BUTTONS))); | |
37796 | } | |
37797 | { | |
37798 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)(wxTR_NO_LINES))); | |
37799 | } | |
37800 | { | |
37801 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)(wxTR_LINES_AT_ROOT))); | |
37802 | } | |
37803 | { | |
37804 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)(wxTR_SINGLE))); | |
37805 | } | |
37806 | { | |
37807 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)(wxTR_MULTIPLE))); | |
37808 | } | |
37809 | { | |
37810 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)(wxTR_EXTENDED))); | |
37811 | } | |
37812 | { | |
37813 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
37814 | } | |
37815 | { | |
37816 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)(wxTR_EDIT_LABELS))); | |
37817 | } | |
37818 | { | |
37819 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)(wxTR_HIDE_ROOT))); | |
37820 | } | |
37821 | { | |
37822 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)(wxTR_ROW_LINES))); | |
37823 | } | |
37824 | { | |
37825 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)(wxTR_FULL_ROW_HIGHLIGHT))); | |
37826 | } | |
37827 | { | |
37828 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)(wxTR_DEFAULT_STYLE))); | |
37829 | } | |
37830 | { | |
37831 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)(wxTR_TWIST_BUTTONS))); | |
37832 | } | |
37833 | { | |
37834 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)(wxTR_MAC_BUTTONS))); | |
37835 | } | |
37836 | { | |
37837 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)(wxTR_AQUA_BUTTONS))); | |
37838 | } | |
37839 | { | |
37840 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)(wxTreeItemIcon_Normal))); | |
37841 | } | |
37842 | { | |
37843 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)(wxTreeItemIcon_Selected))); | |
37844 | } | |
37845 | { | |
37846 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)(wxTreeItemIcon_Expanded))); | |
37847 | } | |
37848 | { | |
37849 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)(wxTreeItemIcon_SelectedExpanded))); | |
37850 | } | |
37851 | { | |
37852 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)(wxTreeItemIcon_Max))); | |
37853 | } | |
37854 | { | |
37855 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)(wxTREE_HITTEST_ABOVE))); | |
37856 | } | |
37857 | { | |
37858 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)(wxTREE_HITTEST_BELOW))); | |
37859 | } | |
37860 | { | |
37861 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)(wxTREE_HITTEST_NOWHERE))); | |
37862 | } | |
37863 | { | |
37864 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMBUTTON))); | |
37865 | } | |
37866 | { | |
37867 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMICON))); | |
37868 | } | |
37869 | { | |
37870 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMINDENT))); | |
37871 | } | |
37872 | { | |
37873 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLABEL))); | |
37874 | } | |
37875 | { | |
37876 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMRIGHT))); | |
37877 | } | |
37878 | { | |
37879 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMSTATEICON))); | |
37880 | } | |
37881 | { | |
37882 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)(wxTREE_HITTEST_TOLEFT))); | |
37883 | } | |
37884 | { | |
37885 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)(wxTREE_HITTEST_TORIGHT))); | |
37886 | } | |
37887 | { | |
37888 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMUPPERPART))); | |
37889 | } | |
37890 | { | |
37891 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLOWERPART))); | |
37892 | } | |
37893 | { | |
37894 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)(wxTREE_HITTEST_ONITEM))); | |
37895 | } | |
d55e5bfc RD |
37896 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
37897 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
37898 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
37899 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
37900 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
37901 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
37902 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
37903 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
37904 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
37905 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
37906 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
37907 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
37908 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
37909 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
37910 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
37911 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
37912 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
37913 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
37914 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
37915 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
62d32a5f | 37916 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); |
d55e5bfc RD |
37917 | |
37918 | // Map renamed classes back to their common name for OOR | |
37919 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
37920 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
37921 | ||
37922 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
36ed4f51 RD |
37923 | { |
37924 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)(wxDIRCTRL_DIR_ONLY))); | |
37925 | } | |
37926 | { | |
37927 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)(wxDIRCTRL_SELECT_FIRST))); | |
37928 | } | |
37929 | { | |
37930 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)(wxDIRCTRL_SHOW_FILTERS))); | |
37931 | } | |
37932 | { | |
37933 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)(wxDIRCTRL_3D_INTERNAL))); | |
37934 | } | |
37935 | { | |
37936 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)(wxDIRCTRL_EDIT_LABELS))); | |
37937 | } | |
37938 | { | |
37939 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)(wxFRAME_EX_CONTEXTHELP))); | |
37940 | } | |
37941 | { | |
37942 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)(wxDIALOG_EX_CONTEXTHELP))); | |
37943 | } | |
d55e5bfc RD |
37944 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
37945 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
37946 | ||
37947 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
37948 | ||
53aa7709 RD |
37949 | SWIG_addvarlink(SWIG_globals,(char*)"DatePickerCtrlNameStr",_wrap_DatePickerCtrlNameStr_get, _wrap_DatePickerCtrlNameStr_set); |
37950 | { | |
37951 | PyDict_SetItemString(d,"DP_DEFAULT", SWIG_From_int((int)(wxDP_DEFAULT))); | |
37952 | } | |
37953 | { | |
37954 | PyDict_SetItemString(d,"DP_SPIN", SWIG_From_int((int)(wxDP_SPIN))); | |
37955 | } | |
37956 | { | |
37957 | PyDict_SetItemString(d,"DP_DROPDOWN", SWIG_From_int((int)(wxDP_DROPDOWN))); | |
37958 | } | |
37959 | { | |
37960 | PyDict_SetItemString(d,"DP_SHOWCENTURY", SWIG_From_int((int)(wxDP_SHOWCENTURY))); | |
37961 | } | |
37962 | { | |
37963 | PyDict_SetItemString(d,"DP_ALLOWNONE", SWIG_From_int((int)(wxDP_ALLOWNONE))); | |
37964 | } | |
d55e5bfc RD |
37965 | } |
37966 |