]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
093d3ff1 | 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); | |
093d3ff1 | 26 | }; |
d55e5bfc RD |
27 | #endif |
28 | ||
29 | ||
093d3ff1 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 | |
093d3ff1 | 39 | #include <Python.h> |
d55e5bfc RD |
40 | |
41 | /*********************************************************************** | |
093d3ff1 | 42 | * swigrun.swg |
d55e5bfc | 43 | * |
093d3ff1 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d55e5bfc RD |
46 | * |
47 | ************************************************************************/ | |
48 | ||
093d3ff1 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 | |
093d3ff1 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 |
093d3ff1 | 59 | #define SWIG_TYPE_TABLE_NAME |
d55e5bfc RD |
60 | #endif |
61 | ||
093d3ff1 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 |
093d3ff1 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 | ||
093d3ff1 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 | |
093d3ff1 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 | |
093d3ff1 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 | /*********************************************************************** | |
093d3ff1 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 | * |
093d3ff1 | 442 | * Author : David Beazley (beazley@cs.uchicago.edu) |
d55e5bfc | 443 | * |
093d3ff1 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 | ||
093d3ff1 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 | |
093d3ff1 | 466 | /*************************************************************************/ |
d55e5bfc | 467 | |
d55e5bfc | 468 | |
093d3ff1 | 469 | /* The static type info list */ |
d55e5bfc | 470 | |
093d3ff1 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 | |
093d3ff1 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 | |
093d3ff1 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 | |
093d3ff1 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 | |
093d3ff1 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 | ||
093d3ff1 RD |
507 | /* ----------------------------------------------------------------------------- |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 510 | |
093d3ff1 RD |
511 | #ifdef __cplusplus |
512 | extern "C" { | |
513 | #endif | |
c32bde28 | 514 | |
093d3ff1 RD |
515 | /* ----------------------------------------------------------------------------- |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 518 | |
093d3ff1 RD |
519 | #ifndef SWIGINTERN |
520 | #define SWIGINTERN static | |
521 | #endif | |
d55e5bfc | 522 | |
093d3ff1 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 | ||
093d3ff1 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 | |
093d3ff1 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 | |
c32bde28 | 569 | |
093d3ff1 RD |
570 | /* ----------------------------------------------------------------------------- |
571 | * Alloc. memory flags | |
572 | * ----------------------------------------------------------------------------- */ | |
c32bde28 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 | |
093d3ff1 RD |
578 | } |
579 | #endif | |
d55e5bfc | 580 | |
d55e5bfc | 581 | |
093d3ff1 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 | |
093d3ff1 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) | |
9d7dfdff | 596 | |
d55e5bfc | 597 | |
093d3ff1 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 | |
093d3ff1 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 | |
093d3ff1 RD |
615 | /* Flags for pointer conversion */ |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
d55e5bfc | 618 | |
d55e5bfc | 619 | |
093d3ff1 RD |
620 | #ifdef __cplusplus |
621 | extern "C" { | |
622 | #endif | |
d55e5bfc | 623 | |
093d3ff1 RD |
624 | /* ----------------------------------------------------------------------------- |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 627 | |
093d3ff1 RD |
628 | #ifndef SWIG_BUFFER_SIZE |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
d55e5bfc | 631 | |
093d3ff1 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 | |
093d3ff1 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 | { |
093d3ff1 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 | } |
093d3ff1 | 656 | } |
9d7dfdff | 657 | |
093d3ff1 RD |
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 | ||
093d3ff1 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 | |
093d3ff1 RD |
674 | SWIGRUNTIME PyObject * |
675 | PySwigObject_long(PySwigObject *v) | |
d55e5bfc | 676 | { |
093d3ff1 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 | ||
093d3ff1 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 | |
093d3ff1 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; | |
c32bde28 | 706 | } else { |
093d3ff1 RD |
707 | void *i = v->ptr; |
708 | void *j = w->ptr; | |
709 | return (i < j) ? -1 : (i > j) ? 1 : 0; | |
c32bde28 | 710 | } |
d55e5bfc | 711 | } |
093d3ff1 RD |
712 | |
713 | SWIGRUNTIME void | |
714 | PySwigObject_dealloc(PySwigObject *self) | |
c32bde28 | 715 | { |
093d3ff1 | 716 | PyObject_DEL(self); |
c32bde28 | 717 | } |
093d3ff1 RD |
718 | |
719 | SWIGRUNTIME PyTypeObject* | |
720 | PySwigObject_GetType() { | |
721 | static char PySwigObject_Type__doc__[] = | |
722 | "Swig object carries a C/C++ instance pointer"; | |
9d7dfdff | 723 | |
093d3ff1 RD |
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 |
093d3ff1 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 | |
093d3ff1 RD |
798 | PySwigObject_Type = tmp; |
799 | type_init = 1; | |
800 | } | |
d55e5bfc | 801 | |
093d3ff1 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 | } | |
9d7dfdff | 857 | |
093d3ff1 RD |
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; | |
9d7dfdff | 906 | |
093d3ff1 RD |
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 | } | |
9d7dfdff RD |
953 | |
954 | ||
093d3ff1 RD |
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); | |
093d3ff1 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; | |
9d7dfdff | 1113 | |
093d3ff1 RD |
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] | |
2f91e3df KO |
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]; | |
093d3ff1 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 | ||
9d7dfdff | 1460 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
093d3ff1 RD |
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 | |
c32bde28 | 1536 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 1537 | { |
c32bde28 RD |
1538 | int v; |
1539 | if (!SWIG_AsVal_int(obj, &v)) { | |
1540 | /* | |
093d3ff1 | 1541 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1542 | */ |
1543 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 1544 | } |
c32bde28 | 1545 | return v; |
d55e5bfc RD |
1546 | } |
1547 | ||
1548 | ||
093d3ff1 | 1549 | SWIGINTERNSHORT long |
c32bde28 | 1550 | SWIG_As_long(PyObject* obj) |
d55e5bfc | 1551 | { |
c32bde28 RD |
1552 | long v; |
1553 | if (!SWIG_AsVal_long(obj, &v)) { | |
1554 | /* | |
093d3ff1 | 1555 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1556 | */ |
1557 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 1558 | } |
c32bde28 | 1559 | return v; |
d55e5bfc RD |
1560 | } |
1561 | ||
c32bde28 | 1562 | |
093d3ff1 | 1563 | SWIGINTERNSHORT int |
c32bde28 RD |
1564 | SWIG_Check_int(PyObject* obj) |
1565 | { | |
1566 | return SWIG_AsVal_int(obj, (int*)0); | |
1567 | } | |
d55e5bfc | 1568 | |
c32bde28 | 1569 | |
093d3ff1 | 1570 | SWIGINTERNSHORT int |
c32bde28 | 1571 | SWIG_Check_long(PyObject* obj) |
d55e5bfc | 1572 | { |
c32bde28 | 1573 | return SWIG_AsVal_long(obj, (long*)0); |
d55e5bfc RD |
1574 | } |
1575 | ||
c32bde28 | 1576 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
d55e5bfc | 1577 | |
093d3ff1 | 1578 | SWIGINTERN int |
c32bde28 | 1579 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
d55e5bfc | 1580 | { |
c32bde28 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 | } | |
c32bde28 RD |
1589 | int res = 0; |
1590 | if (SWIG_AsVal_int(obj, &res)) { | |
093d3ff1 | 1591 | if (val) *val = res ? true : false; |
c32bde28 | 1592 | return 1; |
093d3ff1 RD |
1593 | } else { |
1594 | PyErr_Clear(); | |
1595 | } | |
c32bde28 | 1596 | if (val) { |
093d3ff1 | 1597 | SWIG_type_error("bool", obj); |
c32bde28 RD |
1598 | } |
1599 | return 0; | |
1600 | } | |
1601 | ||
1602 | ||
093d3ff1 | 1603 | SWIGINTERNSHORT bool |
c32bde28 RD |
1604 | SWIG_As_bool(PyObject* obj) |
1605 | { | |
1606 | bool v; | |
1607 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1608 | /* | |
093d3ff1 | 1609 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1610 | */ |
1611 | memset((void*)&v, 0, sizeof(bool)); | |
1612 | } | |
1613 | return v; | |
1614 | } | |
1615 | ||
1616 | ||
093d3ff1 | 1617 | SWIGINTERNSHORT int |
c32bde28 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); | |
f78cc896 | 1625 | |
9d7dfdff | 1626 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
093d3ff1 RD |
1627 | #define SWIG_From_long PyInt_FromLong |
1628 | /*@@*/ | |
1629 | ||
1630 | ||
f78cc896 RD |
1631 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
1632 | PyObject* o2; | |
1633 | PyObject* o3; | |
1634 | ||
1635 | if (!target) { | |
1636 | target = o; | |
1637 | } else if (target == Py_None) { | |
1638 | Py_DECREF(Py_None); | |
1639 | target = o; | |
1640 | } else { | |
1641 | if (!PyTuple_Check(target)) { | |
1642 | o2 = target; | |
1643 | target = PyTuple_New(1); | |
1644 | PyTuple_SetItem(target, 0, o2); | |
1645 | } | |
1646 | o3 = PyTuple_New(1); | |
1647 | PyTuple_SetItem(o3, 0, o); | |
1648 | ||
1649 | o2 = target; | |
1650 | target = PySequence_Concat(o2, o3); | |
1651 | Py_DECREF(o2); | |
1652 | Py_DECREF(o3); | |
1653 | } | |
1654 | return target; | |
1655 | } | |
1656 | ||
1657 | ||
d55e5bfc RD |
1658 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); |
1659 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
1660 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
1661 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
1662 | ||
1663 | #include <wx/checklst.h> | |
1664 | ||
1665 | ||
1666 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
093d3ff1 | 1667 | static void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d55e5bfc RD |
1668 | if (clientData) { |
1669 | wxPyClientData* data = new wxPyClientData(clientData); | |
1670 | self->Insert(item, pos, data); | |
1671 | } else | |
1672 | self->Insert(item, pos); | |
1673 | } | |
093d3ff1 | 1674 | static PyObject *wxListBox_GetSelections(wxListBox *self){ |
d55e5bfc RD |
1675 | wxArrayInt lst; |
1676 | self->GetSelections(lst); | |
1677 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
1678 | for(size_t i=0; i<lst.GetCount(); i++) { | |
1679 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
1680 | } | |
1681 | return tup; | |
1682 | } | |
093d3ff1 | 1683 | static void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
1684 | #ifdef __WXMSW__ |
1685 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1686 | self->GetItem(item)->SetTextColour(c); | |
1687 | #endif | |
1688 | } | |
093d3ff1 | 1689 | static void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
d55e5bfc RD |
1690 | #ifdef __WXMSW__ |
1691 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1692 | self->GetItem(item)->SetBackgroundColour(c); | |
1693 | #endif | |
1694 | } | |
093d3ff1 | 1695 | static void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
d55e5bfc RD |
1696 | #ifdef __WXMSW__ |
1697 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1698 | self->GetItem(item)->SetFont(f); | |
1699 | #endif | |
1700 | } | |
1701 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
1702 | ||
093d3ff1 | 1703 | SWIGINTERN int |
c32bde28 | 1704 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
d55e5bfc | 1705 | { |
c32bde28 RD |
1706 | long v = 0; |
1707 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
093d3ff1 | 1708 | SWIG_type_error("unsigned number", obj); |
d55e5bfc | 1709 | } |
c32bde28 RD |
1710 | else if (val) |
1711 | *val = (unsigned long)v; | |
1712 | return 1; | |
d55e5bfc RD |
1713 | } |
1714 | ||
1715 | ||
093d3ff1 | 1716 | SWIGINTERNSHORT unsigned long |
c32bde28 | 1717 | SWIG_As_unsigned_SS_long(PyObject* obj) |
d55e5bfc | 1718 | { |
c32bde28 RD |
1719 | unsigned long v; |
1720 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1721 | /* | |
093d3ff1 | 1722 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1723 | */ |
1724 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 1725 | } |
c32bde28 RD |
1726 | return v; |
1727 | } | |
1728 | ||
1729 | ||
093d3ff1 | 1730 | SWIGINTERNSHORT int |
c32bde28 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 | ||
093d3ff1 | 1736 | static void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d55e5bfc RD |
1737 | self->AppendText(text); |
1738 | } | |
093d3ff1 | 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 | |
093d3ff1 | 1774 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1775 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
1776 | { |
1777 | return (value > LONG_MAX) ? | |
1778 | PyLong_FromUnsignedLong(value) | |
093d3ff1 | 1779 | : PyInt_FromLong((long)(value)); |
d55e5bfc RD |
1780 | } |
1781 | ||
1782 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
093d3ff1 | 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 | } | |
093d3ff1 | 1793 | static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d55e5bfc RD |
1794 | self->SetClientData(new wxPyUserData(clientData)); |
1795 | } | |
093d3ff1 | 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 | } | |
093d3ff1 | 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 | } | |
093d3ff1 | 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 | } | |
093d3ff1 | 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); |
093d3ff1 | 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 | |
093d3ff1 | 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 | } | |
093d3ff1 | 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 | } | |
093d3ff1 | 1907 | static wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d55e5bfc RD |
1908 | wxPoint pos; |
1909 | self->GetItemPosition(item, pos); | |
1910 | return pos; | |
1911 | } | |
093d3ff1 | 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 | } | |
c32bde28 | 1917 | |
093d3ff1 | 1918 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d55e5bfc | 1919 | if (!PyCallable_Check(func)) |
ae8162c8 | 1920 | return false; |
d55e5bfc RD |
1921 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
1922 | } | |
093d3ff1 | 1923 | static wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d55e5bfc RD |
1924 | |
1925 | return self; | |
1926 | ||
1927 | ||
1928 | ||
1929 | } | |
1930 | ||
1931 | #include <wx/treectrl.h> | |
1932 | #include "wx/wxPython/pytree.h" | |
1933 | ||
1934 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
093d3ff1 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"))) { |
ae8162c8 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 | |
9d7dfdff | 1986 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
1987 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
1988 | /*@@*/ | |
d55e5bfc | 1989 | #else |
9d7dfdff | 1990 | /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
1991 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
1992 | /*@@*/ | |
d55e5bfc RD |
1993 | #endif |
1994 | ||
1995 | ||
093d3ff1 | 1996 | SWIGINTERNSHORT int |
c32bde28 RD |
1997 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
1998 | unsigned long max_value, | |
1999 | const char *errmsg) | |
d55e5bfc | 2000 | { |
c32bde28 RD |
2001 | if (value > max_value) { |
2002 | if (errmsg) { | |
2003 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 2004 | "value %lu is greater than '%s' minimum %lu", |
c32bde28 | 2005 | value, errmsg, max_value); |
d55e5bfc | 2006 | } |
c32bde28 | 2007 | return 0; |
d55e5bfc | 2008 | } |
c32bde28 RD |
2009 | return 1; |
2010 | } | |
d55e5bfc RD |
2011 | |
2012 | ||
2013 | #if UINT_MAX != ULONG_MAX | |
093d3ff1 | 2014 | SWIGINTERN int |
c32bde28 | 2015 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
d55e5bfc | 2016 | { |
093d3ff1 | 2017 | const char* errmsg = val ? "unsigned int" : (char*)0; |
c32bde28 RD |
2018 | unsigned long v; |
2019 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2020 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
093d3ff1 | 2021 | if (val) *val = (unsigned int)(v); |
c32bde28 RD |
2022 | return 1; |
2023 | } | |
2024 | } else { | |
2025 | PyErr_Clear(); | |
2026 | } | |
2027 | if (val) { | |
093d3ff1 | 2028 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2029 | } |
2030 | return 0; | |
d55e5bfc RD |
2031 | } |
2032 | #else | |
093d3ff1 | 2033 | SWIGINTERNSHORT unsigned int |
c32bde28 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 | ||
093d3ff1 | 2041 | SWIGINTERNSHORT unsigned int |
c32bde28 | 2042 | SWIG_As_unsigned_SS_int(PyObject* obj) |
d55e5bfc | 2043 | { |
c32bde28 RD |
2044 | unsigned int v; |
2045 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2046 | /* | |
093d3ff1 | 2047 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2048 | */ |
2049 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 2050 | } |
c32bde28 RD |
2051 | return v; |
2052 | } | |
2053 | ||
2054 | ||
093d3ff1 | 2055 | SWIGINTERNSHORT int |
c32bde28 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 | ||
093d3ff1 | 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 | } | |
093d3ff1 | 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 | } | |
093d3ff1 | 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 | } | |
093d3ff1 | 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 | } | |
093d3ff1 | 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)); | |
ae8162c8 | 2100 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d55e5bfc | 2101 | PyList_Append(rval, item); |
a07a67e6 | 2102 | Py_DECREF(item); |
d55e5bfc RD |
2103 | } |
2104 | wxPyEndBlockThreads(blocked); | |
2105 | return rval; | |
2106 | } | |
093d3ff1 | 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); |
ae8162c8 | 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 | } | |
093d3ff1 | 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); |
ae8162c8 | 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 | } | |
093d3ff1 | 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); |
ae8162c8 | 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); | |
c32bde28 | 2139 | |
093d3ff1 | 2140 | SWIGINTERNSHORT PyObject* |
c32bde28 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 | ||
caef1a4d | 2163 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d55e5bfc | 2164 | |
60d5fcc1 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 | ||
caef1a4d | 2199 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
caef1a4d | 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 | ||
caef1a4d | 2235 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
caef1a4d | 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 | ||
093d3ff1 | 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 | |
c32bde28 | 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 | ||
093d3ff1 | 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 | ||
c32bde28 | 2282 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2283 | PyObject *resultobj; |
2284 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 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; | |
ae8162c8 | 2298 | bool temp3 = false ; |
d55e5bfc RD |
2299 | wxPoint temp4 ; |
2300 | wxSize temp5 ; | |
ae8162c8 | 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 | ||
248ed943 | 2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2317 | if (obj1) { |
093d3ff1 RD |
2318 | { |
2319 | arg2 = (int)(SWIG_As_int(obj1)); | |
2320 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2321 | } | |
248ed943 RD |
2322 | } |
2323 | if (obj2) { | |
2324 | { | |
2325 | arg3 = wxString_in_helper(obj2); | |
2326 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2327 | temp3 = true; |
248ed943 | 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) { | |
093d3ff1 RD |
2343 | { |
2344 | arg6 = (long)(SWIG_As_long(obj5)); | |
2345 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2346 | } | |
d55e5bfc RD |
2347 | } |
2348 | if (obj6) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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 | ||
c32bde28 | 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 ; | |
248ed943 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; | |
ae8162c8 | 2436 | bool temp4 = false ; |
d55e5bfc RD |
2437 | wxPoint temp5 ; |
2438 | wxSize temp6 ; | |
ae8162c8 | 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 | ||
248ed943 | 2453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 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; | |
248ed943 | 2458 | if (obj2) { |
093d3ff1 RD |
2459 | { |
2460 | arg3 = (int)(SWIG_As_int(obj2)); | |
2461 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2462 | } | |
248ed943 RD |
2463 | } |
2464 | if (obj3) { | |
2465 | { | |
2466 | arg4 = wxString_in_helper(obj3); | |
2467 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2468 | temp4 = true; |
248ed943 | 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) { | |
093d3ff1 RD |
2484 | { |
2485 | arg7 = (long)(SWIG_As_long(obj6)); | |
2486 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2487 | } | |
d55e5bfc RD |
2488 | } |
2489 | if (obj7) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 | 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 | ||
c32bde28 | 2589 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 2590 | PyObject *resultobj; |
093d3ff1 | 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) { | |
093d3ff1 RD |
2600 | { |
2601 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
2602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2603 | } | |
f20a2e1f RD |
2604 | } |
2605 | { | |
19272049 | 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; | |
093d3ff1 | 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 | ||
c32bde28 | 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 | } | |
c32bde28 | 2631 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2632 | PyObject *resultobj; |
2633 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 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 ; | |
ae8162c8 | 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 | ||
248ed943 | 2662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2665 | if (obj1) { |
093d3ff1 RD |
2666 | { |
2667 | arg2 = (int)(SWIG_As_int(obj1)); | |
2668 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2669 | } | |
248ed943 RD |
2670 | } |
2671 | if (obj2) { | |
093d3ff1 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; | |
248ed943 | 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) { | |
093d3ff1 RD |
2694 | { |
2695 | arg6 = (long)(SWIG_As_long(obj5)); | |
2696 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2697 | } | |
d55e5bfc RD |
2698 | } |
2699 | if (obj6) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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 | ||
c32bde28 | 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 ; | |
248ed943 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 ; | |
ae8162c8 | 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 | ||
248ed943 | 2795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 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; | |
248ed943 | 2800 | if (obj2) { |
093d3ff1 RD |
2801 | { |
2802 | arg3 = (int)(SWIG_As_int(obj2)); | |
2803 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2804 | } | |
248ed943 RD |
2805 | } |
2806 | if (obj3) { | |
093d3ff1 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; | |
248ed943 | 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) { | |
093d3ff1 RD |
2829 | { |
2830 | arg7 = (long)(SWIG_As_long(obj6)); | |
2831 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2832 | } | |
d55e5bfc RD |
2833 | } |
2834 | if (obj7) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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; | |
093d3ff1 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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; | |
093d3ff1 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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; | |
093d3ff1 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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; | |
093d3ff1 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | } | |
093d3ff1 RD |
3191 | { |
3192 | resultobj = SWIG_From_int((int)(result)); | |
3193 | } | |
d55e5bfc RD |
3194 | return resultobj; |
3195 | fail: | |
3196 | return NULL; | |
3197 | } | |
3198 | ||
3199 | ||
c32bde28 | 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; | |
093d3ff1 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 | } | |
093d3ff1 RD |
3219 | { |
3220 | resultobj = SWIG_From_int((int)(result)); | |
3221 | } | |
d55e5bfc RD |
3222 | return resultobj; |
3223 | fail: | |
3224 | return NULL; | |
3225 | } | |
3226 | ||
3227 | ||
c32bde28 | 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 | } | |
c32bde28 | 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 | ||
093d3ff1 | 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 | ||
c32bde28 | 3255 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3256 | PyObject *resultobj; |
3257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 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; | |
ae8162c8 | 3271 | bool temp3 = false ; |
d55e5bfc RD |
3272 | wxPoint temp4 ; |
3273 | wxSize temp5 ; | |
ae8162c8 | 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 | ||
248ed943 | 3287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 3290 | if (obj1) { |
093d3ff1 RD |
3291 | { |
3292 | arg2 = (int)(SWIG_As_int(obj1)); | |
3293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3294 | } | |
248ed943 RD |
3295 | } |
3296 | if (obj2) { | |
3297 | { | |
3298 | arg3 = wxString_in_helper(obj2); | |
3299 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3300 | temp3 = true; |
248ed943 | 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) { | |
093d3ff1 RD |
3316 | { |
3317 | arg6 = (long)(SWIG_As_long(obj5)); | |
3318 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3319 | } | |
d55e5bfc RD |
3320 | } |
3321 | if (obj6) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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 | ||
c32bde28 | 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 ; | |
248ed943 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; | |
ae8162c8 | 3409 | bool temp4 = false ; |
d55e5bfc RD |
3410 | wxPoint temp5 ; |
3411 | wxSize temp6 ; | |
ae8162c8 | 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 | ||
248ed943 | 3426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 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; | |
248ed943 | 3431 | if (obj2) { |
093d3ff1 RD |
3432 | { |
3433 | arg3 = (int)(SWIG_As_int(obj2)); | |
3434 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3435 | } | |
248ed943 RD |
3436 | } |
3437 | if (obj3) { | |
3438 | { | |
3439 | arg4 = wxString_in_helper(obj3); | |
3440 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3441 | temp4 = true; |
248ed943 | 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) { | |
093d3ff1 RD |
3457 | { |
3458 | arg7 = (long)(SWIG_As_long(obj6)); | |
3459 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3460 | } | |
d55e5bfc RD |
3461 | } |
3462 | if (obj7) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 3598 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3599 | PyObject *resultobj; |
3600 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
093d3ff1 | 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; | |
093d3ff1 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(); | |
093d3ff1 | 3612 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); |
d55e5bfc RD |
3613 | |
3614 | wxPyEndAllowThreads(__tstate); | |
3615 | if (PyErr_Occurred()) SWIG_fail; | |
3616 | } | |
093d3ff1 | 3617 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
3618 | return resultobj; |
3619 | fail: | |
3620 | return NULL; | |
3621 | } | |
3622 | ||
3623 | ||
c32bde28 | 3624 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3625 | PyObject *resultobj; |
3626 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
093d3ff1 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 3711 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 3712 | PyObject *resultobj; |
093d3ff1 | 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) { | |
093d3ff1 RD |
3722 | { |
3723 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
3724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3725 | } | |
f20a2e1f RD |
3726 | } |
3727 | { | |
19272049 | 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; | |
093d3ff1 | 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 | ||
c32bde28 | 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 | } | |
c32bde28 | 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 | ||
093d3ff1 | 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 | ||
c32bde28 | 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 ; | |
ae8162c8 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; | |
093d3ff1 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) { |
093d3ff1 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; | |
ae8162c8 | 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) { | |
093d3ff1 RD |
3846 | { |
3847 | arg6 = (long)(SWIG_As_long(obj5)); | |
3848 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3849 | } | |
d55e5bfc RD |
3850 | } |
3851 | if (obj6) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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 | ||
c32bde28 | 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 ; | |
ae8162c8 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; | |
093d3ff1 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) { |
093d3ff1 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; | |
ae8162c8 | 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) { | |
093d3ff1 RD |
3997 | { |
3998 | arg7 = (long)(SWIG_As_long(obj6)); | |
3999 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4000 | } | |
d55e5bfc RD |
4001 | } |
4002 | if (obj7) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
9d7dfdff 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 | ||
c32bde28 | 4077 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 4078 | PyObject *resultobj; |
093d3ff1 | 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) { | |
093d3ff1 RD |
4088 | { |
4089 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
4090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4091 | } | |
f20a2e1f RD |
4092 | } |
4093 | { | |
19272049 | 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; | |
093d3ff1 | 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 | ||
c32bde28 | 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 | } | |
c32bde28 | 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 | ||
093d3ff1 | 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 | ||
c32bde28 | 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; | |
ae8162c8 | 4157 | bool temp3 = false ; |
d55e5bfc RD |
4158 | wxPoint temp4 ; |
4159 | wxSize temp5 ; | |
ae8162c8 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; | |
093d3ff1 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) { |
093d3ff1 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; | |
ae8162c8 | 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; | |
ae8162c8 | 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) { | |
093d3ff1 RD |
4223 | { |
4224 | arg7 = (long)(SWIG_As_long(obj6)); | |
4225 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4226 | } | |
d55e5bfc RD |
4227 | } |
4228 | if (obj7) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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 | ||
c32bde28 | 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; | |
ae8162c8 | 4324 | bool temp4 = false ; |
d55e5bfc RD |
4325 | wxPoint temp5 ; |
4326 | wxSize temp6 ; | |
ae8162c8 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; | |
093d3ff1 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) { |
093d3ff1 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; | |
ae8162c8 | 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; | |
ae8162c8 | 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) { | |
093d3ff1 RD |
4393 | { |
4394 | arg8 = (long)(SWIG_As_long(obj7)); | |
4395 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4396 | } | |
d55e5bfc RD |
4397 | } |
4398 | if (obj8) { | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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 ; | |
ae8162c8 | 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; | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | } | |
093d3ff1 RD |
4651 | { |
4652 | resultobj = SWIG_From_long((long)(result)); | |
4653 | } | |
d55e5bfc RD |
4654 | return resultobj; |
4655 | fail: | |
4656 | return NULL; | |
4657 | } | |
4658 | ||
4659 | ||
c32bde28 | 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; | |
093d3ff1 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 | } | |
093d3ff1 RD |
4679 | { |
4680 | resultobj = SWIG_From_long((long)(result)); | |
4681 | } | |
d55e5bfc RD |
4682 | return resultobj; |
4683 | fail: | |
4684 | return NULL; | |
4685 | } | |
4686 | ||
4687 | ||
c32bde28 | 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 ; | |
ae8162c8 | 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; | |
093d3ff1 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; | |
ae8162c8 | 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
c32bde28 | 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; | |
093d3ff1 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 | ||
f78cc896 RD |
4809 | static PyObject *_wrap_ComboBox_GetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
4810 | PyObject *resultobj; | |
4811 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4812 | long *arg2 = (long *) 0 ; | |
4813 | long *arg3 = (long *) 0 ; | |
4814 | long temp2 ; | |
4815 | int res2 = 0 ; | |
4816 | long temp3 ; | |
4817 | int res3 = 0 ; | |
4818 | PyObject * obj0 = 0 ; | |
4819 | char *kwnames[] = { | |
4820 | (char *) "self", NULL | |
4821 | }; | |
4822 | ||
4823 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4824 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetMark",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
f78cc896 RD |
4828 | { |
4829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4830 | (arg1)->GetSelection(arg2,arg3); | |
4831 | ||
4832 | wxPyEndAllowThreads(__tstate); | |
4833 | if (PyErr_Occurred()) SWIG_fail; | |
4834 | } | |
4835 | Py_INCREF(Py_None); resultobj = Py_None; | |
4836 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4837 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
4838 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4839 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4840 | return resultobj; | |
4841 | fail: | |
4842 | return NULL; | |
4843 | } | |
4844 | ||
4845 | ||
9d7dfdff RD |
4846 | static PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
4847 | PyObject *resultobj; | |
4848 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4849 | int result; | |
4850 | PyObject * obj0 = 0 ; | |
4851 | char *kwnames[] = { | |
4852 | (char *) "self", NULL | |
4853 | }; | |
4854 | ||
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetCurrentSelection",kwnames,&obj0)) goto fail; | |
4856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4858 | { | |
4859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4860 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
4861 | ||
4862 | wxPyEndAllowThreads(__tstate); | |
4863 | if (PyErr_Occurred()) SWIG_fail; | |
4864 | } | |
4865 | { | |
4866 | resultobj = SWIG_From_int((int)(result)); | |
4867 | } | |
4868 | return resultobj; | |
4869 | fail: | |
4870 | return NULL; | |
4871 | } | |
4872 | ||
4873 | ||
c32bde28 | 4874 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
4875 | PyObject *resultobj; |
4876 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4877 | wxString *arg2 = 0 ; | |
4878 | bool result; | |
ae8162c8 | 4879 | bool temp2 = false ; |
121b9a67 RD |
4880 | PyObject * obj0 = 0 ; |
4881 | PyObject * obj1 = 0 ; | |
4882 | char *kwnames[] = { | |
4883 | (char *) "self",(char *) "string", NULL | |
4884 | }; | |
4885 | ||
4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
121b9a67 RD |
4889 | { |
4890 | arg2 = wxString_in_helper(obj1); | |
4891 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4892 | temp2 = true; |
121b9a67 RD |
4893 | } |
4894 | { | |
4895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4896 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
4897 | ||
4898 | wxPyEndAllowThreads(__tstate); | |
4899 | if (PyErr_Occurred()) SWIG_fail; | |
4900 | } | |
4901 | { | |
4902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4903 | } | |
4904 | { | |
4905 | if (temp2) | |
4906 | delete arg2; | |
4907 | } | |
4908 | return resultobj; | |
4909 | fail: | |
4910 | { | |
4911 | if (temp2) | |
4912 | delete arg2; | |
4913 | } | |
4914 | return NULL; | |
4915 | } | |
4916 | ||
4917 | ||
c32bde28 | 4918 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
4919 | PyObject *resultobj; |
4920 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4921 | int arg2 ; | |
4922 | wxString *arg3 = 0 ; | |
ae8162c8 | 4923 | bool temp3 = false ; |
121b9a67 RD |
4924 | PyObject * obj0 = 0 ; |
4925 | PyObject * obj1 = 0 ; | |
4926 | PyObject * obj2 = 0 ; | |
4927 | char *kwnames[] = { | |
4928 | (char *) "self",(char *) "n",(char *) "string", NULL | |
4929 | }; | |
4930 | ||
4931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
4932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4934 | { | |
4935 | arg2 = (int)(SWIG_As_int(obj1)); | |
4936 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4937 | } | |
121b9a67 RD |
4938 | { |
4939 | arg3 = wxString_in_helper(obj2); | |
4940 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4941 | temp3 = true; |
121b9a67 RD |
4942 | } |
4943 | { | |
4944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4945 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
4946 | ||
4947 | wxPyEndAllowThreads(__tstate); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | } | |
4950 | Py_INCREF(Py_None); resultobj = Py_None; | |
4951 | { | |
4952 | if (temp3) | |
4953 | delete arg3; | |
4954 | } | |
4955 | return resultobj; | |
4956 | fail: | |
4957 | { | |
4958 | if (temp3) | |
4959 | delete arg3; | |
4960 | } | |
4961 | return NULL; | |
4962 | } | |
4963 | ||
4964 | ||
c32bde28 | 4965 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4966 | PyObject *resultobj; |
4967 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4968 | bool arg2 ; | |
4969 | PyObject * obj0 = 0 ; | |
4970 | PyObject * obj1 = 0 ; | |
4971 | char *kwnames[] = { | |
4972 | (char *) "self",(char *) "editable", NULL | |
4973 | }; | |
4974 | ||
4975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4978 | { | |
4979 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
4980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4981 | } | |
d55e5bfc RD |
4982 | { |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | (arg1)->SetEditable(arg2); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | Py_INCREF(Py_None); resultobj = Py_None; | |
4990 | return resultobj; | |
4991 | fail: | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
c32bde28 | 4996 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4997 | PyObject *resultobj; |
4998 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4999 | PyObject * obj0 = 0 ; | |
5000 | char *kwnames[] = { | |
5001 | (char *) "self", NULL | |
5002 | }; | |
5003 | ||
5004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5005 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5006 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5007 | { |
5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5009 | (arg1)->SetInsertionPointEnd(); | |
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 | ||
c32bde28 | 5021 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5022 | PyObject *resultobj; |
5023 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5024 | long arg2 ; | |
5025 | long arg3 ; | |
5026 | PyObject * obj0 = 0 ; | |
5027 | PyObject * obj1 = 0 ; | |
5028 | PyObject * obj2 = 0 ; | |
5029 | char *kwnames[] = { | |
5030 | (char *) "self",(char *) "from",(char *) "to", NULL | |
5031 | }; | |
5032 | ||
5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5036 | { | |
5037 | arg2 = (long)(SWIG_As_long(obj1)); | |
5038 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5039 | } | |
5040 | { | |
5041 | arg3 = (long)(SWIG_As_long(obj2)); | |
5042 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5043 | } | |
d55e5bfc RD |
5044 | { |
5045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5046 | (arg1)->Remove(arg2,arg3); | |
5047 | ||
5048 | wxPyEndAllowThreads(__tstate); | |
5049 | if (PyErr_Occurred()) SWIG_fail; | |
5050 | } | |
5051 | Py_INCREF(Py_None); resultobj = Py_None; | |
5052 | return resultobj; | |
5053 | fail: | |
5054 | return NULL; | |
5055 | } | |
5056 | ||
5057 | ||
b519803b RD |
5058 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
5059 | PyObject *resultobj; | |
5060 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5061 | bool result; | |
5062 | PyObject * obj0 = 0 ; | |
5063 | char *kwnames[] = { | |
5064 | (char *) "self", NULL | |
5065 | }; | |
5066 | ||
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5070 | { |
5071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5072 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
5073 | ||
5074 | wxPyEndAllowThreads(__tstate); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
5077 | { | |
5078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5079 | } | |
5080 | return resultobj; | |
5081 | fail: | |
5082 | return NULL; | |
5083 | } | |
5084 | ||
5085 | ||
5086 | static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5087 | PyObject *resultobj; | |
5088 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5089 | PyObject * obj0 = 0 ; | |
5090 | char *kwnames[] = { | |
5091 | (char *) "self", NULL | |
5092 | }; | |
5093 | ||
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5097 | { |
5098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5099 | (arg1)->Undo(); | |
5100 | ||
5101 | wxPyEndAllowThreads(__tstate); | |
5102 | if (PyErr_Occurred()) SWIG_fail; | |
5103 | } | |
5104 | Py_INCREF(Py_None); resultobj = Py_None; | |
5105 | return resultobj; | |
5106 | fail: | |
5107 | return NULL; | |
5108 | } | |
5109 | ||
5110 | ||
5111 | static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5112 | PyObject *resultobj; | |
5113 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5114 | PyObject * obj0 = 0 ; | |
5115 | char *kwnames[] = { | |
5116 | (char *) "self", NULL | |
5117 | }; | |
5118 | ||
5119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5122 | { |
5123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5124 | (arg1)->Redo(); | |
5125 | ||
5126 | wxPyEndAllowThreads(__tstate); | |
5127 | if (PyErr_Occurred()) SWIG_fail; | |
5128 | } | |
5129 | Py_INCREF(Py_None); resultobj = Py_None; | |
5130 | return resultobj; | |
5131 | fail: | |
5132 | return NULL; | |
5133 | } | |
5134 | ||
5135 | ||
5136 | static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
5137 | PyObject *resultobj; | |
5138 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5139 | PyObject * obj0 = 0 ; | |
5140 | char *kwnames[] = { | |
5141 | (char *) "self", NULL | |
5142 | }; | |
5143 | ||
5144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5147 | { |
5148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5149 | (arg1)->SelectAll(); | |
5150 | ||
5151 | wxPyEndAllowThreads(__tstate); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | } | |
5154 | Py_INCREF(Py_None); resultobj = Py_None; | |
5155 | return resultobj; | |
5156 | fail: | |
5157 | return NULL; | |
5158 | } | |
5159 | ||
5160 | ||
5161 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
5162 | PyObject *resultobj; | |
5163 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5164 | bool result; | |
5165 | PyObject * obj0 = 0 ; | |
5166 | char *kwnames[] = { | |
5167 | (char *) "self", NULL | |
5168 | }; | |
5169 | ||
5170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5173 | { |
5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5175 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
5176 | ||
5177 | wxPyEndAllowThreads(__tstate); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
5180 | { | |
5181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5182 | } | |
5183 | return resultobj; | |
5184 | fail: | |
5185 | return NULL; | |
5186 | } | |
5187 | ||
5188 | ||
5189 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
5190 | PyObject *resultobj; | |
5191 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5192 | bool result; | |
5193 | PyObject * obj0 = 0 ; | |
5194 | char *kwnames[] = { | |
5195 | (char *) "self", NULL | |
5196 | }; | |
5197 | ||
5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5201 | { |
5202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5203 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
5204 | ||
5205 | wxPyEndAllowThreads(__tstate); | |
5206 | if (PyErr_Occurred()) SWIG_fail; | |
5207 | } | |
5208 | { | |
5209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5210 | } | |
5211 | return resultobj; | |
5212 | fail: | |
5213 | return NULL; | |
5214 | } | |
5215 | ||
5216 | ||
5217 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
5218 | PyObject *resultobj; | |
5219 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5220 | bool result; | |
5221 | PyObject * obj0 = 0 ; | |
5222 | char *kwnames[] = { | |
5223 | (char *) "self", NULL | |
5224 | }; | |
5225 | ||
5226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5229 | { |
5230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5231 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
5232 | ||
5233 | wxPyEndAllowThreads(__tstate); | |
5234 | if (PyErr_Occurred()) SWIG_fail; | |
5235 | } | |
5236 | { | |
5237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5238 | } | |
5239 | return resultobj; | |
5240 | fail: | |
5241 | return NULL; | |
5242 | } | |
5243 | ||
5244 | ||
5245 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5246 | PyObject *resultobj; | |
5247 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5248 | bool result; | |
5249 | PyObject * obj0 = 0 ; | |
5250 | char *kwnames[] = { | |
5251 | (char *) "self", NULL | |
5252 | }; | |
5253 | ||
5254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5257 | { |
5258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5259 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
5260 | ||
5261 | wxPyEndAllowThreads(__tstate); | |
5262 | if (PyErr_Occurred()) SWIG_fail; | |
5263 | } | |
5264 | { | |
5265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5266 | } | |
5267 | return resultobj; | |
5268 | fail: | |
5269 | return NULL; | |
5270 | } | |
5271 | ||
5272 | ||
5273 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5274 | PyObject *resultobj; | |
5275 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5276 | bool result; | |
5277 | PyObject * obj0 = 0 ; | |
5278 | char *kwnames[] = { | |
5279 | (char *) "self", NULL | |
5280 | }; | |
5281 | ||
5282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
b519803b RD |
5285 | { |
5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5287 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
5288 | ||
5289 | wxPyEndAllowThreads(__tstate); | |
5290 | if (PyErr_Occurred()) SWIG_fail; | |
5291 | } | |
5292 | { | |
5293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5294 | } | |
5295 | return resultobj; | |
5296 | fail: | |
5297 | return NULL; | |
5298 | } | |
5299 | ||
5300 | ||
c32bde28 | 5301 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 5302 | PyObject *resultobj; |
093d3ff1 | 5303 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
5304 | wxVisualAttributes result; |
5305 | PyObject * obj0 = 0 ; | |
5306 | char *kwnames[] = { | |
5307 | (char *) "variant", NULL | |
5308 | }; | |
5309 | ||
5310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5311 | if (obj0) { | |
093d3ff1 RD |
5312 | { |
5313 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5315 | } | |
f20a2e1f RD |
5316 | } |
5317 | { | |
19272049 | 5318 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5320 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5321 | ||
5322 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5323 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5324 | } |
5325 | { | |
5326 | wxVisualAttributes * resultptr; | |
093d3ff1 | 5327 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
5328 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5329 | } | |
5330 | return resultobj; | |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
c32bde28 | 5336 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5337 | PyObject *obj; |
5338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5339 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
5340 | Py_INCREF(obj); | |
5341 | return Py_BuildValue((char *)""); | |
5342 | } | |
c32bde28 | 5343 | static int _wrap_GaugeNameStr_set(PyObject *) { |
d55e5bfc RD |
5344 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
5345 | return 1; | |
5346 | } | |
5347 | ||
5348 | ||
093d3ff1 | 5349 | static PyObject *_wrap_GaugeNameStr_get(void) { |
d55e5bfc RD |
5350 | PyObject *pyobj; |
5351 | ||
5352 | { | |
5353 | #if wxUSE_UNICODE | |
5354 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5355 | #else | |
5356 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5357 | #endif | |
5358 | } | |
5359 | return pyobj; | |
5360 | } | |
5361 | ||
5362 | ||
c32bde28 | 5363 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5364 | PyObject *resultobj; |
5365 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5366 | int arg2 = (int) -1 ; |
5367 | int arg3 = (int) 100 ; | |
d55e5bfc RD |
5368 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5369 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5370 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5371 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5372 | long arg6 = (long) wxGA_HORIZONTAL ; | |
5373 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5374 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5375 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
5376 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5377 | wxGauge *result; | |
5378 | wxPoint temp4 ; | |
5379 | wxSize temp5 ; | |
ae8162c8 | 5380 | bool temp8 = false ; |
d55e5bfc RD |
5381 | PyObject * obj0 = 0 ; |
5382 | PyObject * obj1 = 0 ; | |
5383 | PyObject * obj2 = 0 ; | |
5384 | PyObject * obj3 = 0 ; | |
5385 | PyObject * obj4 = 0 ; | |
5386 | PyObject * obj5 = 0 ; | |
5387 | PyObject * obj6 = 0 ; | |
5388 | PyObject * obj7 = 0 ; | |
5389 | char *kwnames[] = { | |
5390 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5391 | }; | |
5392 | ||
248ed943 | 5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
5394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 5396 | if (obj1) { |
093d3ff1 RD |
5397 | { |
5398 | arg2 = (int)(SWIG_As_int(obj1)); | |
5399 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5400 | } | |
248ed943 RD |
5401 | } |
5402 | if (obj2) { | |
093d3ff1 RD |
5403 | { |
5404 | arg3 = (int)(SWIG_As_int(obj2)); | |
5405 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5406 | } | |
248ed943 | 5407 | } |
d55e5bfc RD |
5408 | if (obj3) { |
5409 | { | |
5410 | arg4 = &temp4; | |
5411 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5412 | } | |
5413 | } | |
5414 | if (obj4) { | |
5415 | { | |
5416 | arg5 = &temp5; | |
5417 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5418 | } | |
5419 | } | |
5420 | if (obj5) { | |
093d3ff1 RD |
5421 | { |
5422 | arg6 = (long)(SWIG_As_long(obj5)); | |
5423 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5424 | } | |
d55e5bfc RD |
5425 | } |
5426 | if (obj6) { | |
093d3ff1 RD |
5427 | { |
5428 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5429 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5430 | if (arg7 == NULL) { | |
5431 | SWIG_null_ref("wxValidator"); | |
5432 | } | |
5433 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
5434 | } |
5435 | } | |
5436 | if (obj7) { | |
5437 | { | |
5438 | arg8 = wxString_in_helper(obj7); | |
5439 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5440 | temp8 = true; |
d55e5bfc RD |
5441 | } |
5442 | } | |
5443 | { | |
0439c23b | 5444 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5446 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5447 | ||
5448 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5449 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5450 | } |
5451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
5452 | { | |
5453 | if (temp8) | |
5454 | delete arg8; | |
5455 | } | |
5456 | return resultobj; | |
5457 | fail: | |
5458 | { | |
5459 | if (temp8) | |
5460 | delete arg8; | |
5461 | } | |
5462 | return NULL; | |
5463 | } | |
5464 | ||
5465 | ||
c32bde28 | 5466 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5467 | PyObject *resultobj; |
5468 | wxGauge *result; | |
5469 | char *kwnames[] = { | |
5470 | NULL | |
5471 | }; | |
5472 | ||
5473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
5474 | { | |
0439c23b | 5475 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5477 | result = (wxGauge *)new wxGauge(); | |
5478 | ||
5479 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5480 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5481 | } |
5482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
5483 | return resultobj; | |
5484 | fail: | |
5485 | return NULL; | |
5486 | } | |
5487 | ||
5488 | ||
c32bde28 | 5489 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5490 | PyObject *resultobj; |
5491 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5492 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5493 | int arg3 = (int) -1 ; |
5494 | int arg4 = (int) 100 ; | |
d55e5bfc RD |
5495 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5496 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5497 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5498 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5499 | long arg7 = (long) wxGA_HORIZONTAL ; | |
5500 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5501 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5502 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
5503 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5504 | bool result; | |
5505 | wxPoint temp5 ; | |
5506 | wxSize temp6 ; | |
ae8162c8 | 5507 | bool temp9 = false ; |
d55e5bfc RD |
5508 | PyObject * obj0 = 0 ; |
5509 | PyObject * obj1 = 0 ; | |
5510 | PyObject * obj2 = 0 ; | |
5511 | PyObject * obj3 = 0 ; | |
5512 | PyObject * obj4 = 0 ; | |
5513 | PyObject * obj5 = 0 ; | |
5514 | PyObject * obj6 = 0 ; | |
5515 | PyObject * obj7 = 0 ; | |
5516 | PyObject * obj8 = 0 ; | |
5517 | char *kwnames[] = { | |
5518 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5519 | }; | |
5520 | ||
248ed943 | 5521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
5522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5524 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5525 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 5526 | if (obj2) { |
093d3ff1 RD |
5527 | { |
5528 | arg3 = (int)(SWIG_As_int(obj2)); | |
5529 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5530 | } | |
248ed943 RD |
5531 | } |
5532 | if (obj3) { | |
093d3ff1 RD |
5533 | { |
5534 | arg4 = (int)(SWIG_As_int(obj3)); | |
5535 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5536 | } | |
248ed943 | 5537 | } |
d55e5bfc RD |
5538 | if (obj4) { |
5539 | { | |
5540 | arg5 = &temp5; | |
5541 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5542 | } | |
5543 | } | |
5544 | if (obj5) { | |
5545 | { | |
5546 | arg6 = &temp6; | |
5547 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5548 | } | |
5549 | } | |
5550 | if (obj6) { | |
093d3ff1 RD |
5551 | { |
5552 | arg7 = (long)(SWIG_As_long(obj6)); | |
5553 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5554 | } | |
d55e5bfc RD |
5555 | } |
5556 | if (obj7) { | |
093d3ff1 RD |
5557 | { |
5558 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5559 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5560 | if (arg8 == NULL) { | |
5561 | SWIG_null_ref("wxValidator"); | |
5562 | } | |
5563 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
5564 | } |
5565 | } | |
5566 | if (obj8) { | |
5567 | { | |
5568 | arg9 = wxString_in_helper(obj8); | |
5569 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 5570 | temp9 = true; |
d55e5bfc RD |
5571 | } |
5572 | } | |
5573 | { | |
5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5575 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5576 | ||
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | } | |
5580 | { | |
5581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5582 | } | |
5583 | { | |
5584 | if (temp9) | |
5585 | delete arg9; | |
5586 | } | |
5587 | return resultobj; | |
5588 | fail: | |
5589 | { | |
5590 | if (temp9) | |
5591 | delete arg9; | |
5592 | } | |
5593 | return NULL; | |
5594 | } | |
5595 | ||
5596 | ||
c32bde28 | 5597 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5598 | PyObject *resultobj; |
5599 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5600 | int arg2 ; | |
5601 | PyObject * obj0 = 0 ; | |
5602 | PyObject * obj1 = 0 ; | |
5603 | char *kwnames[] = { | |
5604 | (char *) "self",(char *) "range", NULL | |
5605 | }; | |
5606 | ||
5607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5610 | { | |
5611 | arg2 = (int)(SWIG_As_int(obj1)); | |
5612 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5613 | } | |
d55e5bfc RD |
5614 | { |
5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5616 | (arg1)->SetRange(arg2); | |
5617 | ||
5618 | wxPyEndAllowThreads(__tstate); | |
5619 | if (PyErr_Occurred()) SWIG_fail; | |
5620 | } | |
5621 | Py_INCREF(Py_None); resultobj = Py_None; | |
5622 | return resultobj; | |
5623 | fail: | |
5624 | return NULL; | |
5625 | } | |
5626 | ||
5627 | ||
c32bde28 | 5628 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5629 | PyObject *resultobj; |
5630 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5631 | int result; | |
5632 | PyObject * obj0 = 0 ; | |
5633 | char *kwnames[] = { | |
5634 | (char *) "self", NULL | |
5635 | }; | |
5636 | ||
5637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5640 | { |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5642 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
5643 | ||
5644 | wxPyEndAllowThreads(__tstate); | |
5645 | if (PyErr_Occurred()) SWIG_fail; | |
5646 | } | |
093d3ff1 RD |
5647 | { |
5648 | resultobj = SWIG_From_int((int)(result)); | |
5649 | } | |
d55e5bfc RD |
5650 | return resultobj; |
5651 | fail: | |
5652 | return NULL; | |
5653 | } | |
5654 | ||
5655 | ||
c32bde28 | 5656 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5657 | PyObject *resultobj; |
5658 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5659 | int arg2 ; | |
5660 | PyObject * obj0 = 0 ; | |
5661 | PyObject * obj1 = 0 ; | |
5662 | char *kwnames[] = { | |
5663 | (char *) "self",(char *) "pos", NULL | |
5664 | }; | |
5665 | ||
5666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5669 | { | |
5670 | arg2 = (int)(SWIG_As_int(obj1)); | |
5671 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5672 | } | |
d55e5bfc RD |
5673 | { |
5674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5675 | (arg1)->SetValue(arg2); | |
5676 | ||
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
5680 | Py_INCREF(Py_None); resultobj = Py_None; | |
5681 | return resultobj; | |
5682 | fail: | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
c32bde28 | 5687 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5688 | PyObject *resultobj; |
5689 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5690 | int result; | |
5691 | PyObject * obj0 = 0 ; | |
5692 | char *kwnames[] = { | |
5693 | (char *) "self", NULL | |
5694 | }; | |
5695 | ||
5696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5699 | { |
5700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5701 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
5702 | ||
5703 | wxPyEndAllowThreads(__tstate); | |
5704 | if (PyErr_Occurred()) SWIG_fail; | |
5705 | } | |
093d3ff1 RD |
5706 | { |
5707 | resultobj = SWIG_From_int((int)(result)); | |
5708 | } | |
d55e5bfc RD |
5709 | return resultobj; |
5710 | fail: | |
5711 | return NULL; | |
5712 | } | |
5713 | ||
5714 | ||
c32bde28 | 5715 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5716 | PyObject *resultobj; |
5717 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5718 | bool result; | |
5719 | PyObject * obj0 = 0 ; | |
5720 | char *kwnames[] = { | |
5721 | (char *) "self", NULL | |
5722 | }; | |
5723 | ||
5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5727 | { |
5728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5729 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
5730 | ||
5731 | wxPyEndAllowThreads(__tstate); | |
5732 | if (PyErr_Occurred()) SWIG_fail; | |
5733 | } | |
5734 | { | |
5735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5736 | } | |
5737 | return resultobj; | |
5738 | fail: | |
5739 | return NULL; | |
5740 | } | |
5741 | ||
5742 | ||
c32bde28 | 5743 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5744 | PyObject *resultobj; |
5745 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5746 | int arg2 ; | |
5747 | PyObject * obj0 = 0 ; | |
5748 | PyObject * obj1 = 0 ; | |
5749 | char *kwnames[] = { | |
5750 | (char *) "self",(char *) "w", NULL | |
5751 | }; | |
5752 | ||
5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5756 | { | |
5757 | arg2 = (int)(SWIG_As_int(obj1)); | |
5758 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5759 | } | |
d55e5bfc RD |
5760 | { |
5761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5762 | (arg1)->SetShadowWidth(arg2); | |
5763 | ||
5764 | wxPyEndAllowThreads(__tstate); | |
5765 | if (PyErr_Occurred()) SWIG_fail; | |
5766 | } | |
5767 | Py_INCREF(Py_None); resultobj = Py_None; | |
5768 | return resultobj; | |
5769 | fail: | |
5770 | return NULL; | |
5771 | } | |
5772 | ||
5773 | ||
c32bde28 | 5774 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5775 | PyObject *resultobj; |
5776 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5777 | int result; | |
5778 | PyObject * obj0 = 0 ; | |
5779 | char *kwnames[] = { | |
5780 | (char *) "self", NULL | |
5781 | }; | |
5782 | ||
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5786 | { |
5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5788 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
5789 | ||
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
093d3ff1 RD |
5793 | { |
5794 | resultobj = SWIG_From_int((int)(result)); | |
5795 | } | |
d55e5bfc RD |
5796 | return resultobj; |
5797 | fail: | |
5798 | return NULL; | |
5799 | } | |
5800 | ||
5801 | ||
c32bde28 | 5802 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5803 | PyObject *resultobj; |
5804 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5805 | int arg2 ; | |
5806 | PyObject * obj0 = 0 ; | |
5807 | PyObject * obj1 = 0 ; | |
5808 | char *kwnames[] = { | |
5809 | (char *) "self",(char *) "w", NULL | |
5810 | }; | |
5811 | ||
5812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5815 | { | |
5816 | arg2 = (int)(SWIG_As_int(obj1)); | |
5817 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5818 | } | |
d55e5bfc RD |
5819 | { |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | (arg1)->SetBezelFace(arg2); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | } | |
5826 | Py_INCREF(Py_None); resultobj = Py_None; | |
5827 | return resultobj; | |
5828 | fail: | |
5829 | return NULL; | |
5830 | } | |
5831 | ||
5832 | ||
c32bde28 | 5833 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5834 | PyObject *resultobj; |
5835 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5836 | int result; | |
5837 | PyObject * obj0 = 0 ; | |
5838 | char *kwnames[] = { | |
5839 | (char *) "self", NULL | |
5840 | }; | |
5841 | ||
5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
5845 | { |
5846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5847 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
5848 | ||
5849 | wxPyEndAllowThreads(__tstate); | |
5850 | if (PyErr_Occurred()) SWIG_fail; | |
5851 | } | |
093d3ff1 RD |
5852 | { |
5853 | resultobj = SWIG_From_int((int)(result)); | |
5854 | } | |
d55e5bfc RD |
5855 | return resultobj; |
5856 | fail: | |
5857 | return NULL; | |
5858 | } | |
5859 | ||
5860 | ||
c32bde28 | 5861 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 5862 | PyObject *resultobj; |
093d3ff1 | 5863 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
5864 | wxVisualAttributes result; |
5865 | PyObject * obj0 = 0 ; | |
5866 | char *kwnames[] = { | |
5867 | (char *) "variant", NULL | |
5868 | }; | |
5869 | ||
5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5871 | if (obj0) { | |
093d3ff1 RD |
5872 | { |
5873 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5875 | } | |
f20a2e1f RD |
5876 | } |
5877 | { | |
19272049 | 5878 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5880 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5881 | ||
5882 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5883 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5884 | } |
5885 | { | |
5886 | wxVisualAttributes * resultptr; | |
093d3ff1 | 5887 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
5888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5889 | } | |
5890 | return resultobj; | |
5891 | fail: | |
5892 | return NULL; | |
5893 | } | |
5894 | ||
5895 | ||
c32bde28 | 5896 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5897 | PyObject *obj; |
5898 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5899 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
5900 | Py_INCREF(obj); | |
5901 | return Py_BuildValue((char *)""); | |
5902 | } | |
c32bde28 | 5903 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
d55e5bfc RD |
5904 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
5905 | return 1; | |
5906 | } | |
5907 | ||
5908 | ||
093d3ff1 | 5909 | static PyObject *_wrap_StaticBitmapNameStr_get(void) { |
d55e5bfc RD |
5910 | PyObject *pyobj; |
5911 | ||
5912 | { | |
5913 | #if wxUSE_UNICODE | |
5914 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5915 | #else | |
5916 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5917 | #endif | |
5918 | } | |
5919 | return pyobj; | |
5920 | } | |
5921 | ||
5922 | ||
c32bde28 | 5923 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
5924 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
5925 | return 1; | |
5926 | } | |
5927 | ||
5928 | ||
093d3ff1 | 5929 | static PyObject *_wrap_StaticBoxNameStr_get(void) { |
d55e5bfc RD |
5930 | PyObject *pyobj; |
5931 | ||
5932 | { | |
5933 | #if wxUSE_UNICODE | |
5934 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5935 | #else | |
5936 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5937 | #endif | |
5938 | } | |
5939 | return pyobj; | |
5940 | } | |
5941 | ||
5942 | ||
c32bde28 | 5943 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
d55e5bfc RD |
5944 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
5945 | return 1; | |
5946 | } | |
5947 | ||
5948 | ||
093d3ff1 | 5949 | static PyObject *_wrap_StaticTextNameStr_get(void) { |
d55e5bfc RD |
5950 | PyObject *pyobj; |
5951 | ||
5952 | { | |
5953 | #if wxUSE_UNICODE | |
5954 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5955 | #else | |
5956 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5957 | #endif | |
5958 | } | |
5959 | return pyobj; | |
5960 | } | |
5961 | ||
5962 | ||
c32bde28 | 5963 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5964 | PyObject *resultobj; |
5965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5966 | int arg2 = (int) -1 ; |
5967 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5968 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
5969 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5970 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5971 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5972 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5973 | long arg6 = (long) 0 ; | |
5974 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
5975 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5976 | wxStaticBox *result; | |
ae8162c8 | 5977 | bool temp3 = false ; |
d55e5bfc RD |
5978 | wxPoint temp4 ; |
5979 | wxSize temp5 ; | |
ae8162c8 | 5980 | bool temp7 = false ; |
d55e5bfc RD |
5981 | PyObject * obj0 = 0 ; |
5982 | PyObject * obj1 = 0 ; | |
5983 | PyObject * obj2 = 0 ; | |
5984 | PyObject * obj3 = 0 ; | |
5985 | PyObject * obj4 = 0 ; | |
5986 | PyObject * obj5 = 0 ; | |
5987 | PyObject * obj6 = 0 ; | |
5988 | char *kwnames[] = { | |
5989 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5990 | }; | |
5991 | ||
248ed943 | 5992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
5993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 5995 | if (obj1) { |
093d3ff1 RD |
5996 | { |
5997 | arg2 = (int)(SWIG_As_int(obj1)); | |
5998 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5999 | } | |
248ed943 RD |
6000 | } |
6001 | if (obj2) { | |
6002 | { | |
6003 | arg3 = wxString_in_helper(obj2); | |
6004 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6005 | temp3 = true; |
248ed943 | 6006 | } |
d55e5bfc RD |
6007 | } |
6008 | if (obj3) { | |
6009 | { | |
6010 | arg4 = &temp4; | |
6011 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6012 | } | |
6013 | } | |
6014 | if (obj4) { | |
6015 | { | |
6016 | arg5 = &temp5; | |
6017 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6018 | } | |
6019 | } | |
6020 | if (obj5) { | |
093d3ff1 RD |
6021 | { |
6022 | arg6 = (long)(SWIG_As_long(obj5)); | |
6023 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6024 | } | |
d55e5bfc RD |
6025 | } |
6026 | if (obj6) { | |
6027 | { | |
6028 | arg7 = wxString_in_helper(obj6); | |
6029 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6030 | temp7 = true; |
d55e5bfc RD |
6031 | } |
6032 | } | |
6033 | { | |
0439c23b | 6034 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6036 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6037 | ||
6038 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6039 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6040 | } |
b0f7404b | 6041 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
6042 | { |
6043 | if (temp3) | |
6044 | delete arg3; | |
6045 | } | |
6046 | { | |
6047 | if (temp7) | |
6048 | delete arg7; | |
6049 | } | |
6050 | return resultobj; | |
6051 | fail: | |
6052 | { | |
6053 | if (temp3) | |
6054 | delete arg3; | |
6055 | } | |
6056 | { | |
6057 | if (temp7) | |
6058 | delete arg7; | |
6059 | } | |
6060 | return NULL; | |
6061 | } | |
6062 | ||
6063 | ||
c32bde28 | 6064 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6065 | PyObject *resultobj; |
6066 | wxStaticBox *result; | |
6067 | char *kwnames[] = { | |
6068 | NULL | |
6069 | }; | |
6070 | ||
6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
6072 | { | |
0439c23b | 6073 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6075 | result = (wxStaticBox *)new wxStaticBox(); | |
6076 | ||
6077 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6078 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 6079 | } |
b0f7404b | 6080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
6081 | return resultobj; |
6082 | fail: | |
6083 | return NULL; | |
6084 | } | |
6085 | ||
6086 | ||
c32bde28 | 6087 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6088 | PyObject *resultobj; |
6089 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
6090 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6091 | int arg3 = (int) -1 ; |
6092 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6093 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
6094 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6095 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6096 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6097 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6098 | long arg7 = (long) 0 ; | |
6099 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
6100 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6101 | bool result; | |
ae8162c8 | 6102 | bool temp4 = false ; |
d55e5bfc RD |
6103 | wxPoint temp5 ; |
6104 | wxSize temp6 ; | |
ae8162c8 | 6105 | bool temp8 = false ; |
d55e5bfc RD |
6106 | PyObject * obj0 = 0 ; |
6107 | PyObject * obj1 = 0 ; | |
6108 | PyObject * obj2 = 0 ; | |
6109 | PyObject * obj3 = 0 ; | |
6110 | PyObject * obj4 = 0 ; | |
6111 | PyObject * obj5 = 0 ; | |
6112 | PyObject * obj6 = 0 ; | |
6113 | PyObject * obj7 = 0 ; | |
6114 | char *kwnames[] = { | |
6115 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6116 | }; | |
6117 | ||
248ed943 | 6118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
6120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6121 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6122 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6123 | if (obj2) { |
093d3ff1 RD |
6124 | { |
6125 | arg3 = (int)(SWIG_As_int(obj2)); | |
6126 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6127 | } | |
248ed943 RD |
6128 | } |
6129 | if (obj3) { | |
6130 | { | |
6131 | arg4 = wxString_in_helper(obj3); | |
6132 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6133 | temp4 = true; |
248ed943 | 6134 | } |
d55e5bfc RD |
6135 | } |
6136 | if (obj4) { | |
6137 | { | |
6138 | arg5 = &temp5; | |
6139 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6140 | } | |
6141 | } | |
6142 | if (obj5) { | |
6143 | { | |
6144 | arg6 = &temp6; | |
6145 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6146 | } | |
6147 | } | |
6148 | if (obj6) { | |
093d3ff1 RD |
6149 | { |
6150 | arg7 = (long)(SWIG_As_long(obj6)); | |
6151 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6152 | } | |
d55e5bfc RD |
6153 | } |
6154 | if (obj7) { | |
6155 | { | |
6156 | arg8 = wxString_in_helper(obj7); | |
6157 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6158 | temp8 = true; |
d55e5bfc RD |
6159 | } |
6160 | } | |
6161 | { | |
6162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6163 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6164 | ||
6165 | wxPyEndAllowThreads(__tstate); | |
6166 | if (PyErr_Occurred()) SWIG_fail; | |
6167 | } | |
6168 | { | |
6169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6170 | } | |
6171 | { | |
6172 | if (temp4) | |
6173 | delete arg4; | |
6174 | } | |
6175 | { | |
6176 | if (temp8) | |
6177 | delete arg8; | |
6178 | } | |
6179 | return resultobj; | |
6180 | fail: | |
6181 | { | |
6182 | if (temp4) | |
6183 | delete arg4; | |
6184 | } | |
6185 | { | |
6186 | if (temp8) | |
6187 | delete arg8; | |
6188 | } | |
6189 | return NULL; | |
6190 | } | |
6191 | ||
6192 | ||
c32bde28 | 6193 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 6194 | PyObject *resultobj; |
093d3ff1 | 6195 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
6196 | wxVisualAttributes result; |
6197 | PyObject * obj0 = 0 ; | |
6198 | char *kwnames[] = { | |
6199 | (char *) "variant", NULL | |
6200 | }; | |
6201 | ||
6202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6203 | if (obj0) { | |
093d3ff1 RD |
6204 | { |
6205 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6207 | } | |
f20a2e1f RD |
6208 | } |
6209 | { | |
19272049 | 6210 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6212 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6215 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6216 | } |
6217 | { | |
6218 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6219 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
6220 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6221 | } | |
6222 | return resultobj; | |
6223 | fail: | |
6224 | return NULL; | |
6225 | } | |
6226 | ||
6227 | ||
c32bde28 | 6228 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6229 | PyObject *obj; |
6230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6231 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
6232 | Py_INCREF(obj); | |
6233 | return Py_BuildValue((char *)""); | |
6234 | } | |
c32bde28 | 6235 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6236 | PyObject *resultobj; |
6237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6238 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6239 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6240 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6241 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6242 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6243 | long arg5 = (long) wxLI_HORIZONTAL ; | |
6244 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
6245 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6246 | wxStaticLine *result; | |
6247 | wxPoint temp3 ; | |
6248 | wxSize temp4 ; | |
ae8162c8 | 6249 | bool temp6 = false ; |
d55e5bfc RD |
6250 | PyObject * obj0 = 0 ; |
6251 | PyObject * obj1 = 0 ; | |
6252 | PyObject * obj2 = 0 ; | |
6253 | PyObject * obj3 = 0 ; | |
6254 | PyObject * obj4 = 0 ; | |
6255 | PyObject * obj5 = 0 ; | |
6256 | char *kwnames[] = { | |
6257 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6258 | }; | |
6259 | ||
248ed943 | 6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
6261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6263 | if (obj1) { |
093d3ff1 RD |
6264 | { |
6265 | arg2 = (int)(SWIG_As_int(obj1)); | |
6266 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6267 | } | |
248ed943 | 6268 | } |
d55e5bfc RD |
6269 | if (obj2) { |
6270 | { | |
6271 | arg3 = &temp3; | |
6272 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6273 | } | |
6274 | } | |
6275 | if (obj3) { | |
6276 | { | |
6277 | arg4 = &temp4; | |
6278 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6279 | } | |
6280 | } | |
6281 | if (obj4) { | |
093d3ff1 RD |
6282 | { |
6283 | arg5 = (long)(SWIG_As_long(obj4)); | |
6284 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6285 | } | |
d55e5bfc RD |
6286 | } |
6287 | if (obj5) { | |
6288 | { | |
6289 | arg6 = wxString_in_helper(obj5); | |
6290 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 6291 | temp6 = true; |
d55e5bfc RD |
6292 | } |
6293 | } | |
6294 | { | |
0439c23b | 6295 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6297 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6298 | ||
6299 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6300 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6301 | } |
6302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
6303 | { | |
6304 | if (temp6) | |
6305 | delete arg6; | |
6306 | } | |
6307 | return resultobj; | |
6308 | fail: | |
6309 | { | |
6310 | if (temp6) | |
6311 | delete arg6; | |
6312 | } | |
6313 | return NULL; | |
6314 | } | |
6315 | ||
6316 | ||
c32bde28 | 6317 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6318 | PyObject *resultobj; |
6319 | wxStaticLine *result; | |
6320 | char *kwnames[] = { | |
6321 | NULL | |
6322 | }; | |
6323 | ||
6324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
6325 | { | |
0439c23b | 6326 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6328 | result = (wxStaticLine *)new wxStaticLine(); | |
6329 | ||
6330 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6331 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6332 | } |
6333 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
6334 | return resultobj; | |
6335 | fail: | |
6336 | return NULL; | |
6337 | } | |
6338 | ||
6339 | ||
c32bde28 | 6340 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6341 | PyObject *resultobj; |
6342 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6343 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6344 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6345 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6346 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6347 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6348 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6349 | long arg6 = (long) wxLI_HORIZONTAL ; | |
6350 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6351 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6352 | bool result; | |
6353 | wxPoint temp4 ; | |
6354 | wxSize temp5 ; | |
ae8162c8 | 6355 | bool temp7 = false ; |
d55e5bfc RD |
6356 | PyObject * obj0 = 0 ; |
6357 | PyObject * obj1 = 0 ; | |
6358 | PyObject * obj2 = 0 ; | |
6359 | PyObject * obj3 = 0 ; | |
6360 | PyObject * obj4 = 0 ; | |
6361 | PyObject * obj5 = 0 ; | |
6362 | PyObject * obj6 = 0 ; | |
6363 | char *kwnames[] = { | |
6364 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6365 | }; | |
6366 | ||
248ed943 | 6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6370 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6371 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6372 | if (obj2) { |
093d3ff1 RD |
6373 | { |
6374 | arg3 = (int)(SWIG_As_int(obj2)); | |
6375 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6376 | } | |
248ed943 | 6377 | } |
d55e5bfc RD |
6378 | if (obj3) { |
6379 | { | |
6380 | arg4 = &temp4; | |
6381 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6382 | } | |
6383 | } | |
6384 | if (obj4) { | |
6385 | { | |
6386 | arg5 = &temp5; | |
6387 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6388 | } | |
6389 | } | |
6390 | if (obj5) { | |
093d3ff1 RD |
6391 | { |
6392 | arg6 = (long)(SWIG_As_long(obj5)); | |
6393 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6394 | } | |
d55e5bfc RD |
6395 | } |
6396 | if (obj6) { | |
6397 | { | |
6398 | arg7 = wxString_in_helper(obj6); | |
6399 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6400 | temp7 = true; |
d55e5bfc RD |
6401 | } |
6402 | } | |
6403 | { | |
6404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6405 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6406 | ||
6407 | wxPyEndAllowThreads(__tstate); | |
6408 | if (PyErr_Occurred()) SWIG_fail; | |
6409 | } | |
6410 | { | |
6411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6412 | } | |
6413 | { | |
6414 | if (temp7) | |
6415 | delete arg7; | |
6416 | } | |
6417 | return resultobj; | |
6418 | fail: | |
6419 | { | |
6420 | if (temp7) | |
6421 | delete arg7; | |
6422 | } | |
6423 | return NULL; | |
6424 | } | |
6425 | ||
6426 | ||
c32bde28 | 6427 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6428 | PyObject *resultobj; |
6429 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6430 | bool result; | |
6431 | PyObject * obj0 = 0 ; | |
6432 | char *kwnames[] = { | |
6433 | (char *) "self", NULL | |
6434 | }; | |
6435 | ||
6436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
6439 | { |
6440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6441 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
6442 | ||
6443 | wxPyEndAllowThreads(__tstate); | |
6444 | if (PyErr_Occurred()) SWIG_fail; | |
6445 | } | |
6446 | { | |
6447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6448 | } | |
6449 | return resultobj; | |
6450 | fail: | |
6451 | return NULL; | |
6452 | } | |
6453 | ||
6454 | ||
c32bde28 | 6455 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6456 | PyObject *resultobj; |
6457 | int result; | |
6458 | char *kwnames[] = { | |
6459 | NULL | |
6460 | }; | |
6461 | ||
6462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
6463 | { | |
6464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6465 | result = (int)wxStaticLine::GetDefaultSize(); | |
6466 | ||
6467 | wxPyEndAllowThreads(__tstate); | |
6468 | if (PyErr_Occurred()) SWIG_fail; | |
6469 | } | |
093d3ff1 RD |
6470 | { |
6471 | resultobj = SWIG_From_int((int)(result)); | |
6472 | } | |
d55e5bfc RD |
6473 | return resultobj; |
6474 | fail: | |
6475 | return NULL; | |
6476 | } | |
6477 | ||
6478 | ||
c32bde28 | 6479 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 6480 | PyObject *resultobj; |
093d3ff1 | 6481 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
6482 | wxVisualAttributes result; |
6483 | PyObject * obj0 = 0 ; | |
6484 | char *kwnames[] = { | |
6485 | (char *) "variant", NULL | |
6486 | }; | |
6487 | ||
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6489 | if (obj0) { | |
093d3ff1 RD |
6490 | { |
6491 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6493 | } | |
f20a2e1f RD |
6494 | } |
6495 | { | |
19272049 | 6496 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6498 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6499 | ||
6500 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6501 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6502 | } |
6503 | { | |
6504 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6505 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
6506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6507 | } | |
6508 | return resultobj; | |
6509 | fail: | |
6510 | return NULL; | |
6511 | } | |
6512 | ||
6513 | ||
c32bde28 | 6514 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6515 | PyObject *obj; |
6516 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6517 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
6518 | Py_INCREF(obj); | |
6519 | return Py_BuildValue((char *)""); | |
6520 | } | |
c32bde28 | 6521 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6522 | PyObject *resultobj; |
6523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
6524 | int arg2 = (int) -1 ; |
6525 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6526 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
6527 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6528 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6529 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6530 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6531 | long arg6 = (long) 0 ; | |
6532 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6533 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6534 | wxStaticText *result; | |
ae8162c8 | 6535 | bool temp3 = false ; |
d55e5bfc RD |
6536 | wxPoint temp4 ; |
6537 | wxSize temp5 ; | |
ae8162c8 | 6538 | bool temp7 = false ; |
d55e5bfc RD |
6539 | PyObject * obj0 = 0 ; |
6540 | PyObject * obj1 = 0 ; | |
6541 | PyObject * obj2 = 0 ; | |
6542 | PyObject * obj3 = 0 ; | |
6543 | PyObject * obj4 = 0 ; | |
6544 | PyObject * obj5 = 0 ; | |
6545 | PyObject * obj6 = 0 ; | |
6546 | char *kwnames[] = { | |
6547 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6548 | }; | |
6549 | ||
248ed943 | 6550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6553 | if (obj1) { |
093d3ff1 RD |
6554 | { |
6555 | arg2 = (int)(SWIG_As_int(obj1)); | |
6556 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6557 | } | |
248ed943 RD |
6558 | } |
6559 | if (obj2) { | |
6560 | { | |
6561 | arg3 = wxString_in_helper(obj2); | |
6562 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6563 | temp3 = true; |
248ed943 | 6564 | } |
d55e5bfc RD |
6565 | } |
6566 | if (obj3) { | |
6567 | { | |
6568 | arg4 = &temp4; | |
6569 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6570 | } | |
6571 | } | |
6572 | if (obj4) { | |
6573 | { | |
6574 | arg5 = &temp5; | |
6575 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6576 | } | |
6577 | } | |
6578 | if (obj5) { | |
093d3ff1 RD |
6579 | { |
6580 | arg6 = (long)(SWIG_As_long(obj5)); | |
6581 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6582 | } | |
d55e5bfc RD |
6583 | } |
6584 | if (obj6) { | |
6585 | { | |
6586 | arg7 = wxString_in_helper(obj6); | |
6587 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6588 | temp7 = true; |
d55e5bfc RD |
6589 | } |
6590 | } | |
6591 | { | |
0439c23b | 6592 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6594 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6597 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6598 | } |
6599 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
6600 | { | |
6601 | if (temp3) | |
6602 | delete arg3; | |
6603 | } | |
6604 | { | |
6605 | if (temp7) | |
6606 | delete arg7; | |
6607 | } | |
6608 | return resultobj; | |
6609 | fail: | |
6610 | { | |
6611 | if (temp3) | |
6612 | delete arg3; | |
6613 | } | |
6614 | { | |
6615 | if (temp7) | |
6616 | delete arg7; | |
6617 | } | |
6618 | return NULL; | |
6619 | } | |
6620 | ||
6621 | ||
c32bde28 | 6622 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6623 | PyObject *resultobj; |
6624 | wxStaticText *result; | |
6625 | char *kwnames[] = { | |
6626 | NULL | |
6627 | }; | |
6628 | ||
6629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
6630 | { | |
0439c23b | 6631 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6633 | result = (wxStaticText *)new wxStaticText(); | |
6634 | ||
6635 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6636 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6637 | } |
6638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
c32bde28 | 6645 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6646 | PyObject *resultobj; |
6647 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
6648 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6649 | int arg3 = (int) -1 ; |
6650 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6651 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
6652 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6653 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6654 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6655 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6656 | long arg7 = (long) 0 ; | |
6657 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
6658 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6659 | bool result; | |
ae8162c8 | 6660 | bool temp4 = false ; |
d55e5bfc RD |
6661 | wxPoint temp5 ; |
6662 | wxSize temp6 ; | |
ae8162c8 | 6663 | bool temp8 = false ; |
d55e5bfc RD |
6664 | PyObject * obj0 = 0 ; |
6665 | PyObject * obj1 = 0 ; | |
6666 | PyObject * obj2 = 0 ; | |
6667 | PyObject * obj3 = 0 ; | |
6668 | PyObject * obj4 = 0 ; | |
6669 | PyObject * obj5 = 0 ; | |
6670 | PyObject * obj6 = 0 ; | |
6671 | PyObject * obj7 = 0 ; | |
6672 | char *kwnames[] = { | |
6673 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6674 | }; | |
6675 | ||
248ed943 | 6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); |
6678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6679 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6680 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6681 | if (obj2) { |
093d3ff1 RD |
6682 | { |
6683 | arg3 = (int)(SWIG_As_int(obj2)); | |
6684 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6685 | } | |
248ed943 RD |
6686 | } |
6687 | if (obj3) { | |
6688 | { | |
6689 | arg4 = wxString_in_helper(obj3); | |
6690 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6691 | temp4 = true; |
248ed943 | 6692 | } |
d55e5bfc RD |
6693 | } |
6694 | if (obj4) { | |
6695 | { | |
6696 | arg5 = &temp5; | |
6697 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6698 | } | |
6699 | } | |
6700 | if (obj5) { | |
6701 | { | |
6702 | arg6 = &temp6; | |
6703 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6704 | } | |
6705 | } | |
6706 | if (obj6) { | |
093d3ff1 RD |
6707 | { |
6708 | arg7 = (long)(SWIG_As_long(obj6)); | |
6709 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6710 | } | |
d55e5bfc RD |
6711 | } |
6712 | if (obj7) { | |
6713 | { | |
6714 | arg8 = wxString_in_helper(obj7); | |
6715 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6716 | temp8 = true; |
d55e5bfc RD |
6717 | } |
6718 | } | |
6719 | { | |
6720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6721 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6722 | ||
6723 | wxPyEndAllowThreads(__tstate); | |
6724 | if (PyErr_Occurred()) SWIG_fail; | |
6725 | } | |
6726 | { | |
6727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6728 | } | |
6729 | { | |
6730 | if (temp4) | |
6731 | delete arg4; | |
6732 | } | |
6733 | { | |
6734 | if (temp8) | |
6735 | delete arg8; | |
6736 | } | |
6737 | return resultobj; | |
6738 | fail: | |
6739 | { | |
6740 | if (temp4) | |
6741 | delete arg4; | |
6742 | } | |
6743 | { | |
6744 | if (temp8) | |
6745 | delete arg8; | |
6746 | } | |
6747 | return NULL; | |
6748 | } | |
6749 | ||
6750 | ||
9d7dfdff RD |
6751 | static PyObject *_wrap_StaticText_Wrap(PyObject *, PyObject *args, PyObject *kwargs) { |
6752 | PyObject *resultobj; | |
6753 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
6754 | int arg2 ; | |
6755 | PyObject * obj0 = 0 ; | |
6756 | PyObject * obj1 = 0 ; | |
6757 | char *kwnames[] = { | |
6758 | (char *) "self",(char *) "width", NULL | |
6759 | }; | |
6760 | ||
6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) goto fail; | |
6762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); | |
6763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6764 | { | |
6765 | arg2 = (int)(SWIG_As_int(obj1)); | |
6766 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6767 | } | |
6768 | { | |
6769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6770 | (arg1)->Wrap(arg2); | |
6771 | ||
6772 | wxPyEndAllowThreads(__tstate); | |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
6774 | } | |
6775 | Py_INCREF(Py_None); resultobj = Py_None; | |
6776 | return resultobj; | |
6777 | fail: | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
c32bde28 | 6782 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 6783 | PyObject *resultobj; |
093d3ff1 | 6784 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
6785 | wxVisualAttributes result; |
6786 | PyObject * obj0 = 0 ; | |
6787 | char *kwnames[] = { | |
6788 | (char *) "variant", NULL | |
6789 | }; | |
6790 | ||
6791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6792 | if (obj0) { | |
093d3ff1 RD |
6793 | { |
6794 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6796 | } | |
f20a2e1f RD |
6797 | } |
6798 | { | |
19272049 | 6799 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6801 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6802 | ||
6803 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6804 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6805 | } |
6806 | { | |
6807 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6808 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
6809 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6810 | } | |
6811 | return resultobj; | |
6812 | fail: | |
6813 | return NULL; | |
6814 | } | |
6815 | ||
6816 | ||
c32bde28 | 6817 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6818 | PyObject *obj; |
6819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6820 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
6821 | Py_INCREF(obj); | |
6822 | return Py_BuildValue((char *)""); | |
6823 | } | |
c32bde28 | 6824 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6825 | PyObject *resultobj; |
6826 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
6827 | int arg2 = (int) -1 ; |
6828 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
6829 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
6830 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6831 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6832 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6833 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6834 | long arg6 = (long) 0 ; | |
6835 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
6836 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6837 | wxStaticBitmap *result; | |
6838 | wxPoint temp4 ; | |
6839 | wxSize temp5 ; | |
ae8162c8 | 6840 | bool temp7 = false ; |
d55e5bfc RD |
6841 | PyObject * obj0 = 0 ; |
6842 | PyObject * obj1 = 0 ; | |
6843 | PyObject * obj2 = 0 ; | |
6844 | PyObject * obj3 = 0 ; | |
6845 | PyObject * obj4 = 0 ; | |
6846 | PyObject * obj5 = 0 ; | |
6847 | PyObject * obj6 = 0 ; | |
6848 | char *kwnames[] = { | |
6849 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6850 | }; | |
6851 | ||
248ed943 | 6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6855 | if (obj1) { |
093d3ff1 RD |
6856 | { |
6857 | arg2 = (int)(SWIG_As_int(obj1)); | |
6858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6859 | } | |
248ed943 RD |
6860 | } |
6861 | if (obj2) { | |
093d3ff1 RD |
6862 | { |
6863 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6864 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6865 | if (arg3 == NULL) { | |
6866 | SWIG_null_ref("wxBitmap"); | |
6867 | } | |
6868 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 6869 | } |
d55e5bfc RD |
6870 | } |
6871 | if (obj3) { | |
6872 | { | |
6873 | arg4 = &temp4; | |
6874 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6875 | } | |
6876 | } | |
6877 | if (obj4) { | |
6878 | { | |
6879 | arg5 = &temp5; | |
6880 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6881 | } | |
6882 | } | |
6883 | if (obj5) { | |
093d3ff1 RD |
6884 | { |
6885 | arg6 = (long)(SWIG_As_long(obj5)); | |
6886 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6887 | } | |
d55e5bfc RD |
6888 | } |
6889 | if (obj6) { | |
6890 | { | |
6891 | arg7 = wxString_in_helper(obj6); | |
6892 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6893 | temp7 = true; |
d55e5bfc RD |
6894 | } |
6895 | } | |
6896 | { | |
0439c23b | 6897 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6899 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6900 | ||
6901 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6902 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6903 | } |
6904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
6905 | { | |
6906 | if (temp7) | |
6907 | delete arg7; | |
6908 | } | |
6909 | return resultobj; | |
6910 | fail: | |
6911 | { | |
6912 | if (temp7) | |
6913 | delete arg7; | |
6914 | } | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
c32bde28 | 6919 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6920 | PyObject *resultobj; |
6921 | wxStaticBitmap *result; | |
6922 | char *kwnames[] = { | |
6923 | NULL | |
6924 | }; | |
6925 | ||
6926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
6927 | { | |
0439c23b | 6928 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6930 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
6931 | ||
6932 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6933 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6934 | } |
6935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
6936 | return resultobj; | |
6937 | fail: | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
c32bde28 | 6942 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6943 | PyObject *resultobj; |
6944 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6945 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6946 | int arg3 = (int) -1 ; |
6947 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
6948 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
6949 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6950 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6951 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6952 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6953 | long arg7 = (long) 0 ; | |
6954 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
6955 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6956 | bool result; | |
6957 | wxPoint temp5 ; | |
6958 | wxSize temp6 ; | |
ae8162c8 | 6959 | bool temp8 = false ; |
d55e5bfc RD |
6960 | PyObject * obj0 = 0 ; |
6961 | PyObject * obj1 = 0 ; | |
6962 | PyObject * obj2 = 0 ; | |
6963 | PyObject * obj3 = 0 ; | |
6964 | PyObject * obj4 = 0 ; | |
6965 | PyObject * obj5 = 0 ; | |
6966 | PyObject * obj6 = 0 ; | |
6967 | PyObject * obj7 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6970 | }; | |
6971 | ||
248ed943 | 6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
6974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6975 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6976 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6977 | if (obj2) { |
093d3ff1 RD |
6978 | { |
6979 | arg3 = (int)(SWIG_As_int(obj2)); | |
6980 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6981 | } | |
248ed943 RD |
6982 | } |
6983 | if (obj3) { | |
093d3ff1 RD |
6984 | { |
6985 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6986 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6987 | if (arg4 == NULL) { | |
6988 | SWIG_null_ref("wxBitmap"); | |
6989 | } | |
6990 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 6991 | } |
d55e5bfc RD |
6992 | } |
6993 | if (obj4) { | |
6994 | { | |
6995 | arg5 = &temp5; | |
6996 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6997 | } | |
6998 | } | |
6999 | if (obj5) { | |
7000 | { | |
7001 | arg6 = &temp6; | |
7002 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7003 | } | |
7004 | } | |
7005 | if (obj6) { | |
093d3ff1 RD |
7006 | { |
7007 | arg7 = (long)(SWIG_As_long(obj6)); | |
7008 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7009 | } | |
d55e5bfc RD |
7010 | } |
7011 | if (obj7) { | |
7012 | { | |
7013 | arg8 = wxString_in_helper(obj7); | |
7014 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7015 | temp8 = true; |
d55e5bfc RD |
7016 | } |
7017 | } | |
7018 | { | |
7019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7020 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7021 | ||
7022 | wxPyEndAllowThreads(__tstate); | |
7023 | if (PyErr_Occurred()) SWIG_fail; | |
7024 | } | |
7025 | { | |
7026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7027 | } | |
7028 | { | |
7029 | if (temp8) | |
7030 | delete arg8; | |
7031 | } | |
7032 | return resultobj; | |
7033 | fail: | |
7034 | { | |
7035 | if (temp8) | |
7036 | delete arg8; | |
7037 | } | |
7038 | return NULL; | |
7039 | } | |
7040 | ||
7041 | ||
c32bde28 | 7042 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7043 | PyObject *resultobj; |
7044 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7045 | wxBitmap result; | |
7046 | PyObject * obj0 = 0 ; | |
7047 | char *kwnames[] = { | |
7048 | (char *) "self", NULL | |
7049 | }; | |
7050 | ||
7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7054 | { |
7055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7056 | result = (arg1)->GetBitmap(); | |
7057 | ||
7058 | wxPyEndAllowThreads(__tstate); | |
7059 | if (PyErr_Occurred()) SWIG_fail; | |
7060 | } | |
7061 | { | |
7062 | wxBitmap * resultptr; | |
093d3ff1 | 7063 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
7064 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
7065 | } | |
7066 | return resultobj; | |
7067 | fail: | |
7068 | return NULL; | |
7069 | } | |
7070 | ||
7071 | ||
c32bde28 | 7072 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7073 | PyObject *resultobj; |
7074 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7075 | wxBitmap *arg2 = 0 ; | |
7076 | PyObject * obj0 = 0 ; | |
7077 | PyObject * obj1 = 0 ; | |
7078 | char *kwnames[] = { | |
7079 | (char *) "self",(char *) "bitmap", NULL | |
7080 | }; | |
7081 | ||
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7085 | { | |
7086 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7087 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7088 | if (arg2 == NULL) { | |
7089 | SWIG_null_ref("wxBitmap"); | |
7090 | } | |
7091 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7092 | } |
7093 | { | |
7094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7095 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
7096 | ||
7097 | wxPyEndAllowThreads(__tstate); | |
7098 | if (PyErr_Occurred()) SWIG_fail; | |
7099 | } | |
7100 | Py_INCREF(Py_None); resultobj = Py_None; | |
7101 | return resultobj; | |
7102 | fail: | |
7103 | return NULL; | |
7104 | } | |
7105 | ||
7106 | ||
c32bde28 | 7107 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7108 | PyObject *resultobj; |
7109 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7110 | wxIcon *arg2 = 0 ; | |
7111 | PyObject * obj0 = 0 ; | |
7112 | PyObject * obj1 = 0 ; | |
7113 | char *kwnames[] = { | |
7114 | (char *) "self",(char *) "icon", NULL | |
7115 | }; | |
7116 | ||
7117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7120 | { | |
7121 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
7122 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7123 | if (arg2 == NULL) { | |
7124 | SWIG_null_ref("wxIcon"); | |
7125 | } | |
7126 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
7127 | } |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
7131 | ||
7132 | wxPyEndAllowThreads(__tstate); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | Py_INCREF(Py_None); resultobj = Py_None; | |
7136 | return resultobj; | |
7137 | fail: | |
7138 | return NULL; | |
7139 | } | |
7140 | ||
7141 | ||
c32bde28 | 7142 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 7143 | PyObject *resultobj; |
093d3ff1 | 7144 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
7145 | wxVisualAttributes result; |
7146 | PyObject * obj0 = 0 ; | |
7147 | char *kwnames[] = { | |
7148 | (char *) "variant", NULL | |
7149 | }; | |
7150 | ||
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
7152 | if (obj0) { | |
093d3ff1 RD |
7153 | { |
7154 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
7155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7156 | } | |
f20a2e1f RD |
7157 | } |
7158 | { | |
19272049 | 7159 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
7160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7161 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
7162 | ||
7163 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7164 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
7165 | } |
7166 | { | |
7167 | wxVisualAttributes * resultptr; | |
093d3ff1 | 7168 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
7169 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
7170 | } | |
7171 | return resultobj; | |
7172 | fail: | |
7173 | return NULL; | |
7174 | } | |
7175 | ||
7176 | ||
c32bde28 | 7177 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7178 | PyObject *obj; |
7179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7180 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
7181 | Py_INCREF(obj); | |
7182 | return Py_BuildValue((char *)""); | |
7183 | } | |
c32bde28 | 7184 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
7185 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
7186 | return 1; | |
7187 | } | |
7188 | ||
7189 | ||
093d3ff1 | 7190 | static PyObject *_wrap_ListBoxNameStr_get(void) { |
d55e5bfc RD |
7191 | PyObject *pyobj; |
7192 | ||
7193 | { | |
7194 | #if wxUSE_UNICODE | |
7195 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7196 | #else | |
7197 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7198 | #endif | |
7199 | } | |
7200 | return pyobj; | |
7201 | } | |
7202 | ||
7203 | ||
c32bde28 | 7204 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7205 | PyObject *resultobj; |
7206 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 7207 | int arg2 = (int) -1 ; |
d55e5bfc RD |
7208 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7209 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7210 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7211 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7212 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
7213 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
7214 | long arg6 = (long) 0 ; | |
7215 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7216 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7217 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
7218 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7219 | wxListBox *result; | |
7220 | wxPoint temp3 ; | |
7221 | wxSize temp4 ; | |
ae8162c8 RD |
7222 | bool temp5 = false ; |
7223 | bool temp8 = false ; | |
d55e5bfc RD |
7224 | PyObject * obj0 = 0 ; |
7225 | PyObject * obj1 = 0 ; | |
7226 | PyObject * obj2 = 0 ; | |
7227 | PyObject * obj3 = 0 ; | |
7228 | PyObject * obj4 = 0 ; | |
7229 | PyObject * obj5 = 0 ; | |
7230 | PyObject * obj6 = 0 ; | |
7231 | PyObject * obj7 = 0 ; | |
7232 | char *kwnames[] = { | |
7233 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7234 | }; | |
7235 | ||
248ed943 | 7236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
7237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 7239 | if (obj1) { |
093d3ff1 RD |
7240 | { |
7241 | arg2 = (int)(SWIG_As_int(obj1)); | |
7242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7243 | } | |
248ed943 | 7244 | } |
d55e5bfc RD |
7245 | if (obj2) { |
7246 | { | |
7247 | arg3 = &temp3; | |
7248 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7249 | } | |
7250 | } | |
7251 | if (obj3) { | |
7252 | { | |
7253 | arg4 = &temp4; | |
7254 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7255 | } | |
7256 | } | |
7257 | if (obj4) { | |
7258 | { | |
7259 | if (! PySequence_Check(obj4)) { | |
7260 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7261 | SWIG_fail; | |
7262 | } | |
7263 | arg5 = new wxArrayString; | |
ae8162c8 | 7264 | temp5 = true; |
d55e5bfc RD |
7265 | int i, len=PySequence_Length(obj4); |
7266 | for (i=0; i<len; i++) { | |
7267 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 7268 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 7269 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7270 | arg5->Add(*s); |
7271 | delete s; | |
d55e5bfc | 7272 | Py_DECREF(item); |
d55e5bfc RD |
7273 | } |
7274 | } | |
7275 | } | |
7276 | if (obj5) { | |
093d3ff1 RD |
7277 | { |
7278 | arg6 = (long)(SWIG_As_long(obj5)); | |
7279 | if (SWIG_arg_fail(6)) SWIG_fail; | |
7280 | } | |
d55e5bfc RD |
7281 | } |
7282 | if (obj6) { | |
093d3ff1 RD |
7283 | { |
7284 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7285 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7286 | if (arg7 == NULL) { | |
7287 | SWIG_null_ref("wxValidator"); | |
7288 | } | |
7289 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
7290 | } |
7291 | } | |
7292 | if (obj7) { | |
7293 | { | |
7294 | arg8 = wxString_in_helper(obj7); | |
7295 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7296 | temp8 = true; |
d55e5bfc RD |
7297 | } |
7298 | } | |
7299 | { | |
0439c23b | 7300 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7302 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
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 | { | |
7309 | if (temp5) delete arg5; | |
7310 | } | |
7311 | { | |
7312 | if (temp8) | |
7313 | delete arg8; | |
7314 | } | |
7315 | return resultobj; | |
7316 | fail: | |
7317 | { | |
7318 | if (temp5) delete arg5; | |
7319 | } | |
7320 | { | |
7321 | if (temp8) | |
7322 | delete arg8; | |
7323 | } | |
7324 | return NULL; | |
7325 | } | |
7326 | ||
7327 | ||
c32bde28 | 7328 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7329 | PyObject *resultobj; |
7330 | wxListBox *result; | |
7331 | char *kwnames[] = { | |
7332 | NULL | |
7333 | }; | |
7334 | ||
7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
7336 | { | |
0439c23b | 7337 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7339 | result = (wxListBox *)new wxListBox(); | |
7340 | ||
7341 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7342 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7343 | } |
7344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
7345 | return resultobj; | |
7346 | fail: | |
7347 | return NULL; | |
7348 | } | |
7349 | ||
7350 | ||
c32bde28 | 7351 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7352 | PyObject *resultobj; |
7353 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7354 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 7355 | int arg3 = (int) -1 ; |
d55e5bfc RD |
7356 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7357 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7358 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7359 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7360 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
7361 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7362 | long arg7 = (long) 0 ; | |
7363 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7364 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7365 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7366 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7367 | bool result; | |
7368 | wxPoint temp4 ; | |
7369 | wxSize temp5 ; | |
ae8162c8 RD |
7370 | bool temp6 = false ; |
7371 | bool temp9 = false ; | |
d55e5bfc RD |
7372 | PyObject * obj0 = 0 ; |
7373 | PyObject * obj1 = 0 ; | |
7374 | PyObject * obj2 = 0 ; | |
7375 | PyObject * obj3 = 0 ; | |
7376 | PyObject * obj4 = 0 ; | |
7377 | PyObject * obj5 = 0 ; | |
7378 | PyObject * obj6 = 0 ; | |
7379 | PyObject * obj7 = 0 ; | |
7380 | PyObject * obj8 = 0 ; | |
7381 | char *kwnames[] = { | |
7382 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7383 | }; | |
7384 | ||
248ed943 | 7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
7386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7388 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7389 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 7390 | if (obj2) { |
093d3ff1 RD |
7391 | { |
7392 | arg3 = (int)(SWIG_As_int(obj2)); | |
7393 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7394 | } | |
248ed943 | 7395 | } |
d55e5bfc RD |
7396 | if (obj3) { |
7397 | { | |
7398 | arg4 = &temp4; | |
7399 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7400 | } | |
7401 | } | |
7402 | if (obj4) { | |
7403 | { | |
7404 | arg5 = &temp5; | |
7405 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7406 | } | |
7407 | } | |
7408 | if (obj5) { | |
7409 | { | |
7410 | if (! PySequence_Check(obj5)) { | |
7411 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7412 | SWIG_fail; | |
7413 | } | |
7414 | arg6 = new wxArrayString; | |
ae8162c8 | 7415 | temp6 = true; |
d55e5bfc RD |
7416 | int i, len=PySequence_Length(obj5); |
7417 | for (i=0; i<len; i++) { | |
7418 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 7419 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 7420 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7421 | arg6->Add(*s); |
7422 | delete s; | |
d55e5bfc | 7423 | Py_DECREF(item); |
d55e5bfc RD |
7424 | } |
7425 | } | |
7426 | } | |
7427 | if (obj6) { | |
093d3ff1 RD |
7428 | { |
7429 | arg7 = (long)(SWIG_As_long(obj6)); | |
7430 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7431 | } | |
d55e5bfc RD |
7432 | } |
7433 | if (obj7) { | |
093d3ff1 RD |
7434 | { |
7435 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7436 | if (SWIG_arg_fail(8)) SWIG_fail; | |
7437 | if (arg8 == NULL) { | |
7438 | SWIG_null_ref("wxValidator"); | |
7439 | } | |
7440 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
7441 | } |
7442 | } | |
7443 | if (obj8) { | |
7444 | { | |
7445 | arg9 = wxString_in_helper(obj8); | |
7446 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 7447 | temp9 = true; |
d55e5bfc RD |
7448 | } |
7449 | } | |
7450 | { | |
7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7452 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7453 | ||
7454 | wxPyEndAllowThreads(__tstate); | |
7455 | if (PyErr_Occurred()) SWIG_fail; | |
7456 | } | |
7457 | { | |
7458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7459 | } | |
7460 | { | |
7461 | if (temp6) delete arg6; | |
7462 | } | |
7463 | { | |
7464 | if (temp9) | |
7465 | delete arg9; | |
7466 | } | |
7467 | return resultobj; | |
7468 | fail: | |
7469 | { | |
7470 | if (temp6) delete arg6; | |
7471 | } | |
7472 | { | |
7473 | if (temp9) | |
7474 | delete arg9; | |
7475 | } | |
7476 | return NULL; | |
7477 | } | |
7478 | ||
7479 | ||
c32bde28 | 7480 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7481 | PyObject *resultobj; |
7482 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7483 | wxString *arg2 = 0 ; | |
7484 | int arg3 ; | |
7485 | PyObject *arg4 = (PyObject *) NULL ; | |
ae8162c8 | 7486 | bool temp2 = false ; |
d55e5bfc RD |
7487 | PyObject * obj0 = 0 ; |
7488 | PyObject * obj1 = 0 ; | |
7489 | PyObject * obj2 = 0 ; | |
7490 | PyObject * obj3 = 0 ; | |
7491 | char *kwnames[] = { | |
7492 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
7493 | }; | |
7494 | ||
7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
7496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7498 | { |
7499 | arg2 = wxString_in_helper(obj1); | |
7500 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7501 | temp2 = true; |
d55e5bfc | 7502 | } |
093d3ff1 RD |
7503 | { |
7504 | arg3 = (int)(SWIG_As_int(obj2)); | |
7505 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7506 | } | |
d55e5bfc RD |
7507 | if (obj3) { |
7508 | arg4 = obj3; | |
7509 | } | |
7510 | { | |
7511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7512 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
7513 | ||
7514 | wxPyEndAllowThreads(__tstate); | |
7515 | if (PyErr_Occurred()) SWIG_fail; | |
7516 | } | |
7517 | Py_INCREF(Py_None); resultobj = Py_None; | |
7518 | { | |
7519 | if (temp2) | |
7520 | delete arg2; | |
7521 | } | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | { | |
7525 | if (temp2) | |
7526 | delete arg2; | |
7527 | } | |
7528 | return NULL; | |
7529 | } | |
7530 | ||
7531 | ||
c32bde28 | 7532 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7533 | PyObject *resultobj; |
7534 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7535 | wxArrayString *arg2 = 0 ; | |
7536 | int arg3 ; | |
ae8162c8 | 7537 | bool temp2 = false ; |
d55e5bfc RD |
7538 | PyObject * obj0 = 0 ; |
7539 | PyObject * obj1 = 0 ; | |
7540 | PyObject * obj2 = 0 ; | |
7541 | char *kwnames[] = { | |
7542 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
7543 | }; | |
7544 | ||
7545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7548 | { |
7549 | if (! PySequence_Check(obj1)) { | |
7550 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7551 | SWIG_fail; | |
7552 | } | |
7553 | arg2 = new wxArrayString; | |
ae8162c8 | 7554 | temp2 = true; |
d55e5bfc RD |
7555 | int i, len=PySequence_Length(obj1); |
7556 | for (i=0; i<len; i++) { | |
7557 | PyObject* item = PySequence_GetItem(obj1, i); | |
71237536 | 7558 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 7559 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7560 | arg2->Add(*s); |
7561 | delete s; | |
d55e5bfc | 7562 | Py_DECREF(item); |
d55e5bfc RD |
7563 | } |
7564 | } | |
093d3ff1 RD |
7565 | { |
7566 | arg3 = (int)(SWIG_As_int(obj2)); | |
7567 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7568 | } | |
d55e5bfc RD |
7569 | { |
7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7571 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
7572 | ||
7573 | wxPyEndAllowThreads(__tstate); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | } | |
7576 | Py_INCREF(Py_None); resultobj = Py_None; | |
7577 | { | |
7578 | if (temp2) delete arg2; | |
7579 | } | |
7580 | return resultobj; | |
7581 | fail: | |
7582 | { | |
7583 | if (temp2) delete arg2; | |
7584 | } | |
7585 | return NULL; | |
7586 | } | |
7587 | ||
7588 | ||
c32bde28 | 7589 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7590 | PyObject *resultobj; |
7591 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7592 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 7593 | bool temp2 = false ; |
d55e5bfc RD |
7594 | PyObject * obj0 = 0 ; |
7595 | PyObject * obj1 = 0 ; | |
7596 | char *kwnames[] = { | |
7597 | (char *) "self",(char *) "items", NULL | |
7598 | }; | |
7599 | ||
7600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7603 | { |
7604 | if (! PySequence_Check(obj1)) { | |
7605 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7606 | SWIG_fail; | |
7607 | } | |
7608 | arg2 = new wxArrayString; | |
ae8162c8 | 7609 | temp2 = true; |
d55e5bfc RD |
7610 | int i, len=PySequence_Length(obj1); |
7611 | for (i=0; i<len; i++) { | |
7612 | PyObject* item = PySequence_GetItem(obj1, i); | |
71237536 | 7613 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 7614 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7615 | arg2->Add(*s); |
7616 | delete s; | |
d55e5bfc | 7617 | Py_DECREF(item); |
d55e5bfc RD |
7618 | } |
7619 | } | |
7620 | { | |
7621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7622 | (arg1)->Set((wxArrayString const &)*arg2); | |
7623 | ||
7624 | wxPyEndAllowThreads(__tstate); | |
7625 | if (PyErr_Occurred()) SWIG_fail; | |
7626 | } | |
7627 | Py_INCREF(Py_None); resultobj = Py_None; | |
7628 | { | |
7629 | if (temp2) delete arg2; | |
7630 | } | |
7631 | return resultobj; | |
7632 | fail: | |
7633 | { | |
7634 | if (temp2) delete arg2; | |
7635 | } | |
7636 | return NULL; | |
7637 | } | |
7638 | ||
7639 | ||
c32bde28 | 7640 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7641 | PyObject *resultobj; |
7642 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7643 | int arg2 ; | |
7644 | bool result; | |
7645 | PyObject * obj0 = 0 ; | |
7646 | PyObject * obj1 = 0 ; | |
7647 | char *kwnames[] = { | |
7648 | (char *) "self",(char *) "n", NULL | |
7649 | }; | |
7650 | ||
7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7654 | { | |
7655 | arg2 = (int)(SWIG_As_int(obj1)); | |
7656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7657 | } | |
d55e5bfc RD |
7658 | { |
7659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7660 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
7661 | ||
7662 | wxPyEndAllowThreads(__tstate); | |
7663 | if (PyErr_Occurred()) SWIG_fail; | |
7664 | } | |
7665 | { | |
7666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7667 | } | |
7668 | return resultobj; | |
7669 | fail: | |
7670 | return NULL; | |
7671 | } | |
7672 | ||
7673 | ||
c32bde28 | 7674 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7675 | PyObject *resultobj; |
7676 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7677 | int arg2 ; | |
ae8162c8 | 7678 | bool arg3 = (bool) true ; |
d55e5bfc RD |
7679 | PyObject * obj0 = 0 ; |
7680 | PyObject * obj1 = 0 ; | |
7681 | PyObject * obj2 = 0 ; | |
7682 | char *kwnames[] = { | |
7683 | (char *) "self",(char *) "n",(char *) "select", NULL | |
7684 | }; | |
7685 | ||
7686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 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 | 7693 | if (obj2) { |
093d3ff1 RD |
7694 | { |
7695 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7696 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7697 | } | |
d55e5bfc RD |
7698 | } |
7699 | { | |
7700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7701 | (arg1)->SetSelection(arg2,arg3); | |
7702 | ||
7703 | wxPyEndAllowThreads(__tstate); | |
7704 | if (PyErr_Occurred()) SWIG_fail; | |
7705 | } | |
7706 | Py_INCREF(Py_None); resultobj = Py_None; | |
7707 | return resultobj; | |
7708 | fail: | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
c32bde28 | 7713 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7714 | PyObject *resultobj; |
7715 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7716 | int arg2 ; | |
7717 | PyObject * obj0 = 0 ; | |
7718 | PyObject * obj1 = 0 ; | |
7719 | char *kwnames[] = { | |
7720 | (char *) "self",(char *) "n", NULL | |
7721 | }; | |
7722 | ||
7723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7726 | { | |
7727 | arg2 = (int)(SWIG_As_int(obj1)); | |
7728 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7729 | } | |
d55e5bfc RD |
7730 | { |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | (arg1)->Select(arg2); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) SWIG_fail; | |
7736 | } | |
7737 | Py_INCREF(Py_None); resultobj = Py_None; | |
7738 | return resultobj; | |
7739 | fail: | |
7740 | return NULL; | |
7741 | } | |
7742 | ||
7743 | ||
c32bde28 | 7744 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7745 | PyObject *resultobj; |
7746 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7747 | int arg2 ; | |
7748 | PyObject * obj0 = 0 ; | |
7749 | PyObject * obj1 = 0 ; | |
7750 | char *kwnames[] = { | |
7751 | (char *) "self",(char *) "n", NULL | |
7752 | }; | |
7753 | ||
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7757 | { | |
7758 | arg2 = (int)(SWIG_As_int(obj1)); | |
7759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7760 | } | |
d55e5bfc RD |
7761 | { |
7762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7763 | (arg1)->Deselect(arg2); | |
7764 | ||
7765 | wxPyEndAllowThreads(__tstate); | |
7766 | if (PyErr_Occurred()) SWIG_fail; | |
7767 | } | |
7768 | Py_INCREF(Py_None); resultobj = Py_None; | |
7769 | return resultobj; | |
7770 | fail: | |
7771 | return NULL; | |
7772 | } | |
7773 | ||
7774 | ||
c32bde28 | 7775 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7776 | PyObject *resultobj; |
7777 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7778 | int arg2 = (int) -1 ; | |
7779 | PyObject * obj0 = 0 ; | |
7780 | PyObject * obj1 = 0 ; | |
7781 | char *kwnames[] = { | |
7782 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
7783 | }; | |
7784 | ||
7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 7788 | if (obj1) { |
093d3ff1 RD |
7789 | { |
7790 | arg2 = (int)(SWIG_As_int(obj1)); | |
7791 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7792 | } | |
d55e5bfc RD |
7793 | } |
7794 | { | |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | (arg1)->DeselectAll(arg2); | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) SWIG_fail; | |
7800 | } | |
7801 | Py_INCREF(Py_None); resultobj = Py_None; | |
7802 | return resultobj; | |
7803 | fail: | |
7804 | return NULL; | |
7805 | } | |
7806 | ||
7807 | ||
c32bde28 | 7808 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7809 | PyObject *resultobj; |
7810 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7811 | wxString *arg2 = 0 ; | |
ae8162c8 | 7812 | bool arg3 = (bool) true ; |
d55e5bfc | 7813 | bool result; |
ae8162c8 | 7814 | bool temp2 = false ; |
d55e5bfc RD |
7815 | PyObject * obj0 = 0 ; |
7816 | PyObject * obj1 = 0 ; | |
7817 | PyObject * obj2 = 0 ; | |
7818 | char *kwnames[] = { | |
7819 | (char *) "self",(char *) "s",(char *) "select", NULL | |
7820 | }; | |
7821 | ||
7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7825 | { |
7826 | arg2 = wxString_in_helper(obj1); | |
7827 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7828 | temp2 = true; |
d55e5bfc RD |
7829 | } |
7830 | if (obj2) { | |
093d3ff1 RD |
7831 | { |
7832 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7833 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7834 | } | |
d55e5bfc RD |
7835 | } |
7836 | { | |
7837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7838 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
7839 | ||
7840 | wxPyEndAllowThreads(__tstate); | |
7841 | if (PyErr_Occurred()) SWIG_fail; | |
7842 | } | |
7843 | { | |
7844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7845 | } | |
7846 | { | |
7847 | if (temp2) | |
7848 | delete arg2; | |
7849 | } | |
7850 | return resultobj; | |
7851 | fail: | |
7852 | { | |
7853 | if (temp2) | |
7854 | delete arg2; | |
7855 | } | |
7856 | return NULL; | |
7857 | } | |
7858 | ||
7859 | ||
c32bde28 | 7860 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7861 | PyObject *resultobj; |
7862 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7863 | PyObject *result; | |
7864 | PyObject * obj0 = 0 ; | |
7865 | char *kwnames[] = { | |
7866 | (char *) "self", NULL | |
7867 | }; | |
7868 | ||
7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7872 | { |
7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7874 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
7875 | ||
7876 | wxPyEndAllowThreads(__tstate); | |
7877 | if (PyErr_Occurred()) SWIG_fail; | |
7878 | } | |
7879 | resultobj = result; | |
7880 | return resultobj; | |
7881 | fail: | |
7882 | return NULL; | |
7883 | } | |
7884 | ||
7885 | ||
c32bde28 | 7886 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7887 | PyObject *resultobj; |
7888 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7889 | int arg2 ; | |
7890 | PyObject * obj0 = 0 ; | |
7891 | PyObject * obj1 = 0 ; | |
7892 | char *kwnames[] = { | |
7893 | (char *) "self",(char *) "n", NULL | |
7894 | }; | |
7895 | ||
7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7899 | { | |
7900 | arg2 = (int)(SWIG_As_int(obj1)); | |
7901 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7902 | } | |
d55e5bfc RD |
7903 | { |
7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7905 | (arg1)->SetFirstItem(arg2); | |
7906 | ||
7907 | wxPyEndAllowThreads(__tstate); | |
7908 | if (PyErr_Occurred()) SWIG_fail; | |
7909 | } | |
7910 | Py_INCREF(Py_None); resultobj = Py_None; | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | return NULL; | |
7914 | } | |
7915 | ||
7916 | ||
c32bde28 | 7917 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7918 | PyObject *resultobj; |
7919 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7920 | wxString *arg2 = 0 ; | |
ae8162c8 | 7921 | bool temp2 = false ; |
d55e5bfc RD |
7922 | PyObject * obj0 = 0 ; |
7923 | PyObject * obj1 = 0 ; | |
7924 | char *kwnames[] = { | |
7925 | (char *) "self",(char *) "s", NULL | |
7926 | }; | |
7927 | ||
7928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
7931 | { |
7932 | arg2 = wxString_in_helper(obj1); | |
7933 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7934 | temp2 = true; |
d55e5bfc RD |
7935 | } |
7936 | { | |
7937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7938 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
7939 | ||
7940 | wxPyEndAllowThreads(__tstate); | |
7941 | if (PyErr_Occurred()) SWIG_fail; | |
7942 | } | |
7943 | Py_INCREF(Py_None); resultobj = Py_None; | |
7944 | { | |
7945 | if (temp2) | |
7946 | delete arg2; | |
7947 | } | |
7948 | return resultobj; | |
7949 | fail: | |
7950 | { | |
7951 | if (temp2) | |
7952 | delete arg2; | |
7953 | } | |
7954 | return NULL; | |
7955 | } | |
7956 | ||
7957 | ||
c32bde28 | 7958 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7959 | PyObject *resultobj; |
7960 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7961 | int arg2 ; | |
7962 | PyObject * obj0 = 0 ; | |
7963 | PyObject * obj1 = 0 ; | |
7964 | char *kwnames[] = { | |
7965 | (char *) "self",(char *) "n", NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7971 | { | |
7972 | arg2 = (int)(SWIG_As_int(obj1)); | |
7973 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7974 | } | |
d55e5bfc RD |
7975 | { |
7976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7977 | (arg1)->EnsureVisible(arg2); | |
7978 | ||
7979 | wxPyEndAllowThreads(__tstate); | |
7980 | if (PyErr_Occurred()) SWIG_fail; | |
7981 | } | |
7982 | Py_INCREF(Py_None); resultobj = Py_None; | |
7983 | return resultobj; | |
7984 | fail: | |
7985 | return NULL; | |
7986 | } | |
7987 | ||
7988 | ||
c32bde28 | 7989 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7990 | PyObject *resultobj; |
7991 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7992 | wxString *arg2 = 0 ; | |
ae8162c8 | 7993 | bool temp2 = false ; |
d55e5bfc RD |
7994 | PyObject * obj0 = 0 ; |
7995 | PyObject * obj1 = 0 ; | |
7996 | char *kwnames[] = { | |
7997 | (char *) "self",(char *) "s", NULL | |
7998 | }; | |
7999 | ||
8000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8003 | { |
8004 | arg2 = wxString_in_helper(obj1); | |
8005 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8006 | temp2 = true; |
d55e5bfc RD |
8007 | } |
8008 | { | |
8009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8010 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
8011 | ||
8012 | wxPyEndAllowThreads(__tstate); | |
8013 | if (PyErr_Occurred()) SWIG_fail; | |
8014 | } | |
8015 | Py_INCREF(Py_None); resultobj = Py_None; | |
8016 | { | |
8017 | if (temp2) | |
8018 | delete arg2; | |
8019 | } | |
8020 | return resultobj; | |
8021 | fail: | |
8022 | { | |
8023 | if (temp2) | |
8024 | delete arg2; | |
8025 | } | |
8026 | return NULL; | |
8027 | } | |
8028 | ||
8029 | ||
c32bde28 | 8030 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8031 | PyObject *resultobj; |
8032 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8033 | bool result; | |
8034 | PyObject * obj0 = 0 ; | |
8035 | char *kwnames[] = { | |
8036 | (char *) "self", NULL | |
8037 | }; | |
8038 | ||
8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8042 | { |
8043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8044 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
8045 | ||
8046 | wxPyEndAllowThreads(__tstate); | |
8047 | if (PyErr_Occurred()) SWIG_fail; | |
8048 | } | |
8049 | { | |
8050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8051 | } | |
8052 | return resultobj; | |
8053 | fail: | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
c32bde28 | 8058 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8059 | PyObject *resultobj; |
8060 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8061 | int arg2 ; | |
8062 | wxColour *arg3 = 0 ; | |
8063 | wxColour temp3 ; | |
8064 | PyObject * obj0 = 0 ; | |
8065 | PyObject * obj1 = 0 ; | |
8066 | PyObject * obj2 = 0 ; | |
8067 | char *kwnames[] = { | |
8068 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8069 | }; | |
8070 | ||
8071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8074 | { | |
8075 | arg2 = (int)(SWIG_As_int(obj1)); | |
8076 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8077 | } | |
d55e5bfc RD |
8078 | { |
8079 | arg3 = &temp3; | |
8080 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8081 | } | |
8082 | { | |
8083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8084 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8085 | ||
8086 | wxPyEndAllowThreads(__tstate); | |
8087 | if (PyErr_Occurred()) SWIG_fail; | |
8088 | } | |
8089 | Py_INCREF(Py_None); resultobj = Py_None; | |
8090 | return resultobj; | |
8091 | fail: | |
8092 | return NULL; | |
8093 | } | |
8094 | ||
8095 | ||
c32bde28 | 8096 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8097 | PyObject *resultobj; |
8098 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8099 | int arg2 ; | |
8100 | wxColour *arg3 = 0 ; | |
8101 | wxColour temp3 ; | |
8102 | PyObject * obj0 = 0 ; | |
8103 | PyObject * obj1 = 0 ; | |
8104 | PyObject * obj2 = 0 ; | |
8105 | char *kwnames[] = { | |
8106 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8107 | }; | |
8108 | ||
8109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 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 | } | |
d55e5bfc RD |
8116 | { |
8117 | arg3 = &temp3; | |
8118 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8119 | } | |
8120 | { | |
8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8122 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8123 | ||
8124 | wxPyEndAllowThreads(__tstate); | |
8125 | if (PyErr_Occurred()) SWIG_fail; | |
8126 | } | |
8127 | Py_INCREF(Py_None); resultobj = Py_None; | |
8128 | return resultobj; | |
8129 | fail: | |
8130 | return NULL; | |
8131 | } | |
8132 | ||
8133 | ||
c32bde28 | 8134 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8135 | PyObject *resultobj; |
8136 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8137 | int arg2 ; | |
8138 | wxFont *arg3 = 0 ; | |
8139 | PyObject * obj0 = 0 ; | |
8140 | PyObject * obj1 = 0 ; | |
8141 | PyObject * obj2 = 0 ; | |
8142 | char *kwnames[] = { | |
8143 | (char *) "self",(char *) "item",(char *) "f", NULL | |
8144 | }; | |
8145 | ||
8146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8149 | { | |
8150 | arg2 = (int)(SWIG_As_int(obj1)); | |
8151 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8152 | } | |
8153 | { | |
8154 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8155 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8156 | if (arg3 == NULL) { | |
8157 | SWIG_null_ref("wxFont"); | |
8158 | } | |
8159 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
8160 | } |
8161 | { | |
8162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8163 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
8164 | ||
8165 | wxPyEndAllowThreads(__tstate); | |
8166 | if (PyErr_Occurred()) SWIG_fail; | |
8167 | } | |
8168 | Py_INCREF(Py_None); resultobj = Py_None; | |
8169 | return resultobj; | |
8170 | fail: | |
8171 | return NULL; | |
8172 | } | |
8173 | ||
8174 | ||
c32bde28 | 8175 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 8176 | PyObject *resultobj; |
093d3ff1 | 8177 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
8178 | wxVisualAttributes result; |
8179 | PyObject * obj0 = 0 ; | |
8180 | char *kwnames[] = { | |
8181 | (char *) "variant", NULL | |
8182 | }; | |
8183 | ||
8184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
8185 | if (obj0) { | |
093d3ff1 RD |
8186 | { |
8187 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
8188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8189 | } | |
d55e5bfc RD |
8190 | } |
8191 | { | |
19272049 | 8192 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8194 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
8195 | ||
8196 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8197 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8198 | } |
8199 | { | |
8200 | wxVisualAttributes * resultptr; | |
093d3ff1 | 8201 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
8202 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
8203 | } | |
8204 | return resultobj; | |
8205 | fail: | |
8206 | return NULL; | |
8207 | } | |
8208 | ||
8209 | ||
c32bde28 | 8210 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8211 | PyObject *obj; |
8212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8213 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
8214 | Py_INCREF(obj); | |
8215 | return Py_BuildValue((char *)""); | |
8216 | } | |
c32bde28 | 8217 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8218 | PyObject *resultobj; |
8219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8220 | int arg2 = (int) -1 ; |
d55e5bfc RD |
8221 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8222 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8223 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8224 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8225 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8226 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8227 | long arg6 = (long) 0 ; | |
8228 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8229 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8230 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8231 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8232 | wxCheckListBox *result; | |
8233 | wxPoint temp3 ; | |
8234 | wxSize temp4 ; | |
ae8162c8 RD |
8235 | bool temp5 = false ; |
8236 | bool temp8 = false ; | |
d55e5bfc RD |
8237 | PyObject * obj0 = 0 ; |
8238 | PyObject * obj1 = 0 ; | |
8239 | PyObject * obj2 = 0 ; | |
8240 | PyObject * obj3 = 0 ; | |
8241 | PyObject * obj4 = 0 ; | |
8242 | PyObject * obj5 = 0 ; | |
8243 | PyObject * obj6 = 0 ; | |
8244 | PyObject * obj7 = 0 ; | |
8245 | char *kwnames[] = { | |
8246 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8247 | }; | |
8248 | ||
248ed943 | 8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
8250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 8252 | if (obj1) { |
093d3ff1 RD |
8253 | { |
8254 | arg2 = (int)(SWIG_As_int(obj1)); | |
8255 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8256 | } | |
248ed943 | 8257 | } |
d55e5bfc RD |
8258 | if (obj2) { |
8259 | { | |
8260 | arg3 = &temp3; | |
8261 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8262 | } | |
8263 | } | |
8264 | if (obj3) { | |
8265 | { | |
8266 | arg4 = &temp4; | |
8267 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8268 | } | |
8269 | } | |
8270 | if (obj4) { | |
8271 | { | |
8272 | if (! PySequence_Check(obj4)) { | |
8273 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8274 | SWIG_fail; | |
8275 | } | |
8276 | arg5 = new wxArrayString; | |
ae8162c8 | 8277 | temp5 = true; |
d55e5bfc RD |
8278 | int i, len=PySequence_Length(obj4); |
8279 | for (i=0; i<len; i++) { | |
8280 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 8281 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 8282 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
8283 | arg5->Add(*s); |
8284 | delete s; | |
d55e5bfc | 8285 | Py_DECREF(item); |
d55e5bfc RD |
8286 | } |
8287 | } | |
8288 | } | |
8289 | if (obj5) { | |
093d3ff1 RD |
8290 | { |
8291 | arg6 = (long)(SWIG_As_long(obj5)); | |
8292 | if (SWIG_arg_fail(6)) SWIG_fail; | |
8293 | } | |
d55e5bfc RD |
8294 | } |
8295 | if (obj6) { | |
093d3ff1 RD |
8296 | { |
8297 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8298 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8299 | if (arg7 == NULL) { | |
8300 | SWIG_null_ref("wxValidator"); | |
8301 | } | |
8302 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
8303 | } |
8304 | } | |
8305 | if (obj7) { | |
8306 | { | |
8307 | arg8 = wxString_in_helper(obj7); | |
8308 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 8309 | temp8 = true; |
d55e5bfc RD |
8310 | } |
8311 | } | |
8312 | { | |
0439c23b | 8313 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8315 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
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 | { | |
8322 | if (temp5) delete arg5; | |
8323 | } | |
8324 | { | |
8325 | if (temp8) | |
8326 | delete arg8; | |
8327 | } | |
8328 | return resultobj; | |
8329 | fail: | |
8330 | { | |
8331 | if (temp5) delete arg5; | |
8332 | } | |
8333 | { | |
8334 | if (temp8) | |
8335 | delete arg8; | |
8336 | } | |
8337 | return NULL; | |
8338 | } | |
8339 | ||
8340 | ||
c32bde28 | 8341 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8342 | PyObject *resultobj; |
8343 | wxCheckListBox *result; | |
8344 | char *kwnames[] = { | |
8345 | NULL | |
8346 | }; | |
8347 | ||
8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
8349 | { | |
0439c23b | 8350 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8352 | result = (wxCheckListBox *)new wxCheckListBox(); | |
8353 | ||
8354 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8355 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8356 | } |
8357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
8358 | return resultobj; | |
8359 | fail: | |
8360 | return NULL; | |
8361 | } | |
8362 | ||
8363 | ||
c32bde28 | 8364 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8365 | PyObject *resultobj; |
8366 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8367 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8368 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8369 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8370 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8371 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8372 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8373 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
8374 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8375 | long arg7 = (long) 0 ; | |
8376 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8377 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8378 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8379 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8380 | bool result; | |
8381 | wxPoint temp4 ; | |
8382 | wxSize temp5 ; | |
ae8162c8 RD |
8383 | bool temp6 = false ; |
8384 | bool temp9 = false ; | |
d55e5bfc RD |
8385 | PyObject * obj0 = 0 ; |
8386 | PyObject * obj1 = 0 ; | |
8387 | PyObject * obj2 = 0 ; | |
8388 | PyObject * obj3 = 0 ; | |
8389 | PyObject * obj4 = 0 ; | |
8390 | PyObject * obj5 = 0 ; | |
8391 | PyObject * obj6 = 0 ; | |
8392 | PyObject * obj7 = 0 ; | |
8393 | PyObject * obj8 = 0 ; | |
8394 | char *kwnames[] = { | |
8395 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8396 | }; | |
8397 | ||
248ed943 | 8398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
8399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8401 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 8403 | if (obj2) { |
093d3ff1 RD |
8404 | { |
8405 | arg3 = (int)(SWIG_As_int(obj2)); | |
8406 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8407 | } | |
248ed943 | 8408 | } |
d55e5bfc RD |
8409 | if (obj3) { |
8410 | { | |
8411 | arg4 = &temp4; | |
8412 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8413 | } | |
8414 | } | |
8415 | if (obj4) { | |
8416 | { | |
8417 | arg5 = &temp5; | |
8418 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8419 | } | |
8420 | } | |
8421 | if (obj5) { | |
8422 | { | |
8423 | if (! PySequence_Check(obj5)) { | |
8424 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8425 | SWIG_fail; | |
8426 | } | |
8427 | arg6 = new wxArrayString; | |
ae8162c8 | 8428 | temp6 = true; |
d55e5bfc RD |
8429 | int i, len=PySequence_Length(obj5); |
8430 | for (i=0; i<len; i++) { | |
8431 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 8432 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 8433 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
8434 | arg6->Add(*s); |
8435 | delete s; | |
d55e5bfc | 8436 | Py_DECREF(item); |
d55e5bfc RD |
8437 | } |
8438 | } | |
8439 | } | |
8440 | if (obj6) { | |
093d3ff1 RD |
8441 | { |
8442 | arg7 = (long)(SWIG_As_long(obj6)); | |
8443 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8444 | } | |
d55e5bfc RD |
8445 | } |
8446 | if (obj7) { | |
093d3ff1 RD |
8447 | { |
8448 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8449 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8450 | if (arg8 == NULL) { | |
8451 | SWIG_null_ref("wxValidator"); | |
8452 | } | |
8453 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
8454 | } |
8455 | } | |
8456 | if (obj8) { | |
8457 | { | |
8458 | arg9 = wxString_in_helper(obj8); | |
8459 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 8460 | temp9 = true; |
d55e5bfc RD |
8461 | } |
8462 | } | |
8463 | { | |
8464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8465 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8466 | ||
8467 | wxPyEndAllowThreads(__tstate); | |
8468 | if (PyErr_Occurred()) SWIG_fail; | |
8469 | } | |
8470 | { | |
8471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8472 | } | |
8473 | { | |
8474 | if (temp6) delete arg6; | |
8475 | } | |
8476 | { | |
8477 | if (temp9) | |
8478 | delete arg9; | |
8479 | } | |
8480 | return resultobj; | |
8481 | fail: | |
8482 | { | |
8483 | if (temp6) delete arg6; | |
8484 | } | |
8485 | { | |
8486 | if (temp9) | |
8487 | delete arg9; | |
8488 | } | |
8489 | return NULL; | |
8490 | } | |
8491 | ||
8492 | ||
c32bde28 | 8493 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8494 | PyObject *resultobj; |
8495 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8496 | int arg2 ; | |
8497 | bool result; | |
8498 | PyObject * obj0 = 0 ; | |
8499 | PyObject * obj1 = 0 ; | |
8500 | char *kwnames[] = { | |
8501 | (char *) "self",(char *) "index", NULL | |
8502 | }; | |
8503 | ||
8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8507 | { | |
8508 | arg2 = (int)(SWIG_As_int(obj1)); | |
8509 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8510 | } | |
d55e5bfc RD |
8511 | { |
8512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8513 | result = (bool)(arg1)->IsChecked(arg2); | |
8514 | ||
8515 | wxPyEndAllowThreads(__tstate); | |
8516 | if (PyErr_Occurred()) SWIG_fail; | |
8517 | } | |
8518 | { | |
8519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8520 | } | |
8521 | return resultobj; | |
8522 | fail: | |
8523 | return NULL; | |
8524 | } | |
8525 | ||
8526 | ||
c32bde28 | 8527 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8528 | PyObject *resultobj; |
8529 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8530 | int arg2 ; | |
ae8162c8 | 8531 | int arg3 = (int) true ; |
d55e5bfc RD |
8532 | PyObject * obj0 = 0 ; |
8533 | PyObject * obj1 = 0 ; | |
8534 | PyObject * obj2 = 0 ; | |
8535 | char *kwnames[] = { | |
8536 | (char *) "self",(char *) "index",(char *) "check", NULL | |
8537 | }; | |
8538 | ||
8539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8542 | { | |
8543 | arg2 = (int)(SWIG_As_int(obj1)); | |
8544 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8545 | } | |
d55e5bfc | 8546 | if (obj2) { |
093d3ff1 RD |
8547 | { |
8548 | arg3 = (int)(SWIG_As_int(obj2)); | |
8549 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8550 | } | |
d55e5bfc RD |
8551 | } |
8552 | { | |
8553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8554 | (arg1)->Check(arg2,arg3); | |
8555 | ||
8556 | wxPyEndAllowThreads(__tstate); | |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | } | |
8559 | Py_INCREF(Py_None); resultobj = Py_None; | |
8560 | return resultobj; | |
8561 | fail: | |
8562 | return NULL; | |
8563 | } | |
8564 | ||
8565 | ||
c32bde28 | 8566 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8567 | PyObject *resultobj; |
8568 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8569 | int result; | |
8570 | PyObject * obj0 = 0 ; | |
8571 | char *kwnames[] = { | |
8572 | (char *) "self", NULL | |
8573 | }; | |
8574 | ||
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8578 | { |
8579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8580 | result = (int)(arg1)->GetItemHeight(); | |
8581 | ||
8582 | wxPyEndAllowThreads(__tstate); | |
8583 | if (PyErr_Occurred()) SWIG_fail; | |
8584 | } | |
093d3ff1 RD |
8585 | { |
8586 | resultobj = SWIG_From_int((int)(result)); | |
8587 | } | |
d55e5bfc RD |
8588 | return resultobj; |
8589 | fail: | |
8590 | return NULL; | |
8591 | } | |
8592 | ||
8593 | ||
c32bde28 | 8594 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8595 | PyObject *resultobj; |
8596 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8597 | wxPoint *arg2 = 0 ; | |
8598 | int result; | |
8599 | wxPoint temp2 ; | |
8600 | PyObject * obj0 = 0 ; | |
8601 | PyObject * obj1 = 0 ; | |
8602 | char *kwnames[] = { | |
8603 | (char *) "self",(char *) "pt", NULL | |
8604 | }; | |
8605 | ||
8606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8609 | { |
8610 | arg2 = &temp2; | |
8611 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8612 | } | |
8613 | { | |
8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8615 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
8616 | ||
8617 | wxPyEndAllowThreads(__tstate); | |
8618 | if (PyErr_Occurred()) SWIG_fail; | |
8619 | } | |
093d3ff1 RD |
8620 | { |
8621 | resultobj = SWIG_From_int((int)(result)); | |
8622 | } | |
d55e5bfc RD |
8623 | return resultobj; |
8624 | fail: | |
8625 | return NULL; | |
8626 | } | |
8627 | ||
8628 | ||
c32bde28 | 8629 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8630 | PyObject *resultobj; |
8631 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8632 | int arg2 ; | |
8633 | int arg3 ; | |
8634 | int result; | |
8635 | PyObject * obj0 = 0 ; | |
8636 | PyObject * obj1 = 0 ; | |
8637 | PyObject * obj2 = 0 ; | |
8638 | char *kwnames[] = { | |
8639 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8640 | }; | |
8641 | ||
8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8645 | { | |
8646 | arg2 = (int)(SWIG_As_int(obj1)); | |
8647 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8648 | } | |
8649 | { | |
8650 | arg3 = (int)(SWIG_As_int(obj2)); | |
8651 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8652 | } | |
d55e5bfc RD |
8653 | { |
8654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8655 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
8656 | ||
8657 | wxPyEndAllowThreads(__tstate); | |
8658 | if (PyErr_Occurred()) SWIG_fail; | |
8659 | } | |
093d3ff1 RD |
8660 | { |
8661 | resultobj = SWIG_From_int((int)(result)); | |
8662 | } | |
d55e5bfc RD |
8663 | return resultobj; |
8664 | fail: | |
8665 | return NULL; | |
8666 | } | |
8667 | ||
8668 | ||
c32bde28 | 8669 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8670 | PyObject *obj; |
8671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8672 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
8673 | Py_INCREF(obj); | |
8674 | return Py_BuildValue((char *)""); | |
8675 | } | |
c32bde28 | 8676 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
8677 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
8678 | return 1; | |
8679 | } | |
8680 | ||
8681 | ||
093d3ff1 | 8682 | static PyObject *_wrap_TextCtrlNameStr_get(void) { |
d55e5bfc RD |
8683 | PyObject *pyobj; |
8684 | ||
8685 | { | |
8686 | #if wxUSE_UNICODE | |
8687 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8688 | #else | |
8689 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8690 | #endif | |
8691 | } | |
8692 | return pyobj; | |
8693 | } | |
8694 | ||
8695 | ||
c32bde28 | 8696 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 8697 | PyObject *resultobj; |
908b74cd RD |
8698 | wxColour const &arg1_defvalue = wxNullColour ; |
8699 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d55e5bfc RD |
8700 | wxColour const &arg2_defvalue = wxNullColour ; |
8701 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8702 | wxFont const &arg3_defvalue = wxNullFont ; | |
8703 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
093d3ff1 | 8704 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; |
d55e5bfc RD |
8705 | wxTextAttr *result; |
8706 | wxColour temp1 ; | |
8707 | wxColour temp2 ; | |
8708 | PyObject * obj0 = 0 ; | |
8709 | PyObject * obj1 = 0 ; | |
8710 | PyObject * obj2 = 0 ; | |
8711 | PyObject * obj3 = 0 ; | |
908b74cd RD |
8712 | char *kwnames[] = { |
8713 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
8714 | }; | |
d55e5bfc | 8715 | |
908b74cd RD |
8716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8717 | if (obj0) { | |
8718 | { | |
8719 | arg1 = &temp1; | |
8720 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
8721 | } | |
d55e5bfc RD |
8722 | } |
8723 | if (obj1) { | |
8724 | { | |
8725 | arg2 = &temp2; | |
8726 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8727 | } | |
8728 | } | |
8729 | if (obj2) { | |
093d3ff1 RD |
8730 | { |
8731 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8732 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8733 | if (arg3 == NULL) { | |
8734 | SWIG_null_ref("wxFont"); | |
8735 | } | |
8736 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
8737 | } |
8738 | } | |
8739 | if (obj3) { | |
093d3ff1 RD |
8740 | { |
8741 | arg4 = (wxTextAttrAlignment)(SWIG_As_int(obj3)); | |
8742 | if (SWIG_arg_fail(4)) SWIG_fail; | |
8743 | } | |
d55e5bfc RD |
8744 | } |
8745 | { | |
8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8747 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
8748 | ||
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
8752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
8753 | return resultobj; | |
8754 | fail: | |
8755 | return NULL; | |
8756 | } | |
8757 | ||
8758 | ||
c32bde28 | 8759 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8760 | PyObject *resultobj; |
8761 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8762 | PyObject * obj0 = 0 ; | |
8763 | char *kwnames[] = { | |
8764 | (char *) "self", NULL | |
8765 | }; | |
8766 | ||
8767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8770 | { |
8771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8772 | delete arg1; | |
8773 | ||
8774 | wxPyEndAllowThreads(__tstate); | |
8775 | if (PyErr_Occurred()) SWIG_fail; | |
8776 | } | |
8777 | Py_INCREF(Py_None); resultobj = Py_None; | |
8778 | return resultobj; | |
8779 | fail: | |
8780 | return NULL; | |
8781 | } | |
8782 | ||
8783 | ||
c32bde28 | 8784 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8785 | PyObject *resultobj; |
8786 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8787 | PyObject * obj0 = 0 ; | |
8788 | char *kwnames[] = { | |
8789 | (char *) "self", NULL | |
8790 | }; | |
8791 | ||
8792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8795 | { |
8796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8797 | (arg1)->Init(); | |
8798 | ||
8799 | wxPyEndAllowThreads(__tstate); | |
8800 | if (PyErr_Occurred()) SWIG_fail; | |
8801 | } | |
8802 | Py_INCREF(Py_None); resultobj = Py_None; | |
8803 | return resultobj; | |
8804 | fail: | |
8805 | return NULL; | |
8806 | } | |
8807 | ||
8808 | ||
c32bde28 | 8809 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8810 | PyObject *resultobj; |
8811 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8812 | wxColour *arg2 = 0 ; | |
8813 | wxColour temp2 ; | |
8814 | PyObject * obj0 = 0 ; | |
8815 | PyObject * obj1 = 0 ; | |
8816 | char *kwnames[] = { | |
8817 | (char *) "self",(char *) "colText", NULL | |
8818 | }; | |
8819 | ||
8820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8823 | { |
8824 | arg2 = &temp2; | |
8825 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8826 | } | |
8827 | { | |
8828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8829 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
8830 | ||
8831 | wxPyEndAllowThreads(__tstate); | |
8832 | if (PyErr_Occurred()) SWIG_fail; | |
8833 | } | |
8834 | Py_INCREF(Py_None); resultobj = Py_None; | |
8835 | return resultobj; | |
8836 | fail: | |
8837 | return NULL; | |
8838 | } | |
8839 | ||
8840 | ||
c32bde28 | 8841 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8842 | PyObject *resultobj; |
8843 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8844 | wxColour *arg2 = 0 ; | |
8845 | wxColour temp2 ; | |
8846 | PyObject * obj0 = 0 ; | |
8847 | PyObject * obj1 = 0 ; | |
8848 | char *kwnames[] = { | |
8849 | (char *) "self",(char *) "colBack", NULL | |
8850 | }; | |
8851 | ||
8852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8855 | { |
8856 | arg2 = &temp2; | |
8857 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8858 | } | |
8859 | { | |
8860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8861 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
8862 | ||
8863 | wxPyEndAllowThreads(__tstate); | |
8864 | if (PyErr_Occurred()) SWIG_fail; | |
8865 | } | |
8866 | Py_INCREF(Py_None); resultobj = Py_None; | |
8867 | return resultobj; | |
8868 | fail: | |
8869 | return NULL; | |
8870 | } | |
8871 | ||
8872 | ||
c32bde28 | 8873 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8874 | PyObject *resultobj; |
8875 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8876 | wxFont *arg2 = 0 ; | |
8877 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
8878 | PyObject * obj0 = 0 ; | |
8879 | PyObject * obj1 = 0 ; | |
8880 | PyObject * obj2 = 0 ; | |
8881 | char *kwnames[] = { | |
8882 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
8883 | }; | |
8884 | ||
8885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8888 | { | |
8889 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8890 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8891 | if (arg2 == NULL) { | |
8892 | SWIG_null_ref("wxFont"); | |
8893 | } | |
8894 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
8895 | } |
8896 | if (obj2) { | |
093d3ff1 RD |
8897 | { |
8898 | arg3 = (long)(SWIG_As_long(obj2)); | |
8899 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8900 | } | |
d55e5bfc RD |
8901 | } |
8902 | { | |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8904 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
8905 | ||
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8909 | Py_INCREF(Py_None); resultobj = Py_None; | |
8910 | return resultobj; | |
8911 | fail: | |
8912 | return NULL; | |
8913 | } | |
8914 | ||
8915 | ||
c32bde28 | 8916 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8917 | PyObject *resultobj; |
8918 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
093d3ff1 | 8919 | wxTextAttrAlignment arg2 ; |
d55e5bfc RD |
8920 | PyObject * obj0 = 0 ; |
8921 | PyObject * obj1 = 0 ; | |
8922 | char *kwnames[] = { | |
8923 | (char *) "self",(char *) "alignment", NULL | |
8924 | }; | |
8925 | ||
8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8929 | { | |
8930 | arg2 = (wxTextAttrAlignment)(SWIG_As_int(obj1)); | |
8931 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8932 | } | |
d55e5bfc RD |
8933 | { |
8934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8935 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
8936 | ||
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
8940 | Py_INCREF(Py_None); resultobj = Py_None; | |
8941 | return resultobj; | |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
c32bde28 | 8947 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8948 | PyObject *resultobj; |
8949 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8950 | wxArrayInt *arg2 = 0 ; | |
ae8162c8 | 8951 | bool temp2 = false ; |
d55e5bfc RD |
8952 | PyObject * obj0 = 0 ; |
8953 | PyObject * obj1 = 0 ; | |
8954 | char *kwnames[] = { | |
8955 | (char *) "self",(char *) "tabs", NULL | |
8956 | }; | |
8957 | ||
8958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8959 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8960 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
8961 | { |
8962 | if (! PySequence_Check(obj1)) { | |
8963 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
8964 | SWIG_fail; | |
8965 | } | |
8966 | arg2 = new wxArrayInt; | |
ae8162c8 | 8967 | temp2 = true; |
d55e5bfc RD |
8968 | int i, len=PySequence_Length(obj1); |
8969 | for (i=0; i<len; i++) { | |
8970 | PyObject* item = PySequence_GetItem(obj1, i); | |
8971 | PyObject* number = PyNumber_Int(item); | |
8972 | arg2->Add(PyInt_AS_LONG(number)); | |
8973 | Py_DECREF(item); | |
8974 | Py_DECREF(number); | |
8975 | } | |
8976 | } | |
8977 | { | |
8978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8979 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
8980 | ||
8981 | wxPyEndAllowThreads(__tstate); | |
8982 | if (PyErr_Occurred()) SWIG_fail; | |
8983 | } | |
8984 | Py_INCREF(Py_None); resultobj = Py_None; | |
8985 | { | |
8986 | if (temp2) delete arg2; | |
8987 | } | |
8988 | return resultobj; | |
8989 | fail: | |
8990 | { | |
8991 | if (temp2) delete arg2; | |
8992 | } | |
8993 | return NULL; | |
8994 | } | |
8995 | ||
8996 | ||
c32bde28 | 8997 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8998 | PyObject *resultobj; |
8999 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9000 | int arg2 ; | |
a07a67e6 | 9001 | int arg3 = (int) 0 ; |
d55e5bfc RD |
9002 | PyObject * obj0 = 0 ; |
9003 | PyObject * obj1 = 0 ; | |
a07a67e6 | 9004 | PyObject * obj2 = 0 ; |
d55e5bfc | 9005 | char *kwnames[] = { |
a07a67e6 | 9006 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d55e5bfc RD |
9007 | }; |
9008 | ||
a07a67e6 | 9009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9010 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9011 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9012 | { | |
9013 | arg2 = (int)(SWIG_As_int(obj1)); | |
9014 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9015 | } | |
a07a67e6 | 9016 | if (obj2) { |
093d3ff1 RD |
9017 | { |
9018 | arg3 = (int)(SWIG_As_int(obj2)); | |
9019 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9020 | } | |
a07a67e6 | 9021 | } |
d55e5bfc RD |
9022 | { |
9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 9024 | (arg1)->SetLeftIndent(arg2,arg3); |
d55e5bfc RD |
9025 | |
9026 | wxPyEndAllowThreads(__tstate); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | } | |
9029 | Py_INCREF(Py_None); resultobj = Py_None; | |
9030 | return resultobj; | |
9031 | fail: | |
9032 | return NULL; | |
9033 | } | |
9034 | ||
9035 | ||
c32bde28 | 9036 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9037 | PyObject *resultobj; |
9038 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9039 | int arg2 ; | |
9040 | PyObject * obj0 = 0 ; | |
9041 | PyObject * obj1 = 0 ; | |
9042 | char *kwnames[] = { | |
9043 | (char *) "self",(char *) "indent", NULL | |
9044 | }; | |
9045 | ||
9046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9049 | { | |
9050 | arg2 = (int)(SWIG_As_int(obj1)); | |
9051 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9052 | } | |
d55e5bfc RD |
9053 | { |
9054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9055 | (arg1)->SetRightIndent(arg2); | |
9056 | ||
9057 | wxPyEndAllowThreads(__tstate); | |
9058 | if (PyErr_Occurred()) SWIG_fail; | |
9059 | } | |
9060 | Py_INCREF(Py_None); resultobj = Py_None; | |
9061 | return resultobj; | |
9062 | fail: | |
9063 | return NULL; | |
9064 | } | |
9065 | ||
9066 | ||
c32bde28 | 9067 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9068 | PyObject *resultobj; |
9069 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9070 | long arg2 ; | |
9071 | PyObject * obj0 = 0 ; | |
9072 | PyObject * obj1 = 0 ; | |
9073 | char *kwnames[] = { | |
9074 | (char *) "self",(char *) "flags", NULL | |
9075 | }; | |
9076 | ||
9077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9080 | { | |
9081 | arg2 = (long)(SWIG_As_long(obj1)); | |
9082 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9083 | } | |
d55e5bfc RD |
9084 | { |
9085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9086 | (arg1)->SetFlags(arg2); | |
9087 | ||
9088 | wxPyEndAllowThreads(__tstate); | |
9089 | if (PyErr_Occurred()) SWIG_fail; | |
9090 | } | |
9091 | Py_INCREF(Py_None); resultobj = Py_None; | |
9092 | return resultobj; | |
9093 | fail: | |
9094 | return NULL; | |
9095 | } | |
9096 | ||
9097 | ||
c32bde28 | 9098 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9099 | PyObject *resultobj; |
9100 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9101 | bool result; | |
9102 | PyObject * obj0 = 0 ; | |
9103 | char *kwnames[] = { | |
9104 | (char *) "self", NULL | |
9105 | }; | |
9106 | ||
9107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9110 | { |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9112 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
9113 | ||
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
9117 | { | |
9118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9119 | } | |
9120 | return resultobj; | |
9121 | fail: | |
9122 | return NULL; | |
9123 | } | |
9124 | ||
9125 | ||
c32bde28 | 9126 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9127 | PyObject *resultobj; |
9128 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9129 | bool result; | |
9130 | PyObject * obj0 = 0 ; | |
9131 | char *kwnames[] = { | |
9132 | (char *) "self", NULL | |
9133 | }; | |
9134 | ||
9135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9138 | { |
9139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9140 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
9141 | ||
9142 | wxPyEndAllowThreads(__tstate); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | } | |
9145 | { | |
9146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9147 | } | |
9148 | return resultobj; | |
9149 | fail: | |
9150 | return NULL; | |
9151 | } | |
9152 | ||
9153 | ||
c32bde28 | 9154 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9155 | PyObject *resultobj; |
9156 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9157 | bool result; | |
9158 | PyObject * obj0 = 0 ; | |
9159 | char *kwnames[] = { | |
9160 | (char *) "self", NULL | |
9161 | }; | |
9162 | ||
9163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9166 | { |
9167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9168 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
9169 | ||
9170 | wxPyEndAllowThreads(__tstate); | |
9171 | if (PyErr_Occurred()) SWIG_fail; | |
9172 | } | |
9173 | { | |
9174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9175 | } | |
9176 | return resultobj; | |
9177 | fail: | |
9178 | return NULL; | |
9179 | } | |
9180 | ||
9181 | ||
c32bde28 | 9182 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9183 | PyObject *resultobj; |
9184 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9185 | bool result; | |
9186 | PyObject * obj0 = 0 ; | |
9187 | char *kwnames[] = { | |
9188 | (char *) "self", NULL | |
9189 | }; | |
9190 | ||
9191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9192 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9193 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9194 | { |
9195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9196 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
9197 | ||
9198 | wxPyEndAllowThreads(__tstate); | |
9199 | if (PyErr_Occurred()) SWIG_fail; | |
9200 | } | |
9201 | { | |
9202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9203 | } | |
9204 | return resultobj; | |
9205 | fail: | |
9206 | return NULL; | |
9207 | } | |
9208 | ||
9209 | ||
c32bde28 | 9210 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9211 | PyObject *resultobj; |
9212 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9213 | bool result; | |
9214 | PyObject * obj0 = 0 ; | |
9215 | char *kwnames[] = { | |
9216 | (char *) "self", NULL | |
9217 | }; | |
9218 | ||
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9222 | { |
9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9224 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
9225 | ||
9226 | wxPyEndAllowThreads(__tstate); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | { | |
9230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9231 | } | |
9232 | return resultobj; | |
9233 | fail: | |
9234 | return NULL; | |
9235 | } | |
9236 | ||
9237 | ||
c32bde28 | 9238 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9239 | PyObject *resultobj; |
9240 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9241 | bool result; | |
9242 | PyObject * obj0 = 0 ; | |
9243 | char *kwnames[] = { | |
9244 | (char *) "self", NULL | |
9245 | }; | |
9246 | ||
9247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9250 | { |
9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9252 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
9253 | ||
9254 | wxPyEndAllowThreads(__tstate); | |
9255 | if (PyErr_Occurred()) SWIG_fail; | |
9256 | } | |
9257 | { | |
9258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9259 | } | |
9260 | return resultobj; | |
9261 | fail: | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
c32bde28 | 9266 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9267 | PyObject *resultobj; |
9268 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9269 | bool result; | |
9270 | PyObject * obj0 = 0 ; | |
9271 | char *kwnames[] = { | |
9272 | (char *) "self", NULL | |
9273 | }; | |
9274 | ||
9275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9278 | { |
9279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9280 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
9281 | ||
9282 | wxPyEndAllowThreads(__tstate); | |
9283 | if (PyErr_Occurred()) SWIG_fail; | |
9284 | } | |
9285 | { | |
9286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9287 | } | |
9288 | return resultobj; | |
9289 | fail: | |
9290 | return NULL; | |
9291 | } | |
9292 | ||
9293 | ||
c32bde28 | 9294 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9295 | PyObject *resultobj; |
9296 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9297 | long arg2 ; | |
9298 | bool result; | |
9299 | PyObject * obj0 = 0 ; | |
9300 | PyObject * obj1 = 0 ; | |
9301 | char *kwnames[] = { | |
9302 | (char *) "self",(char *) "flag", NULL | |
9303 | }; | |
9304 | ||
9305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9308 | { | |
9309 | arg2 = (long)(SWIG_As_long(obj1)); | |
9310 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9311 | } | |
d55e5bfc RD |
9312 | { |
9313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9314 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
9315 | ||
9316 | wxPyEndAllowThreads(__tstate); | |
9317 | if (PyErr_Occurred()) SWIG_fail; | |
9318 | } | |
9319 | { | |
9320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9321 | } | |
9322 | return resultobj; | |
9323 | fail: | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
c32bde28 | 9328 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9329 | PyObject *resultobj; |
9330 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9331 | wxColour *result; | |
9332 | PyObject * obj0 = 0 ; | |
9333 | char *kwnames[] = { | |
9334 | (char *) "self", NULL | |
9335 | }; | |
9336 | ||
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9340 | { |
9341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9342 | { | |
9343 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
9344 | result = (wxColour *) &_result_ref; | |
9345 | } | |
9346 | ||
9347 | wxPyEndAllowThreads(__tstate); | |
9348 | if (PyErr_Occurred()) SWIG_fail; | |
9349 | } | |
9350 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
9351 | return resultobj; | |
9352 | fail: | |
9353 | return NULL; | |
9354 | } | |
9355 | ||
9356 | ||
c32bde28 | 9357 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9358 | PyObject *resultobj; |
9359 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9360 | wxColour *result; | |
9361 | PyObject * obj0 = 0 ; | |
9362 | char *kwnames[] = { | |
9363 | (char *) "self", NULL | |
9364 | }; | |
9365 | ||
9366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9369 | { |
9370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9371 | { | |
9372 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
9373 | result = (wxColour *) &_result_ref; | |
9374 | } | |
9375 | ||
9376 | wxPyEndAllowThreads(__tstate); | |
9377 | if (PyErr_Occurred()) SWIG_fail; | |
9378 | } | |
9379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
9380 | return resultobj; | |
9381 | fail: | |
9382 | return NULL; | |
9383 | } | |
9384 | ||
9385 | ||
c32bde28 | 9386 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9387 | PyObject *resultobj; |
9388 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9389 | wxFont *result; | |
9390 | PyObject * obj0 = 0 ; | |
9391 | char *kwnames[] = { | |
9392 | (char *) "self", NULL | |
9393 | }; | |
9394 | ||
9395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9398 | { |
9399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9400 | { | |
9401 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
9402 | result = (wxFont *) &_result_ref; | |
9403 | } | |
9404 | ||
9405 | wxPyEndAllowThreads(__tstate); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | } | |
9408 | { | |
9409 | wxFont* resultptr = new wxFont(*result); | |
9410 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
9411 | } | |
9412 | return resultobj; | |
9413 | fail: | |
9414 | return NULL; | |
9415 | } | |
9416 | ||
9417 | ||
c32bde28 | 9418 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9419 | PyObject *resultobj; |
9420 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
093d3ff1 | 9421 | wxTextAttrAlignment result; |
d55e5bfc RD |
9422 | PyObject * obj0 = 0 ; |
9423 | char *kwnames[] = { | |
9424 | (char *) "self", NULL | |
9425 | }; | |
9426 | ||
9427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9430 | { |
9431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9432 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); |
d55e5bfc RD |
9433 | |
9434 | wxPyEndAllowThreads(__tstate); | |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
9436 | } | |
093d3ff1 | 9437 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
9438 | return resultobj; |
9439 | fail: | |
9440 | return NULL; | |
9441 | } | |
9442 | ||
9443 | ||
c32bde28 | 9444 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9445 | PyObject *resultobj; |
9446 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9447 | wxArrayInt *result; | |
9448 | PyObject * obj0 = 0 ; | |
9449 | char *kwnames[] = { | |
9450 | (char *) "self", NULL | |
9451 | }; | |
9452 | ||
9453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9456 | { |
9457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9458 | { | |
9459 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
9460 | result = (wxArrayInt *) &_result_ref; | |
9461 | } | |
9462 | ||
9463 | wxPyEndAllowThreads(__tstate); | |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | } | |
9466 | { | |
9467 | resultobj = PyList_New(0); | |
9468 | size_t idx; | |
9469 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
9470 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
9471 | PyList_Append(resultobj, val); | |
9472 | Py_DECREF(val); | |
9473 | } | |
9474 | } | |
9475 | return resultobj; | |
9476 | fail: | |
9477 | return NULL; | |
9478 | } | |
9479 | ||
9480 | ||
c32bde28 | 9481 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9482 | PyObject *resultobj; |
9483 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9484 | long result; | |
9485 | PyObject * obj0 = 0 ; | |
9486 | char *kwnames[] = { | |
9487 | (char *) "self", NULL | |
9488 | }; | |
9489 | ||
9490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9493 | { |
9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9495 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
9496 | ||
9497 | wxPyEndAllowThreads(__tstate); | |
9498 | if (PyErr_Occurred()) SWIG_fail; | |
9499 | } | |
093d3ff1 RD |
9500 | { |
9501 | resultobj = SWIG_From_long((long)(result)); | |
9502 | } | |
d55e5bfc RD |
9503 | return resultobj; |
9504 | fail: | |
9505 | return NULL; | |
9506 | } | |
9507 | ||
9508 | ||
c32bde28 | 9509 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
a07a67e6 RD |
9510 | PyObject *resultobj; |
9511 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9512 | long result; | |
9513 | PyObject * obj0 = 0 ; | |
9514 | char *kwnames[] = { | |
9515 | (char *) "self", NULL | |
9516 | }; | |
9517 | ||
9518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a07a67e6 RD |
9521 | { |
9522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9523 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
9524 | ||
9525 | wxPyEndAllowThreads(__tstate); | |
9526 | if (PyErr_Occurred()) SWIG_fail; | |
9527 | } | |
093d3ff1 RD |
9528 | { |
9529 | resultobj = SWIG_From_long((long)(result)); | |
9530 | } | |
a07a67e6 RD |
9531 | return resultobj; |
9532 | fail: | |
9533 | return NULL; | |
9534 | } | |
9535 | ||
9536 | ||
c32bde28 | 9537 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9538 | PyObject *resultobj; |
9539 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9540 | long result; | |
9541 | PyObject * obj0 = 0 ; | |
9542 | char *kwnames[] = { | |
9543 | (char *) "self", NULL | |
9544 | }; | |
9545 | ||
9546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9549 | { |
9550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9551 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
9552 | ||
9553 | wxPyEndAllowThreads(__tstate); | |
9554 | if (PyErr_Occurred()) SWIG_fail; | |
9555 | } | |
093d3ff1 RD |
9556 | { |
9557 | resultobj = SWIG_From_long((long)(result)); | |
9558 | } | |
d55e5bfc RD |
9559 | return resultobj; |
9560 | fail: | |
9561 | return NULL; | |
9562 | } | |
9563 | ||
9564 | ||
c32bde28 | 9565 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9566 | PyObject *resultobj; |
9567 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9568 | long result; | |
9569 | PyObject * obj0 = 0 ; | |
9570 | char *kwnames[] = { | |
9571 | (char *) "self", NULL | |
9572 | }; | |
9573 | ||
9574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9577 | { |
9578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9579 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
9580 | ||
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
093d3ff1 RD |
9584 | { |
9585 | resultobj = SWIG_From_long((long)(result)); | |
9586 | } | |
d55e5bfc RD |
9587 | return resultobj; |
9588 | fail: | |
9589 | return NULL; | |
9590 | } | |
9591 | ||
9592 | ||
c32bde28 | 9593 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9594 | PyObject *resultobj; |
9595 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9596 | bool result; | |
9597 | PyObject * obj0 = 0 ; | |
9598 | char *kwnames[] = { | |
9599 | (char *) "self", NULL | |
9600 | }; | |
9601 | ||
9602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9605 | { |
9606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9607 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
9608 | ||
9609 | wxPyEndAllowThreads(__tstate); | |
9610 | if (PyErr_Occurred()) SWIG_fail; | |
9611 | } | |
9612 | { | |
9613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9614 | } | |
9615 | return resultobj; | |
9616 | fail: | |
9617 | return NULL; | |
9618 | } | |
9619 | ||
9620 | ||
c32bde28 | 9621 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9622 | PyObject *resultobj; |
9623 | wxTextAttr *arg1 = 0 ; | |
9624 | wxTextAttr *arg2 = 0 ; | |
9625 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
9626 | wxTextAttr result; | |
9627 | PyObject * obj0 = 0 ; | |
9628 | PyObject * obj1 = 0 ; | |
9629 | PyObject * obj2 = 0 ; | |
9630 | char *kwnames[] = { | |
9631 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
9632 | }; | |
9633 | ||
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9635 | { |
9636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9638 | if (arg1 == NULL) { | |
9639 | SWIG_null_ref("wxTextAttr"); | |
9640 | } | |
9641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 9642 | } |
093d3ff1 RD |
9643 | { |
9644 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9645 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9646 | if (arg2 == NULL) { | |
9647 | SWIG_null_ref("wxTextAttr"); | |
9648 | } | |
9649 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 9650 | } |
093d3ff1 RD |
9651 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9652 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
9653 | { |
9654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9655 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
9656 | ||
9657 | wxPyEndAllowThreads(__tstate); | |
9658 | if (PyErr_Occurred()) SWIG_fail; | |
9659 | } | |
9660 | { | |
9661 | wxTextAttr * resultptr; | |
093d3ff1 | 9662 | resultptr = new wxTextAttr((wxTextAttr &)(result)); |
d55e5bfc RD |
9663 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
9664 | } | |
9665 | return resultobj; | |
9666 | fail: | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
c32bde28 | 9671 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9672 | PyObject *obj; |
9673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9674 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
9675 | Py_INCREF(obj); | |
9676 | return Py_BuildValue((char *)""); | |
9677 | } | |
c32bde28 | 9678 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9679 | PyObject *resultobj; |
9680 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 9681 | int arg2 = (int) -1 ; |
d55e5bfc RD |
9682 | wxString const &arg3_defvalue = wxPyEmptyString ; |
9683 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9684 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9685 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9686 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9687 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9688 | long arg6 = (long) 0 ; | |
9689 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9690 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9691 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
9692 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9693 | wxTextCtrl *result; | |
ae8162c8 | 9694 | bool temp3 = false ; |
d55e5bfc RD |
9695 | wxPoint temp4 ; |
9696 | wxSize temp5 ; | |
ae8162c8 | 9697 | bool temp8 = false ; |
d55e5bfc RD |
9698 | PyObject * obj0 = 0 ; |
9699 | PyObject * obj1 = 0 ; | |
9700 | PyObject * obj2 = 0 ; | |
9701 | PyObject * obj3 = 0 ; | |
9702 | PyObject * obj4 = 0 ; | |
9703 | PyObject * obj5 = 0 ; | |
9704 | PyObject * obj6 = 0 ; | |
9705 | PyObject * obj7 = 0 ; | |
9706 | char *kwnames[] = { | |
9707 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9708 | }; | |
9709 | ||
248ed943 | 9710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
9711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
9712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 9713 | if (obj1) { |
093d3ff1 RD |
9714 | { |
9715 | arg2 = (int)(SWIG_As_int(obj1)); | |
9716 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9717 | } | |
248ed943 | 9718 | } |
d55e5bfc RD |
9719 | if (obj2) { |
9720 | { | |
9721 | arg3 = wxString_in_helper(obj2); | |
9722 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9723 | temp3 = true; |
d55e5bfc RD |
9724 | } |
9725 | } | |
9726 | if (obj3) { | |
9727 | { | |
9728 | arg4 = &temp4; | |
9729 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9730 | } | |
9731 | } | |
9732 | if (obj4) { | |
9733 | { | |
9734 | arg5 = &temp5; | |
9735 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9736 | } | |
9737 | } | |
9738 | if (obj5) { | |
093d3ff1 RD |
9739 | { |
9740 | arg6 = (long)(SWIG_As_long(obj5)); | |
9741 | if (SWIG_arg_fail(6)) SWIG_fail; | |
9742 | } | |
d55e5bfc RD |
9743 | } |
9744 | if (obj6) { | |
093d3ff1 RD |
9745 | { |
9746 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9747 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9748 | if (arg7 == NULL) { | |
9749 | SWIG_null_ref("wxValidator"); | |
9750 | } | |
9751 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
9752 | } |
9753 | } | |
9754 | if (obj7) { | |
9755 | { | |
9756 | arg8 = wxString_in_helper(obj7); | |
9757 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 9758 | temp8 = true; |
d55e5bfc RD |
9759 | } |
9760 | } | |
9761 | { | |
0439c23b | 9762 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9764 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9765 | ||
9766 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9767 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9768 | } |
b0f7404b | 9769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
9770 | { |
9771 | if (temp3) | |
9772 | delete arg3; | |
9773 | } | |
9774 | { | |
9775 | if (temp8) | |
9776 | delete arg8; | |
9777 | } | |
9778 | return resultobj; | |
9779 | fail: | |
9780 | { | |
9781 | if (temp3) | |
9782 | delete arg3; | |
9783 | } | |
9784 | { | |
9785 | if (temp8) | |
9786 | delete arg8; | |
9787 | } | |
9788 | return NULL; | |
9789 | } | |
9790 | ||
9791 | ||
c32bde28 | 9792 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9793 | PyObject *resultobj; |
9794 | wxTextCtrl *result; | |
9795 | char *kwnames[] = { | |
9796 | NULL | |
9797 | }; | |
9798 | ||
9799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
9800 | { | |
0439c23b | 9801 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9803 | result = (wxTextCtrl *)new wxTextCtrl(); | |
9804 | ||
9805 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9806 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9807 | } |
b0f7404b | 9808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
9809 | return resultobj; |
9810 | fail: | |
9811 | return NULL; | |
9812 | } | |
9813 | ||
9814 | ||
c32bde28 | 9815 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9816 | PyObject *resultobj; |
9817 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9818 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 9819 | int arg3 = (int) -1 ; |
d55e5bfc RD |
9820 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9821 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9822 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9823 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9824 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9825 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9826 | long arg7 = (long) 0 ; | |
9827 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9828 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9829 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
9830 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9831 | bool result; | |
ae8162c8 | 9832 | bool temp4 = false ; |
d55e5bfc RD |
9833 | wxPoint temp5 ; |
9834 | wxSize temp6 ; | |
ae8162c8 | 9835 | bool temp9 = false ; |
d55e5bfc RD |
9836 | PyObject * obj0 = 0 ; |
9837 | PyObject * obj1 = 0 ; | |
9838 | PyObject * obj2 = 0 ; | |
9839 | PyObject * obj3 = 0 ; | |
9840 | PyObject * obj4 = 0 ; | |
9841 | PyObject * obj5 = 0 ; | |
9842 | PyObject * obj6 = 0 ; | |
9843 | PyObject * obj7 = 0 ; | |
9844 | PyObject * obj8 = 0 ; | |
9845 | char *kwnames[] = { | |
9846 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9847 | }; | |
9848 | ||
248ed943 | 9849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
9850 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9851 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9852 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 9854 | if (obj2) { |
093d3ff1 RD |
9855 | { |
9856 | arg3 = (int)(SWIG_As_int(obj2)); | |
9857 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9858 | } | |
248ed943 | 9859 | } |
d55e5bfc RD |
9860 | if (obj3) { |
9861 | { | |
9862 | arg4 = wxString_in_helper(obj3); | |
9863 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 9864 | temp4 = true; |
d55e5bfc RD |
9865 | } |
9866 | } | |
9867 | if (obj4) { | |
9868 | { | |
9869 | arg5 = &temp5; | |
9870 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9871 | } | |
9872 | } | |
9873 | if (obj5) { | |
9874 | { | |
9875 | arg6 = &temp6; | |
9876 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9877 | } | |
9878 | } | |
9879 | if (obj6) { | |
093d3ff1 RD |
9880 | { |
9881 | arg7 = (long)(SWIG_As_long(obj6)); | |
9882 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9883 | } | |
d55e5bfc RD |
9884 | } |
9885 | if (obj7) { | |
093d3ff1 RD |
9886 | { |
9887 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9888 | if (SWIG_arg_fail(8)) SWIG_fail; | |
9889 | if (arg8 == NULL) { | |
9890 | SWIG_null_ref("wxValidator"); | |
9891 | } | |
9892 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
9893 | } |
9894 | } | |
9895 | if (obj8) { | |
9896 | { | |
9897 | arg9 = wxString_in_helper(obj8); | |
9898 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 9899 | temp9 = true; |
d55e5bfc RD |
9900 | } |
9901 | } | |
9902 | { | |
9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9904 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9905 | ||
9906 | wxPyEndAllowThreads(__tstate); | |
9907 | if (PyErr_Occurred()) SWIG_fail; | |
9908 | } | |
9909 | { | |
9910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9911 | } | |
9912 | { | |
9913 | if (temp4) | |
9914 | delete arg4; | |
9915 | } | |
9916 | { | |
9917 | if (temp9) | |
9918 | delete arg9; | |
9919 | } | |
9920 | return resultobj; | |
9921 | fail: | |
9922 | { | |
9923 | if (temp4) | |
9924 | delete arg4; | |
9925 | } | |
9926 | { | |
9927 | if (temp9) | |
9928 | delete arg9; | |
9929 | } | |
9930 | return NULL; | |
9931 | } | |
9932 | ||
9933 | ||
c32bde28 | 9934 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9935 | PyObject *resultobj; |
9936 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9937 | wxString result; | |
9938 | PyObject * obj0 = 0 ; | |
9939 | char *kwnames[] = { | |
9940 | (char *) "self", NULL | |
9941 | }; | |
9942 | ||
9943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9944 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9945 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9946 | { |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
9949 | ||
9950 | wxPyEndAllowThreads(__tstate); | |
9951 | if (PyErr_Occurred()) SWIG_fail; | |
9952 | } | |
9953 | { | |
9954 | #if wxUSE_UNICODE | |
9955 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9956 | #else | |
9957 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9958 | #endif | |
9959 | } | |
9960 | return resultobj; | |
9961 | fail: | |
9962 | return NULL; | |
9963 | } | |
9964 | ||
9965 | ||
c32bde28 | 9966 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9967 | PyObject *resultobj; |
9968 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9969 | wxString *arg2 = 0 ; | |
ae8162c8 | 9970 | bool temp2 = false ; |
d55e5bfc RD |
9971 | PyObject * obj0 = 0 ; |
9972 | PyObject * obj1 = 0 ; | |
9973 | char *kwnames[] = { | |
9974 | (char *) "self",(char *) "value", NULL | |
9975 | }; | |
9976 | ||
9977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
9980 | { |
9981 | arg2 = wxString_in_helper(obj1); | |
9982 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9983 | temp2 = true; |
d55e5bfc RD |
9984 | } |
9985 | { | |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | (arg1)->SetValue((wxString const &)*arg2); | |
9988 | ||
9989 | wxPyEndAllowThreads(__tstate); | |
9990 | if (PyErr_Occurred()) SWIG_fail; | |
9991 | } | |
9992 | Py_INCREF(Py_None); resultobj = Py_None; | |
9993 | { | |
9994 | if (temp2) | |
9995 | delete arg2; | |
9996 | } | |
9997 | return resultobj; | |
9998 | fail: | |
9999 | { | |
10000 | if (temp2) | |
10001 | delete arg2; | |
10002 | } | |
10003 | return NULL; | |
10004 | } | |
10005 | ||
10006 | ||
c32bde28 | 10007 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10008 | PyObject *resultobj; |
10009 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10010 | long arg2 ; | |
10011 | long arg3 ; | |
10012 | wxString result; | |
10013 | PyObject * obj0 = 0 ; | |
10014 | PyObject * obj1 = 0 ; | |
10015 | PyObject * obj2 = 0 ; | |
10016 | char *kwnames[] = { | |
10017 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10018 | }; | |
10019 | ||
10020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10023 | { | |
10024 | arg2 = (long)(SWIG_As_long(obj1)); | |
10025 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10026 | } | |
10027 | { | |
10028 | arg3 = (long)(SWIG_As_long(obj2)); | |
10029 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10030 | } | |
d55e5bfc RD |
10031 | { |
10032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10033 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
10034 | ||
10035 | wxPyEndAllowThreads(__tstate); | |
10036 | if (PyErr_Occurred()) SWIG_fail; | |
10037 | } | |
10038 | { | |
10039 | #if wxUSE_UNICODE | |
10040 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10041 | #else | |
10042 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10043 | #endif | |
10044 | } | |
10045 | return resultobj; | |
10046 | fail: | |
10047 | return NULL; | |
10048 | } | |
10049 | ||
10050 | ||
c32bde28 | 10051 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10052 | PyObject *resultobj; |
10053 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10054 | long arg2 ; | |
10055 | int result; | |
10056 | PyObject * obj0 = 0 ; | |
10057 | PyObject * obj1 = 0 ; | |
10058 | char *kwnames[] = { | |
10059 | (char *) "self",(char *) "lineNo", NULL | |
10060 | }; | |
10061 | ||
10062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10065 | { | |
10066 | arg2 = (long)(SWIG_As_long(obj1)); | |
10067 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10068 | } | |
d55e5bfc RD |
10069 | { |
10070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10071 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
10072 | ||
10073 | wxPyEndAllowThreads(__tstate); | |
10074 | if (PyErr_Occurred()) SWIG_fail; | |
10075 | } | |
093d3ff1 RD |
10076 | { |
10077 | resultobj = SWIG_From_int((int)(result)); | |
10078 | } | |
d55e5bfc RD |
10079 | return resultobj; |
10080 | fail: | |
10081 | return NULL; | |
10082 | } | |
10083 | ||
10084 | ||
c32bde28 | 10085 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10086 | PyObject *resultobj; |
10087 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10088 | long arg2 ; | |
10089 | wxString result; | |
10090 | PyObject * obj0 = 0 ; | |
10091 | PyObject * obj1 = 0 ; | |
10092 | char *kwnames[] = { | |
10093 | (char *) "self",(char *) "lineNo", NULL | |
10094 | }; | |
10095 | ||
10096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10099 | { | |
10100 | arg2 = (long)(SWIG_As_long(obj1)); | |
10101 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10102 | } | |
d55e5bfc RD |
10103 | { |
10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10105 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
10106 | ||
10107 | wxPyEndAllowThreads(__tstate); | |
10108 | if (PyErr_Occurred()) SWIG_fail; | |
10109 | } | |
10110 | { | |
10111 | #if wxUSE_UNICODE | |
10112 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10113 | #else | |
10114 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10115 | #endif | |
10116 | } | |
10117 | return resultobj; | |
10118 | fail: | |
10119 | return NULL; | |
10120 | } | |
10121 | ||
10122 | ||
c32bde28 | 10123 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10124 | PyObject *resultobj; |
10125 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10126 | int result; | |
10127 | PyObject * obj0 = 0 ; | |
10128 | char *kwnames[] = { | |
10129 | (char *) "self", NULL | |
10130 | }; | |
10131 | ||
10132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10135 | { |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
093d3ff1 RD |
10142 | { |
10143 | resultobj = SWIG_From_int((int)(result)); | |
10144 | } | |
d55e5bfc RD |
10145 | return resultobj; |
10146 | fail: | |
10147 | return NULL; | |
10148 | } | |
10149 | ||
10150 | ||
c32bde28 | 10151 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10152 | PyObject *resultobj; |
10153 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10154 | bool result; | |
10155 | PyObject * obj0 = 0 ; | |
10156 | char *kwnames[] = { | |
10157 | (char *) "self", NULL | |
10158 | }; | |
10159 | ||
10160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10163 | { |
10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10165 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
10166 | ||
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
10170 | { | |
10171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10172 | } | |
10173 | return resultobj; | |
10174 | fail: | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
c32bde28 | 10179 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10180 | PyObject *resultobj; |
10181 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10182 | bool result; | |
10183 | PyObject * obj0 = 0 ; | |
10184 | char *kwnames[] = { | |
10185 | (char *) "self", NULL | |
10186 | }; | |
10187 | ||
10188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10191 | { |
10192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10193 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
10194 | ||
10195 | wxPyEndAllowThreads(__tstate); | |
10196 | if (PyErr_Occurred()) SWIG_fail; | |
10197 | } | |
10198 | { | |
10199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10200 | } | |
10201 | return resultobj; | |
10202 | fail: | |
10203 | return NULL; | |
10204 | } | |
10205 | ||
10206 | ||
c32bde28 | 10207 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10208 | PyObject *resultobj; |
10209 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10210 | bool result; | |
10211 | PyObject * obj0 = 0 ; | |
10212 | char *kwnames[] = { | |
10213 | (char *) "self", NULL | |
10214 | }; | |
10215 | ||
10216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10219 | { |
10220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10221 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
10222 | ||
10223 | wxPyEndAllowThreads(__tstate); | |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
10225 | } | |
10226 | { | |
10227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10228 | } | |
10229 | return resultobj; | |
10230 | fail: | |
10231 | return NULL; | |
10232 | } | |
10233 | ||
10234 | ||
c32bde28 | 10235 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10236 | PyObject *resultobj; |
10237 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10238 | bool result; | |
10239 | PyObject * obj0 = 0 ; | |
10240 | char *kwnames[] = { | |
10241 | (char *) "self", NULL | |
10242 | }; | |
10243 | ||
10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
093d3ff1 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 = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
10250 | ||
10251 | wxPyEndAllowThreads(__tstate); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
10254 | { | |
10255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10256 | } | |
10257 | return resultobj; | |
10258 | fail: | |
10259 | return NULL; | |
10260 | } | |
10261 | ||
10262 | ||
c32bde28 | 10263 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10264 | PyObject *resultobj; |
10265 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10266 | long *arg2 = (long *) 0 ; | |
10267 | long *arg3 = (long *) 0 ; | |
10268 | long temp2 ; | |
c32bde28 | 10269 | int res2 = 0 ; |
d55e5bfc | 10270 | long temp3 ; |
c32bde28 | 10271 | int res3 = 0 ; |
d55e5bfc RD |
10272 | PyObject * obj0 = 0 ; |
10273 | char *kwnames[] = { | |
10274 | (char *) "self", NULL | |
10275 | }; | |
10276 | ||
c32bde28 RD |
10277 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10278 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 10279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
10280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10282 | { |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
10289 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
10290 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10291 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
10292 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10293 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
10294 | return resultobj; |
10295 | fail: | |
10296 | return NULL; | |
10297 | } | |
10298 | ||
10299 | ||
c32bde28 | 10300 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10301 | PyObject *resultobj; |
10302 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10303 | wxString result; | |
10304 | PyObject * obj0 = 0 ; | |
10305 | char *kwnames[] = { | |
10306 | (char *) "self", NULL | |
10307 | }; | |
10308 | ||
10309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10310 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10311 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10312 | { |
10313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10314 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
10315 | ||
10316 | wxPyEndAllowThreads(__tstate); | |
10317 | if (PyErr_Occurred()) SWIG_fail; | |
10318 | } | |
10319 | { | |
10320 | #if wxUSE_UNICODE | |
10321 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10322 | #else | |
10323 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10324 | #endif | |
10325 | } | |
10326 | return resultobj; | |
10327 | fail: | |
10328 | return NULL; | |
10329 | } | |
10330 | ||
10331 | ||
c32bde28 | 10332 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10333 | PyObject *resultobj; |
10334 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10335 | PyObject * obj0 = 0 ; | |
10336 | char *kwnames[] = { | |
10337 | (char *) "self", NULL | |
10338 | }; | |
10339 | ||
10340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10343 | { |
10344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10345 | (arg1)->Clear(); | |
10346 | ||
10347 | wxPyEndAllowThreads(__tstate); | |
10348 | if (PyErr_Occurred()) SWIG_fail; | |
10349 | } | |
10350 | Py_INCREF(Py_None); resultobj = Py_None; | |
10351 | return resultobj; | |
10352 | fail: | |
10353 | return NULL; | |
10354 | } | |
10355 | ||
10356 | ||
c32bde28 | 10357 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10358 | PyObject *resultobj; |
10359 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10360 | long arg2 ; | |
10361 | long arg3 ; | |
10362 | wxString *arg4 = 0 ; | |
ae8162c8 | 10363 | bool temp4 = false ; |
d55e5bfc RD |
10364 | PyObject * obj0 = 0 ; |
10365 | PyObject * obj1 = 0 ; | |
10366 | PyObject * obj2 = 0 ; | |
10367 | PyObject * obj3 = 0 ; | |
10368 | char *kwnames[] = { | |
10369 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
10370 | }; | |
10371 | ||
10372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
10373 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10375 | { | |
10376 | arg2 = (long)(SWIG_As_long(obj1)); | |
10377 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10378 | } | |
10379 | { | |
10380 | arg3 = (long)(SWIG_As_long(obj2)); | |
10381 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10382 | } | |
d55e5bfc RD |
10383 | { |
10384 | arg4 = wxString_in_helper(obj3); | |
10385 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 10386 | temp4 = true; |
d55e5bfc RD |
10387 | } |
10388 | { | |
10389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10390 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
10391 | ||
10392 | wxPyEndAllowThreads(__tstate); | |
10393 | if (PyErr_Occurred()) SWIG_fail; | |
10394 | } | |
10395 | Py_INCREF(Py_None); resultobj = Py_None; | |
10396 | { | |
10397 | if (temp4) | |
10398 | delete arg4; | |
10399 | } | |
10400 | return resultobj; | |
10401 | fail: | |
10402 | { | |
10403 | if (temp4) | |
10404 | delete arg4; | |
10405 | } | |
10406 | return NULL; | |
10407 | } | |
10408 | ||
10409 | ||
c32bde28 | 10410 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10411 | PyObject *resultobj; |
10412 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10413 | long arg2 ; | |
10414 | long arg3 ; | |
10415 | PyObject * obj0 = 0 ; | |
10416 | PyObject * obj1 = 0 ; | |
10417 | PyObject * obj2 = 0 ; | |
10418 | char *kwnames[] = { | |
10419 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10420 | }; | |
10421 | ||
10422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10425 | { | |
10426 | arg2 = (long)(SWIG_As_long(obj1)); | |
10427 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10428 | } | |
10429 | { | |
10430 | arg3 = (long)(SWIG_As_long(obj2)); | |
10431 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10432 | } | |
d55e5bfc RD |
10433 | { |
10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10435 | (arg1)->Remove(arg2,arg3); | |
10436 | ||
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
10440 | Py_INCREF(Py_None); resultobj = Py_None; | |
10441 | return resultobj; | |
10442 | fail: | |
10443 | return NULL; | |
10444 | } | |
10445 | ||
10446 | ||
c32bde28 | 10447 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10448 | PyObject *resultobj; |
10449 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10450 | wxString *arg2 = 0 ; | |
10451 | bool result; | |
ae8162c8 | 10452 | bool temp2 = false ; |
d55e5bfc RD |
10453 | PyObject * obj0 = 0 ; |
10454 | PyObject * obj1 = 0 ; | |
10455 | char *kwnames[] = { | |
10456 | (char *) "self",(char *) "file", NULL | |
10457 | }; | |
10458 | ||
10459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10462 | { |
10463 | arg2 = wxString_in_helper(obj1); | |
10464 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10465 | temp2 = true; |
d55e5bfc RD |
10466 | } |
10467 | { | |
10468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10469 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
10470 | ||
10471 | wxPyEndAllowThreads(__tstate); | |
10472 | if (PyErr_Occurred()) SWIG_fail; | |
10473 | } | |
10474 | { | |
10475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10476 | } | |
10477 | { | |
10478 | if (temp2) | |
10479 | delete arg2; | |
10480 | } | |
10481 | return resultobj; | |
10482 | fail: | |
10483 | { | |
10484 | if (temp2) | |
10485 | delete arg2; | |
10486 | } | |
10487 | return NULL; | |
10488 | } | |
10489 | ||
10490 | ||
c32bde28 | 10491 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10492 | PyObject *resultobj; |
10493 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10494 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10495 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10496 | bool result; | |
ae8162c8 | 10497 | bool temp2 = false ; |
d55e5bfc RD |
10498 | PyObject * obj0 = 0 ; |
10499 | PyObject * obj1 = 0 ; | |
10500 | char *kwnames[] = { | |
10501 | (char *) "self",(char *) "file", NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10507 | if (obj1) { |
10508 | { | |
10509 | arg2 = wxString_in_helper(obj1); | |
10510 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10511 | temp2 = true; |
d55e5bfc RD |
10512 | } |
10513 | } | |
10514 | { | |
10515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10516 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
10517 | ||
10518 | wxPyEndAllowThreads(__tstate); | |
10519 | if (PyErr_Occurred()) SWIG_fail; | |
10520 | } | |
10521 | { | |
10522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10523 | } | |
10524 | { | |
10525 | if (temp2) | |
10526 | delete arg2; | |
10527 | } | |
10528 | return resultobj; | |
10529 | fail: | |
10530 | { | |
10531 | if (temp2) | |
10532 | delete arg2; | |
10533 | } | |
10534 | return NULL; | |
10535 | } | |
10536 | ||
10537 | ||
c32bde28 | 10538 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10539 | PyObject *resultobj; |
10540 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10541 | PyObject * obj0 = 0 ; | |
10542 | char *kwnames[] = { | |
10543 | (char *) "self", NULL | |
10544 | }; | |
10545 | ||
10546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10549 | { |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10551 | (arg1)->MarkDirty(); | |
10552 | ||
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
10556 | Py_INCREF(Py_None); resultobj = Py_None; | |
10557 | return resultobj; | |
10558 | fail: | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
c32bde28 | 10563 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10564 | PyObject *resultobj; |
10565 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10566 | PyObject * obj0 = 0 ; | |
10567 | char *kwnames[] = { | |
10568 | (char *) "self", NULL | |
10569 | }; | |
10570 | ||
10571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10574 | { |
10575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10576 | (arg1)->DiscardEdits(); | |
10577 | ||
10578 | wxPyEndAllowThreads(__tstate); | |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
10580 | } | |
10581 | Py_INCREF(Py_None); resultobj = Py_None; | |
10582 | return resultobj; | |
10583 | fail: | |
10584 | return NULL; | |
10585 | } | |
10586 | ||
10587 | ||
c32bde28 | 10588 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10589 | PyObject *resultobj; |
10590 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10591 | unsigned long arg2 ; | |
10592 | PyObject * obj0 = 0 ; | |
10593 | PyObject * obj1 = 0 ; | |
10594 | char *kwnames[] = { | |
10595 | (char *) "self",(char *) "len", NULL | |
10596 | }; | |
10597 | ||
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10601 | { | |
10602 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
10603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10604 | } | |
d55e5bfc RD |
10605 | { |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | (arg1)->SetMaxLength(arg2); | |
10608 | ||
10609 | wxPyEndAllowThreads(__tstate); | |
10610 | if (PyErr_Occurred()) SWIG_fail; | |
10611 | } | |
10612 | Py_INCREF(Py_None); resultobj = Py_None; | |
10613 | return resultobj; | |
10614 | fail: | |
10615 | return NULL; | |
10616 | } | |
10617 | ||
10618 | ||
c32bde28 | 10619 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10620 | PyObject *resultobj; |
10621 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10622 | wxString *arg2 = 0 ; | |
ae8162c8 | 10623 | bool temp2 = false ; |
d55e5bfc RD |
10624 | PyObject * obj0 = 0 ; |
10625 | PyObject * obj1 = 0 ; | |
10626 | char *kwnames[] = { | |
10627 | (char *) "self",(char *) "text", NULL | |
10628 | }; | |
10629 | ||
10630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10633 | { |
10634 | arg2 = wxString_in_helper(obj1); | |
10635 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10636 | temp2 = true; |
d55e5bfc RD |
10637 | } |
10638 | { | |
10639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10640 | (arg1)->WriteText((wxString const &)*arg2); | |
10641 | ||
10642 | wxPyEndAllowThreads(__tstate); | |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
10644 | } | |
10645 | Py_INCREF(Py_None); resultobj = Py_None; | |
10646 | { | |
10647 | if (temp2) | |
10648 | delete arg2; | |
10649 | } | |
10650 | return resultobj; | |
10651 | fail: | |
10652 | { | |
10653 | if (temp2) | |
10654 | delete arg2; | |
10655 | } | |
10656 | return NULL; | |
10657 | } | |
10658 | ||
10659 | ||
c32bde28 | 10660 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10661 | PyObject *resultobj; |
10662 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10663 | wxString *arg2 = 0 ; | |
ae8162c8 | 10664 | bool temp2 = false ; |
d55e5bfc RD |
10665 | PyObject * obj0 = 0 ; |
10666 | PyObject * obj1 = 0 ; | |
10667 | char *kwnames[] = { | |
10668 | (char *) "self",(char *) "text", NULL | |
10669 | }; | |
10670 | ||
10671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10674 | { |
10675 | arg2 = wxString_in_helper(obj1); | |
10676 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10677 | temp2 = true; |
d55e5bfc RD |
10678 | } |
10679 | { | |
10680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10681 | (arg1)->AppendText((wxString const &)*arg2); | |
10682 | ||
10683 | wxPyEndAllowThreads(__tstate); | |
10684 | if (PyErr_Occurred()) SWIG_fail; | |
10685 | } | |
10686 | Py_INCREF(Py_None); resultobj = Py_None; | |
10687 | { | |
10688 | if (temp2) | |
10689 | delete arg2; | |
10690 | } | |
10691 | return resultobj; | |
10692 | fail: | |
10693 | { | |
10694 | if (temp2) | |
10695 | delete arg2; | |
10696 | } | |
10697 | return NULL; | |
10698 | } | |
10699 | ||
10700 | ||
c32bde28 | 10701 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10702 | PyObject *resultobj; |
10703 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10704 | wxKeyEvent *arg2 = 0 ; | |
10705 | bool result; | |
10706 | PyObject * obj0 = 0 ; | |
10707 | PyObject * obj1 = 0 ; | |
10708 | char *kwnames[] = { | |
10709 | (char *) "self",(char *) "event", NULL | |
10710 | }; | |
10711 | ||
10712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10715 | { | |
10716 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
10717 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10718 | if (arg2 == NULL) { | |
10719 | SWIG_null_ref("wxKeyEvent"); | |
10720 | } | |
10721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
10722 | } |
10723 | { | |
10724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10725 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
10726 | ||
10727 | wxPyEndAllowThreads(__tstate); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | { | |
10731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10732 | } | |
10733 | return resultobj; | |
10734 | fail: | |
10735 | return NULL; | |
10736 | } | |
10737 | ||
10738 | ||
c32bde28 | 10739 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10740 | PyObject *resultobj; |
10741 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10742 | long arg2 ; | |
10743 | long arg3 ; | |
10744 | wxTextAttr *arg4 = 0 ; | |
10745 | bool result; | |
10746 | PyObject * obj0 = 0 ; | |
10747 | PyObject * obj1 = 0 ; | |
10748 | PyObject * obj2 = 0 ; | |
10749 | PyObject * obj3 = 0 ; | |
10750 | char *kwnames[] = { | |
10751 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
10752 | }; | |
10753 | ||
10754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
10755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10757 | { | |
10758 | arg2 = (long)(SWIG_As_long(obj1)); | |
10759 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10760 | } | |
10761 | { | |
10762 | arg3 = (long)(SWIG_As_long(obj2)); | |
10763 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10764 | } | |
10765 | { | |
10766 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10767 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10768 | if (arg4 == NULL) { | |
10769 | SWIG_null_ref("wxTextAttr"); | |
10770 | } | |
10771 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
10772 | } |
10773 | { | |
10774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10775 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
10776 | ||
10777 | wxPyEndAllowThreads(__tstate); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | } | |
10780 | { | |
10781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10782 | } | |
10783 | return resultobj; | |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
c32bde28 | 10789 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10790 | PyObject *resultobj; |
10791 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10792 | long arg2 ; | |
10793 | wxTextAttr *arg3 = 0 ; | |
10794 | bool result; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | PyObject * obj1 = 0 ; | |
10797 | PyObject * obj2 = 0 ; | |
10798 | char *kwnames[] = { | |
10799 | (char *) "self",(char *) "position",(char *) "style", NULL | |
10800 | }; | |
10801 | ||
10802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10805 | { | |
10806 | arg2 = (long)(SWIG_As_long(obj1)); | |
10807 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10808 | } | |
10809 | { | |
10810 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10811 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10812 | if (arg3 == NULL) { | |
10813 | SWIG_null_ref("wxTextAttr"); | |
10814 | } | |
10815 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
10816 | } |
10817 | { | |
10818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10819 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
10820 | ||
10821 | wxPyEndAllowThreads(__tstate); | |
10822 | if (PyErr_Occurred()) SWIG_fail; | |
10823 | } | |
10824 | { | |
10825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10826 | } | |
10827 | return resultobj; | |
10828 | fail: | |
10829 | return NULL; | |
10830 | } | |
10831 | ||
10832 | ||
c32bde28 | 10833 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10834 | PyObject *resultobj; |
10835 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10836 | wxTextAttr *arg2 = 0 ; | |
10837 | bool result; | |
10838 | PyObject * obj0 = 0 ; | |
10839 | PyObject * obj1 = 0 ; | |
10840 | char *kwnames[] = { | |
10841 | (char *) "self",(char *) "style", NULL | |
10842 | }; | |
10843 | ||
10844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10847 | { | |
10848 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10849 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10850 | if (arg2 == NULL) { | |
10851 | SWIG_null_ref("wxTextAttr"); | |
10852 | } | |
10853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
10854 | } |
10855 | { | |
10856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10857 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
10858 | ||
10859 | wxPyEndAllowThreads(__tstate); | |
10860 | if (PyErr_Occurred()) SWIG_fail; | |
10861 | } | |
10862 | { | |
10863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10864 | } | |
10865 | return resultobj; | |
10866 | fail: | |
10867 | return NULL; | |
10868 | } | |
10869 | ||
10870 | ||
c32bde28 | 10871 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10872 | PyObject *resultobj; |
10873 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10874 | wxTextAttr *result; | |
10875 | PyObject * obj0 = 0 ; | |
10876 | char *kwnames[] = { | |
10877 | (char *) "self", NULL | |
10878 | }; | |
10879 | ||
10880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
10883 | { |
10884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10885 | { | |
10886 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
10887 | result = (wxTextAttr *) &_result_ref; | |
10888 | } | |
10889 | ||
10890 | wxPyEndAllowThreads(__tstate); | |
10891 | if (PyErr_Occurred()) SWIG_fail; | |
10892 | } | |
10893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
10894 | return resultobj; | |
10895 | fail: | |
10896 | return NULL; | |
10897 | } | |
10898 | ||
10899 | ||
c32bde28 | 10900 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10901 | PyObject *resultobj; |
10902 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10903 | long arg2 ; | |
10904 | long arg3 ; | |
10905 | long result; | |
10906 | PyObject * obj0 = 0 ; | |
10907 | PyObject * obj1 = 0 ; | |
10908 | PyObject * obj2 = 0 ; | |
10909 | char *kwnames[] = { | |
10910 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10911 | }; | |
10912 | ||
10913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
10914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10916 | { | |
10917 | arg2 = (long)(SWIG_As_long(obj1)); | |
10918 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10919 | } | |
10920 | { | |
10921 | arg3 = (long)(SWIG_As_long(obj2)); | |
10922 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10923 | } | |
d55e5bfc RD |
10924 | { |
10925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10926 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
10927 | ||
10928 | wxPyEndAllowThreads(__tstate); | |
10929 | if (PyErr_Occurred()) SWIG_fail; | |
10930 | } | |
093d3ff1 RD |
10931 | { |
10932 | resultobj = SWIG_From_long((long)(result)); | |
10933 | } | |
d55e5bfc RD |
10934 | return resultobj; |
10935 | fail: | |
10936 | return NULL; | |
10937 | } | |
10938 | ||
10939 | ||
c32bde28 | 10940 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10941 | PyObject *resultobj; |
10942 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10943 | long arg2 ; | |
10944 | long *arg3 = (long *) 0 ; | |
10945 | long *arg4 = (long *) 0 ; | |
10946 | long temp3 ; | |
c32bde28 | 10947 | int res3 = 0 ; |
d55e5bfc | 10948 | long temp4 ; |
c32bde28 | 10949 | int res4 = 0 ; |
d55e5bfc RD |
10950 | PyObject * obj0 = 0 ; |
10951 | PyObject * obj1 = 0 ; | |
10952 | char *kwnames[] = { | |
10953 | (char *) "self",(char *) "pos", NULL | |
10954 | }; | |
10955 | ||
c32bde28 RD |
10956 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
10957 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 10958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10959 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10960 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10961 | { | |
10962 | arg2 = (long)(SWIG_As_long(obj1)); | |
10963 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10964 | } | |
d55e5bfc RD |
10965 | { |
10966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10967 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
10968 | ||
10969 | wxPyEndAllowThreads(__tstate); | |
10970 | if (PyErr_Occurred()) SWIG_fail; | |
10971 | } | |
10972 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
10973 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
10974 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10975 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10976 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
10977 | return resultobj; |
10978 | fail: | |
10979 | return NULL; | |
10980 | } | |
10981 | ||
10982 | ||
c32bde28 | 10983 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10984 | PyObject *resultobj; |
10985 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10986 | long arg2 ; | |
10987 | PyObject * obj0 = 0 ; | |
10988 | PyObject * obj1 = 0 ; | |
10989 | char *kwnames[] = { | |
10990 | (char *) "self",(char *) "pos", NULL | |
10991 | }; | |
10992 | ||
10993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10994 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10996 | { | |
10997 | arg2 = (long)(SWIG_As_long(obj1)); | |
10998 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10999 | } | |
d55e5bfc RD |
11000 | { |
11001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11002 | (arg1)->ShowPosition(arg2); | |
11003 | ||
11004 | wxPyEndAllowThreads(__tstate); | |
11005 | if (PyErr_Occurred()) SWIG_fail; | |
11006 | } | |
11007 | Py_INCREF(Py_None); resultobj = Py_None; | |
11008 | return resultobj; | |
11009 | fail: | |
11010 | return NULL; | |
11011 | } | |
11012 | ||
11013 | ||
c32bde28 | 11014 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11015 | PyObject *resultobj; |
11016 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11017 | wxPoint *arg2 = 0 ; | |
11018 | long *arg3 = (long *) 0 ; | |
11019 | long *arg4 = (long *) 0 ; | |
093d3ff1 | 11020 | wxTextCtrlHitTestResult result; |
d55e5bfc RD |
11021 | wxPoint temp2 ; |
11022 | long temp3 ; | |
c32bde28 | 11023 | int res3 = 0 ; |
d55e5bfc | 11024 | long temp4 ; |
c32bde28 | 11025 | int res4 = 0 ; |
d55e5bfc RD |
11026 | PyObject * obj0 = 0 ; |
11027 | PyObject * obj1 = 0 ; | |
11028 | char *kwnames[] = { | |
11029 | (char *) "self",(char *) "pt", NULL | |
11030 | }; | |
11031 | ||
c32bde28 RD |
11032 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
11033 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc | 11034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11037 | { |
11038 | arg2 = &temp2; | |
11039 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11040 | } | |
11041 | { | |
11042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11043 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); |
d55e5bfc RD |
11044 | |
11045 | wxPyEndAllowThreads(__tstate); | |
11046 | if (PyErr_Occurred()) SWIG_fail; | |
11047 | } | |
093d3ff1 | 11048 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11049 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11050 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
11051 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
11052 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
11053 | return resultobj; |
11054 | fail: | |
11055 | return NULL; | |
11056 | } | |
11057 | ||
11058 | ||
c32bde28 | 11059 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
11060 | PyObject *resultobj; |
11061 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11062 | wxPoint *arg2 = 0 ; | |
11063 | long *arg3 = (long *) 0 ; | |
093d3ff1 | 11064 | wxTextCtrlHitTestResult result; |
4896ac9e RD |
11065 | wxPoint temp2 ; |
11066 | long temp3 ; | |
c32bde28 | 11067 | int res3 = 0 ; |
4896ac9e RD |
11068 | PyObject * obj0 = 0 ; |
11069 | PyObject * obj1 = 0 ; | |
11070 | char *kwnames[] = { | |
11071 | (char *) "self",(char *) "pt", NULL | |
11072 | }; | |
11073 | ||
c32bde28 | 11074 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e | 11075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4896ac9e RD |
11078 | { |
11079 | arg2 = &temp2; | |
11080 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11081 | } | |
11082 | { | |
11083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11084 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); |
4896ac9e RD |
11085 | |
11086 | wxPyEndAllowThreads(__tstate); | |
11087 | if (PyErr_Occurred()) SWIG_fail; | |
11088 | } | |
093d3ff1 | 11089 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11090 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11091 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
11092 | return resultobj; |
11093 | fail: | |
11094 | return NULL; | |
11095 | } | |
11096 | ||
11097 | ||
c32bde28 | 11098 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11099 | PyObject *resultobj; |
11100 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11101 | PyObject * obj0 = 0 ; | |
11102 | char *kwnames[] = { | |
11103 | (char *) "self", NULL | |
11104 | }; | |
11105 | ||
11106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11107 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11108 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11109 | { |
11110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11111 | (arg1)->Copy(); | |
11112 | ||
11113 | wxPyEndAllowThreads(__tstate); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
11116 | Py_INCREF(Py_None); resultobj = Py_None; | |
11117 | return resultobj; | |
11118 | fail: | |
11119 | return NULL; | |
11120 | } | |
11121 | ||
11122 | ||
c32bde28 | 11123 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11124 | PyObject *resultobj; |
11125 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11126 | PyObject * obj0 = 0 ; | |
11127 | char *kwnames[] = { | |
11128 | (char *) "self", NULL | |
11129 | }; | |
11130 | ||
11131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11134 | { |
11135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11136 | (arg1)->Cut(); | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
11141 | Py_INCREF(Py_None); resultobj = Py_None; | |
11142 | return resultobj; | |
11143 | fail: | |
11144 | return NULL; | |
11145 | } | |
11146 | ||
11147 | ||
c32bde28 | 11148 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11149 | PyObject *resultobj; |
11150 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11151 | PyObject * obj0 = 0 ; | |
11152 | char *kwnames[] = { | |
11153 | (char *) "self", NULL | |
11154 | }; | |
11155 | ||
11156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11159 | { |
11160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11161 | (arg1)->Paste(); | |
11162 | ||
11163 | wxPyEndAllowThreads(__tstate); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | } | |
11166 | Py_INCREF(Py_None); resultobj = Py_None; | |
11167 | return resultobj; | |
11168 | fail: | |
11169 | return NULL; | |
11170 | } | |
11171 | ||
11172 | ||
c32bde28 | 11173 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11174 | PyObject *resultobj; |
11175 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11176 | bool result; | |
11177 | PyObject * obj0 = 0 ; | |
11178 | char *kwnames[] = { | |
11179 | (char *) "self", NULL | |
11180 | }; | |
11181 | ||
11182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11183 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11184 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11185 | { |
11186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11187 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
11188 | ||
11189 | wxPyEndAllowThreads(__tstate); | |
11190 | if (PyErr_Occurred()) SWIG_fail; | |
11191 | } | |
11192 | { | |
11193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11194 | } | |
11195 | return resultobj; | |
11196 | fail: | |
11197 | return NULL; | |
11198 | } | |
11199 | ||
11200 | ||
c32bde28 | 11201 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11202 | PyObject *resultobj; |
11203 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11204 | bool result; | |
11205 | PyObject * obj0 = 0 ; | |
11206 | char *kwnames[] = { | |
11207 | (char *) "self", NULL | |
11208 | }; | |
11209 | ||
11210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11213 | { |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11215 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
11216 | ||
11217 | wxPyEndAllowThreads(__tstate); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | { | |
11221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11222 | } | |
11223 | return resultobj; | |
11224 | fail: | |
11225 | return NULL; | |
11226 | } | |
11227 | ||
11228 | ||
c32bde28 | 11229 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11230 | PyObject *resultobj; |
11231 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11232 | bool result; | |
11233 | PyObject * obj0 = 0 ; | |
11234 | char *kwnames[] = { | |
11235 | (char *) "self", NULL | |
11236 | }; | |
11237 | ||
11238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11241 | { |
11242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11243 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
11244 | ||
11245 | wxPyEndAllowThreads(__tstate); | |
11246 | if (PyErr_Occurred()) SWIG_fail; | |
11247 | } | |
11248 | { | |
11249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11250 | } | |
11251 | return resultobj; | |
11252 | fail: | |
11253 | return NULL; | |
11254 | } | |
11255 | ||
11256 | ||
c32bde28 | 11257 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11258 | PyObject *resultobj; |
11259 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11260 | PyObject * obj0 = 0 ; | |
11261 | char *kwnames[] = { | |
11262 | (char *) "self", NULL | |
11263 | }; | |
11264 | ||
11265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11268 | { |
11269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11270 | (arg1)->Undo(); | |
11271 | ||
11272 | wxPyEndAllowThreads(__tstate); | |
11273 | if (PyErr_Occurred()) SWIG_fail; | |
11274 | } | |
11275 | Py_INCREF(Py_None); resultobj = Py_None; | |
11276 | return resultobj; | |
11277 | fail: | |
11278 | return NULL; | |
11279 | } | |
11280 | ||
11281 | ||
c32bde28 | 11282 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11283 | PyObject *resultobj; |
11284 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11285 | PyObject * obj0 = 0 ; | |
11286 | char *kwnames[] = { | |
11287 | (char *) "self", NULL | |
11288 | }; | |
11289 | ||
11290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11293 | { |
11294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11295 | (arg1)->Redo(); | |
11296 | ||
11297 | wxPyEndAllowThreads(__tstate); | |
11298 | if (PyErr_Occurred()) SWIG_fail; | |
11299 | } | |
11300 | Py_INCREF(Py_None); resultobj = Py_None; | |
11301 | return resultobj; | |
11302 | fail: | |
11303 | return NULL; | |
11304 | } | |
11305 | ||
11306 | ||
c32bde28 | 11307 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11308 | PyObject *resultobj; |
11309 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11310 | bool result; | |
11311 | PyObject * obj0 = 0 ; | |
11312 | char *kwnames[] = { | |
11313 | (char *) "self", NULL | |
11314 | }; | |
11315 | ||
11316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11319 | { |
11320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11321 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
11322 | ||
11323 | wxPyEndAllowThreads(__tstate); | |
11324 | if (PyErr_Occurred()) SWIG_fail; | |
11325 | } | |
11326 | { | |
11327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11328 | } | |
11329 | return resultobj; | |
11330 | fail: | |
11331 | return NULL; | |
11332 | } | |
11333 | ||
11334 | ||
c32bde28 | 11335 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11336 | PyObject *resultobj; |
11337 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11338 | bool result; | |
11339 | PyObject * obj0 = 0 ; | |
11340 | char *kwnames[] = { | |
11341 | (char *) "self", NULL | |
11342 | }; | |
11343 | ||
11344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11347 | { |
11348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11349 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
11350 | ||
11351 | wxPyEndAllowThreads(__tstate); | |
11352 | if (PyErr_Occurred()) SWIG_fail; | |
11353 | } | |
11354 | { | |
11355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11356 | } | |
11357 | return resultobj; | |
11358 | fail: | |
11359 | return NULL; | |
11360 | } | |
11361 | ||
11362 | ||
c32bde28 | 11363 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11364 | PyObject *resultobj; |
11365 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11366 | long arg2 ; | |
11367 | PyObject * obj0 = 0 ; | |
11368 | PyObject * obj1 = 0 ; | |
11369 | char *kwnames[] = { | |
11370 | (char *) "self",(char *) "pos", NULL | |
11371 | }; | |
11372 | ||
11373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11376 | { | |
11377 | arg2 = (long)(SWIG_As_long(obj1)); | |
11378 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11379 | } | |
d55e5bfc RD |
11380 | { |
11381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11382 | (arg1)->SetInsertionPoint(arg2); | |
11383 | ||
11384 | wxPyEndAllowThreads(__tstate); | |
11385 | if (PyErr_Occurred()) SWIG_fail; | |
11386 | } | |
11387 | Py_INCREF(Py_None); resultobj = Py_None; | |
11388 | return resultobj; | |
11389 | fail: | |
11390 | return NULL; | |
11391 | } | |
11392 | ||
11393 | ||
c32bde28 | 11394 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11395 | PyObject *resultobj; |
11396 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11397 | PyObject * obj0 = 0 ; | |
11398 | char *kwnames[] = { | |
11399 | (char *) "self", NULL | |
11400 | }; | |
11401 | ||
11402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11405 | { |
11406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11407 | (arg1)->SetInsertionPointEnd(); | |
11408 | ||
11409 | wxPyEndAllowThreads(__tstate); | |
11410 | if (PyErr_Occurred()) SWIG_fail; | |
11411 | } | |
11412 | Py_INCREF(Py_None); resultobj = Py_None; | |
11413 | return resultobj; | |
11414 | fail: | |
11415 | return NULL; | |
11416 | } | |
11417 | ||
11418 | ||
c32bde28 | 11419 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11420 | PyObject *resultobj; |
11421 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11422 | long result; | |
11423 | PyObject * obj0 = 0 ; | |
11424 | char *kwnames[] = { | |
11425 | (char *) "self", NULL | |
11426 | }; | |
11427 | ||
11428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11431 | { |
11432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11433 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
11434 | ||
11435 | wxPyEndAllowThreads(__tstate); | |
11436 | if (PyErr_Occurred()) SWIG_fail; | |
11437 | } | |
093d3ff1 RD |
11438 | { |
11439 | resultobj = SWIG_From_long((long)(result)); | |
11440 | } | |
d55e5bfc RD |
11441 | return resultobj; |
11442 | fail: | |
11443 | return NULL; | |
11444 | } | |
11445 | ||
11446 | ||
c32bde28 | 11447 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11448 | PyObject *resultobj; |
11449 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11450 | long result; | |
11451 | PyObject * obj0 = 0 ; | |
11452 | char *kwnames[] = { | |
11453 | (char *) "self", NULL | |
11454 | }; | |
11455 | ||
11456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11459 | { |
11460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11461 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
11462 | ||
11463 | wxPyEndAllowThreads(__tstate); | |
11464 | if (PyErr_Occurred()) SWIG_fail; | |
11465 | } | |
093d3ff1 RD |
11466 | { |
11467 | resultobj = SWIG_From_long((long)(result)); | |
11468 | } | |
d55e5bfc RD |
11469 | return resultobj; |
11470 | fail: | |
11471 | return NULL; | |
11472 | } | |
11473 | ||
11474 | ||
c32bde28 | 11475 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11476 | PyObject *resultobj; |
11477 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11478 | long arg2 ; | |
11479 | long arg3 ; | |
11480 | PyObject * obj0 = 0 ; | |
11481 | PyObject * obj1 = 0 ; | |
11482 | PyObject * obj2 = 0 ; | |
11483 | char *kwnames[] = { | |
11484 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11485 | }; | |
11486 | ||
11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11490 | { | |
11491 | arg2 = (long)(SWIG_As_long(obj1)); | |
11492 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11493 | } | |
11494 | { | |
11495 | arg3 = (long)(SWIG_As_long(obj2)); | |
11496 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11497 | } | |
d55e5bfc RD |
11498 | { |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | (arg1)->SetSelection(arg2,arg3); | |
11501 | ||
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | Py_INCREF(Py_None); resultobj = Py_None; | |
11506 | return resultobj; | |
11507 | fail: | |
11508 | return NULL; | |
11509 | } | |
11510 | ||
11511 | ||
c32bde28 | 11512 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11513 | PyObject *resultobj; |
11514 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11515 | PyObject * obj0 = 0 ; | |
11516 | char *kwnames[] = { | |
11517 | (char *) "self", NULL | |
11518 | }; | |
11519 | ||
11520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11523 | { |
11524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11525 | (arg1)->SelectAll(); | |
11526 | ||
11527 | wxPyEndAllowThreads(__tstate); | |
11528 | if (PyErr_Occurred()) SWIG_fail; | |
11529 | } | |
11530 | Py_INCREF(Py_None); resultobj = Py_None; | |
11531 | return resultobj; | |
11532 | fail: | |
11533 | return NULL; | |
11534 | } | |
11535 | ||
11536 | ||
c32bde28 | 11537 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11538 | PyObject *resultobj; |
11539 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11540 | bool arg2 ; | |
11541 | PyObject * obj0 = 0 ; | |
11542 | PyObject * obj1 = 0 ; | |
11543 | char *kwnames[] = { | |
11544 | (char *) "self",(char *) "editable", NULL | |
11545 | }; | |
11546 | ||
11547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11550 | { | |
11551 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
11552 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11553 | } | |
d55e5bfc RD |
11554 | { |
11555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11556 | (arg1)->SetEditable(arg2); | |
11557 | ||
11558 | wxPyEndAllowThreads(__tstate); | |
11559 | if (PyErr_Occurred()) SWIG_fail; | |
11560 | } | |
11561 | Py_INCREF(Py_None); resultobj = Py_None; | |
11562 | return resultobj; | |
11563 | fail: | |
11564 | return NULL; | |
11565 | } | |
11566 | ||
11567 | ||
c32bde28 | 11568 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11569 | PyObject *resultobj; |
11570 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
ae8162c8 | 11571 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11572 | bool result; |
11573 | PyObject * obj0 = 0 ; | |
11574 | PyObject * obj1 = 0 ; | |
11575 | char *kwnames[] = { | |
11576 | (char *) "self",(char *) "show", NULL | |
11577 | }; | |
11578 | ||
11579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11582 | if (obj1) { |
093d3ff1 RD |
11583 | { |
11584 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
11585 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11586 | } | |
d55e5bfc RD |
11587 | } |
11588 | { | |
11589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11590 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
11591 | ||
11592 | wxPyEndAllowThreads(__tstate); | |
11593 | if (PyErr_Occurred()) SWIG_fail; | |
11594 | } | |
11595 | { | |
11596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11597 | } | |
11598 | return resultobj; | |
11599 | fail: | |
11600 | return NULL; | |
11601 | } | |
11602 | ||
11603 | ||
c32bde28 | 11604 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11605 | PyObject *resultobj; |
11606 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11607 | bool result; | |
11608 | PyObject * obj0 = 0 ; | |
11609 | char *kwnames[] = { | |
11610 | (char *) "self", NULL | |
11611 | }; | |
11612 | ||
11613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11616 | { |
11617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11618 | result = (bool)(arg1)->HideNativeCaret(); | |
11619 | ||
11620 | wxPyEndAllowThreads(__tstate); | |
11621 | if (PyErr_Occurred()) SWIG_fail; | |
11622 | } | |
11623 | { | |
11624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11625 | } | |
11626 | return resultobj; | |
11627 | fail: | |
11628 | return NULL; | |
11629 | } | |
11630 | ||
11631 | ||
c32bde28 | 11632 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11633 | PyObject *resultobj; |
11634 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11635 | wxString *arg2 = 0 ; | |
ae8162c8 | 11636 | bool temp2 = false ; |
d55e5bfc RD |
11637 | PyObject * obj0 = 0 ; |
11638 | PyObject * obj1 = 0 ; | |
11639 | char *kwnames[] = { | |
11640 | (char *) "self",(char *) "text", NULL | |
11641 | }; | |
11642 | ||
11643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11646 | { |
11647 | arg2 = wxString_in_helper(obj1); | |
11648 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11649 | temp2 = true; |
d55e5bfc RD |
11650 | } |
11651 | { | |
11652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11653 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
11654 | ||
11655 | wxPyEndAllowThreads(__tstate); | |
11656 | if (PyErr_Occurred()) SWIG_fail; | |
11657 | } | |
11658 | Py_INCREF(Py_None); resultobj = Py_None; | |
11659 | { | |
11660 | if (temp2) | |
11661 | delete arg2; | |
11662 | } | |
11663 | return resultobj; | |
11664 | fail: | |
11665 | { | |
11666 | if (temp2) | |
11667 | delete arg2; | |
11668 | } | |
11669 | return NULL; | |
11670 | } | |
11671 | ||
11672 | ||
c32bde28 | 11673 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11674 | PyObject *resultobj; |
11675 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11676 | long arg2 ; | |
11677 | long arg3 ; | |
11678 | wxString result; | |
11679 | PyObject * obj0 = 0 ; | |
11680 | PyObject * obj1 = 0 ; | |
11681 | PyObject * obj2 = 0 ; | |
11682 | char *kwnames[] = { | |
11683 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11684 | }; | |
11685 | ||
11686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
11687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11689 | { | |
11690 | arg2 = (long)(SWIG_As_long(obj1)); | |
11691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11692 | } | |
11693 | { | |
11694 | arg3 = (long)(SWIG_As_long(obj2)); | |
11695 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11696 | } | |
d55e5bfc RD |
11697 | { |
11698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11699 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
11700 | ||
11701 | wxPyEndAllowThreads(__tstate); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
11704 | { | |
11705 | #if wxUSE_UNICODE | |
11706 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11707 | #else | |
11708 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11709 | #endif | |
11710 | } | |
11711 | return resultobj; | |
11712 | fail: | |
11713 | return NULL; | |
11714 | } | |
11715 | ||
11716 | ||
c32bde28 | 11717 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 11718 | PyObject *resultobj; |
093d3ff1 | 11719 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
11720 | wxVisualAttributes result; |
11721 | PyObject * obj0 = 0 ; | |
11722 | char *kwnames[] = { | |
11723 | (char *) "variant", NULL | |
11724 | }; | |
11725 | ||
11726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11727 | if (obj0) { | |
093d3ff1 RD |
11728 | { |
11729 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
11730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11731 | } | |
f20a2e1f RD |
11732 | } |
11733 | { | |
19272049 | 11734 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
11735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11736 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11737 | ||
11738 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11739 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
11740 | } |
11741 | { | |
11742 | wxVisualAttributes * resultptr; | |
093d3ff1 | 11743 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
11744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
11745 | } | |
11746 | return resultobj; | |
11747 | fail: | |
11748 | return NULL; | |
11749 | } | |
11750 | ||
11751 | ||
c32bde28 | 11752 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11753 | PyObject *obj; |
11754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11755 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
11756 | Py_INCREF(obj); | |
11757 | return Py_BuildValue((char *)""); | |
11758 | } | |
c32bde28 | 11759 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11760 | PyObject *resultobj; |
11761 | int arg1 ; | |
11762 | wxMouseEvent *arg2 = 0 ; | |
11763 | long arg3 ; | |
11764 | long arg4 ; | |
11765 | wxTextUrlEvent *result; | |
11766 | PyObject * obj0 = 0 ; | |
11767 | PyObject * obj1 = 0 ; | |
11768 | PyObject * obj2 = 0 ; | |
11769 | PyObject * obj3 = 0 ; | |
11770 | char *kwnames[] = { | |
11771 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
11772 | }; | |
11773 | ||
11774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
11775 | { |
11776 | arg1 = (int)(SWIG_As_int(obj0)); | |
11777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11778 | } | |
11779 | { | |
11780 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); | |
11781 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11782 | if (arg2 == NULL) { | |
11783 | SWIG_null_ref("wxMouseEvent"); | |
11784 | } | |
11785 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11786 | } | |
11787 | { | |
11788 | arg3 = (long)(SWIG_As_long(obj2)); | |
11789 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11790 | } | |
11791 | { | |
11792 | arg4 = (long)(SWIG_As_long(obj3)); | |
11793 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc | 11794 | } |
d55e5bfc RD |
11795 | { |
11796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11797 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
11798 | ||
11799 | wxPyEndAllowThreads(__tstate); | |
11800 | if (PyErr_Occurred()) SWIG_fail; | |
11801 | } | |
11802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
11803 | return resultobj; | |
11804 | fail: | |
11805 | return NULL; | |
11806 | } | |
11807 | ||
11808 | ||
c32bde28 | 11809 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11810 | PyObject *resultobj; |
11811 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11812 | wxMouseEvent *result; | |
11813 | PyObject * obj0 = 0 ; | |
11814 | char *kwnames[] = { | |
11815 | (char *) "self", NULL | |
11816 | }; | |
11817 | ||
11818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11821 | { |
11822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11823 | { | |
11824 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
11825 | result = (wxMouseEvent *) &_result_ref; | |
11826 | } | |
11827 | ||
11828 | wxPyEndAllowThreads(__tstate); | |
11829 | if (PyErr_Occurred()) SWIG_fail; | |
11830 | } | |
11831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
11832 | return resultobj; | |
11833 | fail: | |
11834 | return NULL; | |
11835 | } | |
11836 | ||
11837 | ||
c32bde28 | 11838 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11839 | PyObject *resultobj; |
11840 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11841 | long result; | |
11842 | PyObject * obj0 = 0 ; | |
11843 | char *kwnames[] = { | |
11844 | (char *) "self", NULL | |
11845 | }; | |
11846 | ||
11847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11850 | { |
11851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11852 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
11853 | ||
11854 | wxPyEndAllowThreads(__tstate); | |
11855 | if (PyErr_Occurred()) SWIG_fail; | |
11856 | } | |
093d3ff1 RD |
11857 | { |
11858 | resultobj = SWIG_From_long((long)(result)); | |
11859 | } | |
d55e5bfc RD |
11860 | return resultobj; |
11861 | fail: | |
11862 | return NULL; | |
11863 | } | |
11864 | ||
11865 | ||
c32bde28 | 11866 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11867 | PyObject *resultobj; |
11868 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11869 | long result; | |
11870 | PyObject * obj0 = 0 ; | |
11871 | char *kwnames[] = { | |
11872 | (char *) "self", NULL | |
11873 | }; | |
11874 | ||
11875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
11878 | { |
11879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11880 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
11881 | ||
11882 | wxPyEndAllowThreads(__tstate); | |
11883 | if (PyErr_Occurred()) SWIG_fail; | |
11884 | } | |
093d3ff1 RD |
11885 | { |
11886 | resultobj = SWIG_From_long((long)(result)); | |
11887 | } | |
d55e5bfc RD |
11888 | return resultobj; |
11889 | fail: | |
11890 | return NULL; | |
11891 | } | |
11892 | ||
11893 | ||
c32bde28 | 11894 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11895 | PyObject *obj; |
11896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11897 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
11898 | Py_INCREF(obj); | |
11899 | return Py_BuildValue((char *)""); | |
11900 | } | |
c32bde28 | 11901 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
d55e5bfc RD |
11902 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
11903 | return 1; | |
11904 | } | |
11905 | ||
11906 | ||
093d3ff1 | 11907 | static PyObject *_wrap_ScrollBarNameStr_get(void) { |
d55e5bfc RD |
11908 | PyObject *pyobj; |
11909 | ||
11910 | { | |
11911 | #if wxUSE_UNICODE | |
11912 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11913 | #else | |
11914 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11915 | #endif | |
11916 | } | |
11917 | return pyobj; | |
11918 | } | |
11919 | ||
11920 | ||
c32bde28 | 11921 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11922 | PyObject *resultobj; |
11923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11924 | int arg2 = (int) -1 ; | |
11925 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
11926 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11927 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11928 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11929 | long arg5 = (long) wxSB_HORIZONTAL ; | |
11930 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
11931 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
11932 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
11933 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11934 | wxScrollBar *result; | |
11935 | wxPoint temp3 ; | |
11936 | wxSize temp4 ; | |
ae8162c8 | 11937 | bool temp7 = false ; |
d55e5bfc RD |
11938 | PyObject * obj0 = 0 ; |
11939 | PyObject * obj1 = 0 ; | |
11940 | PyObject * obj2 = 0 ; | |
11941 | PyObject * obj3 = 0 ; | |
11942 | PyObject * obj4 = 0 ; | |
11943 | PyObject * obj5 = 0 ; | |
11944 | PyObject * obj6 = 0 ; | |
11945 | char *kwnames[] = { | |
11946 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11947 | }; | |
11948 | ||
11949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
11950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
11951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 11952 | if (obj1) { |
093d3ff1 RD |
11953 | { |
11954 | arg2 = (int)(SWIG_As_int(obj1)); | |
11955 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11956 | } | |
d55e5bfc RD |
11957 | } |
11958 | if (obj2) { | |
11959 | { | |
11960 | arg3 = &temp3; | |
11961 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11962 | } | |
11963 | } | |
11964 | if (obj3) { | |
11965 | { | |
11966 | arg4 = &temp4; | |
11967 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11968 | } | |
11969 | } | |
11970 | if (obj4) { | |
093d3ff1 RD |
11971 | { |
11972 | arg5 = (long)(SWIG_As_long(obj4)); | |
11973 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11974 | } | |
d55e5bfc RD |
11975 | } |
11976 | if (obj5) { | |
093d3ff1 RD |
11977 | { |
11978 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
11979 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11980 | if (arg6 == NULL) { | |
11981 | SWIG_null_ref("wxValidator"); | |
11982 | } | |
11983 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
11984 | } |
11985 | } | |
11986 | if (obj6) { | |
11987 | { | |
11988 | arg7 = wxString_in_helper(obj6); | |
11989 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 11990 | temp7 = true; |
d55e5bfc RD |
11991 | } |
11992 | } | |
11993 | { | |
0439c23b | 11994 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11996 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
11997 | ||
11998 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11999 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12000 | } |
12001 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
12002 | { | |
12003 | if (temp7) | |
12004 | delete arg7; | |
12005 | } | |
12006 | return resultobj; | |
12007 | fail: | |
12008 | { | |
12009 | if (temp7) | |
12010 | delete arg7; | |
12011 | } | |
12012 | return NULL; | |
12013 | } | |
12014 | ||
12015 | ||
c32bde28 | 12016 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12017 | PyObject *resultobj; |
12018 | wxScrollBar *result; | |
12019 | char *kwnames[] = { | |
12020 | NULL | |
12021 | }; | |
12022 | ||
12023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
12024 | { | |
0439c23b | 12025 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12027 | result = (wxScrollBar *)new wxScrollBar(); | |
12028 | ||
12029 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12030 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12031 | } |
12032 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
12033 | return resultobj; | |
12034 | fail: | |
12035 | return NULL; | |
12036 | } | |
12037 | ||
12038 | ||
c32bde28 | 12039 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12040 | PyObject *resultobj; |
12041 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12042 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12043 | int arg3 = (int) -1 ; | |
12044 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12045 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12046 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12047 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12048 | long arg6 = (long) wxSB_HORIZONTAL ; | |
12049 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12050 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12051 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
12052 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12053 | bool result; | |
12054 | wxPoint temp4 ; | |
12055 | wxSize temp5 ; | |
ae8162c8 | 12056 | bool temp8 = false ; |
d55e5bfc RD |
12057 | PyObject * obj0 = 0 ; |
12058 | PyObject * obj1 = 0 ; | |
12059 | PyObject * obj2 = 0 ; | |
12060 | PyObject * obj3 = 0 ; | |
12061 | PyObject * obj4 = 0 ; | |
12062 | PyObject * obj5 = 0 ; | |
12063 | PyObject * obj6 = 0 ; | |
12064 | PyObject * obj7 = 0 ; | |
12065 | char *kwnames[] = { | |
12066 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12067 | }; | |
12068 | ||
12069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
093d3ff1 RD |
12070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12072 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 12074 | if (obj2) { |
093d3ff1 RD |
12075 | { |
12076 | arg3 = (int)(SWIG_As_int(obj2)); | |
12077 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12078 | } | |
d55e5bfc RD |
12079 | } |
12080 | if (obj3) { | |
12081 | { | |
12082 | arg4 = &temp4; | |
12083 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12084 | } | |
12085 | } | |
12086 | if (obj4) { | |
12087 | { | |
12088 | arg5 = &temp5; | |
12089 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12090 | } | |
12091 | } | |
12092 | if (obj5) { | |
093d3ff1 RD |
12093 | { |
12094 | arg6 = (long)(SWIG_As_long(obj5)); | |
12095 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12096 | } | |
d55e5bfc RD |
12097 | } |
12098 | if (obj6) { | |
093d3ff1 RD |
12099 | { |
12100 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
12101 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12102 | if (arg7 == NULL) { | |
12103 | SWIG_null_ref("wxValidator"); | |
12104 | } | |
12105 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
12106 | } |
12107 | } | |
12108 | if (obj7) { | |
12109 | { | |
12110 | arg8 = wxString_in_helper(obj7); | |
12111 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 12112 | temp8 = true; |
d55e5bfc RD |
12113 | } |
12114 | } | |
12115 | { | |
12116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12117 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12118 | ||
12119 | wxPyEndAllowThreads(__tstate); | |
12120 | if (PyErr_Occurred()) SWIG_fail; | |
12121 | } | |
12122 | { | |
12123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12124 | } | |
12125 | { | |
12126 | if (temp8) | |
12127 | delete arg8; | |
12128 | } | |
12129 | return resultobj; | |
12130 | fail: | |
12131 | { | |
12132 | if (temp8) | |
12133 | delete arg8; | |
12134 | } | |
12135 | return NULL; | |
12136 | } | |
12137 | ||
12138 | ||
c32bde28 | 12139 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12140 | PyObject *resultobj; |
12141 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12142 | int result; | |
12143 | PyObject * obj0 = 0 ; | |
12144 | char *kwnames[] = { | |
12145 | (char *) "self", NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12151 | { |
12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12153 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
12154 | ||
12155 | wxPyEndAllowThreads(__tstate); | |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
12157 | } | |
093d3ff1 RD |
12158 | { |
12159 | resultobj = SWIG_From_int((int)(result)); | |
12160 | } | |
d55e5bfc RD |
12161 | return resultobj; |
12162 | fail: | |
12163 | return NULL; | |
12164 | } | |
12165 | ||
12166 | ||
c32bde28 | 12167 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12168 | PyObject *resultobj; |
12169 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12170 | int result; | |
12171 | PyObject * obj0 = 0 ; | |
12172 | char *kwnames[] = { | |
12173 | (char *) "self", NULL | |
12174 | }; | |
12175 | ||
12176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12179 | { |
12180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12181 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
12182 | ||
12183 | wxPyEndAllowThreads(__tstate); | |
12184 | if (PyErr_Occurred()) SWIG_fail; | |
12185 | } | |
093d3ff1 RD |
12186 | { |
12187 | resultobj = SWIG_From_int((int)(result)); | |
12188 | } | |
d55e5bfc RD |
12189 | return resultobj; |
12190 | fail: | |
12191 | return NULL; | |
12192 | } | |
12193 | ||
12194 | ||
c32bde28 | 12195 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12196 | PyObject *resultobj; |
12197 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12198 | int result; | |
12199 | PyObject * obj0 = 0 ; | |
12200 | char *kwnames[] = { | |
12201 | (char *) "self", NULL | |
12202 | }; | |
12203 | ||
12204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12205 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12207 | { |
12208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12209 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
12210 | ||
12211 | wxPyEndAllowThreads(__tstate); | |
12212 | if (PyErr_Occurred()) SWIG_fail; | |
12213 | } | |
093d3ff1 RD |
12214 | { |
12215 | resultobj = SWIG_From_int((int)(result)); | |
12216 | } | |
d55e5bfc RD |
12217 | return resultobj; |
12218 | fail: | |
12219 | return NULL; | |
12220 | } | |
12221 | ||
12222 | ||
c32bde28 | 12223 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12224 | PyObject *resultobj; |
12225 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12226 | int result; | |
12227 | PyObject * obj0 = 0 ; | |
12228 | char *kwnames[] = { | |
12229 | (char *) "self", NULL | |
12230 | }; | |
12231 | ||
12232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12233 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12234 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12235 | { |
12236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12237 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
12238 | ||
12239 | wxPyEndAllowThreads(__tstate); | |
12240 | if (PyErr_Occurred()) SWIG_fail; | |
12241 | } | |
093d3ff1 RD |
12242 | { |
12243 | resultobj = SWIG_From_int((int)(result)); | |
12244 | } | |
d55e5bfc RD |
12245 | return resultobj; |
12246 | fail: | |
12247 | return NULL; | |
12248 | } | |
12249 | ||
12250 | ||
c32bde28 | 12251 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12252 | PyObject *resultobj; |
12253 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12254 | bool result; | |
12255 | PyObject * obj0 = 0 ; | |
12256 | char *kwnames[] = { | |
12257 | (char *) "self", NULL | |
12258 | }; | |
12259 | ||
12260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12263 | { |
12264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12265 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
12266 | ||
12267 | wxPyEndAllowThreads(__tstate); | |
12268 | if (PyErr_Occurred()) SWIG_fail; | |
12269 | } | |
12270 | { | |
12271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12272 | } | |
12273 | return resultobj; | |
12274 | fail: | |
12275 | return NULL; | |
12276 | } | |
12277 | ||
12278 | ||
c32bde28 | 12279 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12280 | PyObject *resultobj; |
12281 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12282 | int arg2 ; | |
12283 | PyObject * obj0 = 0 ; | |
12284 | PyObject * obj1 = 0 ; | |
12285 | char *kwnames[] = { | |
12286 | (char *) "self",(char *) "viewStart", NULL | |
12287 | }; | |
12288 | ||
12289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12292 | { | |
12293 | arg2 = (int)(SWIG_As_int(obj1)); | |
12294 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12295 | } | |
d55e5bfc RD |
12296 | { |
12297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12298 | (arg1)->SetThumbPosition(arg2); | |
12299 | ||
12300 | wxPyEndAllowThreads(__tstate); | |
12301 | if (PyErr_Occurred()) SWIG_fail; | |
12302 | } | |
12303 | Py_INCREF(Py_None); resultobj = Py_None; | |
12304 | return resultobj; | |
12305 | fail: | |
12306 | return NULL; | |
12307 | } | |
12308 | ||
12309 | ||
c32bde28 | 12310 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12311 | PyObject *resultobj; |
12312 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12313 | int arg2 ; | |
12314 | int arg3 ; | |
12315 | int arg4 ; | |
12316 | int arg5 ; | |
ae8162c8 | 12317 | bool arg6 = (bool) true ; |
d55e5bfc RD |
12318 | PyObject * obj0 = 0 ; |
12319 | PyObject * obj1 = 0 ; | |
12320 | PyObject * obj2 = 0 ; | |
12321 | PyObject * obj3 = 0 ; | |
12322 | PyObject * obj4 = 0 ; | |
12323 | PyObject * obj5 = 0 ; | |
12324 | char *kwnames[] = { | |
12325 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
12326 | }; | |
12327 | ||
12328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
12329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12331 | { | |
12332 | arg2 = (int)(SWIG_As_int(obj1)); | |
12333 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12334 | } | |
12335 | { | |
12336 | arg3 = (int)(SWIG_As_int(obj2)); | |
12337 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12338 | } | |
12339 | { | |
12340 | arg4 = (int)(SWIG_As_int(obj3)); | |
12341 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12342 | } | |
12343 | { | |
12344 | arg5 = (int)(SWIG_As_int(obj4)); | |
12345 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12346 | } | |
d55e5bfc | 12347 | if (obj5) { |
093d3ff1 RD |
12348 | { |
12349 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
12350 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12351 | } | |
d55e5bfc RD |
12352 | } |
12353 | { | |
12354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12355 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
12356 | ||
12357 | wxPyEndAllowThreads(__tstate); | |
12358 | if (PyErr_Occurred()) SWIG_fail; | |
12359 | } | |
12360 | Py_INCREF(Py_None); resultobj = Py_None; | |
12361 | return resultobj; | |
12362 | fail: | |
12363 | return NULL; | |
12364 | } | |
12365 | ||
12366 | ||
c32bde28 | 12367 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 12368 | PyObject *resultobj; |
093d3ff1 | 12369 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
12370 | wxVisualAttributes result; |
12371 | PyObject * obj0 = 0 ; | |
12372 | char *kwnames[] = { | |
12373 | (char *) "variant", NULL | |
12374 | }; | |
12375 | ||
12376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12377 | if (obj0) { | |
093d3ff1 RD |
12378 | { |
12379 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12381 | } | |
f20a2e1f RD |
12382 | } |
12383 | { | |
19272049 | 12384 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12386 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12387 | ||
12388 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12389 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12390 | } |
12391 | { | |
12392 | wxVisualAttributes * resultptr; | |
093d3ff1 | 12393 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
12394 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
12395 | } | |
12396 | return resultobj; | |
12397 | fail: | |
12398 | return NULL; | |
12399 | } | |
12400 | ||
12401 | ||
c32bde28 | 12402 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12403 | PyObject *obj; |
12404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12405 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
12406 | Py_INCREF(obj); | |
12407 | return Py_BuildValue((char *)""); | |
12408 | } | |
c32bde28 | 12409 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
d55e5bfc RD |
12410 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
12411 | return 1; | |
12412 | } | |
12413 | ||
12414 | ||
093d3ff1 | 12415 | static PyObject *_wrap_SPIN_BUTTON_NAME_get(void) { |
d55e5bfc RD |
12416 | PyObject *pyobj; |
12417 | ||
12418 | { | |
12419 | #if wxUSE_UNICODE | |
12420 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12421 | #else | |
12422 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12423 | #endif | |
12424 | } | |
12425 | return pyobj; | |
12426 | } | |
12427 | ||
12428 | ||
c32bde28 | 12429 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
12430 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
12431 | return 1; | |
12432 | } | |
12433 | ||
12434 | ||
093d3ff1 | 12435 | static PyObject *_wrap_SpinCtrlNameStr_get(void) { |
d55e5bfc RD |
12436 | PyObject *pyobj; |
12437 | ||
12438 | { | |
12439 | #if wxUSE_UNICODE | |
12440 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12441 | #else | |
12442 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12443 | #endif | |
12444 | } | |
12445 | return pyobj; | |
12446 | } | |
12447 | ||
12448 | ||
c32bde28 | 12449 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12450 | PyObject *resultobj; |
12451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12452 | int arg2 = (int) -1 ; | |
12453 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12454 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12455 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12456 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12457 | long arg5 = (long) wxSP_HORIZONTAL ; | |
12458 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
12459 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12460 | wxSpinButton *result; | |
12461 | wxPoint temp3 ; | |
12462 | wxSize temp4 ; | |
ae8162c8 | 12463 | bool temp6 = false ; |
d55e5bfc RD |
12464 | PyObject * obj0 = 0 ; |
12465 | PyObject * obj1 = 0 ; | |
12466 | PyObject * obj2 = 0 ; | |
12467 | PyObject * obj3 = 0 ; | |
12468 | PyObject * obj4 = 0 ; | |
12469 | PyObject * obj5 = 0 ; | |
12470 | char *kwnames[] = { | |
12471 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12472 | }; | |
12473 | ||
12474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
12475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12477 | if (obj1) { |
093d3ff1 RD |
12478 | { |
12479 | arg2 = (int)(SWIG_As_int(obj1)); | |
12480 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12481 | } | |
d55e5bfc RD |
12482 | } |
12483 | if (obj2) { | |
12484 | { | |
12485 | arg3 = &temp3; | |
12486 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12487 | } | |
12488 | } | |
12489 | if (obj3) { | |
12490 | { | |
12491 | arg4 = &temp4; | |
12492 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12493 | } | |
12494 | } | |
12495 | if (obj4) { | |
093d3ff1 RD |
12496 | { |
12497 | arg5 = (long)(SWIG_As_long(obj4)); | |
12498 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12499 | } | |
d55e5bfc RD |
12500 | } |
12501 | if (obj5) { | |
12502 | { | |
12503 | arg6 = wxString_in_helper(obj5); | |
12504 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 12505 | temp6 = true; |
d55e5bfc RD |
12506 | } |
12507 | } | |
12508 | { | |
0439c23b | 12509 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12511 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12512 | ||
12513 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12514 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12515 | } |
12516 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
12517 | { | |
12518 | if (temp6) | |
12519 | delete arg6; | |
12520 | } | |
12521 | return resultobj; | |
12522 | fail: | |
12523 | { | |
12524 | if (temp6) | |
12525 | delete arg6; | |
12526 | } | |
12527 | return NULL; | |
12528 | } | |
12529 | ||
12530 | ||
c32bde28 | 12531 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12532 | PyObject *resultobj; |
12533 | wxSpinButton *result; | |
12534 | char *kwnames[] = { | |
12535 | NULL | |
12536 | }; | |
12537 | ||
12538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
12539 | { | |
0439c23b | 12540 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12542 | result = (wxSpinButton *)new wxSpinButton(); | |
12543 | ||
12544 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12545 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12546 | } |
12547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
12548 | return resultobj; | |
12549 | fail: | |
12550 | return NULL; | |
12551 | } | |
12552 | ||
12553 | ||
c32bde28 | 12554 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12555 | PyObject *resultobj; |
12556 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12557 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12558 | int arg3 = (int) -1 ; | |
12559 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12560 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12561 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12562 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12563 | long arg6 = (long) wxSP_HORIZONTAL ; | |
12564 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
12565 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12566 | bool result; | |
12567 | wxPoint temp4 ; | |
12568 | wxSize temp5 ; | |
ae8162c8 | 12569 | bool temp7 = false ; |
d55e5bfc RD |
12570 | PyObject * obj0 = 0 ; |
12571 | PyObject * obj1 = 0 ; | |
12572 | PyObject * obj2 = 0 ; | |
12573 | PyObject * obj3 = 0 ; | |
12574 | PyObject * obj4 = 0 ; | |
12575 | PyObject * obj5 = 0 ; | |
12576 | PyObject * obj6 = 0 ; | |
12577 | char *kwnames[] = { | |
12578 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12579 | }; | |
12580 | ||
12581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
12582 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12583 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12584 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12585 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 12586 | if (obj2) { |
093d3ff1 RD |
12587 | { |
12588 | arg3 = (int)(SWIG_As_int(obj2)); | |
12589 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12590 | } | |
d55e5bfc RD |
12591 | } |
12592 | if (obj3) { | |
12593 | { | |
12594 | arg4 = &temp4; | |
12595 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12596 | } | |
12597 | } | |
12598 | if (obj4) { | |
12599 | { | |
12600 | arg5 = &temp5; | |
12601 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12602 | } | |
12603 | } | |
12604 | if (obj5) { | |
093d3ff1 RD |
12605 | { |
12606 | arg6 = (long)(SWIG_As_long(obj5)); | |
12607 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12608 | } | |
d55e5bfc RD |
12609 | } |
12610 | if (obj6) { | |
12611 | { | |
12612 | arg7 = wxString_in_helper(obj6); | |
12613 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 12614 | temp7 = true; |
d55e5bfc RD |
12615 | } |
12616 | } | |
12617 | { | |
12618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12619 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12620 | ||
12621 | wxPyEndAllowThreads(__tstate); | |
12622 | if (PyErr_Occurred()) SWIG_fail; | |
12623 | } | |
12624 | { | |
12625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12626 | } | |
12627 | { | |
12628 | if (temp7) | |
12629 | delete arg7; | |
12630 | } | |
12631 | return resultobj; | |
12632 | fail: | |
12633 | { | |
12634 | if (temp7) | |
12635 | delete arg7; | |
12636 | } | |
12637 | return NULL; | |
12638 | } | |
12639 | ||
12640 | ||
c32bde28 | 12641 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12642 | PyObject *resultobj; |
12643 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12644 | int result; | |
12645 | PyObject * obj0 = 0 ; | |
12646 | char *kwnames[] = { | |
12647 | (char *) "self", NULL | |
12648 | }; | |
12649 | ||
12650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12653 | { |
12654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12655 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
12656 | ||
12657 | wxPyEndAllowThreads(__tstate); | |
12658 | if (PyErr_Occurred()) SWIG_fail; | |
12659 | } | |
093d3ff1 RD |
12660 | { |
12661 | resultobj = SWIG_From_int((int)(result)); | |
12662 | } | |
d55e5bfc RD |
12663 | return resultobj; |
12664 | fail: | |
12665 | return NULL; | |
12666 | } | |
12667 | ||
12668 | ||
c32bde28 | 12669 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12670 | PyObject *resultobj; |
12671 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12672 | int result; | |
12673 | PyObject * obj0 = 0 ; | |
12674 | char *kwnames[] = { | |
12675 | (char *) "self", NULL | |
12676 | }; | |
12677 | ||
12678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12681 | { |
12682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12683 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
12684 | ||
12685 | wxPyEndAllowThreads(__tstate); | |
12686 | if (PyErr_Occurred()) SWIG_fail; | |
12687 | } | |
093d3ff1 RD |
12688 | { |
12689 | resultobj = SWIG_From_int((int)(result)); | |
12690 | } | |
d55e5bfc RD |
12691 | return resultobj; |
12692 | fail: | |
12693 | return NULL; | |
12694 | } | |
12695 | ||
12696 | ||
c32bde28 | 12697 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12698 | PyObject *resultobj; |
12699 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12700 | int result; | |
12701 | PyObject * obj0 = 0 ; | |
12702 | char *kwnames[] = { | |
12703 | (char *) "self", NULL | |
12704 | }; | |
12705 | ||
12706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
12709 | { |
12710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12711 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
12712 | ||
12713 | wxPyEndAllowThreads(__tstate); | |
12714 | if (PyErr_Occurred()) SWIG_fail; | |
12715 | } | |
093d3ff1 RD |
12716 | { |
12717 | resultobj = SWIG_From_int((int)(result)); | |
12718 | } | |
d55e5bfc RD |
12719 | return resultobj; |
12720 | fail: | |
12721 | return NULL; | |
12722 | } | |
12723 | ||
12724 | ||
c32bde28 | 12725 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12726 | PyObject *resultobj; |
12727 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12728 | int arg2 ; | |
12729 | PyObject * obj0 = 0 ; | |
12730 | PyObject * obj1 = 0 ; | |
12731 | char *kwnames[] = { | |
12732 | (char *) "self",(char *) "val", NULL | |
12733 | }; | |
12734 | ||
12735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12738 | { | |
12739 | arg2 = (int)(SWIG_As_int(obj1)); | |
12740 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12741 | } | |
d55e5bfc RD |
12742 | { |
12743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12744 | (arg1)->SetValue(arg2); | |
12745 | ||
12746 | wxPyEndAllowThreads(__tstate); | |
12747 | if (PyErr_Occurred()) SWIG_fail; | |
12748 | } | |
12749 | Py_INCREF(Py_None); resultobj = Py_None; | |
12750 | return resultobj; | |
12751 | fail: | |
12752 | return NULL; | |
12753 | } | |
12754 | ||
12755 | ||
c32bde28 | 12756 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12757 | PyObject *resultobj; |
12758 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12759 | int arg2 ; | |
12760 | PyObject * obj0 = 0 ; | |
12761 | PyObject * obj1 = 0 ; | |
12762 | char *kwnames[] = { | |
12763 | (char *) "self",(char *) "minVal", NULL | |
12764 | }; | |
12765 | ||
12766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12769 | { | |
12770 | arg2 = (int)(SWIG_As_int(obj1)); | |
12771 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12772 | } | |
d55e5bfc RD |
12773 | { |
12774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12775 | (arg1)->SetMin(arg2); | |
12776 | ||
12777 | wxPyEndAllowThreads(__tstate); | |
12778 | if (PyErr_Occurred()) SWIG_fail; | |
12779 | } | |
12780 | Py_INCREF(Py_None); resultobj = Py_None; | |
12781 | return resultobj; | |
12782 | fail: | |
12783 | return NULL; | |
12784 | } | |
12785 | ||
12786 | ||
c32bde28 | 12787 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12788 | PyObject *resultobj; |
12789 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12790 | int arg2 ; | |
12791 | PyObject * obj0 = 0 ; | |
12792 | PyObject * obj1 = 0 ; | |
12793 | char *kwnames[] = { | |
12794 | (char *) "self",(char *) "maxVal", NULL | |
12795 | }; | |
12796 | ||
12797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
12798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12800 | { | |
12801 | arg2 = (int)(SWIG_As_int(obj1)); | |
12802 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12803 | } | |
d55e5bfc RD |
12804 | { |
12805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12806 | (arg1)->SetMax(arg2); | |
12807 | ||
12808 | wxPyEndAllowThreads(__tstate); | |
12809 | if (PyErr_Occurred()) SWIG_fail; | |
12810 | } | |
12811 | Py_INCREF(Py_None); resultobj = Py_None; | |
12812 | return resultobj; | |
12813 | fail: | |
12814 | return NULL; | |
12815 | } | |
12816 | ||
12817 | ||
c32bde28 | 12818 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12819 | PyObject *resultobj; |
12820 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12821 | int arg2 ; | |
12822 | int arg3 ; | |
12823 | PyObject * obj0 = 0 ; | |
12824 | PyObject * obj1 = 0 ; | |
12825 | PyObject * obj2 = 0 ; | |
12826 | char *kwnames[] = { | |
12827 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
12828 | }; | |
12829 | ||
12830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
12831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12833 | { | |
12834 | arg2 = (int)(SWIG_As_int(obj1)); | |
12835 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12836 | } | |
12837 | { | |
12838 | arg3 = (int)(SWIG_As_int(obj2)); | |
12839 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12840 | } | |
d55e5bfc RD |
12841 | { |
12842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12843 | (arg1)->SetRange(arg2,arg3); | |
12844 | ||
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
f20a2e1f RD |
12848 | Py_INCREF(Py_None); resultobj = Py_None; |
12849 | return resultobj; | |
12850 | fail: | |
12851 | return NULL; | |
12852 | } | |
12853 | ||
12854 | ||
c32bde28 | 12855 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f RD |
12856 | PyObject *resultobj; |
12857 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12858 | bool result; | |
12859 | PyObject * obj0 = 0 ; | |
12860 | char *kwnames[] = { | |
12861 | (char *) "self", NULL | |
12862 | }; | |
12863 | ||
12864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12865 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12866 | if (SWIG_arg_fail(1)) SWIG_fail; | |
f20a2e1f RD |
12867 | { |
12868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12869 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
12870 | ||
12871 | wxPyEndAllowThreads(__tstate); | |
12872 | if (PyErr_Occurred()) SWIG_fail; | |
12873 | } | |
12874 | { | |
12875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12876 | } | |
d55e5bfc RD |
12877 | return resultobj; |
12878 | fail: | |
12879 | return NULL; | |
12880 | } | |
12881 | ||
12882 | ||
c32bde28 | 12883 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 12884 | PyObject *resultobj; |
093d3ff1 | 12885 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f | 12886 | wxVisualAttributes result; |
d55e5bfc RD |
12887 | PyObject * obj0 = 0 ; |
12888 | char *kwnames[] = { | |
f20a2e1f | 12889 | (char *) "variant", NULL |
d55e5bfc RD |
12890 | }; |
12891 | ||
f20a2e1f RD |
12892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
12893 | if (obj0) { | |
093d3ff1 RD |
12894 | { |
12895 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12897 | } | |
f20a2e1f | 12898 | } |
d55e5bfc | 12899 | { |
19272049 | 12900 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 12901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f20a2e1f | 12902 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d55e5bfc RD |
12903 | |
12904 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12905 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12906 | } |
12907 | { | |
f20a2e1f | 12908 | wxVisualAttributes * resultptr; |
093d3ff1 | 12909 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f | 12910 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
d55e5bfc RD |
12911 | } |
12912 | return resultobj; | |
12913 | fail: | |
12914 | return NULL; | |
12915 | } | |
12916 | ||
12917 | ||
c32bde28 | 12918 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12919 | PyObject *obj; |
12920 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12921 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
12922 | Py_INCREF(obj); | |
12923 | return Py_BuildValue((char *)""); | |
12924 | } | |
c32bde28 | 12925 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12926 | PyObject *resultobj; |
12927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12928 | int arg2 = (int) -1 ; | |
12929 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12930 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12931 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12932 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12933 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12934 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12935 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
12936 | int arg7 = (int) 0 ; | |
12937 | int arg8 = (int) 100 ; | |
12938 | int arg9 = (int) 0 ; | |
12939 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
12940 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12941 | wxSpinCtrl *result; | |
ae8162c8 | 12942 | bool temp3 = false ; |
d55e5bfc RD |
12943 | wxPoint temp4 ; |
12944 | wxSize temp5 ; | |
ae8162c8 | 12945 | bool temp10 = false ; |
d55e5bfc RD |
12946 | PyObject * obj0 = 0 ; |
12947 | PyObject * obj1 = 0 ; | |
12948 | PyObject * obj2 = 0 ; | |
12949 | PyObject * obj3 = 0 ; | |
12950 | PyObject * obj4 = 0 ; | |
12951 | PyObject * obj5 = 0 ; | |
12952 | PyObject * obj6 = 0 ; | |
12953 | PyObject * obj7 = 0 ; | |
12954 | PyObject * obj8 = 0 ; | |
12955 | PyObject * obj9 = 0 ; | |
12956 | char *kwnames[] = { | |
12957 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
12958 | }; | |
12959 | ||
12960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
093d3ff1 RD |
12961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 12963 | if (obj1) { |
093d3ff1 RD |
12964 | { |
12965 | arg2 = (int)(SWIG_As_int(obj1)); | |
12966 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12967 | } | |
d55e5bfc RD |
12968 | } |
12969 | if (obj2) { | |
12970 | { | |
12971 | arg3 = wxString_in_helper(obj2); | |
12972 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12973 | temp3 = true; |
d55e5bfc RD |
12974 | } |
12975 | } | |
12976 | if (obj3) { | |
12977 | { | |
12978 | arg4 = &temp4; | |
12979 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12980 | } | |
12981 | } | |
12982 | if (obj4) { | |
12983 | { | |
12984 | arg5 = &temp5; | |
12985 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12986 | } | |
12987 | } | |
12988 | if (obj5) { | |
093d3ff1 RD |
12989 | { |
12990 | arg6 = (long)(SWIG_As_long(obj5)); | |
12991 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12992 | } | |
d55e5bfc RD |
12993 | } |
12994 | if (obj6) { | |
093d3ff1 RD |
12995 | { |
12996 | arg7 = (int)(SWIG_As_int(obj6)); | |
12997 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12998 | } | |
d55e5bfc RD |
12999 | } |
13000 | if (obj7) { | |
093d3ff1 RD |
13001 | { |
13002 | arg8 = (int)(SWIG_As_int(obj7)); | |
13003 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13004 | } | |
d55e5bfc RD |
13005 | } |
13006 | if (obj8) { | |
093d3ff1 RD |
13007 | { |
13008 | arg9 = (int)(SWIG_As_int(obj8)); | |
13009 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13010 | } | |
d55e5bfc RD |
13011 | } |
13012 | if (obj9) { | |
13013 | { | |
13014 | arg10 = wxString_in_helper(obj9); | |
13015 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13016 | temp10 = true; |
d55e5bfc RD |
13017 | } |
13018 | } | |
13019 | { | |
0439c23b | 13020 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13022 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
13023 | ||
13024 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13025 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13026 | } |
13027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
13028 | { | |
13029 | if (temp3) | |
13030 | delete arg3; | |
13031 | } | |
13032 | { | |
13033 | if (temp10) | |
13034 | delete arg10; | |
13035 | } | |
13036 | return resultobj; | |
13037 | fail: | |
13038 | { | |
13039 | if (temp3) | |
13040 | delete arg3; | |
13041 | } | |
13042 | { | |
13043 | if (temp10) | |
13044 | delete arg10; | |
13045 | } | |
13046 | return NULL; | |
13047 | } | |
13048 | ||
13049 | ||
c32bde28 | 13050 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13051 | PyObject *resultobj; |
13052 | wxSpinCtrl *result; | |
13053 | char *kwnames[] = { | |
13054 | NULL | |
13055 | }; | |
13056 | ||
13057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
13058 | { | |
0439c23b | 13059 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13061 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
13062 | ||
13063 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13064 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13065 | } |
13066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
13067 | return resultobj; | |
13068 | fail: | |
13069 | return NULL; | |
13070 | } | |
13071 | ||
13072 | ||
c32bde28 | 13073 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13074 | PyObject *resultobj; |
13075 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13076 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13077 | int arg3 = (int) -1 ; | |
13078 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13079 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13080 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13081 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13082 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13083 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13084 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
13085 | int arg8 = (int) 0 ; | |
13086 | int arg9 = (int) 100 ; | |
13087 | int arg10 = (int) 0 ; | |
13088 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
13089 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13090 | bool result; | |
ae8162c8 | 13091 | bool temp4 = false ; |
d55e5bfc RD |
13092 | wxPoint temp5 ; |
13093 | wxSize temp6 ; | |
ae8162c8 | 13094 | bool temp11 = false ; |
d55e5bfc RD |
13095 | PyObject * obj0 = 0 ; |
13096 | PyObject * obj1 = 0 ; | |
13097 | PyObject * obj2 = 0 ; | |
13098 | PyObject * obj3 = 0 ; | |
13099 | PyObject * obj4 = 0 ; | |
13100 | PyObject * obj5 = 0 ; | |
13101 | PyObject * obj6 = 0 ; | |
13102 | PyObject * obj7 = 0 ; | |
13103 | PyObject * obj8 = 0 ; | |
13104 | PyObject * obj9 = 0 ; | |
13105 | PyObject * obj10 = 0 ; | |
13106 | char *kwnames[] = { | |
13107 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
13108 | }; | |
13109 | ||
13110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
093d3ff1 RD |
13111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13113 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13114 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 13115 | if (obj2) { |
093d3ff1 RD |
13116 | { |
13117 | arg3 = (int)(SWIG_As_int(obj2)); | |
13118 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13119 | } | |
d55e5bfc RD |
13120 | } |
13121 | if (obj3) { | |
13122 | { | |
13123 | arg4 = wxString_in_helper(obj3); | |
13124 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13125 | temp4 = true; |
d55e5bfc RD |
13126 | } |
13127 | } | |
13128 | if (obj4) { | |
13129 | { | |
13130 | arg5 = &temp5; | |
13131 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13132 | } | |
13133 | } | |
13134 | if (obj5) { | |
13135 | { | |
13136 | arg6 = &temp6; | |
13137 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13138 | } | |
13139 | } | |
13140 | if (obj6) { | |
093d3ff1 RD |
13141 | { |
13142 | arg7 = (long)(SWIG_As_long(obj6)); | |
13143 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13144 | } | |
d55e5bfc RD |
13145 | } |
13146 | if (obj7) { | |
093d3ff1 RD |
13147 | { |
13148 | arg8 = (int)(SWIG_As_int(obj7)); | |
13149 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13150 | } | |
d55e5bfc RD |
13151 | } |
13152 | if (obj8) { | |
093d3ff1 RD |
13153 | { |
13154 | arg9 = (int)(SWIG_As_int(obj8)); | |
13155 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13156 | } | |
d55e5bfc RD |
13157 | } |
13158 | if (obj9) { | |
093d3ff1 RD |
13159 | { |
13160 | arg10 = (int)(SWIG_As_int(obj9)); | |
13161 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13162 | } | |
d55e5bfc RD |
13163 | } |
13164 | if (obj10) { | |
13165 | { | |
13166 | arg11 = wxString_in_helper(obj10); | |
13167 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13168 | temp11 = true; |
d55e5bfc RD |
13169 | } |
13170 | } | |
13171 | { | |
13172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13173 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
13174 | ||
13175 | wxPyEndAllowThreads(__tstate); | |
13176 | if (PyErr_Occurred()) SWIG_fail; | |
13177 | } | |
13178 | { | |
13179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13180 | } | |
13181 | { | |
13182 | if (temp4) | |
13183 | delete arg4; | |
13184 | } | |
13185 | { | |
13186 | if (temp11) | |
13187 | delete arg11; | |
13188 | } | |
13189 | return resultobj; | |
13190 | fail: | |
13191 | { | |
13192 | if (temp4) | |
13193 | delete arg4; | |
13194 | } | |
13195 | { | |
13196 | if (temp11) | |
13197 | delete arg11; | |
13198 | } | |
13199 | return NULL; | |
13200 | } | |
13201 | ||
13202 | ||
c32bde28 | 13203 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13204 | PyObject *resultobj; |
13205 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13206 | int result; | |
13207 | PyObject * obj0 = 0 ; | |
13208 | char *kwnames[] = { | |
13209 | (char *) "self", NULL | |
13210 | }; | |
13211 | ||
13212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13215 | { |
13216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13217 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
13218 | ||
13219 | wxPyEndAllowThreads(__tstate); | |
13220 | if (PyErr_Occurred()) SWIG_fail; | |
13221 | } | |
093d3ff1 RD |
13222 | { |
13223 | resultobj = SWIG_From_int((int)(result)); | |
13224 | } | |
d55e5bfc RD |
13225 | return resultobj; |
13226 | fail: | |
13227 | return NULL; | |
13228 | } | |
13229 | ||
13230 | ||
c32bde28 | 13231 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13232 | PyObject *resultobj; |
13233 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13234 | int arg2 ; | |
13235 | PyObject * obj0 = 0 ; | |
13236 | PyObject * obj1 = 0 ; | |
13237 | char *kwnames[] = { | |
13238 | (char *) "self",(char *) "value", NULL | |
13239 | }; | |
13240 | ||
13241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13244 | { | |
13245 | arg2 = (int)(SWIG_As_int(obj1)); | |
13246 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13247 | } | |
d55e5bfc RD |
13248 | { |
13249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13250 | (arg1)->SetValue(arg2); | |
13251 | ||
13252 | wxPyEndAllowThreads(__tstate); | |
13253 | if (PyErr_Occurred()) SWIG_fail; | |
13254 | } | |
13255 | Py_INCREF(Py_None); resultobj = Py_None; | |
13256 | return resultobj; | |
13257 | fail: | |
13258 | return NULL; | |
13259 | } | |
13260 | ||
13261 | ||
c32bde28 | 13262 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13263 | PyObject *resultobj; |
13264 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13265 | wxString *arg2 = 0 ; | |
ae8162c8 | 13266 | bool temp2 = false ; |
d55e5bfc RD |
13267 | PyObject * obj0 = 0 ; |
13268 | PyObject * obj1 = 0 ; | |
13269 | char *kwnames[] = { | |
13270 | (char *) "self",(char *) "text", NULL | |
13271 | }; | |
13272 | ||
13273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13276 | { |
13277 | arg2 = wxString_in_helper(obj1); | |
13278 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13279 | temp2 = true; |
d55e5bfc RD |
13280 | } |
13281 | { | |
13282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13283 | (arg1)->SetValue((wxString const &)*arg2); | |
13284 | ||
13285 | wxPyEndAllowThreads(__tstate); | |
13286 | if (PyErr_Occurred()) SWIG_fail; | |
13287 | } | |
13288 | Py_INCREF(Py_None); resultobj = Py_None; | |
13289 | { | |
13290 | if (temp2) | |
13291 | delete arg2; | |
13292 | } | |
13293 | return resultobj; | |
13294 | fail: | |
13295 | { | |
13296 | if (temp2) | |
13297 | delete arg2; | |
13298 | } | |
13299 | return NULL; | |
13300 | } | |
13301 | ||
13302 | ||
c32bde28 | 13303 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13304 | PyObject *resultobj; |
13305 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13306 | int arg2 ; | |
13307 | int arg3 ; | |
13308 | PyObject * obj0 = 0 ; | |
13309 | PyObject * obj1 = 0 ; | |
13310 | PyObject * obj2 = 0 ; | |
13311 | char *kwnames[] = { | |
13312 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
13313 | }; | |
13314 | ||
13315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
13316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13318 | { | |
13319 | arg2 = (int)(SWIG_As_int(obj1)); | |
13320 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13321 | } | |
13322 | { | |
13323 | arg3 = (int)(SWIG_As_int(obj2)); | |
13324 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13325 | } | |
d55e5bfc RD |
13326 | { |
13327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13328 | (arg1)->SetRange(arg2,arg3); | |
13329 | ||
13330 | wxPyEndAllowThreads(__tstate); | |
13331 | if (PyErr_Occurred()) SWIG_fail; | |
13332 | } | |
13333 | Py_INCREF(Py_None); resultobj = Py_None; | |
13334 | return resultobj; | |
13335 | fail: | |
13336 | return NULL; | |
13337 | } | |
13338 | ||
13339 | ||
c32bde28 | 13340 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13341 | PyObject *resultobj; |
13342 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13343 | int result; | |
13344 | PyObject * obj0 = 0 ; | |
13345 | char *kwnames[] = { | |
13346 | (char *) "self", NULL | |
13347 | }; | |
13348 | ||
13349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13350 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13351 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13352 | { |
13353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13354 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
13355 | ||
13356 | wxPyEndAllowThreads(__tstate); | |
13357 | if (PyErr_Occurred()) SWIG_fail; | |
13358 | } | |
093d3ff1 RD |
13359 | { |
13360 | resultobj = SWIG_From_int((int)(result)); | |
13361 | } | |
d55e5bfc RD |
13362 | return resultobj; |
13363 | fail: | |
13364 | return NULL; | |
13365 | } | |
13366 | ||
13367 | ||
c32bde28 | 13368 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13369 | PyObject *resultobj; |
13370 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13371 | int result; | |
13372 | PyObject * obj0 = 0 ; | |
13373 | char *kwnames[] = { | |
13374 | (char *) "self", NULL | |
13375 | }; | |
13376 | ||
13377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13380 | { |
13381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13382 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
13383 | ||
13384 | wxPyEndAllowThreads(__tstate); | |
13385 | if (PyErr_Occurred()) SWIG_fail; | |
13386 | } | |
093d3ff1 RD |
13387 | { |
13388 | resultobj = SWIG_From_int((int)(result)); | |
13389 | } | |
d55e5bfc RD |
13390 | return resultobj; |
13391 | fail: | |
13392 | return NULL; | |
13393 | } | |
13394 | ||
13395 | ||
c32bde28 | 13396 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13397 | PyObject *resultobj; |
13398 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13399 | long arg2 ; | |
13400 | long arg3 ; | |
13401 | PyObject * obj0 = 0 ; | |
13402 | PyObject * obj1 = 0 ; | |
13403 | PyObject * obj2 = 0 ; | |
13404 | char *kwnames[] = { | |
13405 | (char *) "self",(char *) "from",(char *) "to", NULL | |
13406 | }; | |
13407 | ||
13408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
13409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13411 | { | |
13412 | arg2 = (long)(SWIG_As_long(obj1)); | |
13413 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13414 | } | |
13415 | { | |
13416 | arg3 = (long)(SWIG_As_long(obj2)); | |
13417 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13418 | } | |
d55e5bfc RD |
13419 | { |
13420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13421 | (arg1)->SetSelection(arg2,arg3); | |
13422 | ||
13423 | wxPyEndAllowThreads(__tstate); | |
13424 | if (PyErr_Occurred()) SWIG_fail; | |
13425 | } | |
13426 | Py_INCREF(Py_None); resultobj = Py_None; | |
13427 | return resultobj; | |
13428 | fail: | |
13429 | return NULL; | |
13430 | } | |
13431 | ||
13432 | ||
c32bde28 | 13433 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 13434 | PyObject *resultobj; |
093d3ff1 | 13435 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
13436 | wxVisualAttributes result; |
13437 | PyObject * obj0 = 0 ; | |
13438 | char *kwnames[] = { | |
13439 | (char *) "variant", NULL | |
13440 | }; | |
13441 | ||
13442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13443 | if (obj0) { | |
093d3ff1 RD |
13444 | { |
13445 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
13446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13447 | } | |
f20a2e1f RD |
13448 | } |
13449 | { | |
19272049 | 13450 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
13451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13452 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13453 | ||
13454 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13455 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
13456 | } |
13457 | { | |
13458 | wxVisualAttributes * resultptr; | |
093d3ff1 | 13459 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
13460 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
13461 | } | |
13462 | return resultobj; | |
13463 | fail: | |
13464 | return NULL; | |
13465 | } | |
13466 | ||
13467 | ||
c32bde28 | 13468 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13469 | PyObject *obj; |
13470 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13471 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
13472 | Py_INCREF(obj); | |
13473 | return Py_BuildValue((char *)""); | |
13474 | } | |
c32bde28 | 13475 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13476 | PyObject *resultobj; |
13477 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13478 | int arg2 = (int) 0 ; | |
13479 | wxSpinEvent *result; | |
13480 | PyObject * obj0 = 0 ; | |
13481 | PyObject * obj1 = 0 ; | |
13482 | char *kwnames[] = { | |
13483 | (char *) "commandType",(char *) "winid", NULL | |
13484 | }; | |
13485 | ||
13486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
13487 | if (obj0) { | |
093d3ff1 RD |
13488 | { |
13489 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
13490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13491 | } | |
d55e5bfc RD |
13492 | } |
13493 | if (obj1) { | |
093d3ff1 RD |
13494 | { |
13495 | arg2 = (int)(SWIG_As_int(obj1)); | |
13496 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13497 | } | |
d55e5bfc RD |
13498 | } |
13499 | { | |
13500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13501 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
13502 | ||
13503 | wxPyEndAllowThreads(__tstate); | |
13504 | if (PyErr_Occurred()) SWIG_fail; | |
13505 | } | |
13506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
13507 | return resultobj; | |
13508 | fail: | |
13509 | return NULL; | |
13510 | } | |
13511 | ||
13512 | ||
c32bde28 | 13513 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13514 | PyObject *resultobj; |
13515 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13516 | int result; | |
13517 | PyObject * obj0 = 0 ; | |
13518 | char *kwnames[] = { | |
13519 | (char *) "self", NULL | |
13520 | }; | |
13521 | ||
13522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13523 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13524 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13525 | { |
13526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13527 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
13528 | ||
13529 | wxPyEndAllowThreads(__tstate); | |
13530 | if (PyErr_Occurred()) SWIG_fail; | |
13531 | } | |
093d3ff1 RD |
13532 | { |
13533 | resultobj = SWIG_From_int((int)(result)); | |
13534 | } | |
d55e5bfc RD |
13535 | return resultobj; |
13536 | fail: | |
13537 | return NULL; | |
13538 | } | |
13539 | ||
13540 | ||
c32bde28 | 13541 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13542 | PyObject *resultobj; |
13543 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13544 | int arg2 ; | |
13545 | PyObject * obj0 = 0 ; | |
13546 | PyObject * obj1 = 0 ; | |
13547 | char *kwnames[] = { | |
13548 | (char *) "self",(char *) "pos", NULL | |
13549 | }; | |
13550 | ||
13551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13554 | { | |
13555 | arg2 = (int)(SWIG_As_int(obj1)); | |
13556 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13557 | } | |
d55e5bfc RD |
13558 | { |
13559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13560 | (arg1)->SetPosition(arg2); | |
13561 | ||
13562 | wxPyEndAllowThreads(__tstate); | |
13563 | if (PyErr_Occurred()) SWIG_fail; | |
13564 | } | |
13565 | Py_INCREF(Py_None); resultobj = Py_None; | |
13566 | return resultobj; | |
13567 | fail: | |
13568 | return NULL; | |
13569 | } | |
13570 | ||
13571 | ||
c32bde28 | 13572 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13573 | PyObject *obj; |
13574 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13575 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
13576 | Py_INCREF(obj); | |
13577 | return Py_BuildValue((char *)""); | |
13578 | } | |
c32bde28 | 13579 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
d55e5bfc RD |
13580 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
13581 | return 1; | |
13582 | } | |
13583 | ||
13584 | ||
093d3ff1 | 13585 | static PyObject *_wrap_RadioBoxNameStr_get(void) { |
d55e5bfc RD |
13586 | PyObject *pyobj; |
13587 | ||
13588 | { | |
13589 | #if wxUSE_UNICODE | |
13590 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13591 | #else | |
13592 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13593 | #endif | |
13594 | } | |
13595 | return pyobj; | |
13596 | } | |
13597 | ||
13598 | ||
c32bde28 | 13599 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
13600 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
13601 | return 1; | |
13602 | } | |
13603 | ||
13604 | ||
093d3ff1 | 13605 | static PyObject *_wrap_RadioButtonNameStr_get(void) { |
d55e5bfc RD |
13606 | PyObject *pyobj; |
13607 | ||
13608 | { | |
13609 | #if wxUSE_UNICODE | |
13610 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13611 | #else | |
13612 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13613 | #endif | |
13614 | } | |
13615 | return pyobj; | |
13616 | } | |
13617 | ||
13618 | ||
c32bde28 | 13619 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13620 | PyObject *resultobj; |
13621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13622 | int arg2 = (int) -1 ; |
13623 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13624 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
13625 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13626 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13627 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13628 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13629 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
13630 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
13631 | int arg7 = (int) 0 ; | |
13632 | long arg8 = (long) wxRA_HORIZONTAL ; | |
13633 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13634 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13635 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
13636 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
13637 | wxRadioBox *result; | |
ae8162c8 | 13638 | bool temp3 = false ; |
d55e5bfc RD |
13639 | wxPoint temp4 ; |
13640 | wxSize temp5 ; | |
ae8162c8 RD |
13641 | bool temp6 = false ; |
13642 | bool temp10 = false ; | |
d55e5bfc RD |
13643 | PyObject * obj0 = 0 ; |
13644 | PyObject * obj1 = 0 ; | |
13645 | PyObject * obj2 = 0 ; | |
13646 | PyObject * obj3 = 0 ; | |
13647 | PyObject * obj4 = 0 ; | |
13648 | PyObject * obj5 = 0 ; | |
13649 | PyObject * obj6 = 0 ; | |
13650 | PyObject * obj7 = 0 ; | |
13651 | PyObject * obj8 = 0 ; | |
13652 | PyObject * obj9 = 0 ; | |
13653 | char *kwnames[] = { | |
13654 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13655 | }; | |
13656 | ||
248ed943 | 13657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
093d3ff1 RD |
13658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
13659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 13660 | if (obj1) { |
093d3ff1 RD |
13661 | { |
13662 | arg2 = (int)(SWIG_As_int(obj1)); | |
13663 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13664 | } | |
248ed943 RD |
13665 | } |
13666 | if (obj2) { | |
13667 | { | |
13668 | arg3 = wxString_in_helper(obj2); | |
13669 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13670 | temp3 = true; |
248ed943 | 13671 | } |
d55e5bfc RD |
13672 | } |
13673 | if (obj3) { | |
13674 | { | |
13675 | arg4 = &temp4; | |
13676 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13677 | } | |
13678 | } | |
13679 | if (obj4) { | |
13680 | { | |
13681 | arg5 = &temp5; | |
13682 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13683 | } | |
13684 | } | |
13685 | if (obj5) { | |
13686 | { | |
13687 | if (! PySequence_Check(obj5)) { | |
13688 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13689 | SWIG_fail; | |
13690 | } | |
13691 | arg6 = new wxArrayString; | |
ae8162c8 | 13692 | temp6 = true; |
d55e5bfc RD |
13693 | int i, len=PySequence_Length(obj5); |
13694 | for (i=0; i<len; i++) { | |
13695 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 13696 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 13697 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
13698 | arg6->Add(*s); |
13699 | delete s; | |
d55e5bfc | 13700 | Py_DECREF(item); |
d55e5bfc RD |
13701 | } |
13702 | } | |
13703 | } | |
13704 | if (obj6) { | |
093d3ff1 RD |
13705 | { |
13706 | arg7 = (int)(SWIG_As_int(obj6)); | |
13707 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13708 | } | |
d55e5bfc RD |
13709 | } |
13710 | if (obj7) { | |
093d3ff1 RD |
13711 | { |
13712 | arg8 = (long)(SWIG_As_long(obj7)); | |
13713 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13714 | } | |
d55e5bfc RD |
13715 | } |
13716 | if (obj8) { | |
093d3ff1 RD |
13717 | { |
13718 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13719 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13720 | if (arg9 == NULL) { | |
13721 | SWIG_null_ref("wxValidator"); | |
13722 | } | |
13723 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d55e5bfc RD |
13724 | } |
13725 | } | |
13726 | if (obj9) { | |
13727 | { | |
13728 | arg10 = wxString_in_helper(obj9); | |
13729 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13730 | temp10 = true; |
d55e5bfc RD |
13731 | } |
13732 | } | |
13733 | { | |
0439c23b | 13734 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13736 | 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); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13739 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13740 | } |
13741 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
13742 | { | |
13743 | if (temp3) | |
13744 | delete arg3; | |
13745 | } | |
13746 | { | |
13747 | if (temp6) delete arg6; | |
13748 | } | |
13749 | { | |
13750 | if (temp10) | |
13751 | delete arg10; | |
13752 | } | |
13753 | return resultobj; | |
13754 | fail: | |
13755 | { | |
13756 | if (temp3) | |
13757 | delete arg3; | |
13758 | } | |
13759 | { | |
13760 | if (temp6) delete arg6; | |
13761 | } | |
13762 | { | |
13763 | if (temp10) | |
13764 | delete arg10; | |
13765 | } | |
13766 | return NULL; | |
13767 | } | |
13768 | ||
13769 | ||
c32bde28 | 13770 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13771 | PyObject *resultobj; |
13772 | wxRadioBox *result; | |
13773 | char *kwnames[] = { | |
13774 | NULL | |
13775 | }; | |
13776 | ||
13777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
13778 | { | |
0439c23b | 13779 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13781 | result = (wxRadioBox *)new wxRadioBox(); | |
13782 | ||
13783 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13784 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13785 | } |
13786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
13787 | return resultobj; | |
13788 | fail: | |
13789 | return NULL; | |
13790 | } | |
13791 | ||
13792 | ||
c32bde28 | 13793 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13794 | PyObject *resultobj; |
13795 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13796 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13797 | int arg3 = (int) -1 ; |
13798 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13799 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
13800 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13801 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13802 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13803 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13804 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
13805 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
13806 | int arg8 = (int) 0 ; | |
13807 | long arg9 = (long) wxRA_HORIZONTAL ; | |
13808 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13809 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13810 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
13811 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13812 | bool result; | |
ae8162c8 | 13813 | bool temp4 = false ; |
d55e5bfc RD |
13814 | wxPoint temp5 ; |
13815 | wxSize temp6 ; | |
ae8162c8 RD |
13816 | bool temp7 = false ; |
13817 | bool temp11 = false ; | |
d55e5bfc RD |
13818 | PyObject * obj0 = 0 ; |
13819 | PyObject * obj1 = 0 ; | |
13820 | PyObject * obj2 = 0 ; | |
13821 | PyObject * obj3 = 0 ; | |
13822 | PyObject * obj4 = 0 ; | |
13823 | PyObject * obj5 = 0 ; | |
13824 | PyObject * obj6 = 0 ; | |
13825 | PyObject * obj7 = 0 ; | |
13826 | PyObject * obj8 = 0 ; | |
13827 | PyObject * obj9 = 0 ; | |
13828 | PyObject * obj10 = 0 ; | |
13829 | char *kwnames[] = { | |
13830 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13831 | }; | |
13832 | ||
248ed943 | 13833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
093d3ff1 RD |
13834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13836 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13837 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 13838 | if (obj2) { |
093d3ff1 RD |
13839 | { |
13840 | arg3 = (int)(SWIG_As_int(obj2)); | |
13841 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13842 | } | |
248ed943 RD |
13843 | } |
13844 | if (obj3) { | |
13845 | { | |
13846 | arg4 = wxString_in_helper(obj3); | |
13847 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13848 | temp4 = true; |
248ed943 | 13849 | } |
d55e5bfc RD |
13850 | } |
13851 | if (obj4) { | |
13852 | { | |
13853 | arg5 = &temp5; | |
13854 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13855 | } | |
13856 | } | |
13857 | if (obj5) { | |
13858 | { | |
13859 | arg6 = &temp6; | |
13860 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13861 | } | |
13862 | } | |
13863 | if (obj6) { | |
13864 | { | |
13865 | if (! PySequence_Check(obj6)) { | |
13866 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13867 | SWIG_fail; | |
13868 | } | |
13869 | arg7 = new wxArrayString; | |
ae8162c8 | 13870 | temp7 = true; |
d55e5bfc RD |
13871 | int i, len=PySequence_Length(obj6); |
13872 | for (i=0; i<len; i++) { | |
13873 | PyObject* item = PySequence_GetItem(obj6, i); | |
71237536 | 13874 | wxString* s = wxString_in_helper(item); |
d55e5bfc | 13875 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
13876 | arg7->Add(*s); |
13877 | delete s; | |
d55e5bfc | 13878 | Py_DECREF(item); |
d55e5bfc RD |
13879 | } |
13880 | } | |
13881 | } | |
13882 | if (obj7) { | |
093d3ff1 RD |
13883 | { |
13884 | arg8 = (int)(SWIG_As_int(obj7)); | |
13885 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13886 | } | |
d55e5bfc RD |
13887 | } |
13888 | if (obj8) { | |
093d3ff1 RD |
13889 | { |
13890 | arg9 = (long)(SWIG_As_long(obj8)); | |
13891 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13892 | } | |
d55e5bfc RD |
13893 | } |
13894 | if (obj9) { | |
093d3ff1 RD |
13895 | { |
13896 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13897 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13898 | if (arg10 == NULL) { | |
13899 | SWIG_null_ref("wxValidator"); | |
13900 | } | |
13901 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d55e5bfc RD |
13902 | } |
13903 | } | |
13904 | if (obj10) { | |
13905 | { | |
13906 | arg11 = wxString_in_helper(obj10); | |
13907 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13908 | temp11 = true; |
d55e5bfc RD |
13909 | } |
13910 | } | |
13911 | { | |
13912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13913 | 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); | |
13914 | ||
13915 | wxPyEndAllowThreads(__tstate); | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
13918 | { | |
13919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13920 | } | |
13921 | { | |
13922 | if (temp4) | |
13923 | delete arg4; | |
13924 | } | |
13925 | { | |
13926 | if (temp7) delete arg7; | |
13927 | } | |
13928 | { | |
13929 | if (temp11) | |
13930 | delete arg11; | |
13931 | } | |
13932 | return resultobj; | |
13933 | fail: | |
13934 | { | |
13935 | if (temp4) | |
13936 | delete arg4; | |
13937 | } | |
13938 | { | |
13939 | if (temp7) delete arg7; | |
13940 | } | |
13941 | { | |
13942 | if (temp11) | |
13943 | delete arg11; | |
13944 | } | |
13945 | return NULL; | |
13946 | } | |
13947 | ||
13948 | ||
c32bde28 | 13949 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13950 | PyObject *resultobj; |
13951 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13952 | int arg2 ; | |
13953 | PyObject * obj0 = 0 ; | |
13954 | PyObject * obj1 = 0 ; | |
13955 | char *kwnames[] = { | |
13956 | (char *) "self",(char *) "n", NULL | |
13957 | }; | |
13958 | ||
13959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13962 | { | |
13963 | arg2 = (int)(SWIG_As_int(obj1)); | |
13964 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13965 | } | |
d55e5bfc RD |
13966 | { |
13967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13968 | (arg1)->SetSelection(arg2); | |
13969 | ||
13970 | wxPyEndAllowThreads(__tstate); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
13973 | Py_INCREF(Py_None); resultobj = Py_None; | |
13974 | return resultobj; | |
13975 | fail: | |
13976 | return NULL; | |
13977 | } | |
13978 | ||
13979 | ||
c32bde28 | 13980 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13981 | PyObject *resultobj; |
13982 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13983 | int result; | |
13984 | PyObject * obj0 = 0 ; | |
13985 | char *kwnames[] = { | |
13986 | (char *) "self", NULL | |
13987 | }; | |
13988 | ||
13989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
13992 | { |
13993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13994 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
13995 | ||
13996 | wxPyEndAllowThreads(__tstate); | |
13997 | if (PyErr_Occurred()) SWIG_fail; | |
13998 | } | |
093d3ff1 RD |
13999 | { |
14000 | resultobj = SWIG_From_int((int)(result)); | |
14001 | } | |
d55e5bfc RD |
14002 | return resultobj; |
14003 | fail: | |
14004 | return NULL; | |
14005 | } | |
14006 | ||
14007 | ||
c32bde28 | 14008 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14009 | PyObject *resultobj; |
14010 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14011 | wxString result; | |
14012 | PyObject * obj0 = 0 ; | |
14013 | char *kwnames[] = { | |
14014 | (char *) "self", NULL | |
14015 | }; | |
14016 | ||
14017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14020 | { |
14021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14022 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
14023 | ||
14024 | wxPyEndAllowThreads(__tstate); | |
14025 | if (PyErr_Occurred()) SWIG_fail; | |
14026 | } | |
14027 | { | |
14028 | #if wxUSE_UNICODE | |
14029 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14030 | #else | |
14031 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14032 | #endif | |
14033 | } | |
14034 | return resultobj; | |
14035 | fail: | |
14036 | return NULL; | |
14037 | } | |
14038 | ||
14039 | ||
c32bde28 | 14040 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14041 | PyObject *resultobj; |
14042 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14043 | wxString *arg2 = 0 ; | |
14044 | bool result; | |
ae8162c8 | 14045 | bool temp2 = false ; |
d55e5bfc RD |
14046 | PyObject * obj0 = 0 ; |
14047 | PyObject * obj1 = 0 ; | |
14048 | char *kwnames[] = { | |
14049 | (char *) "self",(char *) "s", NULL | |
14050 | }; | |
14051 | ||
14052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14055 | { |
14056 | arg2 = wxString_in_helper(obj1); | |
14057 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14058 | temp2 = true; |
d55e5bfc RD |
14059 | } |
14060 | { | |
14061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14062 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
14063 | ||
14064 | wxPyEndAllowThreads(__tstate); | |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | } | |
14067 | { | |
14068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14069 | } | |
14070 | { | |
14071 | if (temp2) | |
14072 | delete arg2; | |
14073 | } | |
14074 | return resultobj; | |
14075 | fail: | |
14076 | { | |
14077 | if (temp2) | |
14078 | delete arg2; | |
14079 | } | |
14080 | return NULL; | |
14081 | } | |
14082 | ||
14083 | ||
c32bde28 | 14084 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14085 | PyObject *resultobj; |
14086 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14087 | int result; | |
14088 | PyObject * obj0 = 0 ; | |
14089 | char *kwnames[] = { | |
14090 | (char *) "self", NULL | |
14091 | }; | |
14092 | ||
14093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14096 | { |
14097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14098 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
14099 | ||
14100 | wxPyEndAllowThreads(__tstate); | |
14101 | if (PyErr_Occurred()) SWIG_fail; | |
14102 | } | |
093d3ff1 RD |
14103 | { |
14104 | resultobj = SWIG_From_int((int)(result)); | |
14105 | } | |
d55e5bfc RD |
14106 | return resultobj; |
14107 | fail: | |
14108 | return NULL; | |
14109 | } | |
14110 | ||
14111 | ||
c32bde28 | 14112 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14113 | PyObject *resultobj; |
14114 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14115 | wxString *arg2 = 0 ; | |
14116 | int result; | |
ae8162c8 | 14117 | bool temp2 = false ; |
d55e5bfc RD |
14118 | PyObject * obj0 = 0 ; |
14119 | PyObject * obj1 = 0 ; | |
14120 | char *kwnames[] = { | |
14121 | (char *) "self",(char *) "s", NULL | |
14122 | }; | |
14123 | ||
14124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14127 | { |
14128 | arg2 = wxString_in_helper(obj1); | |
14129 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14130 | temp2 = true; |
d55e5bfc RD |
14131 | } |
14132 | { | |
14133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14134 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
14135 | ||
14136 | wxPyEndAllowThreads(__tstate); | |
14137 | if (PyErr_Occurred()) SWIG_fail; | |
14138 | } | |
093d3ff1 RD |
14139 | { |
14140 | resultobj = SWIG_From_int((int)(result)); | |
14141 | } | |
d55e5bfc RD |
14142 | { |
14143 | if (temp2) | |
14144 | delete arg2; | |
14145 | } | |
14146 | return resultobj; | |
14147 | fail: | |
14148 | { | |
14149 | if (temp2) | |
14150 | delete arg2; | |
14151 | } | |
14152 | return NULL; | |
14153 | } | |
14154 | ||
14155 | ||
c32bde28 | 14156 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14157 | PyObject *resultobj; |
14158 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14159 | int arg2 ; | |
14160 | wxString result; | |
14161 | PyObject * obj0 = 0 ; | |
14162 | PyObject * obj1 = 0 ; | |
14163 | char *kwnames[] = { | |
14164 | (char *) "self",(char *) "n", NULL | |
14165 | }; | |
14166 | ||
14167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14170 | { | |
14171 | arg2 = (int)(SWIG_As_int(obj1)); | |
14172 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14173 | } | |
d55e5bfc RD |
14174 | { |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14176 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
14177 | ||
14178 | wxPyEndAllowThreads(__tstate); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
14181 | { | |
14182 | #if wxUSE_UNICODE | |
14183 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14184 | #else | |
14185 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14186 | #endif | |
14187 | } | |
14188 | return resultobj; | |
14189 | fail: | |
14190 | return NULL; | |
14191 | } | |
14192 | ||
14193 | ||
c32bde28 | 14194 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14195 | PyObject *resultobj; |
14196 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14197 | int arg2 ; | |
14198 | wxString *arg3 = 0 ; | |
ae8162c8 | 14199 | bool temp3 = false ; |
d55e5bfc RD |
14200 | PyObject * obj0 = 0 ; |
14201 | PyObject * obj1 = 0 ; | |
14202 | PyObject * obj2 = 0 ; | |
14203 | char *kwnames[] = { | |
14204 | (char *) "self",(char *) "n",(char *) "label", NULL | |
14205 | }; | |
14206 | ||
14207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
14208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14210 | { | |
14211 | arg2 = (int)(SWIG_As_int(obj1)); | |
14212 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14213 | } | |
d55e5bfc RD |
14214 | { |
14215 | arg3 = wxString_in_helper(obj2); | |
14216 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14217 | temp3 = true; |
d55e5bfc RD |
14218 | } |
14219 | { | |
14220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14221 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
14222 | ||
14223 | wxPyEndAllowThreads(__tstate); | |
14224 | if (PyErr_Occurred()) SWIG_fail; | |
14225 | } | |
14226 | Py_INCREF(Py_None); resultobj = Py_None; | |
14227 | { | |
14228 | if (temp3) | |
14229 | delete arg3; | |
14230 | } | |
14231 | return resultobj; | |
14232 | fail: | |
14233 | { | |
14234 | if (temp3) | |
14235 | delete arg3; | |
14236 | } | |
14237 | return NULL; | |
14238 | } | |
14239 | ||
14240 | ||
c32bde28 | 14241 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14242 | PyObject *resultobj; |
14243 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14244 | int arg2 ; | |
ae8162c8 | 14245 | bool arg3 = (bool) true ; |
d55e5bfc RD |
14246 | PyObject * obj0 = 0 ; |
14247 | PyObject * obj1 = 0 ; | |
14248 | PyObject * obj2 = 0 ; | |
14249 | char *kwnames[] = { | |
14250 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
14251 | }; | |
14252 | ||
14253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
14254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14256 | { | |
14257 | arg2 = (int)(SWIG_As_int(obj1)); | |
14258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14259 | } | |
d55e5bfc | 14260 | if (obj2) { |
093d3ff1 RD |
14261 | { |
14262 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14263 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14264 | } | |
d55e5bfc RD |
14265 | } |
14266 | { | |
14267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14268 | (arg1)->Enable(arg2,arg3); | |
14269 | ||
14270 | wxPyEndAllowThreads(__tstate); | |
14271 | if (PyErr_Occurred()) SWIG_fail; | |
14272 | } | |
14273 | Py_INCREF(Py_None); resultobj = Py_None; | |
14274 | return resultobj; | |
14275 | fail: | |
14276 | return NULL; | |
14277 | } | |
14278 | ||
14279 | ||
c32bde28 | 14280 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14281 | PyObject *resultobj; |
14282 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14283 | int arg2 ; | |
ae8162c8 | 14284 | bool arg3 = (bool) true ; |
d55e5bfc RD |
14285 | PyObject * obj0 = 0 ; |
14286 | PyObject * obj1 = 0 ; | |
14287 | PyObject * obj2 = 0 ; | |
14288 | char *kwnames[] = { | |
14289 | (char *) "self",(char *) "n",(char *) "show", NULL | |
14290 | }; | |
14291 | ||
14292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
14293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14295 | { | |
14296 | arg2 = (int)(SWIG_As_int(obj1)); | |
14297 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14298 | } | |
d55e5bfc | 14299 | if (obj2) { |
093d3ff1 RD |
14300 | { |
14301 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14302 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14303 | } | |
d55e5bfc RD |
14304 | } |
14305 | { | |
14306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14307 | (arg1)->Show(arg2,arg3); | |
14308 | ||
14309 | wxPyEndAllowThreads(__tstate); | |
14310 | if (PyErr_Occurred()) SWIG_fail; | |
14311 | } | |
14312 | Py_INCREF(Py_None); resultobj = Py_None; | |
14313 | return resultobj; | |
14314 | fail: | |
14315 | return NULL; | |
14316 | } | |
14317 | ||
14318 | ||
c32bde28 | 14319 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14320 | PyObject *resultobj; |
14321 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14322 | int result; | |
14323 | PyObject * obj0 = 0 ; | |
14324 | char *kwnames[] = { | |
14325 | (char *) "self", NULL | |
14326 | }; | |
14327 | ||
14328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14331 | { |
14332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14333 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
14334 | ||
14335 | wxPyEndAllowThreads(__tstate); | |
14336 | if (PyErr_Occurred()) SWIG_fail; | |
14337 | } | |
093d3ff1 RD |
14338 | { |
14339 | resultobj = SWIG_From_int((int)(result)); | |
14340 | } | |
d55e5bfc RD |
14341 | return resultobj; |
14342 | fail: | |
14343 | return NULL; | |
14344 | } | |
14345 | ||
14346 | ||
c32bde28 | 14347 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14348 | PyObject *resultobj; |
14349 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14350 | int result; | |
14351 | PyObject * obj0 = 0 ; | |
14352 | char *kwnames[] = { | |
14353 | (char *) "self", NULL | |
14354 | }; | |
14355 | ||
14356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14357 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14358 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14359 | { |
14360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14361 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
14362 | ||
14363 | wxPyEndAllowThreads(__tstate); | |
14364 | if (PyErr_Occurred()) SWIG_fail; | |
14365 | } | |
093d3ff1 RD |
14366 | { |
14367 | resultobj = SWIG_From_int((int)(result)); | |
14368 | } | |
d55e5bfc RD |
14369 | return resultobj; |
14370 | fail: | |
14371 | return NULL; | |
14372 | } | |
14373 | ||
14374 | ||
c32bde28 | 14375 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14376 | PyObject *resultobj; |
14377 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14378 | int arg2 ; | |
093d3ff1 | 14379 | wxDirection arg3 ; |
d55e5bfc RD |
14380 | long arg4 ; |
14381 | int result; | |
14382 | PyObject * obj0 = 0 ; | |
14383 | PyObject * obj1 = 0 ; | |
14384 | PyObject * obj2 = 0 ; | |
14385 | PyObject * obj3 = 0 ; | |
14386 | char *kwnames[] = { | |
14387 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
14388 | }; | |
14389 | ||
14390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
14391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14393 | { | |
14394 | arg2 = (int)(SWIG_As_int(obj1)); | |
14395 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14396 | } | |
14397 | { | |
14398 | arg3 = (wxDirection)(SWIG_As_int(obj2)); | |
14399 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14400 | } | |
14401 | { | |
14402 | arg4 = (long)(SWIG_As_long(obj3)); | |
14403 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14404 | } | |
d55e5bfc RD |
14405 | { |
14406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14407 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
14408 | ||
14409 | wxPyEndAllowThreads(__tstate); | |
14410 | if (PyErr_Occurred()) SWIG_fail; | |
14411 | } | |
093d3ff1 RD |
14412 | { |
14413 | resultobj = SWIG_From_int((int)(result)); | |
14414 | } | |
d55e5bfc RD |
14415 | return resultobj; |
14416 | fail: | |
14417 | return NULL; | |
14418 | } | |
14419 | ||
14420 | ||
c32bde28 | 14421 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 14422 | PyObject *resultobj; |
093d3ff1 | 14423 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
14424 | wxVisualAttributes result; |
14425 | PyObject * obj0 = 0 ; | |
14426 | char *kwnames[] = { | |
14427 | (char *) "variant", NULL | |
14428 | }; | |
14429 | ||
14430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14431 | if (obj0) { | |
093d3ff1 RD |
14432 | { |
14433 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14434 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14435 | } | |
f20a2e1f RD |
14436 | } |
14437 | { | |
19272049 | 14438 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14440 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14441 | ||
14442 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14443 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14444 | } |
14445 | { | |
14446 | wxVisualAttributes * resultptr; | |
093d3ff1 | 14447 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
14448 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14449 | } | |
14450 | return resultobj; | |
14451 | fail: | |
14452 | return NULL; | |
14453 | } | |
14454 | ||
14455 | ||
c32bde28 | 14456 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14457 | PyObject *obj; |
14458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14459 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
14460 | Py_INCREF(obj); | |
14461 | return Py_BuildValue((char *)""); | |
14462 | } | |
c32bde28 | 14463 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14464 | PyObject *resultobj; |
14465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14466 | int arg2 = (int) -1 ; |
14467 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14468 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
14469 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14470 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14471 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14472 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14473 | long arg6 = (long) 0 ; | |
14474 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14475 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14476 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
14477 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14478 | wxRadioButton *result; | |
ae8162c8 | 14479 | bool temp3 = false ; |
d55e5bfc RD |
14480 | wxPoint temp4 ; |
14481 | wxSize temp5 ; | |
ae8162c8 | 14482 | bool temp8 = false ; |
d55e5bfc RD |
14483 | PyObject * obj0 = 0 ; |
14484 | PyObject * obj1 = 0 ; | |
14485 | PyObject * obj2 = 0 ; | |
14486 | PyObject * obj3 = 0 ; | |
14487 | PyObject * obj4 = 0 ; | |
14488 | PyObject * obj5 = 0 ; | |
14489 | PyObject * obj6 = 0 ; | |
14490 | PyObject * obj7 = 0 ; | |
14491 | char *kwnames[] = { | |
14492 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14493 | }; | |
14494 | ||
248ed943 | 14495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
14496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14498 | if (obj1) { |
093d3ff1 RD |
14499 | { |
14500 | arg2 = (int)(SWIG_As_int(obj1)); | |
14501 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14502 | } | |
248ed943 RD |
14503 | } |
14504 | if (obj2) { | |
14505 | { | |
14506 | arg3 = wxString_in_helper(obj2); | |
14507 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14508 | temp3 = true; |
248ed943 | 14509 | } |
d55e5bfc RD |
14510 | } |
14511 | if (obj3) { | |
14512 | { | |
14513 | arg4 = &temp4; | |
14514 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14515 | } | |
14516 | } | |
14517 | if (obj4) { | |
14518 | { | |
14519 | arg5 = &temp5; | |
14520 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14521 | } | |
14522 | } | |
14523 | if (obj5) { | |
093d3ff1 RD |
14524 | { |
14525 | arg6 = (long)(SWIG_As_long(obj5)); | |
14526 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14527 | } | |
d55e5bfc RD |
14528 | } |
14529 | if (obj6) { | |
093d3ff1 RD |
14530 | { |
14531 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14532 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14533 | if (arg7 == NULL) { | |
14534 | SWIG_null_ref("wxValidator"); | |
14535 | } | |
14536 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
14537 | } |
14538 | } | |
14539 | if (obj7) { | |
14540 | { | |
14541 | arg8 = wxString_in_helper(obj7); | |
14542 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 14543 | temp8 = true; |
d55e5bfc RD |
14544 | } |
14545 | } | |
14546 | { | |
0439c23b | 14547 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14549 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14550 | ||
14551 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14552 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14553 | } |
14554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
14555 | { | |
14556 | if (temp3) | |
14557 | delete arg3; | |
14558 | } | |
14559 | { | |
14560 | if (temp8) | |
14561 | delete arg8; | |
14562 | } | |
14563 | return resultobj; | |
14564 | fail: | |
14565 | { | |
14566 | if (temp3) | |
14567 | delete arg3; | |
14568 | } | |
14569 | { | |
14570 | if (temp8) | |
14571 | delete arg8; | |
14572 | } | |
14573 | return NULL; | |
14574 | } | |
14575 | ||
14576 | ||
c32bde28 | 14577 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14578 | PyObject *resultobj; |
14579 | wxRadioButton *result; | |
14580 | char *kwnames[] = { | |
14581 | NULL | |
14582 | }; | |
14583 | ||
14584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
14585 | { | |
0439c23b | 14586 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14588 | result = (wxRadioButton *)new wxRadioButton(); | |
14589 | ||
14590 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14591 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14592 | } |
14593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
c32bde28 | 14600 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14601 | PyObject *resultobj; |
14602 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14603 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14604 | int arg3 = (int) -1 ; |
14605 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14606 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
14607 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14608 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14609 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14610 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14611 | long arg7 = (long) 0 ; | |
14612 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14613 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14614 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
14615 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14616 | bool result; | |
ae8162c8 | 14617 | bool temp4 = false ; |
d55e5bfc RD |
14618 | wxPoint temp5 ; |
14619 | wxSize temp6 ; | |
ae8162c8 | 14620 | bool temp9 = false ; |
d55e5bfc RD |
14621 | PyObject * obj0 = 0 ; |
14622 | PyObject * obj1 = 0 ; | |
14623 | PyObject * obj2 = 0 ; | |
14624 | PyObject * obj3 = 0 ; | |
14625 | PyObject * obj4 = 0 ; | |
14626 | PyObject * obj5 = 0 ; | |
14627 | PyObject * obj6 = 0 ; | |
14628 | PyObject * obj7 = 0 ; | |
14629 | PyObject * obj8 = 0 ; | |
14630 | char *kwnames[] = { | |
14631 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14632 | }; | |
14633 | ||
248ed943 | 14634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
14635 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14636 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14637 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14638 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 14639 | if (obj2) { |
093d3ff1 RD |
14640 | { |
14641 | arg3 = (int)(SWIG_As_int(obj2)); | |
14642 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14643 | } | |
248ed943 RD |
14644 | } |
14645 | if (obj3) { | |
14646 | { | |
14647 | arg4 = wxString_in_helper(obj3); | |
14648 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14649 | temp4 = true; |
248ed943 | 14650 | } |
d55e5bfc RD |
14651 | } |
14652 | if (obj4) { | |
14653 | { | |
14654 | arg5 = &temp5; | |
14655 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14656 | } | |
14657 | } | |
14658 | if (obj5) { | |
14659 | { | |
14660 | arg6 = &temp6; | |
14661 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14662 | } | |
14663 | } | |
14664 | if (obj6) { | |
093d3ff1 RD |
14665 | { |
14666 | arg7 = (long)(SWIG_As_long(obj6)); | |
14667 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14668 | } | |
d55e5bfc RD |
14669 | } |
14670 | if (obj7) { | |
093d3ff1 RD |
14671 | { |
14672 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14673 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14674 | if (arg8 == NULL) { | |
14675 | SWIG_null_ref("wxValidator"); | |
14676 | } | |
14677 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
14678 | } |
14679 | } | |
14680 | if (obj8) { | |
14681 | { | |
14682 | arg9 = wxString_in_helper(obj8); | |
14683 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 14684 | temp9 = true; |
d55e5bfc RD |
14685 | } |
14686 | } | |
14687 | { | |
14688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14689 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14690 | ||
14691 | wxPyEndAllowThreads(__tstate); | |
14692 | if (PyErr_Occurred()) SWIG_fail; | |
14693 | } | |
14694 | { | |
14695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14696 | } | |
14697 | { | |
14698 | if (temp4) | |
14699 | delete arg4; | |
14700 | } | |
14701 | { | |
14702 | if (temp9) | |
14703 | delete arg9; | |
14704 | } | |
14705 | return resultobj; | |
14706 | fail: | |
14707 | { | |
14708 | if (temp4) | |
14709 | delete arg4; | |
14710 | } | |
14711 | { | |
14712 | if (temp9) | |
14713 | delete arg9; | |
14714 | } | |
14715 | return NULL; | |
14716 | } | |
14717 | ||
14718 | ||
c32bde28 | 14719 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14720 | PyObject *resultobj; |
14721 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14722 | bool result; | |
14723 | PyObject * obj0 = 0 ; | |
14724 | char *kwnames[] = { | |
14725 | (char *) "self", NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
14731 | { |
14732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14733 | result = (bool)(arg1)->GetValue(); | |
14734 | ||
14735 | wxPyEndAllowThreads(__tstate); | |
14736 | if (PyErr_Occurred()) SWIG_fail; | |
14737 | } | |
14738 | { | |
14739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14740 | } | |
14741 | return resultobj; | |
14742 | fail: | |
14743 | return NULL; | |
14744 | } | |
14745 | ||
14746 | ||
c32bde28 | 14747 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14748 | PyObject *resultobj; |
14749 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14750 | bool arg2 ; | |
14751 | PyObject * obj0 = 0 ; | |
14752 | PyObject * obj1 = 0 ; | |
14753 | char *kwnames[] = { | |
14754 | (char *) "self",(char *) "value", NULL | |
14755 | }; | |
14756 | ||
14757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14760 | { | |
14761 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14762 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14763 | } | |
d55e5bfc RD |
14764 | { |
14765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14766 | (arg1)->SetValue(arg2); | |
14767 | ||
14768 | wxPyEndAllowThreads(__tstate); | |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
14770 | } | |
14771 | Py_INCREF(Py_None); resultobj = Py_None; | |
14772 | return resultobj; | |
14773 | fail: | |
14774 | return NULL; | |
14775 | } | |
14776 | ||
14777 | ||
c32bde28 | 14778 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 14779 | PyObject *resultobj; |
093d3ff1 | 14780 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
14781 | wxVisualAttributes result; |
14782 | PyObject * obj0 = 0 ; | |
14783 | char *kwnames[] = { | |
14784 | (char *) "variant", NULL | |
14785 | }; | |
14786 | ||
14787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14788 | if (obj0) { | |
093d3ff1 RD |
14789 | { |
14790 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14792 | } | |
f20a2e1f RD |
14793 | } |
14794 | { | |
19272049 | 14795 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14797 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14798 | ||
14799 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14800 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14801 | } |
14802 | { | |
14803 | wxVisualAttributes * resultptr; | |
093d3ff1 | 14804 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
14805 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14806 | } | |
14807 | return resultobj; | |
14808 | fail: | |
14809 | return NULL; | |
14810 | } | |
14811 | ||
14812 | ||
c32bde28 | 14813 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14814 | PyObject *obj; |
14815 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14816 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
14817 | Py_INCREF(obj); | |
14818 | return Py_BuildValue((char *)""); | |
14819 | } | |
c32bde28 | 14820 | static int _wrap_SliderNameStr_set(PyObject *) { |
d55e5bfc RD |
14821 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
14822 | return 1; | |
14823 | } | |
14824 | ||
14825 | ||
093d3ff1 | 14826 | static PyObject *_wrap_SliderNameStr_get(void) { |
d55e5bfc RD |
14827 | PyObject *pyobj; |
14828 | ||
14829 | { | |
14830 | #if wxUSE_UNICODE | |
14831 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14832 | #else | |
14833 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14834 | #endif | |
14835 | } | |
14836 | return pyobj; | |
14837 | } | |
14838 | ||
14839 | ||
c32bde28 | 14840 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14841 | PyObject *resultobj; |
14842 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14843 | int arg2 = (int) -1 ; |
14844 | int arg3 = (int) 0 ; | |
14845 | int arg4 = (int) 0 ; | |
14846 | int arg5 = (int) 100 ; | |
d55e5bfc RD |
14847 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
14848 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
14849 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
14850 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
14851 | long arg8 = (long) wxSL_HORIZONTAL ; | |
14852 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
14853 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
14854 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
14855 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
14856 | wxSlider *result; | |
14857 | wxPoint temp6 ; | |
14858 | wxSize temp7 ; | |
ae8162c8 | 14859 | bool temp10 = false ; |
d55e5bfc RD |
14860 | PyObject * obj0 = 0 ; |
14861 | PyObject * obj1 = 0 ; | |
14862 | PyObject * obj2 = 0 ; | |
14863 | PyObject * obj3 = 0 ; | |
14864 | PyObject * obj4 = 0 ; | |
14865 | PyObject * obj5 = 0 ; | |
14866 | PyObject * obj6 = 0 ; | |
14867 | PyObject * obj7 = 0 ; | |
14868 | PyObject * obj8 = 0 ; | |
14869 | PyObject * obj9 = 0 ; | |
14870 | char *kwnames[] = { | |
14871 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14872 | }; | |
14873 | ||
248ed943 | 14874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
093d3ff1 RD |
14875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14877 | if (obj1) { |
093d3ff1 RD |
14878 | { |
14879 | arg2 = (int)(SWIG_As_int(obj1)); | |
14880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14881 | } | |
248ed943 RD |
14882 | } |
14883 | if (obj2) { | |
093d3ff1 RD |
14884 | { |
14885 | arg3 = (int)(SWIG_As_int(obj2)); | |
14886 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14887 | } | |
248ed943 RD |
14888 | } |
14889 | if (obj3) { | |
093d3ff1 RD |
14890 | { |
14891 | arg4 = (int)(SWIG_As_int(obj3)); | |
14892 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14893 | } | |
248ed943 RD |
14894 | } |
14895 | if (obj4) { | |
093d3ff1 RD |
14896 | { |
14897 | arg5 = (int)(SWIG_As_int(obj4)); | |
14898 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14899 | } | |
248ed943 | 14900 | } |
d55e5bfc RD |
14901 | if (obj5) { |
14902 | { | |
14903 | arg6 = &temp6; | |
14904 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
14905 | } | |
14906 | } | |
14907 | if (obj6) { | |
14908 | { | |
14909 | arg7 = &temp7; | |
14910 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
14911 | } | |
14912 | } | |
14913 | if (obj7) { | |
093d3ff1 RD |
14914 | { |
14915 | arg8 = (long)(SWIG_As_long(obj7)); | |
14916 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14917 | } | |
d55e5bfc RD |
14918 | } |
14919 | if (obj8) { | |
093d3ff1 RD |
14920 | { |
14921 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14922 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14923 | if (arg9 == NULL) { | |
14924 | SWIG_null_ref("wxValidator"); | |
14925 | } | |
14926 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d55e5bfc RD |
14927 | } |
14928 | } | |
14929 | if (obj9) { | |
14930 | { | |
14931 | arg10 = wxString_in_helper(obj9); | |
14932 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 14933 | temp10 = true; |
d55e5bfc RD |
14934 | } |
14935 | } | |
14936 | { | |
0439c23b | 14937 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14939 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
14940 | ||
14941 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14942 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14943 | } |
14944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
14945 | { | |
14946 | if (temp10) | |
14947 | delete arg10; | |
14948 | } | |
14949 | return resultobj; | |
14950 | fail: | |
14951 | { | |
14952 | if (temp10) | |
14953 | delete arg10; | |
14954 | } | |
14955 | return NULL; | |
14956 | } | |
14957 | ||
14958 | ||
c32bde28 | 14959 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14960 | PyObject *resultobj; |
14961 | wxSlider *result; | |
14962 | char *kwnames[] = { | |
14963 | NULL | |
14964 | }; | |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
14967 | { | |
0439c23b | 14968 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14970 | result = (wxSlider *)new wxSlider(); | |
14971 | ||
14972 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14973 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14974 | } |
14975 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
14976 | return resultobj; | |
14977 | fail: | |
14978 | return NULL; | |
14979 | } | |
14980 | ||
14981 | ||
c32bde28 | 14982 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14983 | PyObject *resultobj; |
14984 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14985 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14986 | int arg3 = (int) -1 ; |
14987 | int arg4 = (int) 0 ; | |
14988 | int arg5 = (int) 0 ; | |
14989 | int arg6 = (int) 100 ; | |
d55e5bfc RD |
14990 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
14991 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
14992 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
14993 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
14994 | long arg9 = (long) wxSL_HORIZONTAL ; | |
14995 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
14996 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
14997 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
14998 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
14999 | bool result; | |
15000 | wxPoint temp7 ; | |
15001 | wxSize temp8 ; | |
ae8162c8 | 15002 | bool temp11 = false ; |
d55e5bfc RD |
15003 | PyObject * obj0 = 0 ; |
15004 | PyObject * obj1 = 0 ; | |
15005 | PyObject * obj2 = 0 ; | |
15006 | PyObject * obj3 = 0 ; | |
15007 | PyObject * obj4 = 0 ; | |
15008 | PyObject * obj5 = 0 ; | |
15009 | PyObject * obj6 = 0 ; | |
15010 | PyObject * obj7 = 0 ; | |
15011 | PyObject * obj8 = 0 ; | |
15012 | PyObject * obj9 = 0 ; | |
15013 | PyObject * obj10 = 0 ; | |
15014 | char *kwnames[] = { | |
15015 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15016 | }; | |
15017 | ||
248ed943 | 15018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
093d3ff1 RD |
15019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15021 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15022 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 15023 | if (obj2) { |
093d3ff1 RD |
15024 | { |
15025 | arg3 = (int)(SWIG_As_int(obj2)); | |
15026 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15027 | } | |
248ed943 RD |
15028 | } |
15029 | if (obj3) { | |
093d3ff1 RD |
15030 | { |
15031 | arg4 = (int)(SWIG_As_int(obj3)); | |
15032 | if (SWIG_arg_fail(4)) SWIG_fail; | |
15033 | } | |
248ed943 RD |
15034 | } |
15035 | if (obj4) { | |
093d3ff1 RD |
15036 | { |
15037 | arg5 = (int)(SWIG_As_int(obj4)); | |
15038 | if (SWIG_arg_fail(5)) SWIG_fail; | |
15039 | } | |
248ed943 RD |
15040 | } |
15041 | if (obj5) { | |
093d3ff1 RD |
15042 | { |
15043 | arg6 = (int)(SWIG_As_int(obj5)); | |
15044 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15045 | } | |
248ed943 | 15046 | } |
d55e5bfc RD |
15047 | if (obj6) { |
15048 | { | |
15049 | arg7 = &temp7; | |
15050 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
15051 | } | |
15052 | } | |
15053 | if (obj7) { | |
15054 | { | |
15055 | arg8 = &temp8; | |
15056 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
15057 | } | |
15058 | } | |
15059 | if (obj8) { | |
093d3ff1 RD |
15060 | { |
15061 | arg9 = (long)(SWIG_As_long(obj8)); | |
15062 | if (SWIG_arg_fail(9)) SWIG_fail; | |
15063 | } | |
d55e5bfc RD |
15064 | } |
15065 | if (obj9) { | |
093d3ff1 RD |
15066 | { |
15067 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15068 | if (SWIG_arg_fail(10)) SWIG_fail; | |
15069 | if (arg10 == NULL) { | |
15070 | SWIG_null_ref("wxValidator"); | |
15071 | } | |
15072 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d55e5bfc RD |
15073 | } |
15074 | } | |
15075 | if (obj10) { | |
15076 | { | |
15077 | arg11 = wxString_in_helper(obj10); | |
15078 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 15079 | temp11 = true; |
d55e5bfc RD |
15080 | } |
15081 | } | |
15082 | { | |
15083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15084 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
15085 | ||
15086 | wxPyEndAllowThreads(__tstate); | |
15087 | if (PyErr_Occurred()) SWIG_fail; | |
15088 | } | |
15089 | { | |
15090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15091 | } | |
15092 | { | |
15093 | if (temp11) | |
15094 | delete arg11; | |
15095 | } | |
15096 | return resultobj; | |
15097 | fail: | |
15098 | { | |
15099 | if (temp11) | |
15100 | delete arg11; | |
15101 | } | |
15102 | return NULL; | |
15103 | } | |
15104 | ||
15105 | ||
c32bde28 | 15106 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15107 | PyObject *resultobj; |
15108 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15109 | int result; | |
15110 | PyObject * obj0 = 0 ; | |
15111 | char *kwnames[] = { | |
15112 | (char *) "self", NULL | |
15113 | }; | |
15114 | ||
15115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15116 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15117 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15118 | { |
15119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15120 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
15121 | ||
15122 | wxPyEndAllowThreads(__tstate); | |
15123 | if (PyErr_Occurred()) SWIG_fail; | |
15124 | } | |
093d3ff1 RD |
15125 | { |
15126 | resultobj = SWIG_From_int((int)(result)); | |
15127 | } | |
d55e5bfc RD |
15128 | return resultobj; |
15129 | fail: | |
15130 | return NULL; | |
15131 | } | |
15132 | ||
15133 | ||
c32bde28 | 15134 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15135 | PyObject *resultobj; |
15136 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15137 | int arg2 ; | |
15138 | PyObject * obj0 = 0 ; | |
15139 | PyObject * obj1 = 0 ; | |
15140 | char *kwnames[] = { | |
15141 | (char *) "self",(char *) "value", NULL | |
15142 | }; | |
15143 | ||
15144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15147 | { | |
15148 | arg2 = (int)(SWIG_As_int(obj1)); | |
15149 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15150 | } | |
d55e5bfc RD |
15151 | { |
15152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15153 | (arg1)->SetValue(arg2); | |
15154 | ||
15155 | wxPyEndAllowThreads(__tstate); | |
15156 | if (PyErr_Occurred()) SWIG_fail; | |
15157 | } | |
15158 | Py_INCREF(Py_None); resultobj = Py_None; | |
15159 | return resultobj; | |
15160 | fail: | |
15161 | return NULL; | |
15162 | } | |
15163 | ||
15164 | ||
c32bde28 | 15165 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15166 | PyObject *resultobj; |
15167 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15168 | int arg2 ; | |
15169 | int arg3 ; | |
15170 | PyObject * obj0 = 0 ; | |
15171 | PyObject * obj1 = 0 ; | |
15172 | PyObject * obj2 = 0 ; | |
15173 | char *kwnames[] = { | |
15174 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
15175 | }; | |
15176 | ||
15177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15180 | { | |
15181 | arg2 = (int)(SWIG_As_int(obj1)); | |
15182 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15183 | } | |
15184 | { | |
15185 | arg3 = (int)(SWIG_As_int(obj2)); | |
15186 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15187 | } | |
d55e5bfc RD |
15188 | { |
15189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15190 | (arg1)->SetRange(arg2,arg3); | |
15191 | ||
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | Py_INCREF(Py_None); resultobj = Py_None; | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
c32bde28 | 15202 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15203 | PyObject *resultobj; |
15204 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15205 | int result; | |
15206 | PyObject * obj0 = 0 ; | |
15207 | char *kwnames[] = { | |
15208 | (char *) "self", NULL | |
15209 | }; | |
15210 | ||
15211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15212 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15213 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15214 | { |
15215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15216 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
15217 | ||
15218 | wxPyEndAllowThreads(__tstate); | |
15219 | if (PyErr_Occurred()) SWIG_fail; | |
15220 | } | |
093d3ff1 RD |
15221 | { |
15222 | resultobj = SWIG_From_int((int)(result)); | |
15223 | } | |
d55e5bfc RD |
15224 | return resultobj; |
15225 | fail: | |
15226 | return NULL; | |
15227 | } | |
15228 | ||
15229 | ||
c32bde28 | 15230 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15231 | PyObject *resultobj; |
15232 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15233 | int result; | |
15234 | PyObject * obj0 = 0 ; | |
15235 | char *kwnames[] = { | |
15236 | (char *) "self", NULL | |
15237 | }; | |
15238 | ||
15239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15242 | { |
15243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15244 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
15245 | ||
15246 | wxPyEndAllowThreads(__tstate); | |
15247 | if (PyErr_Occurred()) SWIG_fail; | |
15248 | } | |
093d3ff1 RD |
15249 | { |
15250 | resultobj = SWIG_From_int((int)(result)); | |
15251 | } | |
d55e5bfc RD |
15252 | return resultobj; |
15253 | fail: | |
15254 | return NULL; | |
15255 | } | |
15256 | ||
15257 | ||
c32bde28 | 15258 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15259 | PyObject *resultobj; |
15260 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15261 | int arg2 ; | |
15262 | PyObject * obj0 = 0 ; | |
15263 | PyObject * obj1 = 0 ; | |
15264 | char *kwnames[] = { | |
15265 | (char *) "self",(char *) "minValue", NULL | |
15266 | }; | |
15267 | ||
15268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15271 | { | |
15272 | arg2 = (int)(SWIG_As_int(obj1)); | |
15273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15274 | } | |
d55e5bfc RD |
15275 | { |
15276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15277 | (arg1)->SetMin(arg2); | |
15278 | ||
15279 | wxPyEndAllowThreads(__tstate); | |
15280 | if (PyErr_Occurred()) SWIG_fail; | |
15281 | } | |
15282 | Py_INCREF(Py_None); resultobj = Py_None; | |
15283 | return resultobj; | |
15284 | fail: | |
15285 | return NULL; | |
15286 | } | |
15287 | ||
15288 | ||
c32bde28 | 15289 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15290 | PyObject *resultobj; |
15291 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15292 | int arg2 ; | |
15293 | PyObject * obj0 = 0 ; | |
15294 | PyObject * obj1 = 0 ; | |
15295 | char *kwnames[] = { | |
15296 | (char *) "self",(char *) "maxValue", NULL | |
15297 | }; | |
15298 | ||
15299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15302 | { | |
15303 | arg2 = (int)(SWIG_As_int(obj1)); | |
15304 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15305 | } | |
d55e5bfc RD |
15306 | { |
15307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15308 | (arg1)->SetMax(arg2); | |
15309 | ||
15310 | wxPyEndAllowThreads(__tstate); | |
15311 | if (PyErr_Occurred()) SWIG_fail; | |
15312 | } | |
15313 | Py_INCREF(Py_None); resultobj = Py_None; | |
15314 | return resultobj; | |
15315 | fail: | |
15316 | return NULL; | |
15317 | } | |
15318 | ||
15319 | ||
c32bde28 | 15320 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15321 | PyObject *resultobj; |
15322 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15323 | int arg2 ; | |
15324 | PyObject * obj0 = 0 ; | |
15325 | PyObject * obj1 = 0 ; | |
15326 | char *kwnames[] = { | |
15327 | (char *) "self",(char *) "lineSize", NULL | |
15328 | }; | |
15329 | ||
15330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15333 | { | |
15334 | arg2 = (int)(SWIG_As_int(obj1)); | |
15335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15336 | } | |
d55e5bfc RD |
15337 | { |
15338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15339 | (arg1)->SetLineSize(arg2); | |
15340 | ||
15341 | wxPyEndAllowThreads(__tstate); | |
15342 | if (PyErr_Occurred()) SWIG_fail; | |
15343 | } | |
15344 | Py_INCREF(Py_None); resultobj = Py_None; | |
15345 | return resultobj; | |
15346 | fail: | |
15347 | return NULL; | |
15348 | } | |
15349 | ||
15350 | ||
c32bde28 | 15351 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15352 | PyObject *resultobj; |
15353 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15354 | int arg2 ; | |
15355 | PyObject * obj0 = 0 ; | |
15356 | PyObject * obj1 = 0 ; | |
15357 | char *kwnames[] = { | |
15358 | (char *) "self",(char *) "pageSize", NULL | |
15359 | }; | |
15360 | ||
15361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15364 | { | |
15365 | arg2 = (int)(SWIG_As_int(obj1)); | |
15366 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15367 | } | |
d55e5bfc RD |
15368 | { |
15369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15370 | (arg1)->SetPageSize(arg2); | |
15371 | ||
15372 | wxPyEndAllowThreads(__tstate); | |
15373 | if (PyErr_Occurred()) SWIG_fail; | |
15374 | } | |
15375 | Py_INCREF(Py_None); resultobj = Py_None; | |
15376 | return resultobj; | |
15377 | fail: | |
15378 | return NULL; | |
15379 | } | |
15380 | ||
15381 | ||
c32bde28 | 15382 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15383 | PyObject *resultobj; |
15384 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15385 | int result; | |
15386 | PyObject * obj0 = 0 ; | |
15387 | char *kwnames[] = { | |
15388 | (char *) "self", NULL | |
15389 | }; | |
15390 | ||
15391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15394 | { |
15395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15396 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
15397 | ||
15398 | wxPyEndAllowThreads(__tstate); | |
15399 | if (PyErr_Occurred()) SWIG_fail; | |
15400 | } | |
093d3ff1 RD |
15401 | { |
15402 | resultobj = SWIG_From_int((int)(result)); | |
15403 | } | |
d55e5bfc RD |
15404 | return resultobj; |
15405 | fail: | |
15406 | return NULL; | |
15407 | } | |
15408 | ||
15409 | ||
c32bde28 | 15410 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15411 | PyObject *resultobj; |
15412 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15413 | int result; | |
15414 | PyObject * obj0 = 0 ; | |
15415 | char *kwnames[] = { | |
15416 | (char *) "self", NULL | |
15417 | }; | |
15418 | ||
15419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15422 | { |
15423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15424 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
15425 | ||
15426 | wxPyEndAllowThreads(__tstate); | |
15427 | if (PyErr_Occurred()) SWIG_fail; | |
15428 | } | |
093d3ff1 RD |
15429 | { |
15430 | resultobj = SWIG_From_int((int)(result)); | |
15431 | } | |
d55e5bfc RD |
15432 | return resultobj; |
15433 | fail: | |
15434 | return NULL; | |
15435 | } | |
15436 | ||
15437 | ||
c32bde28 | 15438 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15439 | PyObject *resultobj; |
15440 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15441 | int arg2 ; | |
15442 | PyObject * obj0 = 0 ; | |
15443 | PyObject * obj1 = 0 ; | |
15444 | char *kwnames[] = { | |
15445 | (char *) "self",(char *) "lenPixels", NULL | |
15446 | }; | |
15447 | ||
15448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15451 | { | |
15452 | arg2 = (int)(SWIG_As_int(obj1)); | |
15453 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15454 | } | |
d55e5bfc RD |
15455 | { |
15456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15457 | (arg1)->SetThumbLength(arg2); | |
15458 | ||
15459 | wxPyEndAllowThreads(__tstate); | |
15460 | if (PyErr_Occurred()) SWIG_fail; | |
15461 | } | |
15462 | Py_INCREF(Py_None); resultobj = Py_None; | |
15463 | return resultobj; | |
15464 | fail: | |
15465 | return NULL; | |
15466 | } | |
15467 | ||
15468 | ||
c32bde28 | 15469 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15470 | PyObject *resultobj; |
15471 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15472 | int result; | |
15473 | PyObject * obj0 = 0 ; | |
15474 | char *kwnames[] = { | |
15475 | (char *) "self", NULL | |
15476 | }; | |
15477 | ||
15478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15481 | { |
15482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15483 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
15484 | ||
15485 | wxPyEndAllowThreads(__tstate); | |
15486 | if (PyErr_Occurred()) SWIG_fail; | |
15487 | } | |
093d3ff1 RD |
15488 | { |
15489 | resultobj = SWIG_From_int((int)(result)); | |
15490 | } | |
d55e5bfc RD |
15491 | return resultobj; |
15492 | fail: | |
15493 | return NULL; | |
15494 | } | |
15495 | ||
15496 | ||
c32bde28 | 15497 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15498 | PyObject *resultobj; |
15499 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15500 | int arg2 ; | |
15501 | int arg3 = (int) 1 ; | |
15502 | PyObject * obj0 = 0 ; | |
15503 | PyObject * obj1 = 0 ; | |
15504 | PyObject * obj2 = 0 ; | |
15505 | char *kwnames[] = { | |
15506 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
15507 | }; | |
15508 | ||
15509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15512 | { | |
15513 | arg2 = (int)(SWIG_As_int(obj1)); | |
15514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15515 | } | |
d55e5bfc | 15516 | if (obj2) { |
093d3ff1 RD |
15517 | { |
15518 | arg3 = (int)(SWIG_As_int(obj2)); | |
15519 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15520 | } | |
d55e5bfc RD |
15521 | } |
15522 | { | |
15523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15524 | (arg1)->SetTickFreq(arg2,arg3); | |
15525 | ||
15526 | wxPyEndAllowThreads(__tstate); | |
15527 | if (PyErr_Occurred()) SWIG_fail; | |
15528 | } | |
15529 | Py_INCREF(Py_None); resultobj = Py_None; | |
15530 | return resultobj; | |
15531 | fail: | |
15532 | return NULL; | |
15533 | } | |
15534 | ||
15535 | ||
c32bde28 | 15536 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15537 | PyObject *resultobj; |
15538 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15539 | int result; | |
15540 | PyObject * obj0 = 0 ; | |
15541 | char *kwnames[] = { | |
15542 | (char *) "self", NULL | |
15543 | }; | |
15544 | ||
15545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15548 | { |
15549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15550 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
15551 | ||
15552 | wxPyEndAllowThreads(__tstate); | |
15553 | if (PyErr_Occurred()) SWIG_fail; | |
15554 | } | |
093d3ff1 RD |
15555 | { |
15556 | resultobj = SWIG_From_int((int)(result)); | |
15557 | } | |
d55e5bfc RD |
15558 | return resultobj; |
15559 | fail: | |
15560 | return NULL; | |
15561 | } | |
15562 | ||
15563 | ||
c32bde28 | 15564 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15565 | PyObject *resultobj; |
15566 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15567 | PyObject * obj0 = 0 ; | |
15568 | char *kwnames[] = { | |
15569 | (char *) "self", NULL | |
15570 | }; | |
15571 | ||
15572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15575 | { |
15576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15577 | (arg1)->ClearTicks(); | |
15578 | ||
15579 | wxPyEndAllowThreads(__tstate); | |
15580 | if (PyErr_Occurred()) SWIG_fail; | |
15581 | } | |
15582 | Py_INCREF(Py_None); resultobj = Py_None; | |
15583 | return resultobj; | |
15584 | fail: | |
15585 | return NULL; | |
15586 | } | |
15587 | ||
15588 | ||
c32bde28 | 15589 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15590 | PyObject *resultobj; |
15591 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15592 | int arg2 ; | |
15593 | PyObject * obj0 = 0 ; | |
15594 | PyObject * obj1 = 0 ; | |
15595 | char *kwnames[] = { | |
15596 | (char *) "self",(char *) "tickPos", NULL | |
15597 | }; | |
15598 | ||
15599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15602 | { | |
15603 | arg2 = (int)(SWIG_As_int(obj1)); | |
15604 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15605 | } | |
d55e5bfc RD |
15606 | { |
15607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15608 | (arg1)->SetTick(arg2); | |
15609 | ||
15610 | wxPyEndAllowThreads(__tstate); | |
15611 | if (PyErr_Occurred()) SWIG_fail; | |
15612 | } | |
15613 | Py_INCREF(Py_None); resultobj = Py_None; | |
15614 | return resultobj; | |
15615 | fail: | |
15616 | return NULL; | |
15617 | } | |
15618 | ||
15619 | ||
c32bde28 | 15620 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15621 | PyObject *resultobj; |
15622 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15623 | PyObject * obj0 = 0 ; | |
15624 | char *kwnames[] = { | |
15625 | (char *) "self", NULL | |
15626 | }; | |
15627 | ||
15628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15631 | { |
15632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15633 | (arg1)->ClearSel(); | |
15634 | ||
15635 | wxPyEndAllowThreads(__tstate); | |
15636 | if (PyErr_Occurred()) SWIG_fail; | |
15637 | } | |
15638 | Py_INCREF(Py_None); resultobj = Py_None; | |
15639 | return resultobj; | |
15640 | fail: | |
15641 | return NULL; | |
15642 | } | |
15643 | ||
15644 | ||
c32bde28 | 15645 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15646 | PyObject *resultobj; |
15647 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15648 | int result; | |
15649 | PyObject * obj0 = 0 ; | |
15650 | char *kwnames[] = { | |
15651 | (char *) "self", NULL | |
15652 | }; | |
15653 | ||
15654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15657 | { |
15658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15659 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
15660 | ||
15661 | wxPyEndAllowThreads(__tstate); | |
15662 | if (PyErr_Occurred()) SWIG_fail; | |
15663 | } | |
093d3ff1 RD |
15664 | { |
15665 | resultobj = SWIG_From_int((int)(result)); | |
15666 | } | |
d55e5bfc RD |
15667 | return resultobj; |
15668 | fail: | |
15669 | return NULL; | |
15670 | } | |
15671 | ||
15672 | ||
c32bde28 | 15673 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15674 | PyObject *resultobj; |
15675 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15676 | int result; | |
15677 | PyObject * obj0 = 0 ; | |
15678 | char *kwnames[] = { | |
15679 | (char *) "self", NULL | |
15680 | }; | |
15681 | ||
15682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
15685 | { |
15686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15687 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
15688 | ||
15689 | wxPyEndAllowThreads(__tstate); | |
15690 | if (PyErr_Occurred()) SWIG_fail; | |
15691 | } | |
093d3ff1 RD |
15692 | { |
15693 | resultobj = SWIG_From_int((int)(result)); | |
15694 | } | |
d55e5bfc RD |
15695 | return resultobj; |
15696 | fail: | |
15697 | return NULL; | |
15698 | } | |
15699 | ||
15700 | ||
c32bde28 | 15701 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15702 | PyObject *resultobj; |
15703 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15704 | int arg2 ; | |
15705 | int arg3 ; | |
15706 | PyObject * obj0 = 0 ; | |
15707 | PyObject * obj1 = 0 ; | |
15708 | PyObject * obj2 = 0 ; | |
15709 | char *kwnames[] = { | |
15710 | (char *) "self",(char *) "min",(char *) "max", NULL | |
15711 | }; | |
15712 | ||
15713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
15714 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15715 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15716 | { | |
15717 | arg2 = (int)(SWIG_As_int(obj1)); | |
15718 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15719 | } | |
15720 | { | |
15721 | arg3 = (int)(SWIG_As_int(obj2)); | |
15722 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15723 | } | |
d55e5bfc RD |
15724 | { |
15725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15726 | (arg1)->SetSelection(arg2,arg3); | |
15727 | ||
15728 | wxPyEndAllowThreads(__tstate); | |
15729 | if (PyErr_Occurred()) SWIG_fail; | |
15730 | } | |
15731 | Py_INCREF(Py_None); resultobj = Py_None; | |
15732 | return resultobj; | |
15733 | fail: | |
15734 | return NULL; | |
15735 | } | |
15736 | ||
15737 | ||
c32bde28 | 15738 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 15739 | PyObject *resultobj; |
093d3ff1 | 15740 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
15741 | wxVisualAttributes result; |
15742 | PyObject * obj0 = 0 ; | |
15743 | char *kwnames[] = { | |
15744 | (char *) "variant", NULL | |
15745 | }; | |
15746 | ||
15747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15748 | if (obj0) { | |
093d3ff1 RD |
15749 | { |
15750 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
15751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15752 | } | |
f20a2e1f RD |
15753 | } |
15754 | { | |
19272049 | 15755 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
15756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15757 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15758 | ||
15759 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15760 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
15761 | } |
15762 | { | |
15763 | wxVisualAttributes * resultptr; | |
093d3ff1 | 15764 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
15765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
15766 | } | |
15767 | return resultobj; | |
15768 | fail: | |
15769 | return NULL; | |
15770 | } | |
15771 | ||
15772 | ||
c32bde28 | 15773 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15774 | PyObject *obj; |
15775 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15776 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
15777 | Py_INCREF(obj); | |
15778 | return Py_BuildValue((char *)""); | |
15779 | } | |
c32bde28 | 15780 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
d55e5bfc RD |
15781 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
15782 | return 1; | |
15783 | } | |
15784 | ||
15785 | ||
093d3ff1 | 15786 | static PyObject *_wrap_ToggleButtonNameStr_get(void) { |
d55e5bfc RD |
15787 | PyObject *pyobj; |
15788 | ||
15789 | { | |
15790 | #if wxUSE_UNICODE | |
15791 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15792 | #else | |
15793 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15794 | #endif | |
15795 | } | |
15796 | return pyobj; | |
15797 | } | |
15798 | ||
15799 | ||
c32bde28 | 15800 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15801 | PyObject *resultobj; |
15802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
15803 | int arg2 = (int) -1 ; |
15804 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15805 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
15806 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15807 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15808 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15809 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15810 | long arg6 = (long) 0 ; | |
15811 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
15812 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
15813 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
15814 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15815 | wxToggleButton *result; | |
ae8162c8 | 15816 | bool temp3 = false ; |
d55e5bfc RD |
15817 | wxPoint temp4 ; |
15818 | wxSize temp5 ; | |
ae8162c8 | 15819 | bool temp8 = false ; |
d55e5bfc RD |
15820 | PyObject * obj0 = 0 ; |
15821 | PyObject * obj1 = 0 ; | |
15822 | PyObject * obj2 = 0 ; | |
15823 | PyObject * obj3 = 0 ; | |
15824 | PyObject * obj4 = 0 ; | |
15825 | PyObject * obj5 = 0 ; | |
15826 | PyObject * obj6 = 0 ; | |
15827 | PyObject * obj7 = 0 ; | |
15828 | char *kwnames[] = { | |
15829 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15830 | }; | |
15831 | ||
248ed943 | 15832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
15833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
15834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 15835 | if (obj1) { |
093d3ff1 RD |
15836 | { |
15837 | arg2 = (int)(SWIG_As_int(obj1)); | |
15838 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15839 | } | |
248ed943 RD |
15840 | } |
15841 | if (obj2) { | |
15842 | { | |
15843 | arg3 = wxString_in_helper(obj2); | |
15844 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15845 | temp3 = true; |
248ed943 | 15846 | } |
d55e5bfc RD |
15847 | } |
15848 | if (obj3) { | |
15849 | { | |
15850 | arg4 = &temp4; | |
15851 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15852 | } | |
15853 | } | |
15854 | if (obj4) { | |
15855 | { | |
15856 | arg5 = &temp5; | |
15857 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15858 | } | |
15859 | } | |
15860 | if (obj5) { | |
093d3ff1 RD |
15861 | { |
15862 | arg6 = (long)(SWIG_As_long(obj5)); | |
15863 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15864 | } | |
d55e5bfc RD |
15865 | } |
15866 | if (obj6) { | |
093d3ff1 RD |
15867 | { |
15868 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15869 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15870 | if (arg7 == NULL) { | |
15871 | SWIG_null_ref("wxValidator"); | |
15872 | } | |
15873 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
15874 | } |
15875 | } | |
15876 | if (obj7) { | |
15877 | { | |
15878 | arg8 = wxString_in_helper(obj7); | |
15879 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 15880 | temp8 = true; |
d55e5bfc RD |
15881 | } |
15882 | } | |
15883 | { | |
0439c23b | 15884 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15886 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
15887 | ||
15888 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15889 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15890 | } |
15891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
15892 | { | |
15893 | if (temp3) | |
15894 | delete arg3; | |
15895 | } | |
15896 | { | |
15897 | if (temp8) | |
15898 | delete arg8; | |
15899 | } | |
15900 | return resultobj; | |
15901 | fail: | |
15902 | { | |
15903 | if (temp3) | |
15904 | delete arg3; | |
15905 | } | |
15906 | { | |
15907 | if (temp8) | |
15908 | delete arg8; | |
15909 | } | |
15910 | return NULL; | |
15911 | } | |
15912 | ||
15913 | ||
c32bde28 | 15914 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15915 | PyObject *resultobj; |
15916 | wxToggleButton *result; | |
15917 | char *kwnames[] = { | |
15918 | NULL | |
15919 | }; | |
15920 | ||
15921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
15922 | { | |
0439c23b | 15923 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15925 | result = (wxToggleButton *)new wxToggleButton(); | |
15926 | ||
15927 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15928 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15929 | } |
15930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
15931 | return resultobj; | |
15932 | fail: | |
15933 | return NULL; | |
15934 | } | |
15935 | ||
15936 | ||
c32bde28 | 15937 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15938 | PyObject *resultobj; |
15939 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15940 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
15941 | int arg3 = (int) -1 ; |
15942 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15943 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
15944 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
15945 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15946 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15947 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15948 | long arg7 = (long) 0 ; | |
15949 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
15950 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
15951 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
15952 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15953 | bool result; | |
ae8162c8 | 15954 | bool temp4 = false ; |
d55e5bfc RD |
15955 | wxPoint temp5 ; |
15956 | wxSize temp6 ; | |
ae8162c8 | 15957 | bool temp9 = false ; |
d55e5bfc RD |
15958 | PyObject * obj0 = 0 ; |
15959 | PyObject * obj1 = 0 ; | |
15960 | PyObject * obj2 = 0 ; | |
15961 | PyObject * obj3 = 0 ; | |
15962 | PyObject * obj4 = 0 ; | |
15963 | PyObject * obj5 = 0 ; | |
15964 | PyObject * obj6 = 0 ; | |
15965 | PyObject * obj7 = 0 ; | |
15966 | PyObject * obj8 = 0 ; | |
15967 | char *kwnames[] = { | |
15968 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15969 | }; | |
15970 | ||
248ed943 | 15971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
15972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15974 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15975 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 15976 | if (obj2) { |
093d3ff1 RD |
15977 | { |
15978 | arg3 = (int)(SWIG_As_int(obj2)); | |
15979 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15980 | } | |
248ed943 RD |
15981 | } |
15982 | if (obj3) { | |
15983 | { | |
15984 | arg4 = wxString_in_helper(obj3); | |
15985 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 15986 | temp4 = true; |
248ed943 | 15987 | } |
d55e5bfc RD |
15988 | } |
15989 | if (obj4) { | |
15990 | { | |
15991 | arg5 = &temp5; | |
15992 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15993 | } | |
15994 | } | |
15995 | if (obj5) { | |
15996 | { | |
15997 | arg6 = &temp6; | |
15998 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15999 | } | |
16000 | } | |
16001 | if (obj6) { | |
093d3ff1 RD |
16002 | { |
16003 | arg7 = (long)(SWIG_As_long(obj6)); | |
16004 | if (SWIG_arg_fail(7)) SWIG_fail; | |
16005 | } | |
d55e5bfc RD |
16006 | } |
16007 | if (obj7) { | |
093d3ff1 RD |
16008 | { |
16009 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
16010 | if (SWIG_arg_fail(8)) SWIG_fail; | |
16011 | if (arg8 == NULL) { | |
16012 | SWIG_null_ref("wxValidator"); | |
16013 | } | |
16014 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d55e5bfc RD |
16015 | } |
16016 | } | |
16017 | if (obj8) { | |
16018 | { | |
16019 | arg9 = wxString_in_helper(obj8); | |
16020 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 16021 | temp9 = true; |
d55e5bfc RD |
16022 | } |
16023 | } | |
16024 | { | |
16025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16026 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
16027 | ||
16028 | wxPyEndAllowThreads(__tstate); | |
16029 | if (PyErr_Occurred()) SWIG_fail; | |
16030 | } | |
16031 | { | |
16032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16033 | } | |
16034 | { | |
16035 | if (temp4) | |
16036 | delete arg4; | |
16037 | } | |
16038 | { | |
16039 | if (temp9) | |
16040 | delete arg9; | |
16041 | } | |
16042 | return resultobj; | |
16043 | fail: | |
16044 | { | |
16045 | if (temp4) | |
16046 | delete arg4; | |
16047 | } | |
16048 | { | |
16049 | if (temp9) | |
16050 | delete arg9; | |
16051 | } | |
16052 | return NULL; | |
16053 | } | |
16054 | ||
16055 | ||
c32bde28 | 16056 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16057 | PyObject *resultobj; |
16058 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
16059 | bool arg2 ; | |
16060 | PyObject * obj0 = 0 ; | |
16061 | PyObject * obj1 = 0 ; | |
16062 | char *kwnames[] = { | |
16063 | (char *) "self",(char *) "value", NULL | |
16064 | }; | |
16065 | ||
16066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16069 | { | |
16070 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16072 | } | |
d55e5bfc RD |
16073 | { |
16074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16075 | (arg1)->SetValue(arg2); | |
16076 | ||
16077 | wxPyEndAllowThreads(__tstate); | |
16078 | if (PyErr_Occurred()) SWIG_fail; | |
16079 | } | |
16080 | Py_INCREF(Py_None); resultobj = Py_None; | |
16081 | return resultobj; | |
16082 | fail: | |
16083 | return NULL; | |
16084 | } | |
16085 | ||
16086 | ||
c32bde28 | 16087 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16088 | PyObject *resultobj; |
16089 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
16090 | bool result; | |
16091 | PyObject * obj0 = 0 ; | |
16092 | char *kwnames[] = { | |
16093 | (char *) "self", NULL | |
16094 | }; | |
16095 | ||
16096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16099 | { |
16100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16101 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
16102 | ||
16103 | wxPyEndAllowThreads(__tstate); | |
16104 | if (PyErr_Occurred()) SWIG_fail; | |
16105 | } | |
16106 | { | |
16107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16108 | } | |
16109 | return resultobj; | |
16110 | fail: | |
16111 | return NULL; | |
16112 | } | |
16113 | ||
16114 | ||
c32bde28 | 16115 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16116 | PyObject *resultobj; |
16117 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
16118 | wxString *arg2 = 0 ; | |
ae8162c8 | 16119 | bool temp2 = false ; |
d55e5bfc RD |
16120 | PyObject * obj0 = 0 ; |
16121 | PyObject * obj1 = 0 ; | |
16122 | char *kwnames[] = { | |
16123 | (char *) "self",(char *) "label", NULL | |
16124 | }; | |
16125 | ||
16126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16129 | { |
16130 | arg2 = wxString_in_helper(obj1); | |
16131 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16132 | temp2 = true; |
d55e5bfc RD |
16133 | } |
16134 | { | |
16135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16136 | (arg1)->SetLabel((wxString const &)*arg2); | |
16137 | ||
16138 | wxPyEndAllowThreads(__tstate); | |
16139 | if (PyErr_Occurred()) SWIG_fail; | |
16140 | } | |
16141 | Py_INCREF(Py_None); resultobj = Py_None; | |
16142 | { | |
16143 | if (temp2) | |
16144 | delete arg2; | |
16145 | } | |
16146 | return resultobj; | |
16147 | fail: | |
16148 | { | |
16149 | if (temp2) | |
16150 | delete arg2; | |
16151 | } | |
16152 | return NULL; | |
16153 | } | |
16154 | ||
16155 | ||
c32bde28 | 16156 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 16157 | PyObject *resultobj; |
093d3ff1 | 16158 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
16159 | wxVisualAttributes result; |
16160 | PyObject * obj0 = 0 ; | |
16161 | char *kwnames[] = { | |
16162 | (char *) "variant", NULL | |
16163 | }; | |
16164 | ||
16165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
16166 | if (obj0) { | |
093d3ff1 RD |
16167 | { |
16168 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16170 | } | |
f20a2e1f RD |
16171 | } |
16172 | { | |
19272049 | 16173 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
16174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16175 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
16176 | ||
16177 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16178 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
16179 | } |
16180 | { | |
16181 | wxVisualAttributes * resultptr; | |
093d3ff1 | 16182 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
16183 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16184 | } | |
16185 | return resultobj; | |
16186 | fail: | |
16187 | return NULL; | |
16188 | } | |
16189 | ||
16190 | ||
c32bde28 | 16191 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16192 | PyObject *obj; |
16193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16194 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
16195 | Py_INCREF(obj); | |
16196 | return Py_BuildValue((char *)""); | |
16197 | } | |
51b83b37 RD |
16198 | static int _wrap_NotebookNameStr_set(PyObject *) { |
16199 | PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only."); | |
d55e5bfc RD |
16200 | return 1; |
16201 | } | |
16202 | ||
16203 | ||
51b83b37 | 16204 | static PyObject *_wrap_NotebookNameStr_get(void) { |
d55e5bfc RD |
16205 | PyObject *pyobj; |
16206 | ||
16207 | { | |
16208 | #if wxUSE_UNICODE | |
51b83b37 | 16209 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc | 16210 | #else |
51b83b37 | 16211 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
d55e5bfc RD |
16212 | #endif |
16213 | } | |
16214 | return pyobj; | |
16215 | } | |
16216 | ||
16217 | ||
8ac8dba0 | 16218 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16219 | PyObject *resultobj; |
8ac8dba0 | 16220 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16221 | size_t result; |
16222 | PyObject * obj0 = 0 ; | |
16223 | char *kwnames[] = { | |
16224 | (char *) "self", NULL | |
16225 | }; | |
16226 | ||
8ac8dba0 | 16227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16228 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16229 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16230 | { |
16231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16232 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); |
d55e5bfc RD |
16233 | |
16234 | wxPyEndAllowThreads(__tstate); | |
16235 | if (PyErr_Occurred()) SWIG_fail; | |
16236 | } | |
093d3ff1 RD |
16237 | { |
16238 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
16239 | } | |
d55e5bfc RD |
16240 | return resultobj; |
16241 | fail: | |
16242 | return NULL; | |
16243 | } | |
16244 | ||
16245 | ||
8ac8dba0 | 16246 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16247 | PyObject *resultobj; |
8ac8dba0 | 16248 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16249 | size_t arg2 ; |
16250 | wxWindow *result; | |
16251 | PyObject * obj0 = 0 ; | |
16252 | PyObject * obj1 = 0 ; | |
16253 | char *kwnames[] = { | |
16254 | (char *) "self",(char *) "n", NULL | |
16255 | }; | |
16256 | ||
8ac8dba0 | 16257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16260 | { | |
16261 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16262 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16263 | } | |
d55e5bfc RD |
16264 | { |
16265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16266 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
16267 | ||
16268 | wxPyEndAllowThreads(__tstate); | |
16269 | if (PyErr_Occurred()) SWIG_fail; | |
16270 | } | |
16271 | { | |
412d302d | 16272 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16273 | } |
16274 | return resultobj; | |
16275 | fail: | |
16276 | return NULL; | |
16277 | } | |
16278 | ||
16279 | ||
8ac8dba0 | 16280 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
8fb0e70a | 16281 | PyObject *resultobj; |
8ac8dba0 | 16282 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
8fb0e70a RD |
16283 | wxWindow *result; |
16284 | PyObject * obj0 = 0 ; | |
16285 | char *kwnames[] = { | |
16286 | (char *) "self", NULL | |
16287 | }; | |
16288 | ||
8ac8dba0 | 16289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
16292 | { |
16293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16294 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); |
8fb0e70a RD |
16295 | |
16296 | wxPyEndAllowThreads(__tstate); | |
16297 | if (PyErr_Occurred()) SWIG_fail; | |
16298 | } | |
16299 | { | |
16300 | resultobj = wxPyMake_wxObject(result, 0); | |
16301 | } | |
16302 | return resultobj; | |
16303 | fail: | |
16304 | return NULL; | |
16305 | } | |
16306 | ||
16307 | ||
8ac8dba0 | 16308 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16309 | PyObject *resultobj; |
8ac8dba0 | 16310 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16311 | int result; |
16312 | PyObject * obj0 = 0 ; | |
16313 | char *kwnames[] = { | |
16314 | (char *) "self", NULL | |
16315 | }; | |
16316 | ||
8ac8dba0 | 16317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16320 | { |
16321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16322 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); |
d55e5bfc RD |
16323 | |
16324 | wxPyEndAllowThreads(__tstate); | |
16325 | if (PyErr_Occurred()) SWIG_fail; | |
16326 | } | |
093d3ff1 RD |
16327 | { |
16328 | resultobj = SWIG_From_int((int)(result)); | |
16329 | } | |
d55e5bfc RD |
16330 | return resultobj; |
16331 | fail: | |
16332 | return NULL; | |
16333 | } | |
16334 | ||
16335 | ||
8ac8dba0 | 16336 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16337 | PyObject *resultobj; |
8ac8dba0 | 16338 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16339 | size_t arg2 ; |
16340 | wxString *arg3 = 0 ; | |
16341 | bool result; | |
ae8162c8 | 16342 | bool temp3 = false ; |
d55e5bfc RD |
16343 | PyObject * obj0 = 0 ; |
16344 | PyObject * obj1 = 0 ; | |
16345 | PyObject * obj2 = 0 ; | |
16346 | char *kwnames[] = { | |
16347 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
16348 | }; | |
16349 | ||
8ac8dba0 | 16350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16353 | { | |
16354 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16356 | } | |
d55e5bfc RD |
16357 | { |
16358 | arg3 = wxString_in_helper(obj2); | |
16359 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16360 | temp3 = true; |
d55e5bfc RD |
16361 | } |
16362 | { | |
16363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16364 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
16365 | ||
16366 | wxPyEndAllowThreads(__tstate); | |
16367 | if (PyErr_Occurred()) SWIG_fail; | |
16368 | } | |
16369 | { | |
16370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16371 | } | |
16372 | { | |
16373 | if (temp3) | |
16374 | delete arg3; | |
16375 | } | |
16376 | return resultobj; | |
16377 | fail: | |
16378 | { | |
16379 | if (temp3) | |
16380 | delete arg3; | |
16381 | } | |
16382 | return NULL; | |
16383 | } | |
16384 | ||
16385 | ||
8ac8dba0 | 16386 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16387 | PyObject *resultobj; |
8ac8dba0 | 16388 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16389 | size_t arg2 ; |
16390 | wxString result; | |
16391 | PyObject * obj0 = 0 ; | |
16392 | PyObject * obj1 = 0 ; | |
16393 | char *kwnames[] = { | |
16394 | (char *) "self",(char *) "n", NULL | |
16395 | }; | |
16396 | ||
8ac8dba0 | 16397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16400 | { | |
16401 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16403 | } | |
d55e5bfc RD |
16404 | { |
16405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16406 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); |
d55e5bfc RD |
16407 | |
16408 | wxPyEndAllowThreads(__tstate); | |
16409 | if (PyErr_Occurred()) SWIG_fail; | |
16410 | } | |
16411 | { | |
16412 | #if wxUSE_UNICODE | |
16413 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16414 | #else | |
16415 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16416 | #endif | |
16417 | } | |
16418 | return resultobj; | |
16419 | fail: | |
16420 | return NULL; | |
16421 | } | |
16422 | ||
16423 | ||
8ac8dba0 | 16424 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16425 | PyObject *resultobj; |
8ac8dba0 | 16426 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16427 | wxImageList *arg2 = (wxImageList *) 0 ; |
16428 | PyObject * obj0 = 0 ; | |
16429 | PyObject * obj1 = 0 ; | |
16430 | char *kwnames[] = { | |
16431 | (char *) "self",(char *) "imageList", NULL | |
16432 | }; | |
16433 | ||
8ac8dba0 | 16434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16435 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16436 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16437 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
16438 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16439 | { |
16440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16441 | (arg1)->SetImageList(arg2); | |
16442 | ||
16443 | wxPyEndAllowThreads(__tstate); | |
16444 | if (PyErr_Occurred()) SWIG_fail; | |
16445 | } | |
16446 | Py_INCREF(Py_None); resultobj = Py_None; | |
16447 | return resultobj; | |
16448 | fail: | |
16449 | return NULL; | |
16450 | } | |
16451 | ||
16452 | ||
8ac8dba0 | 16453 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16454 | PyObject *resultobj; |
8ac8dba0 | 16455 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16456 | wxImageList *arg2 = (wxImageList *) 0 ; |
16457 | PyObject * obj0 = 0 ; | |
16458 | PyObject * obj1 = 0 ; | |
16459 | char *kwnames[] = { | |
16460 | (char *) "self",(char *) "imageList", NULL | |
16461 | }; | |
16462 | ||
8ac8dba0 | 16463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16466 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
16467 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16468 | { |
16469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16470 | (arg1)->AssignImageList(arg2); | |
16471 | ||
16472 | wxPyEndAllowThreads(__tstate); | |
16473 | if (PyErr_Occurred()) SWIG_fail; | |
16474 | } | |
16475 | Py_INCREF(Py_None); resultobj = Py_None; | |
16476 | return resultobj; | |
16477 | fail: | |
16478 | return NULL; | |
16479 | } | |
16480 | ||
16481 | ||
8ac8dba0 | 16482 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16483 | PyObject *resultobj; |
8ac8dba0 | 16484 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16485 | wxImageList *result; |
16486 | PyObject * obj0 = 0 ; | |
16487 | char *kwnames[] = { | |
16488 | (char *) "self", NULL | |
16489 | }; | |
16490 | ||
8ac8dba0 | 16491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16494 | { |
16495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16496 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); |
d55e5bfc RD |
16497 | |
16498 | wxPyEndAllowThreads(__tstate); | |
16499 | if (PyErr_Occurred()) SWIG_fail; | |
16500 | } | |
16501 | { | |
412d302d | 16502 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16503 | } |
16504 | return resultobj; | |
16505 | fail: | |
16506 | return NULL; | |
16507 | } | |
16508 | ||
16509 | ||
8ac8dba0 | 16510 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16511 | PyObject *resultobj; |
8ac8dba0 | 16512 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16513 | size_t arg2 ; |
16514 | int result; | |
16515 | PyObject * obj0 = 0 ; | |
16516 | PyObject * obj1 = 0 ; | |
16517 | char *kwnames[] = { | |
16518 | (char *) "self",(char *) "n", NULL | |
16519 | }; | |
16520 | ||
8ac8dba0 | 16521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16524 | { | |
16525 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16526 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16527 | } | |
d55e5bfc RD |
16528 | { |
16529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16530 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); |
d55e5bfc RD |
16531 | |
16532 | wxPyEndAllowThreads(__tstate); | |
16533 | if (PyErr_Occurred()) SWIG_fail; | |
16534 | } | |
093d3ff1 RD |
16535 | { |
16536 | resultobj = SWIG_From_int((int)(result)); | |
16537 | } | |
d55e5bfc RD |
16538 | return resultobj; |
16539 | fail: | |
16540 | return NULL; | |
16541 | } | |
16542 | ||
16543 | ||
8ac8dba0 | 16544 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16545 | PyObject *resultobj; |
8ac8dba0 | 16546 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16547 | size_t arg2 ; |
16548 | int arg3 ; | |
16549 | bool result; | |
16550 | PyObject * obj0 = 0 ; | |
16551 | PyObject * obj1 = 0 ; | |
16552 | PyObject * obj2 = 0 ; | |
16553 | char *kwnames[] = { | |
16554 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
16555 | }; | |
16556 | ||
8ac8dba0 | 16557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16560 | { | |
16561 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16563 | } | |
16564 | { | |
16565 | arg3 = (int)(SWIG_As_int(obj2)); | |
16566 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16567 | } | |
d55e5bfc RD |
16568 | { |
16569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16570 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
16571 | ||
16572 | wxPyEndAllowThreads(__tstate); | |
16573 | if (PyErr_Occurred()) SWIG_fail; | |
16574 | } | |
16575 | { | |
16576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16577 | } | |
16578 | return resultobj; | |
16579 | fail: | |
16580 | return NULL; | |
16581 | } | |
16582 | ||
16583 | ||
8ac8dba0 | 16584 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16585 | PyObject *resultobj; |
8ac8dba0 | 16586 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16587 | wxSize *arg2 = 0 ; |
16588 | wxSize temp2 ; | |
16589 | PyObject * obj0 = 0 ; | |
16590 | PyObject * obj1 = 0 ; | |
16591 | char *kwnames[] = { | |
16592 | (char *) "self",(char *) "size", NULL | |
16593 | }; | |
16594 | ||
8ac8dba0 | 16595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16598 | { |
16599 | arg2 = &temp2; | |
16600 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16601 | } | |
16602 | { | |
16603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16604 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
16605 | ||
16606 | wxPyEndAllowThreads(__tstate); | |
16607 | if (PyErr_Occurred()) SWIG_fail; | |
16608 | } | |
16609 | Py_INCREF(Py_None); resultobj = Py_None; | |
16610 | return resultobj; | |
16611 | fail: | |
16612 | return NULL; | |
16613 | } | |
16614 | ||
16615 | ||
8ac8dba0 | 16616 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16617 | PyObject *resultobj; |
8ac8dba0 | 16618 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16619 | wxSize *arg2 = 0 ; |
16620 | wxSize result; | |
16621 | wxSize temp2 ; | |
16622 | PyObject * obj0 = 0 ; | |
16623 | PyObject * obj1 = 0 ; | |
16624 | char *kwnames[] = { | |
16625 | (char *) "self",(char *) "sizePage", NULL | |
16626 | }; | |
16627 | ||
8ac8dba0 | 16628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16631 | { |
16632 | arg2 = &temp2; | |
16633 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16634 | } | |
16635 | { | |
16636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16637 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); |
d55e5bfc RD |
16638 | |
16639 | wxPyEndAllowThreads(__tstate); | |
16640 | if (PyErr_Occurred()) SWIG_fail; | |
16641 | } | |
16642 | { | |
16643 | wxSize * resultptr; | |
093d3ff1 | 16644 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
16645 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
16646 | } | |
16647 | return resultobj; | |
16648 | fail: | |
16649 | return NULL; | |
16650 | } | |
16651 | ||
16652 | ||
8ac8dba0 | 16653 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16654 | PyObject *resultobj; |
8ac8dba0 | 16655 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16656 | size_t arg2 ; |
16657 | bool result; | |
16658 | PyObject * obj0 = 0 ; | |
16659 | PyObject * obj1 = 0 ; | |
16660 | char *kwnames[] = { | |
16661 | (char *) "self",(char *) "n", NULL | |
16662 | }; | |
16663 | ||
8ac8dba0 | 16664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16667 | { | |
16668 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16669 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16670 | } | |
d55e5bfc RD |
16671 | { |
16672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16673 | result = (bool)(arg1)->DeletePage(arg2); | |
16674 | ||
16675 | wxPyEndAllowThreads(__tstate); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | { | |
16679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16680 | } | |
16681 | return resultobj; | |
16682 | fail: | |
16683 | return NULL; | |
16684 | } | |
16685 | ||
16686 | ||
8ac8dba0 | 16687 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16688 | PyObject *resultobj; |
8ac8dba0 | 16689 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16690 | size_t arg2 ; |
16691 | bool result; | |
16692 | PyObject * obj0 = 0 ; | |
16693 | PyObject * obj1 = 0 ; | |
16694 | char *kwnames[] = { | |
16695 | (char *) "self",(char *) "n", NULL | |
16696 | }; | |
16697 | ||
8ac8dba0 | 16698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16701 | { | |
16702 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16703 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16704 | } | |
d55e5bfc RD |
16705 | { |
16706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16707 | result = (bool)(arg1)->RemovePage(arg2); | |
16708 | ||
16709 | wxPyEndAllowThreads(__tstate); | |
16710 | if (PyErr_Occurred()) SWIG_fail; | |
16711 | } | |
16712 | { | |
16713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16714 | } | |
16715 | return resultobj; | |
16716 | fail: | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
8ac8dba0 | 16721 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16722 | PyObject *resultobj; |
8ac8dba0 | 16723 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16724 | bool result; |
16725 | PyObject * obj0 = 0 ; | |
16726 | char *kwnames[] = { | |
16727 | (char *) "self", NULL | |
16728 | }; | |
16729 | ||
8ac8dba0 | 16730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16731 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16732 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
16733 | { |
16734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16735 | result = (bool)(arg1)->DeleteAllPages(); | |
16736 | ||
16737 | wxPyEndAllowThreads(__tstate); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | } | |
16740 | { | |
16741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16742 | } | |
16743 | return resultobj; | |
16744 | fail: | |
16745 | return NULL; | |
16746 | } | |
16747 | ||
16748 | ||
8ac8dba0 | 16749 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16750 | PyObject *resultobj; |
8ac8dba0 | 16751 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16752 | wxWindow *arg2 = (wxWindow *) 0 ; |
16753 | wxString *arg3 = 0 ; | |
ae8162c8 | 16754 | bool arg4 = (bool) false ; |
d55e5bfc RD |
16755 | int arg5 = (int) -1 ; |
16756 | bool result; | |
ae8162c8 | 16757 | bool temp3 = false ; |
d55e5bfc RD |
16758 | PyObject * obj0 = 0 ; |
16759 | PyObject * obj1 = 0 ; | |
16760 | PyObject * obj2 = 0 ; | |
16761 | PyObject * obj3 = 0 ; | |
16762 | PyObject * obj4 = 0 ; | |
16763 | char *kwnames[] = { | |
16764 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16765 | }; | |
16766 | ||
8ac8dba0 | 16767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
16768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16770 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16771 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
16772 | { |
16773 | arg3 = wxString_in_helper(obj2); | |
16774 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16775 | temp3 = true; |
d55e5bfc RD |
16776 | } |
16777 | if (obj3) { | |
093d3ff1 RD |
16778 | { |
16779 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
16780 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16781 | } | |
d55e5bfc RD |
16782 | } |
16783 | if (obj4) { | |
093d3ff1 RD |
16784 | { |
16785 | arg5 = (int)(SWIG_As_int(obj4)); | |
16786 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16787 | } | |
d55e5bfc RD |
16788 | } |
16789 | { | |
16790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16791 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
16792 | ||
16793 | wxPyEndAllowThreads(__tstate); | |
16794 | if (PyErr_Occurred()) SWIG_fail; | |
16795 | } | |
16796 | { | |
16797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16798 | } | |
16799 | { | |
16800 | if (temp3) | |
16801 | delete arg3; | |
16802 | } | |
16803 | return resultobj; | |
16804 | fail: | |
16805 | { | |
16806 | if (temp3) | |
16807 | delete arg3; | |
16808 | } | |
16809 | return NULL; | |
16810 | } | |
16811 | ||
16812 | ||
8ac8dba0 | 16813 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16814 | PyObject *resultobj; |
8ac8dba0 | 16815 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16816 | size_t arg2 ; |
16817 | wxWindow *arg3 = (wxWindow *) 0 ; | |
16818 | wxString *arg4 = 0 ; | |
ae8162c8 | 16819 | bool arg5 = (bool) false ; |
d55e5bfc RD |
16820 | int arg6 = (int) -1 ; |
16821 | bool result; | |
ae8162c8 | 16822 | bool temp4 = false ; |
d55e5bfc RD |
16823 | PyObject * obj0 = 0 ; |
16824 | PyObject * obj1 = 0 ; | |
16825 | PyObject * obj2 = 0 ; | |
16826 | PyObject * obj3 = 0 ; | |
16827 | PyObject * obj4 = 0 ; | |
16828 | PyObject * obj5 = 0 ; | |
16829 | char *kwnames[] = { | |
16830 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16831 | }; | |
16832 | ||
8ac8dba0 | 16833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
16834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16836 | { | |
16837 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16838 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16839 | } | |
16840 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16841 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
16842 | { |
16843 | arg4 = wxString_in_helper(obj3); | |
16844 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16845 | temp4 = true; |
d55e5bfc RD |
16846 | } |
16847 | if (obj4) { | |
093d3ff1 RD |
16848 | { |
16849 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
16850 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16851 | } | |
d55e5bfc RD |
16852 | } |
16853 | if (obj5) { | |
093d3ff1 RD |
16854 | { |
16855 | arg6 = (int)(SWIG_As_int(obj5)); | |
16856 | if (SWIG_arg_fail(6)) SWIG_fail; | |
16857 | } | |
d55e5bfc RD |
16858 | } |
16859 | { | |
16860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16861 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
16862 | ||
16863 | wxPyEndAllowThreads(__tstate); | |
16864 | if (PyErr_Occurred()) SWIG_fail; | |
16865 | } | |
16866 | { | |
16867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16868 | } | |
16869 | { | |
16870 | if (temp4) | |
16871 | delete arg4; | |
16872 | } | |
16873 | return resultobj; | |
16874 | fail: | |
16875 | { | |
16876 | if (temp4) | |
16877 | delete arg4; | |
16878 | } | |
16879 | return NULL; | |
16880 | } | |
16881 | ||
16882 | ||
8ac8dba0 | 16883 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16884 | PyObject *resultobj; |
8ac8dba0 | 16885 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d55e5bfc RD |
16886 | size_t arg2 ; |
16887 | int result; | |
16888 | PyObject * obj0 = 0 ; | |
16889 | PyObject * obj1 = 0 ; | |
16890 | char *kwnames[] = { | |
16891 | (char *) "self",(char *) "n", NULL | |
16892 | }; | |
16893 | ||
8ac8dba0 | 16894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16897 | { | |
16898 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16900 | } | |
d55e5bfc RD |
16901 | { |
16902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16903 | result = (int)(arg1)->SetSelection(arg2); | |
16904 | ||
16905 | wxPyEndAllowThreads(__tstate); | |
16906 | if (PyErr_Occurred()) SWIG_fail; | |
16907 | } | |
093d3ff1 RD |
16908 | { |
16909 | resultobj = SWIG_From_int((int)(result)); | |
16910 | } | |
d55e5bfc RD |
16911 | return resultobj; |
16912 | fail: | |
16913 | return NULL; | |
16914 | } | |
16915 | ||
16916 | ||
8ac8dba0 | 16917 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 16918 | PyObject *resultobj; |
8ac8dba0 | 16919 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
ae8162c8 | 16920 | bool arg2 = (bool) true ; |
d55e5bfc RD |
16921 | PyObject * obj0 = 0 ; |
16922 | PyObject * obj1 = 0 ; | |
16923 | char *kwnames[] = { | |
16924 | (char *) "self",(char *) "forward", NULL | |
16925 | }; | |
16926 | ||
8ac8dba0 | 16927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 16930 | if (obj1) { |
093d3ff1 RD |
16931 | { |
16932 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16933 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16934 | } | |
d55e5bfc RD |
16935 | } |
16936 | { | |
16937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16938 | (arg1)->AdvanceSelection(arg2); | |
16939 | ||
16940 | wxPyEndAllowThreads(__tstate); | |
16941 | if (PyErr_Occurred()) SWIG_fail; | |
16942 | } | |
16943 | Py_INCREF(Py_None); resultobj = Py_None; | |
16944 | return resultobj; | |
16945 | fail: | |
16946 | return NULL; | |
16947 | } | |
16948 | ||
16949 | ||
8ac8dba0 | 16950 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 16951 | PyObject *resultobj; |
093d3ff1 | 16952 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
16953 | wxVisualAttributes result; |
16954 | PyObject * obj0 = 0 ; | |
16955 | char *kwnames[] = { | |
16956 | (char *) "variant", NULL | |
16957 | }; | |
16958 | ||
8ac8dba0 | 16959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
f20a2e1f | 16960 | if (obj0) { |
093d3ff1 RD |
16961 | { |
16962 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16964 | } | |
f20a2e1f RD |
16965 | } |
16966 | { | |
19272049 | 16967 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f | 16968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8ac8dba0 | 16969 | result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1); |
f20a2e1f RD |
16970 | |
16971 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16972 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
16973 | } |
16974 | { | |
16975 | wxVisualAttributes * resultptr; | |
093d3ff1 | 16976 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
16977 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16978 | } | |
16979 | return resultobj; | |
16980 | fail: | |
16981 | return NULL; | |
16982 | } | |
16983 | ||
16984 | ||
8ac8dba0 | 16985 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16986 | PyObject *obj; |
16987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 16988 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); |
d55e5bfc RD |
16989 | Py_INCREF(obj); |
16990 | return Py_BuildValue((char *)""); | |
16991 | } | |
8ac8dba0 | 16992 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16993 | PyObject *resultobj; |
16994 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16995 | int arg2 = (int) 0 ; | |
16996 | int arg3 = (int) -1 ; | |
16997 | int arg4 = (int) -1 ; | |
8ac8dba0 | 16998 | wxBookCtrlBaseEvent *result; |
d55e5bfc RD |
16999 | PyObject * obj0 = 0 ; |
17000 | PyObject * obj1 = 0 ; | |
17001 | PyObject * obj2 = 0 ; | |
17002 | PyObject * obj3 = 0 ; | |
17003 | char *kwnames[] = { | |
17004 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17005 | }; | |
17006 | ||
8ac8dba0 | 17007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc | 17008 | if (obj0) { |
093d3ff1 RD |
17009 | { |
17010 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17011 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17012 | } | |
d55e5bfc RD |
17013 | } |
17014 | if (obj1) { | |
093d3ff1 RD |
17015 | { |
17016 | arg2 = (int)(SWIG_As_int(obj1)); | |
17017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17018 | } | |
d55e5bfc RD |
17019 | } |
17020 | if (obj2) { | |
093d3ff1 RD |
17021 | { |
17022 | arg3 = (int)(SWIG_As_int(obj2)); | |
17023 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17024 | } | |
d55e5bfc RD |
17025 | } |
17026 | if (obj3) { | |
093d3ff1 RD |
17027 | { |
17028 | arg4 = (int)(SWIG_As_int(obj3)); | |
17029 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17030 | } | |
d55e5bfc RD |
17031 | } |
17032 | { | |
17033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17034 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
17035 | |
17036 | wxPyEndAllowThreads(__tstate); | |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
17038 | } | |
8ac8dba0 | 17039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); |
d55e5bfc RD |
17040 | return resultobj; |
17041 | fail: | |
17042 | return NULL; | |
17043 | } | |
17044 | ||
17045 | ||
8ac8dba0 | 17046 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 17047 | PyObject *resultobj; |
8ac8dba0 | 17048 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
17049 | int result; |
17050 | PyObject * obj0 = 0 ; | |
17051 | char *kwnames[] = { | |
17052 | (char *) "self", NULL | |
17053 | }; | |
17054 | ||
8ac8dba0 | 17055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17058 | { |
17059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17060 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); |
d55e5bfc RD |
17061 | |
17062 | wxPyEndAllowThreads(__tstate); | |
17063 | if (PyErr_Occurred()) SWIG_fail; | |
17064 | } | |
093d3ff1 RD |
17065 | { |
17066 | resultobj = SWIG_From_int((int)(result)); | |
17067 | } | |
d55e5bfc RD |
17068 | return resultobj; |
17069 | fail: | |
17070 | return NULL; | |
17071 | } | |
17072 | ||
17073 | ||
8ac8dba0 | 17074 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 17075 | PyObject *resultobj; |
8ac8dba0 | 17076 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
17077 | int arg2 ; |
17078 | PyObject * obj0 = 0 ; | |
17079 | PyObject * obj1 = 0 ; | |
17080 | char *kwnames[] = { | |
17081 | (char *) "self",(char *) "nSel", NULL | |
17082 | }; | |
17083 | ||
8ac8dba0 | 17084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17087 | { | |
17088 | arg2 = (int)(SWIG_As_int(obj1)); | |
17089 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17090 | } | |
d55e5bfc RD |
17091 | { |
17092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17093 | (arg1)->SetSelection(arg2); | |
17094 | ||
17095 | wxPyEndAllowThreads(__tstate); | |
17096 | if (PyErr_Occurred()) SWIG_fail; | |
17097 | } | |
17098 | Py_INCREF(Py_None); resultobj = Py_None; | |
17099 | return resultobj; | |
17100 | fail: | |
17101 | return NULL; | |
17102 | } | |
17103 | ||
17104 | ||
8ac8dba0 | 17105 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 17106 | PyObject *resultobj; |
8ac8dba0 | 17107 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
17108 | int result; |
17109 | PyObject * obj0 = 0 ; | |
17110 | char *kwnames[] = { | |
17111 | (char *) "self", NULL | |
17112 | }; | |
17113 | ||
8ac8dba0 | 17114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17117 | { |
17118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17119 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); |
d55e5bfc RD |
17120 | |
17121 | wxPyEndAllowThreads(__tstate); | |
17122 | if (PyErr_Occurred()) SWIG_fail; | |
17123 | } | |
093d3ff1 RD |
17124 | { |
17125 | resultobj = SWIG_From_int((int)(result)); | |
17126 | } | |
d55e5bfc RD |
17127 | return resultobj; |
17128 | fail: | |
17129 | return NULL; | |
17130 | } | |
17131 | ||
17132 | ||
8ac8dba0 | 17133 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 17134 | PyObject *resultobj; |
8ac8dba0 | 17135 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d55e5bfc RD |
17136 | int arg2 ; |
17137 | PyObject * obj0 = 0 ; | |
17138 | PyObject * obj1 = 0 ; | |
17139 | char *kwnames[] = { | |
17140 | (char *) "self",(char *) "nOldSel", NULL | |
17141 | }; | |
17142 | ||
8ac8dba0 | 17143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17146 | { | |
17147 | arg2 = (int)(SWIG_As_int(obj1)); | |
17148 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17149 | } | |
d55e5bfc RD |
17150 | { |
17151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17152 | (arg1)->SetOldSelection(arg2); | |
17153 | ||
17154 | wxPyEndAllowThreads(__tstate); | |
17155 | if (PyErr_Occurred()) SWIG_fail; | |
17156 | } | |
17157 | Py_INCREF(Py_None); resultobj = Py_None; | |
17158 | return resultobj; | |
17159 | fail: | |
17160 | return NULL; | |
17161 | } | |
17162 | ||
17163 | ||
8ac8dba0 | 17164 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17165 | PyObject *obj; |
17166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 17167 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); |
d55e5bfc RD |
17168 | Py_INCREF(obj); |
17169 | return Py_BuildValue((char *)""); | |
17170 | } | |
c32bde28 | 17171 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17172 | PyObject *resultobj; |
17173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17174 | int arg2 = (int) -1 ; | |
17175 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17176 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17177 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17178 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17179 | long arg5 = (long) 0 ; | |
51b83b37 | 17180 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; |
d55e5bfc RD |
17181 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
17182 | wxNotebook *result; | |
17183 | wxPoint temp3 ; | |
17184 | wxSize temp4 ; | |
ae8162c8 | 17185 | bool temp6 = false ; |
d55e5bfc RD |
17186 | PyObject * obj0 = 0 ; |
17187 | PyObject * obj1 = 0 ; | |
17188 | PyObject * obj2 = 0 ; | |
17189 | PyObject * obj3 = 0 ; | |
17190 | PyObject * obj4 = 0 ; | |
17191 | PyObject * obj5 = 0 ; | |
17192 | char *kwnames[] = { | |
17193 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17194 | }; | |
17195 | ||
17196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
17197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 17199 | if (obj1) { |
093d3ff1 RD |
17200 | { |
17201 | arg2 = (int)(SWIG_As_int(obj1)); | |
17202 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17203 | } | |
d55e5bfc RD |
17204 | } |
17205 | if (obj2) { | |
17206 | { | |
17207 | arg3 = &temp3; | |
17208 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17209 | } | |
17210 | } | |
17211 | if (obj3) { | |
17212 | { | |
17213 | arg4 = &temp4; | |
17214 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17215 | } | |
17216 | } | |
17217 | if (obj4) { | |
093d3ff1 RD |
17218 | { |
17219 | arg5 = (long)(SWIG_As_long(obj4)); | |
17220 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17221 | } | |
d55e5bfc RD |
17222 | } |
17223 | if (obj5) { | |
17224 | { | |
17225 | arg6 = wxString_in_helper(obj5); | |
17226 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17227 | temp6 = true; |
d55e5bfc RD |
17228 | } |
17229 | } | |
17230 | { | |
0439c23b | 17231 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17233 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17234 | ||
17235 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17236 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 17237 | } |
b0f7404b | 17238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
17239 | { |
17240 | if (temp6) | |
17241 | delete arg6; | |
17242 | } | |
17243 | return resultobj; | |
17244 | fail: | |
17245 | { | |
17246 | if (temp6) | |
17247 | delete arg6; | |
17248 | } | |
17249 | return NULL; | |
17250 | } | |
17251 | ||
17252 | ||
c32bde28 | 17253 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17254 | PyObject *resultobj; |
17255 | wxNotebook *result; | |
17256 | char *kwnames[] = { | |
17257 | NULL | |
17258 | }; | |
17259 | ||
17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
17261 | { | |
0439c23b | 17262 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17264 | result = (wxNotebook *)new wxNotebook(); | |
17265 | ||
17266 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17267 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 17268 | } |
b0f7404b | 17269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
17270 | return resultobj; |
17271 | fail: | |
17272 | return NULL; | |
17273 | } | |
17274 | ||
17275 | ||
c32bde28 | 17276 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17277 | PyObject *resultobj; |
17278 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17279 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17280 | int arg3 = (int) -1 ; |
d55e5bfc RD |
17281 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17282 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17283 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17284 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17285 | long arg6 = (long) 0 ; | |
51b83b37 | 17286 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; |
d55e5bfc RD |
17287 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
17288 | bool result; | |
17289 | wxPoint temp4 ; | |
17290 | wxSize temp5 ; | |
ae8162c8 | 17291 | bool temp7 = false ; |
d55e5bfc RD |
17292 | PyObject * obj0 = 0 ; |
17293 | PyObject * obj1 = 0 ; | |
17294 | PyObject * obj2 = 0 ; | |
17295 | PyObject * obj3 = 0 ; | |
17296 | PyObject * obj4 = 0 ; | |
17297 | PyObject * obj5 = 0 ; | |
17298 | PyObject * obj6 = 0 ; | |
17299 | char *kwnames[] = { | |
17300 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17301 | }; | |
17302 | ||
248ed943 | 17303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17306 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17307 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17308 | if (obj2) { |
093d3ff1 RD |
17309 | { |
17310 | arg3 = (int)(SWIG_As_int(obj2)); | |
17311 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17312 | } | |
248ed943 | 17313 | } |
d55e5bfc RD |
17314 | if (obj3) { |
17315 | { | |
17316 | arg4 = &temp4; | |
17317 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17318 | } | |
17319 | } | |
17320 | if (obj4) { | |
17321 | { | |
17322 | arg5 = &temp5; | |
17323 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17324 | } | |
17325 | } | |
17326 | if (obj5) { | |
093d3ff1 RD |
17327 | { |
17328 | arg6 = (long)(SWIG_As_long(obj5)); | |
17329 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17330 | } | |
d55e5bfc RD |
17331 | } |
17332 | if (obj6) { | |
17333 | { | |
17334 | arg7 = wxString_in_helper(obj6); | |
17335 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17336 | temp7 = true; |
d55e5bfc RD |
17337 | } |
17338 | } | |
17339 | { | |
17340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17341 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17342 | ||
17343 | wxPyEndAllowThreads(__tstate); | |
17344 | if (PyErr_Occurred()) SWIG_fail; | |
17345 | } | |
17346 | { | |
17347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17348 | } | |
17349 | { | |
17350 | if (temp7) | |
17351 | delete arg7; | |
17352 | } | |
17353 | return resultobj; | |
17354 | fail: | |
17355 | { | |
17356 | if (temp7) | |
17357 | delete arg7; | |
17358 | } | |
17359 | return NULL; | |
17360 | } | |
17361 | ||
17362 | ||
c32bde28 | 17363 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17364 | PyObject *resultobj; |
17365 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17366 | int result; | |
17367 | PyObject * obj0 = 0 ; | |
17368 | char *kwnames[] = { | |
17369 | (char *) "self", NULL | |
17370 | }; | |
17371 | ||
17372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17373 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17375 | { |
17376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17377 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
17378 | ||
17379 | wxPyEndAllowThreads(__tstate); | |
17380 | if (PyErr_Occurred()) SWIG_fail; | |
17381 | } | |
093d3ff1 RD |
17382 | { |
17383 | resultobj = SWIG_From_int((int)(result)); | |
17384 | } | |
d55e5bfc RD |
17385 | return resultobj; |
17386 | fail: | |
17387 | return NULL; | |
17388 | } | |
17389 | ||
17390 | ||
c32bde28 | 17391 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17392 | PyObject *resultobj; |
17393 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17394 | wxSize *arg2 = 0 ; | |
17395 | wxSize temp2 ; | |
17396 | PyObject * obj0 = 0 ; | |
17397 | PyObject * obj1 = 0 ; | |
17398 | char *kwnames[] = { | |
17399 | (char *) "self",(char *) "padding", NULL | |
17400 | }; | |
17401 | ||
17402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17405 | { |
17406 | arg2 = &temp2; | |
17407 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17408 | } | |
17409 | { | |
17410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17411 | (arg1)->SetPadding((wxSize const &)*arg2); | |
17412 | ||
17413 | wxPyEndAllowThreads(__tstate); | |
17414 | if (PyErr_Occurred()) SWIG_fail; | |
17415 | } | |
17416 | Py_INCREF(Py_None); resultobj = Py_None; | |
17417 | return resultobj; | |
17418 | fail: | |
17419 | return NULL; | |
17420 | } | |
17421 | ||
17422 | ||
c32bde28 | 17423 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17424 | PyObject *resultobj; |
17425 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17426 | wxSize *arg2 = 0 ; | |
17427 | wxSize temp2 ; | |
17428 | PyObject * obj0 = 0 ; | |
17429 | PyObject * obj1 = 0 ; | |
17430 | char *kwnames[] = { | |
17431 | (char *) "self",(char *) "sz", NULL | |
17432 | }; | |
17433 | ||
17434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17435 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17436 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17437 | { |
17438 | arg2 = &temp2; | |
17439 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17440 | } | |
17441 | { | |
17442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17443 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
17444 | ||
17445 | wxPyEndAllowThreads(__tstate); | |
17446 | if (PyErr_Occurred()) SWIG_fail; | |
17447 | } | |
17448 | Py_INCREF(Py_None); resultobj = Py_None; | |
17449 | return resultobj; | |
17450 | fail: | |
17451 | return NULL; | |
17452 | } | |
17453 | ||
17454 | ||
c32bde28 | 17455 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17456 | PyObject *resultobj; |
17457 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17458 | wxPoint *arg2 = 0 ; | |
17459 | long *arg3 = (long *) 0 ; | |
17460 | int result; | |
17461 | wxPoint temp2 ; | |
17462 | long temp3 ; | |
c32bde28 | 17463 | int res3 = 0 ; |
d55e5bfc RD |
17464 | PyObject * obj0 = 0 ; |
17465 | PyObject * obj1 = 0 ; | |
17466 | char *kwnames[] = { | |
17467 | (char *) "self",(char *) "pt", NULL | |
17468 | }; | |
17469 | ||
c32bde28 | 17470 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc | 17471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17474 | { |
17475 | arg2 = &temp2; | |
17476 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17477 | } | |
17478 | { | |
17479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17480 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
17481 | ||
17482 | wxPyEndAllowThreads(__tstate); | |
17483 | if (PyErr_Occurred()) SWIG_fail; | |
17484 | } | |
093d3ff1 RD |
17485 | { |
17486 | resultobj = SWIG_From_int((int)(result)); | |
17487 | } | |
c32bde28 RD |
17488 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
17489 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
17490 | return resultobj; |
17491 | fail: | |
17492 | return NULL; | |
17493 | } | |
17494 | ||
17495 | ||
c32bde28 | 17496 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17497 | PyObject *resultobj; |
17498 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17499 | wxSize *arg2 = 0 ; | |
17500 | wxSize result; | |
17501 | wxSize temp2 ; | |
17502 | PyObject * obj0 = 0 ; | |
17503 | PyObject * obj1 = 0 ; | |
17504 | char *kwnames[] = { | |
17505 | (char *) "self",(char *) "sizePage", NULL | |
17506 | }; | |
17507 | ||
17508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17511 | { |
17512 | arg2 = &temp2; | |
17513 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17514 | } | |
17515 | { | |
17516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17517 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
17518 | ||
17519 | wxPyEndAllowThreads(__tstate); | |
17520 | if (PyErr_Occurred()) SWIG_fail; | |
17521 | } | |
17522 | { | |
17523 | wxSize * resultptr; | |
093d3ff1 | 17524 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
17525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
17526 | } | |
17527 | return resultobj; | |
17528 | fail: | |
17529 | return NULL; | |
17530 | } | |
17531 | ||
17532 | ||
091fdbfa RD |
17533 | static PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
17534 | PyObject *resultobj; | |
17535 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17536 | wxColour result; | |
17537 | PyObject * obj0 = 0 ; | |
17538 | char *kwnames[] = { | |
17539 | (char *) "self", NULL | |
17540 | }; | |
17541 | ||
17542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetThemeBackgroundColour",kwnames,&obj0)) goto fail; | |
17543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17545 | { | |
17546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17547 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
17548 | ||
17549 | wxPyEndAllowThreads(__tstate); | |
17550 | if (PyErr_Occurred()) SWIG_fail; | |
17551 | } | |
17552 | { | |
17553 | wxColour * resultptr; | |
17554 | resultptr = new wxColour((wxColour &)(result)); | |
17555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17556 | } | |
17557 | return resultobj; | |
17558 | fail: | |
17559 | return NULL; | |
17560 | } | |
17561 | ||
17562 | ||
c32bde28 | 17563 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 17564 | PyObject *resultobj; |
093d3ff1 | 17565 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
17566 | wxVisualAttributes result; |
17567 | PyObject * obj0 = 0 ; | |
17568 | char *kwnames[] = { | |
17569 | (char *) "variant", NULL | |
17570 | }; | |
17571 | ||
17572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
17573 | if (obj0) { | |
093d3ff1 RD |
17574 | { |
17575 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
17576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17577 | } | |
f20a2e1f RD |
17578 | } |
17579 | { | |
19272049 | 17580 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
17581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17582 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
17583 | ||
17584 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17585 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
17586 | } |
17587 | { | |
17588 | wxVisualAttributes * resultptr; | |
093d3ff1 | 17589 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
17590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
17591 | } | |
17592 | return resultobj; | |
17593 | fail: | |
17594 | return NULL; | |
17595 | } | |
17596 | ||
17597 | ||
c32bde28 | 17598 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17599 | PyObject *obj; |
17600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17601 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
17602 | Py_INCREF(obj); | |
17603 | return Py_BuildValue((char *)""); | |
17604 | } | |
c32bde28 | 17605 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17606 | PyObject *resultobj; |
17607 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17608 | int arg2 = (int) 0 ; | |
17609 | int arg3 = (int) -1 ; | |
17610 | int arg4 = (int) -1 ; | |
17611 | wxNotebookEvent *result; | |
17612 | PyObject * obj0 = 0 ; | |
17613 | PyObject * obj1 = 0 ; | |
17614 | PyObject * obj2 = 0 ; | |
17615 | PyObject * obj3 = 0 ; | |
17616 | char *kwnames[] = { | |
17617 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17618 | }; | |
17619 | ||
17620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17621 | if (obj0) { | |
093d3ff1 RD |
17622 | { |
17623 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17625 | } | |
d55e5bfc RD |
17626 | } |
17627 | if (obj1) { | |
093d3ff1 RD |
17628 | { |
17629 | arg2 = (int)(SWIG_As_int(obj1)); | |
17630 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17631 | } | |
d55e5bfc RD |
17632 | } |
17633 | if (obj2) { | |
093d3ff1 RD |
17634 | { |
17635 | arg3 = (int)(SWIG_As_int(obj2)); | |
17636 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17637 | } | |
d55e5bfc RD |
17638 | } |
17639 | if (obj3) { | |
093d3ff1 RD |
17640 | { |
17641 | arg4 = (int)(SWIG_As_int(obj3)); | |
17642 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17643 | } | |
d55e5bfc RD |
17644 | } |
17645 | { | |
17646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17647 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
17648 | ||
17649 | wxPyEndAllowThreads(__tstate); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
17651 | } | |
17652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
17653 | return resultobj; | |
17654 | fail: | |
17655 | return NULL; | |
17656 | } | |
17657 | ||
17658 | ||
c32bde28 | 17659 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17660 | PyObject *obj; |
17661 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17662 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
17663 | Py_INCREF(obj); | |
17664 | return Py_BuildValue((char *)""); | |
17665 | } | |
c32bde28 | 17666 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17667 | PyObject *resultobj; |
17668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17669 | int arg2 = (int) -1 ; | |
17670 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17671 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17672 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17673 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17674 | long arg5 = (long) 0 ; | |
17675 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17676 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17677 | wxListbook *result; | |
17678 | wxPoint temp3 ; | |
17679 | wxSize temp4 ; | |
ae8162c8 | 17680 | bool temp6 = false ; |
d55e5bfc RD |
17681 | PyObject * obj0 = 0 ; |
17682 | PyObject * obj1 = 0 ; | |
17683 | PyObject * obj2 = 0 ; | |
17684 | PyObject * obj3 = 0 ; | |
17685 | PyObject * obj4 = 0 ; | |
17686 | PyObject * obj5 = 0 ; | |
17687 | char *kwnames[] = { | |
17688 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17689 | }; | |
17690 | ||
17691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
17692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 17694 | if (obj1) { |
093d3ff1 RD |
17695 | { |
17696 | arg2 = (int)(SWIG_As_int(obj1)); | |
17697 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17698 | } | |
d55e5bfc RD |
17699 | } |
17700 | if (obj2) { | |
17701 | { | |
17702 | arg3 = &temp3; | |
17703 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17704 | } | |
17705 | } | |
17706 | if (obj3) { | |
17707 | { | |
17708 | arg4 = &temp4; | |
17709 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17710 | } | |
17711 | } | |
17712 | if (obj4) { | |
093d3ff1 RD |
17713 | { |
17714 | arg5 = (long)(SWIG_As_long(obj4)); | |
17715 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17716 | } | |
d55e5bfc RD |
17717 | } |
17718 | if (obj5) { | |
17719 | { | |
17720 | arg6 = wxString_in_helper(obj5); | |
17721 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17722 | temp6 = true; |
d55e5bfc RD |
17723 | } |
17724 | } | |
17725 | { | |
0439c23b | 17726 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17728 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17729 | ||
17730 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17731 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17732 | } |
17733 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
17734 | { | |
17735 | if (temp6) | |
17736 | delete arg6; | |
17737 | } | |
17738 | return resultobj; | |
17739 | fail: | |
17740 | { | |
17741 | if (temp6) | |
17742 | delete arg6; | |
17743 | } | |
17744 | return NULL; | |
17745 | } | |
17746 | ||
17747 | ||
c32bde28 | 17748 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17749 | PyObject *resultobj; |
17750 | wxListbook *result; | |
17751 | char *kwnames[] = { | |
17752 | NULL | |
17753 | }; | |
17754 | ||
17755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
17756 | { | |
0439c23b | 17757 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17759 | result = (wxListbook *)new wxListbook(); | |
17760 | ||
17761 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17762 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17763 | } |
17764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
17765 | return resultobj; | |
17766 | fail: | |
17767 | return NULL; | |
17768 | } | |
17769 | ||
17770 | ||
c32bde28 | 17771 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17772 | PyObject *resultobj; |
17773 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17774 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17775 | int arg3 = (int) -1 ; |
d55e5bfc RD |
17776 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17777 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17778 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17779 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17780 | long arg6 = (long) 0 ; | |
17781 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17782 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17783 | bool result; | |
17784 | wxPoint temp4 ; | |
17785 | wxSize temp5 ; | |
ae8162c8 | 17786 | bool temp7 = false ; |
d55e5bfc RD |
17787 | PyObject * obj0 = 0 ; |
17788 | PyObject * obj1 = 0 ; | |
17789 | PyObject * obj2 = 0 ; | |
17790 | PyObject * obj3 = 0 ; | |
17791 | PyObject * obj4 = 0 ; | |
17792 | PyObject * obj5 = 0 ; | |
17793 | PyObject * obj6 = 0 ; | |
17794 | char *kwnames[] = { | |
17795 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17796 | }; | |
17797 | ||
248ed943 | 17798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17801 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17802 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17803 | if (obj2) { |
093d3ff1 RD |
17804 | { |
17805 | arg3 = (int)(SWIG_As_int(obj2)); | |
17806 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17807 | } | |
248ed943 | 17808 | } |
d55e5bfc RD |
17809 | if (obj3) { |
17810 | { | |
17811 | arg4 = &temp4; | |
17812 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17813 | } | |
17814 | } | |
17815 | if (obj4) { | |
17816 | { | |
17817 | arg5 = &temp5; | |
17818 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17819 | } | |
17820 | } | |
17821 | if (obj5) { | |
093d3ff1 RD |
17822 | { |
17823 | arg6 = (long)(SWIG_As_long(obj5)); | |
17824 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17825 | } | |
d55e5bfc RD |
17826 | } |
17827 | if (obj6) { | |
17828 | { | |
17829 | arg7 = wxString_in_helper(obj6); | |
17830 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17831 | temp7 = true; |
d55e5bfc RD |
17832 | } |
17833 | } | |
17834 | { | |
17835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17836 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17837 | ||
17838 | wxPyEndAllowThreads(__tstate); | |
17839 | if (PyErr_Occurred()) SWIG_fail; | |
17840 | } | |
17841 | { | |
17842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17843 | } | |
17844 | { | |
17845 | if (temp7) | |
17846 | delete arg7; | |
17847 | } | |
17848 | return resultobj; | |
17849 | fail: | |
17850 | { | |
17851 | if (temp7) | |
17852 | delete arg7; | |
17853 | } | |
17854 | return NULL; | |
17855 | } | |
17856 | ||
17857 | ||
c32bde28 | 17858 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17859 | PyObject *resultobj; |
17860 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17861 | bool result; | |
17862 | PyObject * obj0 = 0 ; | |
17863 | char *kwnames[] = { | |
17864 | (char *) "self", NULL | |
17865 | }; | |
17866 | ||
17867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
17870 | { |
17871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17872 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
17873 | ||
17874 | wxPyEndAllowThreads(__tstate); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
17876 | } | |
17877 | { | |
17878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17879 | } | |
17880 | return resultobj; | |
17881 | fail: | |
17882 | return NULL; | |
17883 | } | |
17884 | ||
17885 | ||
1fbf26be RD |
17886 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
17887 | PyObject *resultobj; | |
17888 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17889 | wxListView *result; | |
17890 | PyObject * obj0 = 0 ; | |
17891 | char *kwnames[] = { | |
17892 | (char *) "self", NULL | |
17893 | }; | |
17894 | ||
17895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1fbf26be RD |
17898 | { |
17899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17900 | result = (wxListView *)(arg1)->GetListView(); | |
17901 | ||
17902 | wxPyEndAllowThreads(__tstate); | |
17903 | if (PyErr_Occurred()) SWIG_fail; | |
17904 | } | |
17905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
17906 | return resultobj; | |
17907 | fail: | |
17908 | return NULL; | |
17909 | } | |
17910 | ||
17911 | ||
c32bde28 | 17912 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17913 | PyObject *obj; |
17914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17915 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
17916 | Py_INCREF(obj); | |
17917 | return Py_BuildValue((char *)""); | |
17918 | } | |
c32bde28 | 17919 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17920 | PyObject *resultobj; |
17921 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17922 | int arg2 = (int) 0 ; | |
17923 | int arg3 = (int) -1 ; | |
17924 | int arg4 = (int) -1 ; | |
17925 | wxListbookEvent *result; | |
17926 | PyObject * obj0 = 0 ; | |
17927 | PyObject * obj1 = 0 ; | |
17928 | PyObject * obj2 = 0 ; | |
17929 | PyObject * obj3 = 0 ; | |
17930 | char *kwnames[] = { | |
17931 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17932 | }; | |
17933 | ||
17934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17935 | if (obj0) { | |
093d3ff1 RD |
17936 | { |
17937 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17939 | } | |
d55e5bfc RD |
17940 | } |
17941 | if (obj1) { | |
093d3ff1 RD |
17942 | { |
17943 | arg2 = (int)(SWIG_As_int(obj1)); | |
17944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17945 | } | |
d55e5bfc RD |
17946 | } |
17947 | if (obj2) { | |
093d3ff1 RD |
17948 | { |
17949 | arg3 = (int)(SWIG_As_int(obj2)); | |
17950 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17951 | } | |
d55e5bfc RD |
17952 | } |
17953 | if (obj3) { | |
093d3ff1 RD |
17954 | { |
17955 | arg4 = (int)(SWIG_As_int(obj3)); | |
17956 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17957 | } | |
d55e5bfc RD |
17958 | } |
17959 | { | |
17960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17961 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
17962 | ||
17963 | wxPyEndAllowThreads(__tstate); | |
17964 | if (PyErr_Occurred()) SWIG_fail; | |
17965 | } | |
17966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
17967 | return resultobj; | |
17968 | fail: | |
17969 | return NULL; | |
17970 | } | |
17971 | ||
17972 | ||
c32bde28 | 17973 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17974 | PyObject *obj; |
17975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17976 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
17977 | Py_INCREF(obj); | |
17978 | return Py_BuildValue((char *)""); | |
17979 | } | |
ae8162c8 RD |
17980 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { |
17981 | PyObject *resultobj; | |
17982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17983 | int arg2 ; | |
17984 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17985 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17986 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17987 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17988 | long arg5 = (long) 0 ; | |
17989 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17990 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17991 | wxChoicebook *result; | |
17992 | wxPoint temp3 ; | |
17993 | wxSize temp4 ; | |
17994 | bool temp6 = false ; | |
17995 | PyObject * obj0 = 0 ; | |
17996 | PyObject * obj1 = 0 ; | |
17997 | PyObject * obj2 = 0 ; | |
17998 | PyObject * obj3 = 0 ; | |
17999 | PyObject * obj4 = 0 ; | |
18000 | PyObject * obj5 = 0 ; | |
18001 | char *kwnames[] = { | |
18002 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18003 | }; | |
18004 | ||
18005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
18006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
18007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18008 | { | |
18009 | arg2 = (int)(SWIG_As_int(obj1)); | |
18010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18011 | } | |
ae8162c8 RD |
18012 | if (obj2) { |
18013 | { | |
18014 | arg3 = &temp3; | |
18015 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18016 | } | |
18017 | } | |
18018 | if (obj3) { | |
18019 | { | |
18020 | arg4 = &temp4; | |
18021 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18022 | } | |
18023 | } | |
18024 | if (obj4) { | |
093d3ff1 RD |
18025 | { |
18026 | arg5 = (long)(SWIG_As_long(obj4)); | |
18027 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18028 | } | |
ae8162c8 RD |
18029 | } |
18030 | if (obj5) { | |
18031 | { | |
18032 | arg6 = wxString_in_helper(obj5); | |
18033 | if (arg6 == NULL) SWIG_fail; | |
18034 | temp6 = true; | |
18035 | } | |
18036 | } | |
18037 | { | |
18038 | if (!wxPyCheckForApp()) SWIG_fail; | |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18041 | ||
18042 | wxPyEndAllowThreads(__tstate); | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | } | |
18045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
18046 | { | |
18047 | if (temp6) | |
18048 | delete arg6; | |
18049 | } | |
18050 | return resultobj; | |
18051 | fail: | |
18052 | { | |
18053 | if (temp6) | |
18054 | delete arg6; | |
18055 | } | |
18056 | return NULL; | |
18057 | } | |
18058 | ||
18059 | ||
18060 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
18061 | PyObject *resultobj; | |
18062 | wxChoicebook *result; | |
18063 | char *kwnames[] = { | |
18064 | NULL | |
18065 | }; | |
18066 | ||
18067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
18068 | { | |
18069 | if (!wxPyCheckForApp()) SWIG_fail; | |
18070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18071 | result = (wxChoicebook *)new wxChoicebook(); | |
18072 | ||
18073 | wxPyEndAllowThreads(__tstate); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
18076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
18077 | return resultobj; | |
18078 | fail: | |
18079 | return NULL; | |
18080 | } | |
18081 | ||
18082 | ||
18083 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
18084 | PyObject *resultobj; | |
18085 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18086 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18087 | int arg3 ; | |
18088 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18089 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18090 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18091 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18092 | long arg6 = (long) 0 ; | |
18093 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18094 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18095 | bool result; | |
18096 | wxPoint temp4 ; | |
18097 | wxSize temp5 ; | |
18098 | bool temp7 = false ; | |
18099 | PyObject * obj0 = 0 ; | |
18100 | PyObject * obj1 = 0 ; | |
18101 | PyObject * obj2 = 0 ; | |
18102 | PyObject * obj3 = 0 ; | |
18103 | PyObject * obj4 = 0 ; | |
18104 | PyObject * obj5 = 0 ; | |
18105 | PyObject * obj6 = 0 ; | |
18106 | char *kwnames[] = { | |
18107 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18108 | }; | |
18109 | ||
18110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
18111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18113 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18114 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18115 | { | |
18116 | arg3 = (int)(SWIG_As_int(obj2)); | |
18117 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18118 | } | |
ae8162c8 RD |
18119 | if (obj3) { |
18120 | { | |
18121 | arg4 = &temp4; | |
18122 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18123 | } | |
18124 | } | |
18125 | if (obj4) { | |
18126 | { | |
18127 | arg5 = &temp5; | |
18128 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18129 | } | |
18130 | } | |
18131 | if (obj5) { | |
093d3ff1 RD |
18132 | { |
18133 | arg6 = (long)(SWIG_As_long(obj5)); | |
18134 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18135 | } | |
ae8162c8 RD |
18136 | } |
18137 | if (obj6) { | |
18138 | { | |
18139 | arg7 = wxString_in_helper(obj6); | |
18140 | if (arg7 == NULL) SWIG_fail; | |
18141 | temp7 = true; | |
18142 | } | |
18143 | } | |
18144 | { | |
18145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18146 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18147 | ||
18148 | wxPyEndAllowThreads(__tstate); | |
18149 | if (PyErr_Occurred()) SWIG_fail; | |
18150 | } | |
18151 | { | |
18152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18153 | } | |
18154 | { | |
18155 | if (temp7) | |
18156 | delete arg7; | |
18157 | } | |
18158 | return resultobj; | |
18159 | fail: | |
18160 | { | |
18161 | if (temp7) | |
18162 | delete arg7; | |
18163 | } | |
18164 | return NULL; | |
18165 | } | |
18166 | ||
18167 | ||
18168 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
18169 | PyObject *resultobj; | |
18170 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18171 | bool result; | |
18172 | PyObject * obj0 = 0 ; | |
18173 | char *kwnames[] = { | |
18174 | (char *) "self", NULL | |
18175 | }; | |
18176 | ||
18177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
18180 | { |
18181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18182 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
18183 | ||
18184 | wxPyEndAllowThreads(__tstate); | |
18185 | if (PyErr_Occurred()) SWIG_fail; | |
18186 | } | |
18187 | { | |
18188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18189 | } | |
18190 | return resultobj; | |
18191 | fail: | |
18192 | return NULL; | |
18193 | } | |
18194 | ||
18195 | ||
70b7a5fe RD |
18196 | static PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
18197 | PyObject *resultobj; | |
18198 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18199 | wxChoice *result; | |
18200 | PyObject * obj0 = 0 ; | |
18201 | char *kwnames[] = { | |
18202 | (char *) "self", NULL | |
18203 | }; | |
18204 | ||
18205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_GetChoiceCtrl",kwnames,&obj0)) goto fail; | |
18206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18208 | { | |
18209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18210 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
18211 | ||
18212 | wxPyEndAllowThreads(__tstate); | |
18213 | if (PyErr_Occurred()) SWIG_fail; | |
18214 | } | |
18215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 0); | |
18216 | return resultobj; | |
18217 | fail: | |
18218 | return NULL; | |
18219 | } | |
18220 | ||
18221 | ||
ae8162c8 RD |
18222 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
18223 | PyObject *resultobj; | |
18224 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18225 | bool result; | |
18226 | PyObject * obj0 = 0 ; | |
18227 | char *kwnames[] = { | |
18228 | (char *) "self", NULL | |
18229 | }; | |
18230 | ||
18231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
ae8162c8 RD |
18234 | { |
18235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18236 | result = (bool)(arg1)->DeleteAllPages(); | |
18237 | ||
18238 | wxPyEndAllowThreads(__tstate); | |
18239 | if (PyErr_Occurred()) SWIG_fail; | |
18240 | } | |
18241 | { | |
18242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18243 | } | |
18244 | return resultobj; | |
18245 | fail: | |
18246 | return NULL; | |
18247 | } | |
18248 | ||
18249 | ||
18250 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
18251 | PyObject *obj; | |
18252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18253 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
18254 | Py_INCREF(obj); | |
18255 | return Py_BuildValue((char *)""); | |
18256 | } | |
18257 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
18258 | PyObject *resultobj; | |
18259 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18260 | int arg2 = (int) 0 ; | |
18261 | int arg3 = (int) -1 ; | |
18262 | int arg4 = (int) -1 ; | |
18263 | wxChoicebookEvent *result; | |
18264 | PyObject * obj0 = 0 ; | |
18265 | PyObject * obj1 = 0 ; | |
18266 | PyObject * obj2 = 0 ; | |
18267 | PyObject * obj3 = 0 ; | |
18268 | char *kwnames[] = { | |
18269 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18270 | }; | |
18271 | ||
18272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18273 | if (obj0) { | |
093d3ff1 RD |
18274 | { |
18275 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
18276 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18277 | } | |
ae8162c8 RD |
18278 | } |
18279 | if (obj1) { | |
093d3ff1 RD |
18280 | { |
18281 | arg2 = (int)(SWIG_As_int(obj1)); | |
18282 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18283 | } | |
ae8162c8 RD |
18284 | } |
18285 | if (obj2) { | |
093d3ff1 RD |
18286 | { |
18287 | arg3 = (int)(SWIG_As_int(obj2)); | |
18288 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18289 | } | |
ae8162c8 RD |
18290 | } |
18291 | if (obj3) { | |
093d3ff1 RD |
18292 | { |
18293 | arg4 = (int)(SWIG_As_int(obj3)); | |
18294 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18295 | } | |
ae8162c8 RD |
18296 | } |
18297 | { | |
18298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18299 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
18300 | ||
18301 | wxPyEndAllowThreads(__tstate); | |
18302 | if (PyErr_Occurred()) SWIG_fail; | |
18303 | } | |
18304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
18305 | return resultobj; | |
18306 | fail: | |
18307 | return NULL; | |
18308 | } | |
18309 | ||
18310 | ||
18311 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
18312 | PyObject *obj; | |
18313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18314 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
18315 | Py_INCREF(obj); | |
18316 | return Py_BuildValue((char *)""); | |
18317 | } | |
c32bde28 | 18318 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18319 | PyObject *resultobj; |
18320 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18321 | int result; | |
18322 | PyObject * obj0 = 0 ; | |
18323 | char *kwnames[] = { | |
18324 | (char *) "self", NULL | |
18325 | }; | |
18326 | ||
18327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18330 | { |
18331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18332 | result = (int)(arg1)->GetId(); | |
18333 | ||
18334 | wxPyEndAllowThreads(__tstate); | |
18335 | if (PyErr_Occurred()) SWIG_fail; | |
18336 | } | |
093d3ff1 RD |
18337 | { |
18338 | resultobj = SWIG_From_int((int)(result)); | |
18339 | } | |
d55e5bfc RD |
18340 | return resultobj; |
18341 | fail: | |
18342 | return NULL; | |
18343 | } | |
18344 | ||
18345 | ||
c32bde28 | 18346 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18347 | PyObject *resultobj; |
18348 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18349 | wxControl *result; | |
18350 | PyObject * obj0 = 0 ; | |
18351 | char *kwnames[] = { | |
18352 | (char *) "self", NULL | |
18353 | }; | |
18354 | ||
18355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18358 | { |
18359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18360 | result = (wxControl *)(arg1)->GetControl(); | |
18361 | ||
18362 | wxPyEndAllowThreads(__tstate); | |
18363 | if (PyErr_Occurred()) SWIG_fail; | |
18364 | } | |
18365 | { | |
412d302d | 18366 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18367 | } |
18368 | return resultobj; | |
18369 | fail: | |
18370 | return NULL; | |
18371 | } | |
18372 | ||
18373 | ||
c32bde28 | 18374 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18375 | PyObject *resultobj; |
18376 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18377 | wxToolBarBase *result; | |
18378 | PyObject * obj0 = 0 ; | |
18379 | char *kwnames[] = { | |
18380 | (char *) "self", NULL | |
18381 | }; | |
18382 | ||
18383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18386 | { |
18387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18388 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
18389 | ||
18390 | wxPyEndAllowThreads(__tstate); | |
18391 | if (PyErr_Occurred()) SWIG_fail; | |
18392 | } | |
18393 | { | |
412d302d | 18394 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18395 | } |
18396 | return resultobj; | |
18397 | fail: | |
18398 | return NULL; | |
18399 | } | |
18400 | ||
18401 | ||
c32bde28 | 18402 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18403 | PyObject *resultobj; |
18404 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18405 | int result; | |
18406 | PyObject * obj0 = 0 ; | |
18407 | char *kwnames[] = { | |
18408 | (char *) "self", NULL | |
18409 | }; | |
18410 | ||
18411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18414 | { |
18415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18416 | result = (int)(arg1)->IsButton(); | |
18417 | ||
18418 | wxPyEndAllowThreads(__tstate); | |
18419 | if (PyErr_Occurred()) SWIG_fail; | |
18420 | } | |
093d3ff1 RD |
18421 | { |
18422 | resultobj = SWIG_From_int((int)(result)); | |
18423 | } | |
d55e5bfc RD |
18424 | return resultobj; |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
c32bde28 | 18430 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18431 | PyObject *resultobj; |
18432 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18433 | int result; | |
18434 | PyObject * obj0 = 0 ; | |
18435 | char *kwnames[] = { | |
18436 | (char *) "self", NULL | |
18437 | }; | |
18438 | ||
18439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18442 | { |
18443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18444 | result = (int)(arg1)->IsControl(); | |
18445 | ||
18446 | wxPyEndAllowThreads(__tstate); | |
18447 | if (PyErr_Occurred()) SWIG_fail; | |
18448 | } | |
093d3ff1 RD |
18449 | { |
18450 | resultobj = SWIG_From_int((int)(result)); | |
18451 | } | |
d55e5bfc RD |
18452 | return resultobj; |
18453 | fail: | |
18454 | return NULL; | |
18455 | } | |
18456 | ||
18457 | ||
c32bde28 | 18458 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18459 | PyObject *resultobj; |
18460 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18461 | int result; | |
18462 | PyObject * obj0 = 0 ; | |
18463 | char *kwnames[] = { | |
18464 | (char *) "self", NULL | |
18465 | }; | |
18466 | ||
18467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18470 | { |
18471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18472 | result = (int)(arg1)->IsSeparator(); | |
18473 | ||
18474 | wxPyEndAllowThreads(__tstate); | |
18475 | if (PyErr_Occurred()) SWIG_fail; | |
18476 | } | |
093d3ff1 RD |
18477 | { |
18478 | resultobj = SWIG_From_int((int)(result)); | |
18479 | } | |
d55e5bfc RD |
18480 | return resultobj; |
18481 | fail: | |
18482 | return NULL; | |
18483 | } | |
18484 | ||
18485 | ||
c32bde28 | 18486 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18487 | PyObject *resultobj; |
18488 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18489 | int result; | |
18490 | PyObject * obj0 = 0 ; | |
18491 | char *kwnames[] = { | |
18492 | (char *) "self", NULL | |
18493 | }; | |
18494 | ||
18495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18498 | { |
18499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18500 | result = (int)(arg1)->GetStyle(); | |
18501 | ||
18502 | wxPyEndAllowThreads(__tstate); | |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
18504 | } | |
093d3ff1 RD |
18505 | { |
18506 | resultobj = SWIG_From_int((int)(result)); | |
18507 | } | |
d55e5bfc RD |
18508 | return resultobj; |
18509 | fail: | |
18510 | return NULL; | |
18511 | } | |
18512 | ||
18513 | ||
c32bde28 | 18514 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18515 | PyObject *resultobj; |
18516 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
093d3ff1 | 18517 | wxItemKind result; |
d55e5bfc RD |
18518 | PyObject * obj0 = 0 ; |
18519 | char *kwnames[] = { | |
18520 | (char *) "self", NULL | |
18521 | }; | |
18522 | ||
18523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18526 | { |
18527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 18528 | result = (wxItemKind)(arg1)->GetKind(); |
d55e5bfc RD |
18529 | |
18530 | wxPyEndAllowThreads(__tstate); | |
18531 | if (PyErr_Occurred()) SWIG_fail; | |
18532 | } | |
093d3ff1 | 18533 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
18534 | return resultobj; |
18535 | fail: | |
18536 | return NULL; | |
18537 | } | |
18538 | ||
18539 | ||
c32bde28 | 18540 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18541 | PyObject *resultobj; |
18542 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18543 | bool result; | |
18544 | PyObject * obj0 = 0 ; | |
18545 | char *kwnames[] = { | |
18546 | (char *) "self", NULL | |
18547 | }; | |
18548 | ||
18549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18550 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18551 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18552 | { |
18553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18554 | result = (bool)(arg1)->IsEnabled(); | |
18555 | ||
18556 | wxPyEndAllowThreads(__tstate); | |
18557 | if (PyErr_Occurred()) SWIG_fail; | |
18558 | } | |
18559 | { | |
18560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18561 | } | |
18562 | return resultobj; | |
18563 | fail: | |
18564 | return NULL; | |
18565 | } | |
18566 | ||
18567 | ||
c32bde28 | 18568 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18569 | PyObject *resultobj; |
18570 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18571 | bool result; | |
18572 | PyObject * obj0 = 0 ; | |
18573 | char *kwnames[] = { | |
18574 | (char *) "self", NULL | |
18575 | }; | |
18576 | ||
18577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18580 | { |
18581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18582 | result = (bool)(arg1)->IsToggled(); | |
18583 | ||
18584 | wxPyEndAllowThreads(__tstate); | |
18585 | if (PyErr_Occurred()) SWIG_fail; | |
18586 | } | |
18587 | { | |
18588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18589 | } | |
18590 | return resultobj; | |
18591 | fail: | |
18592 | return NULL; | |
18593 | } | |
18594 | ||
18595 | ||
c32bde28 | 18596 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18597 | PyObject *resultobj; |
18598 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18599 | bool result; | |
18600 | PyObject * obj0 = 0 ; | |
18601 | char *kwnames[] = { | |
18602 | (char *) "self", NULL | |
18603 | }; | |
18604 | ||
18605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18608 | { |
18609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18610 | result = (bool)(arg1)->CanBeToggled(); | |
18611 | ||
18612 | wxPyEndAllowThreads(__tstate); | |
18613 | if (PyErr_Occurred()) SWIG_fail; | |
18614 | } | |
18615 | { | |
18616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18617 | } | |
18618 | return resultobj; | |
18619 | fail: | |
18620 | return NULL; | |
18621 | } | |
18622 | ||
18623 | ||
c32bde28 | 18624 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18625 | PyObject *resultobj; |
18626 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18627 | wxBitmap *result; | |
18628 | PyObject * obj0 = 0 ; | |
18629 | char *kwnames[] = { | |
18630 | (char *) "self", NULL | |
18631 | }; | |
18632 | ||
18633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18636 | { |
18637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18638 | { | |
18639 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
18640 | result = (wxBitmap *) &_result_ref; | |
18641 | } | |
18642 | ||
18643 | wxPyEndAllowThreads(__tstate); | |
18644 | if (PyErr_Occurred()) SWIG_fail; | |
18645 | } | |
18646 | { | |
18647 | wxBitmap* resultptr = new wxBitmap(*result); | |
18648 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18649 | } | |
18650 | return resultobj; | |
18651 | fail: | |
18652 | return NULL; | |
18653 | } | |
18654 | ||
18655 | ||
c32bde28 | 18656 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18657 | PyObject *resultobj; |
18658 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18659 | wxBitmap *result; | |
18660 | PyObject * obj0 = 0 ; | |
18661 | char *kwnames[] = { | |
18662 | (char *) "self", NULL | |
18663 | }; | |
18664 | ||
18665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18666 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18667 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18668 | { |
18669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18670 | { | |
18671 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
18672 | result = (wxBitmap *) &_result_ref; | |
18673 | } | |
18674 | ||
18675 | wxPyEndAllowThreads(__tstate); | |
18676 | if (PyErr_Occurred()) SWIG_fail; | |
18677 | } | |
18678 | { | |
18679 | wxBitmap* resultptr = new wxBitmap(*result); | |
18680 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18681 | } | |
18682 | return resultobj; | |
18683 | fail: | |
18684 | return NULL; | |
18685 | } | |
18686 | ||
18687 | ||
c32bde28 | 18688 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18689 | PyObject *resultobj; |
18690 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18691 | wxBitmap result; | |
18692 | PyObject * obj0 = 0 ; | |
18693 | char *kwnames[] = { | |
18694 | (char *) "self", NULL | |
18695 | }; | |
18696 | ||
18697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18698 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18699 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18700 | { |
18701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18702 | result = (arg1)->GetBitmap(); | |
18703 | ||
18704 | wxPyEndAllowThreads(__tstate); | |
18705 | if (PyErr_Occurred()) SWIG_fail; | |
18706 | } | |
18707 | { | |
18708 | wxBitmap * resultptr; | |
093d3ff1 | 18709 | resultptr = new wxBitmap((wxBitmap &)(result)); |
d55e5bfc RD |
18710 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
18711 | } | |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
18715 | } | |
18716 | ||
18717 | ||
c32bde28 | 18718 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18719 | PyObject *resultobj; |
18720 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18721 | wxString result; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | char *kwnames[] = { | |
18724 | (char *) "self", NULL | |
18725 | }; | |
18726 | ||
18727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 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 | result = (arg1)->GetLabel(); | |
18733 | ||
18734 | wxPyEndAllowThreads(__tstate); | |
18735 | if (PyErr_Occurred()) SWIG_fail; | |
18736 | } | |
18737 | { | |
18738 | #if wxUSE_UNICODE | |
18739 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18740 | #else | |
18741 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18742 | #endif | |
18743 | } | |
18744 | return resultobj; | |
18745 | fail: | |
18746 | return NULL; | |
18747 | } | |
18748 | ||
18749 | ||
c32bde28 | 18750 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18751 | PyObject *resultobj; |
18752 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18753 | wxString result; | |
18754 | PyObject * obj0 = 0 ; | |
18755 | char *kwnames[] = { | |
18756 | (char *) "self", NULL | |
18757 | }; | |
18758 | ||
18759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18762 | { |
18763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18764 | result = (arg1)->GetShortHelp(); | |
18765 | ||
18766 | wxPyEndAllowThreads(__tstate); | |
18767 | if (PyErr_Occurred()) SWIG_fail; | |
18768 | } | |
18769 | { | |
18770 | #if wxUSE_UNICODE | |
18771 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18772 | #else | |
18773 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18774 | #endif | |
18775 | } | |
18776 | return resultobj; | |
18777 | fail: | |
18778 | return NULL; | |
18779 | } | |
18780 | ||
18781 | ||
c32bde28 | 18782 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18783 | PyObject *resultobj; |
18784 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18785 | wxString result; | |
18786 | PyObject * obj0 = 0 ; | |
18787 | char *kwnames[] = { | |
18788 | (char *) "self", NULL | |
18789 | }; | |
18790 | ||
18791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18794 | { |
18795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18796 | result = (arg1)->GetLongHelp(); | |
18797 | ||
18798 | wxPyEndAllowThreads(__tstate); | |
18799 | if (PyErr_Occurred()) SWIG_fail; | |
18800 | } | |
18801 | { | |
18802 | #if wxUSE_UNICODE | |
18803 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18804 | #else | |
18805 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18806 | #endif | |
18807 | } | |
18808 | return resultobj; | |
18809 | fail: | |
18810 | return NULL; | |
18811 | } | |
18812 | ||
18813 | ||
c32bde28 | 18814 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18815 | PyObject *resultobj; |
18816 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18817 | bool arg2 ; | |
18818 | bool result; | |
18819 | PyObject * obj0 = 0 ; | |
18820 | PyObject * obj1 = 0 ; | |
18821 | char *kwnames[] = { | |
18822 | (char *) "self",(char *) "enable", NULL | |
18823 | }; | |
18824 | ||
18825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18828 | { | |
18829 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18830 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18831 | } | |
d55e5bfc RD |
18832 | { |
18833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18834 | result = (bool)(arg1)->Enable(arg2); | |
18835 | ||
18836 | wxPyEndAllowThreads(__tstate); | |
18837 | if (PyErr_Occurred()) SWIG_fail; | |
18838 | } | |
18839 | { | |
18840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18841 | } | |
18842 | return resultobj; | |
18843 | fail: | |
18844 | return NULL; | |
18845 | } | |
18846 | ||
18847 | ||
c32bde28 | 18848 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18849 | PyObject *resultobj; |
18850 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18851 | PyObject * obj0 = 0 ; | |
18852 | char *kwnames[] = { | |
18853 | (char *) "self", NULL | |
18854 | }; | |
18855 | ||
18856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18859 | { |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | (arg1)->Toggle(); | |
18862 | ||
18863 | wxPyEndAllowThreads(__tstate); | |
18864 | if (PyErr_Occurred()) SWIG_fail; | |
18865 | } | |
18866 | Py_INCREF(Py_None); resultobj = Py_None; | |
18867 | return resultobj; | |
18868 | fail: | |
18869 | return NULL; | |
18870 | } | |
18871 | ||
18872 | ||
c32bde28 | 18873 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18874 | PyObject *resultobj; |
18875 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18876 | bool arg2 ; | |
18877 | bool result; | |
18878 | PyObject * obj0 = 0 ; | |
18879 | PyObject * obj1 = 0 ; | |
18880 | char *kwnames[] = { | |
18881 | (char *) "self",(char *) "toggle", NULL | |
18882 | }; | |
18883 | ||
18884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18887 | { | |
18888 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18889 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18890 | } | |
d55e5bfc RD |
18891 | { |
18892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18893 | result = (bool)(arg1)->SetToggle(arg2); | |
18894 | ||
18895 | wxPyEndAllowThreads(__tstate); | |
18896 | if (PyErr_Occurred()) SWIG_fail; | |
18897 | } | |
18898 | { | |
18899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18900 | } | |
18901 | return resultobj; | |
18902 | fail: | |
18903 | return NULL; | |
18904 | } | |
18905 | ||
18906 | ||
c32bde28 | 18907 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18908 | PyObject *resultobj; |
18909 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18910 | wxString *arg2 = 0 ; | |
18911 | bool result; | |
ae8162c8 | 18912 | bool temp2 = false ; |
d55e5bfc RD |
18913 | PyObject * obj0 = 0 ; |
18914 | PyObject * obj1 = 0 ; | |
18915 | char *kwnames[] = { | |
18916 | (char *) "self",(char *) "help", NULL | |
18917 | }; | |
18918 | ||
18919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18920 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18921 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18922 | { |
18923 | arg2 = wxString_in_helper(obj1); | |
18924 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18925 | temp2 = true; |
d55e5bfc RD |
18926 | } |
18927 | { | |
18928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18929 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
18930 | ||
18931 | wxPyEndAllowThreads(__tstate); | |
18932 | if (PyErr_Occurred()) SWIG_fail; | |
18933 | } | |
18934 | { | |
18935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18936 | } | |
18937 | { | |
18938 | if (temp2) | |
18939 | delete arg2; | |
18940 | } | |
18941 | return resultobj; | |
18942 | fail: | |
18943 | { | |
18944 | if (temp2) | |
18945 | delete arg2; | |
18946 | } | |
18947 | return NULL; | |
18948 | } | |
18949 | ||
18950 | ||
c32bde28 | 18951 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18952 | PyObject *resultobj; |
18953 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18954 | wxString *arg2 = 0 ; | |
18955 | bool result; | |
ae8162c8 | 18956 | bool temp2 = false ; |
d55e5bfc RD |
18957 | PyObject * obj0 = 0 ; |
18958 | PyObject * obj1 = 0 ; | |
18959 | char *kwnames[] = { | |
18960 | (char *) "self",(char *) "help", NULL | |
18961 | }; | |
18962 | ||
18963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
18966 | { |
18967 | arg2 = wxString_in_helper(obj1); | |
18968 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 18969 | temp2 = true; |
d55e5bfc RD |
18970 | } |
18971 | { | |
18972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18973 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
18974 | ||
18975 | wxPyEndAllowThreads(__tstate); | |
18976 | if (PyErr_Occurred()) SWIG_fail; | |
18977 | } | |
18978 | { | |
18979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18980 | } | |
18981 | { | |
18982 | if (temp2) | |
18983 | delete arg2; | |
18984 | } | |
18985 | return resultobj; | |
18986 | fail: | |
18987 | { | |
18988 | if (temp2) | |
18989 | delete arg2; | |
18990 | } | |
18991 | return NULL; | |
18992 | } | |
18993 | ||
18994 | ||
c32bde28 | 18995 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18996 | PyObject *resultobj; |
18997 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18998 | wxBitmap *arg2 = 0 ; | |
18999 | PyObject * obj0 = 0 ; | |
19000 | PyObject * obj1 = 0 ; | |
19001 | char *kwnames[] = { | |
19002 | (char *) "self",(char *) "bmp", NULL | |
19003 | }; | |
19004 | ||
19005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19008 | { | |
19009 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19011 | if (arg2 == NULL) { | |
19012 | SWIG_null_ref("wxBitmap"); | |
19013 | } | |
19014 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19015 | } |
19016 | { | |
19017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19018 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
19019 | ||
19020 | wxPyEndAllowThreads(__tstate); | |
19021 | if (PyErr_Occurred()) SWIG_fail; | |
19022 | } | |
19023 | Py_INCREF(Py_None); resultobj = Py_None; | |
19024 | return resultobj; | |
19025 | fail: | |
19026 | return NULL; | |
19027 | } | |
19028 | ||
19029 | ||
c32bde28 | 19030 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19031 | PyObject *resultobj; |
19032 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19033 | wxBitmap *arg2 = 0 ; | |
19034 | PyObject * obj0 = 0 ; | |
19035 | PyObject * obj1 = 0 ; | |
19036 | char *kwnames[] = { | |
19037 | (char *) "self",(char *) "bmp", NULL | |
19038 | }; | |
19039 | ||
19040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19043 | { | |
19044 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19045 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19046 | if (arg2 == NULL) { | |
19047 | SWIG_null_ref("wxBitmap"); | |
19048 | } | |
19049 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19050 | } |
19051 | { | |
19052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19053 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
19054 | ||
19055 | wxPyEndAllowThreads(__tstate); | |
19056 | if (PyErr_Occurred()) SWIG_fail; | |
19057 | } | |
19058 | Py_INCREF(Py_None); resultobj = Py_None; | |
19059 | return resultobj; | |
19060 | fail: | |
19061 | return NULL; | |
19062 | } | |
19063 | ||
19064 | ||
c32bde28 | 19065 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19066 | PyObject *resultobj; |
19067 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19068 | wxString *arg2 = 0 ; | |
ae8162c8 | 19069 | bool temp2 = false ; |
d55e5bfc RD |
19070 | PyObject * obj0 = 0 ; |
19071 | PyObject * obj1 = 0 ; | |
19072 | char *kwnames[] = { | |
19073 | (char *) "self",(char *) "label", NULL | |
19074 | }; | |
19075 | ||
19076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19079 | { |
19080 | arg2 = wxString_in_helper(obj1); | |
19081 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19082 | temp2 = true; |
d55e5bfc RD |
19083 | } |
19084 | { | |
19085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19086 | (arg1)->SetLabel((wxString const &)*arg2); | |
19087 | ||
19088 | wxPyEndAllowThreads(__tstate); | |
19089 | if (PyErr_Occurred()) SWIG_fail; | |
19090 | } | |
19091 | Py_INCREF(Py_None); resultobj = Py_None; | |
19092 | { | |
19093 | if (temp2) | |
19094 | delete arg2; | |
19095 | } | |
19096 | return resultobj; | |
19097 | fail: | |
19098 | { | |
19099 | if (temp2) | |
19100 | delete arg2; | |
19101 | } | |
19102 | return NULL; | |
19103 | } | |
19104 | ||
19105 | ||
c32bde28 | 19106 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19107 | PyObject *resultobj; |
19108 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19109 | PyObject * obj0 = 0 ; | |
19110 | char *kwnames[] = { | |
19111 | (char *) "self", NULL | |
19112 | }; | |
19113 | ||
19114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19117 | { |
19118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19119 | (arg1)->Detach(); | |
19120 | ||
19121 | wxPyEndAllowThreads(__tstate); | |
19122 | if (PyErr_Occurred()) SWIG_fail; | |
19123 | } | |
19124 | Py_INCREF(Py_None); resultobj = Py_None; | |
19125 | return resultobj; | |
19126 | fail: | |
19127 | return NULL; | |
19128 | } | |
19129 | ||
19130 | ||
c32bde28 | 19131 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19132 | PyObject *resultobj; |
19133 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19134 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
19135 | PyObject * obj0 = 0 ; | |
19136 | PyObject * obj1 = 0 ; | |
19137 | char *kwnames[] = { | |
19138 | (char *) "self",(char *) "tbar", NULL | |
19139 | }; | |
19140 | ||
19141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19144 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19145 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19146 | { |
19147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19148 | (arg1)->Attach(arg2); | |
19149 | ||
19150 | wxPyEndAllowThreads(__tstate); | |
19151 | if (PyErr_Occurred()) SWIG_fail; | |
19152 | } | |
19153 | Py_INCREF(Py_None); resultobj = Py_None; | |
19154 | return resultobj; | |
19155 | fail: | |
19156 | return NULL; | |
19157 | } | |
19158 | ||
19159 | ||
c32bde28 | 19160 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19161 | PyObject *resultobj; |
19162 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19163 | PyObject *result; | |
19164 | PyObject * obj0 = 0 ; | |
19165 | char *kwnames[] = { | |
19166 | (char *) "self", NULL | |
19167 | }; | |
19168 | ||
19169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19172 | { |
19173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19174 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
19175 | ||
19176 | wxPyEndAllowThreads(__tstate); | |
19177 | if (PyErr_Occurred()) SWIG_fail; | |
19178 | } | |
19179 | resultobj = result; | |
19180 | return resultobj; | |
19181 | fail: | |
19182 | return NULL; | |
19183 | } | |
19184 | ||
19185 | ||
c32bde28 | 19186 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19187 | PyObject *resultobj; |
19188 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19189 | PyObject *arg2 = (PyObject *) 0 ; | |
19190 | PyObject * obj0 = 0 ; | |
19191 | PyObject * obj1 = 0 ; | |
19192 | char *kwnames[] = { | |
19193 | (char *) "self",(char *) "clientData", NULL | |
19194 | }; | |
19195 | ||
19196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19199 | arg2 = obj1; |
19200 | { | |
19201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19202 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
19203 | ||
19204 | wxPyEndAllowThreads(__tstate); | |
19205 | if (PyErr_Occurred()) SWIG_fail; | |
19206 | } | |
19207 | Py_INCREF(Py_None); resultobj = Py_None; | |
19208 | return resultobj; | |
19209 | fail: | |
19210 | return NULL; | |
19211 | } | |
19212 | ||
19213 | ||
c32bde28 | 19214 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19215 | PyObject *obj; |
19216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19217 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
19218 | Py_INCREF(obj); | |
19219 | return Py_BuildValue((char *)""); | |
19220 | } | |
c32bde28 | 19221 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19222 | PyObject *resultobj; |
19223 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19224 | int arg2 ; | |
19225 | wxString *arg3 = 0 ; | |
19226 | wxBitmap *arg4 = 0 ; | |
19227 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
19228 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
093d3ff1 | 19229 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc RD |
19230 | wxString const &arg7_defvalue = wxPyEmptyString ; |
19231 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19232 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
19233 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19234 | PyObject *arg9 = (PyObject *) NULL ; | |
19235 | wxToolBarToolBase *result; | |
ae8162c8 RD |
19236 | bool temp3 = false ; |
19237 | bool temp7 = false ; | |
19238 | bool temp8 = false ; | |
d55e5bfc RD |
19239 | PyObject * obj0 = 0 ; |
19240 | PyObject * obj1 = 0 ; | |
19241 | PyObject * obj2 = 0 ; | |
19242 | PyObject * obj3 = 0 ; | |
19243 | PyObject * obj4 = 0 ; | |
19244 | PyObject * obj5 = 0 ; | |
19245 | PyObject * obj6 = 0 ; | |
19246 | PyObject * obj7 = 0 ; | |
19247 | PyObject * obj8 = 0 ; | |
19248 | char *kwnames[] = { | |
19249 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19250 | }; | |
19251 | ||
19252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
093d3ff1 RD |
19253 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19255 | { | |
19256 | arg2 = (int)(SWIG_As_int(obj1)); | |
19257 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19258 | } | |
d55e5bfc RD |
19259 | { |
19260 | arg3 = wxString_in_helper(obj2); | |
19261 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19262 | temp3 = true; |
d55e5bfc | 19263 | } |
093d3ff1 RD |
19264 | { |
19265 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19266 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19267 | if (arg4 == NULL) { | |
19268 | SWIG_null_ref("wxBitmap"); | |
19269 | } | |
19270 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
19271 | } |
19272 | if (obj4) { | |
093d3ff1 RD |
19273 | { |
19274 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19275 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19276 | if (arg5 == NULL) { | |
19277 | SWIG_null_ref("wxBitmap"); | |
19278 | } | |
19279 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
19280 | } |
19281 | } | |
19282 | if (obj5) { | |
093d3ff1 RD |
19283 | { |
19284 | arg6 = (wxItemKind)(SWIG_As_int(obj5)); | |
19285 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19286 | } | |
d55e5bfc RD |
19287 | } |
19288 | if (obj6) { | |
19289 | { | |
19290 | arg7 = wxString_in_helper(obj6); | |
19291 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19292 | temp7 = true; |
d55e5bfc RD |
19293 | } |
19294 | } | |
19295 | if (obj7) { | |
19296 | { | |
19297 | arg8 = wxString_in_helper(obj7); | |
19298 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 19299 | temp8 = true; |
d55e5bfc RD |
19300 | } |
19301 | } | |
19302 | if (obj8) { | |
19303 | arg9 = obj8; | |
19304 | } | |
19305 | { | |
19306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19307 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
19308 | ||
19309 | wxPyEndAllowThreads(__tstate); | |
19310 | if (PyErr_Occurred()) SWIG_fail; | |
19311 | } | |
19312 | { | |
412d302d | 19313 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19314 | } |
19315 | { | |
19316 | if (temp3) | |
19317 | delete arg3; | |
19318 | } | |
19319 | { | |
19320 | if (temp7) | |
19321 | delete arg7; | |
19322 | } | |
19323 | { | |
19324 | if (temp8) | |
19325 | delete arg8; | |
19326 | } | |
19327 | return resultobj; | |
19328 | fail: | |
19329 | { | |
19330 | if (temp3) | |
19331 | delete arg3; | |
19332 | } | |
19333 | { | |
19334 | if (temp7) | |
19335 | delete arg7; | |
19336 | } | |
19337 | { | |
19338 | if (temp8) | |
19339 | delete arg8; | |
19340 | } | |
19341 | return NULL; | |
19342 | } | |
19343 | ||
19344 | ||
c32bde28 | 19345 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19346 | PyObject *resultobj; |
19347 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19348 | size_t arg2 ; | |
19349 | int arg3 ; | |
19350 | wxString *arg4 = 0 ; | |
19351 | wxBitmap *arg5 = 0 ; | |
19352 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
19353 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
093d3ff1 | 19354 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; |
d55e5bfc RD |
19355 | wxString const &arg8_defvalue = wxPyEmptyString ; |
19356 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19357 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
19358 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
19359 | PyObject *arg10 = (PyObject *) NULL ; | |
19360 | wxToolBarToolBase *result; | |
ae8162c8 RD |
19361 | bool temp4 = false ; |
19362 | bool temp8 = false ; | |
19363 | bool temp9 = false ; | |
d55e5bfc RD |
19364 | PyObject * obj0 = 0 ; |
19365 | PyObject * obj1 = 0 ; | |
19366 | PyObject * obj2 = 0 ; | |
19367 | PyObject * obj3 = 0 ; | |
19368 | PyObject * obj4 = 0 ; | |
19369 | PyObject * obj5 = 0 ; | |
19370 | PyObject * obj6 = 0 ; | |
19371 | PyObject * obj7 = 0 ; | |
19372 | PyObject * obj8 = 0 ; | |
19373 | PyObject * obj9 = 0 ; | |
19374 | char *kwnames[] = { | |
19375 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19376 | }; | |
19377 | ||
19378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
093d3ff1 RD |
19379 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19381 | { | |
19382 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19383 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19384 | } | |
19385 | { | |
19386 | arg3 = (int)(SWIG_As_int(obj2)); | |
19387 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19388 | } | |
d55e5bfc RD |
19389 | { |
19390 | arg4 = wxString_in_helper(obj3); | |
19391 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 19392 | temp4 = true; |
d55e5bfc | 19393 | } |
093d3ff1 RD |
19394 | { |
19395 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19396 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19397 | if (arg5 == NULL) { | |
19398 | SWIG_null_ref("wxBitmap"); | |
19399 | } | |
19400 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
19401 | } |
19402 | if (obj5) { | |
093d3ff1 RD |
19403 | { |
19404 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19405 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19406 | if (arg6 == NULL) { | |
19407 | SWIG_null_ref("wxBitmap"); | |
19408 | } | |
19409 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
19410 | } |
19411 | } | |
19412 | if (obj6) { | |
093d3ff1 RD |
19413 | { |
19414 | arg7 = (wxItemKind)(SWIG_As_int(obj6)); | |
19415 | if (SWIG_arg_fail(7)) SWIG_fail; | |
19416 | } | |
d55e5bfc RD |
19417 | } |
19418 | if (obj7) { | |
19419 | { | |
19420 | arg8 = wxString_in_helper(obj7); | |
19421 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 19422 | temp8 = true; |
d55e5bfc RD |
19423 | } |
19424 | } | |
19425 | if (obj8) { | |
19426 | { | |
19427 | arg9 = wxString_in_helper(obj8); | |
19428 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 19429 | temp9 = true; |
d55e5bfc RD |
19430 | } |
19431 | } | |
19432 | if (obj9) { | |
19433 | arg10 = obj9; | |
19434 | } | |
19435 | { | |
19436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19437 | 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); | |
19438 | ||
19439 | wxPyEndAllowThreads(__tstate); | |
19440 | if (PyErr_Occurred()) SWIG_fail; | |
19441 | } | |
19442 | { | |
412d302d | 19443 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19444 | } |
19445 | { | |
19446 | if (temp4) | |
19447 | delete arg4; | |
19448 | } | |
19449 | { | |
19450 | if (temp8) | |
19451 | delete arg8; | |
19452 | } | |
19453 | { | |
19454 | if (temp9) | |
19455 | delete arg9; | |
19456 | } | |
19457 | return resultobj; | |
19458 | fail: | |
19459 | { | |
19460 | if (temp4) | |
19461 | delete arg4; | |
19462 | } | |
19463 | { | |
19464 | if (temp8) | |
19465 | delete arg8; | |
19466 | } | |
19467 | { | |
19468 | if (temp9) | |
19469 | delete arg9; | |
19470 | } | |
19471 | return NULL; | |
19472 | } | |
19473 | ||
19474 | ||
c32bde28 | 19475 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19476 | PyObject *resultobj; |
19477 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19478 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
19479 | wxToolBarToolBase *result; | |
19480 | PyObject * obj0 = 0 ; | |
19481 | PyObject * obj1 = 0 ; | |
19482 | char *kwnames[] = { | |
19483 | (char *) "self",(char *) "tool", NULL | |
19484 | }; | |
19485 | ||
19486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19487 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19488 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19489 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19490 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19491 | { |
19492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19493 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
19494 | ||
19495 | wxPyEndAllowThreads(__tstate); | |
19496 | if (PyErr_Occurred()) SWIG_fail; | |
19497 | } | |
19498 | { | |
412d302d | 19499 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19500 | } |
19501 | return resultobj; | |
19502 | fail: | |
19503 | return NULL; | |
19504 | } | |
19505 | ||
19506 | ||
c32bde28 | 19507 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19508 | PyObject *resultobj; |
19509 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19510 | size_t arg2 ; | |
19511 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
19512 | wxToolBarToolBase *result; | |
19513 | PyObject * obj0 = 0 ; | |
19514 | PyObject * obj1 = 0 ; | |
19515 | PyObject * obj2 = 0 ; | |
19516 | char *kwnames[] = { | |
19517 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
19518 | }; | |
19519 | ||
19520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19523 | { | |
19524 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19525 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19526 | } | |
19527 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19528 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
19529 | { |
19530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19531 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
19532 | ||
19533 | wxPyEndAllowThreads(__tstate); | |
19534 | if (PyErr_Occurred()) SWIG_fail; | |
19535 | } | |
19536 | { | |
412d302d | 19537 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19538 | } |
19539 | return resultobj; | |
19540 | fail: | |
19541 | return NULL; | |
19542 | } | |
19543 | ||
19544 | ||
c32bde28 | 19545 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19546 | PyObject *resultobj; |
19547 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19548 | wxControl *arg2 = (wxControl *) 0 ; | |
19549 | wxToolBarToolBase *result; | |
19550 | PyObject * obj0 = 0 ; | |
19551 | PyObject * obj1 = 0 ; | |
19552 | char *kwnames[] = { | |
19553 | (char *) "self",(char *) "control", NULL | |
19554 | }; | |
19555 | ||
19556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19559 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19560 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
19561 | { |
19562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19563 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
19564 | ||
19565 | wxPyEndAllowThreads(__tstate); | |
19566 | if (PyErr_Occurred()) SWIG_fail; | |
19567 | } | |
19568 | { | |
412d302d | 19569 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19570 | } |
19571 | return resultobj; | |
19572 | fail: | |
19573 | return NULL; | |
19574 | } | |
19575 | ||
19576 | ||
c32bde28 | 19577 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19578 | PyObject *resultobj; |
19579 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19580 | size_t arg2 ; | |
19581 | wxControl *arg3 = (wxControl *) 0 ; | |
19582 | wxToolBarToolBase *result; | |
19583 | PyObject * obj0 = 0 ; | |
19584 | PyObject * obj1 = 0 ; | |
19585 | PyObject * obj2 = 0 ; | |
19586 | char *kwnames[] = { | |
19587 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
19588 | }; | |
19589 | ||
19590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19593 | { | |
19594 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19595 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19596 | } | |
19597 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19598 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
19599 | { |
19600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19601 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
19602 | ||
19603 | wxPyEndAllowThreads(__tstate); | |
19604 | if (PyErr_Occurred()) SWIG_fail; | |
19605 | } | |
19606 | { | |
412d302d | 19607 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19608 | } |
19609 | return resultobj; | |
19610 | fail: | |
19611 | return NULL; | |
19612 | } | |
19613 | ||
19614 | ||
c32bde28 | 19615 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19616 | PyObject *resultobj; |
19617 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19618 | int arg2 ; | |
19619 | wxControl *result; | |
19620 | PyObject * obj0 = 0 ; | |
19621 | PyObject * obj1 = 0 ; | |
19622 | char *kwnames[] = { | |
19623 | (char *) "self",(char *) "id", NULL | |
19624 | }; | |
19625 | ||
19626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19629 | { | |
19630 | arg2 = (int)(SWIG_As_int(obj1)); | |
19631 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19632 | } | |
d55e5bfc RD |
19633 | { |
19634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19635 | result = (wxControl *)(arg1)->FindControl(arg2); | |
19636 | ||
19637 | wxPyEndAllowThreads(__tstate); | |
19638 | if (PyErr_Occurred()) SWIG_fail; | |
19639 | } | |
19640 | { | |
412d302d | 19641 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19642 | } |
19643 | return resultobj; | |
19644 | fail: | |
19645 | return NULL; | |
19646 | } | |
19647 | ||
19648 | ||
c32bde28 | 19649 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19650 | PyObject *resultobj; |
19651 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19652 | wxToolBarToolBase *result; | |
19653 | PyObject * obj0 = 0 ; | |
19654 | char *kwnames[] = { | |
19655 | (char *) "self", NULL | |
19656 | }; | |
19657 | ||
19658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19661 | { |
19662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19663 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
19664 | ||
19665 | wxPyEndAllowThreads(__tstate); | |
19666 | if (PyErr_Occurred()) SWIG_fail; | |
19667 | } | |
19668 | { | |
412d302d | 19669 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19670 | } |
19671 | return resultobj; | |
19672 | fail: | |
19673 | return NULL; | |
19674 | } | |
19675 | ||
19676 | ||
c32bde28 | 19677 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19678 | PyObject *resultobj; |
19679 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19680 | size_t arg2 ; | |
19681 | wxToolBarToolBase *result; | |
19682 | PyObject * obj0 = 0 ; | |
19683 | PyObject * obj1 = 0 ; | |
19684 | char *kwnames[] = { | |
19685 | (char *) "self",(char *) "pos", NULL | |
19686 | }; | |
19687 | ||
19688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19691 | { | |
19692 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19694 | } | |
d55e5bfc RD |
19695 | { |
19696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19697 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
19698 | ||
19699 | wxPyEndAllowThreads(__tstate); | |
19700 | if (PyErr_Occurred()) SWIG_fail; | |
19701 | } | |
19702 | { | |
412d302d | 19703 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19704 | } |
19705 | return resultobj; | |
19706 | fail: | |
19707 | return NULL; | |
19708 | } | |
19709 | ||
19710 | ||
c32bde28 | 19711 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19712 | PyObject *resultobj; |
19713 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19714 | int arg2 ; | |
19715 | wxToolBarToolBase *result; | |
19716 | PyObject * obj0 = 0 ; | |
19717 | PyObject * obj1 = 0 ; | |
19718 | char *kwnames[] = { | |
19719 | (char *) "self",(char *) "id", NULL | |
19720 | }; | |
19721 | ||
19722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19725 | { | |
19726 | arg2 = (int)(SWIG_As_int(obj1)); | |
19727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19728 | } | |
d55e5bfc RD |
19729 | { |
19730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19731 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
19732 | ||
19733 | wxPyEndAllowThreads(__tstate); | |
19734 | if (PyErr_Occurred()) SWIG_fail; | |
19735 | } | |
19736 | { | |
412d302d | 19737 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19738 | } |
19739 | return resultobj; | |
19740 | fail: | |
19741 | return NULL; | |
19742 | } | |
19743 | ||
19744 | ||
c32bde28 | 19745 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19746 | PyObject *resultobj; |
19747 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19748 | size_t arg2 ; | |
19749 | bool result; | |
19750 | PyObject * obj0 = 0 ; | |
19751 | PyObject * obj1 = 0 ; | |
19752 | char *kwnames[] = { | |
19753 | (char *) "self",(char *) "pos", NULL | |
19754 | }; | |
19755 | ||
19756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19759 | { | |
19760 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19761 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19762 | } | |
d55e5bfc RD |
19763 | { |
19764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19765 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
19766 | ||
19767 | wxPyEndAllowThreads(__tstate); | |
19768 | if (PyErr_Occurred()) SWIG_fail; | |
19769 | } | |
19770 | { | |
19771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19772 | } | |
19773 | return resultobj; | |
19774 | fail: | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
c32bde28 | 19779 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19780 | PyObject *resultobj; |
19781 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19782 | int arg2 ; | |
19783 | bool result; | |
19784 | PyObject * obj0 = 0 ; | |
19785 | PyObject * obj1 = 0 ; | |
19786 | char *kwnames[] = { | |
19787 | (char *) "self",(char *) "id", NULL | |
19788 | }; | |
19789 | ||
19790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19793 | { | |
19794 | arg2 = (int)(SWIG_As_int(obj1)); | |
19795 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19796 | } | |
d55e5bfc RD |
19797 | { |
19798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19799 | result = (bool)(arg1)->DeleteTool(arg2); | |
19800 | ||
19801 | wxPyEndAllowThreads(__tstate); | |
19802 | if (PyErr_Occurred()) SWIG_fail; | |
19803 | } | |
19804 | { | |
19805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19806 | } | |
19807 | return resultobj; | |
19808 | fail: | |
19809 | return NULL; | |
19810 | } | |
19811 | ||
19812 | ||
c32bde28 | 19813 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19814 | PyObject *resultobj; |
19815 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19816 | PyObject * obj0 = 0 ; | |
19817 | char *kwnames[] = { | |
19818 | (char *) "self", NULL | |
19819 | }; | |
19820 | ||
19821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19824 | { |
19825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19826 | (arg1)->ClearTools(); | |
19827 | ||
19828 | wxPyEndAllowThreads(__tstate); | |
19829 | if (PyErr_Occurred()) SWIG_fail; | |
19830 | } | |
19831 | Py_INCREF(Py_None); resultobj = Py_None; | |
19832 | return resultobj; | |
19833 | fail: | |
19834 | return NULL; | |
19835 | } | |
19836 | ||
19837 | ||
c32bde28 | 19838 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19839 | PyObject *resultobj; |
19840 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19841 | bool result; | |
19842 | PyObject * obj0 = 0 ; | |
19843 | char *kwnames[] = { | |
19844 | (char *) "self", NULL | |
19845 | }; | |
19846 | ||
19847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
19850 | { |
19851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19852 | result = (bool)(arg1)->Realize(); | |
19853 | ||
19854 | wxPyEndAllowThreads(__tstate); | |
19855 | if (PyErr_Occurred()) SWIG_fail; | |
19856 | } | |
19857 | { | |
19858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19859 | } | |
19860 | return resultobj; | |
19861 | fail: | |
19862 | return NULL; | |
19863 | } | |
19864 | ||
19865 | ||
c32bde28 | 19866 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19867 | PyObject *resultobj; |
19868 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19869 | int arg2 ; | |
19870 | bool arg3 ; | |
19871 | PyObject * obj0 = 0 ; | |
19872 | PyObject * obj1 = 0 ; | |
19873 | PyObject * obj2 = 0 ; | |
19874 | char *kwnames[] = { | |
19875 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
19876 | }; | |
19877 | ||
19878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19881 | { | |
19882 | arg2 = (int)(SWIG_As_int(obj1)); | |
19883 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19884 | } | |
19885 | { | |
19886 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
19887 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19888 | } | |
d55e5bfc RD |
19889 | { |
19890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19891 | (arg1)->EnableTool(arg2,arg3); | |
19892 | ||
19893 | wxPyEndAllowThreads(__tstate); | |
19894 | if (PyErr_Occurred()) SWIG_fail; | |
19895 | } | |
19896 | Py_INCREF(Py_None); resultobj = Py_None; | |
19897 | return resultobj; | |
19898 | fail: | |
19899 | return NULL; | |
19900 | } | |
19901 | ||
19902 | ||
c32bde28 | 19903 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19904 | PyObject *resultobj; |
19905 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19906 | int arg2 ; | |
19907 | bool arg3 ; | |
19908 | PyObject * obj0 = 0 ; | |
19909 | PyObject * obj1 = 0 ; | |
19910 | PyObject * obj2 = 0 ; | |
19911 | char *kwnames[] = { | |
19912 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
19913 | }; | |
19914 | ||
19915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19916 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19917 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19918 | { | |
19919 | arg2 = (int)(SWIG_As_int(obj1)); | |
19920 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19921 | } | |
19922 | { | |
19923 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
19924 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19925 | } | |
d55e5bfc RD |
19926 | { |
19927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19928 | (arg1)->ToggleTool(arg2,arg3); | |
19929 | ||
19930 | wxPyEndAllowThreads(__tstate); | |
19931 | if (PyErr_Occurred()) SWIG_fail; | |
19932 | } | |
19933 | Py_INCREF(Py_None); resultobj = Py_None; | |
19934 | return resultobj; | |
19935 | fail: | |
19936 | return NULL; | |
19937 | } | |
19938 | ||
19939 | ||
c32bde28 | 19940 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19941 | PyObject *resultobj; |
19942 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19943 | int arg2 ; | |
19944 | bool arg3 ; | |
19945 | PyObject * obj0 = 0 ; | |
19946 | PyObject * obj1 = 0 ; | |
19947 | PyObject * obj2 = 0 ; | |
19948 | char *kwnames[] = { | |
19949 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
19950 | }; | |
19951 | ||
19952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19955 | { | |
19956 | arg2 = (int)(SWIG_As_int(obj1)); | |
19957 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19958 | } | |
19959 | { | |
19960 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
19961 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19962 | } | |
d55e5bfc RD |
19963 | { |
19964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19965 | (arg1)->SetToggle(arg2,arg3); | |
19966 | ||
19967 | wxPyEndAllowThreads(__tstate); | |
19968 | if (PyErr_Occurred()) SWIG_fail; | |
19969 | } | |
19970 | Py_INCREF(Py_None); resultobj = Py_None; | |
19971 | return resultobj; | |
19972 | fail: | |
19973 | return NULL; | |
19974 | } | |
19975 | ||
19976 | ||
c32bde28 | 19977 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19978 | PyObject *resultobj; |
19979 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19980 | int arg2 ; | |
19981 | PyObject *result; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | PyObject * obj1 = 0 ; | |
19984 | char *kwnames[] = { | |
19985 | (char *) "self",(char *) "id", NULL | |
19986 | }; | |
19987 | ||
19988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19989 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19991 | { | |
19992 | arg2 = (int)(SWIG_As_int(obj1)); | |
19993 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19994 | } | |
d55e5bfc RD |
19995 | { |
19996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19997 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
19998 | ||
19999 | wxPyEndAllowThreads(__tstate); | |
20000 | if (PyErr_Occurred()) SWIG_fail; | |
20001 | } | |
20002 | resultobj = result; | |
20003 | return resultobj; | |
20004 | fail: | |
20005 | return NULL; | |
20006 | } | |
20007 | ||
20008 | ||
c32bde28 | 20009 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20010 | PyObject *resultobj; |
20011 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20012 | int arg2 ; | |
20013 | PyObject *arg3 = (PyObject *) 0 ; | |
20014 | PyObject * obj0 = 0 ; | |
20015 | PyObject * obj1 = 0 ; | |
20016 | PyObject * obj2 = 0 ; | |
20017 | char *kwnames[] = { | |
20018 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
20019 | }; | |
20020 | ||
20021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20022 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20023 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20024 | { | |
20025 | arg2 = (int)(SWIG_As_int(obj1)); | |
20026 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20027 | } | |
d55e5bfc RD |
20028 | arg3 = obj2; |
20029 | { | |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
20032 | ||
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
20036 | Py_INCREF(Py_None); resultobj = Py_None; | |
20037 | return resultobj; | |
20038 | fail: | |
20039 | return NULL; | |
20040 | } | |
20041 | ||
20042 | ||
c32bde28 | 20043 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20044 | PyObject *resultobj; |
20045 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20046 | int arg2 ; | |
20047 | int result; | |
20048 | PyObject * obj0 = 0 ; | |
20049 | PyObject * obj1 = 0 ; | |
20050 | char *kwnames[] = { | |
20051 | (char *) "self",(char *) "id", NULL | |
20052 | }; | |
20053 | ||
20054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20055 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20056 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20057 | { | |
20058 | arg2 = (int)(SWIG_As_int(obj1)); | |
20059 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20060 | } | |
d55e5bfc RD |
20061 | { |
20062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20063 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
20064 | ||
20065 | wxPyEndAllowThreads(__tstate); | |
20066 | if (PyErr_Occurred()) SWIG_fail; | |
20067 | } | |
093d3ff1 RD |
20068 | { |
20069 | resultobj = SWIG_From_int((int)(result)); | |
20070 | } | |
d55e5bfc RD |
20071 | return resultobj; |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
c32bde28 | 20077 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20078 | PyObject *resultobj; |
20079 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20080 | int arg2 ; | |
20081 | bool result; | |
20082 | PyObject * obj0 = 0 ; | |
20083 | PyObject * obj1 = 0 ; | |
20084 | char *kwnames[] = { | |
20085 | (char *) "self",(char *) "id", NULL | |
20086 | }; | |
20087 | ||
20088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20091 | { | |
20092 | arg2 = (int)(SWIG_As_int(obj1)); | |
20093 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20094 | } | |
d55e5bfc RD |
20095 | { |
20096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20097 | result = (bool)(arg1)->GetToolState(arg2); | |
20098 | ||
20099 | wxPyEndAllowThreads(__tstate); | |
20100 | if (PyErr_Occurred()) SWIG_fail; | |
20101 | } | |
20102 | { | |
20103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20104 | } | |
20105 | return resultobj; | |
20106 | fail: | |
20107 | return NULL; | |
20108 | } | |
20109 | ||
20110 | ||
c32bde28 | 20111 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20112 | PyObject *resultobj; |
20113 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20114 | int arg2 ; | |
20115 | bool result; | |
20116 | PyObject * obj0 = 0 ; | |
20117 | PyObject * obj1 = 0 ; | |
20118 | char *kwnames[] = { | |
20119 | (char *) "self",(char *) "id", NULL | |
20120 | }; | |
20121 | ||
20122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20125 | { | |
20126 | arg2 = (int)(SWIG_As_int(obj1)); | |
20127 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20128 | } | |
d55e5bfc RD |
20129 | { |
20130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20131 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
20132 | ||
20133 | wxPyEndAllowThreads(__tstate); | |
20134 | if (PyErr_Occurred()) SWIG_fail; | |
20135 | } | |
20136 | { | |
20137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20138 | } | |
20139 | return resultobj; | |
20140 | fail: | |
20141 | return NULL; | |
20142 | } | |
20143 | ||
20144 | ||
c32bde28 | 20145 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20146 | PyObject *resultobj; |
20147 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20148 | int arg2 ; | |
20149 | wxString *arg3 = 0 ; | |
ae8162c8 | 20150 | bool temp3 = false ; |
d55e5bfc RD |
20151 | PyObject * obj0 = 0 ; |
20152 | PyObject * obj1 = 0 ; | |
20153 | PyObject * obj2 = 0 ; | |
20154 | char *kwnames[] = { | |
20155 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20156 | }; | |
20157 | ||
20158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20161 | { | |
20162 | arg2 = (int)(SWIG_As_int(obj1)); | |
20163 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20164 | } | |
d55e5bfc RD |
20165 | { |
20166 | arg3 = wxString_in_helper(obj2); | |
20167 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20168 | temp3 = true; |
d55e5bfc RD |
20169 | } |
20170 | { | |
20171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20172 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
20173 | ||
20174 | wxPyEndAllowThreads(__tstate); | |
20175 | if (PyErr_Occurred()) SWIG_fail; | |
20176 | } | |
20177 | Py_INCREF(Py_None); resultobj = Py_None; | |
20178 | { | |
20179 | if (temp3) | |
20180 | delete arg3; | |
20181 | } | |
20182 | return resultobj; | |
20183 | fail: | |
20184 | { | |
20185 | if (temp3) | |
20186 | delete arg3; | |
20187 | } | |
20188 | return NULL; | |
20189 | } | |
20190 | ||
20191 | ||
c32bde28 | 20192 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20193 | PyObject *resultobj; |
20194 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20195 | int arg2 ; | |
20196 | wxString result; | |
20197 | PyObject * obj0 = 0 ; | |
20198 | PyObject * obj1 = 0 ; | |
20199 | char *kwnames[] = { | |
20200 | (char *) "self",(char *) "id", NULL | |
20201 | }; | |
20202 | ||
20203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20206 | { | |
20207 | arg2 = (int)(SWIG_As_int(obj1)); | |
20208 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20209 | } | |
d55e5bfc RD |
20210 | { |
20211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20212 | result = (arg1)->GetToolShortHelp(arg2); | |
20213 | ||
20214 | wxPyEndAllowThreads(__tstate); | |
20215 | if (PyErr_Occurred()) SWIG_fail; | |
20216 | } | |
20217 | { | |
20218 | #if wxUSE_UNICODE | |
20219 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20220 | #else | |
20221 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20222 | #endif | |
20223 | } | |
20224 | return resultobj; | |
20225 | fail: | |
20226 | return NULL; | |
20227 | } | |
20228 | ||
20229 | ||
c32bde28 | 20230 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20231 | PyObject *resultobj; |
20232 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20233 | int arg2 ; | |
20234 | wxString *arg3 = 0 ; | |
ae8162c8 | 20235 | bool temp3 = false ; |
d55e5bfc RD |
20236 | PyObject * obj0 = 0 ; |
20237 | PyObject * obj1 = 0 ; | |
20238 | PyObject * obj2 = 0 ; | |
20239 | char *kwnames[] = { | |
20240 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20241 | }; | |
20242 | ||
20243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20246 | { | |
20247 | arg2 = (int)(SWIG_As_int(obj1)); | |
20248 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20249 | } | |
d55e5bfc RD |
20250 | { |
20251 | arg3 = wxString_in_helper(obj2); | |
20252 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20253 | temp3 = true; |
d55e5bfc RD |
20254 | } |
20255 | { | |
20256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20257 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
20258 | ||
20259 | wxPyEndAllowThreads(__tstate); | |
20260 | if (PyErr_Occurred()) SWIG_fail; | |
20261 | } | |
20262 | Py_INCREF(Py_None); resultobj = Py_None; | |
20263 | { | |
20264 | if (temp3) | |
20265 | delete arg3; | |
20266 | } | |
20267 | return resultobj; | |
20268 | fail: | |
20269 | { | |
20270 | if (temp3) | |
20271 | delete arg3; | |
20272 | } | |
20273 | return NULL; | |
20274 | } | |
20275 | ||
20276 | ||
c32bde28 | 20277 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20278 | PyObject *resultobj; |
20279 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20280 | int arg2 ; | |
20281 | wxString result; | |
20282 | PyObject * obj0 = 0 ; | |
20283 | PyObject * obj1 = 0 ; | |
20284 | char *kwnames[] = { | |
20285 | (char *) "self",(char *) "id", NULL | |
20286 | }; | |
20287 | ||
20288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20291 | { | |
20292 | arg2 = (int)(SWIG_As_int(obj1)); | |
20293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20294 | } | |
d55e5bfc RD |
20295 | { |
20296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20297 | result = (arg1)->GetToolLongHelp(arg2); | |
20298 | ||
20299 | wxPyEndAllowThreads(__tstate); | |
20300 | if (PyErr_Occurred()) SWIG_fail; | |
20301 | } | |
20302 | { | |
20303 | #if wxUSE_UNICODE | |
20304 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20305 | #else | |
20306 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20307 | #endif | |
20308 | } | |
20309 | return resultobj; | |
20310 | fail: | |
20311 | return NULL; | |
20312 | } | |
20313 | ||
20314 | ||
c32bde28 | 20315 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20316 | PyObject *resultobj; |
20317 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20318 | int arg2 ; | |
20319 | int arg3 ; | |
20320 | PyObject * obj0 = 0 ; | |
20321 | PyObject * obj1 = 0 ; | |
20322 | PyObject * obj2 = 0 ; | |
20323 | char *kwnames[] = { | |
20324 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20325 | }; | |
20326 | ||
20327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20330 | { | |
20331 | arg2 = (int)(SWIG_As_int(obj1)); | |
20332 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20333 | } | |
20334 | { | |
20335 | arg3 = (int)(SWIG_As_int(obj2)); | |
20336 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20337 | } | |
d55e5bfc RD |
20338 | { |
20339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20340 | (arg1)->SetMargins(arg2,arg3); | |
20341 | ||
20342 | wxPyEndAllowThreads(__tstate); | |
20343 | if (PyErr_Occurred()) SWIG_fail; | |
20344 | } | |
20345 | Py_INCREF(Py_None); resultobj = Py_None; | |
20346 | return resultobj; | |
20347 | fail: | |
20348 | return NULL; | |
20349 | } | |
20350 | ||
20351 | ||
c32bde28 | 20352 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20353 | PyObject *resultobj; |
20354 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20355 | wxSize *arg2 = 0 ; | |
20356 | wxSize temp2 ; | |
20357 | PyObject * obj0 = 0 ; | |
20358 | PyObject * obj1 = 0 ; | |
20359 | char *kwnames[] = { | |
20360 | (char *) "self",(char *) "size", NULL | |
20361 | }; | |
20362 | ||
20363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20366 | { |
20367 | arg2 = &temp2; | |
20368 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20369 | } | |
20370 | { | |
20371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20372 | (arg1)->SetMargins((wxSize const &)*arg2); | |
20373 | ||
20374 | wxPyEndAllowThreads(__tstate); | |
20375 | if (PyErr_Occurred()) SWIG_fail; | |
20376 | } | |
20377 | Py_INCREF(Py_None); resultobj = Py_None; | |
20378 | return resultobj; | |
20379 | fail: | |
20380 | return NULL; | |
20381 | } | |
20382 | ||
20383 | ||
c32bde28 | 20384 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20385 | PyObject *resultobj; |
20386 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20387 | int arg2 ; | |
20388 | PyObject * obj0 = 0 ; | |
20389 | PyObject * obj1 = 0 ; | |
20390 | char *kwnames[] = { | |
20391 | (char *) "self",(char *) "packing", NULL | |
20392 | }; | |
20393 | ||
20394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20397 | { | |
20398 | arg2 = (int)(SWIG_As_int(obj1)); | |
20399 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20400 | } | |
d55e5bfc RD |
20401 | { |
20402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20403 | (arg1)->SetToolPacking(arg2); | |
20404 | ||
20405 | wxPyEndAllowThreads(__tstate); | |
20406 | if (PyErr_Occurred()) SWIG_fail; | |
20407 | } | |
20408 | Py_INCREF(Py_None); resultobj = Py_None; | |
20409 | return resultobj; | |
20410 | fail: | |
20411 | return NULL; | |
20412 | } | |
20413 | ||
20414 | ||
c32bde28 | 20415 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20416 | PyObject *resultobj; |
20417 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20418 | int arg2 ; | |
20419 | PyObject * obj0 = 0 ; | |
20420 | PyObject * obj1 = 0 ; | |
20421 | char *kwnames[] = { | |
20422 | (char *) "self",(char *) "separation", NULL | |
20423 | }; | |
20424 | ||
20425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20428 | { | |
20429 | arg2 = (int)(SWIG_As_int(obj1)); | |
20430 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20431 | } | |
d55e5bfc RD |
20432 | { |
20433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20434 | (arg1)->SetToolSeparation(arg2); | |
20435 | ||
20436 | wxPyEndAllowThreads(__tstate); | |
20437 | if (PyErr_Occurred()) SWIG_fail; | |
20438 | } | |
20439 | Py_INCREF(Py_None); resultobj = Py_None; | |
20440 | return resultobj; | |
20441 | fail: | |
20442 | return NULL; | |
20443 | } | |
20444 | ||
20445 | ||
c32bde28 | 20446 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20447 | PyObject *resultobj; |
20448 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20449 | wxSize result; | |
20450 | PyObject * obj0 = 0 ; | |
20451 | char *kwnames[] = { | |
20452 | (char *) "self", NULL | |
20453 | }; | |
20454 | ||
20455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20458 | { |
20459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20460 | result = (arg1)->GetToolMargins(); | |
20461 | ||
20462 | wxPyEndAllowThreads(__tstate); | |
20463 | if (PyErr_Occurred()) SWIG_fail; | |
20464 | } | |
20465 | { | |
20466 | wxSize * resultptr; | |
093d3ff1 | 20467 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
20468 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
20469 | } | |
20470 | return resultobj; | |
20471 | fail: | |
20472 | return NULL; | |
20473 | } | |
20474 | ||
20475 | ||
c32bde28 | 20476 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20477 | PyObject *resultobj; |
20478 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20479 | wxSize result; | |
20480 | PyObject * obj0 = 0 ; | |
20481 | char *kwnames[] = { | |
20482 | (char *) "self", NULL | |
20483 | }; | |
20484 | ||
20485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20488 | { |
20489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20490 | result = (arg1)->GetMargins(); | |
20491 | ||
20492 | wxPyEndAllowThreads(__tstate); | |
20493 | if (PyErr_Occurred()) SWIG_fail; | |
20494 | } | |
20495 | { | |
20496 | wxSize * resultptr; | |
093d3ff1 | 20497 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
20498 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
20499 | } | |
20500 | return resultobj; | |
20501 | fail: | |
20502 | return NULL; | |
20503 | } | |
20504 | ||
20505 | ||
c32bde28 | 20506 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20507 | PyObject *resultobj; |
20508 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20509 | int result; | |
20510 | PyObject * obj0 = 0 ; | |
20511 | char *kwnames[] = { | |
20512 | (char *) "self", NULL | |
20513 | }; | |
20514 | ||
20515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20518 | { |
20519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20520 | result = (int)(arg1)->GetToolPacking(); | |
20521 | ||
20522 | wxPyEndAllowThreads(__tstate); | |
20523 | if (PyErr_Occurred()) SWIG_fail; | |
20524 | } | |
093d3ff1 RD |
20525 | { |
20526 | resultobj = SWIG_From_int((int)(result)); | |
20527 | } | |
d55e5bfc RD |
20528 | return resultobj; |
20529 | fail: | |
20530 | return NULL; | |
20531 | } | |
20532 | ||
20533 | ||
c32bde28 | 20534 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20535 | PyObject *resultobj; |
20536 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20537 | int result; | |
20538 | PyObject * obj0 = 0 ; | |
20539 | char *kwnames[] = { | |
20540 | (char *) "self", NULL | |
20541 | }; | |
20542 | ||
20543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20546 | { |
20547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20548 | result = (int)(arg1)->GetToolSeparation(); | |
20549 | ||
20550 | wxPyEndAllowThreads(__tstate); | |
20551 | if (PyErr_Occurred()) SWIG_fail; | |
20552 | } | |
093d3ff1 RD |
20553 | { |
20554 | resultobj = SWIG_From_int((int)(result)); | |
20555 | } | |
d55e5bfc RD |
20556 | return resultobj; |
20557 | fail: | |
20558 | return NULL; | |
20559 | } | |
20560 | ||
20561 | ||
c32bde28 | 20562 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20563 | PyObject *resultobj; |
20564 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20565 | int arg2 ; | |
20566 | PyObject * obj0 = 0 ; | |
20567 | PyObject * obj1 = 0 ; | |
20568 | char *kwnames[] = { | |
20569 | (char *) "self",(char *) "nRows", NULL | |
20570 | }; | |
20571 | ||
20572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20575 | { | |
20576 | arg2 = (int)(SWIG_As_int(obj1)); | |
20577 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20578 | } | |
d55e5bfc RD |
20579 | { |
20580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20581 | (arg1)->SetRows(arg2); | |
20582 | ||
20583 | wxPyEndAllowThreads(__tstate); | |
20584 | if (PyErr_Occurred()) SWIG_fail; | |
20585 | } | |
20586 | Py_INCREF(Py_None); resultobj = Py_None; | |
20587 | return resultobj; | |
20588 | fail: | |
20589 | return NULL; | |
20590 | } | |
20591 | ||
20592 | ||
c32bde28 | 20593 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20594 | PyObject *resultobj; |
20595 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20596 | int arg2 ; | |
20597 | int arg3 ; | |
20598 | PyObject * obj0 = 0 ; | |
20599 | PyObject * obj1 = 0 ; | |
20600 | PyObject * obj2 = 0 ; | |
20601 | char *kwnames[] = { | |
20602 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
20603 | }; | |
20604 | ||
20605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20608 | { | |
20609 | arg2 = (int)(SWIG_As_int(obj1)); | |
20610 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20611 | } | |
20612 | { | |
20613 | arg3 = (int)(SWIG_As_int(obj2)); | |
20614 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20615 | } | |
d55e5bfc RD |
20616 | { |
20617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20618 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
20619 | ||
20620 | wxPyEndAllowThreads(__tstate); | |
20621 | if (PyErr_Occurred()) SWIG_fail; | |
20622 | } | |
20623 | Py_INCREF(Py_None); resultobj = Py_None; | |
20624 | return resultobj; | |
20625 | fail: | |
20626 | return NULL; | |
20627 | } | |
20628 | ||
20629 | ||
c32bde28 | 20630 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20631 | PyObject *resultobj; |
20632 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20633 | int result; | |
20634 | PyObject * obj0 = 0 ; | |
20635 | char *kwnames[] = { | |
20636 | (char *) "self", NULL | |
20637 | }; | |
20638 | ||
20639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20642 | { |
20643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20644 | result = (int)(arg1)->GetMaxRows(); | |
20645 | ||
20646 | wxPyEndAllowThreads(__tstate); | |
20647 | if (PyErr_Occurred()) SWIG_fail; | |
20648 | } | |
093d3ff1 RD |
20649 | { |
20650 | resultobj = SWIG_From_int((int)(result)); | |
20651 | } | |
d55e5bfc RD |
20652 | return resultobj; |
20653 | fail: | |
20654 | return NULL; | |
20655 | } | |
20656 | ||
20657 | ||
c32bde28 | 20658 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20659 | PyObject *resultobj; |
20660 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20661 | int result; | |
20662 | PyObject * obj0 = 0 ; | |
20663 | char *kwnames[] = { | |
20664 | (char *) "self", NULL | |
20665 | }; | |
20666 | ||
20667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20670 | { |
20671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20672 | result = (int)(arg1)->GetMaxCols(); | |
20673 | ||
20674 | wxPyEndAllowThreads(__tstate); | |
20675 | if (PyErr_Occurred()) SWIG_fail; | |
20676 | } | |
093d3ff1 RD |
20677 | { |
20678 | resultobj = SWIG_From_int((int)(result)); | |
20679 | } | |
d55e5bfc RD |
20680 | return resultobj; |
20681 | fail: | |
20682 | return NULL; | |
20683 | } | |
20684 | ||
20685 | ||
c32bde28 | 20686 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20687 | PyObject *resultobj; |
20688 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20689 | wxSize *arg2 = 0 ; | |
20690 | wxSize temp2 ; | |
20691 | PyObject * obj0 = 0 ; | |
20692 | PyObject * obj1 = 0 ; | |
20693 | char *kwnames[] = { | |
20694 | (char *) "self",(char *) "size", NULL | |
20695 | }; | |
20696 | ||
20697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20698 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20699 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20700 | { |
20701 | arg2 = &temp2; | |
20702 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20703 | } | |
20704 | { | |
20705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20706 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
20707 | ||
20708 | wxPyEndAllowThreads(__tstate); | |
20709 | if (PyErr_Occurred()) SWIG_fail; | |
20710 | } | |
20711 | Py_INCREF(Py_None); resultobj = Py_None; | |
20712 | return resultobj; | |
20713 | fail: | |
20714 | return NULL; | |
20715 | } | |
20716 | ||
20717 | ||
c32bde28 | 20718 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20719 | PyObject *resultobj; |
20720 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20721 | wxSize result; | |
20722 | PyObject * obj0 = 0 ; | |
20723 | char *kwnames[] = { | |
20724 | (char *) "self", NULL | |
20725 | }; | |
20726 | ||
20727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20728 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20729 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20730 | { |
20731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20732 | result = (arg1)->GetToolBitmapSize(); | |
20733 | ||
20734 | wxPyEndAllowThreads(__tstate); | |
20735 | if (PyErr_Occurred()) SWIG_fail; | |
20736 | } | |
20737 | { | |
20738 | wxSize * resultptr; | |
093d3ff1 | 20739 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
20740 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
20741 | } | |
20742 | return resultobj; | |
20743 | fail: | |
20744 | return NULL; | |
20745 | } | |
20746 | ||
20747 | ||
c32bde28 | 20748 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20749 | PyObject *resultobj; |
20750 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20751 | wxSize result; | |
20752 | PyObject * obj0 = 0 ; | |
20753 | char *kwnames[] = { | |
20754 | (char *) "self", NULL | |
20755 | }; | |
20756 | ||
20757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20760 | { |
20761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20762 | result = (arg1)->GetToolSize(); | |
20763 | ||
20764 | wxPyEndAllowThreads(__tstate); | |
20765 | if (PyErr_Occurred()) SWIG_fail; | |
20766 | } | |
20767 | { | |
20768 | wxSize * resultptr; | |
093d3ff1 | 20769 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
20770 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
20771 | } | |
20772 | return resultobj; | |
20773 | fail: | |
20774 | return NULL; | |
20775 | } | |
20776 | ||
20777 | ||
c32bde28 | 20778 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20779 | PyObject *resultobj; |
20780 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20781 | int arg2 ; | |
20782 | int arg3 ; | |
20783 | wxToolBarToolBase *result; | |
20784 | PyObject * obj0 = 0 ; | |
20785 | PyObject * obj1 = 0 ; | |
20786 | PyObject * obj2 = 0 ; | |
20787 | char *kwnames[] = { | |
20788 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20789 | }; | |
20790 | ||
20791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20794 | { | |
20795 | arg2 = (int)(SWIG_As_int(obj1)); | |
20796 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20797 | } | |
20798 | { | |
20799 | arg3 = (int)(SWIG_As_int(obj2)); | |
20800 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20801 | } | |
d55e5bfc RD |
20802 | { |
20803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20804 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
20805 | ||
20806 | wxPyEndAllowThreads(__tstate); | |
20807 | if (PyErr_Occurred()) SWIG_fail; | |
20808 | } | |
20809 | { | |
412d302d | 20810 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20811 | } |
20812 | return resultobj; | |
20813 | fail: | |
20814 | return NULL; | |
20815 | } | |
20816 | ||
20817 | ||
c32bde28 | 20818 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20819 | PyObject *resultobj; |
20820 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20821 | int arg2 ; | |
20822 | wxToolBarToolBase *result; | |
20823 | PyObject * obj0 = 0 ; | |
20824 | PyObject * obj1 = 0 ; | |
20825 | char *kwnames[] = { | |
20826 | (char *) "self",(char *) "toolid", NULL | |
20827 | }; | |
20828 | ||
20829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20832 | { | |
20833 | arg2 = (int)(SWIG_As_int(obj1)); | |
20834 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20835 | } | |
d55e5bfc RD |
20836 | { |
20837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20838 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
20839 | ||
20840 | wxPyEndAllowThreads(__tstate); | |
20841 | if (PyErr_Occurred()) SWIG_fail; | |
20842 | } | |
20843 | { | |
412d302d | 20844 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20845 | } |
20846 | return resultobj; | |
20847 | fail: | |
20848 | return NULL; | |
20849 | } | |
20850 | ||
20851 | ||
c32bde28 | 20852 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20853 | PyObject *resultobj; |
20854 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20855 | bool result; | |
20856 | PyObject * obj0 = 0 ; | |
20857 | char *kwnames[] = { | |
20858 | (char *) "self", NULL | |
20859 | }; | |
20860 | ||
20861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20863 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
20864 | { |
20865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20866 | result = (bool)(arg1)->IsVertical(); | |
20867 | ||
20868 | wxPyEndAllowThreads(__tstate); | |
20869 | if (PyErr_Occurred()) SWIG_fail; | |
20870 | } | |
20871 | { | |
20872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20873 | } | |
20874 | return resultobj; | |
20875 | fail: | |
20876 | return NULL; | |
20877 | } | |
20878 | ||
20879 | ||
c32bde28 | 20880 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20881 | PyObject *obj; |
20882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20883 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
20884 | Py_INCREF(obj); | |
20885 | return Py_BuildValue((char *)""); | |
20886 | } | |
c32bde28 | 20887 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20888 | PyObject *resultobj; |
20889 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 20890 | int arg2 = (int) -1 ; |
d55e5bfc RD |
20891 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20892 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20893 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20894 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20895 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
20896 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
20897 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20898 | wxToolBar *result; | |
20899 | wxPoint temp3 ; | |
20900 | wxSize temp4 ; | |
ae8162c8 | 20901 | bool temp6 = false ; |
d55e5bfc RD |
20902 | PyObject * obj0 = 0 ; |
20903 | PyObject * obj1 = 0 ; | |
20904 | PyObject * obj2 = 0 ; | |
20905 | PyObject * obj3 = 0 ; | |
20906 | PyObject * obj4 = 0 ; | |
20907 | PyObject * obj5 = 0 ; | |
20908 | char *kwnames[] = { | |
20909 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20910 | }; | |
20911 | ||
248ed943 | 20912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
20913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
20914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 20915 | if (obj1) { |
093d3ff1 RD |
20916 | { |
20917 | arg2 = (int)(SWIG_As_int(obj1)); | |
20918 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20919 | } | |
248ed943 | 20920 | } |
d55e5bfc RD |
20921 | if (obj2) { |
20922 | { | |
20923 | arg3 = &temp3; | |
20924 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20925 | } | |
20926 | } | |
20927 | if (obj3) { | |
20928 | { | |
20929 | arg4 = &temp4; | |
20930 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20931 | } | |
20932 | } | |
20933 | if (obj4) { | |
093d3ff1 RD |
20934 | { |
20935 | arg5 = (long)(SWIG_As_long(obj4)); | |
20936 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20937 | } | |
d55e5bfc RD |
20938 | } |
20939 | if (obj5) { | |
20940 | { | |
20941 | arg6 = wxString_in_helper(obj5); | |
20942 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 20943 | temp6 = true; |
d55e5bfc RD |
20944 | } |
20945 | } | |
20946 | { | |
0439c23b | 20947 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
20948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
20949 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20950 | ||
20951 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 20952 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 20953 | } |
b0f7404b | 20954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
20955 | { |
20956 | if (temp6) | |
20957 | delete arg6; | |
20958 | } | |
20959 | return resultobj; | |
20960 | fail: | |
20961 | { | |
20962 | if (temp6) | |
20963 | delete arg6; | |
20964 | } | |
20965 | return NULL; | |
20966 | } | |
20967 | ||
20968 | ||
c32bde28 | 20969 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20970 | PyObject *resultobj; |
20971 | wxToolBar *result; | |
20972 | char *kwnames[] = { | |
20973 | NULL | |
20974 | }; | |
20975 | ||
20976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
20977 | { | |
0439c23b | 20978 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
20979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
20980 | result = (wxToolBar *)new wxToolBar(); | |
20981 | ||
20982 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 20983 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 20984 | } |
b0f7404b | 20985 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
20986 | return resultobj; |
20987 | fail: | |
20988 | return NULL; | |
20989 | } | |
20990 | ||
20991 | ||
c32bde28 | 20992 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20993 | PyObject *resultobj; |
20994 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
20995 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 20996 | int arg3 = (int) -1 ; |
d55e5bfc RD |
20997 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20998 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20999 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21000 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21001 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
21002 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
21003 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21004 | bool result; | |
21005 | wxPoint temp4 ; | |
21006 | wxSize temp5 ; | |
ae8162c8 | 21007 | bool temp7 = false ; |
d55e5bfc RD |
21008 | PyObject * obj0 = 0 ; |
21009 | PyObject * obj1 = 0 ; | |
21010 | PyObject * obj2 = 0 ; | |
21011 | PyObject * obj3 = 0 ; | |
21012 | PyObject * obj4 = 0 ; | |
21013 | PyObject * obj5 = 0 ; | |
21014 | PyObject * obj6 = 0 ; | |
21015 | char *kwnames[] = { | |
21016 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21017 | }; | |
21018 | ||
248ed943 | 21019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
21020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
21021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21022 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21023 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 21024 | if (obj2) { |
093d3ff1 RD |
21025 | { |
21026 | arg3 = (int)(SWIG_As_int(obj2)); | |
21027 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21028 | } | |
248ed943 | 21029 | } |
d55e5bfc RD |
21030 | if (obj3) { |
21031 | { | |
21032 | arg4 = &temp4; | |
21033 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21034 | } | |
21035 | } | |
21036 | if (obj4) { | |
21037 | { | |
21038 | arg5 = &temp5; | |
21039 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21040 | } | |
21041 | } | |
21042 | if (obj5) { | |
093d3ff1 RD |
21043 | { |
21044 | arg6 = (long)(SWIG_As_long(obj5)); | |
21045 | if (SWIG_arg_fail(6)) SWIG_fail; | |
21046 | } | |
d55e5bfc RD |
21047 | } |
21048 | if (obj6) { | |
21049 | { | |
21050 | arg7 = wxString_in_helper(obj6); | |
21051 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 21052 | temp7 = true; |
d55e5bfc RD |
21053 | } |
21054 | } | |
21055 | { | |
21056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21057 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21058 | ||
21059 | wxPyEndAllowThreads(__tstate); | |
21060 | if (PyErr_Occurred()) SWIG_fail; | |
21061 | } | |
21062 | { | |
21063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21064 | } | |
21065 | { | |
21066 | if (temp7) | |
21067 | delete arg7; | |
21068 | } | |
21069 | return resultobj; | |
21070 | fail: | |
21071 | { | |
21072 | if (temp7) | |
21073 | delete arg7; | |
21074 | } | |
21075 | return NULL; | |
21076 | } | |
21077 | ||
21078 | ||
c32bde28 | 21079 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21080 | PyObject *resultobj; |
21081 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
21082 | int arg2 ; | |
21083 | int arg3 ; | |
21084 | wxToolBarToolBase *result; | |
21085 | PyObject * obj0 = 0 ; | |
21086 | PyObject * obj1 = 0 ; | |
21087 | PyObject * obj2 = 0 ; | |
21088 | char *kwnames[] = { | |
21089 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21090 | }; | |
21091 | ||
21092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
21093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
21094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21095 | { | |
21096 | arg2 = (int)(SWIG_As_int(obj1)); | |
21097 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21098 | } | |
21099 | { | |
21100 | arg3 = (int)(SWIG_As_int(obj2)); | |
21101 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21102 | } | |
d55e5bfc RD |
21103 | { |
21104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21105 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
21106 | ||
21107 | wxPyEndAllowThreads(__tstate); | |
21108 | if (PyErr_Occurred()) SWIG_fail; | |
21109 | } | |
21110 | { | |
412d302d | 21111 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21112 | } |
21113 | return resultobj; | |
21114 | fail: | |
21115 | return NULL; | |
21116 | } | |
21117 | ||
21118 | ||
c32bde28 | 21119 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
f20a2e1f | 21120 | PyObject *resultobj; |
093d3ff1 | 21121 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
f20a2e1f RD |
21122 | wxVisualAttributes result; |
21123 | PyObject * obj0 = 0 ; | |
21124 | char *kwnames[] = { | |
21125 | (char *) "variant", NULL | |
21126 | }; | |
21127 | ||
21128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
21129 | if (obj0) { | |
093d3ff1 RD |
21130 | { |
21131 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
21132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21133 | } | |
f20a2e1f RD |
21134 | } |
21135 | { | |
19272049 | 21136 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
21137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21138 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
21139 | ||
21140 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21141 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
21142 | } |
21143 | { | |
21144 | wxVisualAttributes * resultptr; | |
093d3ff1 | 21145 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
f20a2e1f RD |
21146 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
21147 | } | |
21148 | return resultobj; | |
21149 | fail: | |
21150 | return NULL; | |
21151 | } | |
21152 | ||
21153 | ||
c32bde28 | 21154 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21155 | PyObject *obj; |
21156 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21157 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
21158 | Py_INCREF(obj); | |
21159 | return Py_BuildValue((char *)""); | |
21160 | } | |
c32bde28 | 21161 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
21162 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
21163 | return 1; | |
21164 | } | |
21165 | ||
21166 | ||
093d3ff1 | 21167 | static PyObject *_wrap_ListCtrlNameStr_get(void) { |
d55e5bfc RD |
21168 | PyObject *pyobj; |
21169 | ||
21170 | { | |
21171 | #if wxUSE_UNICODE | |
21172 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21173 | #else | |
21174 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21175 | #endif | |
21176 | } | |
21177 | return pyobj; | |
21178 | } | |
21179 | ||
21180 | ||
c32bde28 | 21181 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21182 | PyObject *resultobj; |
21183 | wxColour const &arg1_defvalue = wxNullColour ; | |
21184 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
21185 | wxColour const &arg2_defvalue = wxNullColour ; | |
21186 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
21187 | wxFont const &arg3_defvalue = wxNullFont ; | |
21188 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
21189 | wxListItemAttr *result; | |
21190 | wxColour temp1 ; | |
21191 | wxColour temp2 ; | |
21192 | PyObject * obj0 = 0 ; | |
21193 | PyObject * obj1 = 0 ; | |
21194 | PyObject * obj2 = 0 ; | |
21195 | char *kwnames[] = { | |
21196 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
21197 | }; | |
21198 | ||
21199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21200 | if (obj0) { | |
21201 | { | |
21202 | arg1 = &temp1; | |
21203 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
21204 | } | |
21205 | } | |
21206 | if (obj1) { | |
21207 | { | |
21208 | arg2 = &temp2; | |
21209 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21210 | } | |
21211 | } | |
21212 | if (obj2) { | |
093d3ff1 RD |
21213 | { |
21214 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21215 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21216 | if (arg3 == NULL) { | |
21217 | SWIG_null_ref("wxFont"); | |
21218 | } | |
21219 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
21220 | } |
21221 | } | |
21222 | { | |
21223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21224 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
21225 | ||
21226 | wxPyEndAllowThreads(__tstate); | |
21227 | if (PyErr_Occurred()) SWIG_fail; | |
21228 | } | |
21229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
21230 | return resultobj; | |
21231 | fail: | |
21232 | return NULL; | |
21233 | } | |
21234 | ||
21235 | ||
c32bde28 | 21236 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21237 | PyObject *resultobj; |
21238 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21239 | wxColour *arg2 = 0 ; | |
21240 | wxColour temp2 ; | |
21241 | PyObject * obj0 = 0 ; | |
21242 | PyObject * obj1 = 0 ; | |
21243 | char *kwnames[] = { | |
21244 | (char *) "self",(char *) "colText", NULL | |
21245 | }; | |
21246 | ||
21247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21250 | { |
21251 | arg2 = &temp2; | |
21252 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21253 | } | |
21254 | { | |
21255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21256 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21257 | ||
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | Py_INCREF(Py_None); resultobj = Py_None; | |
21262 | return resultobj; | |
21263 | fail: | |
21264 | return NULL; | |
21265 | } | |
21266 | ||
21267 | ||
c32bde28 | 21268 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21269 | PyObject *resultobj; |
21270 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21271 | wxColour *arg2 = 0 ; | |
21272 | wxColour temp2 ; | |
21273 | PyObject * obj0 = 0 ; | |
21274 | PyObject * obj1 = 0 ; | |
21275 | char *kwnames[] = { | |
21276 | (char *) "self",(char *) "colBack", NULL | |
21277 | }; | |
21278 | ||
21279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21282 | { |
21283 | arg2 = &temp2; | |
21284 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21285 | } | |
21286 | { | |
21287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21288 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21289 | ||
21290 | wxPyEndAllowThreads(__tstate); | |
21291 | if (PyErr_Occurred()) SWIG_fail; | |
21292 | } | |
21293 | Py_INCREF(Py_None); resultobj = Py_None; | |
21294 | return resultobj; | |
21295 | fail: | |
21296 | return NULL; | |
21297 | } | |
21298 | ||
21299 | ||
c32bde28 | 21300 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21301 | PyObject *resultobj; |
21302 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21303 | wxFont *arg2 = 0 ; | |
21304 | PyObject * obj0 = 0 ; | |
21305 | PyObject * obj1 = 0 ; | |
21306 | char *kwnames[] = { | |
21307 | (char *) "self",(char *) "font", NULL | |
21308 | }; | |
21309 | ||
21310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21313 | { | |
21314 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21315 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21316 | if (arg2 == NULL) { | |
21317 | SWIG_null_ref("wxFont"); | |
21318 | } | |
21319 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
21320 | } |
21321 | { | |
21322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21323 | (arg1)->SetFont((wxFont const &)*arg2); | |
21324 | ||
21325 | wxPyEndAllowThreads(__tstate); | |
21326 | if (PyErr_Occurred()) SWIG_fail; | |
21327 | } | |
21328 | Py_INCREF(Py_None); resultobj = Py_None; | |
21329 | return resultobj; | |
21330 | fail: | |
21331 | return NULL; | |
21332 | } | |
21333 | ||
21334 | ||
c32bde28 | 21335 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21336 | PyObject *resultobj; |
21337 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21338 | bool result; | |
21339 | PyObject * obj0 = 0 ; | |
21340 | char *kwnames[] = { | |
21341 | (char *) "self", NULL | |
21342 | }; | |
21343 | ||
21344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21347 | { |
21348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21349 | result = (bool)(arg1)->HasTextColour(); | |
21350 | ||
21351 | wxPyEndAllowThreads(__tstate); | |
21352 | if (PyErr_Occurred()) SWIG_fail; | |
21353 | } | |
21354 | { | |
21355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21356 | } | |
21357 | return resultobj; | |
21358 | fail: | |
21359 | return NULL; | |
21360 | } | |
21361 | ||
21362 | ||
c32bde28 | 21363 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21364 | PyObject *resultobj; |
21365 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21366 | bool result; | |
21367 | PyObject * obj0 = 0 ; | |
21368 | char *kwnames[] = { | |
21369 | (char *) "self", NULL | |
21370 | }; | |
21371 | ||
21372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21373 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21375 | { |
21376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21377 | result = (bool)(arg1)->HasBackgroundColour(); | |
21378 | ||
21379 | wxPyEndAllowThreads(__tstate); | |
21380 | if (PyErr_Occurred()) SWIG_fail; | |
21381 | } | |
21382 | { | |
21383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21384 | } | |
21385 | return resultobj; | |
21386 | fail: | |
21387 | return NULL; | |
21388 | } | |
21389 | ||
21390 | ||
c32bde28 | 21391 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21392 | PyObject *resultobj; |
21393 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21394 | bool result; | |
21395 | PyObject * obj0 = 0 ; | |
21396 | char *kwnames[] = { | |
21397 | (char *) "self", NULL | |
21398 | }; | |
21399 | ||
21400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21403 | { |
21404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21405 | result = (bool)(arg1)->HasFont(); | |
21406 | ||
21407 | wxPyEndAllowThreads(__tstate); | |
21408 | if (PyErr_Occurred()) SWIG_fail; | |
21409 | } | |
21410 | { | |
21411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21412 | } | |
21413 | return resultobj; | |
21414 | fail: | |
21415 | return NULL; | |
21416 | } | |
21417 | ||
21418 | ||
c32bde28 | 21419 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21420 | PyObject *resultobj; |
21421 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21422 | wxColour result; | |
21423 | PyObject * obj0 = 0 ; | |
21424 | char *kwnames[] = { | |
21425 | (char *) "self", NULL | |
21426 | }; | |
21427 | ||
21428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21431 | { |
21432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21433 | result = (arg1)->GetTextColour(); | |
21434 | ||
21435 | wxPyEndAllowThreads(__tstate); | |
21436 | if (PyErr_Occurred()) SWIG_fail; | |
21437 | } | |
21438 | { | |
21439 | wxColour * resultptr; | |
093d3ff1 | 21440 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
21441 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
21442 | } | |
21443 | return resultobj; | |
21444 | fail: | |
21445 | return NULL; | |
21446 | } | |
21447 | ||
21448 | ||
c32bde28 | 21449 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21450 | PyObject *resultobj; |
21451 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21452 | wxColour result; | |
21453 | PyObject * obj0 = 0 ; | |
21454 | char *kwnames[] = { | |
21455 | (char *) "self", NULL | |
21456 | }; | |
21457 | ||
21458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21461 | { |
21462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21463 | result = (arg1)->GetBackgroundColour(); | |
21464 | ||
21465 | wxPyEndAllowThreads(__tstate); | |
21466 | if (PyErr_Occurred()) SWIG_fail; | |
21467 | } | |
21468 | { | |
21469 | wxColour * resultptr; | |
093d3ff1 | 21470 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
21471 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
21472 | } | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
c32bde28 | 21479 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21480 | PyObject *resultobj; |
21481 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21482 | wxFont result; | |
21483 | PyObject * obj0 = 0 ; | |
21484 | char *kwnames[] = { | |
21485 | (char *) "self", NULL | |
21486 | }; | |
21487 | ||
21488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21491 | { |
21492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21493 | result = (arg1)->GetFont(); | |
21494 | ||
21495 | wxPyEndAllowThreads(__tstate); | |
21496 | if (PyErr_Occurred()) SWIG_fail; | |
21497 | } | |
21498 | { | |
21499 | wxFont * resultptr; | |
093d3ff1 | 21500 | resultptr = new wxFont((wxFont &)(result)); |
d55e5bfc RD |
21501 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
21502 | } | |
21503 | return resultobj; | |
21504 | fail: | |
21505 | return NULL; | |
21506 | } | |
21507 | ||
21508 | ||
c32bde28 | 21509 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21510 | PyObject *resultobj; |
21511 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21512 | PyObject * obj0 = 0 ; | |
21513 | char *kwnames[] = { | |
21514 | (char *) "self", NULL | |
21515 | }; | |
21516 | ||
21517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21520 | { |
21521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21522 | wxListItemAttr_Destroy(arg1); | |
21523 | ||
21524 | wxPyEndAllowThreads(__tstate); | |
21525 | if (PyErr_Occurred()) SWIG_fail; | |
21526 | } | |
21527 | Py_INCREF(Py_None); resultobj = Py_None; | |
21528 | return resultobj; | |
21529 | fail: | |
21530 | return NULL; | |
21531 | } | |
21532 | ||
21533 | ||
c32bde28 | 21534 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21535 | PyObject *obj; |
21536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21537 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
21538 | Py_INCREF(obj); | |
21539 | return Py_BuildValue((char *)""); | |
21540 | } | |
c32bde28 | 21541 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21542 | PyObject *resultobj; |
21543 | wxListItem *result; | |
21544 | char *kwnames[] = { | |
21545 | NULL | |
21546 | }; | |
21547 | ||
21548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
21549 | { | |
21550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21551 | result = (wxListItem *)new wxListItem(); | |
21552 | ||
21553 | wxPyEndAllowThreads(__tstate); | |
21554 | if (PyErr_Occurred()) SWIG_fail; | |
21555 | } | |
21556 | { | |
412d302d | 21557 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
21558 | } |
21559 | return resultobj; | |
21560 | fail: | |
21561 | return NULL; | |
21562 | } | |
21563 | ||
21564 | ||
c32bde28 | 21565 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21566 | PyObject *resultobj; |
21567 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21568 | PyObject * obj0 = 0 ; | |
21569 | char *kwnames[] = { | |
21570 | (char *) "self", NULL | |
21571 | }; | |
21572 | ||
21573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21576 | { |
21577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21578 | delete arg1; | |
21579 | ||
21580 | wxPyEndAllowThreads(__tstate); | |
21581 | if (PyErr_Occurred()) SWIG_fail; | |
21582 | } | |
21583 | Py_INCREF(Py_None); resultobj = Py_None; | |
21584 | return resultobj; | |
21585 | fail: | |
21586 | return NULL; | |
21587 | } | |
21588 | ||
21589 | ||
c32bde28 | 21590 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21591 | PyObject *resultobj; |
21592 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21593 | PyObject * obj0 = 0 ; | |
21594 | char *kwnames[] = { | |
21595 | (char *) "self", NULL | |
21596 | }; | |
21597 | ||
21598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21601 | { |
21602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21603 | (arg1)->Clear(); | |
21604 | ||
21605 | wxPyEndAllowThreads(__tstate); | |
21606 | if (PyErr_Occurred()) SWIG_fail; | |
21607 | } | |
21608 | Py_INCREF(Py_None); resultobj = Py_None; | |
21609 | return resultobj; | |
21610 | fail: | |
21611 | return NULL; | |
21612 | } | |
21613 | ||
21614 | ||
c32bde28 | 21615 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21616 | PyObject *resultobj; |
21617 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21618 | PyObject * obj0 = 0 ; | |
21619 | char *kwnames[] = { | |
21620 | (char *) "self", NULL | |
21621 | }; | |
21622 | ||
21623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21626 | { |
21627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21628 | (arg1)->ClearAttributes(); | |
21629 | ||
21630 | wxPyEndAllowThreads(__tstate); | |
21631 | if (PyErr_Occurred()) SWIG_fail; | |
21632 | } | |
21633 | Py_INCREF(Py_None); resultobj = Py_None; | |
21634 | return resultobj; | |
21635 | fail: | |
21636 | return NULL; | |
21637 | } | |
21638 | ||
21639 | ||
c32bde28 | 21640 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21641 | PyObject *resultobj; |
21642 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21643 | long arg2 ; | |
21644 | PyObject * obj0 = 0 ; | |
21645 | PyObject * obj1 = 0 ; | |
21646 | char *kwnames[] = { | |
21647 | (char *) "self",(char *) "mask", NULL | |
21648 | }; | |
21649 | ||
21650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21653 | { | |
21654 | arg2 = (long)(SWIG_As_long(obj1)); | |
21655 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21656 | } | |
d55e5bfc RD |
21657 | { |
21658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21659 | (arg1)->SetMask(arg2); | |
21660 | ||
21661 | wxPyEndAllowThreads(__tstate); | |
21662 | if (PyErr_Occurred()) SWIG_fail; | |
21663 | } | |
21664 | Py_INCREF(Py_None); resultobj = Py_None; | |
21665 | return resultobj; | |
21666 | fail: | |
21667 | return NULL; | |
21668 | } | |
21669 | ||
21670 | ||
c32bde28 | 21671 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21672 | PyObject *resultobj; |
21673 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21674 | long arg2 ; | |
21675 | PyObject * obj0 = 0 ; | |
21676 | PyObject * obj1 = 0 ; | |
21677 | char *kwnames[] = { | |
21678 | (char *) "self",(char *) "id", NULL | |
21679 | }; | |
21680 | ||
21681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21684 | { | |
21685 | arg2 = (long)(SWIG_As_long(obj1)); | |
21686 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21687 | } | |
d55e5bfc RD |
21688 | { |
21689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21690 | (arg1)->SetId(arg2); | |
21691 | ||
21692 | wxPyEndAllowThreads(__tstate); | |
21693 | if (PyErr_Occurred()) SWIG_fail; | |
21694 | } | |
21695 | Py_INCREF(Py_None); resultobj = Py_None; | |
21696 | return resultobj; | |
21697 | fail: | |
21698 | return NULL; | |
21699 | } | |
21700 | ||
21701 | ||
c32bde28 | 21702 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21703 | PyObject *resultobj; |
21704 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21705 | int arg2 ; | |
21706 | PyObject * obj0 = 0 ; | |
21707 | PyObject * obj1 = 0 ; | |
21708 | char *kwnames[] = { | |
21709 | (char *) "self",(char *) "col", NULL | |
21710 | }; | |
21711 | ||
21712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21715 | { | |
21716 | arg2 = (int)(SWIG_As_int(obj1)); | |
21717 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21718 | } | |
d55e5bfc RD |
21719 | { |
21720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21721 | (arg1)->SetColumn(arg2); | |
21722 | ||
21723 | wxPyEndAllowThreads(__tstate); | |
21724 | if (PyErr_Occurred()) SWIG_fail; | |
21725 | } | |
21726 | Py_INCREF(Py_None); resultobj = Py_None; | |
21727 | return resultobj; | |
21728 | fail: | |
21729 | return NULL; | |
21730 | } | |
21731 | ||
21732 | ||
c32bde28 | 21733 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21734 | PyObject *resultobj; |
21735 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21736 | long arg2 ; | |
21737 | PyObject * obj0 = 0 ; | |
21738 | PyObject * obj1 = 0 ; | |
21739 | char *kwnames[] = { | |
21740 | (char *) "self",(char *) "state", NULL | |
21741 | }; | |
21742 | ||
21743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21746 | { | |
21747 | arg2 = (long)(SWIG_As_long(obj1)); | |
21748 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21749 | } | |
d55e5bfc RD |
21750 | { |
21751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21752 | (arg1)->SetState(arg2); | |
21753 | ||
21754 | wxPyEndAllowThreads(__tstate); | |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
21756 | } | |
21757 | Py_INCREF(Py_None); resultobj = Py_None; | |
21758 | return resultobj; | |
21759 | fail: | |
21760 | return NULL; | |
21761 | } | |
21762 | ||
21763 | ||
c32bde28 | 21764 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21765 | PyObject *resultobj; |
21766 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21767 | long arg2 ; | |
21768 | PyObject * obj0 = 0 ; | |
21769 | PyObject * obj1 = 0 ; | |
21770 | char *kwnames[] = { | |
21771 | (char *) "self",(char *) "stateMask", NULL | |
21772 | }; | |
21773 | ||
21774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21775 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21776 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21777 | { | |
21778 | arg2 = (long)(SWIG_As_long(obj1)); | |
21779 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21780 | } | |
d55e5bfc RD |
21781 | { |
21782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21783 | (arg1)->SetStateMask(arg2); | |
21784 | ||
21785 | wxPyEndAllowThreads(__tstate); | |
21786 | if (PyErr_Occurred()) SWIG_fail; | |
21787 | } | |
21788 | Py_INCREF(Py_None); resultobj = Py_None; | |
21789 | return resultobj; | |
21790 | fail: | |
21791 | return NULL; | |
21792 | } | |
21793 | ||
21794 | ||
c32bde28 | 21795 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21796 | PyObject *resultobj; |
21797 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21798 | wxString *arg2 = 0 ; | |
ae8162c8 | 21799 | bool temp2 = false ; |
d55e5bfc RD |
21800 | PyObject * obj0 = 0 ; |
21801 | PyObject * obj1 = 0 ; | |
21802 | char *kwnames[] = { | |
21803 | (char *) "self",(char *) "text", NULL | |
21804 | }; | |
21805 | ||
21806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21809 | { |
21810 | arg2 = wxString_in_helper(obj1); | |
21811 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21812 | temp2 = true; |
d55e5bfc RD |
21813 | } |
21814 | { | |
21815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21816 | (arg1)->SetText((wxString const &)*arg2); | |
21817 | ||
21818 | wxPyEndAllowThreads(__tstate); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
21821 | Py_INCREF(Py_None); resultobj = Py_None; | |
21822 | { | |
21823 | if (temp2) | |
21824 | delete arg2; | |
21825 | } | |
21826 | return resultobj; | |
21827 | fail: | |
21828 | { | |
21829 | if (temp2) | |
21830 | delete arg2; | |
21831 | } | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
c32bde28 | 21836 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21837 | PyObject *resultobj; |
21838 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21839 | int arg2 ; | |
21840 | PyObject * obj0 = 0 ; | |
21841 | PyObject * obj1 = 0 ; | |
21842 | char *kwnames[] = { | |
21843 | (char *) "self",(char *) "image", NULL | |
21844 | }; | |
21845 | ||
21846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21849 | { | |
21850 | arg2 = (int)(SWIG_As_int(obj1)); | |
21851 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21852 | } | |
d55e5bfc RD |
21853 | { |
21854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21855 | (arg1)->SetImage(arg2); | |
21856 | ||
21857 | wxPyEndAllowThreads(__tstate); | |
21858 | if (PyErr_Occurred()) SWIG_fail; | |
21859 | } | |
21860 | Py_INCREF(Py_None); resultobj = Py_None; | |
21861 | return resultobj; | |
21862 | fail: | |
21863 | return NULL; | |
21864 | } | |
21865 | ||
21866 | ||
c32bde28 | 21867 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21868 | PyObject *resultobj; |
21869 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21870 | long arg2 ; | |
21871 | PyObject * obj0 = 0 ; | |
21872 | PyObject * obj1 = 0 ; | |
21873 | char *kwnames[] = { | |
21874 | (char *) "self",(char *) "data", NULL | |
21875 | }; | |
21876 | ||
21877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21880 | { | |
21881 | arg2 = (long)(SWIG_As_long(obj1)); | |
21882 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21883 | } | |
d55e5bfc RD |
21884 | { |
21885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21886 | (arg1)->SetData(arg2); | |
21887 | ||
21888 | wxPyEndAllowThreads(__tstate); | |
21889 | if (PyErr_Occurred()) SWIG_fail; | |
21890 | } | |
21891 | Py_INCREF(Py_None); resultobj = Py_None; | |
21892 | return resultobj; | |
21893 | fail: | |
21894 | return NULL; | |
21895 | } | |
21896 | ||
21897 | ||
c32bde28 | 21898 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21899 | PyObject *resultobj; |
21900 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21901 | int arg2 ; | |
21902 | PyObject * obj0 = 0 ; | |
21903 | PyObject * obj1 = 0 ; | |
21904 | char *kwnames[] = { | |
21905 | (char *) "self",(char *) "width", NULL | |
21906 | }; | |
21907 | ||
21908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21911 | { | |
21912 | arg2 = (int)(SWIG_As_int(obj1)); | |
21913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21914 | } | |
d55e5bfc RD |
21915 | { |
21916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21917 | (arg1)->SetWidth(arg2); | |
21918 | ||
21919 | wxPyEndAllowThreads(__tstate); | |
21920 | if (PyErr_Occurred()) SWIG_fail; | |
21921 | } | |
21922 | Py_INCREF(Py_None); resultobj = Py_None; | |
21923 | return resultobj; | |
21924 | fail: | |
21925 | return NULL; | |
21926 | } | |
21927 | ||
21928 | ||
c32bde28 | 21929 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21930 | PyObject *resultobj; |
21931 | wxListItem *arg1 = (wxListItem *) 0 ; | |
093d3ff1 | 21932 | wxListColumnFormat arg2 ; |
d55e5bfc RD |
21933 | PyObject * obj0 = 0 ; |
21934 | PyObject * obj1 = 0 ; | |
21935 | char *kwnames[] = { | |
21936 | (char *) "self",(char *) "align", NULL | |
21937 | }; | |
21938 | ||
21939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21942 | { | |
21943 | arg2 = (wxListColumnFormat)(SWIG_As_int(obj1)); | |
21944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21945 | } | |
d55e5bfc RD |
21946 | { |
21947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21948 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
21949 | ||
21950 | wxPyEndAllowThreads(__tstate); | |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
21953 | Py_INCREF(Py_None); resultobj = Py_None; | |
21954 | return resultobj; | |
21955 | fail: | |
21956 | return NULL; | |
21957 | } | |
21958 | ||
21959 | ||
c32bde28 | 21960 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21961 | PyObject *resultobj; |
21962 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21963 | wxColour *arg2 = 0 ; | |
21964 | wxColour temp2 ; | |
21965 | PyObject * obj0 = 0 ; | |
21966 | PyObject * obj1 = 0 ; | |
21967 | char *kwnames[] = { | |
21968 | (char *) "self",(char *) "colText", NULL | |
21969 | }; | |
21970 | ||
21971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
21974 | { |
21975 | arg2 = &temp2; | |
21976 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21977 | } | |
21978 | { | |
21979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21980 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21981 | ||
21982 | wxPyEndAllowThreads(__tstate); | |
21983 | if (PyErr_Occurred()) SWIG_fail; | |
21984 | } | |
21985 | Py_INCREF(Py_None); resultobj = Py_None; | |
21986 | return resultobj; | |
21987 | fail: | |
21988 | return NULL; | |
21989 | } | |
21990 | ||
21991 | ||
c32bde28 | 21992 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21993 | PyObject *resultobj; |
21994 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21995 | wxColour *arg2 = 0 ; | |
21996 | wxColour temp2 ; | |
21997 | PyObject * obj0 = 0 ; | |
21998 | PyObject * obj1 = 0 ; | |
21999 | char *kwnames[] = { | |
22000 | (char *) "self",(char *) "colBack", NULL | |
22001 | }; | |
22002 | ||
22003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22006 | { |
22007 | arg2 = &temp2; | |
22008 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22009 | } | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22013 | ||
22014 | wxPyEndAllowThreads(__tstate); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | Py_INCREF(Py_None); resultobj = Py_None; | |
22018 | return resultobj; | |
22019 | fail: | |
22020 | return NULL; | |
22021 | } | |
22022 | ||
22023 | ||
c32bde28 | 22024 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22025 | PyObject *resultobj; |
22026 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22027 | wxFont *arg2 = 0 ; | |
22028 | PyObject * obj0 = 0 ; | |
22029 | PyObject * obj1 = 0 ; | |
22030 | char *kwnames[] = { | |
22031 | (char *) "self",(char *) "font", NULL | |
22032 | }; | |
22033 | ||
22034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22037 | { | |
22038 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
22039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22040 | if (arg2 == NULL) { | |
22041 | SWIG_null_ref("wxFont"); | |
22042 | } | |
22043 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
22044 | } |
22045 | { | |
22046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22047 | (arg1)->SetFont((wxFont const &)*arg2); | |
22048 | ||
22049 | wxPyEndAllowThreads(__tstate); | |
22050 | if (PyErr_Occurred()) SWIG_fail; | |
22051 | } | |
22052 | Py_INCREF(Py_None); resultobj = Py_None; | |
22053 | return resultobj; | |
22054 | fail: | |
22055 | return NULL; | |
22056 | } | |
22057 | ||
22058 | ||
c32bde28 | 22059 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22060 | PyObject *resultobj; |
22061 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22062 | long result; | |
22063 | PyObject * obj0 = 0 ; | |
22064 | char *kwnames[] = { | |
22065 | (char *) "self", NULL | |
22066 | }; | |
22067 | ||
22068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22071 | { |
22072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22073 | result = (long)(arg1)->GetMask(); | |
22074 | ||
22075 | wxPyEndAllowThreads(__tstate); | |
22076 | if (PyErr_Occurred()) SWIG_fail; | |
22077 | } | |
093d3ff1 RD |
22078 | { |
22079 | resultobj = SWIG_From_long((long)(result)); | |
22080 | } | |
d55e5bfc RD |
22081 | return resultobj; |
22082 | fail: | |
22083 | return NULL; | |
22084 | } | |
22085 | ||
22086 | ||
c32bde28 | 22087 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22088 | PyObject *resultobj; |
22089 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22090 | long result; | |
22091 | PyObject * obj0 = 0 ; | |
22092 | char *kwnames[] = { | |
22093 | (char *) "self", NULL | |
22094 | }; | |
22095 | ||
22096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22099 | { |
22100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22101 | result = (long)(arg1)->GetId(); | |
22102 | ||
22103 | wxPyEndAllowThreads(__tstate); | |
22104 | if (PyErr_Occurred()) SWIG_fail; | |
22105 | } | |
093d3ff1 RD |
22106 | { |
22107 | resultobj = SWIG_From_long((long)(result)); | |
22108 | } | |
d55e5bfc RD |
22109 | return resultobj; |
22110 | fail: | |
22111 | return NULL; | |
22112 | } | |
22113 | ||
22114 | ||
c32bde28 | 22115 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22116 | PyObject *resultobj; |
22117 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22118 | int result; | |
22119 | PyObject * obj0 = 0 ; | |
22120 | char *kwnames[] = { | |
22121 | (char *) "self", NULL | |
22122 | }; | |
22123 | ||
22124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22127 | { |
22128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22129 | result = (int)(arg1)->GetColumn(); | |
22130 | ||
22131 | wxPyEndAllowThreads(__tstate); | |
22132 | if (PyErr_Occurred()) SWIG_fail; | |
22133 | } | |
093d3ff1 RD |
22134 | { |
22135 | resultobj = SWIG_From_int((int)(result)); | |
22136 | } | |
d55e5bfc RD |
22137 | return resultobj; |
22138 | fail: | |
22139 | return NULL; | |
22140 | } | |
22141 | ||
22142 | ||
c32bde28 | 22143 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22144 | PyObject *resultobj; |
22145 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22146 | long result; | |
22147 | PyObject * obj0 = 0 ; | |
22148 | char *kwnames[] = { | |
22149 | (char *) "self", NULL | |
22150 | }; | |
22151 | ||
22152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22155 | { |
22156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22157 | result = (long)(arg1)->GetState(); | |
22158 | ||
22159 | wxPyEndAllowThreads(__tstate); | |
22160 | if (PyErr_Occurred()) SWIG_fail; | |
22161 | } | |
093d3ff1 RD |
22162 | { |
22163 | resultobj = SWIG_From_long((long)(result)); | |
22164 | } | |
d55e5bfc RD |
22165 | return resultobj; |
22166 | fail: | |
22167 | return NULL; | |
22168 | } | |
22169 | ||
22170 | ||
c32bde28 | 22171 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22172 | PyObject *resultobj; |
22173 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22174 | wxString *result; | |
22175 | PyObject * obj0 = 0 ; | |
22176 | char *kwnames[] = { | |
22177 | (char *) "self", NULL | |
22178 | }; | |
22179 | ||
22180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22181 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22183 | { |
22184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22185 | { | |
22186 | wxString const &_result_ref = (arg1)->GetText(); | |
22187 | result = (wxString *) &_result_ref; | |
22188 | } | |
22189 | ||
22190 | wxPyEndAllowThreads(__tstate); | |
22191 | if (PyErr_Occurred()) SWIG_fail; | |
22192 | } | |
22193 | { | |
22194 | #if wxUSE_UNICODE | |
22195 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22196 | #else | |
22197 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22198 | #endif | |
22199 | } | |
22200 | return resultobj; | |
22201 | fail: | |
22202 | return NULL; | |
22203 | } | |
22204 | ||
22205 | ||
c32bde28 | 22206 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22207 | PyObject *resultobj; |
22208 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22209 | int result; | |
22210 | PyObject * obj0 = 0 ; | |
22211 | char *kwnames[] = { | |
22212 | (char *) "self", NULL | |
22213 | }; | |
22214 | ||
22215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22218 | { |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | result = (int)(arg1)->GetImage(); | |
22221 | ||
22222 | wxPyEndAllowThreads(__tstate); | |
22223 | if (PyErr_Occurred()) SWIG_fail; | |
22224 | } | |
093d3ff1 RD |
22225 | { |
22226 | resultobj = SWIG_From_int((int)(result)); | |
22227 | } | |
d55e5bfc RD |
22228 | return resultobj; |
22229 | fail: | |
22230 | return NULL; | |
22231 | } | |
22232 | ||
22233 | ||
c32bde28 | 22234 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22235 | PyObject *resultobj; |
22236 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22237 | long result; | |
22238 | PyObject * obj0 = 0 ; | |
22239 | char *kwnames[] = { | |
22240 | (char *) "self", NULL | |
22241 | }; | |
22242 | ||
22243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22246 | { |
22247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22248 | result = (long)(arg1)->GetData(); | |
22249 | ||
22250 | wxPyEndAllowThreads(__tstate); | |
22251 | if (PyErr_Occurred()) SWIG_fail; | |
22252 | } | |
093d3ff1 RD |
22253 | { |
22254 | resultobj = SWIG_From_long((long)(result)); | |
22255 | } | |
d55e5bfc RD |
22256 | return resultobj; |
22257 | fail: | |
22258 | return NULL; | |
22259 | } | |
22260 | ||
22261 | ||
c32bde28 | 22262 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22263 | PyObject *resultobj; |
22264 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22265 | int result; | |
22266 | PyObject * obj0 = 0 ; | |
22267 | char *kwnames[] = { | |
22268 | (char *) "self", NULL | |
22269 | }; | |
22270 | ||
22271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22274 | { |
22275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22276 | result = (int)(arg1)->GetWidth(); | |
22277 | ||
22278 | wxPyEndAllowThreads(__tstate); | |
22279 | if (PyErr_Occurred()) SWIG_fail; | |
22280 | } | |
093d3ff1 RD |
22281 | { |
22282 | resultobj = SWIG_From_int((int)(result)); | |
22283 | } | |
d55e5bfc RD |
22284 | return resultobj; |
22285 | fail: | |
22286 | return NULL; | |
22287 | } | |
22288 | ||
22289 | ||
c32bde28 | 22290 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22291 | PyObject *resultobj; |
22292 | wxListItem *arg1 = (wxListItem *) 0 ; | |
093d3ff1 | 22293 | wxListColumnFormat result; |
d55e5bfc RD |
22294 | PyObject * obj0 = 0 ; |
22295 | char *kwnames[] = { | |
22296 | (char *) "self", NULL | |
22297 | }; | |
22298 | ||
22299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22302 | { |
22303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22304 | result = (wxListColumnFormat)(arg1)->GetAlign(); |
d55e5bfc RD |
22305 | |
22306 | wxPyEndAllowThreads(__tstate); | |
22307 | if (PyErr_Occurred()) SWIG_fail; | |
22308 | } | |
093d3ff1 | 22309 | resultobj = SWIG_From_int((result)); |
d55e5bfc RD |
22310 | return resultobj; |
22311 | fail: | |
22312 | return NULL; | |
22313 | } | |
22314 | ||
22315 | ||
c32bde28 | 22316 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22317 | PyObject *resultobj; |
22318 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22319 | wxListItemAttr *result; | |
22320 | PyObject * obj0 = 0 ; | |
22321 | char *kwnames[] = { | |
22322 | (char *) "self", NULL | |
22323 | }; | |
22324 | ||
22325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22328 | { |
22329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22330 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
22331 | ||
22332 | wxPyEndAllowThreads(__tstate); | |
22333 | if (PyErr_Occurred()) SWIG_fail; | |
22334 | } | |
22335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
22336 | return resultobj; | |
22337 | fail: | |
22338 | return NULL; | |
22339 | } | |
22340 | ||
22341 | ||
c32bde28 | 22342 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22343 | PyObject *resultobj; |
22344 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22345 | bool result; | |
22346 | PyObject * obj0 = 0 ; | |
22347 | char *kwnames[] = { | |
22348 | (char *) "self", NULL | |
22349 | }; | |
22350 | ||
22351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22352 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22353 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22354 | { |
22355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22356 | result = (bool)(arg1)->HasAttributes(); | |
22357 | ||
22358 | wxPyEndAllowThreads(__tstate); | |
22359 | if (PyErr_Occurred()) SWIG_fail; | |
22360 | } | |
22361 | { | |
22362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22363 | } | |
22364 | return resultobj; | |
22365 | fail: | |
22366 | return NULL; | |
22367 | } | |
22368 | ||
22369 | ||
c32bde28 | 22370 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22371 | PyObject *resultobj; |
22372 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22373 | wxColour result; | |
22374 | PyObject * obj0 = 0 ; | |
22375 | char *kwnames[] = { | |
22376 | (char *) "self", NULL | |
22377 | }; | |
22378 | ||
22379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22380 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22381 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22382 | { |
22383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22384 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
22385 | ||
22386 | wxPyEndAllowThreads(__tstate); | |
22387 | if (PyErr_Occurred()) SWIG_fail; | |
22388 | } | |
22389 | { | |
22390 | wxColour * resultptr; | |
093d3ff1 | 22391 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
22392 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
22393 | } | |
22394 | return resultobj; | |
22395 | fail: | |
22396 | return NULL; | |
22397 | } | |
22398 | ||
22399 | ||
c32bde28 | 22400 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22401 | PyObject *resultobj; |
22402 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22403 | wxColour result; | |
22404 | PyObject * obj0 = 0 ; | |
22405 | char *kwnames[] = { | |
22406 | (char *) "self", NULL | |
22407 | }; | |
22408 | ||
22409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22412 | { |
22413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22414 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
22415 | ||
22416 | wxPyEndAllowThreads(__tstate); | |
22417 | if (PyErr_Occurred()) SWIG_fail; | |
22418 | } | |
22419 | { | |
22420 | wxColour * resultptr; | |
093d3ff1 | 22421 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
22422 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
22423 | } | |
22424 | return resultobj; | |
22425 | fail: | |
22426 | return NULL; | |
22427 | } | |
22428 | ||
22429 | ||
c32bde28 | 22430 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22431 | PyObject *resultobj; |
22432 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22433 | wxFont result; | |
22434 | PyObject * obj0 = 0 ; | |
22435 | char *kwnames[] = { | |
22436 | (char *) "self", NULL | |
22437 | }; | |
22438 | ||
22439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22442 | { |
22443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22444 | result = ((wxListItem const *)arg1)->GetFont(); | |
22445 | ||
22446 | wxPyEndAllowThreads(__tstate); | |
22447 | if (PyErr_Occurred()) SWIG_fail; | |
22448 | } | |
22449 | { | |
22450 | wxFont * resultptr; | |
093d3ff1 | 22451 | resultptr = new wxFont((wxFont &)(result)); |
d55e5bfc RD |
22452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
22453 | } | |
22454 | return resultobj; | |
22455 | fail: | |
22456 | return NULL; | |
22457 | } | |
22458 | ||
22459 | ||
c32bde28 | 22460 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22461 | PyObject *resultobj; |
22462 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22463 | long arg2 ; | |
22464 | PyObject * obj0 = 0 ; | |
22465 | PyObject * obj1 = 0 ; | |
22466 | char *kwnames[] = { | |
22467 | (char *) "self",(char *) "m_mask", NULL | |
22468 | }; | |
22469 | ||
22470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22473 | { | |
22474 | arg2 = (long)(SWIG_As_long(obj1)); | |
22475 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22476 | } | |
d55e5bfc RD |
22477 | if (arg1) (arg1)->m_mask = arg2; |
22478 | ||
22479 | Py_INCREF(Py_None); resultobj = Py_None; | |
22480 | return resultobj; | |
22481 | fail: | |
22482 | return NULL; | |
22483 | } | |
22484 | ||
22485 | ||
c32bde28 | 22486 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22487 | PyObject *resultobj; |
22488 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22489 | long result; | |
22490 | PyObject * obj0 = 0 ; | |
22491 | char *kwnames[] = { | |
22492 | (char *) "self", NULL | |
22493 | }; | |
22494 | ||
22495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22498 | result = (long) ((arg1)->m_mask); |
22499 | ||
093d3ff1 RD |
22500 | { |
22501 | resultobj = SWIG_From_long((long)(result)); | |
22502 | } | |
d55e5bfc RD |
22503 | return resultobj; |
22504 | fail: | |
22505 | return NULL; | |
22506 | } | |
22507 | ||
22508 | ||
c32bde28 | 22509 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22510 | PyObject *resultobj; |
22511 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22512 | long arg2 ; | |
22513 | PyObject * obj0 = 0 ; | |
22514 | PyObject * obj1 = 0 ; | |
22515 | char *kwnames[] = { | |
22516 | (char *) "self",(char *) "m_itemId", NULL | |
22517 | }; | |
22518 | ||
22519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22522 | { | |
22523 | arg2 = (long)(SWIG_As_long(obj1)); | |
22524 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22525 | } | |
d55e5bfc RD |
22526 | if (arg1) (arg1)->m_itemId = arg2; |
22527 | ||
22528 | Py_INCREF(Py_None); resultobj = Py_None; | |
22529 | return resultobj; | |
22530 | fail: | |
22531 | return NULL; | |
22532 | } | |
22533 | ||
22534 | ||
c32bde28 | 22535 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22536 | PyObject *resultobj; |
22537 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22538 | long result; | |
22539 | PyObject * obj0 = 0 ; | |
22540 | char *kwnames[] = { | |
22541 | (char *) "self", NULL | |
22542 | }; | |
22543 | ||
22544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22547 | result = (long) ((arg1)->m_itemId); |
22548 | ||
093d3ff1 RD |
22549 | { |
22550 | resultobj = SWIG_From_long((long)(result)); | |
22551 | } | |
d55e5bfc RD |
22552 | return resultobj; |
22553 | fail: | |
22554 | return NULL; | |
22555 | } | |
22556 | ||
22557 | ||
c32bde28 | 22558 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22559 | PyObject *resultobj; |
22560 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22561 | int arg2 ; | |
22562 | PyObject * obj0 = 0 ; | |
22563 | PyObject * obj1 = 0 ; | |
22564 | char *kwnames[] = { | |
22565 | (char *) "self",(char *) "m_col", NULL | |
22566 | }; | |
22567 | ||
22568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22571 | { | |
22572 | arg2 = (int)(SWIG_As_int(obj1)); | |
22573 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22574 | } | |
d55e5bfc RD |
22575 | if (arg1) (arg1)->m_col = arg2; |
22576 | ||
22577 | Py_INCREF(Py_None); resultobj = Py_None; | |
22578 | return resultobj; | |
22579 | fail: | |
22580 | return NULL; | |
22581 | } | |
22582 | ||
22583 | ||
c32bde28 | 22584 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22585 | PyObject *resultobj; |
22586 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22587 | int result; | |
22588 | PyObject * obj0 = 0 ; | |
22589 | char *kwnames[] = { | |
22590 | (char *) "self", NULL | |
22591 | }; | |
22592 | ||
22593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22596 | result = (int) ((arg1)->m_col); |
22597 | ||
093d3ff1 RD |
22598 | { |
22599 | resultobj = SWIG_From_int((int)(result)); | |
22600 | } | |
d55e5bfc RD |
22601 | return resultobj; |
22602 | fail: | |
22603 | return NULL; | |
22604 | } | |
22605 | ||
22606 | ||
c32bde28 | 22607 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22608 | PyObject *resultobj; |
22609 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22610 | long arg2 ; | |
22611 | PyObject * obj0 = 0 ; | |
22612 | PyObject * obj1 = 0 ; | |
22613 | char *kwnames[] = { | |
22614 | (char *) "self",(char *) "m_state", NULL | |
22615 | }; | |
22616 | ||
22617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22620 | { | |
22621 | arg2 = (long)(SWIG_As_long(obj1)); | |
22622 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22623 | } | |
d55e5bfc RD |
22624 | if (arg1) (arg1)->m_state = arg2; |
22625 | ||
22626 | Py_INCREF(Py_None); resultobj = Py_None; | |
22627 | return resultobj; | |
22628 | fail: | |
22629 | return NULL; | |
22630 | } | |
22631 | ||
22632 | ||
c32bde28 | 22633 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22634 | PyObject *resultobj; |
22635 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22636 | long result; | |
22637 | PyObject * obj0 = 0 ; | |
22638 | char *kwnames[] = { | |
22639 | (char *) "self", NULL | |
22640 | }; | |
22641 | ||
22642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22645 | result = (long) ((arg1)->m_state); |
22646 | ||
093d3ff1 RD |
22647 | { |
22648 | resultobj = SWIG_From_long((long)(result)); | |
22649 | } | |
d55e5bfc RD |
22650 | return resultobj; |
22651 | fail: | |
22652 | return NULL; | |
22653 | } | |
22654 | ||
22655 | ||
c32bde28 | 22656 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22657 | PyObject *resultobj; |
22658 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22659 | long arg2 ; | |
22660 | PyObject * obj0 = 0 ; | |
22661 | PyObject * obj1 = 0 ; | |
22662 | char *kwnames[] = { | |
22663 | (char *) "self",(char *) "m_stateMask", NULL | |
22664 | }; | |
22665 | ||
22666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22669 | { | |
22670 | arg2 = (long)(SWIG_As_long(obj1)); | |
22671 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22672 | } | |
d55e5bfc RD |
22673 | if (arg1) (arg1)->m_stateMask = arg2; |
22674 | ||
22675 | Py_INCREF(Py_None); resultobj = Py_None; | |
22676 | return resultobj; | |
22677 | fail: | |
22678 | return NULL; | |
22679 | } | |
22680 | ||
22681 | ||
c32bde28 | 22682 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22683 | PyObject *resultobj; |
22684 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22685 | long result; | |
22686 | PyObject * obj0 = 0 ; | |
22687 | char *kwnames[] = { | |
22688 | (char *) "self", NULL | |
22689 | }; | |
22690 | ||
22691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22694 | result = (long) ((arg1)->m_stateMask); |
22695 | ||
093d3ff1 RD |
22696 | { |
22697 | resultobj = SWIG_From_long((long)(result)); | |
22698 | } | |
d55e5bfc RD |
22699 | return resultobj; |
22700 | fail: | |
22701 | return NULL; | |
22702 | } | |
22703 | ||
22704 | ||
c32bde28 | 22705 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22706 | PyObject *resultobj; |
22707 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22708 | wxString *arg2 = (wxString *) 0 ; | |
ae8162c8 | 22709 | bool temp2 = false ; |
d55e5bfc RD |
22710 | PyObject * obj0 = 0 ; |
22711 | PyObject * obj1 = 0 ; | |
22712 | char *kwnames[] = { | |
22713 | (char *) "self",(char *) "m_text", NULL | |
22714 | }; | |
22715 | ||
22716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22719 | { |
22720 | arg2 = wxString_in_helper(obj1); | |
22721 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22722 | temp2 = true; |
d55e5bfc RD |
22723 | } |
22724 | if (arg1) (arg1)->m_text = *arg2; | |
22725 | ||
22726 | Py_INCREF(Py_None); resultobj = Py_None; | |
22727 | { | |
22728 | if (temp2) | |
22729 | delete arg2; | |
22730 | } | |
22731 | return resultobj; | |
22732 | fail: | |
22733 | { | |
22734 | if (temp2) | |
22735 | delete arg2; | |
22736 | } | |
22737 | return NULL; | |
22738 | } | |
22739 | ||
22740 | ||
c32bde28 | 22741 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22742 | PyObject *resultobj; |
22743 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22744 | wxString *result; | |
22745 | PyObject * obj0 = 0 ; | |
22746 | char *kwnames[] = { | |
22747 | (char *) "self", NULL | |
22748 | }; | |
22749 | ||
22750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22753 | result = (wxString *)& ((arg1)->m_text); |
22754 | ||
22755 | { | |
22756 | #if wxUSE_UNICODE | |
22757 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22758 | #else | |
22759 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22760 | #endif | |
22761 | } | |
22762 | return resultobj; | |
22763 | fail: | |
22764 | return NULL; | |
22765 | } | |
22766 | ||
22767 | ||
c32bde28 | 22768 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22769 | PyObject *resultobj; |
22770 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22771 | int arg2 ; | |
22772 | PyObject * obj0 = 0 ; | |
22773 | PyObject * obj1 = 0 ; | |
22774 | char *kwnames[] = { | |
22775 | (char *) "self",(char *) "m_image", NULL | |
22776 | }; | |
22777 | ||
22778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22781 | { | |
22782 | arg2 = (int)(SWIG_As_int(obj1)); | |
22783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22784 | } | |
d55e5bfc RD |
22785 | if (arg1) (arg1)->m_image = arg2; |
22786 | ||
22787 | Py_INCREF(Py_None); resultobj = Py_None; | |
22788 | return resultobj; | |
22789 | fail: | |
22790 | return NULL; | |
22791 | } | |
22792 | ||
22793 | ||
c32bde28 | 22794 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22795 | PyObject *resultobj; |
22796 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22797 | int result; | |
22798 | PyObject * obj0 = 0 ; | |
22799 | char *kwnames[] = { | |
22800 | (char *) "self", NULL | |
22801 | }; | |
22802 | ||
22803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22804 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22805 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22806 | result = (int) ((arg1)->m_image); |
22807 | ||
093d3ff1 RD |
22808 | { |
22809 | resultobj = SWIG_From_int((int)(result)); | |
22810 | } | |
d55e5bfc RD |
22811 | return resultobj; |
22812 | fail: | |
22813 | return NULL; | |
22814 | } | |
22815 | ||
22816 | ||
c32bde28 | 22817 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22818 | PyObject *resultobj; |
22819 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22820 | long arg2 ; | |
22821 | PyObject * obj0 = 0 ; | |
22822 | PyObject * obj1 = 0 ; | |
22823 | char *kwnames[] = { | |
22824 | (char *) "self",(char *) "m_data", NULL | |
22825 | }; | |
22826 | ||
22827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22830 | { | |
22831 | arg2 = (long)(SWIG_As_long(obj1)); | |
22832 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22833 | } | |
d55e5bfc RD |
22834 | if (arg1) (arg1)->m_data = arg2; |
22835 | ||
22836 | Py_INCREF(Py_None); resultobj = Py_None; | |
22837 | return resultobj; | |
22838 | fail: | |
22839 | return NULL; | |
22840 | } | |
22841 | ||
22842 | ||
c32bde28 | 22843 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22844 | PyObject *resultobj; |
22845 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22846 | long result; | |
22847 | PyObject * obj0 = 0 ; | |
22848 | char *kwnames[] = { | |
22849 | (char *) "self", NULL | |
22850 | }; | |
22851 | ||
22852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22855 | result = (long) ((arg1)->m_data); |
22856 | ||
093d3ff1 RD |
22857 | { |
22858 | resultobj = SWIG_From_long((long)(result)); | |
22859 | } | |
d55e5bfc RD |
22860 | return resultobj; |
22861 | fail: | |
22862 | return NULL; | |
22863 | } | |
22864 | ||
22865 | ||
c32bde28 | 22866 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22867 | PyObject *resultobj; |
22868 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22869 | int arg2 ; | |
22870 | PyObject * obj0 = 0 ; | |
22871 | PyObject * obj1 = 0 ; | |
22872 | char *kwnames[] = { | |
22873 | (char *) "self",(char *) "m_format", NULL | |
22874 | }; | |
22875 | ||
22876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22879 | { | |
22880 | arg2 = (int)(SWIG_As_int(obj1)); | |
22881 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22882 | } | |
d55e5bfc RD |
22883 | if (arg1) (arg1)->m_format = arg2; |
22884 | ||
22885 | Py_INCREF(Py_None); resultobj = Py_None; | |
22886 | return resultobj; | |
22887 | fail: | |
22888 | return NULL; | |
22889 | } | |
22890 | ||
22891 | ||
c32bde28 | 22892 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22893 | PyObject *resultobj; |
22894 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22895 | int result; | |
22896 | PyObject * obj0 = 0 ; | |
22897 | char *kwnames[] = { | |
22898 | (char *) "self", NULL | |
22899 | }; | |
22900 | ||
22901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22902 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22903 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22904 | result = (int) ((arg1)->m_format); |
22905 | ||
093d3ff1 RD |
22906 | { |
22907 | resultobj = SWIG_From_int((int)(result)); | |
22908 | } | |
d55e5bfc RD |
22909 | return resultobj; |
22910 | fail: | |
22911 | return NULL; | |
22912 | } | |
22913 | ||
22914 | ||
c32bde28 | 22915 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22916 | PyObject *resultobj; |
22917 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22918 | int arg2 ; | |
22919 | PyObject * obj0 = 0 ; | |
22920 | PyObject * obj1 = 0 ; | |
22921 | char *kwnames[] = { | |
22922 | (char *) "self",(char *) "m_width", NULL | |
22923 | }; | |
22924 | ||
22925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22928 | { | |
22929 | arg2 = (int)(SWIG_As_int(obj1)); | |
22930 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22931 | } | |
d55e5bfc RD |
22932 | if (arg1) (arg1)->m_width = arg2; |
22933 | ||
22934 | Py_INCREF(Py_None); resultobj = Py_None; | |
22935 | return resultobj; | |
22936 | fail: | |
22937 | return NULL; | |
22938 | } | |
22939 | ||
22940 | ||
c32bde28 | 22941 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22942 | PyObject *resultobj; |
22943 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22944 | int result; | |
22945 | PyObject * obj0 = 0 ; | |
22946 | char *kwnames[] = { | |
22947 | (char *) "self", NULL | |
22948 | }; | |
22949 | ||
22950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
22953 | result = (int) ((arg1)->m_width); |
22954 | ||
093d3ff1 RD |
22955 | { |
22956 | resultobj = SWIG_From_int((int)(result)); | |
22957 | } | |
d55e5bfc RD |
22958 | return resultobj; |
22959 | fail: | |
22960 | return NULL; | |
22961 | } | |
22962 | ||
22963 | ||
c32bde28 | 22964 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22965 | PyObject *obj; |
22966 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22967 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
22968 | Py_INCREF(obj); | |
22969 | return Py_BuildValue((char *)""); | |
22970 | } | |
c32bde28 | 22971 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22972 | PyObject *resultobj; |
22973 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
22974 | int arg2 = (int) 0 ; | |
22975 | wxListEvent *result; | |
22976 | PyObject * obj0 = 0 ; | |
22977 | PyObject * obj1 = 0 ; | |
22978 | char *kwnames[] = { | |
22979 | (char *) "commandType",(char *) "id", NULL | |
22980 | }; | |
22981 | ||
22982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
22983 | if (obj0) { | |
093d3ff1 RD |
22984 | { |
22985 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
22986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22987 | } | |
d55e5bfc RD |
22988 | } |
22989 | if (obj1) { | |
093d3ff1 RD |
22990 | { |
22991 | arg2 = (int)(SWIG_As_int(obj1)); | |
22992 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22993 | } | |
d55e5bfc RD |
22994 | } |
22995 | { | |
22996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22997 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
22998 | ||
22999 | wxPyEndAllowThreads(__tstate); | |
23000 | if (PyErr_Occurred()) SWIG_fail; | |
23001 | } | |
23002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
23003 | return resultobj; | |
23004 | fail: | |
23005 | return NULL; | |
23006 | } | |
23007 | ||
23008 | ||
c32bde28 | 23009 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23010 | PyObject *resultobj; |
23011 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23012 | int arg2 ; | |
23013 | PyObject * obj0 = 0 ; | |
23014 | PyObject * obj1 = 0 ; | |
23015 | char *kwnames[] = { | |
23016 | (char *) "self",(char *) "m_code", NULL | |
23017 | }; | |
23018 | ||
23019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23022 | { | |
23023 | arg2 = (int)(SWIG_As_int(obj1)); | |
23024 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23025 | } | |
d55e5bfc RD |
23026 | if (arg1) (arg1)->m_code = arg2; |
23027 | ||
23028 | Py_INCREF(Py_None); resultobj = Py_None; | |
23029 | return resultobj; | |
23030 | fail: | |
23031 | return NULL; | |
23032 | } | |
23033 | ||
23034 | ||
c32bde28 | 23035 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23036 | PyObject *resultobj; |
23037 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23038 | int result; | |
23039 | PyObject * obj0 = 0 ; | |
23040 | char *kwnames[] = { | |
23041 | (char *) "self", NULL | |
23042 | }; | |
23043 | ||
23044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23047 | result = (int) ((arg1)->m_code); |
23048 | ||
093d3ff1 RD |
23049 | { |
23050 | resultobj = SWIG_From_int((int)(result)); | |
23051 | } | |
d55e5bfc RD |
23052 | return resultobj; |
23053 | fail: | |
23054 | return NULL; | |
23055 | } | |
23056 | ||
23057 | ||
c32bde28 | 23058 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23059 | PyObject *resultobj; |
23060 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23061 | long arg2 ; | |
23062 | PyObject * obj0 = 0 ; | |
23063 | PyObject * obj1 = 0 ; | |
23064 | char *kwnames[] = { | |
23065 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
23066 | }; | |
23067 | ||
23068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23071 | { | |
23072 | arg2 = (long)(SWIG_As_long(obj1)); | |
23073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23074 | } | |
d55e5bfc RD |
23075 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
23076 | ||
23077 | Py_INCREF(Py_None); resultobj = Py_None; | |
23078 | return resultobj; | |
23079 | fail: | |
23080 | return NULL; | |
23081 | } | |
23082 | ||
23083 | ||
c32bde28 | 23084 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23085 | PyObject *resultobj; |
23086 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23087 | long result; | |
23088 | PyObject * obj0 = 0 ; | |
23089 | char *kwnames[] = { | |
23090 | (char *) "self", NULL | |
23091 | }; | |
23092 | ||
23093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23096 | result = (long) ((arg1)->m_oldItemIndex); |
23097 | ||
093d3ff1 RD |
23098 | { |
23099 | resultobj = SWIG_From_long((long)(result)); | |
23100 | } | |
d55e5bfc RD |
23101 | return resultobj; |
23102 | fail: | |
23103 | return NULL; | |
23104 | } | |
23105 | ||
23106 | ||
c32bde28 | 23107 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23108 | PyObject *resultobj; |
23109 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23110 | long arg2 ; | |
23111 | PyObject * obj0 = 0 ; | |
23112 | PyObject * obj1 = 0 ; | |
23113 | char *kwnames[] = { | |
23114 | (char *) "self",(char *) "m_itemIndex", NULL | |
23115 | }; | |
23116 | ||
23117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23120 | { | |
23121 | arg2 = (long)(SWIG_As_long(obj1)); | |
23122 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23123 | } | |
d55e5bfc RD |
23124 | if (arg1) (arg1)->m_itemIndex = arg2; |
23125 | ||
23126 | Py_INCREF(Py_None); resultobj = Py_None; | |
23127 | return resultobj; | |
23128 | fail: | |
23129 | return NULL; | |
23130 | } | |
23131 | ||
23132 | ||
c32bde28 | 23133 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23134 | PyObject *resultobj; |
23135 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23136 | long result; | |
23137 | PyObject * obj0 = 0 ; | |
23138 | char *kwnames[] = { | |
23139 | (char *) "self", NULL | |
23140 | }; | |
23141 | ||
23142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23145 | result = (long) ((arg1)->m_itemIndex); |
23146 | ||
093d3ff1 RD |
23147 | { |
23148 | resultobj = SWIG_From_long((long)(result)); | |
23149 | } | |
d55e5bfc RD |
23150 | return resultobj; |
23151 | fail: | |
23152 | return NULL; | |
23153 | } | |
23154 | ||
23155 | ||
c32bde28 | 23156 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23157 | PyObject *resultobj; |
23158 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23159 | int arg2 ; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | PyObject * obj1 = 0 ; | |
23162 | char *kwnames[] = { | |
23163 | (char *) "self",(char *) "m_col", NULL | |
23164 | }; | |
23165 | ||
23166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23167 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23169 | { | |
23170 | arg2 = (int)(SWIG_As_int(obj1)); | |
23171 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23172 | } | |
d55e5bfc RD |
23173 | if (arg1) (arg1)->m_col = arg2; |
23174 | ||
23175 | Py_INCREF(Py_None); resultobj = Py_None; | |
23176 | return resultobj; | |
23177 | fail: | |
23178 | return NULL; | |
23179 | } | |
23180 | ||
23181 | ||
c32bde28 | 23182 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23183 | PyObject *resultobj; |
23184 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23185 | int result; | |
23186 | PyObject * obj0 = 0 ; | |
23187 | char *kwnames[] = { | |
23188 | (char *) "self", NULL | |
23189 | }; | |
23190 | ||
23191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23192 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23193 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23194 | result = (int) ((arg1)->m_col); |
23195 | ||
093d3ff1 RD |
23196 | { |
23197 | resultobj = SWIG_From_int((int)(result)); | |
23198 | } | |
d55e5bfc RD |
23199 | return resultobj; |
23200 | fail: | |
23201 | return NULL; | |
23202 | } | |
23203 | ||
23204 | ||
c32bde28 | 23205 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23206 | PyObject *resultobj; |
23207 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23208 | wxPoint *arg2 = (wxPoint *) 0 ; | |
23209 | PyObject * obj0 = 0 ; | |
23210 | PyObject * obj1 = 0 ; | |
23211 | char *kwnames[] = { | |
23212 | (char *) "self",(char *) "m_pointDrag", NULL | |
23213 | }; | |
23214 | ||
23215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23218 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); | |
23219 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
23220 | if (arg1) (arg1)->m_pointDrag = *arg2; |
23221 | ||
23222 | Py_INCREF(Py_None); resultobj = Py_None; | |
23223 | return resultobj; | |
23224 | fail: | |
23225 | return NULL; | |
23226 | } | |
23227 | ||
23228 | ||
c32bde28 | 23229 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23230 | PyObject *resultobj; |
23231 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23232 | wxPoint *result; | |
23233 | PyObject * obj0 = 0 ; | |
23234 | char *kwnames[] = { | |
23235 | (char *) "self", NULL | |
23236 | }; | |
23237 | ||
23238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23241 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
23242 | ||
23243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
23244 | return resultobj; | |
23245 | fail: | |
23246 | return NULL; | |
23247 | } | |
23248 | ||
23249 | ||
c32bde28 | 23250 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23251 | PyObject *resultobj; |
23252 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23253 | wxListItem *result; | |
23254 | PyObject * obj0 = 0 ; | |
23255 | char *kwnames[] = { | |
23256 | (char *) "self", NULL | |
23257 | }; | |
23258 | ||
23259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23262 | result = (wxListItem *)& ((arg1)->m_item); |
23263 | ||
23264 | { | |
412d302d | 23265 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23266 | } |
23267 | return resultobj; | |
23268 | fail: | |
23269 | return NULL; | |
23270 | } | |
23271 | ||
23272 | ||
c32bde28 | 23273 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23274 | PyObject *resultobj; |
23275 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23276 | int result; | |
23277 | PyObject * obj0 = 0 ; | |
23278 | char *kwnames[] = { | |
23279 | (char *) "self", NULL | |
23280 | }; | |
23281 | ||
23282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23285 | { |
23286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23287 | result = (int)(arg1)->GetKeyCode(); | |
23288 | ||
23289 | wxPyEndAllowThreads(__tstate); | |
23290 | if (PyErr_Occurred()) SWIG_fail; | |
23291 | } | |
093d3ff1 RD |
23292 | { |
23293 | resultobj = SWIG_From_int((int)(result)); | |
23294 | } | |
d55e5bfc RD |
23295 | return resultobj; |
23296 | fail: | |
23297 | return NULL; | |
23298 | } | |
23299 | ||
23300 | ||
c32bde28 | 23301 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23302 | PyObject *resultobj; |
23303 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23304 | long result; | |
23305 | PyObject * obj0 = 0 ; | |
23306 | char *kwnames[] = { | |
23307 | (char *) "self", NULL | |
23308 | }; | |
23309 | ||
23310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23313 | { |
23314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23315 | result = (long)(arg1)->GetIndex(); | |
23316 | ||
23317 | wxPyEndAllowThreads(__tstate); | |
23318 | if (PyErr_Occurred()) SWIG_fail; | |
23319 | } | |
093d3ff1 RD |
23320 | { |
23321 | resultobj = SWIG_From_long((long)(result)); | |
23322 | } | |
d55e5bfc RD |
23323 | return resultobj; |
23324 | fail: | |
23325 | return NULL; | |
23326 | } | |
23327 | ||
23328 | ||
c32bde28 | 23329 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23330 | PyObject *resultobj; |
23331 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23332 | int result; | |
23333 | PyObject * obj0 = 0 ; | |
23334 | char *kwnames[] = { | |
23335 | (char *) "self", NULL | |
23336 | }; | |
23337 | ||
23338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23341 | { |
23342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23343 | result = (int)(arg1)->GetColumn(); | |
23344 | ||
23345 | wxPyEndAllowThreads(__tstate); | |
23346 | if (PyErr_Occurred()) SWIG_fail; | |
23347 | } | |
093d3ff1 RD |
23348 | { |
23349 | resultobj = SWIG_From_int((int)(result)); | |
23350 | } | |
d55e5bfc RD |
23351 | return resultobj; |
23352 | fail: | |
23353 | return NULL; | |
23354 | } | |
23355 | ||
23356 | ||
c32bde28 | 23357 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23358 | PyObject *resultobj; |
23359 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23360 | wxPoint result; | |
23361 | PyObject * obj0 = 0 ; | |
23362 | char *kwnames[] = { | |
23363 | (char *) "self", NULL | |
23364 | }; | |
23365 | ||
23366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23369 | { |
23370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23371 | result = (arg1)->GetPoint(); | |
23372 | ||
23373 | wxPyEndAllowThreads(__tstate); | |
23374 | if (PyErr_Occurred()) SWIG_fail; | |
23375 | } | |
23376 | { | |
23377 | wxPoint * resultptr; | |
093d3ff1 | 23378 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
23379 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
23380 | } | |
23381 | return resultobj; | |
23382 | fail: | |
23383 | return NULL; | |
23384 | } | |
23385 | ||
23386 | ||
c32bde28 | 23387 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23388 | PyObject *resultobj; |
23389 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23390 | wxString *result; | |
23391 | PyObject * obj0 = 0 ; | |
23392 | char *kwnames[] = { | |
23393 | (char *) "self", NULL | |
23394 | }; | |
23395 | ||
23396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23399 | { |
23400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23401 | { | |
23402 | wxString const &_result_ref = (arg1)->GetLabel(); | |
23403 | result = (wxString *) &_result_ref; | |
23404 | } | |
23405 | ||
23406 | wxPyEndAllowThreads(__tstate); | |
23407 | if (PyErr_Occurred()) SWIG_fail; | |
23408 | } | |
23409 | { | |
23410 | #if wxUSE_UNICODE | |
23411 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23412 | #else | |
23413 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23414 | #endif | |
23415 | } | |
23416 | return resultobj; | |
23417 | fail: | |
23418 | return NULL; | |
23419 | } | |
23420 | ||
23421 | ||
c32bde28 | 23422 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23423 | PyObject *resultobj; |
23424 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23425 | wxString *result; | |
23426 | PyObject * obj0 = 0 ; | |
23427 | char *kwnames[] = { | |
23428 | (char *) "self", NULL | |
23429 | }; | |
23430 | ||
23431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23434 | { |
23435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23436 | { | |
23437 | wxString const &_result_ref = (arg1)->GetText(); | |
23438 | result = (wxString *) &_result_ref; | |
23439 | } | |
23440 | ||
23441 | wxPyEndAllowThreads(__tstate); | |
23442 | if (PyErr_Occurred()) SWIG_fail; | |
23443 | } | |
23444 | { | |
23445 | #if wxUSE_UNICODE | |
23446 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23447 | #else | |
23448 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23449 | #endif | |
23450 | } | |
23451 | return resultobj; | |
23452 | fail: | |
23453 | return NULL; | |
23454 | } | |
23455 | ||
23456 | ||
c32bde28 | 23457 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23458 | PyObject *resultobj; |
23459 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23460 | int result; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | char *kwnames[] = { | |
23463 | (char *) "self", NULL | |
23464 | }; | |
23465 | ||
23466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23467 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23468 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23469 | { |
23470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23471 | result = (int)(arg1)->GetImage(); | |
23472 | ||
23473 | wxPyEndAllowThreads(__tstate); | |
23474 | if (PyErr_Occurred()) SWIG_fail; | |
23475 | } | |
093d3ff1 RD |
23476 | { |
23477 | resultobj = SWIG_From_int((int)(result)); | |
23478 | } | |
d55e5bfc RD |
23479 | return resultobj; |
23480 | fail: | |
23481 | return NULL; | |
23482 | } | |
23483 | ||
23484 | ||
c32bde28 | 23485 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23486 | PyObject *resultobj; |
23487 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23488 | long result; | |
23489 | PyObject * obj0 = 0 ; | |
23490 | char *kwnames[] = { | |
23491 | (char *) "self", NULL | |
23492 | }; | |
23493 | ||
23494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23497 | { |
23498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23499 | result = (long)(arg1)->GetData(); | |
23500 | ||
23501 | wxPyEndAllowThreads(__tstate); | |
23502 | if (PyErr_Occurred()) SWIG_fail; | |
23503 | } | |
093d3ff1 RD |
23504 | { |
23505 | resultobj = SWIG_From_long((long)(result)); | |
23506 | } | |
d55e5bfc RD |
23507 | return resultobj; |
23508 | fail: | |
23509 | return NULL; | |
23510 | } | |
23511 | ||
23512 | ||
c32bde28 | 23513 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23514 | PyObject *resultobj; |
23515 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23516 | long result; | |
23517 | PyObject * obj0 = 0 ; | |
23518 | char *kwnames[] = { | |
23519 | (char *) "self", NULL | |
23520 | }; | |
23521 | ||
23522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23523 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23524 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23525 | { |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | result = (long)(arg1)->GetMask(); | |
23528 | ||
23529 | wxPyEndAllowThreads(__tstate); | |
23530 | if (PyErr_Occurred()) SWIG_fail; | |
23531 | } | |
093d3ff1 RD |
23532 | { |
23533 | resultobj = SWIG_From_long((long)(result)); | |
23534 | } | |
d55e5bfc RD |
23535 | return resultobj; |
23536 | fail: | |
23537 | return NULL; | |
23538 | } | |
23539 | ||
23540 | ||
c32bde28 | 23541 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23542 | PyObject *resultobj; |
23543 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23544 | wxListItem *result; | |
23545 | PyObject * obj0 = 0 ; | |
23546 | char *kwnames[] = { | |
23547 | (char *) "self", NULL | |
23548 | }; | |
23549 | ||
23550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23553 | { |
23554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23555 | { | |
23556 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
23557 | result = (wxListItem *) &_result_ref; | |
23558 | } | |
23559 | ||
23560 | wxPyEndAllowThreads(__tstate); | |
23561 | if (PyErr_Occurred()) SWIG_fail; | |
23562 | } | |
23563 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
23564 | return resultobj; | |
23565 | fail: | |
23566 | return NULL; | |
23567 | } | |
23568 | ||
23569 | ||
c32bde28 | 23570 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23571 | PyObject *resultobj; |
23572 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23573 | long result; | |
23574 | PyObject * obj0 = 0 ; | |
23575 | char *kwnames[] = { | |
23576 | (char *) "self", NULL | |
23577 | }; | |
23578 | ||
23579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23582 | { |
23583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23584 | result = (long)(arg1)->GetCacheFrom(); | |
23585 | ||
23586 | wxPyEndAllowThreads(__tstate); | |
23587 | if (PyErr_Occurred()) SWIG_fail; | |
23588 | } | |
093d3ff1 RD |
23589 | { |
23590 | resultobj = SWIG_From_long((long)(result)); | |
23591 | } | |
d55e5bfc RD |
23592 | return resultobj; |
23593 | fail: | |
23594 | return NULL; | |
23595 | } | |
23596 | ||
23597 | ||
c32bde28 | 23598 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23599 | PyObject *resultobj; |
23600 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23601 | long result; | |
23602 | PyObject * obj0 = 0 ; | |
23603 | char *kwnames[] = { | |
23604 | (char *) "self", NULL | |
23605 | }; | |
23606 | ||
23607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23610 | { |
23611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23612 | result = (long)(arg1)->GetCacheTo(); | |
23613 | ||
23614 | wxPyEndAllowThreads(__tstate); | |
23615 | if (PyErr_Occurred()) SWIG_fail; | |
23616 | } | |
093d3ff1 RD |
23617 | { |
23618 | resultobj = SWIG_From_long((long)(result)); | |
23619 | } | |
d55e5bfc RD |
23620 | return resultobj; |
23621 | fail: | |
23622 | return NULL; | |
23623 | } | |
23624 | ||
23625 | ||
c32bde28 | 23626 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23627 | PyObject *resultobj; |
23628 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23629 | bool result; | |
23630 | PyObject * obj0 = 0 ; | |
23631 | char *kwnames[] = { | |
23632 | (char *) "self", NULL | |
23633 | }; | |
23634 | ||
23635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23638 | { |
23639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23640 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
23641 | ||
23642 | wxPyEndAllowThreads(__tstate); | |
23643 | if (PyErr_Occurred()) SWIG_fail; | |
23644 | } | |
23645 | { | |
23646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23647 | } | |
23648 | return resultobj; | |
23649 | fail: | |
23650 | return NULL; | |
23651 | } | |
23652 | ||
23653 | ||
c32bde28 | 23654 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23655 | PyObject *resultobj; |
23656 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23657 | bool arg2 ; | |
23658 | PyObject * obj0 = 0 ; | |
23659 | PyObject * obj1 = 0 ; | |
23660 | char *kwnames[] = { | |
23661 | (char *) "self",(char *) "editCancelled", NULL | |
23662 | }; | |
23663 | ||
23664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23667 | { | |
23668 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23669 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23670 | } | |
d55e5bfc RD |
23671 | { |
23672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23673 | (arg1)->SetEditCanceled(arg2); | |
23674 | ||
23675 | wxPyEndAllowThreads(__tstate); | |
23676 | if (PyErr_Occurred()) SWIG_fail; | |
23677 | } | |
23678 | Py_INCREF(Py_None); resultobj = Py_None; | |
23679 | return resultobj; | |
23680 | fail: | |
23681 | return NULL; | |
23682 | } | |
23683 | ||
23684 | ||
c32bde28 | 23685 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
23686 | PyObject *obj; |
23687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23688 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
23689 | Py_INCREF(obj); | |
23690 | return Py_BuildValue((char *)""); | |
23691 | } | |
c32bde28 | 23692 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23693 | PyObject *resultobj; |
23694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23695 | int arg2 = (int) -1 ; | |
23696 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23697 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23698 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23699 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23700 | long arg5 = (long) wxLC_ICON ; | |
23701 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23702 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23703 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23704 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23705 | wxPyListCtrl *result; | |
23706 | wxPoint temp3 ; | |
23707 | wxSize temp4 ; | |
ae8162c8 | 23708 | bool temp7 = false ; |
d55e5bfc RD |
23709 | PyObject * obj0 = 0 ; |
23710 | PyObject * obj1 = 0 ; | |
23711 | PyObject * obj2 = 0 ; | |
23712 | PyObject * obj3 = 0 ; | |
23713 | PyObject * obj4 = 0 ; | |
23714 | PyObject * obj5 = 0 ; | |
23715 | PyObject * obj6 = 0 ; | |
23716 | char *kwnames[] = { | |
23717 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23718 | }; | |
23719 | ||
23720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
23721 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
23722 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 23723 | if (obj1) { |
093d3ff1 RD |
23724 | { |
23725 | arg2 = (int)(SWIG_As_int(obj1)); | |
23726 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23727 | } | |
d55e5bfc RD |
23728 | } |
23729 | if (obj2) { | |
23730 | { | |
23731 | arg3 = &temp3; | |
23732 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23733 | } | |
23734 | } | |
23735 | if (obj3) { | |
23736 | { | |
23737 | arg4 = &temp4; | |
23738 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23739 | } | |
23740 | } | |
23741 | if (obj4) { | |
093d3ff1 RD |
23742 | { |
23743 | arg5 = (long)(SWIG_As_long(obj4)); | |
23744 | if (SWIG_arg_fail(5)) SWIG_fail; | |
23745 | } | |
d55e5bfc RD |
23746 | } |
23747 | if (obj5) { | |
093d3ff1 RD |
23748 | { |
23749 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23750 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23751 | if (arg6 == NULL) { | |
23752 | SWIG_null_ref("wxValidator"); | |
23753 | } | |
23754 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
23755 | } |
23756 | } | |
23757 | if (obj6) { | |
23758 | { | |
23759 | arg7 = wxString_in_helper(obj6); | |
23760 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 23761 | temp7 = true; |
d55e5bfc RD |
23762 | } |
23763 | } | |
23764 | { | |
0439c23b | 23765 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23767 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23768 | ||
23769 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23770 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23771 | } |
23772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
23773 | { | |
23774 | if (temp7) | |
23775 | delete arg7; | |
23776 | } | |
23777 | return resultobj; | |
23778 | fail: | |
23779 | { | |
23780 | if (temp7) | |
23781 | delete arg7; | |
23782 | } | |
23783 | return NULL; | |
23784 | } | |
23785 | ||
23786 | ||
c32bde28 | 23787 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23788 | PyObject *resultobj; |
23789 | wxPyListCtrl *result; | |
23790 | char *kwnames[] = { | |
23791 | NULL | |
23792 | }; | |
23793 | ||
23794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
23795 | { | |
0439c23b | 23796 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23798 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
23799 | ||
23800 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23801 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23802 | } |
23803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
23804 | return resultobj; | |
23805 | fail: | |
23806 | return NULL; | |
23807 | } | |
23808 | ||
23809 | ||
c32bde28 | 23810 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23811 | PyObject *resultobj; |
23812 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23813 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23814 | int arg3 = (int) -1 ; | |
23815 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23816 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23817 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23818 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23819 | long arg6 = (long) wxLC_ICON ; | |
23820 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23821 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23822 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23823 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23824 | bool result; | |
23825 | wxPoint temp4 ; | |
23826 | wxSize temp5 ; | |
ae8162c8 | 23827 | bool temp8 = false ; |
d55e5bfc RD |
23828 | PyObject * obj0 = 0 ; |
23829 | PyObject * obj1 = 0 ; | |
23830 | PyObject * obj2 = 0 ; | |
23831 | PyObject * obj3 = 0 ; | |
23832 | PyObject * obj4 = 0 ; | |
23833 | PyObject * obj5 = 0 ; | |
23834 | PyObject * obj6 = 0 ; | |
23835 | PyObject * obj7 = 0 ; | |
23836 | char *kwnames[] = { | |
23837 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23838 | }; | |
23839 | ||
23840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
093d3ff1 RD |
23841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23843 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23844 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 23845 | if (obj2) { |
093d3ff1 RD |
23846 | { |
23847 | arg3 = (int)(SWIG_As_int(obj2)); | |
23848 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23849 | } | |
d55e5bfc RD |
23850 | } |
23851 | if (obj3) { | |
23852 | { | |
23853 | arg4 = &temp4; | |
23854 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23855 | } | |
23856 | } | |
23857 | if (obj4) { | |
23858 | { | |
23859 | arg5 = &temp5; | |
23860 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23861 | } | |
23862 | } | |
23863 | if (obj5) { | |
093d3ff1 RD |
23864 | { |
23865 | arg6 = (long)(SWIG_As_long(obj5)); | |
23866 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23867 | } | |
d55e5bfc RD |
23868 | } |
23869 | if (obj6) { | |
093d3ff1 RD |
23870 | { |
23871 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23872 | if (SWIG_arg_fail(7)) SWIG_fail; | |
23873 | if (arg7 == NULL) { | |
23874 | SWIG_null_ref("wxValidator"); | |
23875 | } | |
23876 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
23877 | } |
23878 | } | |
23879 | if (obj7) { | |
23880 | { | |
23881 | arg8 = wxString_in_helper(obj7); | |
23882 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 23883 | temp8 = true; |
d55e5bfc RD |
23884 | } |
23885 | } | |
23886 | { | |
23887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23888 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23889 | ||
23890 | wxPyEndAllowThreads(__tstate); | |
23891 | if (PyErr_Occurred()) SWIG_fail; | |
23892 | } | |
23893 | { | |
23894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23895 | } | |
23896 | { | |
23897 | if (temp8) | |
23898 | delete arg8; | |
23899 | } | |
23900 | return resultobj; | |
23901 | fail: | |
23902 | { | |
23903 | if (temp8) | |
23904 | delete arg8; | |
23905 | } | |
23906 | return NULL; | |
23907 | } | |
23908 | ||
23909 | ||
c32bde28 | 23910 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23911 | PyObject *resultobj; |
23912 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23913 | PyObject *arg2 = (PyObject *) 0 ; | |
23914 | PyObject *arg3 = (PyObject *) 0 ; | |
23915 | PyObject * obj0 = 0 ; | |
23916 | PyObject * obj1 = 0 ; | |
23917 | PyObject * obj2 = 0 ; | |
23918 | char *kwnames[] = { | |
23919 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23920 | }; | |
23921 | ||
23922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
23923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23925 | arg2 = obj1; |
23926 | arg3 = obj2; | |
23927 | { | |
23928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23929 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23930 | ||
23931 | wxPyEndAllowThreads(__tstate); | |
23932 | if (PyErr_Occurred()) SWIG_fail; | |
23933 | } | |
23934 | Py_INCREF(Py_None); resultobj = Py_None; | |
23935 | return resultobj; | |
23936 | fail: | |
23937 | return NULL; | |
23938 | } | |
23939 | ||
23940 | ||
c32bde28 | 23941 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23942 | PyObject *resultobj; |
23943 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23944 | wxColour *arg2 = 0 ; | |
23945 | bool result; | |
23946 | wxColour temp2 ; | |
23947 | PyObject * obj0 = 0 ; | |
23948 | PyObject * obj1 = 0 ; | |
23949 | char *kwnames[] = { | |
23950 | (char *) "self",(char *) "col", NULL | |
23951 | }; | |
23952 | ||
23953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23954 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23955 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23956 | { |
23957 | arg2 = &temp2; | |
23958 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23959 | } | |
23960 | { | |
23961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23962 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
23963 | ||
23964 | wxPyEndAllowThreads(__tstate); | |
23965 | if (PyErr_Occurred()) SWIG_fail; | |
23966 | } | |
23967 | { | |
23968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23969 | } | |
23970 | return resultobj; | |
23971 | fail: | |
23972 | return NULL; | |
23973 | } | |
23974 | ||
23975 | ||
c32bde28 | 23976 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23977 | PyObject *resultobj; |
23978 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23979 | wxColour *arg2 = 0 ; | |
23980 | bool result; | |
23981 | wxColour temp2 ; | |
23982 | PyObject * obj0 = 0 ; | |
23983 | PyObject * obj1 = 0 ; | |
23984 | char *kwnames[] = { | |
23985 | (char *) "self",(char *) "col", NULL | |
23986 | }; | |
23987 | ||
23988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23989 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
23991 | { |
23992 | arg2 = &temp2; | |
23993 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23994 | } | |
23995 | { | |
23996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23997 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
23998 | ||
23999 | wxPyEndAllowThreads(__tstate); | |
24000 | if (PyErr_Occurred()) SWIG_fail; | |
24001 | } | |
24002 | { | |
24003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24004 | } | |
24005 | return resultobj; | |
24006 | fail: | |
24007 | return NULL; | |
24008 | } | |
24009 | ||
24010 | ||
c32bde28 | 24011 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24012 | PyObject *resultobj; |
24013 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24014 | int arg2 ; | |
24015 | wxListItem *result; | |
24016 | PyObject * obj0 = 0 ; | |
24017 | PyObject * obj1 = 0 ; | |
24018 | char *kwnames[] = { | |
24019 | (char *) "self",(char *) "col", NULL | |
24020 | }; | |
24021 | ||
24022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24025 | { | |
24026 | arg2 = (int)(SWIG_As_int(obj1)); | |
24027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24028 | } | |
d55e5bfc RD |
24029 | { |
24030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24031 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
24032 | ||
24033 | wxPyEndAllowThreads(__tstate); | |
24034 | if (PyErr_Occurred()) SWIG_fail; | |
24035 | } | |
24036 | { | |
412d302d | 24037 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24038 | } |
24039 | return resultobj; | |
24040 | fail: | |
24041 | return NULL; | |
24042 | } | |
24043 | ||
24044 | ||
c32bde28 | 24045 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24046 | PyObject *resultobj; |
24047 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24048 | int arg2 ; | |
24049 | wxListItem *arg3 = 0 ; | |
24050 | bool result; | |
24051 | PyObject * obj0 = 0 ; | |
24052 | PyObject * obj1 = 0 ; | |
24053 | PyObject * obj2 = 0 ; | |
24054 | char *kwnames[] = { | |
24055 | (char *) "self",(char *) "col",(char *) "item", NULL | |
24056 | }; | |
24057 | ||
24058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24061 | { | |
24062 | arg2 = (int)(SWIG_As_int(obj1)); | |
24063 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24064 | } | |
24065 | { | |
24066 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24067 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24068 | if (arg3 == NULL) { | |
24069 | SWIG_null_ref("wxListItem"); | |
24070 | } | |
24071 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
24072 | } |
24073 | { | |
24074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24075 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
24076 | ||
24077 | wxPyEndAllowThreads(__tstate); | |
24078 | if (PyErr_Occurred()) SWIG_fail; | |
24079 | } | |
24080 | { | |
24081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24082 | } | |
24083 | return resultobj; | |
24084 | fail: | |
24085 | return NULL; | |
24086 | } | |
24087 | ||
24088 | ||
c32bde28 | 24089 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24090 | PyObject *resultobj; |
24091 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24092 | int arg2 ; | |
24093 | int result; | |
24094 | PyObject * obj0 = 0 ; | |
24095 | PyObject * obj1 = 0 ; | |
24096 | char *kwnames[] = { | |
24097 | (char *) "self",(char *) "col", NULL | |
24098 | }; | |
24099 | ||
24100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24103 | { | |
24104 | arg2 = (int)(SWIG_As_int(obj1)); | |
24105 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24106 | } | |
d55e5bfc RD |
24107 | { |
24108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24109 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
24110 | ||
24111 | wxPyEndAllowThreads(__tstate); | |
24112 | if (PyErr_Occurred()) SWIG_fail; | |
24113 | } | |
093d3ff1 RD |
24114 | { |
24115 | resultobj = SWIG_From_int((int)(result)); | |
24116 | } | |
d55e5bfc RD |
24117 | return resultobj; |
24118 | fail: | |
24119 | return NULL; | |
24120 | } | |
24121 | ||
24122 | ||
c32bde28 | 24123 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24124 | PyObject *resultobj; |
24125 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24126 | int arg2 ; | |
24127 | int arg3 ; | |
24128 | bool result; | |
24129 | PyObject * obj0 = 0 ; | |
24130 | PyObject * obj1 = 0 ; | |
24131 | PyObject * obj2 = 0 ; | |
24132 | char *kwnames[] = { | |
24133 | (char *) "self",(char *) "col",(char *) "width", NULL | |
24134 | }; | |
24135 | ||
24136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24139 | { | |
24140 | arg2 = (int)(SWIG_As_int(obj1)); | |
24141 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24142 | } | |
24143 | { | |
24144 | arg3 = (int)(SWIG_As_int(obj2)); | |
24145 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24146 | } | |
d55e5bfc RD |
24147 | { |
24148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24149 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
24150 | ||
24151 | wxPyEndAllowThreads(__tstate); | |
24152 | if (PyErr_Occurred()) SWIG_fail; | |
24153 | } | |
24154 | { | |
24155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24156 | } | |
24157 | return resultobj; | |
24158 | fail: | |
24159 | return NULL; | |
24160 | } | |
24161 | ||
24162 | ||
c32bde28 | 24163 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24164 | PyObject *resultobj; |
24165 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24166 | int result; | |
24167 | PyObject * obj0 = 0 ; | |
24168 | char *kwnames[] = { | |
24169 | (char *) "self", NULL | |
24170 | }; | |
24171 | ||
24172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24175 | { |
24176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24177 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
24178 | ||
24179 | wxPyEndAllowThreads(__tstate); | |
24180 | if (PyErr_Occurred()) SWIG_fail; | |
24181 | } | |
093d3ff1 RD |
24182 | { |
24183 | resultobj = SWIG_From_int((int)(result)); | |
24184 | } | |
d55e5bfc RD |
24185 | return resultobj; |
24186 | fail: | |
24187 | return NULL; | |
24188 | } | |
24189 | ||
24190 | ||
c32bde28 | 24191 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24192 | PyObject *resultobj; |
24193 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24194 | wxRect result; | |
24195 | PyObject * obj0 = 0 ; | |
24196 | char *kwnames[] = { | |
24197 | (char *) "self", NULL | |
24198 | }; | |
24199 | ||
24200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24203 | { |
24204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24205 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
24206 | ||
24207 | wxPyEndAllowThreads(__tstate); | |
24208 | if (PyErr_Occurred()) SWIG_fail; | |
24209 | } | |
24210 | { | |
24211 | wxRect * resultptr; | |
093d3ff1 | 24212 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
24213 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
24214 | } | |
24215 | return resultobj; | |
24216 | fail: | |
24217 | return NULL; | |
24218 | } | |
24219 | ||
24220 | ||
c32bde28 | 24221 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24222 | PyObject *resultobj; |
24223 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24224 | wxTextCtrl *result; | |
24225 | PyObject * obj0 = 0 ; | |
24226 | char *kwnames[] = { | |
24227 | (char *) "self", NULL | |
24228 | }; | |
24229 | ||
24230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24233 | { |
24234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24235 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
24236 | ||
24237 | wxPyEndAllowThreads(__tstate); | |
24238 | if (PyErr_Occurred()) SWIG_fail; | |
24239 | } | |
24240 | { | |
412d302d | 24241 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24242 | } |
24243 | return resultobj; | |
24244 | fail: | |
24245 | return NULL; | |
24246 | } | |
24247 | ||
24248 | ||
c32bde28 | 24249 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24250 | PyObject *resultobj; |
24251 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24252 | long arg2 ; | |
24253 | int arg3 = (int) 0 ; | |
24254 | wxListItem *result; | |
24255 | PyObject * obj0 = 0 ; | |
24256 | PyObject * obj1 = 0 ; | |
24257 | PyObject * obj2 = 0 ; | |
24258 | char *kwnames[] = { | |
24259 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
24260 | }; | |
24261 | ||
24262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24265 | { | |
24266 | arg2 = (long)(SWIG_As_long(obj1)); | |
24267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24268 | } | |
d55e5bfc | 24269 | if (obj2) { |
093d3ff1 RD |
24270 | { |
24271 | arg3 = (int)(SWIG_As_int(obj2)); | |
24272 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24273 | } | |
d55e5bfc RD |
24274 | } |
24275 | { | |
24276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24277 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
24278 | ||
24279 | wxPyEndAllowThreads(__tstate); | |
24280 | if (PyErr_Occurred()) SWIG_fail; | |
24281 | } | |
24282 | { | |
412d302d | 24283 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24284 | } |
24285 | return resultobj; | |
24286 | fail: | |
24287 | return NULL; | |
24288 | } | |
24289 | ||
24290 | ||
c32bde28 | 24291 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24292 | PyObject *resultobj; |
24293 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24294 | wxListItem *arg2 = 0 ; | |
24295 | bool result; | |
24296 | PyObject * obj0 = 0 ; | |
24297 | PyObject * obj1 = 0 ; | |
24298 | char *kwnames[] = { | |
24299 | (char *) "self",(char *) "info", NULL | |
24300 | }; | |
24301 | ||
24302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24305 | { | |
24306 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24307 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24308 | if (arg2 == NULL) { | |
24309 | SWIG_null_ref("wxListItem"); | |
24310 | } | |
24311 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
24312 | } |
24313 | { | |
24314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24315 | result = (bool)(arg1)->SetItem(*arg2); | |
24316 | ||
24317 | wxPyEndAllowThreads(__tstate); | |
24318 | if (PyErr_Occurred()) SWIG_fail; | |
24319 | } | |
24320 | { | |
24321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24322 | } | |
24323 | return resultobj; | |
24324 | fail: | |
24325 | return NULL; | |
24326 | } | |
24327 | ||
24328 | ||
c32bde28 | 24329 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24330 | PyObject *resultobj; |
24331 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24332 | long arg2 ; | |
24333 | int arg3 ; | |
24334 | wxString *arg4 = 0 ; | |
24335 | int arg5 = (int) -1 ; | |
24336 | long result; | |
ae8162c8 | 24337 | bool temp4 = false ; |
d55e5bfc RD |
24338 | PyObject * obj0 = 0 ; |
24339 | PyObject * obj1 = 0 ; | |
24340 | PyObject * obj2 = 0 ; | |
24341 | PyObject * obj3 = 0 ; | |
24342 | PyObject * obj4 = 0 ; | |
24343 | char *kwnames[] = { | |
24344 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
24345 | }; | |
24346 | ||
24347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
24348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24350 | { | |
24351 | arg2 = (long)(SWIG_As_long(obj1)); | |
24352 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24353 | } | |
24354 | { | |
24355 | arg3 = (int)(SWIG_As_int(obj2)); | |
24356 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24357 | } | |
d55e5bfc RD |
24358 | { |
24359 | arg4 = wxString_in_helper(obj3); | |
24360 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 24361 | temp4 = true; |
d55e5bfc RD |
24362 | } |
24363 | if (obj4) { | |
093d3ff1 RD |
24364 | { |
24365 | arg5 = (int)(SWIG_As_int(obj4)); | |
24366 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24367 | } | |
d55e5bfc RD |
24368 | } |
24369 | { | |
24370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24371 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
24372 | ||
24373 | wxPyEndAllowThreads(__tstate); | |
24374 | if (PyErr_Occurred()) SWIG_fail; | |
24375 | } | |
093d3ff1 RD |
24376 | { |
24377 | resultobj = SWIG_From_long((long)(result)); | |
24378 | } | |
d55e5bfc RD |
24379 | { |
24380 | if (temp4) | |
24381 | delete arg4; | |
24382 | } | |
24383 | return resultobj; | |
24384 | fail: | |
24385 | { | |
24386 | if (temp4) | |
24387 | delete arg4; | |
24388 | } | |
24389 | return NULL; | |
24390 | } | |
24391 | ||
24392 | ||
c32bde28 | 24393 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24394 | PyObject *resultobj; |
24395 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24396 | long arg2 ; | |
24397 | long arg3 ; | |
24398 | int result; | |
24399 | PyObject * obj0 = 0 ; | |
24400 | PyObject * obj1 = 0 ; | |
24401 | PyObject * obj2 = 0 ; | |
24402 | char *kwnames[] = { | |
24403 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
24404 | }; | |
24405 | ||
24406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24409 | { | |
24410 | arg2 = (long)(SWIG_As_long(obj1)); | |
24411 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24412 | } | |
24413 | { | |
24414 | arg3 = (long)(SWIG_As_long(obj2)); | |
24415 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24416 | } | |
d55e5bfc RD |
24417 | { |
24418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24419 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
24420 | ||
24421 | wxPyEndAllowThreads(__tstate); | |
24422 | if (PyErr_Occurred()) SWIG_fail; | |
24423 | } | |
093d3ff1 RD |
24424 | { |
24425 | resultobj = SWIG_From_int((int)(result)); | |
24426 | } | |
d55e5bfc RD |
24427 | return resultobj; |
24428 | fail: | |
24429 | return NULL; | |
24430 | } | |
24431 | ||
24432 | ||
c32bde28 | 24433 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24434 | PyObject *resultobj; |
24435 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24436 | long arg2 ; | |
24437 | long arg3 ; | |
24438 | long arg4 ; | |
24439 | bool result; | |
24440 | PyObject * obj0 = 0 ; | |
24441 | PyObject * obj1 = 0 ; | |
24442 | PyObject * obj2 = 0 ; | |
24443 | PyObject * obj3 = 0 ; | |
24444 | char *kwnames[] = { | |
24445 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
24446 | }; | |
24447 | ||
24448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
24449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24451 | { | |
24452 | arg2 = (long)(SWIG_As_long(obj1)); | |
24453 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24454 | } | |
24455 | { | |
24456 | arg3 = (long)(SWIG_As_long(obj2)); | |
24457 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24458 | } | |
24459 | { | |
24460 | arg4 = (long)(SWIG_As_long(obj3)); | |
24461 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24462 | } | |
d55e5bfc RD |
24463 | { |
24464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24465 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
24466 | ||
24467 | wxPyEndAllowThreads(__tstate); | |
24468 | if (PyErr_Occurred()) SWIG_fail; | |
24469 | } | |
24470 | { | |
24471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24472 | } | |
24473 | return resultobj; | |
24474 | fail: | |
24475 | return NULL; | |
24476 | } | |
24477 | ||
24478 | ||
c32bde28 | 24479 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24480 | PyObject *resultobj; |
24481 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24482 | long arg2 ; | |
24483 | int arg3 ; | |
84f85550 | 24484 | int arg4 = (int) -1 ; |
d55e5bfc RD |
24485 | bool result; |
24486 | PyObject * obj0 = 0 ; | |
24487 | PyObject * obj1 = 0 ; | |
24488 | PyObject * obj2 = 0 ; | |
24489 | PyObject * obj3 = 0 ; | |
24490 | char *kwnames[] = { | |
24491 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
24492 | }; | |
24493 | ||
84f85550 | 24494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24497 | { | |
24498 | arg2 = (long)(SWIG_As_long(obj1)); | |
24499 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24500 | } | |
24501 | { | |
24502 | arg3 = (int)(SWIG_As_int(obj2)); | |
24503 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24504 | } | |
84f85550 | 24505 | if (obj3) { |
093d3ff1 RD |
24506 | { |
24507 | arg4 = (int)(SWIG_As_int(obj3)); | |
24508 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24509 | } | |
84f85550 | 24510 | } |
d55e5bfc RD |
24511 | { |
24512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24513 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
24514 | ||
24515 | wxPyEndAllowThreads(__tstate); | |
24516 | if (PyErr_Occurred()) SWIG_fail; | |
24517 | } | |
24518 | { | |
24519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24520 | } | |
24521 | return resultobj; | |
24522 | fail: | |
24523 | return NULL; | |
24524 | } | |
24525 | ||
24526 | ||
c32bde28 | 24527 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24528 | PyObject *resultobj; |
24529 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24530 | long arg2 ; | |
24531 | wxString result; | |
24532 | PyObject * obj0 = 0 ; | |
24533 | PyObject * obj1 = 0 ; | |
24534 | char *kwnames[] = { | |
24535 | (char *) "self",(char *) "item", NULL | |
24536 | }; | |
24537 | ||
24538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24541 | { | |
24542 | arg2 = (long)(SWIG_As_long(obj1)); | |
24543 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24544 | } | |
d55e5bfc RD |
24545 | { |
24546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24547 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
24548 | ||
24549 | wxPyEndAllowThreads(__tstate); | |
24550 | if (PyErr_Occurred()) SWIG_fail; | |
24551 | } | |
24552 | { | |
24553 | #if wxUSE_UNICODE | |
24554 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24555 | #else | |
24556 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24557 | #endif | |
24558 | } | |
24559 | return resultobj; | |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
c32bde28 | 24565 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24566 | PyObject *resultobj; |
24567 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24568 | long arg2 ; | |
24569 | wxString *arg3 = 0 ; | |
ae8162c8 | 24570 | bool temp3 = false ; |
d55e5bfc RD |
24571 | PyObject * obj0 = 0 ; |
24572 | PyObject * obj1 = 0 ; | |
24573 | PyObject * obj2 = 0 ; | |
24574 | char *kwnames[] = { | |
24575 | (char *) "self",(char *) "item",(char *) "str", NULL | |
24576 | }; | |
24577 | ||
24578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 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 RD |
24585 | { |
24586 | arg3 = wxString_in_helper(obj2); | |
24587 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24588 | temp3 = true; |
d55e5bfc RD |
24589 | } |
24590 | { | |
24591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24592 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
24593 | ||
24594 | wxPyEndAllowThreads(__tstate); | |
24595 | if (PyErr_Occurred()) SWIG_fail; | |
24596 | } | |
24597 | Py_INCREF(Py_None); resultobj = Py_None; | |
24598 | { | |
24599 | if (temp3) | |
24600 | delete arg3; | |
24601 | } | |
24602 | return resultobj; | |
24603 | fail: | |
24604 | { | |
24605 | if (temp3) | |
24606 | delete arg3; | |
24607 | } | |
24608 | return NULL; | |
24609 | } | |
24610 | ||
24611 | ||
c32bde28 | 24612 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24613 | PyObject *resultobj; |
24614 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24615 | long arg2 ; | |
24616 | long result; | |
24617 | PyObject * obj0 = 0 ; | |
24618 | PyObject * obj1 = 0 ; | |
24619 | char *kwnames[] = { | |
24620 | (char *) "self",(char *) "item", NULL | |
24621 | }; | |
24622 | ||
24623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24632 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
24633 | ||
24634 | wxPyEndAllowThreads(__tstate); | |
24635 | if (PyErr_Occurred()) SWIG_fail; | |
24636 | } | |
093d3ff1 RD |
24637 | { |
24638 | resultobj = SWIG_From_long((long)(result)); | |
24639 | } | |
d55e5bfc RD |
24640 | return resultobj; |
24641 | fail: | |
24642 | return NULL; | |
24643 | } | |
24644 | ||
24645 | ||
c32bde28 | 24646 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24647 | PyObject *resultobj; |
24648 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24649 | long arg2 ; | |
24650 | long arg3 ; | |
24651 | bool result; | |
24652 | PyObject * obj0 = 0 ; | |
24653 | PyObject * obj1 = 0 ; | |
24654 | PyObject * obj2 = 0 ; | |
24655 | char *kwnames[] = { | |
24656 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24657 | }; | |
24658 | ||
24659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24662 | { | |
24663 | arg2 = (long)(SWIG_As_long(obj1)); | |
24664 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24665 | } | |
24666 | { | |
24667 | arg3 = (long)(SWIG_As_long(obj2)); | |
24668 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24669 | } | |
d55e5bfc RD |
24670 | { |
24671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24672 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
24673 | ||
24674 | wxPyEndAllowThreads(__tstate); | |
24675 | if (PyErr_Occurred()) SWIG_fail; | |
24676 | } | |
24677 | { | |
24678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24679 | } | |
24680 | return resultobj; | |
24681 | fail: | |
24682 | return NULL; | |
24683 | } | |
24684 | ||
24685 | ||
c32bde28 | 24686 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24687 | PyObject *resultobj; |
24688 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24689 | long arg2 ; | |
24690 | wxPoint result; | |
24691 | PyObject * obj0 = 0 ; | |
24692 | PyObject * obj1 = 0 ; | |
24693 | char *kwnames[] = { | |
24694 | (char *) "self",(char *) "item", NULL | |
24695 | }; | |
24696 | ||
24697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24698 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24699 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24700 | { | |
24701 | arg2 = (long)(SWIG_As_long(obj1)); | |
24702 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24703 | } | |
d55e5bfc RD |
24704 | { |
24705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24706 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
24707 | ||
24708 | wxPyEndAllowThreads(__tstate); | |
24709 | if (PyErr_Occurred()) SWIG_fail; | |
24710 | } | |
24711 | { | |
24712 | wxPoint * resultptr; | |
093d3ff1 | 24713 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
24714 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
24715 | } | |
24716 | return resultobj; | |
24717 | fail: | |
24718 | return NULL; | |
24719 | } | |
24720 | ||
24721 | ||
c32bde28 | 24722 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24723 | PyObject *resultobj; |
24724 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24725 | long arg2 ; | |
24726 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
24727 | wxRect result; | |
24728 | PyObject * obj0 = 0 ; | |
24729 | PyObject * obj1 = 0 ; | |
24730 | PyObject * obj2 = 0 ; | |
24731 | char *kwnames[] = { | |
24732 | (char *) "self",(char *) "item",(char *) "code", NULL | |
24733 | }; | |
24734 | ||
24735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24738 | { | |
24739 | arg2 = (long)(SWIG_As_long(obj1)); | |
24740 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24741 | } | |
d55e5bfc | 24742 | if (obj2) { |
093d3ff1 RD |
24743 | { |
24744 | arg3 = (int)(SWIG_As_int(obj2)); | |
24745 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24746 | } | |
d55e5bfc RD |
24747 | } |
24748 | { | |
24749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24750 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
24751 | ||
24752 | wxPyEndAllowThreads(__tstate); | |
24753 | if (PyErr_Occurred()) SWIG_fail; | |
24754 | } | |
24755 | { | |
24756 | wxRect * resultptr; | |
093d3ff1 | 24757 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
24758 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
24759 | } | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
c32bde28 | 24766 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24767 | PyObject *resultobj; |
24768 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24769 | long arg2 ; | |
24770 | wxPoint *arg3 = 0 ; | |
24771 | bool result; | |
24772 | wxPoint temp3 ; | |
24773 | PyObject * obj0 = 0 ; | |
24774 | PyObject * obj1 = 0 ; | |
24775 | PyObject * obj2 = 0 ; | |
24776 | char *kwnames[] = { | |
24777 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
24778 | }; | |
24779 | ||
24780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24781 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24782 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24783 | { | |
24784 | arg2 = (long)(SWIG_As_long(obj1)); | |
24785 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24786 | } | |
d55e5bfc RD |
24787 | { |
24788 | arg3 = &temp3; | |
24789 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24790 | } | |
24791 | { | |
24792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24793 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
24794 | ||
24795 | wxPyEndAllowThreads(__tstate); | |
24796 | if (PyErr_Occurred()) SWIG_fail; | |
24797 | } | |
24798 | { | |
24799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24800 | } | |
24801 | return resultobj; | |
24802 | fail: | |
24803 | return NULL; | |
24804 | } | |
24805 | ||
24806 | ||
c32bde28 | 24807 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24808 | PyObject *resultobj; |
24809 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24810 | int result; | |
24811 | PyObject * obj0 = 0 ; | |
24812 | char *kwnames[] = { | |
24813 | (char *) "self", NULL | |
24814 | }; | |
24815 | ||
24816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24819 | { |
24820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24821 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
24822 | ||
24823 | wxPyEndAllowThreads(__tstate); | |
24824 | if (PyErr_Occurred()) SWIG_fail; | |
24825 | } | |
093d3ff1 RD |
24826 | { |
24827 | resultobj = SWIG_From_int((int)(result)); | |
24828 | } | |
d55e5bfc RD |
24829 | return resultobj; |
24830 | fail: | |
24831 | return NULL; | |
24832 | } | |
24833 | ||
24834 | ||
c32bde28 | 24835 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24836 | PyObject *resultobj; |
24837 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24838 | int result; | |
24839 | PyObject * obj0 = 0 ; | |
24840 | char *kwnames[] = { | |
24841 | (char *) "self", NULL | |
24842 | }; | |
24843 | ||
24844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24849 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
24850 | ||
24851 | wxPyEndAllowThreads(__tstate); | |
24852 | if (PyErr_Occurred()) SWIG_fail; | |
24853 | } | |
093d3ff1 RD |
24854 | { |
24855 | resultobj = SWIG_From_int((int)(result)); | |
24856 | } | |
d55e5bfc RD |
24857 | return resultobj; |
24858 | fail: | |
24859 | return NULL; | |
24860 | } | |
24861 | ||
24862 | ||
c32bde28 | 24863 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24864 | PyObject *resultobj; |
24865 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24866 | wxSize result; | |
24867 | PyObject * obj0 = 0 ; | |
24868 | char *kwnames[] = { | |
24869 | (char *) "self", NULL | |
24870 | }; | |
24871 | ||
24872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24875 | { |
24876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24877 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
24878 | ||
24879 | wxPyEndAllowThreads(__tstate); | |
24880 | if (PyErr_Occurred()) SWIG_fail; | |
24881 | } | |
24882 | { | |
24883 | wxSize * resultptr; | |
093d3ff1 | 24884 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
24885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
24886 | } | |
24887 | return resultobj; | |
24888 | fail: | |
24889 | return NULL; | |
24890 | } | |
24891 | ||
24892 | ||
c32bde28 | 24893 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24894 | PyObject *resultobj; |
24895 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24896 | int result; | |
24897 | PyObject * obj0 = 0 ; | |
24898 | char *kwnames[] = { | |
24899 | (char *) "self", NULL | |
24900 | }; | |
24901 | ||
24902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24905 | { |
24906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24907 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
24908 | ||
24909 | wxPyEndAllowThreads(__tstate); | |
24910 | if (PyErr_Occurred()) SWIG_fail; | |
24911 | } | |
093d3ff1 RD |
24912 | { |
24913 | resultobj = SWIG_From_int((int)(result)); | |
24914 | } | |
d55e5bfc RD |
24915 | return resultobj; |
24916 | fail: | |
24917 | return NULL; | |
24918 | } | |
24919 | ||
24920 | ||
c32bde28 | 24921 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24922 | PyObject *resultobj; |
24923 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24924 | wxColour result; | |
24925 | PyObject * obj0 = 0 ; | |
24926 | char *kwnames[] = { | |
24927 | (char *) "self", NULL | |
24928 | }; | |
24929 | ||
24930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24933 | { |
24934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24935 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
24936 | ||
24937 | wxPyEndAllowThreads(__tstate); | |
24938 | if (PyErr_Occurred()) SWIG_fail; | |
24939 | } | |
24940 | { | |
24941 | wxColour * resultptr; | |
093d3ff1 | 24942 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
24943 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
24944 | } | |
24945 | return resultobj; | |
24946 | fail: | |
24947 | return NULL; | |
24948 | } | |
24949 | ||
24950 | ||
c32bde28 | 24951 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24952 | PyObject *resultobj; |
24953 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24954 | wxColour *arg2 = 0 ; | |
24955 | wxColour temp2 ; | |
24956 | PyObject * obj0 = 0 ; | |
24957 | PyObject * obj1 = 0 ; | |
24958 | char *kwnames[] = { | |
24959 | (char *) "self",(char *) "col", NULL | |
24960 | }; | |
24961 | ||
24962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24965 | { |
24966 | arg2 = &temp2; | |
24967 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24968 | } | |
24969 | { | |
24970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24971 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
24972 | ||
24973 | wxPyEndAllowThreads(__tstate); | |
24974 | if (PyErr_Occurred()) SWIG_fail; | |
24975 | } | |
24976 | Py_INCREF(Py_None); resultobj = Py_None; | |
24977 | return resultobj; | |
24978 | fail: | |
24979 | return NULL; | |
24980 | } | |
24981 | ||
24982 | ||
c32bde28 | 24983 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24984 | PyObject *resultobj; |
24985 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24986 | long result; | |
24987 | PyObject * obj0 = 0 ; | |
24988 | char *kwnames[] = { | |
24989 | (char *) "self", NULL | |
24990 | }; | |
24991 | ||
24992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
24995 | { |
24996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24997 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
24998 | ||
24999 | wxPyEndAllowThreads(__tstate); | |
25000 | if (PyErr_Occurred()) SWIG_fail; | |
25001 | } | |
093d3ff1 RD |
25002 | { |
25003 | resultobj = SWIG_From_long((long)(result)); | |
25004 | } | |
d55e5bfc RD |
25005 | return resultobj; |
25006 | fail: | |
25007 | return NULL; | |
25008 | } | |
25009 | ||
25010 | ||
c32bde28 | 25011 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25012 | PyObject *resultobj; |
25013 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25014 | long arg2 ; | |
ae8162c8 | 25015 | bool arg3 = (bool) true ; |
d55e5bfc RD |
25016 | PyObject * obj0 = 0 ; |
25017 | PyObject * obj1 = 0 ; | |
25018 | PyObject * obj2 = 0 ; | |
25019 | char *kwnames[] = { | |
25020 | (char *) "self",(char *) "style",(char *) "add", NULL | |
25021 | }; | |
25022 | ||
25023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25026 | { | |
25027 | arg2 = (long)(SWIG_As_long(obj1)); | |
25028 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25029 | } | |
d55e5bfc | 25030 | if (obj2) { |
093d3ff1 RD |
25031 | { |
25032 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
25033 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25034 | } | |
d55e5bfc RD |
25035 | } |
25036 | { | |
25037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25038 | (arg1)->SetSingleStyle(arg2,arg3); | |
25039 | ||
25040 | wxPyEndAllowThreads(__tstate); | |
25041 | if (PyErr_Occurred()) SWIG_fail; | |
25042 | } | |
25043 | Py_INCREF(Py_None); resultobj = Py_None; | |
25044 | return resultobj; | |
25045 | fail: | |
25046 | return NULL; | |
25047 | } | |
25048 | ||
25049 | ||
c32bde28 | 25050 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25051 | PyObject *resultobj; |
25052 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25053 | long arg2 ; | |
25054 | PyObject * obj0 = 0 ; | |
25055 | PyObject * obj1 = 0 ; | |
25056 | char *kwnames[] = { | |
25057 | (char *) "self",(char *) "style", NULL | |
25058 | }; | |
25059 | ||
25060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25063 | { | |
25064 | arg2 = (long)(SWIG_As_long(obj1)); | |
25065 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25066 | } | |
d55e5bfc RD |
25067 | { |
25068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25069 | (arg1)->SetWindowStyleFlag(arg2); | |
25070 | ||
25071 | wxPyEndAllowThreads(__tstate); | |
25072 | if (PyErr_Occurred()) SWIG_fail; | |
25073 | } | |
25074 | Py_INCREF(Py_None); resultobj = Py_None; | |
25075 | return resultobj; | |
25076 | fail: | |
25077 | return NULL; | |
25078 | } | |
25079 | ||
25080 | ||
c32bde28 | 25081 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25082 | PyObject *resultobj; |
25083 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25084 | long arg2 ; | |
25085 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
25086 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
25087 | long result; | |
25088 | PyObject * obj0 = 0 ; | |
25089 | PyObject * obj1 = 0 ; | |
25090 | PyObject * obj2 = 0 ; | |
25091 | PyObject * obj3 = 0 ; | |
25092 | char *kwnames[] = { | |
25093 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
25094 | }; | |
25095 | ||
25096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
25097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25099 | { | |
25100 | arg2 = (long)(SWIG_As_long(obj1)); | |
25101 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25102 | } | |
d55e5bfc | 25103 | if (obj2) { |
093d3ff1 RD |
25104 | { |
25105 | arg3 = (int)(SWIG_As_int(obj2)); | |
25106 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25107 | } | |
d55e5bfc RD |
25108 | } |
25109 | if (obj3) { | |
093d3ff1 RD |
25110 | { |
25111 | arg4 = (int)(SWIG_As_int(obj3)); | |
25112 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25113 | } | |
d55e5bfc RD |
25114 | } |
25115 | { | |
25116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25117 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
25118 | ||
25119 | wxPyEndAllowThreads(__tstate); | |
25120 | if (PyErr_Occurred()) SWIG_fail; | |
25121 | } | |
093d3ff1 RD |
25122 | { |
25123 | resultobj = SWIG_From_long((long)(result)); | |
25124 | } | |
d55e5bfc RD |
25125 | return resultobj; |
25126 | fail: | |
25127 | return NULL; | |
25128 | } | |
25129 | ||
25130 | ||
c32bde28 | 25131 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25132 | PyObject *resultobj; |
25133 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25134 | int arg2 ; | |
25135 | wxImageList *result; | |
25136 | PyObject * obj0 = 0 ; | |
25137 | PyObject * obj1 = 0 ; | |
25138 | char *kwnames[] = { | |
25139 | (char *) "self",(char *) "which", NULL | |
25140 | }; | |
25141 | ||
25142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25145 | { | |
25146 | arg2 = (int)(SWIG_As_int(obj1)); | |
25147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25148 | } | |
d55e5bfc RD |
25149 | { |
25150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25151 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
25152 | ||
25153 | wxPyEndAllowThreads(__tstate); | |
25154 | if (PyErr_Occurred()) SWIG_fail; | |
25155 | } | |
25156 | { | |
412d302d | 25157 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25158 | } |
25159 | return resultobj; | |
25160 | fail: | |
25161 | return NULL; | |
25162 | } | |
25163 | ||
25164 | ||
c32bde28 | 25165 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25166 | PyObject *resultobj; |
25167 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25168 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25169 | int arg3 ; | |
25170 | PyObject * obj0 = 0 ; | |
25171 | PyObject * obj1 = 0 ; | |
25172 | PyObject * obj2 = 0 ; | |
25173 | char *kwnames[] = { | |
25174 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25175 | }; | |
25176 | ||
25177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25180 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
25181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25182 | { | |
25183 | arg3 = (int)(SWIG_As_int(obj2)); | |
25184 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25185 | } | |
d55e5bfc RD |
25186 | { |
25187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25188 | (arg1)->SetImageList(arg2,arg3); | |
25189 | ||
25190 | wxPyEndAllowThreads(__tstate); | |
25191 | if (PyErr_Occurred()) SWIG_fail; | |
25192 | } | |
25193 | Py_INCREF(Py_None); resultobj = Py_None; | |
25194 | return resultobj; | |
25195 | fail: | |
25196 | return NULL; | |
25197 | } | |
25198 | ||
25199 | ||
c32bde28 | 25200 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25201 | PyObject *resultobj; |
25202 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25203 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25204 | int arg3 ; | |
25205 | PyObject * obj0 = 0 ; | |
25206 | PyObject * obj1 = 0 ; | |
25207 | PyObject * obj2 = 0 ; | |
25208 | char *kwnames[] = { | |
25209 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25210 | }; | |
25211 | ||
25212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25215 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
25216 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25217 | { | |
25218 | arg3 = (int)(SWIG_As_int(obj2)); | |
25219 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25220 | } | |
d55e5bfc RD |
25221 | { |
25222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25223 | (arg1)->AssignImageList(arg2,arg3); | |
25224 | ||
25225 | wxPyEndAllowThreads(__tstate); | |
25226 | if (PyErr_Occurred()) SWIG_fail; | |
25227 | } | |
25228 | Py_INCREF(Py_None); resultobj = Py_None; | |
25229 | return resultobj; | |
25230 | fail: | |
25231 | return NULL; | |
25232 | } | |
25233 | ||
25234 | ||
c32bde28 | 25235 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25236 | PyObject *resultobj; |
25237 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25238 | bool result; | |
25239 | PyObject * obj0 = 0 ; | |
25240 | char *kwnames[] = { | |
25241 | (char *) "self", NULL | |
25242 | }; | |
25243 | ||
25244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25247 | { |
25248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25249 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
25250 | ||
25251 | wxPyEndAllowThreads(__tstate); | |
25252 | if (PyErr_Occurred()) SWIG_fail; | |
25253 | } | |
25254 | { | |
25255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25256 | } | |
25257 | return resultobj; | |
25258 | fail: | |
25259 | return NULL; | |
25260 | } | |
25261 | ||
25262 | ||
c32bde28 | 25263 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25264 | PyObject *resultobj; |
25265 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25266 | bool result; | |
25267 | PyObject * obj0 = 0 ; | |
25268 | char *kwnames[] = { | |
25269 | (char *) "self", NULL | |
25270 | }; | |
25271 | ||
25272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25275 | { |
25276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25277 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
25278 | ||
25279 | wxPyEndAllowThreads(__tstate); | |
25280 | if (PyErr_Occurred()) SWIG_fail; | |
25281 | } | |
25282 | { | |
25283 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25284 | } | |
25285 | return resultobj; | |
25286 | fail: | |
25287 | return NULL; | |
25288 | } | |
25289 | ||
25290 | ||
c32bde28 | 25291 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25292 | PyObject *resultobj; |
25293 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25294 | long arg2 ; | |
25295 | PyObject * obj0 = 0 ; | |
25296 | PyObject * obj1 = 0 ; | |
25297 | char *kwnames[] = { | |
25298 | (char *) "self",(char *) "item", NULL | |
25299 | }; | |
25300 | ||
25301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25302 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25303 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25304 | { | |
25305 | arg2 = (long)(SWIG_As_long(obj1)); | |
25306 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25307 | } | |
d55e5bfc RD |
25308 | { |
25309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25310 | (arg1)->RefreshItem(arg2); | |
25311 | ||
25312 | wxPyEndAllowThreads(__tstate); | |
25313 | if (PyErr_Occurred()) SWIG_fail; | |
25314 | } | |
25315 | Py_INCREF(Py_None); resultobj = Py_None; | |
25316 | return resultobj; | |
25317 | fail: | |
25318 | return NULL; | |
25319 | } | |
25320 | ||
25321 | ||
c32bde28 | 25322 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25323 | PyObject *resultobj; |
25324 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25325 | long arg2 ; | |
25326 | long arg3 ; | |
25327 | PyObject * obj0 = 0 ; | |
25328 | PyObject * obj1 = 0 ; | |
25329 | PyObject * obj2 = 0 ; | |
25330 | char *kwnames[] = { | |
25331 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
25332 | }; | |
25333 | ||
25334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25337 | { | |
25338 | arg2 = (long)(SWIG_As_long(obj1)); | |
25339 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25340 | } | |
25341 | { | |
25342 | arg3 = (long)(SWIG_As_long(obj2)); | |
25343 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25344 | } | |
d55e5bfc RD |
25345 | { |
25346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25347 | (arg1)->RefreshItems(arg2,arg3); | |
25348 | ||
25349 | wxPyEndAllowThreads(__tstate); | |
25350 | if (PyErr_Occurred()) SWIG_fail; | |
25351 | } | |
25352 | Py_INCREF(Py_None); resultobj = Py_None; | |
25353 | return resultobj; | |
25354 | fail: | |
25355 | return NULL; | |
25356 | } | |
25357 | ||
25358 | ||
c32bde28 | 25359 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25360 | PyObject *resultobj; |
25361 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25362 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
25363 | bool result; | |
25364 | PyObject * obj0 = 0 ; | |
25365 | PyObject * obj1 = 0 ; | |
25366 | char *kwnames[] = { | |
25367 | (char *) "self",(char *) "flag", NULL | |
25368 | }; | |
25369 | ||
25370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 25373 | if (obj1) { |
093d3ff1 RD |
25374 | { |
25375 | arg2 = (int)(SWIG_As_int(obj1)); | |
25376 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25377 | } | |
d55e5bfc RD |
25378 | } |
25379 | { | |
25380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25381 | result = (bool)(arg1)->Arrange(arg2); | |
25382 | ||
25383 | wxPyEndAllowThreads(__tstate); | |
25384 | if (PyErr_Occurred()) SWIG_fail; | |
25385 | } | |
25386 | { | |
25387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25388 | } | |
25389 | return resultobj; | |
25390 | fail: | |
25391 | return NULL; | |
25392 | } | |
25393 | ||
25394 | ||
c32bde28 | 25395 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25396 | PyObject *resultobj; |
25397 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25398 | long arg2 ; | |
25399 | bool result; | |
25400 | PyObject * obj0 = 0 ; | |
25401 | PyObject * obj1 = 0 ; | |
25402 | char *kwnames[] = { | |
25403 | (char *) "self",(char *) "item", NULL | |
25404 | }; | |
25405 | ||
25406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25409 | { | |
25410 | arg2 = (long)(SWIG_As_long(obj1)); | |
25411 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25412 | } | |
d55e5bfc RD |
25413 | { |
25414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25415 | result = (bool)(arg1)->DeleteItem(arg2); | |
25416 | ||
25417 | wxPyEndAllowThreads(__tstate); | |
25418 | if (PyErr_Occurred()) SWIG_fail; | |
25419 | } | |
25420 | { | |
25421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25422 | } | |
25423 | return resultobj; | |
25424 | fail: | |
25425 | return NULL; | |
25426 | } | |
25427 | ||
25428 | ||
c32bde28 | 25429 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25430 | PyObject *resultobj; |
25431 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25432 | bool result; | |
25433 | PyObject * obj0 = 0 ; | |
25434 | char *kwnames[] = { | |
25435 | (char *) "self", NULL | |
25436 | }; | |
25437 | ||
25438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25441 | { |
25442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25443 | result = (bool)(arg1)->DeleteAllItems(); | |
25444 | ||
25445 | wxPyEndAllowThreads(__tstate); | |
25446 | if (PyErr_Occurred()) SWIG_fail; | |
25447 | } | |
25448 | { | |
25449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25450 | } | |
25451 | return resultobj; | |
25452 | fail: | |
25453 | return NULL; | |
25454 | } | |
25455 | ||
25456 | ||
c32bde28 | 25457 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25458 | PyObject *resultobj; |
25459 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25460 | int arg2 ; | |
25461 | bool result; | |
25462 | PyObject * obj0 = 0 ; | |
25463 | PyObject * obj1 = 0 ; | |
25464 | char *kwnames[] = { | |
25465 | (char *) "self",(char *) "col", NULL | |
25466 | }; | |
25467 | ||
25468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 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 = (int)(SWIG_As_int(obj1)); | |
25473 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25474 | } | |
d55e5bfc RD |
25475 | { |
25476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25477 | result = (bool)(arg1)->DeleteColumn(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 | ||
c32bde28 | 25491 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25492 | PyObject *resultobj; |
25493 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25494 | bool result; | |
25495 | PyObject * obj0 = 0 ; | |
25496 | char *kwnames[] = { | |
25497 | (char *) "self", NULL | |
25498 | }; | |
25499 | ||
25500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25503 | { |
25504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25505 | result = (bool)(arg1)->DeleteAllColumns(); | |
25506 | ||
25507 | wxPyEndAllowThreads(__tstate); | |
25508 | if (PyErr_Occurred()) SWIG_fail; | |
25509 | } | |
25510 | { | |
25511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25512 | } | |
25513 | return resultobj; | |
25514 | fail: | |
25515 | return NULL; | |
25516 | } | |
25517 | ||
25518 | ||
c32bde28 | 25519 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25520 | PyObject *resultobj; |
25521 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25522 | PyObject * obj0 = 0 ; | |
25523 | char *kwnames[] = { | |
25524 | (char *) "self", NULL | |
25525 | }; | |
25526 | ||
25527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25528 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25529 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25530 | { |
25531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25532 | (arg1)->ClearAll(); | |
25533 | ||
25534 | wxPyEndAllowThreads(__tstate); | |
25535 | if (PyErr_Occurred()) SWIG_fail; | |
25536 | } | |
25537 | Py_INCREF(Py_None); resultobj = Py_None; | |
25538 | return resultobj; | |
25539 | fail: | |
25540 | return NULL; | |
25541 | } | |
25542 | ||
25543 | ||
c32bde28 | 25544 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25545 | PyObject *resultobj; |
25546 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25547 | long arg2 ; | |
25548 | wxTextCtrl *result; | |
25549 | PyObject * obj0 = 0 ; | |
25550 | PyObject * obj1 = 0 ; | |
25551 | char *kwnames[] = { | |
25552 | (char *) "self",(char *) "item", NULL | |
25553 | }; | |
25554 | ||
25555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25558 | { | |
25559 | arg2 = (long)(SWIG_As_long(obj1)); | |
25560 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25561 | } | |
d55e5bfc RD |
25562 | { |
25563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25564 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
25565 | ||
25566 | wxPyEndAllowThreads(__tstate); | |
25567 | if (PyErr_Occurred()) SWIG_fail; | |
25568 | } | |
25569 | { | |
412d302d | 25570 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25571 | } |
25572 | return resultobj; | |
25573 | fail: | |
25574 | return NULL; | |
25575 | } | |
25576 | ||
25577 | ||
c32bde28 | 25578 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25579 | PyObject *resultobj; |
25580 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25581 | bool arg2 ; | |
25582 | bool result; | |
25583 | PyObject * obj0 = 0 ; | |
25584 | PyObject * obj1 = 0 ; | |
25585 | char *kwnames[] = { | |
25586 | (char *) "self",(char *) "cancel", NULL | |
25587 | }; | |
25588 | ||
25589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25592 | { | |
25593 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
25594 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25595 | } | |
d55e5bfc RD |
25596 | { |
25597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25598 | result = (bool)(arg1)->EndEditLabel(arg2); | |
25599 | ||
25600 | wxPyEndAllowThreads(__tstate); | |
25601 | if (PyErr_Occurred()) SWIG_fail; | |
25602 | } | |
25603 | { | |
25604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25605 | } | |
25606 | return resultobj; | |
25607 | fail: | |
25608 | return NULL; | |
25609 | } | |
25610 | ||
25611 | ||
c32bde28 | 25612 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25613 | PyObject *resultobj; |
25614 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25615 | long arg2 ; | |
25616 | bool result; | |
25617 | PyObject * obj0 = 0 ; | |
25618 | PyObject * obj1 = 0 ; | |
25619 | char *kwnames[] = { | |
25620 | (char *) "self",(char *) "item", NULL | |
25621 | }; | |
25622 | ||
25623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25626 | { | |
25627 | arg2 = (long)(SWIG_As_long(obj1)); | |
25628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25629 | } | |
d55e5bfc RD |
25630 | { |
25631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25632 | result = (bool)(arg1)->EnsureVisible(arg2); | |
25633 | ||
25634 | wxPyEndAllowThreads(__tstate); | |
25635 | if (PyErr_Occurred()) SWIG_fail; | |
25636 | } | |
25637 | { | |
25638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25639 | } | |
25640 | return resultobj; | |
25641 | fail: | |
25642 | return NULL; | |
25643 | } | |
25644 | ||
25645 | ||
c32bde28 | 25646 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25647 | PyObject *resultobj; |
25648 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25649 | long arg2 ; | |
25650 | wxString *arg3 = 0 ; | |
ae8162c8 | 25651 | bool arg4 = (bool) false ; |
d55e5bfc | 25652 | long result; |
ae8162c8 | 25653 | bool temp3 = false ; |
d55e5bfc RD |
25654 | PyObject * obj0 = 0 ; |
25655 | PyObject * obj1 = 0 ; | |
25656 | PyObject * obj2 = 0 ; | |
25657 | PyObject * obj3 = 0 ; | |
25658 | char *kwnames[] = { | |
25659 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
25660 | }; | |
25661 | ||
25662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
25663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25665 | { | |
25666 | arg2 = (long)(SWIG_As_long(obj1)); | |
25667 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25668 | } | |
d55e5bfc RD |
25669 | { |
25670 | arg3 = wxString_in_helper(obj2); | |
25671 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25672 | temp3 = true; |
d55e5bfc RD |
25673 | } |
25674 | if (obj3) { | |
093d3ff1 RD |
25675 | { |
25676 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
25677 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25678 | } | |
d55e5bfc RD |
25679 | } |
25680 | { | |
25681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25682 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
25683 | ||
25684 | wxPyEndAllowThreads(__tstate); | |
25685 | if (PyErr_Occurred()) SWIG_fail; | |
25686 | } | |
093d3ff1 RD |
25687 | { |
25688 | resultobj = SWIG_From_long((long)(result)); | |
25689 | } | |
d55e5bfc RD |
25690 | { |
25691 | if (temp3) | |
25692 | delete arg3; | |
25693 | } | |
25694 | return resultobj; | |
25695 | fail: | |
25696 | { | |
25697 | if (temp3) | |
25698 | delete arg3; | |
25699 | } | |
25700 | return NULL; | |
25701 | } | |
25702 | ||
25703 | ||
c32bde28 | 25704 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25705 | PyObject *resultobj; |
25706 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25707 | long arg2 ; | |
25708 | long arg3 ; | |
25709 | long result; | |
25710 | PyObject * obj0 = 0 ; | |
25711 | PyObject * obj1 = 0 ; | |
25712 | PyObject * obj2 = 0 ; | |
25713 | char *kwnames[] = { | |
25714 | (char *) "self",(char *) "start",(char *) "data", NULL | |
25715 | }; | |
25716 | ||
25717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25720 | { | |
25721 | arg2 = (long)(SWIG_As_long(obj1)); | |
25722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25723 | } | |
25724 | { | |
25725 | arg3 = (long)(SWIG_As_long(obj2)); | |
25726 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25727 | } | |
d55e5bfc RD |
25728 | { |
25729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25730 | result = (long)(arg1)->FindItem(arg2,arg3); | |
25731 | ||
25732 | wxPyEndAllowThreads(__tstate); | |
25733 | if (PyErr_Occurred()) SWIG_fail; | |
25734 | } | |
093d3ff1 RD |
25735 | { |
25736 | resultobj = SWIG_From_long((long)(result)); | |
25737 | } | |
d55e5bfc RD |
25738 | return resultobj; |
25739 | fail: | |
25740 | return NULL; | |
25741 | } | |
25742 | ||
25743 | ||
c32bde28 | 25744 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25745 | PyObject *resultobj; |
25746 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25747 | long arg2 ; | |
25748 | wxPoint *arg3 = 0 ; | |
25749 | int arg4 ; | |
25750 | long result; | |
25751 | wxPoint temp3 ; | |
25752 | PyObject * obj0 = 0 ; | |
25753 | PyObject * obj1 = 0 ; | |
25754 | PyObject * obj2 = 0 ; | |
25755 | PyObject * obj3 = 0 ; | |
25756 | char *kwnames[] = { | |
25757 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
25758 | }; | |
25759 | ||
25760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
25761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25763 | { | |
25764 | arg2 = (long)(SWIG_As_long(obj1)); | |
25765 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25766 | } | |
d55e5bfc RD |
25767 | { |
25768 | arg3 = &temp3; | |
25769 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25770 | } | |
093d3ff1 RD |
25771 | { |
25772 | arg4 = (int)(SWIG_As_int(obj3)); | |
25773 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25774 | } | |
d55e5bfc RD |
25775 | { |
25776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25777 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
25778 | ||
25779 | wxPyEndAllowThreads(__tstate); | |
25780 | if (PyErr_Occurred()) SWIG_fail; | |
25781 | } | |
093d3ff1 RD |
25782 | { |
25783 | resultobj = SWIG_From_long((long)(result)); | |
25784 | } | |
d55e5bfc RD |
25785 | return resultobj; |
25786 | fail: | |
25787 | return NULL; | |
25788 | } | |
25789 | ||
25790 | ||
c32bde28 | 25791 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25792 | PyObject *resultobj; |
25793 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25794 | wxPoint *arg2 = 0 ; | |
25795 | int *arg3 = 0 ; | |
25796 | long result; | |
25797 | wxPoint temp2 ; | |
25798 | int temp3 ; | |
c32bde28 | 25799 | int res3 = 0 ; |
d55e5bfc RD |
25800 | PyObject * obj0 = 0 ; |
25801 | PyObject * obj1 = 0 ; | |
25802 | char *kwnames[] = { | |
25803 | (char *) "self",(char *) "point", NULL | |
25804 | }; | |
25805 | ||
c32bde28 | 25806 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc | 25807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
25810 | { |
25811 | arg2 = &temp2; | |
25812 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25813 | } | |
25814 | { | |
25815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25816 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25817 | ||
25818 | wxPyEndAllowThreads(__tstate); | |
25819 | if (PyErr_Occurred()) SWIG_fail; | |
25820 | } | |
093d3ff1 RD |
25821 | { |
25822 | resultobj = SWIG_From_long((long)(result)); | |
25823 | } | |
c32bde28 RD |
25824 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
25825 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
25826 | return resultobj; |
25827 | fail: | |
25828 | return NULL; | |
25829 | } | |
25830 | ||
25831 | ||
c32bde28 | 25832 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25833 | PyObject *resultobj; |
25834 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25835 | wxListItem *arg2 = 0 ; | |
25836 | long result; | |
25837 | PyObject * obj0 = 0 ; | |
25838 | PyObject * obj1 = 0 ; | |
25839 | char *kwnames[] = { | |
25840 | (char *) "self",(char *) "info", NULL | |
25841 | }; | |
25842 | ||
25843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25846 | { | |
25847 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25848 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25849 | if (arg2 == NULL) { | |
25850 | SWIG_null_ref("wxListItem"); | |
25851 | } | |
25852 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
25853 | } |
25854 | { | |
25855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25856 | result = (long)(arg1)->InsertItem(*arg2); | |
25857 | ||
25858 | wxPyEndAllowThreads(__tstate); | |
25859 | if (PyErr_Occurred()) SWIG_fail; | |
25860 | } | |
093d3ff1 RD |
25861 | { |
25862 | resultobj = SWIG_From_long((long)(result)); | |
25863 | } | |
d55e5bfc RD |
25864 | return resultobj; |
25865 | fail: | |
25866 | return NULL; | |
25867 | } | |
25868 | ||
25869 | ||
c32bde28 | 25870 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25871 | PyObject *resultobj; |
25872 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25873 | long arg2 ; | |
25874 | wxString *arg3 = 0 ; | |
25875 | long result; | |
ae8162c8 | 25876 | bool temp3 = false ; |
d55e5bfc RD |
25877 | PyObject * obj0 = 0 ; |
25878 | PyObject * obj1 = 0 ; | |
25879 | PyObject * obj2 = 0 ; | |
25880 | char *kwnames[] = { | |
25881 | (char *) "self",(char *) "index",(char *) "label", NULL | |
25882 | }; | |
25883 | ||
25884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25885 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25886 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25887 | { | |
25888 | arg2 = (long)(SWIG_As_long(obj1)); | |
25889 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25890 | } | |
d55e5bfc RD |
25891 | { |
25892 | arg3 = wxString_in_helper(obj2); | |
25893 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25894 | temp3 = true; |
d55e5bfc RD |
25895 | } |
25896 | { | |
25897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25898 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
25899 | ||
25900 | wxPyEndAllowThreads(__tstate); | |
25901 | if (PyErr_Occurred()) SWIG_fail; | |
25902 | } | |
093d3ff1 RD |
25903 | { |
25904 | resultobj = SWIG_From_long((long)(result)); | |
25905 | } | |
d55e5bfc RD |
25906 | { |
25907 | if (temp3) | |
25908 | delete arg3; | |
25909 | } | |
25910 | return resultobj; | |
25911 | fail: | |
25912 | { | |
25913 | if (temp3) | |
25914 | delete arg3; | |
25915 | } | |
25916 | return NULL; | |
25917 | } | |
25918 | ||
25919 | ||
c32bde28 | 25920 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25921 | PyObject *resultobj; |
25922 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25923 | long arg2 ; | |
25924 | int arg3 ; | |
25925 | long result; | |
25926 | PyObject * obj0 = 0 ; | |
25927 | PyObject * obj1 = 0 ; | |
25928 | PyObject * obj2 = 0 ; | |
25929 | char *kwnames[] = { | |
25930 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
25931 | }; | |
25932 | ||
25933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25936 | { | |
25937 | arg2 = (long)(SWIG_As_long(obj1)); | |
25938 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25939 | } | |
25940 | { | |
25941 | arg3 = (int)(SWIG_As_int(obj2)); | |
25942 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25943 | } | |
d55e5bfc RD |
25944 | { |
25945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25946 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
25947 | ||
25948 | wxPyEndAllowThreads(__tstate); | |
25949 | if (PyErr_Occurred()) SWIG_fail; | |
25950 | } | |
093d3ff1 RD |
25951 | { |
25952 | resultobj = SWIG_From_long((long)(result)); | |
25953 | } | |
d55e5bfc RD |
25954 | return resultobj; |
25955 | fail: | |
25956 | return NULL; | |
25957 | } | |
25958 | ||
25959 | ||
c32bde28 | 25960 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25961 | PyObject *resultobj; |
25962 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25963 | long arg2 ; | |
25964 | wxString *arg3 = 0 ; | |
25965 | int arg4 ; | |
25966 | long result; | |
ae8162c8 | 25967 | bool temp3 = false ; |
d55e5bfc RD |
25968 | PyObject * obj0 = 0 ; |
25969 | PyObject * obj1 = 0 ; | |
25970 | PyObject * obj2 = 0 ; | |
25971 | PyObject * obj3 = 0 ; | |
25972 | char *kwnames[] = { | |
25973 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
25974 | }; | |
25975 | ||
25976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
25977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25979 | { | |
25980 | arg2 = (long)(SWIG_As_long(obj1)); | |
25981 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25982 | } | |
d55e5bfc RD |
25983 | { |
25984 | arg3 = wxString_in_helper(obj2); | |
25985 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25986 | temp3 = true; |
d55e5bfc | 25987 | } |
093d3ff1 RD |
25988 | { |
25989 | arg4 = (int)(SWIG_As_int(obj3)); | |
25990 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25991 | } | |
d55e5bfc RD |
25992 | { |
25993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25994 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
25995 | ||
25996 | wxPyEndAllowThreads(__tstate); | |
25997 | if (PyErr_Occurred()) SWIG_fail; | |
25998 | } | |
093d3ff1 RD |
25999 | { |
26000 | resultobj = SWIG_From_long((long)(result)); | |
26001 | } | |
d55e5bfc RD |
26002 | { |
26003 | if (temp3) | |
26004 | delete arg3; | |
26005 | } | |
26006 | return resultobj; | |
26007 | fail: | |
26008 | { | |
26009 | if (temp3) | |
26010 | delete arg3; | |
26011 | } | |
26012 | return NULL; | |
26013 | } | |
26014 | ||
26015 | ||
a3957d3d | 26016 | static PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26017 | PyObject *resultobj; |
26018 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26019 | long arg2 ; | |
26020 | wxListItem *arg3 = 0 ; | |
26021 | long result; | |
26022 | PyObject * obj0 = 0 ; | |
26023 | PyObject * obj1 = 0 ; | |
26024 | PyObject * obj2 = 0 ; | |
26025 | char *kwnames[] = { | |
26026 | (char *) "self",(char *) "col",(char *) "info", NULL | |
26027 | }; | |
26028 | ||
a3957d3d | 26029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26032 | { | |
26033 | arg2 = (long)(SWIG_As_long(obj1)); | |
26034 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26035 | } | |
26036 | { | |
26037 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
26038 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26039 | if (arg3 == NULL) { | |
26040 | SWIG_null_ref("wxListItem"); | |
26041 | } | |
26042 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
26043 | } |
26044 | { | |
26045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26046 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
26047 | ||
26048 | wxPyEndAllowThreads(__tstate); | |
26049 | if (PyErr_Occurred()) SWIG_fail; | |
26050 | } | |
093d3ff1 RD |
26051 | { |
26052 | resultobj = SWIG_From_long((long)(result)); | |
26053 | } | |
d55e5bfc RD |
26054 | return resultobj; |
26055 | fail: | |
26056 | return NULL; | |
26057 | } | |
26058 | ||
26059 | ||
c32bde28 | 26060 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26061 | PyObject *resultobj; |
26062 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26063 | long arg2 ; | |
26064 | wxString *arg3 = 0 ; | |
26065 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
26066 | int arg5 = (int) -1 ; | |
26067 | long result; | |
ae8162c8 | 26068 | bool temp3 = false ; |
d55e5bfc RD |
26069 | PyObject * obj0 = 0 ; |
26070 | PyObject * obj1 = 0 ; | |
26071 | PyObject * obj2 = 0 ; | |
26072 | PyObject * obj3 = 0 ; | |
26073 | PyObject * obj4 = 0 ; | |
26074 | char *kwnames[] = { | |
26075 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
26076 | }; | |
26077 | ||
26078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
26079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26081 | { | |
26082 | arg2 = (long)(SWIG_As_long(obj1)); | |
26083 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26084 | } | |
d55e5bfc RD |
26085 | { |
26086 | arg3 = wxString_in_helper(obj2); | |
26087 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26088 | temp3 = true; |
d55e5bfc RD |
26089 | } |
26090 | if (obj3) { | |
093d3ff1 RD |
26091 | { |
26092 | arg4 = (int)(SWIG_As_int(obj3)); | |
26093 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26094 | } | |
d55e5bfc RD |
26095 | } |
26096 | if (obj4) { | |
093d3ff1 RD |
26097 | { |
26098 | arg5 = (int)(SWIG_As_int(obj4)); | |
26099 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26100 | } | |
d55e5bfc RD |
26101 | } |
26102 | { | |
26103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26104 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
26105 | ||
26106 | wxPyEndAllowThreads(__tstate); | |
26107 | if (PyErr_Occurred()) SWIG_fail; | |
26108 | } | |
093d3ff1 RD |
26109 | { |
26110 | resultobj = SWIG_From_long((long)(result)); | |
26111 | } | |
d55e5bfc RD |
26112 | { |
26113 | if (temp3) | |
26114 | delete arg3; | |
26115 | } | |
26116 | return resultobj; | |
26117 | fail: | |
26118 | { | |
26119 | if (temp3) | |
26120 | delete arg3; | |
26121 | } | |
26122 | return NULL; | |
26123 | } | |
26124 | ||
26125 | ||
c32bde28 | 26126 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26127 | PyObject *resultobj; |
26128 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26129 | long arg2 ; | |
26130 | PyObject * obj0 = 0 ; | |
26131 | PyObject * obj1 = 0 ; | |
26132 | char *kwnames[] = { | |
26133 | (char *) "self",(char *) "count", NULL | |
26134 | }; | |
26135 | ||
26136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26139 | { | |
26140 | arg2 = (long)(SWIG_As_long(obj1)); | |
26141 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26142 | } | |
d55e5bfc RD |
26143 | { |
26144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26145 | (arg1)->SetItemCount(arg2); | |
26146 | ||
26147 | wxPyEndAllowThreads(__tstate); | |
26148 | if (PyErr_Occurred()) SWIG_fail; | |
26149 | } | |
26150 | Py_INCREF(Py_None); resultobj = Py_None; | |
26151 | return resultobj; | |
26152 | fail: | |
26153 | return NULL; | |
26154 | } | |
26155 | ||
26156 | ||
c32bde28 | 26157 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26158 | PyObject *resultobj; |
26159 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26160 | int arg2 ; | |
26161 | int arg3 ; | |
26162 | bool result; | |
26163 | PyObject * obj0 = 0 ; | |
26164 | PyObject * obj1 = 0 ; | |
26165 | PyObject * obj2 = 0 ; | |
26166 | char *kwnames[] = { | |
26167 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26168 | }; | |
26169 | ||
26170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
26171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26173 | { | |
26174 | arg2 = (int)(SWIG_As_int(obj1)); | |
26175 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26176 | } | |
26177 | { | |
26178 | arg3 = (int)(SWIG_As_int(obj2)); | |
26179 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26180 | } | |
d55e5bfc RD |
26181 | { |
26182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26183 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
26184 | ||
26185 | wxPyEndAllowThreads(__tstate); | |
26186 | if (PyErr_Occurred()) SWIG_fail; | |
26187 | } | |
26188 | { | |
26189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26190 | } | |
26191 | return resultobj; | |
26192 | fail: | |
26193 | return NULL; | |
26194 | } | |
26195 | ||
26196 | ||
c32bde28 | 26197 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26198 | PyObject *resultobj; |
26199 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26200 | long arg2 ; | |
26201 | wxColour *arg3 = 0 ; | |
26202 | wxColour temp3 ; | |
26203 | PyObject * obj0 = 0 ; | |
26204 | PyObject * obj1 = 0 ; | |
26205 | PyObject * obj2 = 0 ; | |
26206 | char *kwnames[] = { | |
26207 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26208 | }; | |
26209 | ||
26210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
26211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26213 | { | |
26214 | arg2 = (long)(SWIG_As_long(obj1)); | |
26215 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26216 | } | |
d55e5bfc RD |
26217 | { |
26218 | arg3 = &temp3; | |
26219 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26220 | } | |
26221 | { | |
26222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26223 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
26224 | ||
26225 | wxPyEndAllowThreads(__tstate); | |
26226 | if (PyErr_Occurred()) SWIG_fail; | |
26227 | } | |
26228 | Py_INCREF(Py_None); resultobj = Py_None; | |
26229 | return resultobj; | |
26230 | fail: | |
26231 | return NULL; | |
26232 | } | |
26233 | ||
26234 | ||
c32bde28 | 26235 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26236 | PyObject *resultobj; |
26237 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26238 | long arg2 ; | |
26239 | wxColour result; | |
26240 | PyObject * obj0 = 0 ; | |
26241 | PyObject * obj1 = 0 ; | |
26242 | char *kwnames[] = { | |
26243 | (char *) "self",(char *) "item", NULL | |
26244 | }; | |
26245 | ||
26246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26249 | { | |
26250 | arg2 = (long)(SWIG_As_long(obj1)); | |
26251 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26252 | } | |
d55e5bfc RD |
26253 | { |
26254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26255 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
26256 | ||
26257 | wxPyEndAllowThreads(__tstate); | |
26258 | if (PyErr_Occurred()) SWIG_fail; | |
26259 | } | |
26260 | { | |
26261 | wxColour * resultptr; | |
093d3ff1 | 26262 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
26263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
26264 | } | |
26265 | return resultobj; | |
26266 | fail: | |
26267 | return NULL; | |
26268 | } | |
26269 | ||
26270 | ||
c32bde28 | 26271 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26272 | PyObject *resultobj; |
26273 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26274 | long arg2 ; | |
26275 | wxColour *arg3 = 0 ; | |
26276 | wxColour temp3 ; | |
26277 | PyObject * obj0 = 0 ; | |
26278 | PyObject * obj1 = 0 ; | |
26279 | PyObject * obj2 = 0 ; | |
26280 | char *kwnames[] = { | |
26281 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26282 | }; | |
26283 | ||
26284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
26285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26287 | { | |
26288 | arg2 = (long)(SWIG_As_long(obj1)); | |
26289 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26290 | } | |
d55e5bfc RD |
26291 | { |
26292 | arg3 = &temp3; | |
26293 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26294 | } | |
26295 | { | |
26296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26297 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
26298 | ||
26299 | wxPyEndAllowThreads(__tstate); | |
26300 | if (PyErr_Occurred()) SWIG_fail; | |
26301 | } | |
26302 | Py_INCREF(Py_None); resultobj = Py_None; | |
26303 | return resultobj; | |
26304 | fail: | |
26305 | return NULL; | |
26306 | } | |
26307 | ||
26308 | ||
c32bde28 | 26309 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26310 | PyObject *resultobj; |
26311 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26312 | long arg2 ; | |
26313 | wxColour result; | |
26314 | PyObject * obj0 = 0 ; | |
26315 | PyObject * obj1 = 0 ; | |
26316 | char *kwnames[] = { | |
26317 | (char *) "self",(char *) "item", NULL | |
26318 | }; | |
26319 | ||
26320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26323 | { | |
26324 | arg2 = (long)(SWIG_As_long(obj1)); | |
26325 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26326 | } | |
d55e5bfc RD |
26327 | { |
26328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26329 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
26330 | ||
26331 | wxPyEndAllowThreads(__tstate); | |
26332 | if (PyErr_Occurred()) SWIG_fail; | |
26333 | } | |
26334 | { | |
26335 | wxColour * resultptr; | |
093d3ff1 | 26336 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
26337 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
26338 | } | |
26339 | return resultobj; | |
26340 | fail: | |
26341 | return NULL; | |
26342 | } | |
26343 | ||
26344 | ||
9d7dfdff RD |
26345 | static PyObject *_wrap_ListCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
26346 | PyObject *resultobj; | |
26347 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26348 | long arg2 ; | |
26349 | wxFont *arg3 = 0 ; | |
26350 | PyObject * obj0 = 0 ; | |
26351 | PyObject * obj1 = 0 ; | |
26352 | PyObject * obj2 = 0 ; | |
26353 | char *kwnames[] = { | |
26354 | (char *) "self",(char *) "item",(char *) "f", NULL | |
26355 | }; | |
26356 | ||
26357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26360 | { | |
26361 | arg2 = (long)(SWIG_As_long(obj1)); | |
26362 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26363 | } | |
26364 | { | |
26365 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
26366 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26367 | if (arg3 == NULL) { | |
26368 | SWIG_null_ref("wxFont"); | |
26369 | } | |
26370 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26371 | } | |
26372 | { | |
26373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26374 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
26375 | ||
26376 | wxPyEndAllowThreads(__tstate); | |
26377 | if (PyErr_Occurred()) SWIG_fail; | |
26378 | } | |
26379 | Py_INCREF(Py_None); resultobj = Py_None; | |
26380 | return resultobj; | |
26381 | fail: | |
26382 | return NULL; | |
26383 | } | |
26384 | ||
26385 | ||
26386 | static PyObject *_wrap_ListCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
26387 | PyObject *resultobj; | |
26388 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26389 | long arg2 ; | |
26390 | wxFont result; | |
26391 | PyObject * obj0 = 0 ; | |
26392 | PyObject * obj1 = 0 ; | |
26393 | char *kwnames[] = { | |
26394 | (char *) "self",(char *) "item", NULL | |
26395 | }; | |
26396 | ||
26397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
26398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26400 | { | |
26401 | arg2 = (long)(SWIG_As_long(obj1)); | |
26402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26403 | } | |
26404 | { | |
26405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26406 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
26407 | ||
26408 | wxPyEndAllowThreads(__tstate); | |
26409 | if (PyErr_Occurred()) SWIG_fail; | |
26410 | } | |
26411 | { | |
26412 | wxFont * resultptr; | |
26413 | resultptr = new wxFont((wxFont &)(result)); | |
26414 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26415 | } | |
26416 | return resultobj; | |
26417 | fail: | |
26418 | return NULL; | |
26419 | } | |
26420 | ||
26421 | ||
c32bde28 | 26422 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26423 | PyObject *resultobj; |
26424 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26425 | PyObject *arg2 = (PyObject *) 0 ; | |
26426 | bool result; | |
26427 | PyObject * obj0 = 0 ; | |
26428 | PyObject * obj1 = 0 ; | |
26429 | char *kwnames[] = { | |
26430 | (char *) "self",(char *) "func", NULL | |
26431 | }; | |
26432 | ||
26433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26436 | arg2 = obj1; |
26437 | { | |
26438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26439 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
26440 | ||
26441 | wxPyEndAllowThreads(__tstate); | |
26442 | if (PyErr_Occurred()) SWIG_fail; | |
26443 | } | |
26444 | { | |
26445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26446 | } | |
26447 | return resultobj; | |
26448 | fail: | |
26449 | return NULL; | |
26450 | } | |
26451 | ||
26452 | ||
c32bde28 | 26453 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26454 | PyObject *resultobj; |
26455 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26456 | wxWindow *result; | |
26457 | PyObject * obj0 = 0 ; | |
26458 | char *kwnames[] = { | |
26459 | (char *) "self", NULL | |
26460 | }; | |
26461 | ||
26462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26465 | { |
26466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26467 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
26468 | ||
26469 | wxPyEndAllowThreads(__tstate); | |
26470 | if (PyErr_Occurred()) SWIG_fail; | |
26471 | } | |
26472 | { | |
412d302d | 26473 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26474 | } |
26475 | return resultobj; | |
26476 | fail: | |
26477 | return NULL; | |
26478 | } | |
26479 | ||
26480 | ||
c32bde28 | 26481 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 26482 | PyObject *resultobj; |
093d3ff1 | 26483 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
26484 | wxVisualAttributes result; |
26485 | PyObject * obj0 = 0 ; | |
26486 | char *kwnames[] = { | |
26487 | (char *) "variant", NULL | |
26488 | }; | |
26489 | ||
26490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26491 | if (obj0) { | |
093d3ff1 RD |
26492 | { |
26493 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
26494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26495 | } | |
d55e5bfc RD |
26496 | } |
26497 | { | |
19272049 | 26498 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26500 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26501 | ||
26502 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26503 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26504 | } |
26505 | { | |
26506 | wxVisualAttributes * resultptr; | |
093d3ff1 | 26507 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
26508 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
26509 | } | |
26510 | return resultobj; | |
26511 | fail: | |
26512 | return NULL; | |
26513 | } | |
26514 | ||
26515 | ||
c32bde28 | 26516 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
26517 | PyObject *obj; |
26518 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26519 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
26520 | Py_INCREF(obj); | |
26521 | return Py_BuildValue((char *)""); | |
26522 | } | |
c32bde28 | 26523 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26524 | PyObject *resultobj; |
26525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26526 | int arg2 = (int) -1 ; | |
26527 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
26528 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26529 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26530 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26531 | long arg5 = (long) wxLC_REPORT ; | |
26532 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
26533 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
26534 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
26535 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26536 | wxListView *result; | |
26537 | wxPoint temp3 ; | |
26538 | wxSize temp4 ; | |
ae8162c8 | 26539 | bool temp7 = false ; |
d55e5bfc RD |
26540 | PyObject * obj0 = 0 ; |
26541 | PyObject * obj1 = 0 ; | |
26542 | PyObject * obj2 = 0 ; | |
26543 | PyObject * obj3 = 0 ; | |
26544 | PyObject * obj4 = 0 ; | |
26545 | PyObject * obj5 = 0 ; | |
26546 | PyObject * obj6 = 0 ; | |
26547 | char *kwnames[] = { | |
26548 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26549 | }; | |
26550 | ||
26551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
26552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 26554 | if (obj1) { |
093d3ff1 RD |
26555 | { |
26556 | arg2 = (int)(SWIG_As_int(obj1)); | |
26557 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26558 | } | |
d55e5bfc RD |
26559 | } |
26560 | if (obj2) { | |
26561 | { | |
26562 | arg3 = &temp3; | |
26563 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26564 | } | |
26565 | } | |
26566 | if (obj3) { | |
26567 | { | |
26568 | arg4 = &temp4; | |
26569 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26570 | } | |
26571 | } | |
26572 | if (obj4) { | |
093d3ff1 RD |
26573 | { |
26574 | arg5 = (long)(SWIG_As_long(obj4)); | |
26575 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26576 | } | |
d55e5bfc RD |
26577 | } |
26578 | if (obj5) { | |
093d3ff1 RD |
26579 | { |
26580 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26581 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26582 | if (arg6 == NULL) { | |
26583 | SWIG_null_ref("wxValidator"); | |
26584 | } | |
26585 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
26586 | } |
26587 | } | |
26588 | if (obj6) { | |
26589 | { | |
26590 | arg7 = wxString_in_helper(obj6); | |
26591 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 26592 | temp7 = true; |
d55e5bfc RD |
26593 | } |
26594 | } | |
26595 | { | |
0439c23b | 26596 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26598 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
26599 | ||
26600 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26601 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26602 | } |
26603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
26604 | { | |
26605 | if (temp7) | |
26606 | delete arg7; | |
26607 | } | |
26608 | return resultobj; | |
26609 | fail: | |
26610 | { | |
26611 | if (temp7) | |
26612 | delete arg7; | |
26613 | } | |
26614 | return NULL; | |
26615 | } | |
26616 | ||
26617 | ||
c32bde28 | 26618 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26619 | PyObject *resultobj; |
26620 | wxListView *result; | |
26621 | char *kwnames[] = { | |
26622 | NULL | |
26623 | }; | |
26624 | ||
26625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
26626 | { | |
0439c23b | 26627 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26629 | result = (wxListView *)new wxListView(); | |
26630 | ||
26631 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26632 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26633 | } |
26634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
26635 | return resultobj; | |
26636 | fail: | |
26637 | return NULL; | |
26638 | } | |
26639 | ||
26640 | ||
c32bde28 | 26641 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26642 | PyObject *resultobj; |
26643 | wxListView *arg1 = (wxListView *) 0 ; | |
26644 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26645 | int arg3 = (int) -1 ; | |
26646 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26647 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26648 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26649 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26650 | long arg6 = (long) wxLC_REPORT ; | |
26651 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
26652 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
26653 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
26654 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26655 | bool result; | |
26656 | wxPoint temp4 ; | |
26657 | wxSize temp5 ; | |
ae8162c8 | 26658 | bool temp8 = false ; |
d55e5bfc RD |
26659 | PyObject * obj0 = 0 ; |
26660 | PyObject * obj1 = 0 ; | |
26661 | PyObject * obj2 = 0 ; | |
26662 | PyObject * obj3 = 0 ; | |
26663 | PyObject * obj4 = 0 ; | |
26664 | PyObject * obj5 = 0 ; | |
26665 | PyObject * obj6 = 0 ; | |
26666 | PyObject * obj7 = 0 ; | |
26667 | char *kwnames[] = { | |
26668 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26669 | }; | |
26670 | ||
26671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
093d3ff1 RD |
26672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26674 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
26675 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 26676 | if (obj2) { |
093d3ff1 RD |
26677 | { |
26678 | arg3 = (int)(SWIG_As_int(obj2)); | |
26679 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26680 | } | |
d55e5bfc RD |
26681 | } |
26682 | if (obj3) { | |
26683 | { | |
26684 | arg4 = &temp4; | |
26685 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26686 | } | |
26687 | } | |
26688 | if (obj4) { | |
26689 | { | |
26690 | arg5 = &temp5; | |
26691 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26692 | } | |
26693 | } | |
26694 | if (obj5) { | |
093d3ff1 RD |
26695 | { |
26696 | arg6 = (long)(SWIG_As_long(obj5)); | |
26697 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26698 | } | |
d55e5bfc RD |
26699 | } |
26700 | if (obj6) { | |
093d3ff1 RD |
26701 | { |
26702 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26703 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26704 | if (arg7 == NULL) { | |
26705 | SWIG_null_ref("wxValidator"); | |
26706 | } | |
26707 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
26708 | } |
26709 | } | |
26710 | if (obj7) { | |
26711 | { | |
26712 | arg8 = wxString_in_helper(obj7); | |
26713 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 26714 | temp8 = true; |
d55e5bfc RD |
26715 | } |
26716 | } | |
26717 | { | |
26718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26719 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
26720 | ||
26721 | wxPyEndAllowThreads(__tstate); | |
26722 | if (PyErr_Occurred()) SWIG_fail; | |
26723 | } | |
26724 | { | |
26725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26726 | } | |
26727 | { | |
26728 | if (temp8) | |
26729 | delete arg8; | |
26730 | } | |
26731 | return resultobj; | |
26732 | fail: | |
26733 | { | |
26734 | if (temp8) | |
26735 | delete arg8; | |
26736 | } | |
26737 | return NULL; | |
26738 | } | |
26739 | ||
26740 | ||
c32bde28 | 26741 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26742 | PyObject *resultobj; |
26743 | wxListView *arg1 = (wxListView *) 0 ; | |
26744 | long arg2 ; | |
ae8162c8 | 26745 | bool arg3 = (bool) true ; |
d55e5bfc RD |
26746 | PyObject * obj0 = 0 ; |
26747 | PyObject * obj1 = 0 ; | |
26748 | PyObject * obj2 = 0 ; | |
26749 | char *kwnames[] = { | |
26750 | (char *) "self",(char *) "n",(char *) "on", NULL | |
26751 | }; | |
26752 | ||
26753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
26754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26756 | { | |
26757 | arg2 = (long)(SWIG_As_long(obj1)); | |
26758 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26759 | } | |
d55e5bfc | 26760 | if (obj2) { |
093d3ff1 RD |
26761 | { |
26762 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
26763 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26764 | } | |
d55e5bfc RD |
26765 | } |
26766 | { | |
26767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26768 | (arg1)->Select(arg2,arg3); | |
26769 | ||
26770 | wxPyEndAllowThreads(__tstate); | |
26771 | if (PyErr_Occurred()) SWIG_fail; | |
26772 | } | |
26773 | Py_INCREF(Py_None); resultobj = Py_None; | |
26774 | return resultobj; | |
26775 | fail: | |
26776 | return NULL; | |
26777 | } | |
26778 | ||
26779 | ||
c32bde28 | 26780 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26781 | PyObject *resultobj; |
26782 | wxListView *arg1 = (wxListView *) 0 ; | |
26783 | long arg2 ; | |
26784 | PyObject * obj0 = 0 ; | |
26785 | PyObject * obj1 = 0 ; | |
26786 | char *kwnames[] = { | |
26787 | (char *) "self",(char *) "index", NULL | |
26788 | }; | |
26789 | ||
26790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26793 | { | |
26794 | arg2 = (long)(SWIG_As_long(obj1)); | |
26795 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26796 | } | |
d55e5bfc RD |
26797 | { |
26798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26799 | (arg1)->Focus(arg2); | |
26800 | ||
26801 | wxPyEndAllowThreads(__tstate); | |
26802 | if (PyErr_Occurred()) SWIG_fail; | |
26803 | } | |
26804 | Py_INCREF(Py_None); resultobj = Py_None; | |
26805 | return resultobj; | |
26806 | fail: | |
26807 | return NULL; | |
26808 | } | |
26809 | ||
26810 | ||
c32bde28 | 26811 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26812 | PyObject *resultobj; |
26813 | wxListView *arg1 = (wxListView *) 0 ; | |
26814 | long result; | |
26815 | PyObject * obj0 = 0 ; | |
26816 | char *kwnames[] = { | |
26817 | (char *) "self", NULL | |
26818 | }; | |
26819 | ||
26820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26823 | { |
26824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26825 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
26826 | ||
26827 | wxPyEndAllowThreads(__tstate); | |
26828 | if (PyErr_Occurred()) SWIG_fail; | |
26829 | } | |
093d3ff1 RD |
26830 | { |
26831 | resultobj = SWIG_From_long((long)(result)); | |
26832 | } | |
d55e5bfc RD |
26833 | return resultobj; |
26834 | fail: | |
26835 | return NULL; | |
26836 | } | |
26837 | ||
26838 | ||
c32bde28 | 26839 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26840 | PyObject *resultobj; |
26841 | wxListView *arg1 = (wxListView *) 0 ; | |
26842 | long arg2 ; | |
26843 | long result; | |
26844 | PyObject * obj0 = 0 ; | |
26845 | PyObject * obj1 = 0 ; | |
26846 | char *kwnames[] = { | |
26847 | (char *) "self",(char *) "item", NULL | |
26848 | }; | |
26849 | ||
26850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26853 | { | |
26854 | arg2 = (long)(SWIG_As_long(obj1)); | |
26855 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26856 | } | |
d55e5bfc RD |
26857 | { |
26858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26859 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
26860 | ||
26861 | wxPyEndAllowThreads(__tstate); | |
26862 | if (PyErr_Occurred()) SWIG_fail; | |
26863 | } | |
093d3ff1 RD |
26864 | { |
26865 | resultobj = SWIG_From_long((long)(result)); | |
26866 | } | |
d55e5bfc RD |
26867 | return resultobj; |
26868 | fail: | |
26869 | return NULL; | |
26870 | } | |
26871 | ||
26872 | ||
c32bde28 | 26873 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26874 | PyObject *resultobj; |
26875 | wxListView *arg1 = (wxListView *) 0 ; | |
26876 | long result; | |
26877 | PyObject * obj0 = 0 ; | |
26878 | char *kwnames[] = { | |
26879 | (char *) "self", NULL | |
26880 | }; | |
26881 | ||
26882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
26885 | { |
26886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26887 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
26888 | ||
26889 | wxPyEndAllowThreads(__tstate); | |
26890 | if (PyErr_Occurred()) SWIG_fail; | |
26891 | } | |
093d3ff1 RD |
26892 | { |
26893 | resultobj = SWIG_From_long((long)(result)); | |
26894 | } | |
d55e5bfc RD |
26895 | return resultobj; |
26896 | fail: | |
26897 | return NULL; | |
26898 | } | |
26899 | ||
26900 | ||
c32bde28 | 26901 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26902 | PyObject *resultobj; |
26903 | wxListView *arg1 = (wxListView *) 0 ; | |
26904 | long arg2 ; | |
26905 | bool result; | |
26906 | PyObject * obj0 = 0 ; | |
26907 | PyObject * obj1 = 0 ; | |
26908 | char *kwnames[] = { | |
26909 | (char *) "self",(char *) "index", NULL | |
26910 | }; | |
26911 | ||
26912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26915 | { | |
26916 | arg2 = (long)(SWIG_As_long(obj1)); | |
26917 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26918 | } | |
d55e5bfc RD |
26919 | { |
26920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26921 | result = (bool)(arg1)->IsSelected(arg2); | |
26922 | ||
26923 | wxPyEndAllowThreads(__tstate); | |
26924 | if (PyErr_Occurred()) SWIG_fail; | |
26925 | } | |
26926 | { | |
26927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26928 | } | |
26929 | return resultobj; | |
26930 | fail: | |
26931 | return NULL; | |
26932 | } | |
26933 | ||
26934 | ||
c32bde28 | 26935 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26936 | PyObject *resultobj; |
26937 | wxListView *arg1 = (wxListView *) 0 ; | |
26938 | int arg2 ; | |
26939 | int arg3 ; | |
26940 | PyObject * obj0 = 0 ; | |
26941 | PyObject * obj1 = 0 ; | |
26942 | PyObject * obj2 = 0 ; | |
26943 | char *kwnames[] = { | |
26944 | (char *) "self",(char *) "col",(char *) "image", NULL | |
26945 | }; | |
26946 | ||
26947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
26948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26950 | { | |
26951 | arg2 = (int)(SWIG_As_int(obj1)); | |
26952 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26953 | } | |
26954 | { | |
26955 | arg3 = (int)(SWIG_As_int(obj2)); | |
26956 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26957 | } | |
d55e5bfc RD |
26958 | { |
26959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26960 | (arg1)->SetColumnImage(arg2,arg3); | |
26961 | ||
26962 | wxPyEndAllowThreads(__tstate); | |
26963 | if (PyErr_Occurred()) SWIG_fail; | |
26964 | } | |
26965 | Py_INCREF(Py_None); resultobj = Py_None; | |
26966 | return resultobj; | |
26967 | fail: | |
26968 | return NULL; | |
26969 | } | |
26970 | ||
26971 | ||
c32bde28 | 26972 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26973 | PyObject *resultobj; |
26974 | wxListView *arg1 = (wxListView *) 0 ; | |
26975 | int arg2 ; | |
26976 | PyObject * obj0 = 0 ; | |
26977 | PyObject * obj1 = 0 ; | |
26978 | char *kwnames[] = { | |
26979 | (char *) "self",(char *) "col", NULL | |
26980 | }; | |
26981 | ||
26982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26985 | { | |
26986 | arg2 = (int)(SWIG_As_int(obj1)); | |
26987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26988 | } | |
d55e5bfc RD |
26989 | { |
26990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26991 | (arg1)->ClearColumnImage(arg2); | |
26992 | ||
26993 | wxPyEndAllowThreads(__tstate); | |
26994 | if (PyErr_Occurred()) SWIG_fail; | |
26995 | } | |
26996 | Py_INCREF(Py_None); resultobj = Py_None; | |
26997 | return resultobj; | |
26998 | fail: | |
26999 | return NULL; | |
27000 | } | |
27001 | ||
27002 | ||
c32bde28 | 27003 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27004 | PyObject *obj; |
27005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27006 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
27007 | Py_INCREF(obj); | |
27008 | return Py_BuildValue((char *)""); | |
27009 | } | |
c32bde28 | 27010 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
d55e5bfc RD |
27011 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
27012 | return 1; | |
27013 | } | |
27014 | ||
27015 | ||
093d3ff1 | 27016 | static PyObject *_wrap_TreeCtrlNameStr_get(void) { |
d55e5bfc RD |
27017 | PyObject *pyobj; |
27018 | ||
27019 | { | |
27020 | #if wxUSE_UNICODE | |
27021 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
27022 | #else | |
27023 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
27024 | #endif | |
27025 | } | |
27026 | return pyobj; | |
27027 | } | |
27028 | ||
27029 | ||
c32bde28 | 27030 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27031 | PyObject *resultobj; |
27032 | wxTreeItemId *result; | |
27033 | char *kwnames[] = { | |
27034 | NULL | |
27035 | }; | |
27036 | ||
27037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
27038 | { | |
27039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27040 | result = (wxTreeItemId *)new wxTreeItemId(); | |
27041 | ||
27042 | wxPyEndAllowThreads(__tstate); | |
27043 | if (PyErr_Occurred()) SWIG_fail; | |
27044 | } | |
27045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
27046 | return resultobj; | |
27047 | fail: | |
27048 | return NULL; | |
27049 | } | |
27050 | ||
27051 | ||
c32bde28 | 27052 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27053 | PyObject *resultobj; |
27054 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27055 | PyObject * obj0 = 0 ; | |
27056 | char *kwnames[] = { | |
27057 | (char *) "self", NULL | |
27058 | }; | |
27059 | ||
27060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27063 | { |
27064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27065 | delete arg1; | |
27066 | ||
27067 | wxPyEndAllowThreads(__tstate); | |
27068 | if (PyErr_Occurred()) SWIG_fail; | |
27069 | } | |
27070 | Py_INCREF(Py_None); resultobj = Py_None; | |
27071 | return resultobj; | |
27072 | fail: | |
27073 | return NULL; | |
27074 | } | |
27075 | ||
27076 | ||
c32bde28 | 27077 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27078 | PyObject *resultobj; |
27079 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27080 | bool result; | |
27081 | PyObject * obj0 = 0 ; | |
27082 | char *kwnames[] = { | |
27083 | (char *) "self", NULL | |
27084 | }; | |
27085 | ||
27086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27089 | { |
27090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27091 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
27092 | ||
27093 | wxPyEndAllowThreads(__tstate); | |
27094 | if (PyErr_Occurred()) SWIG_fail; | |
27095 | } | |
27096 | { | |
27097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27098 | } | |
27099 | return resultobj; | |
27100 | fail: | |
27101 | return NULL; | |
27102 | } | |
27103 | ||
27104 | ||
c32bde28 | 27105 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27106 | PyObject *resultobj; |
27107 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27108 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27109 | bool result; | |
27110 | PyObject * obj0 = 0 ; | |
27111 | PyObject * obj1 = 0 ; | |
27112 | char *kwnames[] = { | |
27113 | (char *) "self",(char *) "other", NULL | |
27114 | }; | |
27115 | ||
27116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27119 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27120 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27121 | { |
27122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27123 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
27124 | ||
27125 | wxPyEndAllowThreads(__tstate); | |
27126 | if (PyErr_Occurred()) SWIG_fail; | |
27127 | } | |
27128 | { | |
27129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27130 | } | |
27131 | return resultobj; | |
27132 | fail: | |
27133 | return NULL; | |
27134 | } | |
27135 | ||
27136 | ||
c32bde28 | 27137 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27138 | PyObject *resultobj; |
27139 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27140 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27141 | bool result; | |
27142 | PyObject * obj0 = 0 ; | |
27143 | PyObject * obj1 = 0 ; | |
27144 | char *kwnames[] = { | |
27145 | (char *) "self",(char *) "other", NULL | |
27146 | }; | |
27147 | ||
27148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27151 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27153 | { |
27154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27155 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
27156 | ||
27157 | wxPyEndAllowThreads(__tstate); | |
27158 | if (PyErr_Occurred()) SWIG_fail; | |
27159 | } | |
27160 | { | |
27161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27162 | } | |
27163 | return resultobj; | |
27164 | fail: | |
27165 | return NULL; | |
27166 | } | |
27167 | ||
27168 | ||
c32bde28 | 27169 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27170 | PyObject *resultobj; |
27171 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27172 | void *arg2 = (void *) 0 ; | |
27173 | PyObject * obj0 = 0 ; | |
27174 | PyObject * obj1 = 0 ; | |
27175 | char *kwnames[] = { | |
27176 | (char *) "self",(char *) "m_pItem", NULL | |
27177 | }; | |
27178 | ||
27179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27182 | { | |
27183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),0,SWIG_POINTER_EXCEPTION|SWIG_POINTER_DISOWN))== -1) { | |
27184 | SWIG_arg_fail(2);SWIG_fail; | |
27185 | } | |
27186 | } | |
d55e5bfc RD |
27187 | if (arg1) (arg1)->m_pItem = arg2; |
27188 | ||
27189 | Py_INCREF(Py_None); resultobj = Py_None; | |
27190 | return resultobj; | |
27191 | fail: | |
27192 | return NULL; | |
27193 | } | |
27194 | ||
27195 | ||
c32bde28 | 27196 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27197 | PyObject *resultobj; |
27198 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27199 | void *result; | |
27200 | PyObject * obj0 = 0 ; | |
27201 | char *kwnames[] = { | |
27202 | (char *) "self", NULL | |
27203 | }; | |
27204 | ||
27205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27208 | result = (void *) ((arg1)->m_pItem); |
27209 | ||
27210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
27211 | return resultobj; | |
27212 | fail: | |
27213 | return NULL; | |
27214 | } | |
27215 | ||
27216 | ||
c32bde28 | 27217 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27218 | PyObject *obj; |
27219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27220 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
27221 | Py_INCREF(obj); | |
27222 | return Py_BuildValue((char *)""); | |
27223 | } | |
c32bde28 | 27224 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27225 | PyObject *resultobj; |
27226 | PyObject *arg1 = (PyObject *) NULL ; | |
27227 | wxPyTreeItemData *result; | |
27228 | PyObject * obj0 = 0 ; | |
27229 | char *kwnames[] = { | |
27230 | (char *) "obj", NULL | |
27231 | }; | |
27232 | ||
27233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
27234 | if (obj0) { | |
27235 | arg1 = obj0; | |
27236 | } | |
27237 | { | |
27238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27239 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
27240 | ||
27241 | wxPyEndAllowThreads(__tstate); | |
27242 | if (PyErr_Occurred()) SWIG_fail; | |
27243 | } | |
27244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
27245 | return resultobj; | |
27246 | fail: | |
27247 | return NULL; | |
27248 | } | |
27249 | ||
27250 | ||
c32bde28 | 27251 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27252 | PyObject *resultobj; |
27253 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27254 | PyObject *result; | |
27255 | PyObject * obj0 = 0 ; | |
27256 | char *kwnames[] = { | |
27257 | (char *) "self", NULL | |
27258 | }; | |
27259 | ||
27260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27263 | { |
27264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27265 | result = (PyObject *)(arg1)->GetData(); | |
27266 | ||
27267 | wxPyEndAllowThreads(__tstate); | |
27268 | if (PyErr_Occurred()) SWIG_fail; | |
27269 | } | |
27270 | resultobj = result; | |
27271 | return resultobj; | |
27272 | fail: | |
27273 | return NULL; | |
27274 | } | |
27275 | ||
27276 | ||
c32bde28 | 27277 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27278 | PyObject *resultobj; |
27279 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27280 | PyObject *arg2 = (PyObject *) 0 ; | |
27281 | PyObject * obj0 = 0 ; | |
27282 | PyObject * obj1 = 0 ; | |
27283 | char *kwnames[] = { | |
27284 | (char *) "self",(char *) "obj", NULL | |
27285 | }; | |
27286 | ||
27287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27288 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27289 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27290 | arg2 = obj1; |
27291 | { | |
27292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27293 | (arg1)->SetData(arg2); | |
27294 | ||
27295 | wxPyEndAllowThreads(__tstate); | |
27296 | if (PyErr_Occurred()) SWIG_fail; | |
27297 | } | |
27298 | Py_INCREF(Py_None); resultobj = Py_None; | |
27299 | return resultobj; | |
27300 | fail: | |
27301 | return NULL; | |
27302 | } | |
27303 | ||
27304 | ||
c32bde28 | 27305 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27306 | PyObject *resultobj; |
27307 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27308 | wxTreeItemId *result; | |
27309 | PyObject * obj0 = 0 ; | |
27310 | char *kwnames[] = { | |
27311 | (char *) "self", NULL | |
27312 | }; | |
27313 | ||
27314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27317 | { |
27318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27319 | { | |
27320 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
27321 | result = (wxTreeItemId *) &_result_ref; | |
27322 | } | |
27323 | ||
27324 | wxPyEndAllowThreads(__tstate); | |
27325 | if (PyErr_Occurred()) SWIG_fail; | |
27326 | } | |
27327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
27328 | return resultobj; | |
27329 | fail: | |
27330 | return NULL; | |
27331 | } | |
27332 | ||
27333 | ||
c32bde28 | 27334 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27335 | PyObject *resultobj; |
27336 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27337 | wxTreeItemId *arg2 = 0 ; | |
27338 | PyObject * obj0 = 0 ; | |
27339 | PyObject * obj1 = 0 ; | |
27340 | char *kwnames[] = { | |
27341 | (char *) "self",(char *) "id", NULL | |
27342 | }; | |
27343 | ||
27344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27347 | { | |
27348 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27349 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27350 | if (arg2 == NULL) { | |
27351 | SWIG_null_ref("wxTreeItemId"); | |
27352 | } | |
27353 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27354 | } |
27355 | { | |
27356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27357 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
27358 | ||
27359 | wxPyEndAllowThreads(__tstate); | |
27360 | if (PyErr_Occurred()) SWIG_fail; | |
27361 | } | |
27362 | Py_INCREF(Py_None); resultobj = Py_None; | |
27363 | return resultobj; | |
27364 | fail: | |
27365 | return NULL; | |
27366 | } | |
27367 | ||
27368 | ||
c32bde28 | 27369 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27370 | PyObject *resultobj; |
27371 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27372 | PyObject * obj0 = 0 ; | |
27373 | char *kwnames[] = { | |
27374 | (char *) "self", NULL | |
27375 | }; | |
27376 | ||
27377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27380 | { |
27381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27382 | wxPyTreeItemData_Destroy(arg1); | |
27383 | ||
27384 | wxPyEndAllowThreads(__tstate); | |
27385 | if (PyErr_Occurred()) SWIG_fail; | |
27386 | } | |
27387 | Py_INCREF(Py_None); resultobj = Py_None; | |
27388 | return resultobj; | |
27389 | fail: | |
27390 | return NULL; | |
27391 | } | |
27392 | ||
27393 | ||
c32bde28 | 27394 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27395 | PyObject *obj; |
27396 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27397 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
27398 | Py_INCREF(obj); | |
27399 | return Py_BuildValue((char *)""); | |
27400 | } | |
c32bde28 | 27401 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27402 | PyObject *resultobj; |
27403 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
27404 | int arg2 = (int) 0 ; | |
27405 | wxTreeEvent *result; | |
27406 | PyObject * obj0 = 0 ; | |
27407 | PyObject * obj1 = 0 ; | |
27408 | char *kwnames[] = { | |
27409 | (char *) "commandType",(char *) "id", NULL | |
27410 | }; | |
27411 | ||
27412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
27413 | if (obj0) { | |
093d3ff1 RD |
27414 | { |
27415 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
27416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27417 | } | |
d55e5bfc RD |
27418 | } |
27419 | if (obj1) { | |
093d3ff1 RD |
27420 | { |
27421 | arg2 = (int)(SWIG_As_int(obj1)); | |
27422 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27423 | } | |
d55e5bfc RD |
27424 | } |
27425 | { | |
27426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27427 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
27428 | ||
27429 | wxPyEndAllowThreads(__tstate); | |
27430 | if (PyErr_Occurred()) SWIG_fail; | |
27431 | } | |
27432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
27433 | return resultobj; | |
27434 | fail: | |
27435 | return NULL; | |
27436 | } | |
27437 | ||
27438 | ||
c32bde28 | 27439 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27440 | PyObject *resultobj; |
27441 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27442 | wxTreeItemId result; | |
27443 | PyObject * obj0 = 0 ; | |
27444 | char *kwnames[] = { | |
27445 | (char *) "self", NULL | |
27446 | }; | |
27447 | ||
27448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27451 | { |
27452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27453 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
27454 | ||
27455 | wxPyEndAllowThreads(__tstate); | |
27456 | if (PyErr_Occurred()) SWIG_fail; | |
27457 | } | |
27458 | { | |
27459 | wxTreeItemId * resultptr; | |
093d3ff1 | 27460 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
27461 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
27462 | } | |
27463 | return resultobj; | |
27464 | fail: | |
27465 | return NULL; | |
27466 | } | |
27467 | ||
27468 | ||
c32bde28 | 27469 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27470 | PyObject *resultobj; |
27471 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27472 | wxTreeItemId *arg2 = 0 ; | |
27473 | PyObject * obj0 = 0 ; | |
27474 | PyObject * obj1 = 0 ; | |
27475 | char *kwnames[] = { | |
27476 | (char *) "self",(char *) "item", NULL | |
27477 | }; | |
27478 | ||
27479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27482 | { | |
27483 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27484 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27485 | if (arg2 == NULL) { | |
27486 | SWIG_null_ref("wxTreeItemId"); | |
27487 | } | |
27488 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27489 | } |
27490 | { | |
27491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27492 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
27493 | ||
27494 | wxPyEndAllowThreads(__tstate); | |
27495 | if (PyErr_Occurred()) SWIG_fail; | |
27496 | } | |
27497 | Py_INCREF(Py_None); resultobj = Py_None; | |
27498 | return resultobj; | |
27499 | fail: | |
27500 | return NULL; | |
27501 | } | |
27502 | ||
27503 | ||
c32bde28 | 27504 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27505 | PyObject *resultobj; |
27506 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27507 | wxTreeItemId result; | |
27508 | PyObject * obj0 = 0 ; | |
27509 | char *kwnames[] = { | |
27510 | (char *) "self", NULL | |
27511 | }; | |
27512 | ||
27513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27516 | { |
27517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27518 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
27519 | ||
27520 | wxPyEndAllowThreads(__tstate); | |
27521 | if (PyErr_Occurred()) SWIG_fail; | |
27522 | } | |
27523 | { | |
27524 | wxTreeItemId * resultptr; | |
093d3ff1 | 27525 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
27526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
27527 | } | |
27528 | return resultobj; | |
27529 | fail: | |
27530 | return NULL; | |
27531 | } | |
27532 | ||
27533 | ||
c32bde28 | 27534 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27535 | PyObject *resultobj; |
27536 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27537 | wxTreeItemId *arg2 = 0 ; | |
27538 | PyObject * obj0 = 0 ; | |
27539 | PyObject * obj1 = 0 ; | |
27540 | char *kwnames[] = { | |
27541 | (char *) "self",(char *) "item", NULL | |
27542 | }; | |
27543 | ||
27544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27547 | { | |
27548 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27550 | if (arg2 == NULL) { | |
27551 | SWIG_null_ref("wxTreeItemId"); | |
27552 | } | |
27553 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27554 | } |
27555 | { | |
27556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27557 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
27558 | ||
27559 | wxPyEndAllowThreads(__tstate); | |
27560 | if (PyErr_Occurred()) SWIG_fail; | |
27561 | } | |
27562 | Py_INCREF(Py_None); resultobj = Py_None; | |
27563 | return resultobj; | |
27564 | fail: | |
27565 | return NULL; | |
27566 | } | |
27567 | ||
27568 | ||
c32bde28 | 27569 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27570 | PyObject *resultobj; |
27571 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27572 | wxPoint result; | |
27573 | PyObject * obj0 = 0 ; | |
27574 | char *kwnames[] = { | |
27575 | (char *) "self", NULL | |
27576 | }; | |
27577 | ||
27578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27581 | { |
27582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27583 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
27584 | ||
27585 | wxPyEndAllowThreads(__tstate); | |
27586 | if (PyErr_Occurred()) SWIG_fail; | |
27587 | } | |
27588 | { | |
27589 | wxPoint * resultptr; | |
093d3ff1 | 27590 | resultptr = new wxPoint((wxPoint &)(result)); |
d55e5bfc RD |
27591 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
27592 | } | |
27593 | return resultobj; | |
27594 | fail: | |
27595 | return NULL; | |
27596 | } | |
27597 | ||
27598 | ||
c32bde28 | 27599 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27600 | PyObject *resultobj; |
27601 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27602 | wxPoint *arg2 = 0 ; | |
27603 | wxPoint temp2 ; | |
27604 | PyObject * obj0 = 0 ; | |
27605 | PyObject * obj1 = 0 ; | |
27606 | char *kwnames[] = { | |
27607 | (char *) "self",(char *) "pt", NULL | |
27608 | }; | |
27609 | ||
27610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27611 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27612 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27613 | { |
27614 | arg2 = &temp2; | |
27615 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27616 | } | |
27617 | { | |
27618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27619 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
27620 | ||
27621 | wxPyEndAllowThreads(__tstate); | |
27622 | if (PyErr_Occurred()) SWIG_fail; | |
27623 | } | |
27624 | Py_INCREF(Py_None); resultobj = Py_None; | |
27625 | return resultobj; | |
27626 | fail: | |
27627 | return NULL; | |
27628 | } | |
27629 | ||
27630 | ||
c32bde28 | 27631 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27632 | PyObject *resultobj; |
27633 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27634 | wxKeyEvent *result; | |
27635 | PyObject * obj0 = 0 ; | |
27636 | char *kwnames[] = { | |
27637 | (char *) "self", NULL | |
27638 | }; | |
27639 | ||
27640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27643 | { |
27644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27645 | { | |
27646 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
27647 | result = (wxKeyEvent *) &_result_ref; | |
27648 | } | |
27649 | ||
27650 | wxPyEndAllowThreads(__tstate); | |
27651 | if (PyErr_Occurred()) SWIG_fail; | |
27652 | } | |
27653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
27654 | return resultobj; | |
27655 | fail: | |
27656 | return NULL; | |
27657 | } | |
27658 | ||
27659 | ||
c32bde28 | 27660 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27661 | PyObject *resultobj; |
27662 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27663 | int result; | |
27664 | PyObject * obj0 = 0 ; | |
27665 | char *kwnames[] = { | |
27666 | (char *) "self", NULL | |
27667 | }; | |
27668 | ||
27669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27672 | { |
27673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27674 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
27675 | ||
27676 | wxPyEndAllowThreads(__tstate); | |
27677 | if (PyErr_Occurred()) SWIG_fail; | |
27678 | } | |
093d3ff1 RD |
27679 | { |
27680 | resultobj = SWIG_From_int((int)(result)); | |
27681 | } | |
d55e5bfc RD |
27682 | return resultobj; |
27683 | fail: | |
27684 | return NULL; | |
27685 | } | |
27686 | ||
27687 | ||
c32bde28 | 27688 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27689 | PyObject *resultobj; |
27690 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27691 | wxKeyEvent *arg2 = 0 ; | |
27692 | PyObject * obj0 = 0 ; | |
27693 | PyObject * obj1 = 0 ; | |
27694 | char *kwnames[] = { | |
27695 | (char *) "self",(char *) "evt", NULL | |
27696 | }; | |
27697 | ||
27698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27701 | { | |
27702 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
27703 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27704 | if (arg2 == NULL) { | |
27705 | SWIG_null_ref("wxKeyEvent"); | |
27706 | } | |
27707 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
27708 | } |
27709 | { | |
27710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27711 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
27712 | ||
27713 | wxPyEndAllowThreads(__tstate); | |
27714 | if (PyErr_Occurred()) SWIG_fail; | |
27715 | } | |
27716 | Py_INCREF(Py_None); resultobj = Py_None; | |
27717 | return resultobj; | |
27718 | fail: | |
27719 | return NULL; | |
27720 | } | |
27721 | ||
27722 | ||
c32bde28 | 27723 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27724 | PyObject *resultobj; |
27725 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27726 | wxString *result; | |
27727 | PyObject * obj0 = 0 ; | |
27728 | char *kwnames[] = { | |
27729 | (char *) "self", NULL | |
27730 | }; | |
27731 | ||
27732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27735 | { |
27736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27737 | { | |
27738 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
27739 | result = (wxString *) &_result_ref; | |
27740 | } | |
27741 | ||
27742 | wxPyEndAllowThreads(__tstate); | |
27743 | if (PyErr_Occurred()) SWIG_fail; | |
27744 | } | |
27745 | { | |
27746 | #if wxUSE_UNICODE | |
27747 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27748 | #else | |
27749 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27750 | #endif | |
27751 | } | |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
c32bde28 | 27758 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27759 | PyObject *resultobj; |
27760 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27761 | wxString *arg2 = 0 ; | |
ae8162c8 | 27762 | bool temp2 = false ; |
d55e5bfc RD |
27763 | PyObject * obj0 = 0 ; |
27764 | PyObject * obj1 = 0 ; | |
27765 | char *kwnames[] = { | |
27766 | (char *) "self",(char *) "label", NULL | |
27767 | }; | |
27768 | ||
27769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27772 | { |
27773 | arg2 = wxString_in_helper(obj1); | |
27774 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27775 | temp2 = true; |
d55e5bfc RD |
27776 | } |
27777 | { | |
27778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27779 | (arg1)->SetLabel((wxString const &)*arg2); | |
27780 | ||
27781 | wxPyEndAllowThreads(__tstate); | |
27782 | if (PyErr_Occurred()) SWIG_fail; | |
27783 | } | |
27784 | Py_INCREF(Py_None); resultobj = Py_None; | |
27785 | { | |
27786 | if (temp2) | |
27787 | delete arg2; | |
27788 | } | |
27789 | return resultobj; | |
27790 | fail: | |
27791 | { | |
27792 | if (temp2) | |
27793 | delete arg2; | |
27794 | } | |
27795 | return NULL; | |
27796 | } | |
27797 | ||
27798 | ||
c32bde28 | 27799 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27800 | PyObject *resultobj; |
27801 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27802 | bool result; | |
27803 | PyObject * obj0 = 0 ; | |
27804 | char *kwnames[] = { | |
27805 | (char *) "self", NULL | |
27806 | }; | |
27807 | ||
27808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27811 | { |
27812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27813 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
27814 | ||
27815 | wxPyEndAllowThreads(__tstate); | |
27816 | if (PyErr_Occurred()) SWIG_fail; | |
27817 | } | |
27818 | { | |
27819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27820 | } | |
27821 | return resultobj; | |
27822 | fail: | |
27823 | return NULL; | |
27824 | } | |
27825 | ||
27826 | ||
c32bde28 | 27827 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27828 | PyObject *resultobj; |
27829 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27830 | bool arg2 ; | |
27831 | PyObject * obj0 = 0 ; | |
27832 | PyObject * obj1 = 0 ; | |
27833 | char *kwnames[] = { | |
27834 | (char *) "self",(char *) "editCancelled", NULL | |
27835 | }; | |
27836 | ||
27837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27840 | { | |
27841 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27842 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27843 | } | |
d55e5bfc RD |
27844 | { |
27845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27846 | (arg1)->SetEditCanceled(arg2); | |
27847 | ||
27848 | wxPyEndAllowThreads(__tstate); | |
27849 | if (PyErr_Occurred()) SWIG_fail; | |
27850 | } | |
27851 | Py_INCREF(Py_None); resultobj = Py_None; | |
27852 | return resultobj; | |
27853 | fail: | |
27854 | return NULL; | |
27855 | } | |
27856 | ||
27857 | ||
c32bde28 | 27858 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27859 | PyObject *resultobj; |
27860 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27861 | wxString *arg2 = 0 ; | |
ae8162c8 | 27862 | bool temp2 = false ; |
d55e5bfc RD |
27863 | PyObject * obj0 = 0 ; |
27864 | PyObject * obj1 = 0 ; | |
27865 | char *kwnames[] = { | |
27866 | (char *) "self",(char *) "toolTip", NULL | |
27867 | }; | |
27868 | ||
27869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
27872 | { |
27873 | arg2 = wxString_in_helper(obj1); | |
27874 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27875 | temp2 = true; |
d55e5bfc RD |
27876 | } |
27877 | { | |
27878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27879 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27880 | ||
27881 | wxPyEndAllowThreads(__tstate); | |
27882 | if (PyErr_Occurred()) SWIG_fail; | |
27883 | } | |
27884 | Py_INCREF(Py_None); resultobj = Py_None; | |
27885 | { | |
27886 | if (temp2) | |
27887 | delete arg2; | |
27888 | } | |
27889 | return resultobj; | |
27890 | fail: | |
27891 | { | |
27892 | if (temp2) | |
27893 | delete arg2; | |
27894 | } | |
27895 | return NULL; | |
27896 | } | |
27897 | ||
27898 | ||
dcb8fc74 RD |
27899 | static PyObject *_wrap_TreeEvent_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
27900 | PyObject *resultobj; | |
27901 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27902 | wxString result; | |
27903 | PyObject * obj0 = 0 ; | |
27904 | char *kwnames[] = { | |
27905 | (char *) "self", NULL | |
27906 | }; | |
27907 | ||
27908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetToolTip",kwnames,&obj0)) goto fail; | |
27909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27911 | { | |
27912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27913 | result = (arg1)->GetToolTip(); | |
27914 | ||
27915 | wxPyEndAllowThreads(__tstate); | |
27916 | if (PyErr_Occurred()) SWIG_fail; | |
27917 | } | |
27918 | { | |
27919 | #if wxUSE_UNICODE | |
27920 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27921 | #else | |
27922 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27923 | #endif | |
27924 | } | |
27925 | return resultobj; | |
27926 | fail: | |
27927 | return NULL; | |
27928 | } | |
27929 | ||
27930 | ||
c32bde28 | 27931 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
27932 | PyObject *obj; |
27933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27934 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
27935 | Py_INCREF(obj); | |
27936 | return Py_BuildValue((char *)""); | |
27937 | } | |
c32bde28 | 27938 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27939 | PyObject *resultobj; |
27940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27941 | int arg2 = (int) -1 ; | |
27942 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
27943 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27944 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27945 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27946 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
27947 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27948 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27949 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
27950 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27951 | wxPyTreeCtrl *result; | |
27952 | wxPoint temp3 ; | |
27953 | wxSize temp4 ; | |
ae8162c8 | 27954 | bool temp7 = false ; |
d55e5bfc RD |
27955 | PyObject * obj0 = 0 ; |
27956 | PyObject * obj1 = 0 ; | |
27957 | PyObject * obj2 = 0 ; | |
27958 | PyObject * obj3 = 0 ; | |
27959 | PyObject * obj4 = 0 ; | |
27960 | PyObject * obj5 = 0 ; | |
27961 | PyObject * obj6 = 0 ; | |
27962 | char *kwnames[] = { | |
27963 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27964 | }; | |
27965 | ||
27966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
27967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 27969 | if (obj1) { |
093d3ff1 RD |
27970 | { |
27971 | arg2 = (int)(SWIG_As_int(obj1)); | |
27972 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27973 | } | |
d55e5bfc RD |
27974 | } |
27975 | if (obj2) { | |
27976 | { | |
27977 | arg3 = &temp3; | |
27978 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27979 | } | |
27980 | } | |
27981 | if (obj3) { | |
27982 | { | |
27983 | arg4 = &temp4; | |
27984 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27985 | } | |
27986 | } | |
27987 | if (obj4) { | |
093d3ff1 RD |
27988 | { |
27989 | arg5 = (long)(SWIG_As_long(obj4)); | |
27990 | if (SWIG_arg_fail(5)) SWIG_fail; | |
27991 | } | |
d55e5bfc RD |
27992 | } |
27993 | if (obj5) { | |
093d3ff1 RD |
27994 | { |
27995 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
27996 | if (SWIG_arg_fail(6)) SWIG_fail; | |
27997 | if (arg6 == NULL) { | |
27998 | SWIG_null_ref("wxValidator"); | |
27999 | } | |
28000 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
28001 | } |
28002 | } | |
28003 | if (obj6) { | |
28004 | { | |
28005 | arg7 = wxString_in_helper(obj6); | |
28006 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 28007 | temp7 = true; |
d55e5bfc RD |
28008 | } |
28009 | } | |
28010 | { | |
0439c23b | 28011 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28013 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28014 | ||
28015 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28016 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 28017 | } |
b0f7404b | 28018 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
28019 | { |
28020 | if (temp7) | |
28021 | delete arg7; | |
28022 | } | |
28023 | return resultobj; | |
28024 | fail: | |
28025 | { | |
28026 | if (temp7) | |
28027 | delete arg7; | |
28028 | } | |
28029 | return NULL; | |
28030 | } | |
28031 | ||
28032 | ||
c32bde28 | 28033 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28034 | PyObject *resultobj; |
28035 | wxPyTreeCtrl *result; | |
28036 | char *kwnames[] = { | |
28037 | NULL | |
28038 | }; | |
28039 | ||
28040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
28041 | { | |
0439c23b | 28042 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28044 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
28045 | ||
28046 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28047 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 28048 | } |
b0f7404b | 28049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
28050 | return resultobj; |
28051 | fail: | |
28052 | return NULL; | |
28053 | } | |
28054 | ||
28055 | ||
c32bde28 | 28056 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28057 | PyObject *resultobj; |
28058 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28059 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28060 | int arg3 = (int) -1 ; | |
28061 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28062 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28063 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28064 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28065 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
28066 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28067 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
28068 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
28069 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28070 | bool result; | |
28071 | wxPoint temp4 ; | |
28072 | wxSize temp5 ; | |
ae8162c8 | 28073 | bool temp8 = false ; |
d55e5bfc RD |
28074 | PyObject * obj0 = 0 ; |
28075 | PyObject * obj1 = 0 ; | |
28076 | PyObject * obj2 = 0 ; | |
28077 | PyObject * obj3 = 0 ; | |
28078 | PyObject * obj4 = 0 ; | |
28079 | PyObject * obj5 = 0 ; | |
28080 | PyObject * obj6 = 0 ; | |
28081 | PyObject * obj7 = 0 ; | |
28082 | char *kwnames[] = { | |
28083 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28084 | }; | |
28085 | ||
28086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
093d3ff1 RD |
28087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28089 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28090 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 28091 | if (obj2) { |
093d3ff1 RD |
28092 | { |
28093 | arg3 = (int)(SWIG_As_int(obj2)); | |
28094 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28095 | } | |
d55e5bfc RD |
28096 | } |
28097 | if (obj3) { | |
28098 | { | |
28099 | arg4 = &temp4; | |
28100 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28101 | } | |
28102 | } | |
28103 | if (obj4) { | |
28104 | { | |
28105 | arg5 = &temp5; | |
28106 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28107 | } | |
28108 | } | |
28109 | if (obj5) { | |
093d3ff1 RD |
28110 | { |
28111 | arg6 = (long)(SWIG_As_long(obj5)); | |
28112 | if (SWIG_arg_fail(6)) SWIG_fail; | |
28113 | } | |
d55e5bfc RD |
28114 | } |
28115 | if (obj6) { | |
093d3ff1 RD |
28116 | { |
28117 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28118 | if (SWIG_arg_fail(7)) SWIG_fail; | |
28119 | if (arg7 == NULL) { | |
28120 | SWIG_null_ref("wxValidator"); | |
28121 | } | |
28122 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
28123 | } |
28124 | } | |
28125 | if (obj7) { | |
28126 | { | |
28127 | arg8 = wxString_in_helper(obj7); | |
28128 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 28129 | temp8 = true; |
d55e5bfc RD |
28130 | } |
28131 | } | |
28132 | { | |
28133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28134 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28135 | ||
28136 | wxPyEndAllowThreads(__tstate); | |
28137 | if (PyErr_Occurred()) SWIG_fail; | |
28138 | } | |
28139 | { | |
28140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28141 | } | |
28142 | { | |
28143 | if (temp8) | |
28144 | delete arg8; | |
28145 | } | |
28146 | return resultobj; | |
28147 | fail: | |
28148 | { | |
28149 | if (temp8) | |
28150 | delete arg8; | |
28151 | } | |
28152 | return NULL; | |
28153 | } | |
28154 | ||
28155 | ||
c32bde28 | 28156 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28157 | PyObject *resultobj; |
28158 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28159 | PyObject *arg2 = (PyObject *) 0 ; | |
28160 | PyObject *arg3 = (PyObject *) 0 ; | |
28161 | PyObject * obj0 = 0 ; | |
28162 | PyObject * obj1 = 0 ; | |
28163 | PyObject * obj2 = 0 ; | |
28164 | char *kwnames[] = { | |
28165 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28166 | }; | |
28167 | ||
28168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28171 | arg2 = obj1; |
28172 | arg3 = obj2; | |
28173 | { | |
28174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28175 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28176 | ||
28177 | wxPyEndAllowThreads(__tstate); | |
28178 | if (PyErr_Occurred()) SWIG_fail; | |
28179 | } | |
28180 | Py_INCREF(Py_None); resultobj = Py_None; | |
28181 | return resultobj; | |
28182 | fail: | |
28183 | return NULL; | |
28184 | } | |
28185 | ||
28186 | ||
c32bde28 | 28187 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28188 | PyObject *resultobj; |
28189 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28190 | size_t result; | |
28191 | PyObject * obj0 = 0 ; | |
28192 | char *kwnames[] = { | |
28193 | (char *) "self", NULL | |
28194 | }; | |
28195 | ||
28196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28199 | { |
28200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28201 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
28202 | ||
28203 | wxPyEndAllowThreads(__tstate); | |
28204 | if (PyErr_Occurred()) SWIG_fail; | |
28205 | } | |
093d3ff1 RD |
28206 | { |
28207 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
28208 | } | |
d55e5bfc RD |
28209 | return resultobj; |
28210 | fail: | |
28211 | return NULL; | |
28212 | } | |
28213 | ||
28214 | ||
c32bde28 | 28215 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28216 | PyObject *resultobj; |
28217 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28218 | unsigned int result; | |
28219 | PyObject * obj0 = 0 ; | |
28220 | char *kwnames[] = { | |
28221 | (char *) "self", NULL | |
28222 | }; | |
28223 | ||
28224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28227 | { |
28228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28229 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
28230 | ||
28231 | wxPyEndAllowThreads(__tstate); | |
28232 | if (PyErr_Occurred()) SWIG_fail; | |
28233 | } | |
093d3ff1 RD |
28234 | { |
28235 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28236 | } | |
d55e5bfc RD |
28237 | return resultobj; |
28238 | fail: | |
28239 | return NULL; | |
28240 | } | |
28241 | ||
28242 | ||
c32bde28 | 28243 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28244 | PyObject *resultobj; |
28245 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28246 | unsigned int arg2 ; | |
28247 | PyObject * obj0 = 0 ; | |
28248 | PyObject * obj1 = 0 ; | |
28249 | char *kwnames[] = { | |
28250 | (char *) "self",(char *) "indent", NULL | |
28251 | }; | |
28252 | ||
28253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28256 | { | |
28257 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28259 | } | |
d55e5bfc RD |
28260 | { |
28261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28262 | (arg1)->SetIndent(arg2); | |
28263 | ||
28264 | wxPyEndAllowThreads(__tstate); | |
28265 | if (PyErr_Occurred()) SWIG_fail; | |
28266 | } | |
28267 | Py_INCREF(Py_None); resultobj = Py_None; | |
28268 | return resultobj; | |
28269 | fail: | |
28270 | return NULL; | |
28271 | } | |
28272 | ||
28273 | ||
c32bde28 | 28274 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28275 | PyObject *resultobj; |
28276 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28277 | unsigned int result; | |
28278 | PyObject * obj0 = 0 ; | |
28279 | char *kwnames[] = { | |
28280 | (char *) "self", NULL | |
28281 | }; | |
28282 | ||
28283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28286 | { |
28287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28288 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
28289 | ||
28290 | wxPyEndAllowThreads(__tstate); | |
28291 | if (PyErr_Occurred()) SWIG_fail; | |
28292 | } | |
093d3ff1 RD |
28293 | { |
28294 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28295 | } | |
d55e5bfc RD |
28296 | return resultobj; |
28297 | fail: | |
28298 | return NULL; | |
28299 | } | |
28300 | ||
28301 | ||
c32bde28 | 28302 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28303 | PyObject *resultobj; |
28304 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28305 | unsigned int arg2 ; | |
28306 | PyObject * obj0 = 0 ; | |
28307 | PyObject * obj1 = 0 ; | |
28308 | char *kwnames[] = { | |
28309 | (char *) "self",(char *) "spacing", NULL | |
28310 | }; | |
28311 | ||
28312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28315 | { | |
28316 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28317 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28318 | } | |
d55e5bfc RD |
28319 | { |
28320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28321 | (arg1)->SetSpacing(arg2); | |
28322 | ||
28323 | wxPyEndAllowThreads(__tstate); | |
28324 | if (PyErr_Occurred()) SWIG_fail; | |
28325 | } | |
28326 | Py_INCREF(Py_None); resultobj = Py_None; | |
28327 | return resultobj; | |
28328 | fail: | |
28329 | return NULL; | |
28330 | } | |
28331 | ||
28332 | ||
c32bde28 | 28333 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28334 | PyObject *resultobj; |
28335 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28336 | wxImageList *result; | |
28337 | PyObject * obj0 = 0 ; | |
28338 | char *kwnames[] = { | |
28339 | (char *) "self", NULL | |
28340 | }; | |
28341 | ||
28342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28345 | { |
28346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28347 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
28348 | ||
28349 | wxPyEndAllowThreads(__tstate); | |
28350 | if (PyErr_Occurred()) SWIG_fail; | |
28351 | } | |
28352 | { | |
412d302d | 28353 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28354 | } |
28355 | return resultobj; | |
28356 | fail: | |
28357 | return NULL; | |
28358 | } | |
28359 | ||
28360 | ||
c32bde28 | 28361 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28362 | PyObject *resultobj; |
28363 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28364 | wxImageList *result; | |
28365 | PyObject * obj0 = 0 ; | |
28366 | char *kwnames[] = { | |
28367 | (char *) "self", NULL | |
28368 | }; | |
28369 | ||
28370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
28373 | { |
28374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28375 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
28376 | ||
28377 | wxPyEndAllowThreads(__tstate); | |
28378 | if (PyErr_Occurred()) SWIG_fail; | |
28379 | } | |
28380 | { | |
412d302d | 28381 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28382 | } |
28383 | return resultobj; | |
28384 | fail: | |
28385 | return NULL; | |
28386 | } | |
28387 | ||
28388 | ||
c32bde28 | 28389 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28390 | PyObject *resultobj; |
28391 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28392 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28393 | PyObject * obj0 = 0 ; | |
28394 | PyObject * obj1 = 0 ; | |
28395 | char *kwnames[] = { | |
28396 | (char *) "self",(char *) "imageList", NULL | |
28397 | }; | |
28398 | ||
28399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28402 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28403 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28404 | { |
28405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28406 | (arg1)->SetImageList(arg2); | |
28407 | ||
28408 | wxPyEndAllowThreads(__tstate); | |
28409 | if (PyErr_Occurred()) SWIG_fail; | |
28410 | } | |
28411 | Py_INCREF(Py_None); resultobj = Py_None; | |
28412 | return resultobj; | |
28413 | fail: | |
28414 | return NULL; | |
28415 | } | |
28416 | ||
28417 | ||
c32bde28 | 28418 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28419 | PyObject *resultobj; |
28420 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28421 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28422 | PyObject * obj0 = 0 ; | |
28423 | PyObject * obj1 = 0 ; | |
28424 | char *kwnames[] = { | |
28425 | (char *) "self",(char *) "imageList", NULL | |
28426 | }; | |
28427 | ||
28428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28431 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28432 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28433 | { |
28434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28435 | (arg1)->SetStateImageList(arg2); | |
28436 | ||
28437 | wxPyEndAllowThreads(__tstate); | |
28438 | if (PyErr_Occurred()) SWIG_fail; | |
28439 | } | |
28440 | Py_INCREF(Py_None); resultobj = Py_None; | |
28441 | return resultobj; | |
28442 | fail: | |
28443 | return NULL; | |
28444 | } | |
28445 | ||
28446 | ||
c32bde28 | 28447 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28448 | PyObject *resultobj; |
28449 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28450 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28451 | PyObject * obj0 = 0 ; | |
28452 | PyObject * obj1 = 0 ; | |
28453 | char *kwnames[] = { | |
28454 | (char *) "self",(char *) "imageList", NULL | |
28455 | }; | |
28456 | ||
28457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28460 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28461 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28462 | { |
28463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28464 | (arg1)->AssignImageList(arg2); | |
28465 | ||
28466 | wxPyEndAllowThreads(__tstate); | |
28467 | if (PyErr_Occurred()) SWIG_fail; | |
28468 | } | |
28469 | Py_INCREF(Py_None); resultobj = Py_None; | |
28470 | return resultobj; | |
28471 | fail: | |
28472 | return NULL; | |
28473 | } | |
28474 | ||
28475 | ||
c32bde28 | 28476 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28477 | PyObject *resultobj; |
28478 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28479 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28480 | PyObject * obj0 = 0 ; | |
28481 | PyObject * obj1 = 0 ; | |
28482 | char *kwnames[] = { | |
28483 | (char *) "self",(char *) "imageList", NULL | |
28484 | }; | |
28485 | ||
28486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28487 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28488 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28489 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28490 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28491 | { |
28492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28493 | (arg1)->AssignStateImageList(arg2); | |
28494 | ||
28495 | wxPyEndAllowThreads(__tstate); | |
28496 | if (PyErr_Occurred()) SWIG_fail; | |
28497 | } | |
28498 | Py_INCREF(Py_None); resultobj = Py_None; | |
28499 | return resultobj; | |
28500 | fail: | |
28501 | return NULL; | |
28502 | } | |
28503 | ||
28504 | ||
c32bde28 | 28505 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28506 | PyObject *resultobj; |
28507 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28508 | wxTreeItemId *arg2 = 0 ; | |
28509 | wxString result; | |
28510 | PyObject * obj0 = 0 ; | |
28511 | PyObject * obj1 = 0 ; | |
28512 | char *kwnames[] = { | |
28513 | (char *) "self",(char *) "item", NULL | |
28514 | }; | |
28515 | ||
28516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28519 | { | |
28520 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28521 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28522 | if (arg2 == NULL) { | |
28523 | SWIG_null_ref("wxTreeItemId"); | |
28524 | } | |
28525 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28526 | } |
28527 | { | |
28528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28529 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
28530 | ||
28531 | wxPyEndAllowThreads(__tstate); | |
28532 | if (PyErr_Occurred()) SWIG_fail; | |
28533 | } | |
28534 | { | |
28535 | #if wxUSE_UNICODE | |
28536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28537 | #else | |
28538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28539 | #endif | |
28540 | } | |
28541 | return resultobj; | |
28542 | fail: | |
28543 | return NULL; | |
28544 | } | |
28545 | ||
28546 | ||
c32bde28 | 28547 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28548 | PyObject *resultobj; |
28549 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28550 | wxTreeItemId *arg2 = 0 ; | |
093d3ff1 | 28551 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d55e5bfc RD |
28552 | int result; |
28553 | PyObject * obj0 = 0 ; | |
28554 | PyObject * obj1 = 0 ; | |
28555 | PyObject * obj2 = 0 ; | |
28556 | char *kwnames[] = { | |
28557 | (char *) "self",(char *) "item",(char *) "which", NULL | |
28558 | }; | |
28559 | ||
28560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28563 | { | |
28564 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28565 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28566 | if (arg2 == NULL) { | |
28567 | SWIG_null_ref("wxTreeItemId"); | |
28568 | } | |
28569 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28570 | } |
28571 | if (obj2) { | |
093d3ff1 RD |
28572 | { |
28573 | arg3 = (wxTreeItemIcon)(SWIG_As_int(obj2)); | |
28574 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28575 | } | |
d55e5bfc RD |
28576 | } |
28577 | { | |
28578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28579 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
28580 | ||
28581 | wxPyEndAllowThreads(__tstate); | |
28582 | if (PyErr_Occurred()) SWIG_fail; | |
28583 | } | |
093d3ff1 RD |
28584 | { |
28585 | resultobj = SWIG_From_int((int)(result)); | |
28586 | } | |
d55e5bfc RD |
28587 | return resultobj; |
28588 | fail: | |
28589 | return NULL; | |
28590 | } | |
28591 | ||
28592 | ||
c32bde28 | 28593 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28594 | PyObject *resultobj; |
28595 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28596 | wxTreeItemId *arg2 = 0 ; | |
28597 | wxPyTreeItemData *result; | |
28598 | PyObject * obj0 = 0 ; | |
28599 | PyObject * obj1 = 0 ; | |
28600 | char *kwnames[] = { | |
28601 | (char *) "self",(char *) "item", NULL | |
28602 | }; | |
28603 | ||
28604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28607 | { | |
28608 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28609 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28610 | if (arg2 == NULL) { | |
28611 | SWIG_null_ref("wxTreeItemId"); | |
28612 | } | |
28613 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28614 | } |
28615 | { | |
28616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28617 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
28618 | ||
28619 | wxPyEndAllowThreads(__tstate); | |
28620 | if (PyErr_Occurred()) SWIG_fail; | |
28621 | } | |
28622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
28623 | return resultobj; | |
28624 | fail: | |
28625 | return NULL; | |
28626 | } | |
28627 | ||
28628 | ||
c32bde28 | 28629 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28630 | PyObject *resultobj; |
28631 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28632 | wxTreeItemId *arg2 = 0 ; | |
28633 | PyObject *result; | |
28634 | PyObject * obj0 = 0 ; | |
28635 | PyObject * obj1 = 0 ; | |
28636 | char *kwnames[] = { | |
28637 | (char *) "self",(char *) "item", NULL | |
28638 | }; | |
28639 | ||
28640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28643 | { | |
28644 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28645 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28646 | if (arg2 == NULL) { | |
28647 | SWIG_null_ref("wxTreeItemId"); | |
28648 | } | |
28649 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28650 | } |
28651 | { | |
28652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28653 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
28654 | ||
28655 | wxPyEndAllowThreads(__tstate); | |
28656 | if (PyErr_Occurred()) SWIG_fail; | |
28657 | } | |
28658 | resultobj = result; | |
28659 | return resultobj; | |
28660 | fail: | |
28661 | return NULL; | |
28662 | } | |
28663 | ||
28664 | ||
c32bde28 | 28665 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28666 | PyObject *resultobj; |
28667 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28668 | wxTreeItemId *arg2 = 0 ; | |
28669 | wxColour result; | |
28670 | PyObject * obj0 = 0 ; | |
28671 | PyObject * obj1 = 0 ; | |
28672 | char *kwnames[] = { | |
28673 | (char *) "self",(char *) "item", NULL | |
28674 | }; | |
28675 | ||
28676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28679 | { | |
28680 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28682 | if (arg2 == NULL) { | |
28683 | SWIG_null_ref("wxTreeItemId"); | |
28684 | } | |
28685 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28686 | } |
28687 | { | |
28688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28689 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
28690 | ||
28691 | wxPyEndAllowThreads(__tstate); | |
28692 | if (PyErr_Occurred()) SWIG_fail; | |
28693 | } | |
28694 | { | |
28695 | wxColour * resultptr; | |
093d3ff1 | 28696 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
28697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
28698 | } | |
28699 | return resultobj; | |
28700 | fail: | |
28701 | return NULL; | |
28702 | } | |
28703 | ||
28704 | ||
c32bde28 | 28705 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28706 | PyObject *resultobj; |
28707 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28708 | wxTreeItemId *arg2 = 0 ; | |
28709 | wxColour result; | |
28710 | PyObject * obj0 = 0 ; | |
28711 | PyObject * obj1 = 0 ; | |
28712 | char *kwnames[] = { | |
28713 | (char *) "self",(char *) "item", NULL | |
28714 | }; | |
28715 | ||
28716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28719 | { | |
28720 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28722 | if (arg2 == NULL) { | |
28723 | SWIG_null_ref("wxTreeItemId"); | |
28724 | } | |
28725 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28726 | } |
28727 | { | |
28728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28729 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
28730 | ||
28731 | wxPyEndAllowThreads(__tstate); | |
28732 | if (PyErr_Occurred()) SWIG_fail; | |
28733 | } | |
28734 | { | |
28735 | wxColour * resultptr; | |
093d3ff1 | 28736 | resultptr = new wxColour((wxColour &)(result)); |
d55e5bfc RD |
28737 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
28738 | } | |
28739 | return resultobj; | |
28740 | fail: | |
28741 | return NULL; | |
28742 | } | |
28743 | ||
28744 | ||
c32bde28 | 28745 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28746 | PyObject *resultobj; |
28747 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28748 | wxTreeItemId *arg2 = 0 ; | |
28749 | wxFont result; | |
28750 | PyObject * obj0 = 0 ; | |
28751 | PyObject * obj1 = 0 ; | |
28752 | char *kwnames[] = { | |
28753 | (char *) "self",(char *) "item", NULL | |
28754 | }; | |
28755 | ||
28756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28759 | { | |
28760 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28761 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28762 | if (arg2 == NULL) { | |
28763 | SWIG_null_ref("wxTreeItemId"); | |
28764 | } | |
28765 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28766 | } |
28767 | { | |
28768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28769 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
28770 | ||
28771 | wxPyEndAllowThreads(__tstate); | |
28772 | if (PyErr_Occurred()) SWIG_fail; | |
28773 | } | |
28774 | { | |
28775 | wxFont * resultptr; | |
093d3ff1 | 28776 | resultptr = new wxFont((wxFont &)(result)); |
d55e5bfc RD |
28777 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
28778 | } | |
28779 | return resultobj; | |
28780 | fail: | |
28781 | return NULL; | |
28782 | } | |
28783 | ||
28784 | ||
c32bde28 | 28785 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28786 | PyObject *resultobj; |
28787 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28788 | wxTreeItemId *arg2 = 0 ; | |
28789 | wxString *arg3 = 0 ; | |
ae8162c8 | 28790 | bool temp3 = false ; |
d55e5bfc RD |
28791 | PyObject * obj0 = 0 ; |
28792 | PyObject * obj1 = 0 ; | |
28793 | PyObject * obj2 = 0 ; | |
28794 | char *kwnames[] = { | |
28795 | (char *) "self",(char *) "item",(char *) "text", NULL | |
28796 | }; | |
28797 | ||
28798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28801 | { | |
28802 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28803 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28804 | if (arg2 == NULL) { | |
28805 | SWIG_null_ref("wxTreeItemId"); | |
28806 | } | |
28807 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28808 | } |
28809 | { | |
28810 | arg3 = wxString_in_helper(obj2); | |
28811 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 28812 | temp3 = true; |
d55e5bfc RD |
28813 | } |
28814 | { | |
28815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28816 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
28817 | ||
28818 | wxPyEndAllowThreads(__tstate); | |
28819 | if (PyErr_Occurred()) SWIG_fail; | |
28820 | } | |
28821 | Py_INCREF(Py_None); resultobj = Py_None; | |
28822 | { | |
28823 | if (temp3) | |
28824 | delete arg3; | |
28825 | } | |
28826 | return resultobj; | |
28827 | fail: | |
28828 | { | |
28829 | if (temp3) | |
28830 | delete arg3; | |
28831 | } | |
28832 | return NULL; | |
28833 | } | |
28834 | ||
28835 | ||
c32bde28 | 28836 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28837 | PyObject *resultobj; |
28838 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28839 | wxTreeItemId *arg2 = 0 ; | |
28840 | int arg3 ; | |
093d3ff1 | 28841 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d55e5bfc RD |
28842 | PyObject * obj0 = 0 ; |
28843 | PyObject * obj1 = 0 ; | |
28844 | PyObject * obj2 = 0 ; | |
28845 | PyObject * obj3 = 0 ; | |
28846 | char *kwnames[] = { | |
28847 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
28848 | }; | |
28849 | ||
28850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
28851 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28853 | { | |
28854 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28855 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28856 | if (arg2 == NULL) { | |
28857 | SWIG_null_ref("wxTreeItemId"); | |
28858 | } | |
28859 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28860 | } | |
28861 | { | |
28862 | arg3 = (int)(SWIG_As_int(obj2)); | |
28863 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28864 | } | |
d55e5bfc | 28865 | if (obj3) { |
093d3ff1 RD |
28866 | { |
28867 | arg4 = (wxTreeItemIcon)(SWIG_As_int(obj3)); | |
28868 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28869 | } | |
d55e5bfc RD |
28870 | } |
28871 | { | |
28872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28873 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
28874 | ||
28875 | wxPyEndAllowThreads(__tstate); | |
28876 | if (PyErr_Occurred()) SWIG_fail; | |
28877 | } | |
28878 | Py_INCREF(Py_None); resultobj = Py_None; | |
28879 | return resultobj; | |
28880 | fail: | |
28881 | return NULL; | |
28882 | } | |
28883 | ||
28884 | ||
c32bde28 | 28885 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28886 | PyObject *resultobj; |
28887 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28888 | wxTreeItemId *arg2 = 0 ; | |
28889 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
28890 | PyObject * obj0 = 0 ; | |
28891 | PyObject * obj1 = 0 ; | |
28892 | PyObject * obj2 = 0 ; | |
28893 | char *kwnames[] = { | |
28894 | (char *) "self",(char *) "item",(char *) "data", NULL | |
28895 | }; | |
28896 | ||
28897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28900 | { | |
28901 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28902 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28903 | if (arg2 == NULL) { | |
28904 | SWIG_null_ref("wxTreeItemId"); | |
28905 | } | |
28906 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 28907 | } |
093d3ff1 RD |
28908 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28909 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
28910 | { |
28911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28912 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28913 | ||
28914 | wxPyEndAllowThreads(__tstate); | |
28915 | if (PyErr_Occurred()) SWIG_fail; | |
28916 | } | |
28917 | Py_INCREF(Py_None); resultobj = Py_None; | |
28918 | return resultobj; | |
28919 | fail: | |
28920 | return NULL; | |
28921 | } | |
28922 | ||
28923 | ||
c32bde28 | 28924 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28925 | PyObject *resultobj; |
28926 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28927 | wxTreeItemId *arg2 = 0 ; | |
28928 | PyObject *arg3 = (PyObject *) 0 ; | |
28929 | PyObject * obj0 = 0 ; | |
28930 | PyObject * obj1 = 0 ; | |
28931 | PyObject * obj2 = 0 ; | |
28932 | char *kwnames[] = { | |
28933 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
28934 | }; | |
28935 | ||
28936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28939 | { | |
28940 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28941 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28942 | if (arg2 == NULL) { | |
28943 | SWIG_null_ref("wxTreeItemId"); | |
28944 | } | |
28945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28946 | } |
28947 | arg3 = obj2; | |
28948 | { | |
28949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28950 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28951 | ||
28952 | wxPyEndAllowThreads(__tstate); | |
28953 | if (PyErr_Occurred()) SWIG_fail; | |
28954 | } | |
28955 | Py_INCREF(Py_None); resultobj = Py_None; | |
28956 | return resultobj; | |
28957 | fail: | |
28958 | return NULL; | |
28959 | } | |
28960 | ||
28961 | ||
c32bde28 | 28962 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28963 | PyObject *resultobj; |
28964 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28965 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28966 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28967 | PyObject * obj0 = 0 ; |
28968 | PyObject * obj1 = 0 ; | |
28969 | PyObject * obj2 = 0 ; | |
28970 | char *kwnames[] = { | |
28971 | (char *) "self",(char *) "item",(char *) "has", NULL | |
28972 | }; | |
28973 | ||
28974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28975 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28976 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28977 | { | |
28978 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28979 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28980 | if (arg2 == NULL) { | |
28981 | SWIG_null_ref("wxTreeItemId"); | |
28982 | } | |
28983 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
28984 | } |
28985 | if (obj2) { | |
093d3ff1 RD |
28986 | { |
28987 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
28988 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28989 | } | |
d55e5bfc RD |
28990 | } |
28991 | { | |
28992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28993 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
28994 | ||
28995 | wxPyEndAllowThreads(__tstate); | |
28996 | if (PyErr_Occurred()) SWIG_fail; | |
28997 | } | |
28998 | Py_INCREF(Py_None); resultobj = Py_None; | |
28999 | return resultobj; | |
29000 | fail: | |
29001 | return NULL; | |
29002 | } | |
29003 | ||
29004 | ||
c32bde28 | 29005 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29006 | PyObject *resultobj; |
29007 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29008 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29009 | bool arg3 = (bool) true ; |
d55e5bfc RD |
29010 | PyObject * obj0 = 0 ; |
29011 | PyObject * obj1 = 0 ; | |
29012 | PyObject * obj2 = 0 ; | |
29013 | char *kwnames[] = { | |
29014 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
29015 | }; | |
29016 | ||
29017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29020 | { | |
29021 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29022 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29023 | if (arg2 == NULL) { | |
29024 | SWIG_null_ref("wxTreeItemId"); | |
29025 | } | |
29026 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29027 | } |
29028 | if (obj2) { | |
093d3ff1 RD |
29029 | { |
29030 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29031 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29032 | } | |
d55e5bfc RD |
29033 | } |
29034 | { | |
29035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29036 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
29037 | ||
29038 | wxPyEndAllowThreads(__tstate); | |
29039 | if (PyErr_Occurred()) SWIG_fail; | |
29040 | } | |
29041 | Py_INCREF(Py_None); resultobj = Py_None; | |
29042 | return resultobj; | |
29043 | fail: | |
29044 | return NULL; | |
29045 | } | |
29046 | ||
29047 | ||
c32bde28 | 29048 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29049 | PyObject *resultobj; |
29050 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29051 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29052 | bool arg3 = (bool) true ; |
d55e5bfc RD |
29053 | PyObject * obj0 = 0 ; |
29054 | PyObject * obj1 = 0 ; | |
29055 | PyObject * obj2 = 0 ; | |
29056 | char *kwnames[] = { | |
29057 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
29058 | }; | |
29059 | ||
29060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29063 | { | |
29064 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29065 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29066 | if (arg2 == NULL) { | |
29067 | SWIG_null_ref("wxTreeItemId"); | |
29068 | } | |
29069 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29070 | } |
29071 | if (obj2) { | |
093d3ff1 RD |
29072 | { |
29073 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29074 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29075 | } | |
d55e5bfc RD |
29076 | } |
29077 | { | |
29078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29079 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
29080 | ||
29081 | wxPyEndAllowThreads(__tstate); | |
29082 | if (PyErr_Occurred()) SWIG_fail; | |
29083 | } | |
29084 | Py_INCREF(Py_None); resultobj = Py_None; | |
29085 | return resultobj; | |
29086 | fail: | |
29087 | return NULL; | |
29088 | } | |
29089 | ||
29090 | ||
c32bde28 | 29091 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29092 | PyObject *resultobj; |
29093 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29094 | wxTreeItemId *arg2 = 0 ; | |
29095 | wxColour *arg3 = 0 ; | |
29096 | wxColour temp3 ; | |
29097 | PyObject * obj0 = 0 ; | |
29098 | PyObject * obj1 = 0 ; | |
29099 | PyObject * obj2 = 0 ; | |
29100 | char *kwnames[] = { | |
29101 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29102 | }; | |
29103 | ||
29104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29107 | { | |
29108 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29109 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29110 | if (arg2 == NULL) { | |
29111 | SWIG_null_ref("wxTreeItemId"); | |
29112 | } | |
29113 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29114 | } |
29115 | { | |
29116 | arg3 = &temp3; | |
29117 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29118 | } | |
29119 | { | |
29120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29121 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29122 | ||
29123 | wxPyEndAllowThreads(__tstate); | |
29124 | if (PyErr_Occurred()) SWIG_fail; | |
29125 | } | |
29126 | Py_INCREF(Py_None); resultobj = Py_None; | |
29127 | return resultobj; | |
29128 | fail: | |
29129 | return NULL; | |
29130 | } | |
29131 | ||
29132 | ||
c32bde28 | 29133 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29134 | PyObject *resultobj; |
29135 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29136 | wxTreeItemId *arg2 = 0 ; | |
29137 | wxColour *arg3 = 0 ; | |
29138 | wxColour temp3 ; | |
29139 | PyObject * obj0 = 0 ; | |
29140 | PyObject * obj1 = 0 ; | |
29141 | PyObject * obj2 = 0 ; | |
29142 | char *kwnames[] = { | |
29143 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29144 | }; | |
29145 | ||
29146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29149 | { | |
29150 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29151 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29152 | if (arg2 == NULL) { | |
29153 | SWIG_null_ref("wxTreeItemId"); | |
29154 | } | |
29155 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29156 | } |
29157 | { | |
29158 | arg3 = &temp3; | |
29159 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29160 | } | |
29161 | { | |
29162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29163 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29164 | ||
29165 | wxPyEndAllowThreads(__tstate); | |
29166 | if (PyErr_Occurred()) SWIG_fail; | |
29167 | } | |
29168 | Py_INCREF(Py_None); resultobj = Py_None; | |
29169 | return resultobj; | |
29170 | fail: | |
29171 | return NULL; | |
29172 | } | |
29173 | ||
29174 | ||
c32bde28 | 29175 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29176 | PyObject *resultobj; |
29177 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29178 | wxTreeItemId *arg2 = 0 ; | |
29179 | wxFont *arg3 = 0 ; | |
29180 | PyObject * obj0 = 0 ; | |
29181 | PyObject * obj1 = 0 ; | |
29182 | PyObject * obj2 = 0 ; | |
29183 | char *kwnames[] = { | |
29184 | (char *) "self",(char *) "item",(char *) "font", NULL | |
29185 | }; | |
29186 | ||
29187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29190 | { | |
29191 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29192 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29193 | if (arg2 == NULL) { | |
29194 | SWIG_null_ref("wxTreeItemId"); | |
29195 | } | |
29196 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 29197 | } |
093d3ff1 RD |
29198 | { |
29199 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
29200 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29201 | if (arg3 == NULL) { | |
29202 | SWIG_null_ref("wxFont"); | |
29203 | } | |
29204 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
29205 | } |
29206 | { | |
29207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29208 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
29209 | ||
29210 | wxPyEndAllowThreads(__tstate); | |
29211 | if (PyErr_Occurred()) SWIG_fail; | |
29212 | } | |
29213 | Py_INCREF(Py_None); resultobj = Py_None; | |
29214 | return resultobj; | |
29215 | fail: | |
29216 | return NULL; | |
29217 | } | |
29218 | ||
29219 | ||
c32bde28 | 29220 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29221 | PyObject *resultobj; |
29222 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29223 | wxTreeItemId *arg2 = 0 ; | |
29224 | bool result; | |
29225 | PyObject * obj0 = 0 ; | |
29226 | PyObject * obj1 = 0 ; | |
29227 | char *kwnames[] = { | |
29228 | (char *) "self",(char *) "item", NULL | |
29229 | }; | |
29230 | ||
29231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29234 | { | |
29235 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29236 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29237 | if (arg2 == NULL) { | |
29238 | SWIG_null_ref("wxTreeItemId"); | |
29239 | } | |
29240 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29241 | } |
29242 | { | |
29243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29244 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
29245 | ||
29246 | wxPyEndAllowThreads(__tstate); | |
29247 | if (PyErr_Occurred()) SWIG_fail; | |
29248 | } | |
29249 | { | |
29250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29251 | } | |
29252 | return resultobj; | |
29253 | fail: | |
29254 | return NULL; | |
29255 | } | |
29256 | ||
29257 | ||
c32bde28 | 29258 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29259 | PyObject *resultobj; |
29260 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29261 | wxTreeItemId *arg2 = 0 ; | |
29262 | bool result; | |
29263 | PyObject * obj0 = 0 ; | |
29264 | PyObject * obj1 = 0 ; | |
29265 | char *kwnames[] = { | |
29266 | (char *) "self",(char *) "item", NULL | |
29267 | }; | |
29268 | ||
29269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29272 | { | |
29273 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29274 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29275 | if (arg2 == NULL) { | |
29276 | SWIG_null_ref("wxTreeItemId"); | |
29277 | } | |
29278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29279 | } |
29280 | { | |
29281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29282 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
29283 | ||
29284 | wxPyEndAllowThreads(__tstate); | |
29285 | if (PyErr_Occurred()) SWIG_fail; | |
29286 | } | |
29287 | { | |
29288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29289 | } | |
29290 | return resultobj; | |
29291 | fail: | |
29292 | return NULL; | |
29293 | } | |
29294 | ||
29295 | ||
c32bde28 | 29296 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29297 | PyObject *resultobj; |
29298 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29299 | wxTreeItemId *arg2 = 0 ; | |
29300 | bool result; | |
29301 | PyObject * obj0 = 0 ; | |
29302 | PyObject * obj1 = 0 ; | |
29303 | char *kwnames[] = { | |
29304 | (char *) "self",(char *) "item", NULL | |
29305 | }; | |
29306 | ||
29307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29310 | { | |
29311 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29312 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29313 | if (arg2 == NULL) { | |
29314 | SWIG_null_ref("wxTreeItemId"); | |
29315 | } | |
29316 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29317 | } |
29318 | { | |
29319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29320 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
29321 | ||
29322 | wxPyEndAllowThreads(__tstate); | |
29323 | if (PyErr_Occurred()) SWIG_fail; | |
29324 | } | |
29325 | { | |
29326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29327 | } | |
29328 | return resultobj; | |
29329 | fail: | |
29330 | return NULL; | |
29331 | } | |
29332 | ||
29333 | ||
c32bde28 | 29334 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29335 | PyObject *resultobj; |
29336 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29337 | wxTreeItemId *arg2 = 0 ; | |
29338 | bool result; | |
29339 | PyObject * obj0 = 0 ; | |
29340 | PyObject * obj1 = 0 ; | |
29341 | char *kwnames[] = { | |
29342 | (char *) "self",(char *) "item", NULL | |
29343 | }; | |
29344 | ||
29345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29348 | { | |
29349 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29350 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29351 | if (arg2 == NULL) { | |
29352 | SWIG_null_ref("wxTreeItemId"); | |
29353 | } | |
29354 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29355 | } |
29356 | { | |
29357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29358 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
29359 | ||
29360 | wxPyEndAllowThreads(__tstate); | |
29361 | if (PyErr_Occurred()) SWIG_fail; | |
29362 | } | |
29363 | { | |
29364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29365 | } | |
29366 | return resultobj; | |
29367 | fail: | |
29368 | return NULL; | |
29369 | } | |
29370 | ||
29371 | ||
c32bde28 | 29372 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29373 | PyObject *resultobj; |
29374 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29375 | wxTreeItemId *arg2 = 0 ; | |
29376 | bool result; | |
29377 | PyObject * obj0 = 0 ; | |
29378 | PyObject * obj1 = 0 ; | |
29379 | char *kwnames[] = { | |
29380 | (char *) "self",(char *) "item", NULL | |
29381 | }; | |
29382 | ||
29383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29386 | { | |
29387 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29388 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29389 | if (arg2 == NULL) { | |
29390 | SWIG_null_ref("wxTreeItemId"); | |
29391 | } | |
29392 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29393 | } |
29394 | { | |
29395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29396 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
29397 | ||
29398 | wxPyEndAllowThreads(__tstate); | |
29399 | if (PyErr_Occurred()) SWIG_fail; | |
29400 | } | |
29401 | { | |
29402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29403 | } | |
29404 | return resultobj; | |
29405 | fail: | |
29406 | return NULL; | |
29407 | } | |
29408 | ||
29409 | ||
c32bde28 | 29410 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29411 | PyObject *resultobj; |
29412 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29413 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29414 | bool arg3 = (bool) true ; |
d55e5bfc RD |
29415 | size_t result; |
29416 | PyObject * obj0 = 0 ; | |
29417 | PyObject * obj1 = 0 ; | |
29418 | PyObject * obj2 = 0 ; | |
29419 | char *kwnames[] = { | |
29420 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
29421 | }; | |
29422 | ||
29423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29426 | { | |
29427 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29428 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29429 | if (arg2 == NULL) { | |
29430 | SWIG_null_ref("wxTreeItemId"); | |
29431 | } | |
29432 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29433 | } |
29434 | if (obj2) { | |
093d3ff1 RD |
29435 | { |
29436 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29437 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29438 | } | |
d55e5bfc RD |
29439 | } |
29440 | { | |
29441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29442 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
29443 | ||
29444 | wxPyEndAllowThreads(__tstate); | |
29445 | if (PyErr_Occurred()) SWIG_fail; | |
29446 | } | |
093d3ff1 RD |
29447 | { |
29448 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
29449 | } | |
d55e5bfc RD |
29450 | return resultobj; |
29451 | fail: | |
29452 | return NULL; | |
29453 | } | |
29454 | ||
29455 | ||
c32bde28 | 29456 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29457 | PyObject *resultobj; |
29458 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29459 | wxTreeItemId result; | |
29460 | PyObject * obj0 = 0 ; | |
29461 | char *kwnames[] = { | |
29462 | (char *) "self", NULL | |
29463 | }; | |
29464 | ||
29465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29468 | { |
29469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29470 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
29471 | ||
29472 | wxPyEndAllowThreads(__tstate); | |
29473 | if (PyErr_Occurred()) SWIG_fail; | |
29474 | } | |
29475 | { | |
29476 | wxTreeItemId * resultptr; | |
093d3ff1 | 29477 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29478 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29479 | } | |
29480 | return resultobj; | |
29481 | fail: | |
29482 | return NULL; | |
29483 | } | |
29484 | ||
29485 | ||
c32bde28 | 29486 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29487 | PyObject *resultobj; |
29488 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29489 | wxTreeItemId result; | |
29490 | PyObject * obj0 = 0 ; | |
29491 | char *kwnames[] = { | |
29492 | (char *) "self", NULL | |
29493 | }; | |
29494 | ||
29495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29498 | { |
29499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29500 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
29501 | ||
29502 | wxPyEndAllowThreads(__tstate); | |
29503 | if (PyErr_Occurred()) SWIG_fail; | |
29504 | } | |
29505 | { | |
29506 | wxTreeItemId * resultptr; | |
093d3ff1 | 29507 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29508 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29509 | } | |
29510 | return resultobj; | |
29511 | fail: | |
29512 | return NULL; | |
29513 | } | |
29514 | ||
29515 | ||
c32bde28 | 29516 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29517 | PyObject *resultobj; |
29518 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29519 | PyObject *result; | |
29520 | PyObject * obj0 = 0 ; | |
29521 | char *kwnames[] = { | |
29522 | (char *) "self", NULL | |
29523 | }; | |
29524 | ||
29525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29528 | { |
29529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29530 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
29531 | ||
29532 | wxPyEndAllowThreads(__tstate); | |
29533 | if (PyErr_Occurred()) SWIG_fail; | |
29534 | } | |
29535 | resultobj = result; | |
29536 | return resultobj; | |
29537 | fail: | |
29538 | return NULL; | |
29539 | } | |
29540 | ||
29541 | ||
c32bde28 | 29542 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29543 | PyObject *resultobj; |
29544 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29545 | wxTreeItemId *arg2 = 0 ; | |
29546 | wxTreeItemId result; | |
29547 | PyObject * obj0 = 0 ; | |
29548 | PyObject * obj1 = 0 ; | |
29549 | char *kwnames[] = { | |
29550 | (char *) "self",(char *) "item", NULL | |
29551 | }; | |
29552 | ||
29553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29556 | { | |
29557 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29558 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29559 | if (arg2 == NULL) { | |
29560 | SWIG_null_ref("wxTreeItemId"); | |
29561 | } | |
29562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29563 | } |
29564 | { | |
29565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29566 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
29567 | ||
29568 | wxPyEndAllowThreads(__tstate); | |
29569 | if (PyErr_Occurred()) SWIG_fail; | |
29570 | } | |
29571 | { | |
29572 | wxTreeItemId * resultptr; | |
093d3ff1 | 29573 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29574 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29575 | } | |
29576 | return resultobj; | |
29577 | fail: | |
29578 | return NULL; | |
29579 | } | |
29580 | ||
29581 | ||
c32bde28 | 29582 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29583 | PyObject *resultobj; |
29584 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29585 | wxTreeItemId *arg2 = 0 ; | |
29586 | PyObject *result; | |
29587 | PyObject * obj0 = 0 ; | |
29588 | PyObject * obj1 = 0 ; | |
29589 | char *kwnames[] = { | |
29590 | (char *) "self",(char *) "item", NULL | |
29591 | }; | |
29592 | ||
29593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29596 | { | |
29597 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29598 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29599 | if (arg2 == NULL) { | |
29600 | SWIG_null_ref("wxTreeItemId"); | |
29601 | } | |
29602 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29603 | } |
29604 | { | |
29605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29606 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
29607 | ||
29608 | wxPyEndAllowThreads(__tstate); | |
29609 | if (PyErr_Occurred()) SWIG_fail; | |
29610 | } | |
29611 | resultobj = result; | |
29612 | return resultobj; | |
29613 | fail: | |
29614 | return NULL; | |
29615 | } | |
29616 | ||
29617 | ||
c32bde28 | 29618 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29619 | PyObject *resultobj; |
29620 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29621 | wxTreeItemId *arg2 = 0 ; | |
29622 | void *arg3 = (void *) 0 ; | |
29623 | PyObject *result; | |
29624 | PyObject * obj0 = 0 ; | |
29625 | PyObject * obj1 = 0 ; | |
29626 | PyObject * obj2 = 0 ; | |
29627 | char *kwnames[] = { | |
29628 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
29629 | }; | |
29630 | ||
29631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29634 | { | |
29635 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29636 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29637 | if (arg2 == NULL) { | |
29638 | SWIG_null_ref("wxTreeItemId"); | |
29639 | } | |
29640 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29641 | } | |
29642 | { | |
29643 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),0,SWIG_POINTER_EXCEPTION|0))== -1) { | |
29644 | SWIG_arg_fail(3);SWIG_fail; | |
29645 | } | |
d55e5bfc | 29646 | } |
d55e5bfc RD |
29647 | { |
29648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29649 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
29650 | ||
29651 | wxPyEndAllowThreads(__tstate); | |
29652 | if (PyErr_Occurred()) SWIG_fail; | |
29653 | } | |
29654 | resultobj = result; | |
29655 | return resultobj; | |
29656 | fail: | |
29657 | return NULL; | |
29658 | } | |
29659 | ||
29660 | ||
c32bde28 | 29661 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29662 | PyObject *resultobj; |
29663 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29664 | wxTreeItemId *arg2 = 0 ; | |
29665 | wxTreeItemId result; | |
29666 | PyObject * obj0 = 0 ; | |
29667 | PyObject * obj1 = 0 ; | |
29668 | char *kwnames[] = { | |
29669 | (char *) "self",(char *) "item", NULL | |
29670 | }; | |
29671 | ||
29672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29675 | { | |
29676 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29677 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29678 | if (arg2 == NULL) { | |
29679 | SWIG_null_ref("wxTreeItemId"); | |
29680 | } | |
29681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29682 | } |
29683 | { | |
29684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29685 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
29686 | ||
29687 | wxPyEndAllowThreads(__tstate); | |
29688 | if (PyErr_Occurred()) SWIG_fail; | |
29689 | } | |
29690 | { | |
29691 | wxTreeItemId * resultptr; | |
093d3ff1 | 29692 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29694 | } | |
29695 | return resultobj; | |
29696 | fail: | |
29697 | return NULL; | |
29698 | } | |
29699 | ||
29700 | ||
c32bde28 | 29701 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29702 | PyObject *resultobj; |
29703 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29704 | wxTreeItemId *arg2 = 0 ; | |
29705 | wxTreeItemId result; | |
29706 | PyObject * obj0 = 0 ; | |
29707 | PyObject * obj1 = 0 ; | |
29708 | char *kwnames[] = { | |
29709 | (char *) "self",(char *) "item", NULL | |
29710 | }; | |
29711 | ||
29712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29715 | { | |
29716 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29717 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29718 | if (arg2 == NULL) { | |
29719 | SWIG_null_ref("wxTreeItemId"); | |
29720 | } | |
29721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29722 | } |
29723 | { | |
29724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29725 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
29726 | ||
29727 | wxPyEndAllowThreads(__tstate); | |
29728 | if (PyErr_Occurred()) SWIG_fail; | |
29729 | } | |
29730 | { | |
29731 | wxTreeItemId * resultptr; | |
093d3ff1 | 29732 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29733 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29734 | } | |
29735 | return resultobj; | |
29736 | fail: | |
29737 | return NULL; | |
29738 | } | |
29739 | ||
29740 | ||
c32bde28 | 29741 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29742 | PyObject *resultobj; |
29743 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29744 | wxTreeItemId *arg2 = 0 ; | |
29745 | wxTreeItemId result; | |
29746 | PyObject * obj0 = 0 ; | |
29747 | PyObject * obj1 = 0 ; | |
29748 | char *kwnames[] = { | |
29749 | (char *) "self",(char *) "item", NULL | |
29750 | }; | |
29751 | ||
29752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29755 | { | |
29756 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29757 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29758 | if (arg2 == NULL) { | |
29759 | SWIG_null_ref("wxTreeItemId"); | |
29760 | } | |
29761 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29762 | } |
29763 | { | |
29764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29765 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
29766 | ||
29767 | wxPyEndAllowThreads(__tstate); | |
29768 | if (PyErr_Occurred()) SWIG_fail; | |
29769 | } | |
29770 | { | |
29771 | wxTreeItemId * resultptr; | |
093d3ff1 | 29772 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29773 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29774 | } | |
29775 | return resultobj; | |
29776 | fail: | |
29777 | return NULL; | |
29778 | } | |
29779 | ||
29780 | ||
c32bde28 | 29781 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29782 | PyObject *resultobj; |
29783 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29784 | wxTreeItemId result; | |
29785 | PyObject * obj0 = 0 ; | |
29786 | char *kwnames[] = { | |
29787 | (char *) "self", NULL | |
29788 | }; | |
29789 | ||
29790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29793 | { |
29794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29795 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
29796 | ||
29797 | wxPyEndAllowThreads(__tstate); | |
29798 | if (PyErr_Occurred()) SWIG_fail; | |
29799 | } | |
29800 | { | |
29801 | wxTreeItemId * resultptr; | |
093d3ff1 | 29802 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29804 | } | |
29805 | return resultobj; | |
29806 | fail: | |
29807 | return NULL; | |
29808 | } | |
29809 | ||
29810 | ||
c32bde28 | 29811 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29812 | PyObject *resultobj; |
29813 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29814 | wxTreeItemId *arg2 = 0 ; | |
29815 | wxTreeItemId result; | |
29816 | PyObject * obj0 = 0 ; | |
29817 | PyObject * obj1 = 0 ; | |
29818 | char *kwnames[] = { | |
29819 | (char *) "self",(char *) "item", NULL | |
29820 | }; | |
29821 | ||
29822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29825 | { | |
29826 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29827 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29828 | if (arg2 == NULL) { | |
29829 | SWIG_null_ref("wxTreeItemId"); | |
29830 | } | |
29831 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29832 | } |
29833 | { | |
29834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29835 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
29836 | ||
29837 | wxPyEndAllowThreads(__tstate); | |
29838 | if (PyErr_Occurred()) SWIG_fail; | |
29839 | } | |
29840 | { | |
29841 | wxTreeItemId * resultptr; | |
093d3ff1 | 29842 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29844 | } | |
29845 | return resultobj; | |
29846 | fail: | |
29847 | return NULL; | |
29848 | } | |
29849 | ||
29850 | ||
c32bde28 | 29851 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29852 | PyObject *resultobj; |
29853 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29854 | wxTreeItemId *arg2 = 0 ; | |
29855 | wxTreeItemId result; | |
29856 | PyObject * obj0 = 0 ; | |
29857 | PyObject * obj1 = 0 ; | |
29858 | char *kwnames[] = { | |
29859 | (char *) "self",(char *) "item", NULL | |
29860 | }; | |
29861 | ||
29862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29863 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29864 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29865 | { | |
29866 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29867 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29868 | if (arg2 == NULL) { | |
29869 | SWIG_null_ref("wxTreeItemId"); | |
29870 | } | |
29871 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29872 | } |
29873 | { | |
29874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29875 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
29876 | ||
29877 | wxPyEndAllowThreads(__tstate); | |
29878 | if (PyErr_Occurred()) SWIG_fail; | |
29879 | } | |
29880 | { | |
29881 | wxTreeItemId * resultptr; | |
093d3ff1 | 29882 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29883 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29884 | } | |
29885 | return resultobj; | |
29886 | fail: | |
29887 | return NULL; | |
29888 | } | |
29889 | ||
29890 | ||
c32bde28 | 29891 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29892 | PyObject *resultobj; |
29893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29894 | wxString *arg2 = 0 ; | |
29895 | int arg3 = (int) -1 ; | |
29896 | int arg4 = (int) -1 ; | |
29897 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
29898 | wxTreeItemId result; | |
ae8162c8 | 29899 | bool temp2 = false ; |
d55e5bfc RD |
29900 | PyObject * obj0 = 0 ; |
29901 | PyObject * obj1 = 0 ; | |
29902 | PyObject * obj2 = 0 ; | |
29903 | PyObject * obj3 = 0 ; | |
29904 | PyObject * obj4 = 0 ; | |
29905 | char *kwnames[] = { | |
29906 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29907 | }; | |
29908 | ||
29909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
29910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
29912 | { |
29913 | arg2 = wxString_in_helper(obj1); | |
29914 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29915 | temp2 = true; |
d55e5bfc RD |
29916 | } |
29917 | if (obj2) { | |
093d3ff1 RD |
29918 | { |
29919 | arg3 = (int)(SWIG_As_int(obj2)); | |
29920 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29921 | } | |
d55e5bfc RD |
29922 | } |
29923 | if (obj3) { | |
093d3ff1 RD |
29924 | { |
29925 | arg4 = (int)(SWIG_As_int(obj3)); | |
29926 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29927 | } | |
d55e5bfc RD |
29928 | } |
29929 | if (obj4) { | |
093d3ff1 RD |
29930 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
29931 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
29932 | } |
29933 | { | |
29934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29935 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
29936 | ||
29937 | wxPyEndAllowThreads(__tstate); | |
29938 | if (PyErr_Occurred()) SWIG_fail; | |
29939 | } | |
29940 | { | |
29941 | wxTreeItemId * resultptr; | |
093d3ff1 | 29942 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
29943 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
29944 | } | |
29945 | { | |
29946 | if (temp2) | |
29947 | delete arg2; | |
29948 | } | |
29949 | return resultobj; | |
29950 | fail: | |
29951 | { | |
29952 | if (temp2) | |
29953 | delete arg2; | |
29954 | } | |
29955 | return NULL; | |
29956 | } | |
29957 | ||
29958 | ||
c32bde28 | 29959 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29960 | PyObject *resultobj; |
29961 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29962 | wxTreeItemId *arg2 = 0 ; | |
29963 | wxString *arg3 = 0 ; | |
29964 | int arg4 = (int) -1 ; | |
29965 | int arg5 = (int) -1 ; | |
29966 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
29967 | wxTreeItemId result; | |
ae8162c8 | 29968 | bool temp3 = false ; |
d55e5bfc RD |
29969 | PyObject * obj0 = 0 ; |
29970 | PyObject * obj1 = 0 ; | |
29971 | PyObject * obj2 = 0 ; | |
29972 | PyObject * obj3 = 0 ; | |
29973 | PyObject * obj4 = 0 ; | |
29974 | PyObject * obj5 = 0 ; | |
29975 | char *kwnames[] = { | |
29976 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29977 | }; | |
29978 | ||
29979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
29980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29982 | { | |
29983 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29985 | if (arg2 == NULL) { | |
29986 | SWIG_null_ref("wxTreeItemId"); | |
29987 | } | |
29988 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
29989 | } |
29990 | { | |
29991 | arg3 = wxString_in_helper(obj2); | |
29992 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 29993 | temp3 = true; |
d55e5bfc RD |
29994 | } |
29995 | if (obj3) { | |
093d3ff1 RD |
29996 | { |
29997 | arg4 = (int)(SWIG_As_int(obj3)); | |
29998 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29999 | } | |
d55e5bfc RD |
30000 | } |
30001 | if (obj4) { | |
093d3ff1 RD |
30002 | { |
30003 | arg5 = (int)(SWIG_As_int(obj4)); | |
30004 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30005 | } | |
d55e5bfc RD |
30006 | } |
30007 | if (obj5) { | |
093d3ff1 RD |
30008 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30009 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
30010 | } |
30011 | { | |
30012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30013 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30014 | ||
30015 | wxPyEndAllowThreads(__tstate); | |
30016 | if (PyErr_Occurred()) SWIG_fail; | |
30017 | } | |
30018 | { | |
30019 | wxTreeItemId * resultptr; | |
093d3ff1 | 30020 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
30021 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
30022 | } | |
30023 | { | |
30024 | if (temp3) | |
30025 | delete arg3; | |
30026 | } | |
30027 | return resultobj; | |
30028 | fail: | |
30029 | { | |
30030 | if (temp3) | |
30031 | delete arg3; | |
30032 | } | |
30033 | return NULL; | |
30034 | } | |
30035 | ||
30036 | ||
c32bde28 | 30037 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30038 | PyObject *resultobj; |
30039 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30040 | wxTreeItemId *arg2 = 0 ; | |
30041 | wxTreeItemId *arg3 = 0 ; | |
30042 | wxString *arg4 = 0 ; | |
30043 | int arg5 = (int) -1 ; | |
30044 | int arg6 = (int) -1 ; | |
30045 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30046 | wxTreeItemId result; | |
ae8162c8 | 30047 | bool temp4 = false ; |
d55e5bfc RD |
30048 | PyObject * obj0 = 0 ; |
30049 | PyObject * obj1 = 0 ; | |
30050 | PyObject * obj2 = 0 ; | |
30051 | PyObject * obj3 = 0 ; | |
30052 | PyObject * obj4 = 0 ; | |
30053 | PyObject * obj5 = 0 ; | |
30054 | PyObject * obj6 = 0 ; | |
30055 | char *kwnames[] = { | |
30056 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30057 | }; | |
30058 | ||
30059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
30060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30062 | { | |
30063 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30064 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30065 | if (arg2 == NULL) { | |
30066 | SWIG_null_ref("wxTreeItemId"); | |
30067 | } | |
30068 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30069 | } | |
30070 | { | |
30071 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30072 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30073 | if (arg3 == NULL) { | |
30074 | SWIG_null_ref("wxTreeItemId"); | |
30075 | } | |
30076 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
30077 | } |
30078 | { | |
30079 | arg4 = wxString_in_helper(obj3); | |
30080 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30081 | temp4 = true; |
d55e5bfc RD |
30082 | } |
30083 | if (obj4) { | |
093d3ff1 RD |
30084 | { |
30085 | arg5 = (int)(SWIG_As_int(obj4)); | |
30086 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30087 | } | |
d55e5bfc RD |
30088 | } |
30089 | if (obj5) { | |
093d3ff1 RD |
30090 | { |
30091 | arg6 = (int)(SWIG_As_int(obj5)); | |
30092 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30093 | } | |
d55e5bfc RD |
30094 | } |
30095 | if (obj6) { | |
093d3ff1 RD |
30096 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30097 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
30098 | } |
30099 | { | |
30100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30101 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30102 | ||
30103 | wxPyEndAllowThreads(__tstate); | |
30104 | if (PyErr_Occurred()) SWIG_fail; | |
30105 | } | |
30106 | { | |
30107 | wxTreeItemId * resultptr; | |
093d3ff1 | 30108 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
30109 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
30110 | } | |
30111 | { | |
30112 | if (temp4) | |
30113 | delete arg4; | |
30114 | } | |
30115 | return resultobj; | |
30116 | fail: | |
30117 | { | |
30118 | if (temp4) | |
30119 | delete arg4; | |
30120 | } | |
30121 | return NULL; | |
30122 | } | |
30123 | ||
30124 | ||
c32bde28 | 30125 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30126 | PyObject *resultobj; |
30127 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30128 | wxTreeItemId *arg2 = 0 ; | |
30129 | size_t arg3 ; | |
30130 | wxString *arg4 = 0 ; | |
30131 | int arg5 = (int) -1 ; | |
30132 | int arg6 = (int) -1 ; | |
30133 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30134 | wxTreeItemId result; | |
ae8162c8 | 30135 | bool temp4 = false ; |
d55e5bfc RD |
30136 | PyObject * obj0 = 0 ; |
30137 | PyObject * obj1 = 0 ; | |
30138 | PyObject * obj2 = 0 ; | |
30139 | PyObject * obj3 = 0 ; | |
30140 | PyObject * obj4 = 0 ; | |
30141 | PyObject * obj5 = 0 ; | |
30142 | PyObject * obj6 = 0 ; | |
30143 | char *kwnames[] = { | |
30144 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30145 | }; | |
30146 | ||
30147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
30148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30150 | { | |
30151 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30152 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30153 | if (arg2 == NULL) { | |
30154 | SWIG_null_ref("wxTreeItemId"); | |
30155 | } | |
30156 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30157 | } | |
30158 | { | |
30159 | arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2)); | |
30160 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30161 | } | |
d55e5bfc RD |
30162 | { |
30163 | arg4 = wxString_in_helper(obj3); | |
30164 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30165 | temp4 = true; |
d55e5bfc RD |
30166 | } |
30167 | if (obj4) { | |
093d3ff1 RD |
30168 | { |
30169 | arg5 = (int)(SWIG_As_int(obj4)); | |
30170 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30171 | } | |
d55e5bfc RD |
30172 | } |
30173 | if (obj5) { | |
093d3ff1 RD |
30174 | { |
30175 | arg6 = (int)(SWIG_As_int(obj5)); | |
30176 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30177 | } | |
d55e5bfc RD |
30178 | } |
30179 | if (obj6) { | |
093d3ff1 RD |
30180 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30181 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d55e5bfc RD |
30182 | } |
30183 | { | |
30184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30185 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30186 | ||
30187 | wxPyEndAllowThreads(__tstate); | |
30188 | if (PyErr_Occurred()) SWIG_fail; | |
30189 | } | |
30190 | { | |
30191 | wxTreeItemId * resultptr; | |
093d3ff1 | 30192 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
30193 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
30194 | } | |
30195 | { | |
30196 | if (temp4) | |
30197 | delete arg4; | |
30198 | } | |
30199 | return resultobj; | |
30200 | fail: | |
30201 | { | |
30202 | if (temp4) | |
30203 | delete arg4; | |
30204 | } | |
30205 | return NULL; | |
30206 | } | |
30207 | ||
30208 | ||
c32bde28 | 30209 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30210 | PyObject *resultobj; |
30211 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30212 | wxTreeItemId *arg2 = 0 ; | |
30213 | wxString *arg3 = 0 ; | |
30214 | int arg4 = (int) -1 ; | |
30215 | int arg5 = (int) -1 ; | |
30216 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
30217 | wxTreeItemId result; | |
ae8162c8 | 30218 | bool temp3 = false ; |
d55e5bfc RD |
30219 | PyObject * obj0 = 0 ; |
30220 | PyObject * obj1 = 0 ; | |
30221 | PyObject * obj2 = 0 ; | |
30222 | PyObject * obj3 = 0 ; | |
30223 | PyObject * obj4 = 0 ; | |
30224 | PyObject * obj5 = 0 ; | |
30225 | char *kwnames[] = { | |
30226 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30227 | }; | |
30228 | ||
30229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
30230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30232 | { | |
30233 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30234 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30235 | if (arg2 == NULL) { | |
30236 | SWIG_null_ref("wxTreeItemId"); | |
30237 | } | |
30238 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30239 | } |
30240 | { | |
30241 | arg3 = wxString_in_helper(obj2); | |
30242 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30243 | temp3 = true; |
d55e5bfc RD |
30244 | } |
30245 | if (obj3) { | |
093d3ff1 RD |
30246 | { |
30247 | arg4 = (int)(SWIG_As_int(obj3)); | |
30248 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30249 | } | |
d55e5bfc RD |
30250 | } |
30251 | if (obj4) { | |
093d3ff1 RD |
30252 | { |
30253 | arg5 = (int)(SWIG_As_int(obj4)); | |
30254 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30255 | } | |
d55e5bfc RD |
30256 | } |
30257 | if (obj5) { | |
093d3ff1 RD |
30258 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30259 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
30260 | } |
30261 | { | |
30262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30263 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30264 | ||
30265 | wxPyEndAllowThreads(__tstate); | |
30266 | if (PyErr_Occurred()) SWIG_fail; | |
30267 | } | |
30268 | { | |
30269 | wxTreeItemId * resultptr; | |
093d3ff1 | 30270 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
30271 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
30272 | } | |
30273 | { | |
30274 | if (temp3) | |
30275 | delete arg3; | |
30276 | } | |
30277 | return resultobj; | |
30278 | fail: | |
30279 | { | |
30280 | if (temp3) | |
30281 | delete arg3; | |
30282 | } | |
30283 | return NULL; | |
30284 | } | |
30285 | ||
30286 | ||
c32bde28 | 30287 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30288 | PyObject *resultobj; |
30289 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30290 | wxTreeItemId *arg2 = 0 ; | |
30291 | PyObject * obj0 = 0 ; | |
30292 | PyObject * obj1 = 0 ; | |
30293 | char *kwnames[] = { | |
30294 | (char *) "self",(char *) "item", NULL | |
30295 | }; | |
30296 | ||
30297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30300 | { | |
30301 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30302 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30303 | if (arg2 == NULL) { | |
30304 | SWIG_null_ref("wxTreeItemId"); | |
30305 | } | |
30306 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30307 | } |
30308 | { | |
30309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30310 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
30311 | ||
30312 | wxPyEndAllowThreads(__tstate); | |
30313 | if (PyErr_Occurred()) SWIG_fail; | |
30314 | } | |
30315 | Py_INCREF(Py_None); resultobj = Py_None; | |
30316 | return resultobj; | |
30317 | fail: | |
30318 | return NULL; | |
30319 | } | |
30320 | ||
30321 | ||
c32bde28 | 30322 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30323 | PyObject *resultobj; |
30324 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30325 | wxTreeItemId *arg2 = 0 ; | |
30326 | PyObject * obj0 = 0 ; | |
30327 | PyObject * obj1 = 0 ; | |
30328 | char *kwnames[] = { | |
30329 | (char *) "self",(char *) "item", NULL | |
30330 | }; | |
30331 | ||
30332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30333 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30335 | { | |
30336 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30337 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30338 | if (arg2 == NULL) { | |
30339 | SWIG_null_ref("wxTreeItemId"); | |
30340 | } | |
30341 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30342 | } |
30343 | { | |
30344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30345 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
30346 | ||
30347 | wxPyEndAllowThreads(__tstate); | |
30348 | if (PyErr_Occurred()) SWIG_fail; | |
30349 | } | |
30350 | Py_INCREF(Py_None); resultobj = Py_None; | |
30351 | return resultobj; | |
30352 | fail: | |
30353 | return NULL; | |
30354 | } | |
30355 | ||
30356 | ||
c32bde28 | 30357 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30358 | PyObject *resultobj; |
30359 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30360 | PyObject * obj0 = 0 ; | |
30361 | char *kwnames[] = { | |
30362 | (char *) "self", NULL | |
30363 | }; | |
30364 | ||
30365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30368 | { |
30369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30370 | (arg1)->DeleteAllItems(); | |
30371 | ||
30372 | wxPyEndAllowThreads(__tstate); | |
30373 | if (PyErr_Occurred()) SWIG_fail; | |
30374 | } | |
30375 | Py_INCREF(Py_None); resultobj = Py_None; | |
30376 | return resultobj; | |
30377 | fail: | |
30378 | return NULL; | |
30379 | } | |
30380 | ||
30381 | ||
c32bde28 | 30382 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30383 | PyObject *resultobj; |
30384 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30385 | wxTreeItemId *arg2 = 0 ; | |
30386 | PyObject * obj0 = 0 ; | |
30387 | PyObject * obj1 = 0 ; | |
30388 | char *kwnames[] = { | |
30389 | (char *) "self",(char *) "item", NULL | |
30390 | }; | |
30391 | ||
30392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30395 | { | |
30396 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30397 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30398 | if (arg2 == NULL) { | |
30399 | SWIG_null_ref("wxTreeItemId"); | |
30400 | } | |
30401 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30402 | } |
30403 | { | |
30404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30405 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
30406 | ||
30407 | wxPyEndAllowThreads(__tstate); | |
30408 | if (PyErr_Occurred()) SWIG_fail; | |
30409 | } | |
30410 | Py_INCREF(Py_None); resultobj = Py_None; | |
30411 | return resultobj; | |
30412 | fail: | |
30413 | return NULL; | |
30414 | } | |
30415 | ||
30416 | ||
c32bde28 | 30417 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30418 | PyObject *resultobj; |
30419 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30420 | wxTreeItemId *arg2 = 0 ; | |
30421 | PyObject * obj0 = 0 ; | |
30422 | PyObject * obj1 = 0 ; | |
30423 | char *kwnames[] = { | |
30424 | (char *) "self",(char *) "item", NULL | |
30425 | }; | |
30426 | ||
30427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30430 | { | |
30431 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30432 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30433 | if (arg2 == NULL) { | |
30434 | SWIG_null_ref("wxTreeItemId"); | |
30435 | } | |
30436 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30437 | } |
30438 | { | |
30439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30440 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
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 | ||
c32bde28 | 30452 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30453 | PyObject *resultobj; |
30454 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30455 | wxTreeItemId *arg2 = 0 ; | |
30456 | PyObject * obj0 = 0 ; | |
30457 | PyObject * obj1 = 0 ; | |
30458 | char *kwnames[] = { | |
30459 | (char *) "self",(char *) "item", NULL | |
30460 | }; | |
30461 | ||
30462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30465 | { | |
30466 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30467 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30468 | if (arg2 == NULL) { | |
30469 | SWIG_null_ref("wxTreeItemId"); | |
30470 | } | |
30471 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30472 | } |
30473 | { | |
30474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30475 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
30476 | ||
30477 | wxPyEndAllowThreads(__tstate); | |
30478 | if (PyErr_Occurred()) SWIG_fail; | |
30479 | } | |
30480 | Py_INCREF(Py_None); resultobj = Py_None; | |
30481 | return resultobj; | |
30482 | fail: | |
30483 | return NULL; | |
30484 | } | |
30485 | ||
30486 | ||
c32bde28 | 30487 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30488 | PyObject *resultobj; |
30489 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30490 | wxTreeItemId *arg2 = 0 ; | |
30491 | PyObject * obj0 = 0 ; | |
30492 | PyObject * obj1 = 0 ; | |
30493 | char *kwnames[] = { | |
30494 | (char *) "self",(char *) "item", NULL | |
30495 | }; | |
30496 | ||
30497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30500 | { | |
30501 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30503 | if (arg2 == NULL) { | |
30504 | SWIG_null_ref("wxTreeItemId"); | |
30505 | } | |
30506 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30507 | } |
30508 | { | |
30509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30510 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
30511 | ||
30512 | wxPyEndAllowThreads(__tstate); | |
30513 | if (PyErr_Occurred()) SWIG_fail; | |
30514 | } | |
30515 | Py_INCREF(Py_None); resultobj = Py_None; | |
30516 | return resultobj; | |
30517 | fail: | |
30518 | return NULL; | |
30519 | } | |
30520 | ||
30521 | ||
c32bde28 | 30522 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30523 | PyObject *resultobj; |
30524 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30525 | PyObject * obj0 = 0 ; | |
30526 | char *kwnames[] = { | |
30527 | (char *) "self", NULL | |
30528 | }; | |
30529 | ||
30530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30533 | { |
30534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30535 | (arg1)->Unselect(); | |
30536 | ||
30537 | wxPyEndAllowThreads(__tstate); | |
30538 | if (PyErr_Occurred()) SWIG_fail; | |
30539 | } | |
30540 | Py_INCREF(Py_None); resultobj = Py_None; | |
30541 | return resultobj; | |
30542 | fail: | |
30543 | return NULL; | |
30544 | } | |
30545 | ||
30546 | ||
c32bde28 | 30547 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30548 | PyObject *resultobj; |
30549 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30550 | wxTreeItemId *arg2 = 0 ; | |
30551 | PyObject * obj0 = 0 ; | |
30552 | PyObject * obj1 = 0 ; | |
30553 | char *kwnames[] = { | |
30554 | (char *) "self",(char *) "item", NULL | |
30555 | }; | |
30556 | ||
30557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30560 | { | |
30561 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30563 | if (arg2 == NULL) { | |
30564 | SWIG_null_ref("wxTreeItemId"); | |
30565 | } | |
30566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30567 | } |
30568 | { | |
30569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30570 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
30571 | ||
30572 | wxPyEndAllowThreads(__tstate); | |
30573 | if (PyErr_Occurred()) SWIG_fail; | |
30574 | } | |
30575 | Py_INCREF(Py_None); resultobj = Py_None; | |
30576 | return resultobj; | |
30577 | fail: | |
30578 | return NULL; | |
30579 | } | |
30580 | ||
30581 | ||
c32bde28 | 30582 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30583 | PyObject *resultobj; |
30584 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30585 | PyObject * obj0 = 0 ; | |
30586 | char *kwnames[] = { | |
30587 | (char *) "self", NULL | |
30588 | }; | |
30589 | ||
30590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30593 | { |
30594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30595 | (arg1)->UnselectAll(); | |
30596 | ||
30597 | wxPyEndAllowThreads(__tstate); | |
30598 | if (PyErr_Occurred()) SWIG_fail; | |
30599 | } | |
30600 | Py_INCREF(Py_None); resultobj = Py_None; | |
30601 | return resultobj; | |
30602 | fail: | |
30603 | return NULL; | |
30604 | } | |
30605 | ||
30606 | ||
c32bde28 | 30607 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30608 | PyObject *resultobj; |
30609 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30610 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30611 | bool arg3 = (bool) true ; |
d55e5bfc RD |
30612 | PyObject * obj0 = 0 ; |
30613 | PyObject * obj1 = 0 ; | |
30614 | PyObject * obj2 = 0 ; | |
30615 | char *kwnames[] = { | |
30616 | (char *) "self",(char *) "item",(char *) "select", NULL | |
30617 | }; | |
30618 | ||
30619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30622 | { | |
30623 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30624 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30625 | if (arg2 == NULL) { | |
30626 | SWIG_null_ref("wxTreeItemId"); | |
30627 | } | |
30628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30629 | } |
30630 | if (obj2) { | |
093d3ff1 RD |
30631 | { |
30632 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30633 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30634 | } | |
d55e5bfc RD |
30635 | } |
30636 | { | |
30637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30638 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
30639 | ||
30640 | wxPyEndAllowThreads(__tstate); | |
30641 | if (PyErr_Occurred()) SWIG_fail; | |
30642 | } | |
30643 | Py_INCREF(Py_None); resultobj = Py_None; | |
30644 | return resultobj; | |
30645 | fail: | |
30646 | return NULL; | |
30647 | } | |
30648 | ||
30649 | ||
c32bde28 | 30650 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30651 | PyObject *resultobj; |
30652 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30653 | wxTreeItemId *arg2 = 0 ; | |
30654 | PyObject * obj0 = 0 ; | |
30655 | PyObject * obj1 = 0 ; | |
30656 | char *kwnames[] = { | |
30657 | (char *) "self",(char *) "item", NULL | |
30658 | }; | |
30659 | ||
30660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30663 | { | |
30664 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30665 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30666 | if (arg2 == NULL) { | |
30667 | SWIG_null_ref("wxTreeItemId"); | |
30668 | } | |
30669 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30670 | } |
30671 | { | |
30672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30673 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
30674 | ||
30675 | wxPyEndAllowThreads(__tstate); | |
30676 | if (PyErr_Occurred()) SWIG_fail; | |
30677 | } | |
30678 | Py_INCREF(Py_None); resultobj = Py_None; | |
30679 | return resultobj; | |
30680 | fail: | |
30681 | return NULL; | |
30682 | } | |
30683 | ||
30684 | ||
c32bde28 | 30685 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30686 | PyObject *resultobj; |
30687 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30688 | wxTreeItemId *arg2 = 0 ; | |
30689 | PyObject * obj0 = 0 ; | |
30690 | PyObject * obj1 = 0 ; | |
30691 | char *kwnames[] = { | |
30692 | (char *) "self",(char *) "item", NULL | |
30693 | }; | |
30694 | ||
30695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30696 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30697 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30698 | { | |
30699 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30700 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30701 | if (arg2 == NULL) { | |
30702 | SWIG_null_ref("wxTreeItemId"); | |
30703 | } | |
30704 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30705 | } |
30706 | { | |
30707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30708 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
30709 | ||
30710 | wxPyEndAllowThreads(__tstate); | |
30711 | if (PyErr_Occurred()) SWIG_fail; | |
30712 | } | |
30713 | Py_INCREF(Py_None); resultobj = Py_None; | |
30714 | return resultobj; | |
30715 | fail: | |
30716 | return NULL; | |
30717 | } | |
30718 | ||
30719 | ||
c32bde28 | 30720 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30721 | PyObject *resultobj; |
30722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30723 | wxTreeItemId *arg2 = 0 ; | |
30724 | PyObject * obj0 = 0 ; | |
30725 | PyObject * obj1 = 0 ; | |
30726 | char *kwnames[] = { | |
30727 | (char *) "self",(char *) "item", NULL | |
30728 | }; | |
30729 | ||
30730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30731 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30732 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30733 | { | |
30734 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30735 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30736 | if (arg2 == NULL) { | |
30737 | SWIG_null_ref("wxTreeItemId"); | |
30738 | } | |
30739 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30740 | } |
30741 | { | |
30742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30743 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
30744 | ||
30745 | wxPyEndAllowThreads(__tstate); | |
30746 | if (PyErr_Occurred()) SWIG_fail; | |
30747 | } | |
30748 | Py_INCREF(Py_None); resultobj = Py_None; | |
30749 | return resultobj; | |
30750 | fail: | |
30751 | return NULL; | |
30752 | } | |
30753 | ||
30754 | ||
c32bde28 | 30755 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30756 | PyObject *resultobj; |
30757 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30758 | wxTreeItemId *arg2 = 0 ; | |
30759 | PyObject * obj0 = 0 ; | |
30760 | PyObject * obj1 = 0 ; | |
30761 | char *kwnames[] = { | |
30762 | (char *) "self",(char *) "item", NULL | |
30763 | }; | |
30764 | ||
30765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30768 | { | |
30769 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30770 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30771 | if (arg2 == NULL) { | |
30772 | SWIG_null_ref("wxTreeItemId"); | |
30773 | } | |
30774 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30775 | } |
30776 | { | |
30777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30778 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
30779 | ||
30780 | wxPyEndAllowThreads(__tstate); | |
30781 | if (PyErr_Occurred()) SWIG_fail; | |
30782 | } | |
30783 | Py_INCREF(Py_None); resultobj = Py_None; | |
30784 | return resultobj; | |
30785 | fail: | |
30786 | return NULL; | |
30787 | } | |
30788 | ||
30789 | ||
c32bde28 | 30790 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30791 | PyObject *resultobj; |
30792 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30793 | wxTextCtrl *result; | |
30794 | PyObject * obj0 = 0 ; | |
30795 | char *kwnames[] = { | |
30796 | (char *) "self", NULL | |
30797 | }; | |
30798 | ||
30799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30800 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30801 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30802 | { |
30803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30804 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
30805 | ||
30806 | wxPyEndAllowThreads(__tstate); | |
30807 | if (PyErr_Occurred()) SWIG_fail; | |
30808 | } | |
30809 | { | |
412d302d | 30810 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30811 | } |
30812 | return resultobj; | |
30813 | fail: | |
30814 | return NULL; | |
30815 | } | |
30816 | ||
30817 | ||
c32bde28 | 30818 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30819 | PyObject *resultobj; |
30820 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30821 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30822 | bool arg3 = (bool) false ; |
d55e5bfc RD |
30823 | PyObject * obj0 = 0 ; |
30824 | PyObject * obj1 = 0 ; | |
30825 | PyObject * obj2 = 0 ; | |
30826 | char *kwnames[] = { | |
30827 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
30828 | }; | |
30829 | ||
30830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30833 | { | |
30834 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30835 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30836 | if (arg2 == NULL) { | |
30837 | SWIG_null_ref("wxTreeItemId"); | |
30838 | } | |
30839 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30840 | } |
30841 | if (obj2) { | |
093d3ff1 RD |
30842 | { |
30843 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30844 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30845 | } | |
d55e5bfc RD |
30846 | } |
30847 | { | |
30848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30849 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
30850 | ||
30851 | wxPyEndAllowThreads(__tstate); | |
30852 | if (PyErr_Occurred()) SWIG_fail; | |
30853 | } | |
30854 | Py_INCREF(Py_None); resultobj = Py_None; | |
30855 | return resultobj; | |
30856 | fail: | |
30857 | return NULL; | |
30858 | } | |
30859 | ||
30860 | ||
c32bde28 | 30861 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30862 | PyObject *resultobj; |
30863 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30864 | wxTreeItemId *arg2 = 0 ; | |
30865 | PyObject * obj0 = 0 ; | |
30866 | PyObject * obj1 = 0 ; | |
30867 | char *kwnames[] = { | |
30868 | (char *) "self",(char *) "item", NULL | |
30869 | }; | |
30870 | ||
30871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30874 | { | |
30875 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30876 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30877 | if (arg2 == NULL) { | |
30878 | SWIG_null_ref("wxTreeItemId"); | |
30879 | } | |
30880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30881 | } |
30882 | { | |
30883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30884 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
30885 | ||
30886 | wxPyEndAllowThreads(__tstate); | |
30887 | if (PyErr_Occurred()) SWIG_fail; | |
30888 | } | |
30889 | Py_INCREF(Py_None); resultobj = Py_None; | |
30890 | return resultobj; | |
30891 | fail: | |
30892 | return NULL; | |
30893 | } | |
30894 | ||
30895 | ||
c32bde28 | 30896 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30897 | PyObject *resultobj; |
30898 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30899 | wxPoint *arg2 = 0 ; | |
30900 | int *arg3 = 0 ; | |
30901 | wxTreeItemId result; | |
30902 | wxPoint temp2 ; | |
30903 | int temp3 ; | |
c32bde28 | 30904 | int res3 = 0 ; |
d55e5bfc RD |
30905 | PyObject * obj0 = 0 ; |
30906 | PyObject * obj1 = 0 ; | |
30907 | char *kwnames[] = { | |
30908 | (char *) "self",(char *) "point", NULL | |
30909 | }; | |
30910 | ||
c32bde28 | 30911 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc | 30912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30913 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30914 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
30915 | { |
30916 | arg2 = &temp2; | |
30917 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30918 | } | |
30919 | { | |
30920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30921 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
30922 | ||
30923 | wxPyEndAllowThreads(__tstate); | |
30924 | if (PyErr_Occurred()) SWIG_fail; | |
30925 | } | |
30926 | { | |
30927 | wxTreeItemId * resultptr; | |
093d3ff1 | 30928 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
30929 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
30930 | } | |
c32bde28 RD |
30931 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30932 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
30933 | return resultobj; |
30934 | fail: | |
30935 | return NULL; | |
30936 | } | |
30937 | ||
30938 | ||
c32bde28 | 30939 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30940 | PyObject *resultobj; |
30941 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30942 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30943 | bool arg3 = (bool) false ; |
d55e5bfc RD |
30944 | PyObject *result; |
30945 | PyObject * obj0 = 0 ; | |
30946 | PyObject * obj1 = 0 ; | |
30947 | PyObject * obj2 = 0 ; | |
30948 | char *kwnames[] = { | |
30949 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
30950 | }; | |
30951 | ||
30952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30955 | { | |
30956 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30957 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30958 | if (arg2 == NULL) { | |
30959 | SWIG_null_ref("wxTreeItemId"); | |
30960 | } | |
30961 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
30962 | } |
30963 | if (obj2) { | |
093d3ff1 RD |
30964 | { |
30965 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30966 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30967 | } | |
d55e5bfc RD |
30968 | } |
30969 | { | |
30970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30971 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
30972 | ||
30973 | wxPyEndAllowThreads(__tstate); | |
30974 | if (PyErr_Occurred()) SWIG_fail; | |
30975 | } | |
30976 | resultobj = result; | |
30977 | return resultobj; | |
30978 | fail: | |
30979 | return NULL; | |
30980 | } | |
30981 | ||
30982 | ||
c32bde28 | 30983 | static PyObject *_wrap_TreeCtrl_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
110da5b0 RD |
30984 | PyObject *resultobj; |
30985 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30986 | wxTreeItemId *arg2 = 0 ; | |
30987 | int arg3 ; | |
30988 | PyObject * obj0 = 0 ; | |
30989 | PyObject * obj1 = 0 ; | |
30990 | PyObject * obj2 = 0 ; | |
30991 | char *kwnames[] = { | |
30992 | (char *) "self",(char *) "node",(char *) "state", NULL | |
30993 | }; | |
30994 | ||
30995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30998 | { | |
30999 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31001 | if (arg2 == NULL) { | |
31002 | SWIG_null_ref("wxTreeItemId"); | |
31003 | } | |
31004 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31005 | } | |
31006 | { | |
31007 | arg3 = (int)(SWIG_As_int(obj2)); | |
31008 | if (SWIG_arg_fail(3)) SWIG_fail; | |
110da5b0 | 31009 | } |
110da5b0 RD |
31010 | { |
31011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31012 | (arg1)->SetState((wxTreeItemId const &)*arg2,arg3); | |
31013 | ||
31014 | wxPyEndAllowThreads(__tstate); | |
31015 | if (PyErr_Occurred()) SWIG_fail; | |
31016 | } | |
31017 | Py_INCREF(Py_None); resultobj = Py_None; | |
31018 | return resultobj; | |
31019 | fail: | |
31020 | return NULL; | |
31021 | } | |
31022 | ||
31023 | ||
c32bde28 | 31024 | static PyObject *_wrap_TreeCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
110da5b0 RD |
31025 | PyObject *resultobj; |
31026 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
31027 | wxTreeItemId *arg2 = 0 ; | |
31028 | int result; | |
31029 | PyObject * obj0 = 0 ; | |
31030 | PyObject * obj1 = 0 ; | |
31031 | char *kwnames[] = { | |
31032 | (char *) "self",(char *) "node", NULL | |
31033 | }; | |
31034 | ||
31035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31038 | { | |
31039 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31040 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31041 | if (arg2 == NULL) { | |
31042 | SWIG_null_ref("wxTreeItemId"); | |
31043 | } | |
31044 | if (SWIG_arg_fail(2)) SWIG_fail; | |
110da5b0 RD |
31045 | } |
31046 | { | |
31047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31048 | result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2); | |
31049 | ||
31050 | wxPyEndAllowThreads(__tstate); | |
31051 | if (PyErr_Occurred()) SWIG_fail; | |
31052 | } | |
093d3ff1 RD |
31053 | { |
31054 | resultobj = SWIG_From_int((int)(result)); | |
31055 | } | |
110da5b0 RD |
31056 | return resultobj; |
31057 | fail: | |
31058 | return NULL; | |
31059 | } | |
31060 | ||
31061 | ||
c32bde28 | 31062 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 31063 | PyObject *resultobj; |
093d3ff1 | 31064 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
d55e5bfc RD |
31065 | wxVisualAttributes result; |
31066 | PyObject * obj0 = 0 ; | |
31067 | char *kwnames[] = { | |
31068 | (char *) "variant", NULL | |
31069 | }; | |
31070 | ||
31071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
31072 | if (obj0) { | |
093d3ff1 RD |
31073 | { |
31074 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
31075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31076 | } | |
d55e5bfc RD |
31077 | } |
31078 | { | |
19272049 | 31079 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31081 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
31082 | ||
31083 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31084 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31085 | } |
31086 | { | |
31087 | wxVisualAttributes * resultptr; | |
093d3ff1 | 31088 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
d55e5bfc RD |
31089 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
31090 | } | |
31091 | return resultobj; | |
31092 | fail: | |
31093 | return NULL; | |
31094 | } | |
31095 | ||
31096 | ||
c32bde28 | 31097 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31098 | PyObject *obj; |
31099 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31100 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
31101 | Py_INCREF(obj); | |
31102 | return Py_BuildValue((char *)""); | |
31103 | } | |
c32bde28 | 31104 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
d55e5bfc RD |
31105 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
31106 | return 1; | |
31107 | } | |
31108 | ||
31109 | ||
093d3ff1 | 31110 | static PyObject *_wrap_DirDialogDefaultFolderStr_get(void) { |
d55e5bfc RD |
31111 | PyObject *pyobj; |
31112 | ||
31113 | { | |
31114 | #if wxUSE_UNICODE | |
31115 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
31116 | #else | |
31117 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
31118 | #endif | |
31119 | } | |
31120 | return pyobj; | |
31121 | } | |
31122 | ||
31123 | ||
c32bde28 | 31124 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31125 | PyObject *resultobj; |
31126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31127 | int arg2 = (int) (int)-1 ; | |
31128 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
31129 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31130 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31131 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31132 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31133 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31134 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31135 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
31136 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31137 | int arg8 = (int) 0 ; | |
31138 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
31139 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
31140 | wxGenericDirCtrl *result; | |
ae8162c8 | 31141 | bool temp3 = false ; |
d55e5bfc RD |
31142 | wxPoint temp4 ; |
31143 | wxSize temp5 ; | |
ae8162c8 RD |
31144 | bool temp7 = false ; |
31145 | bool temp9 = false ; | |
d55e5bfc RD |
31146 | PyObject * obj0 = 0 ; |
31147 | PyObject * obj1 = 0 ; | |
31148 | PyObject * obj2 = 0 ; | |
31149 | PyObject * obj3 = 0 ; | |
31150 | PyObject * obj4 = 0 ; | |
31151 | PyObject * obj5 = 0 ; | |
31152 | PyObject * obj6 = 0 ; | |
31153 | PyObject * obj7 = 0 ; | |
31154 | PyObject * obj8 = 0 ; | |
31155 | char *kwnames[] = { | |
31156 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31157 | }; | |
31158 | ||
31159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
093d3ff1 RD |
31160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 31162 | if (obj1) { |
093d3ff1 RD |
31163 | { |
31164 | arg2 = (int const)(SWIG_As_int(obj1)); | |
31165 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31166 | } | |
d55e5bfc RD |
31167 | } |
31168 | if (obj2) { | |
31169 | { | |
31170 | arg3 = wxString_in_helper(obj2); | |
31171 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31172 | temp3 = true; |
d55e5bfc RD |
31173 | } |
31174 | } | |
31175 | if (obj3) { | |
31176 | { | |
31177 | arg4 = &temp4; | |
31178 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31179 | } | |
31180 | } | |
31181 | if (obj4) { | |
31182 | { | |
31183 | arg5 = &temp5; | |
31184 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31185 | } | |
31186 | } | |
31187 | if (obj5) { | |
093d3ff1 RD |
31188 | { |
31189 | arg6 = (long)(SWIG_As_long(obj5)); | |
31190 | if (SWIG_arg_fail(6)) SWIG_fail; | |
31191 | } | |
d55e5bfc RD |
31192 | } |
31193 | if (obj6) { | |
31194 | { | |
31195 | arg7 = wxString_in_helper(obj6); | |
31196 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 31197 | temp7 = true; |
d55e5bfc RD |
31198 | } |
31199 | } | |
31200 | if (obj7) { | |
093d3ff1 RD |
31201 | { |
31202 | arg8 = (int)(SWIG_As_int(obj7)); | |
31203 | if (SWIG_arg_fail(8)) SWIG_fail; | |
31204 | } | |
d55e5bfc RD |
31205 | } |
31206 | if (obj8) { | |
31207 | { | |
31208 | arg9 = wxString_in_helper(obj8); | |
31209 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 31210 | temp9 = true; |
d55e5bfc RD |
31211 | } |
31212 | } | |
31213 | { | |
0439c23b | 31214 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31216 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
31217 | ||
31218 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31219 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31220 | } |
31221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
31222 | { | |
31223 | if (temp3) | |
31224 | delete arg3; | |
31225 | } | |
31226 | { | |
31227 | if (temp7) | |
31228 | delete arg7; | |
31229 | } | |
31230 | { | |
31231 | if (temp9) | |
31232 | delete arg9; | |
31233 | } | |
31234 | return resultobj; | |
31235 | fail: | |
31236 | { | |
31237 | if (temp3) | |
31238 | delete arg3; | |
31239 | } | |
31240 | { | |
31241 | if (temp7) | |
31242 | delete arg7; | |
31243 | } | |
31244 | { | |
31245 | if (temp9) | |
31246 | delete arg9; | |
31247 | } | |
31248 | return NULL; | |
31249 | } | |
31250 | ||
31251 | ||
c32bde28 | 31252 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31253 | PyObject *resultobj; |
31254 | wxGenericDirCtrl *result; | |
31255 | char *kwnames[] = { | |
31256 | NULL | |
31257 | }; | |
31258 | ||
31259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
31260 | { | |
0439c23b | 31261 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31263 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
31264 | ||
31265 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31266 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
31267 | } |
31268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
31269 | return resultobj; | |
31270 | fail: | |
31271 | return NULL; | |
31272 | } | |
31273 | ||
31274 | ||
c32bde28 | 31275 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31276 | PyObject *resultobj; |
31277 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31278 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31279 | int arg3 = (int) (int)-1 ; | |
31280 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
31281 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31282 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
31283 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
31284 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
31285 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
31286 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31287 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
31288 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31289 | int arg9 = (int) 0 ; | |
31290 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
31291 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
31292 | bool result; | |
ae8162c8 | 31293 | bool temp4 = false ; |
d55e5bfc RD |
31294 | wxPoint temp5 ; |
31295 | wxSize temp6 ; | |
ae8162c8 RD |
31296 | bool temp8 = false ; |
31297 | bool temp10 = false ; | |
d55e5bfc RD |
31298 | PyObject * obj0 = 0 ; |
31299 | PyObject * obj1 = 0 ; | |
31300 | PyObject * obj2 = 0 ; | |
31301 | PyObject * obj3 = 0 ; | |
31302 | PyObject * obj4 = 0 ; | |
31303 | PyObject * obj5 = 0 ; | |
31304 | PyObject * obj6 = 0 ; | |
31305 | PyObject * obj7 = 0 ; | |
31306 | PyObject * obj8 = 0 ; | |
31307 | PyObject * obj9 = 0 ; | |
31308 | char *kwnames[] = { | |
31309 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31310 | }; | |
31311 | ||
31312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
093d3ff1 RD |
31313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31315 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
31316 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 31317 | if (obj2) { |
093d3ff1 RD |
31318 | { |
31319 | arg3 = (int const)(SWIG_As_int(obj2)); | |
31320 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31321 | } | |
d55e5bfc RD |
31322 | } |
31323 | if (obj3) { | |
31324 | { | |
31325 | arg4 = wxString_in_helper(obj3); | |
31326 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31327 | temp4 = true; |
d55e5bfc RD |
31328 | } |
31329 | } | |
31330 | if (obj4) { | |
31331 | { | |
31332 | arg5 = &temp5; | |
31333 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
31334 | } | |
31335 | } | |
31336 | if (obj5) { | |
31337 | { | |
31338 | arg6 = &temp6; | |
31339 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
31340 | } | |
31341 | } | |
31342 | if (obj6) { | |
093d3ff1 RD |
31343 | { |
31344 | arg7 = (long)(SWIG_As_long(obj6)); | |
31345 | if (SWIG_arg_fail(7)) SWIG_fail; | |
31346 | } | |
d55e5bfc RD |
31347 | } |
31348 | if (obj7) { | |
31349 | { | |
31350 | arg8 = wxString_in_helper(obj7); | |
31351 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 31352 | temp8 = true; |
d55e5bfc RD |
31353 | } |
31354 | } | |
31355 | if (obj8) { | |
093d3ff1 RD |
31356 | { |
31357 | arg9 = (int)(SWIG_As_int(obj8)); | |
31358 | if (SWIG_arg_fail(9)) SWIG_fail; | |
31359 | } | |
d55e5bfc RD |
31360 | } |
31361 | if (obj9) { | |
31362 | { | |
31363 | arg10 = wxString_in_helper(obj9); | |
31364 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 31365 | temp10 = true; |
d55e5bfc RD |
31366 | } |
31367 | } | |
31368 | { | |
31369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31370 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
31371 | ||
31372 | wxPyEndAllowThreads(__tstate); | |
31373 | if (PyErr_Occurred()) SWIG_fail; | |
31374 | } | |
31375 | { | |
31376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31377 | } | |
31378 | { | |
31379 | if (temp4) | |
31380 | delete arg4; | |
31381 | } | |
31382 | { | |
31383 | if (temp8) | |
31384 | delete arg8; | |
31385 | } | |
31386 | { | |
31387 | if (temp10) | |
31388 | delete arg10; | |
31389 | } | |
31390 | return resultobj; | |
31391 | fail: | |
31392 | { | |
31393 | if (temp4) | |
31394 | delete arg4; | |
31395 | } | |
31396 | { | |
31397 | if (temp8) | |
31398 | delete arg8; | |
31399 | } | |
31400 | { | |
31401 | if (temp10) | |
31402 | delete arg10; | |
31403 | } | |
31404 | return NULL; | |
31405 | } | |
31406 | ||
31407 | ||
c32bde28 | 31408 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31409 | PyObject *resultobj; |
31410 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31411 | wxString *arg2 = 0 ; | |
31412 | bool result; | |
ae8162c8 | 31413 | bool temp2 = false ; |
d55e5bfc RD |
31414 | PyObject * obj0 = 0 ; |
31415 | PyObject * obj1 = 0 ; | |
31416 | char *kwnames[] = { | |
31417 | (char *) "self",(char *) "path", NULL | |
31418 | }; | |
31419 | ||
31420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31423 | { |
31424 | arg2 = wxString_in_helper(obj1); | |
31425 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31426 | temp2 = true; |
d55e5bfc RD |
31427 | } |
31428 | { | |
31429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31430 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
31431 | ||
31432 | wxPyEndAllowThreads(__tstate); | |
31433 | if (PyErr_Occurred()) SWIG_fail; | |
31434 | } | |
31435 | { | |
31436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31437 | } | |
31438 | { | |
31439 | if (temp2) | |
31440 | delete arg2; | |
31441 | } | |
31442 | return resultobj; | |
31443 | fail: | |
31444 | { | |
31445 | if (temp2) | |
31446 | delete arg2; | |
31447 | } | |
31448 | return NULL; | |
31449 | } | |
31450 | ||
31451 | ||
c32bde28 | 31452 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31453 | PyObject *resultobj; |
31454 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31455 | wxString result; | |
31456 | PyObject * obj0 = 0 ; | |
31457 | char *kwnames[] = { | |
31458 | (char *) "self", NULL | |
31459 | }; | |
31460 | ||
31461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31464 | { |
31465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31466 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
31467 | ||
31468 | wxPyEndAllowThreads(__tstate); | |
31469 | if (PyErr_Occurred()) SWIG_fail; | |
31470 | } | |
31471 | { | |
31472 | #if wxUSE_UNICODE | |
31473 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31474 | #else | |
31475 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31476 | #endif | |
31477 | } | |
31478 | return resultobj; | |
31479 | fail: | |
31480 | return NULL; | |
31481 | } | |
31482 | ||
31483 | ||
c32bde28 | 31484 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31485 | PyObject *resultobj; |
31486 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31487 | wxString *arg2 = 0 ; | |
ae8162c8 | 31488 | bool temp2 = false ; |
d55e5bfc RD |
31489 | PyObject * obj0 = 0 ; |
31490 | PyObject * obj1 = 0 ; | |
31491 | char *kwnames[] = { | |
31492 | (char *) "self",(char *) "path", NULL | |
31493 | }; | |
31494 | ||
31495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31498 | { |
31499 | arg2 = wxString_in_helper(obj1); | |
31500 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31501 | temp2 = true; |
d55e5bfc RD |
31502 | } |
31503 | { | |
31504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31505 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
31506 | ||
31507 | wxPyEndAllowThreads(__tstate); | |
31508 | if (PyErr_Occurred()) SWIG_fail; | |
31509 | } | |
31510 | Py_INCREF(Py_None); resultobj = Py_None; | |
31511 | { | |
31512 | if (temp2) | |
31513 | delete arg2; | |
31514 | } | |
31515 | return resultobj; | |
31516 | fail: | |
31517 | { | |
31518 | if (temp2) | |
31519 | delete arg2; | |
31520 | } | |
31521 | return NULL; | |
31522 | } | |
31523 | ||
31524 | ||
c32bde28 | 31525 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31526 | PyObject *resultobj; |
31527 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31528 | wxString result; | |
31529 | PyObject * obj0 = 0 ; | |
31530 | char *kwnames[] = { | |
31531 | (char *) "self", NULL | |
31532 | }; | |
31533 | ||
31534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31537 | { |
31538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31539 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
31540 | ||
31541 | wxPyEndAllowThreads(__tstate); | |
31542 | if (PyErr_Occurred()) SWIG_fail; | |
31543 | } | |
31544 | { | |
31545 | #if wxUSE_UNICODE | |
31546 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31547 | #else | |
31548 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31549 | #endif | |
31550 | } | |
31551 | return resultobj; | |
31552 | fail: | |
31553 | return NULL; | |
31554 | } | |
31555 | ||
31556 | ||
c32bde28 | 31557 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31558 | PyObject *resultobj; |
31559 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31560 | wxString result; | |
31561 | PyObject * obj0 = 0 ; | |
31562 | char *kwnames[] = { | |
31563 | (char *) "self", NULL | |
31564 | }; | |
31565 | ||
31566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31569 | { |
31570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31571 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
31572 | ||
31573 | wxPyEndAllowThreads(__tstate); | |
31574 | if (PyErr_Occurred()) SWIG_fail; | |
31575 | } | |
31576 | { | |
31577 | #if wxUSE_UNICODE | |
31578 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31579 | #else | |
31580 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31581 | #endif | |
31582 | } | |
31583 | return resultobj; | |
31584 | fail: | |
31585 | return NULL; | |
31586 | } | |
31587 | ||
31588 | ||
c32bde28 | 31589 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31590 | PyObject *resultobj; |
31591 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31592 | wxString *arg2 = 0 ; | |
ae8162c8 | 31593 | bool temp2 = false ; |
d55e5bfc RD |
31594 | PyObject * obj0 = 0 ; |
31595 | PyObject * obj1 = 0 ; | |
31596 | char *kwnames[] = { | |
31597 | (char *) "self",(char *) "path", NULL | |
31598 | }; | |
31599 | ||
31600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31603 | { |
31604 | arg2 = wxString_in_helper(obj1); | |
31605 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31606 | temp2 = true; |
d55e5bfc RD |
31607 | } |
31608 | { | |
31609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31610 | (arg1)->SetPath((wxString const &)*arg2); | |
31611 | ||
31612 | wxPyEndAllowThreads(__tstate); | |
31613 | if (PyErr_Occurred()) SWIG_fail; | |
31614 | } | |
31615 | Py_INCREF(Py_None); resultobj = Py_None; | |
31616 | { | |
31617 | if (temp2) | |
31618 | delete arg2; | |
31619 | } | |
31620 | return resultobj; | |
31621 | fail: | |
31622 | { | |
31623 | if (temp2) | |
31624 | delete arg2; | |
31625 | } | |
31626 | return NULL; | |
31627 | } | |
31628 | ||
31629 | ||
c32bde28 | 31630 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31631 | PyObject *resultobj; |
31632 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31633 | bool arg2 ; | |
31634 | PyObject * obj0 = 0 ; | |
31635 | PyObject * obj1 = 0 ; | |
31636 | char *kwnames[] = { | |
31637 | (char *) "self",(char *) "show", NULL | |
31638 | }; | |
31639 | ||
31640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31643 | { | |
31644 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
31645 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31646 | } | |
d55e5bfc RD |
31647 | { |
31648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31649 | (arg1)->ShowHidden(arg2); | |
31650 | ||
31651 | wxPyEndAllowThreads(__tstate); | |
31652 | if (PyErr_Occurred()) SWIG_fail; | |
31653 | } | |
31654 | Py_INCREF(Py_None); resultobj = Py_None; | |
31655 | return resultobj; | |
31656 | fail: | |
31657 | return NULL; | |
31658 | } | |
31659 | ||
31660 | ||
c32bde28 | 31661 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31662 | PyObject *resultobj; |
31663 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31664 | bool result; | |
31665 | PyObject * obj0 = 0 ; | |
31666 | char *kwnames[] = { | |
31667 | (char *) "self", NULL | |
31668 | }; | |
31669 | ||
31670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31671 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31672 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31673 | { |
31674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31675 | result = (bool)(arg1)->GetShowHidden(); | |
31676 | ||
31677 | wxPyEndAllowThreads(__tstate); | |
31678 | if (PyErr_Occurred()) SWIG_fail; | |
31679 | } | |
31680 | { | |
31681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31682 | } | |
31683 | return resultobj; | |
31684 | fail: | |
31685 | return NULL; | |
31686 | } | |
31687 | ||
31688 | ||
c32bde28 | 31689 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31690 | PyObject *resultobj; |
31691 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31692 | wxString result; | |
31693 | PyObject * obj0 = 0 ; | |
31694 | char *kwnames[] = { | |
31695 | (char *) "self", NULL | |
31696 | }; | |
31697 | ||
31698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31701 | { |
31702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31703 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
31704 | ||
31705 | wxPyEndAllowThreads(__tstate); | |
31706 | if (PyErr_Occurred()) SWIG_fail; | |
31707 | } | |
31708 | { | |
31709 | #if wxUSE_UNICODE | |
31710 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31711 | #else | |
31712 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31713 | #endif | |
31714 | } | |
31715 | return resultobj; | |
31716 | fail: | |
31717 | return NULL; | |
31718 | } | |
31719 | ||
31720 | ||
c32bde28 | 31721 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31722 | PyObject *resultobj; |
31723 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31724 | wxString *arg2 = 0 ; | |
ae8162c8 | 31725 | bool temp2 = false ; |
d55e5bfc RD |
31726 | PyObject * obj0 = 0 ; |
31727 | PyObject * obj1 = 0 ; | |
31728 | char *kwnames[] = { | |
31729 | (char *) "self",(char *) "filter", NULL | |
31730 | }; | |
31731 | ||
31732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31735 | { |
31736 | arg2 = wxString_in_helper(obj1); | |
31737 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31738 | temp2 = true; |
d55e5bfc RD |
31739 | } |
31740 | { | |
31741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31742 | (arg1)->SetFilter((wxString const &)*arg2); | |
31743 | ||
31744 | wxPyEndAllowThreads(__tstate); | |
31745 | if (PyErr_Occurred()) SWIG_fail; | |
31746 | } | |
31747 | Py_INCREF(Py_None); resultobj = Py_None; | |
31748 | { | |
31749 | if (temp2) | |
31750 | delete arg2; | |
31751 | } | |
31752 | return resultobj; | |
31753 | fail: | |
31754 | { | |
31755 | if (temp2) | |
31756 | delete arg2; | |
31757 | } | |
31758 | return NULL; | |
31759 | } | |
31760 | ||
31761 | ||
c32bde28 | 31762 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31763 | PyObject *resultobj; |
31764 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31765 | int result; | |
31766 | PyObject * obj0 = 0 ; | |
31767 | char *kwnames[] = { | |
31768 | (char *) "self", NULL | |
31769 | }; | |
31770 | ||
31771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31774 | { |
31775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31776 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
31777 | ||
31778 | wxPyEndAllowThreads(__tstate); | |
31779 | if (PyErr_Occurred()) SWIG_fail; | |
31780 | } | |
093d3ff1 RD |
31781 | { |
31782 | resultobj = SWIG_From_int((int)(result)); | |
31783 | } | |
d55e5bfc RD |
31784 | return resultobj; |
31785 | fail: | |
31786 | return NULL; | |
31787 | } | |
31788 | ||
31789 | ||
c32bde28 | 31790 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31791 | PyObject *resultobj; |
31792 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31793 | int arg2 ; | |
31794 | PyObject * obj0 = 0 ; | |
31795 | PyObject * obj1 = 0 ; | |
31796 | char *kwnames[] = { | |
31797 | (char *) "self",(char *) "n", NULL | |
31798 | }; | |
31799 | ||
31800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31801 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31802 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31803 | { | |
31804 | arg2 = (int)(SWIG_As_int(obj1)); | |
31805 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31806 | } | |
d55e5bfc RD |
31807 | { |
31808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31809 | (arg1)->SetFilterIndex(arg2); | |
31810 | ||
31811 | wxPyEndAllowThreads(__tstate); | |
31812 | if (PyErr_Occurred()) SWIG_fail; | |
31813 | } | |
31814 | Py_INCREF(Py_None); resultobj = Py_None; | |
31815 | return resultobj; | |
31816 | fail: | |
31817 | return NULL; | |
31818 | } | |
31819 | ||
31820 | ||
c32bde28 | 31821 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31822 | PyObject *resultobj; |
31823 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31824 | wxTreeItemId result; | |
31825 | PyObject * obj0 = 0 ; | |
31826 | char *kwnames[] = { | |
31827 | (char *) "self", NULL | |
31828 | }; | |
31829 | ||
31830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31833 | { |
31834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31835 | result = (arg1)->GetRootId(); | |
31836 | ||
31837 | wxPyEndAllowThreads(__tstate); | |
31838 | if (PyErr_Occurred()) SWIG_fail; | |
31839 | } | |
31840 | { | |
31841 | wxTreeItemId * resultptr; | |
093d3ff1 | 31842 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
31843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
31844 | } | |
31845 | return resultobj; | |
31846 | fail: | |
31847 | return NULL; | |
31848 | } | |
31849 | ||
31850 | ||
c32bde28 | 31851 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31852 | PyObject *resultobj; |
31853 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31854 | wxPyTreeCtrl *result; | |
31855 | PyObject * obj0 = 0 ; | |
31856 | char *kwnames[] = { | |
31857 | (char *) "self", NULL | |
31858 | }; | |
31859 | ||
31860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31863 | { |
31864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31865 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
31866 | ||
31867 | wxPyEndAllowThreads(__tstate); | |
31868 | if (PyErr_Occurred()) SWIG_fail; | |
31869 | } | |
31870 | { | |
412d302d | 31871 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31872 | } |
31873 | return resultobj; | |
31874 | fail: | |
31875 | return NULL; | |
31876 | } | |
31877 | ||
31878 | ||
c32bde28 | 31879 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31880 | PyObject *resultobj; |
31881 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31882 | wxDirFilterListCtrl *result; | |
31883 | PyObject * obj0 = 0 ; | |
31884 | char *kwnames[] = { | |
31885 | (char *) "self", NULL | |
31886 | }; | |
31887 | ||
31888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31891 | { |
31892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31893 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
31894 | ||
31895 | wxPyEndAllowThreads(__tstate); | |
31896 | if (PyErr_Occurred()) SWIG_fail; | |
31897 | } | |
31898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
31899 | return resultobj; | |
31900 | fail: | |
31901 | return NULL; | |
31902 | } | |
31903 | ||
31904 | ||
c32bde28 | 31905 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31906 | PyObject *resultobj; |
31907 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31908 | wxTreeItemId arg2 ; | |
31909 | wxString *arg3 = 0 ; | |
31910 | bool *arg4 = 0 ; | |
31911 | wxTreeItemId result; | |
ae8162c8 | 31912 | bool temp3 = false ; |
d55e5bfc | 31913 | bool temp4 ; |
c32bde28 | 31914 | int res4 = 0 ; |
d55e5bfc RD |
31915 | PyObject * obj0 = 0 ; |
31916 | PyObject * obj1 = 0 ; | |
31917 | PyObject * obj2 = 0 ; | |
31918 | char *kwnames[] = { | |
31919 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
31920 | }; | |
31921 | ||
c32bde28 | 31922 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d55e5bfc | 31923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
31924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31926 | { | |
31927 | wxTreeItemId * argp; | |
31928 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION); | |
31929 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31930 | if (argp == NULL) { | |
31931 | SWIG_null_ref("wxTreeItemId"); | |
31932 | } | |
31933 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31934 | arg2 = *argp; | |
31935 | } | |
d55e5bfc RD |
31936 | { |
31937 | arg3 = wxString_in_helper(obj2); | |
31938 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31939 | temp3 = true; |
d55e5bfc RD |
31940 | } |
31941 | { | |
31942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31943 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
31944 | ||
31945 | wxPyEndAllowThreads(__tstate); | |
31946 | if (PyErr_Occurred()) SWIG_fail; | |
31947 | } | |
31948 | { | |
31949 | wxTreeItemId * resultptr; | |
093d3ff1 | 31950 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
d55e5bfc RD |
31951 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
31952 | } | |
c32bde28 RD |
31953 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
31954 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d55e5bfc RD |
31955 | { |
31956 | if (temp3) | |
31957 | delete arg3; | |
31958 | } | |
31959 | return resultobj; | |
31960 | fail: | |
31961 | { | |
31962 | if (temp3) | |
31963 | delete arg3; | |
31964 | } | |
31965 | return NULL; | |
31966 | } | |
31967 | ||
31968 | ||
c32bde28 | 31969 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31970 | PyObject *resultobj; |
31971 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31972 | PyObject * obj0 = 0 ; | |
31973 | char *kwnames[] = { | |
31974 | (char *) "self", NULL | |
31975 | }; | |
31976 | ||
31977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
31980 | { |
31981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31982 | (arg1)->DoResize(); | |
31983 | ||
31984 | wxPyEndAllowThreads(__tstate); | |
31985 | if (PyErr_Occurred()) SWIG_fail; | |
31986 | } | |
31987 | Py_INCREF(Py_None); resultobj = Py_None; | |
31988 | return resultobj; | |
31989 | fail: | |
31990 | return NULL; | |
31991 | } | |
31992 | ||
31993 | ||
c32bde28 | 31994 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31995 | PyObject *resultobj; |
31996 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31997 | PyObject * obj0 = 0 ; | |
31998 | char *kwnames[] = { | |
31999 | (char *) "self", NULL | |
32000 | }; | |
32001 | ||
32002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32005 | { |
32006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32007 | (arg1)->ReCreateTree(); | |
32008 | ||
32009 | wxPyEndAllowThreads(__tstate); | |
32010 | if (PyErr_Occurred()) SWIG_fail; | |
32011 | } | |
32012 | Py_INCREF(Py_None); resultobj = Py_None; | |
32013 | return resultobj; | |
32014 | fail: | |
32015 | return NULL; | |
32016 | } | |
32017 | ||
32018 | ||
c32bde28 | 32019 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32020 | PyObject *obj; |
32021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32022 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
32023 | Py_INCREF(obj); | |
32024 | return Py_BuildValue((char *)""); | |
32025 | } | |
c32bde28 | 32026 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32027 | PyObject *resultobj; |
32028 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
32029 | int arg2 = (int) (int)-1 ; | |
32030 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32031 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32032 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32033 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32034 | long arg5 = (long) 0 ; | |
32035 | wxDirFilterListCtrl *result; | |
32036 | wxPoint temp3 ; | |
32037 | wxSize temp4 ; | |
32038 | PyObject * obj0 = 0 ; | |
32039 | PyObject * obj1 = 0 ; | |
32040 | PyObject * obj2 = 0 ; | |
32041 | PyObject * obj3 = 0 ; | |
32042 | PyObject * obj4 = 0 ; | |
32043 | char *kwnames[] = { | |
32044 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
32045 | }; | |
32046 | ||
32047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 32050 | if (obj1) { |
093d3ff1 RD |
32051 | { |
32052 | arg2 = (int const)(SWIG_As_int(obj1)); | |
32053 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32054 | } | |
d55e5bfc RD |
32055 | } |
32056 | if (obj2) { | |
32057 | { | |
32058 | arg3 = &temp3; | |
32059 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32060 | } | |
32061 | } | |
32062 | if (obj3) { | |
32063 | { | |
32064 | arg4 = &temp4; | |
32065 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32066 | } | |
32067 | } | |
32068 | if (obj4) { | |
093d3ff1 RD |
32069 | { |
32070 | arg5 = (long)(SWIG_As_long(obj4)); | |
32071 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32072 | } | |
d55e5bfc RD |
32073 | } |
32074 | { | |
0439c23b | 32075 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32077 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
32078 | ||
32079 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32080 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32081 | } |
32082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
32083 | return resultobj; | |
32084 | fail: | |
32085 | return NULL; | |
32086 | } | |
32087 | ||
32088 | ||
c32bde28 | 32089 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32090 | PyObject *resultobj; |
32091 | wxDirFilterListCtrl *result; | |
32092 | char *kwnames[] = { | |
32093 | NULL | |
32094 | }; | |
32095 | ||
32096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
32097 | { | |
0439c23b | 32098 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32100 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
32101 | ||
32102 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32103 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32104 | } |
32105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
32106 | return resultobj; | |
32107 | fail: | |
32108 | return NULL; | |
32109 | } | |
32110 | ||
32111 | ||
c32bde28 | 32112 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32113 | PyObject *resultobj; |
32114 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
32115 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
32116 | int arg3 = (int) (int)-1 ; | |
32117 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
32118 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32119 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32120 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32121 | long arg6 = (long) 0 ; | |
32122 | bool result; | |
32123 | wxPoint temp4 ; | |
32124 | wxSize temp5 ; | |
32125 | PyObject * obj0 = 0 ; | |
32126 | PyObject * obj1 = 0 ; | |
32127 | PyObject * obj2 = 0 ; | |
32128 | PyObject * obj3 = 0 ; | |
32129 | PyObject * obj4 = 0 ; | |
32130 | PyObject * obj5 = 0 ; | |
32131 | char *kwnames[] = { | |
32132 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
32133 | }; | |
32134 | ||
32135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
32136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
32137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32138 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
32139 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 32140 | if (obj2) { |
093d3ff1 RD |
32141 | { |
32142 | arg3 = (int const)(SWIG_As_int(obj2)); | |
32143 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32144 | } | |
d55e5bfc RD |
32145 | } |
32146 | if (obj3) { | |
32147 | { | |
32148 | arg4 = &temp4; | |
32149 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32150 | } | |
32151 | } | |
32152 | if (obj4) { | |
32153 | { | |
32154 | arg5 = &temp5; | |
32155 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32156 | } | |
32157 | } | |
32158 | if (obj5) { | |
093d3ff1 RD |
32159 | { |
32160 | arg6 = (long)(SWIG_As_long(obj5)); | |
32161 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32162 | } | |
d55e5bfc RD |
32163 | } |
32164 | { | |
32165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32166 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
32167 | ||
32168 | wxPyEndAllowThreads(__tstate); | |
32169 | if (PyErr_Occurred()) SWIG_fail; | |
32170 | } | |
32171 | { | |
32172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32173 | } | |
32174 | return resultobj; | |
32175 | fail: | |
32176 | return NULL; | |
32177 | } | |
32178 | ||
32179 | ||
c32bde28 | 32180 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32181 | PyObject *resultobj; |
32182 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
32183 | wxString *arg2 = 0 ; | |
32184 | int arg3 ; | |
ae8162c8 | 32185 | bool temp2 = false ; |
d55e5bfc RD |
32186 | PyObject * obj0 = 0 ; |
32187 | PyObject * obj1 = 0 ; | |
32188 | PyObject * obj2 = 0 ; | |
32189 | char *kwnames[] = { | |
32190 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
32191 | }; | |
32192 | ||
32193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
32195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32196 | { |
32197 | arg2 = wxString_in_helper(obj1); | |
32198 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32199 | temp2 = true; |
d55e5bfc | 32200 | } |
093d3ff1 RD |
32201 | { |
32202 | arg3 = (int)(SWIG_As_int(obj2)); | |
32203 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32204 | } | |
d55e5bfc RD |
32205 | { |
32206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32207 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
32208 | ||
32209 | wxPyEndAllowThreads(__tstate); | |
32210 | if (PyErr_Occurred()) SWIG_fail; | |
32211 | } | |
32212 | Py_INCREF(Py_None); resultobj = Py_None; | |
32213 | { | |
32214 | if (temp2) | |
32215 | delete arg2; | |
32216 | } | |
32217 | return resultobj; | |
32218 | fail: | |
32219 | { | |
32220 | if (temp2) | |
32221 | delete arg2; | |
32222 | } | |
32223 | return NULL; | |
32224 | } | |
32225 | ||
32226 | ||
c32bde28 | 32227 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32228 | PyObject *obj; |
32229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32230 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
32231 | Py_INCREF(obj); | |
32232 | return Py_BuildValue((char *)""); | |
32233 | } | |
c32bde28 | 32234 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32235 | PyObject *resultobj; |
32236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 32237 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
32238 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32239 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32240 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32241 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32242 | long arg5 = (long) 0 ; | |
32243 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32244 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32245 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32246 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32247 | wxPyControl *result; | |
32248 | wxPoint temp3 ; | |
32249 | wxSize temp4 ; | |
ae8162c8 | 32250 | bool temp7 = false ; |
d55e5bfc RD |
32251 | PyObject * obj0 = 0 ; |
32252 | PyObject * obj1 = 0 ; | |
32253 | PyObject * obj2 = 0 ; | |
32254 | PyObject * obj3 = 0 ; | |
32255 | PyObject * obj4 = 0 ; | |
32256 | PyObject * obj5 = 0 ; | |
32257 | PyObject * obj6 = 0 ; | |
32258 | char *kwnames[] = { | |
32259 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32260 | }; | |
32261 | ||
248ed943 | 32262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
32263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 32265 | if (obj1) { |
093d3ff1 RD |
32266 | { |
32267 | arg2 = (int const)(SWIG_As_int(obj1)); | |
32268 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32269 | } | |
248ed943 | 32270 | } |
d55e5bfc RD |
32271 | if (obj2) { |
32272 | { | |
32273 | arg3 = &temp3; | |
32274 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32275 | } | |
32276 | } | |
32277 | if (obj3) { | |
32278 | { | |
32279 | arg4 = &temp4; | |
32280 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32281 | } | |
32282 | } | |
32283 | if (obj4) { | |
093d3ff1 RD |
32284 | { |
32285 | arg5 = (long)(SWIG_As_long(obj4)); | |
32286 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32287 | } | |
d55e5bfc RD |
32288 | } |
32289 | if (obj5) { | |
093d3ff1 RD |
32290 | { |
32291 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
32292 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32293 | if (arg6 == NULL) { | |
32294 | SWIG_null_ref("wxValidator"); | |
32295 | } | |
32296 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d55e5bfc RD |
32297 | } |
32298 | } | |
32299 | if (obj6) { | |
32300 | { | |
32301 | arg7 = wxString_in_helper(obj6); | |
32302 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 32303 | temp7 = true; |
d55e5bfc RD |
32304 | } |
32305 | } | |
32306 | { | |
0439c23b | 32307 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32309 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32310 | ||
32311 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32312 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32313 | } |
32314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32315 | { | |
32316 | if (temp7) | |
32317 | delete arg7; | |
32318 | } | |
32319 | return resultobj; | |
32320 | fail: | |
32321 | { | |
32322 | if (temp7) | |
32323 | delete arg7; | |
32324 | } | |
32325 | return NULL; | |
32326 | } | |
32327 | ||
32328 | ||
c32bde28 | 32329 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32330 | PyObject *resultobj; |
32331 | wxPyControl *result; | |
32332 | char *kwnames[] = { | |
32333 | NULL | |
32334 | }; | |
32335 | ||
32336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
32337 | { | |
0439c23b | 32338 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
32339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32340 | result = (wxPyControl *)new wxPyControl(); | |
32341 | ||
32342 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32343 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
32344 | } |
32345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32346 | return resultobj; | |
32347 | fail: | |
32348 | return NULL; | |
32349 | } | |
32350 | ||
32351 | ||
c32bde28 | 32352 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32353 | PyObject *resultobj; |
32354 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32355 | PyObject *arg2 = (PyObject *) 0 ; | |
32356 | PyObject *arg3 = (PyObject *) 0 ; | |
32357 | PyObject * obj0 = 0 ; | |
32358 | PyObject * obj1 = 0 ; | |
32359 | PyObject * obj2 = 0 ; | |
32360 | char *kwnames[] = { | |
32361 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
32362 | }; | |
32363 | ||
32364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32367 | arg2 = obj1; |
32368 | arg3 = obj2; | |
32369 | { | |
32370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32371 | (arg1)->_setCallbackInfo(arg2,arg3); | |
32372 | ||
32373 | wxPyEndAllowThreads(__tstate); | |
32374 | if (PyErr_Occurred()) SWIG_fail; | |
32375 | } | |
32376 | Py_INCREF(Py_None); resultobj = Py_None; | |
32377 | return resultobj; | |
32378 | fail: | |
32379 | return NULL; | |
32380 | } | |
32381 | ||
32382 | ||
c32bde28 | 32383 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
caef1a4d RD |
32384 | PyObject *resultobj; |
32385 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32386 | wxSize *arg2 = 0 ; | |
32387 | wxSize temp2 ; | |
32388 | PyObject * obj0 = 0 ; | |
32389 | PyObject * obj1 = 0 ; | |
32390 | char *kwnames[] = { | |
32391 | (char *) "self",(char *) "size", NULL | |
32392 | }; | |
32393 | ||
32394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
caef1a4d RD |
32397 | { |
32398 | arg2 = &temp2; | |
32399 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
32400 | } | |
32401 | { | |
32402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32403 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
32404 | ||
32405 | wxPyEndAllowThreads(__tstate); | |
32406 | if (PyErr_Occurred()) SWIG_fail; | |
32407 | } | |
32408 | Py_INCREF(Py_None); resultobj = Py_None; | |
32409 | return resultobj; | |
32410 | fail: | |
32411 | return NULL; | |
32412 | } | |
32413 | ||
32414 | ||
60d5fcc1 RD |
32415 | static PyObject *_wrap_PyControl_DoEraseBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32416 | PyObject *resultobj; | |
32417 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32418 | wxDC *arg2 = (wxDC *) 0 ; | |
32419 | bool result; | |
32420 | PyObject * obj0 = 0 ; | |
32421 | PyObject * obj1 = 0 ; | |
32422 | char *kwnames[] = { | |
32423 | (char *) "self",(char *) "dc", NULL | |
32424 | }; | |
32425 | ||
32426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) goto fail; | |
32427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32429 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
32430 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32431 | { | |
32432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32433 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
32434 | ||
32435 | wxPyEndAllowThreads(__tstate); | |
32436 | if (PyErr_Occurred()) SWIG_fail; | |
32437 | } | |
32438 | { | |
32439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32440 | } | |
32441 | return resultobj; | |
32442 | fail: | |
32443 | return NULL; | |
32444 | } | |
32445 | ||
32446 | ||
c32bde28 | 32447 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32448 | PyObject *resultobj; |
32449 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32450 | int arg2 ; | |
32451 | int arg3 ; | |
32452 | int arg4 ; | |
32453 | int arg5 ; | |
32454 | PyObject * obj0 = 0 ; | |
32455 | PyObject * obj1 = 0 ; | |
32456 | PyObject * obj2 = 0 ; | |
32457 | PyObject * obj3 = 0 ; | |
32458 | PyObject * obj4 = 0 ; | |
32459 | char *kwnames[] = { | |
32460 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
32461 | }; | |
32462 | ||
32463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
32464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32466 | { | |
32467 | arg2 = (int)(SWIG_As_int(obj1)); | |
32468 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32469 | } | |
32470 | { | |
32471 | arg3 = (int)(SWIG_As_int(obj2)); | |
32472 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32473 | } | |
32474 | { | |
32475 | arg4 = (int)(SWIG_As_int(obj3)); | |
32476 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32477 | } | |
32478 | { | |
32479 | arg5 = (int)(SWIG_As_int(obj4)); | |
32480 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32481 | } | |
d55e5bfc RD |
32482 | { |
32483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32484 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
32485 | ||
32486 | wxPyEndAllowThreads(__tstate); | |
32487 | if (PyErr_Occurred()) SWIG_fail; | |
32488 | } | |
32489 | Py_INCREF(Py_None); resultobj = Py_None; | |
32490 | return resultobj; | |
32491 | fail: | |
32492 | return NULL; | |
32493 | } | |
32494 | ||
32495 | ||
c32bde28 | 32496 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32497 | PyObject *resultobj; |
32498 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32499 | int arg2 ; | |
32500 | int arg3 ; | |
32501 | int arg4 ; | |
32502 | int arg5 ; | |
32503 | int arg6 = (int) wxSIZE_AUTO ; | |
32504 | PyObject * obj0 = 0 ; | |
32505 | PyObject * obj1 = 0 ; | |
32506 | PyObject * obj2 = 0 ; | |
32507 | PyObject * obj3 = 0 ; | |
32508 | PyObject * obj4 = 0 ; | |
32509 | PyObject * obj5 = 0 ; | |
32510 | char *kwnames[] = { | |
32511 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
32512 | }; | |
32513 | ||
32514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
32515 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32516 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32517 | { | |
32518 | arg2 = (int)(SWIG_As_int(obj1)); | |
32519 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32520 | } | |
32521 | { | |
32522 | arg3 = (int)(SWIG_As_int(obj2)); | |
32523 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32524 | } | |
32525 | { | |
32526 | arg4 = (int)(SWIG_As_int(obj3)); | |
32527 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32528 | } | |
32529 | { | |
32530 | arg5 = (int)(SWIG_As_int(obj4)); | |
32531 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32532 | } | |
d55e5bfc | 32533 | if (obj5) { |
093d3ff1 RD |
32534 | { |
32535 | arg6 = (int)(SWIG_As_int(obj5)); | |
32536 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32537 | } | |
d55e5bfc RD |
32538 | } |
32539 | { | |
32540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32541 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
32542 | ||
32543 | wxPyEndAllowThreads(__tstate); | |
32544 | if (PyErr_Occurred()) SWIG_fail; | |
32545 | } | |
32546 | Py_INCREF(Py_None); resultobj = Py_None; | |
32547 | return resultobj; | |
32548 | fail: | |
32549 | return NULL; | |
32550 | } | |
32551 | ||
32552 | ||
c32bde28 | 32553 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32554 | PyObject *resultobj; |
32555 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32556 | int arg2 ; | |
32557 | int arg3 ; | |
32558 | PyObject * obj0 = 0 ; | |
32559 | PyObject * obj1 = 0 ; | |
32560 | PyObject * obj2 = 0 ; | |
32561 | char *kwnames[] = { | |
32562 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32563 | }; | |
32564 | ||
32565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32568 | { | |
32569 | arg2 = (int)(SWIG_As_int(obj1)); | |
32570 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32571 | } | |
32572 | { | |
32573 | arg3 = (int)(SWIG_As_int(obj2)); | |
32574 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32575 | } | |
d55e5bfc RD |
32576 | { |
32577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32578 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
32579 | ||
32580 | wxPyEndAllowThreads(__tstate); | |
32581 | if (PyErr_Occurred()) SWIG_fail; | |
32582 | } | |
32583 | Py_INCREF(Py_None); resultobj = Py_None; | |
32584 | return resultobj; | |
32585 | fail: | |
32586 | return NULL; | |
32587 | } | |
32588 | ||
32589 | ||
c32bde28 | 32590 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32591 | PyObject *resultobj; |
32592 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32593 | int arg2 ; | |
32594 | int arg3 ; | |
32595 | PyObject * obj0 = 0 ; | |
32596 | PyObject * obj1 = 0 ; | |
32597 | PyObject * obj2 = 0 ; | |
32598 | char *kwnames[] = { | |
32599 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32600 | }; | |
32601 | ||
32602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32605 | { | |
32606 | arg2 = (int)(SWIG_As_int(obj1)); | |
32607 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32608 | } | |
32609 | { | |
32610 | arg3 = (int)(SWIG_As_int(obj2)); | |
32611 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32612 | } | |
d55e5bfc RD |
32613 | { |
32614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32615 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
32616 | ||
32617 | wxPyEndAllowThreads(__tstate); | |
32618 | if (PyErr_Occurred()) SWIG_fail; | |
32619 | } | |
32620 | Py_INCREF(Py_None); resultobj = Py_None; | |
32621 | return resultobj; | |
32622 | fail: | |
32623 | return NULL; | |
32624 | } | |
32625 | ||
32626 | ||
c32bde28 | 32627 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32628 | PyObject *resultobj; |
32629 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32630 | int *arg2 = (int *) 0 ; | |
32631 | int *arg3 = (int *) 0 ; | |
32632 | int temp2 ; | |
c32bde28 | 32633 | int res2 = 0 ; |
d55e5bfc | 32634 | int temp3 ; |
c32bde28 | 32635 | int res3 = 0 ; |
d55e5bfc RD |
32636 | PyObject * obj0 = 0 ; |
32637 | char *kwnames[] = { | |
32638 | (char *) "self", NULL | |
32639 | }; | |
32640 | ||
c32bde28 RD |
32641 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32642 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 32643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32646 | { |
32647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32648 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
32649 | ||
32650 | wxPyEndAllowThreads(__tstate); | |
32651 | if (PyErr_Occurred()) SWIG_fail; | |
32652 | } | |
32653 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32654 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32655 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32656 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32657 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
32658 | return resultobj; |
32659 | fail: | |
32660 | return NULL; | |
32661 | } | |
32662 | ||
32663 | ||
c32bde28 | 32664 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32665 | PyObject *resultobj; |
32666 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32667 | int *arg2 = (int *) 0 ; | |
32668 | int *arg3 = (int *) 0 ; | |
32669 | int temp2 ; | |
c32bde28 | 32670 | int res2 = 0 ; |
d55e5bfc | 32671 | int temp3 ; |
c32bde28 | 32672 | int res3 = 0 ; |
d55e5bfc RD |
32673 | PyObject * obj0 = 0 ; |
32674 | char *kwnames[] = { | |
32675 | (char *) "self", NULL | |
32676 | }; | |
32677 | ||
c32bde28 RD |
32678 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32679 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 32680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32683 | { |
32684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32685 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
32686 | ||
32687 | wxPyEndAllowThreads(__tstate); | |
32688 | if (PyErr_Occurred()) SWIG_fail; | |
32689 | } | |
32690 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32691 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32692 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32693 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32694 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
32695 | return resultobj; |
32696 | fail: | |
32697 | return NULL; | |
32698 | } | |
32699 | ||
32700 | ||
c32bde28 | 32701 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32702 | PyObject *resultobj; |
32703 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32704 | int *arg2 = (int *) 0 ; | |
32705 | int *arg3 = (int *) 0 ; | |
32706 | int temp2 ; | |
c32bde28 | 32707 | int res2 = 0 ; |
d55e5bfc | 32708 | int temp3 ; |
c32bde28 | 32709 | int res3 = 0 ; |
d55e5bfc RD |
32710 | PyObject * obj0 = 0 ; |
32711 | char *kwnames[] = { | |
32712 | (char *) "self", NULL | |
32713 | }; | |
32714 | ||
c32bde28 RD |
32715 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32716 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc | 32717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32720 | { |
32721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32722 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
32723 | ||
32724 | wxPyEndAllowThreads(__tstate); | |
32725 | if (PyErr_Occurred()) SWIG_fail; | |
32726 | } | |
32727 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32728 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32729 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32730 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32731 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
32732 | return resultobj; |
32733 | fail: | |
32734 | return NULL; | |
32735 | } | |
32736 | ||
32737 | ||
c32bde28 | 32738 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32739 | PyObject *resultobj; |
32740 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32741 | wxSize result; | |
32742 | PyObject * obj0 = 0 ; | |
32743 | char *kwnames[] = { | |
32744 | (char *) "self", NULL | |
32745 | }; | |
32746 | ||
32747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32750 | { |
32751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32752 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
32753 | ||
32754 | wxPyEndAllowThreads(__tstate); | |
32755 | if (PyErr_Occurred()) SWIG_fail; | |
32756 | } | |
32757 | { | |
32758 | wxSize * resultptr; | |
093d3ff1 | 32759 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
32760 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
32761 | } | |
32762 | return resultobj; | |
32763 | fail: | |
32764 | return NULL; | |
32765 | } | |
32766 | ||
32767 | ||
c32bde28 | 32768 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32769 | PyObject *resultobj; |
32770 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32771 | wxSize result; | |
32772 | PyObject * obj0 = 0 ; | |
32773 | char *kwnames[] = { | |
32774 | (char *) "self", NULL | |
32775 | }; | |
32776 | ||
32777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32780 | { |
32781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32782 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
32783 | ||
32784 | wxPyEndAllowThreads(__tstate); | |
32785 | if (PyErr_Occurred()) SWIG_fail; | |
32786 | } | |
32787 | { | |
32788 | wxSize * resultptr; | |
093d3ff1 | 32789 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
32790 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
32791 | } | |
32792 | return resultobj; | |
32793 | fail: | |
32794 | return NULL; | |
32795 | } | |
32796 | ||
32797 | ||
c32bde28 | 32798 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32799 | PyObject *resultobj; |
32800 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32801 | PyObject * obj0 = 0 ; | |
32802 | char *kwnames[] = { | |
32803 | (char *) "self", NULL | |
32804 | }; | |
32805 | ||
32806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32809 | { |
32810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32811 | (arg1)->base_InitDialog(); | |
32812 | ||
32813 | wxPyEndAllowThreads(__tstate); | |
32814 | if (PyErr_Occurred()) SWIG_fail; | |
32815 | } | |
32816 | Py_INCREF(Py_None); resultobj = Py_None; | |
32817 | return resultobj; | |
32818 | fail: | |
32819 | return NULL; | |
32820 | } | |
32821 | ||
32822 | ||
c32bde28 | 32823 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32824 | PyObject *resultobj; |
32825 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32826 | bool result; | |
32827 | PyObject * obj0 = 0 ; | |
32828 | char *kwnames[] = { | |
32829 | (char *) "self", NULL | |
32830 | }; | |
32831 | ||
32832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32835 | { |
32836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32837 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
32838 | ||
32839 | wxPyEndAllowThreads(__tstate); | |
32840 | if (PyErr_Occurred()) SWIG_fail; | |
32841 | } | |
32842 | { | |
32843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32844 | } | |
32845 | return resultobj; | |
32846 | fail: | |
32847 | return NULL; | |
32848 | } | |
32849 | ||
32850 | ||
c32bde28 | 32851 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32852 | PyObject *resultobj; |
32853 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32854 | bool result; | |
32855 | PyObject * obj0 = 0 ; | |
32856 | char *kwnames[] = { | |
32857 | (char *) "self", NULL | |
32858 | }; | |
32859 | ||
32860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32863 | { |
32864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32865 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
32866 | ||
32867 | wxPyEndAllowThreads(__tstate); | |
32868 | if (PyErr_Occurred()) SWIG_fail; | |
32869 | } | |
32870 | { | |
32871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32872 | } | |
32873 | return resultobj; | |
32874 | fail: | |
32875 | return NULL; | |
32876 | } | |
32877 | ||
32878 | ||
c32bde28 | 32879 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32880 | PyObject *resultobj; |
32881 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32882 | bool result; | |
32883 | PyObject * obj0 = 0 ; | |
32884 | char *kwnames[] = { | |
32885 | (char *) "self", NULL | |
32886 | }; | |
32887 | ||
32888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32891 | { |
32892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32893 | result = (bool)(arg1)->base_Validate(); | |
32894 | ||
32895 | wxPyEndAllowThreads(__tstate); | |
32896 | if (PyErr_Occurred()) SWIG_fail; | |
32897 | } | |
32898 | { | |
32899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32900 | } | |
32901 | return resultobj; | |
32902 | fail: | |
32903 | return NULL; | |
32904 | } | |
32905 | ||
32906 | ||
c32bde28 | 32907 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32908 | PyObject *resultobj; |
32909 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32910 | bool result; | |
32911 | PyObject * obj0 = 0 ; | |
32912 | char *kwnames[] = { | |
32913 | (char *) "self", NULL | |
32914 | }; | |
32915 | ||
32916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32919 | { |
32920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32921 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
32922 | ||
32923 | wxPyEndAllowThreads(__tstate); | |
32924 | if (PyErr_Occurred()) SWIG_fail; | |
32925 | } | |
32926 | { | |
32927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32928 | } | |
32929 | return resultobj; | |
32930 | fail: | |
32931 | return NULL; | |
32932 | } | |
32933 | ||
32934 | ||
c32bde28 | 32935 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32936 | PyObject *resultobj; |
32937 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32938 | bool result; | |
32939 | PyObject * obj0 = 0 ; | |
32940 | char *kwnames[] = { | |
32941 | (char *) "self", NULL | |
32942 | }; | |
32943 | ||
32944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32947 | { |
32948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32949 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
32950 | ||
32951 | wxPyEndAllowThreads(__tstate); | |
32952 | if (PyErr_Occurred()) SWIG_fail; | |
32953 | } | |
32954 | { | |
32955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32956 | } | |
32957 | return resultobj; | |
32958 | fail: | |
32959 | return NULL; | |
32960 | } | |
32961 | ||
32962 | ||
c32bde28 | 32963 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32964 | PyObject *resultobj; |
32965 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32966 | wxSize result; | |
32967 | PyObject * obj0 = 0 ; | |
32968 | char *kwnames[] = { | |
32969 | (char *) "self", NULL | |
32970 | }; | |
32971 | ||
32972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
32975 | { |
32976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32977 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
32978 | ||
32979 | wxPyEndAllowThreads(__tstate); | |
32980 | if (PyErr_Occurred()) SWIG_fail; | |
32981 | } | |
32982 | { | |
32983 | wxSize * resultptr; | |
093d3ff1 | 32984 | resultptr = new wxSize((wxSize &)(result)); |
d55e5bfc RD |
32985 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
32986 | } | |
32987 | return resultobj; | |
32988 | fail: | |
32989 | return NULL; | |
32990 | } | |
32991 | ||
32992 | ||
c32bde28 | 32993 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32994 | PyObject *resultobj; |
32995 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32996 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32997 | PyObject * obj0 = 0 ; | |
32998 | PyObject * obj1 = 0 ; | |
32999 | char *kwnames[] = { | |
33000 | (char *) "self",(char *) "child", NULL | |
33001 | }; | |
33002 | ||
33003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33006 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33007 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33008 | { |
33009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33010 | (arg1)->base_AddChild(arg2); | |
33011 | ||
33012 | wxPyEndAllowThreads(__tstate); | |
33013 | if (PyErr_Occurred()) SWIG_fail; | |
33014 | } | |
33015 | Py_INCREF(Py_None); resultobj = Py_None; | |
33016 | return resultobj; | |
33017 | fail: | |
33018 | return NULL; | |
33019 | } | |
33020 | ||
33021 | ||
c32bde28 | 33022 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33023 | PyObject *resultobj; |
33024 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
33025 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33026 | PyObject * obj0 = 0 ; | |
33027 | PyObject * obj1 = 0 ; | |
33028 | char *kwnames[] = { | |
33029 | (char *) "self",(char *) "child", NULL | |
33030 | }; | |
33031 | ||
33032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33035 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33036 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33037 | { |
33038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33039 | (arg1)->base_RemoveChild(arg2); | |
33040 | ||
33041 | wxPyEndAllowThreads(__tstate); | |
33042 | if (PyErr_Occurred()) SWIG_fail; | |
33043 | } | |
33044 | Py_INCREF(Py_None); resultobj = Py_None; | |
33045 | return resultobj; | |
33046 | fail: | |
33047 | return NULL; | |
33048 | } | |
33049 | ||
33050 | ||
c32bde28 | 33051 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33052 | PyObject *resultobj; |
33053 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
33054 | bool result; | |
33055 | PyObject * obj0 = 0 ; | |
33056 | char *kwnames[] = { | |
33057 | (char *) "self", NULL | |
33058 | }; | |
33059 | ||
33060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33063 | { |
33064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 33065 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
33066 | |
33067 | wxPyEndAllowThreads(__tstate); | |
33068 | if (PyErr_Occurred()) SWIG_fail; | |
33069 | } | |
33070 | { | |
33071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33072 | } | |
33073 | return resultobj; | |
33074 | fail: | |
33075 | return NULL; | |
33076 | } | |
33077 | ||
33078 | ||
c32bde28 | 33079 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
caef1a4d RD |
33080 | PyObject *resultobj; |
33081 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
33082 | wxVisualAttributes result; | |
33083 | PyObject * obj0 = 0 ; | |
33084 | char *kwnames[] = { | |
33085 | (char *) "self", NULL | |
33086 | }; | |
33087 | ||
33088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
caef1a4d RD |
33091 | { |
33092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33093 | result = (arg1)->base_GetDefaultAttributes(); | |
33094 | ||
33095 | wxPyEndAllowThreads(__tstate); | |
33096 | if (PyErr_Occurred()) SWIG_fail; | |
33097 | } | |
33098 | { | |
33099 | wxVisualAttributes * resultptr; | |
093d3ff1 | 33100 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
caef1a4d RD |
33101 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
33102 | } | |
33103 | return resultobj; | |
33104 | fail: | |
33105 | return NULL; | |
33106 | } | |
33107 | ||
33108 | ||
8d38bd1d RD |
33109 | static PyObject *_wrap_PyControl_base_OnInternalIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
33110 | PyObject *resultobj; | |
33111 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
33112 | PyObject * obj0 = 0 ; | |
33113 | char *kwnames[] = { | |
33114 | (char *) "self", NULL | |
33115 | }; | |
33116 | ||
33117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_OnInternalIdle",kwnames,&obj0)) goto fail; | |
33118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
33119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33120 | { | |
33121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33122 | (arg1)->base_OnInternalIdle(); | |
33123 | ||
33124 | wxPyEndAllowThreads(__tstate); | |
33125 | if (PyErr_Occurred()) SWIG_fail; | |
33126 | } | |
33127 | Py_INCREF(Py_None); resultobj = Py_None; | |
33128 | return resultobj; | |
33129 | fail: | |
33130 | return NULL; | |
33131 | } | |
33132 | ||
33133 | ||
c32bde28 | 33134 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33135 | PyObject *obj; |
33136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33137 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
33138 | Py_INCREF(obj); | |
33139 | return Py_BuildValue((char *)""); | |
33140 | } | |
c32bde28 | 33141 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33142 | PyObject *resultobj; |
33143 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
33144 | int arg2 = (int) 0 ; | |
33145 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33146 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33147 | wxHelpEvent *result; | |
33148 | wxPoint temp3 ; | |
33149 | PyObject * obj0 = 0 ; | |
33150 | PyObject * obj1 = 0 ; | |
33151 | PyObject * obj2 = 0 ; | |
33152 | char *kwnames[] = { | |
33153 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
33154 | }; | |
33155 | ||
33156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33157 | if (obj0) { | |
093d3ff1 RD |
33158 | { |
33159 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
33160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33161 | } | |
d55e5bfc RD |
33162 | } |
33163 | if (obj1) { | |
093d3ff1 RD |
33164 | { |
33165 | arg2 = (int)(SWIG_As_int(obj1)); | |
33166 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33167 | } | |
d55e5bfc RD |
33168 | } |
33169 | if (obj2) { | |
33170 | { | |
33171 | arg3 = &temp3; | |
33172 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33173 | } | |
33174 | } | |
33175 | { | |
33176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33177 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
33178 | ||
33179 | wxPyEndAllowThreads(__tstate); | |
33180 | if (PyErr_Occurred()) SWIG_fail; | |
33181 | } | |
33182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
33183 | return resultobj; | |
33184 | fail: | |
33185 | return NULL; | |
33186 | } | |
33187 | ||
33188 | ||
c32bde28 | 33189 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33190 | PyObject *resultobj; |
33191 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33192 | wxPoint result; | |
33193 | PyObject * obj0 = 0 ; | |
33194 | char *kwnames[] = { | |
33195 | (char *) "self", NULL | |
33196 | }; | |
33197 | ||
33198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33201 | { |
33202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33203 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
33204 | ||
33205 | wxPyEndAllowThreads(__tstate); | |
33206 | if (PyErr_Occurred()) SWIG_fail; | |
33207 | } | |
33208 | { | |
33209 | wxPoint * resultptr; | |
093d3ff1 | 33210 | resultptr = new wxPoint((wxPoint const &)(result)); |
d55e5bfc RD |
33211 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
33212 | } | |
33213 | return resultobj; | |
33214 | fail: | |
33215 | return NULL; | |
33216 | } | |
33217 | ||
33218 | ||
c32bde28 | 33219 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33220 | PyObject *resultobj; |
33221 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33222 | wxPoint *arg2 = 0 ; | |
33223 | wxPoint temp2 ; | |
33224 | PyObject * obj0 = 0 ; | |
33225 | PyObject * obj1 = 0 ; | |
33226 | char *kwnames[] = { | |
33227 | (char *) "self",(char *) "pos", NULL | |
33228 | }; | |
33229 | ||
33230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33233 | { |
33234 | arg2 = &temp2; | |
33235 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33236 | } | |
33237 | { | |
33238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33239 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
33240 | ||
33241 | wxPyEndAllowThreads(__tstate); | |
33242 | if (PyErr_Occurred()) SWIG_fail; | |
33243 | } | |
33244 | Py_INCREF(Py_None); resultobj = Py_None; | |
33245 | return resultobj; | |
33246 | fail: | |
33247 | return NULL; | |
33248 | } | |
33249 | ||
33250 | ||
c32bde28 | 33251 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33252 | PyObject *resultobj; |
33253 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33254 | wxString *result; | |
33255 | PyObject * obj0 = 0 ; | |
33256 | char *kwnames[] = { | |
33257 | (char *) "self", NULL | |
33258 | }; | |
33259 | ||
33260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33263 | { |
33264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33265 | { | |
33266 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
33267 | result = (wxString *) &_result_ref; | |
33268 | } | |
33269 | ||
33270 | wxPyEndAllowThreads(__tstate); | |
33271 | if (PyErr_Occurred()) SWIG_fail; | |
33272 | } | |
33273 | { | |
33274 | #if wxUSE_UNICODE | |
33275 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33276 | #else | |
33277 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33278 | #endif | |
33279 | } | |
33280 | return resultobj; | |
33281 | fail: | |
33282 | return NULL; | |
33283 | } | |
33284 | ||
33285 | ||
c32bde28 | 33286 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33287 | PyObject *resultobj; |
33288 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33289 | wxString *arg2 = 0 ; | |
ae8162c8 | 33290 | bool temp2 = false ; |
d55e5bfc RD |
33291 | PyObject * obj0 = 0 ; |
33292 | PyObject * obj1 = 0 ; | |
33293 | char *kwnames[] = { | |
33294 | (char *) "self",(char *) "link", NULL | |
33295 | }; | |
33296 | ||
33297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33300 | { |
33301 | arg2 = wxString_in_helper(obj1); | |
33302 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33303 | temp2 = true; |
d55e5bfc RD |
33304 | } |
33305 | { | |
33306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33307 | (arg1)->SetLink((wxString const &)*arg2); | |
33308 | ||
33309 | wxPyEndAllowThreads(__tstate); | |
33310 | if (PyErr_Occurred()) SWIG_fail; | |
33311 | } | |
33312 | Py_INCREF(Py_None); resultobj = Py_None; | |
33313 | { | |
33314 | if (temp2) | |
33315 | delete arg2; | |
33316 | } | |
33317 | return resultobj; | |
33318 | fail: | |
33319 | { | |
33320 | if (temp2) | |
33321 | delete arg2; | |
33322 | } | |
33323 | return NULL; | |
33324 | } | |
33325 | ||
33326 | ||
c32bde28 | 33327 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33328 | PyObject *resultobj; |
33329 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33330 | wxString *result; | |
33331 | PyObject * obj0 = 0 ; | |
33332 | char *kwnames[] = { | |
33333 | (char *) "self", NULL | |
33334 | }; | |
33335 | ||
33336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33339 | { |
33340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33341 | { | |
33342 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
33343 | result = (wxString *) &_result_ref; | |
33344 | } | |
33345 | ||
33346 | wxPyEndAllowThreads(__tstate); | |
33347 | if (PyErr_Occurred()) SWIG_fail; | |
33348 | } | |
33349 | { | |
33350 | #if wxUSE_UNICODE | |
33351 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33352 | #else | |
33353 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33354 | #endif | |
33355 | } | |
33356 | return resultobj; | |
33357 | fail: | |
33358 | return NULL; | |
33359 | } | |
33360 | ||
33361 | ||
c32bde28 | 33362 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33363 | PyObject *resultobj; |
33364 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33365 | wxString *arg2 = 0 ; | |
ae8162c8 | 33366 | bool temp2 = false ; |
d55e5bfc RD |
33367 | PyObject * obj0 = 0 ; |
33368 | PyObject * obj1 = 0 ; | |
33369 | char *kwnames[] = { | |
33370 | (char *) "self",(char *) "target", NULL | |
33371 | }; | |
33372 | ||
33373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33376 | { |
33377 | arg2 = wxString_in_helper(obj1); | |
33378 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33379 | temp2 = true; |
d55e5bfc RD |
33380 | } |
33381 | { | |
33382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33383 | (arg1)->SetTarget((wxString const &)*arg2); | |
33384 | ||
33385 | wxPyEndAllowThreads(__tstate); | |
33386 | if (PyErr_Occurred()) SWIG_fail; | |
33387 | } | |
33388 | Py_INCREF(Py_None); resultobj = Py_None; | |
33389 | { | |
33390 | if (temp2) | |
33391 | delete arg2; | |
33392 | } | |
33393 | return resultobj; | |
33394 | fail: | |
33395 | { | |
33396 | if (temp2) | |
33397 | delete arg2; | |
33398 | } | |
33399 | return NULL; | |
33400 | } | |
33401 | ||
33402 | ||
c32bde28 | 33403 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33404 | PyObject *obj; |
33405 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33406 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
33407 | Py_INCREF(obj); | |
33408 | return Py_BuildValue((char *)""); | |
33409 | } | |
c32bde28 | 33410 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33411 | PyObject *resultobj; |
33412 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 33413 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33414 | wxContextHelp *result; |
33415 | PyObject * obj0 = 0 ; | |
33416 | PyObject * obj1 = 0 ; | |
33417 | char *kwnames[] = { | |
33418 | (char *) "window",(char *) "doNow", NULL | |
33419 | }; | |
33420 | ||
33421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
33422 | if (obj0) { | |
093d3ff1 RD |
33423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33425 | } |
33426 | if (obj1) { | |
093d3ff1 RD |
33427 | { |
33428 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
33429 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33430 | } | |
d55e5bfc RD |
33431 | } |
33432 | { | |
0439c23b | 33433 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33435 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
33436 | ||
33437 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33438 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33439 | } |
33440 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
33441 | return resultobj; | |
33442 | fail: | |
33443 | return NULL; | |
33444 | } | |
33445 | ||
33446 | ||
c32bde28 | 33447 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33448 | PyObject *resultobj; |
33449 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33450 | PyObject * obj0 = 0 ; | |
33451 | char *kwnames[] = { | |
33452 | (char *) "self", NULL | |
33453 | }; | |
33454 | ||
33455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33458 | { |
33459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33460 | delete arg1; | |
33461 | ||
33462 | wxPyEndAllowThreads(__tstate); | |
33463 | if (PyErr_Occurred()) SWIG_fail; | |
33464 | } | |
33465 | Py_INCREF(Py_None); resultobj = Py_None; | |
33466 | return resultobj; | |
33467 | fail: | |
33468 | return NULL; | |
33469 | } | |
33470 | ||
33471 | ||
c32bde28 | 33472 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33473 | PyObject *resultobj; |
33474 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33475 | wxWindow *arg2 = (wxWindow *) NULL ; | |
33476 | bool result; | |
33477 | PyObject * obj0 = 0 ; | |
33478 | PyObject * obj1 = 0 ; | |
33479 | char *kwnames[] = { | |
33480 | (char *) "self",(char *) "window", NULL | |
33481 | }; | |
33482 | ||
33483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33484 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33485 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 33486 | if (obj1) { |
093d3ff1 RD |
33487 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33488 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33489 | } |
33490 | { | |
33491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33492 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
33493 | ||
33494 | wxPyEndAllowThreads(__tstate); | |
33495 | if (PyErr_Occurred()) SWIG_fail; | |
33496 | } | |
33497 | { | |
33498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33499 | } | |
33500 | return resultobj; | |
33501 | fail: | |
33502 | return NULL; | |
33503 | } | |
33504 | ||
33505 | ||
c32bde28 | 33506 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33507 | PyObject *resultobj; |
33508 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33509 | bool result; | |
33510 | PyObject * obj0 = 0 ; | |
33511 | char *kwnames[] = { | |
33512 | (char *) "self", NULL | |
33513 | }; | |
33514 | ||
33515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33518 | { |
33519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33520 | result = (bool)(arg1)->EndContextHelp(); | |
33521 | ||
33522 | wxPyEndAllowThreads(__tstate); | |
33523 | if (PyErr_Occurred()) SWIG_fail; | |
33524 | } | |
33525 | { | |
33526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33527 | } | |
33528 | return resultobj; | |
33529 | fail: | |
33530 | return NULL; | |
33531 | } | |
33532 | ||
33533 | ||
c32bde28 | 33534 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33535 | PyObject *obj; |
33536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33537 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
33538 | Py_INCREF(obj); | |
33539 | return Py_BuildValue((char *)""); | |
33540 | } | |
c32bde28 | 33541 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33542 | PyObject *resultobj; |
33543 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33544 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
33545 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33546 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33547 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33548 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33549 | long arg5 = (long) wxBU_AUTODRAW ; | |
33550 | wxContextHelpButton *result; | |
33551 | wxPoint temp3 ; | |
33552 | wxSize temp4 ; | |
33553 | PyObject * obj0 = 0 ; | |
33554 | PyObject * obj1 = 0 ; | |
33555 | PyObject * obj2 = 0 ; | |
33556 | PyObject * obj3 = 0 ; | |
33557 | PyObject * obj4 = 0 ; | |
33558 | char *kwnames[] = { | |
33559 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
33560 | }; | |
33561 | ||
33562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
33563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 33565 | if (obj1) { |
093d3ff1 RD |
33566 | { |
33567 | arg2 = (int)(SWIG_As_int(obj1)); | |
33568 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33569 | } | |
d55e5bfc RD |
33570 | } |
33571 | if (obj2) { | |
33572 | { | |
33573 | arg3 = &temp3; | |
33574 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33575 | } | |
33576 | } | |
33577 | if (obj3) { | |
33578 | { | |
33579 | arg4 = &temp4; | |
33580 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33581 | } | |
33582 | } | |
33583 | if (obj4) { | |
093d3ff1 RD |
33584 | { |
33585 | arg5 = (long)(SWIG_As_long(obj4)); | |
33586 | if (SWIG_arg_fail(5)) SWIG_fail; | |
33587 | } | |
d55e5bfc RD |
33588 | } |
33589 | { | |
0439c23b | 33590 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33592 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
33593 | ||
33594 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33595 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33596 | } |
33597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
33598 | return resultobj; | |
33599 | fail: | |
33600 | return NULL; | |
33601 | } | |
33602 | ||
33603 | ||
c32bde28 | 33604 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33605 | PyObject *obj; |
33606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33607 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
33608 | Py_INCREF(obj); | |
33609 | return Py_BuildValue((char *)""); | |
33610 | } | |
c32bde28 | 33611 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33612 | PyObject *resultobj; |
33613 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33614 | wxHelpProvider *result; | |
33615 | PyObject * obj0 = 0 ; | |
33616 | char *kwnames[] = { | |
33617 | (char *) "helpProvider", NULL | |
33618 | }; | |
33619 | ||
33620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33623 | { |
33624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33625 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
33626 | ||
33627 | wxPyEndAllowThreads(__tstate); | |
33628 | if (PyErr_Occurred()) SWIG_fail; | |
33629 | } | |
33630 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
33631 | return resultobj; | |
33632 | fail: | |
33633 | return NULL; | |
33634 | } | |
33635 | ||
33636 | ||
c32bde28 | 33637 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33638 | PyObject *resultobj; |
33639 | wxHelpProvider *result; | |
33640 | char *kwnames[] = { | |
33641 | NULL | |
33642 | }; | |
33643 | ||
33644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
33645 | { | |
33646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33647 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
33648 | ||
33649 | wxPyEndAllowThreads(__tstate); | |
33650 | if (PyErr_Occurred()) SWIG_fail; | |
33651 | } | |
33652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
33653 | return resultobj; | |
33654 | fail: | |
33655 | return NULL; | |
33656 | } | |
33657 | ||
33658 | ||
c32bde28 | 33659 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33660 | PyObject *resultobj; |
33661 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33662 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33663 | wxString result; | |
33664 | PyObject * obj0 = 0 ; | |
33665 | PyObject * obj1 = 0 ; | |
33666 | char *kwnames[] = { | |
33667 | (char *) "self",(char *) "window", NULL | |
33668 | }; | |
33669 | ||
33670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33671 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33672 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33673 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33674 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33675 | { |
33676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33677 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
33678 | ||
33679 | wxPyEndAllowThreads(__tstate); | |
33680 | if (PyErr_Occurred()) SWIG_fail; | |
33681 | } | |
33682 | { | |
33683 | #if wxUSE_UNICODE | |
33684 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33685 | #else | |
33686 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33687 | #endif | |
33688 | } | |
33689 | return resultobj; | |
33690 | fail: | |
33691 | return NULL; | |
33692 | } | |
33693 | ||
33694 | ||
c32bde28 | 33695 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33696 | PyObject *resultobj; |
33697 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33698 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33699 | bool result; | |
33700 | PyObject * obj0 = 0 ; | |
33701 | PyObject * obj1 = 0 ; | |
33702 | char *kwnames[] = { | |
33703 | (char *) "self",(char *) "window", NULL | |
33704 | }; | |
33705 | ||
33706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33709 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33710 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33711 | { |
33712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33713 | result = (bool)(arg1)->ShowHelp(arg2); | |
33714 | ||
33715 | wxPyEndAllowThreads(__tstate); | |
33716 | if (PyErr_Occurred()) SWIG_fail; | |
33717 | } | |
33718 | { | |
33719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33720 | } | |
33721 | return resultobj; | |
33722 | fail: | |
33723 | return NULL; | |
33724 | } | |
33725 | ||
33726 | ||
c32bde28 | 33727 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33728 | PyObject *resultobj; |
33729 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33730 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33731 | wxString *arg3 = 0 ; | |
ae8162c8 | 33732 | bool temp3 = false ; |
d55e5bfc RD |
33733 | PyObject * obj0 = 0 ; |
33734 | PyObject * obj1 = 0 ; | |
33735 | PyObject * obj2 = 0 ; | |
33736 | char *kwnames[] = { | |
33737 | (char *) "self",(char *) "window",(char *) "text", NULL | |
33738 | }; | |
33739 | ||
33740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33741 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33743 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33744 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33745 | { |
33746 | arg3 = wxString_in_helper(obj2); | |
33747 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33748 | temp3 = true; |
d55e5bfc RD |
33749 | } |
33750 | { | |
33751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33752 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33753 | ||
33754 | wxPyEndAllowThreads(__tstate); | |
33755 | if (PyErr_Occurred()) SWIG_fail; | |
33756 | } | |
33757 | Py_INCREF(Py_None); resultobj = Py_None; | |
33758 | { | |
33759 | if (temp3) | |
33760 | delete arg3; | |
33761 | } | |
33762 | return resultobj; | |
33763 | fail: | |
33764 | { | |
33765 | if (temp3) | |
33766 | delete arg3; | |
33767 | } | |
33768 | return NULL; | |
33769 | } | |
33770 | ||
33771 | ||
c32bde28 | 33772 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33773 | PyObject *resultobj; |
33774 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33775 | int arg2 ; | |
33776 | wxString *arg3 = 0 ; | |
ae8162c8 | 33777 | bool temp3 = false ; |
d55e5bfc RD |
33778 | PyObject * obj0 = 0 ; |
33779 | PyObject * obj1 = 0 ; | |
33780 | PyObject * obj2 = 0 ; | |
33781 | char *kwnames[] = { | |
33782 | (char *) "self",(char *) "id",(char *) "text", NULL | |
33783 | }; | |
33784 | ||
33785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33788 | { | |
33789 | arg2 = (int)(SWIG_As_int(obj1)); | |
33790 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33791 | } | |
d55e5bfc RD |
33792 | { |
33793 | arg3 = wxString_in_helper(obj2); | |
33794 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33795 | temp3 = true; |
d55e5bfc RD |
33796 | } |
33797 | { | |
33798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33799 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33800 | ||
33801 | wxPyEndAllowThreads(__tstate); | |
33802 | if (PyErr_Occurred()) SWIG_fail; | |
33803 | } | |
33804 | Py_INCREF(Py_None); resultobj = Py_None; | |
33805 | { | |
33806 | if (temp3) | |
33807 | delete arg3; | |
33808 | } | |
33809 | return resultobj; | |
33810 | fail: | |
33811 | { | |
33812 | if (temp3) | |
33813 | delete arg3; | |
33814 | } | |
33815 | return NULL; | |
33816 | } | |
33817 | ||
33818 | ||
c32bde28 | 33819 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33820 | PyObject *resultobj; |
33821 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33822 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33823 | PyObject * obj0 = 0 ; | |
33824 | PyObject * obj1 = 0 ; | |
33825 | char *kwnames[] = { | |
33826 | (char *) "self",(char *) "window", NULL | |
33827 | }; | |
33828 | ||
33829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33832 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33833 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33834 | { |
33835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33836 | (arg1)->RemoveHelp(arg2); | |
33837 | ||
33838 | wxPyEndAllowThreads(__tstate); | |
33839 | if (PyErr_Occurred()) SWIG_fail; | |
33840 | } | |
33841 | Py_INCREF(Py_None); resultobj = Py_None; | |
33842 | return resultobj; | |
33843 | fail: | |
33844 | return NULL; | |
33845 | } | |
33846 | ||
33847 | ||
c32bde28 | 33848 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33849 | PyObject *resultobj; |
33850 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33851 | PyObject * obj0 = 0 ; | |
33852 | char *kwnames[] = { | |
33853 | (char *) "self", NULL | |
33854 | }; | |
33855 | ||
33856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33859 | { |
33860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33861 | wxHelpProvider_Destroy(arg1); | |
33862 | ||
33863 | wxPyEndAllowThreads(__tstate); | |
33864 | if (PyErr_Occurred()) SWIG_fail; | |
33865 | } | |
33866 | Py_INCREF(Py_None); resultobj = Py_None; | |
33867 | return resultobj; | |
33868 | fail: | |
33869 | return NULL; | |
33870 | } | |
33871 | ||
33872 | ||
c32bde28 | 33873 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33874 | PyObject *obj; |
33875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33876 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
33877 | Py_INCREF(obj); | |
33878 | return Py_BuildValue((char *)""); | |
33879 | } | |
c32bde28 | 33880 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33881 | PyObject *resultobj; |
33882 | wxSimpleHelpProvider *result; | |
33883 | char *kwnames[] = { | |
33884 | NULL | |
33885 | }; | |
33886 | ||
33887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
33888 | { | |
33889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33890 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
33891 | ||
33892 | wxPyEndAllowThreads(__tstate); | |
33893 | if (PyErr_Occurred()) SWIG_fail; | |
33894 | } | |
33895 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
33896 | return resultobj; | |
33897 | fail: | |
33898 | return NULL; | |
33899 | } | |
33900 | ||
33901 | ||
c32bde28 | 33902 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33903 | PyObject *obj; |
33904 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33905 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
33906 | Py_INCREF(obj); | |
33907 | return Py_BuildValue((char *)""); | |
33908 | } | |
c32bde28 | 33909 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33910 | PyObject *resultobj; |
33911 | wxBitmap *arg1 = 0 ; | |
33912 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33913 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33914 | wxGenericDragImage *result; | |
33915 | PyObject * obj0 = 0 ; | |
33916 | PyObject * obj1 = 0 ; | |
33917 | char *kwnames[] = { | |
33918 | (char *) "image",(char *) "cursor", NULL | |
33919 | }; | |
33920 | ||
33921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33922 | { |
33923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
33924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33925 | if (arg1 == NULL) { | |
33926 | SWIG_null_ref("wxBitmap"); | |
33927 | } | |
33928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33929 | } |
33930 | if (obj1) { | |
093d3ff1 RD |
33931 | { |
33932 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33933 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33934 | if (arg2 == NULL) { | |
33935 | SWIG_null_ref("wxCursor"); | |
33936 | } | |
33937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33938 | } |
33939 | } | |
33940 | { | |
0439c23b | 33941 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33943 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
33944 | ||
33945 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33946 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33947 | } |
33948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33949 | return resultobj; | |
33950 | fail: | |
33951 | return NULL; | |
33952 | } | |
33953 | ||
33954 | ||
c32bde28 | 33955 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33956 | PyObject *resultobj; |
33957 | wxIcon *arg1 = 0 ; | |
33958 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33959 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33960 | wxGenericDragImage *result; | |
33961 | PyObject * obj0 = 0 ; | |
33962 | PyObject * obj1 = 0 ; | |
33963 | char *kwnames[] = { | |
33964 | (char *) "image",(char *) "cursor", NULL | |
33965 | }; | |
33966 | ||
33967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33968 | { |
33969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
33970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33971 | if (arg1 == NULL) { | |
33972 | SWIG_null_ref("wxIcon"); | |
33973 | } | |
33974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
33975 | } |
33976 | if (obj1) { | |
093d3ff1 RD |
33977 | { |
33978 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33979 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33980 | if (arg2 == NULL) { | |
33981 | SWIG_null_ref("wxCursor"); | |
33982 | } | |
33983 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
33984 | } |
33985 | } | |
33986 | { | |
0439c23b | 33987 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33989 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
33990 | ||
33991 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33992 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33993 | } |
33994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33995 | return resultobj; | |
33996 | fail: | |
33997 | return NULL; | |
33998 | } | |
33999 | ||
34000 | ||
c32bde28 | 34001 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34002 | PyObject *resultobj; |
34003 | wxString *arg1 = 0 ; | |
34004 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
34005 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
34006 | wxGenericDragImage *result; | |
ae8162c8 | 34007 | bool temp1 = false ; |
d55e5bfc RD |
34008 | PyObject * obj0 = 0 ; |
34009 | PyObject * obj1 = 0 ; | |
34010 | char *kwnames[] = { | |
34011 | (char *) "str",(char *) "cursor", NULL | |
34012 | }; | |
34013 | ||
34014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
34015 | { | |
34016 | arg1 = wxString_in_helper(obj0); | |
34017 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 34018 | temp1 = true; |
d55e5bfc RD |
34019 | } |
34020 | if (obj1) { | |
093d3ff1 RD |
34021 | { |
34022 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
34023 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34024 | if (arg2 == NULL) { | |
34025 | SWIG_null_ref("wxCursor"); | |
34026 | } | |
34027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34028 | } |
34029 | } | |
34030 | { | |
0439c23b | 34031 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34033 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
34034 | ||
34035 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34036 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
34037 | } |
34038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
34039 | { | |
34040 | if (temp1) | |
34041 | delete arg1; | |
34042 | } | |
34043 | return resultobj; | |
34044 | fail: | |
34045 | { | |
34046 | if (temp1) | |
34047 | delete arg1; | |
34048 | } | |
34049 | return NULL; | |
34050 | } | |
34051 | ||
34052 | ||
c32bde28 | 34053 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34054 | PyObject *resultobj; |
34055 | wxPyTreeCtrl *arg1 = 0 ; | |
34056 | wxTreeItemId *arg2 = 0 ; | |
34057 | wxGenericDragImage *result; | |
34058 | PyObject * obj0 = 0 ; | |
34059 | PyObject * obj1 = 0 ; | |
34060 | char *kwnames[] = { | |
34061 | (char *) "treeCtrl",(char *) "id", NULL | |
34062 | }; | |
34063 | ||
34064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34065 | { |
34066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34068 | if (arg1 == NULL) { | |
34069 | SWIG_null_ref("wxPyTreeCtrl"); | |
34070 | } | |
34071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc | 34072 | } |
093d3ff1 RD |
34073 | { |
34074 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
34075 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34076 | if (arg2 == NULL) { | |
34077 | SWIG_null_ref("wxTreeItemId"); | |
34078 | } | |
34079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34080 | } |
34081 | { | |
0439c23b | 34082 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34084 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
34085 | ||
34086 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34087 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
34088 | } |
34089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
34090 | return resultobj; | |
34091 | fail: | |
34092 | return NULL; | |
34093 | } | |
34094 | ||
34095 | ||
c32bde28 | 34096 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34097 | PyObject *resultobj; |
34098 | wxPyListCtrl *arg1 = 0 ; | |
34099 | long arg2 ; | |
34100 | wxGenericDragImage *result; | |
34101 | PyObject * obj0 = 0 ; | |
34102 | PyObject * obj1 = 0 ; | |
34103 | char *kwnames[] = { | |
34104 | (char *) "listCtrl",(char *) "id", NULL | |
34105 | }; | |
34106 | ||
34107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34108 | { |
34109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34111 | if (arg1 == NULL) { | |
34112 | SWIG_null_ref("wxPyListCtrl"); | |
34113 | } | |
34114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34115 | } | |
34116 | { | |
34117 | arg2 = (long)(SWIG_As_long(obj1)); | |
34118 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc | 34119 | } |
d55e5bfc | 34120 | { |
0439c23b | 34121 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34123 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
34124 | ||
34125 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34126 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
34127 | } |
34128 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
34129 | return resultobj; | |
34130 | fail: | |
34131 | return NULL; | |
34132 | } | |
34133 | ||
34134 | ||
c32bde28 | 34135 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34136 | PyObject *resultobj; |
34137 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34138 | PyObject * obj0 = 0 ; | |
34139 | char *kwnames[] = { | |
34140 | (char *) "self", NULL | |
34141 | }; | |
34142 | ||
34143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34146 | { |
34147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34148 | delete arg1; | |
34149 | ||
34150 | wxPyEndAllowThreads(__tstate); | |
34151 | if (PyErr_Occurred()) SWIG_fail; | |
34152 | } | |
34153 | Py_INCREF(Py_None); resultobj = Py_None; | |
34154 | return resultobj; | |
34155 | fail: | |
34156 | return NULL; | |
34157 | } | |
34158 | ||
34159 | ||
c32bde28 | 34160 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34161 | PyObject *resultobj; |
34162 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34163 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34164 | PyObject * obj0 = 0 ; | |
34165 | PyObject * obj1 = 0 ; | |
34166 | char *kwnames[] = { | |
34167 | (char *) "self",(char *) "bitmap", NULL | |
34168 | }; | |
34169 | ||
34170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34173 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
34174 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34175 | { |
34176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34177 | (arg1)->SetBackingBitmap(arg2); | |
34178 | ||
34179 | wxPyEndAllowThreads(__tstate); | |
34180 | if (PyErr_Occurred()) SWIG_fail; | |
34181 | } | |
34182 | Py_INCREF(Py_None); resultobj = Py_None; | |
34183 | return resultobj; | |
34184 | fail: | |
34185 | return NULL; | |
34186 | } | |
34187 | ||
34188 | ||
c32bde28 | 34189 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34190 | PyObject *resultobj; |
34191 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34192 | wxPoint *arg2 = 0 ; | |
34193 | wxWindow *arg3 = (wxWindow *) 0 ; | |
ae8162c8 | 34194 | bool arg4 = (bool) false ; |
d55e5bfc RD |
34195 | wxRect *arg5 = (wxRect *) NULL ; |
34196 | bool result; | |
34197 | wxPoint temp2 ; | |
34198 | PyObject * obj0 = 0 ; | |
34199 | PyObject * obj1 = 0 ; | |
34200 | PyObject * obj2 = 0 ; | |
34201 | PyObject * obj3 = 0 ; | |
34202 | PyObject * obj4 = 0 ; | |
34203 | char *kwnames[] = { | |
34204 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
34205 | }; | |
34206 | ||
34207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34210 | { |
34211 | arg2 = &temp2; | |
34212 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34213 | } | |
093d3ff1 RD |
34214 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34215 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc | 34216 | if (obj3) { |
093d3ff1 RD |
34217 | { |
34218 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
34219 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34220 | } | |
d55e5bfc RD |
34221 | } |
34222 | if (obj4) { | |
093d3ff1 RD |
34223 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
34224 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d55e5bfc RD |
34225 | } |
34226 | { | |
34227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34228 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
34229 | ||
34230 | wxPyEndAllowThreads(__tstate); | |
34231 | if (PyErr_Occurred()) SWIG_fail; | |
34232 | } | |
34233 | { | |
34234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34235 | } | |
34236 | return resultobj; | |
34237 | fail: | |
34238 | return NULL; | |
34239 | } | |
34240 | ||
34241 | ||
c32bde28 | 34242 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34243 | PyObject *resultobj; |
34244 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34245 | wxPoint *arg2 = 0 ; | |
34246 | wxWindow *arg3 = (wxWindow *) 0 ; | |
34247 | wxWindow *arg4 = (wxWindow *) 0 ; | |
34248 | bool result; | |
34249 | wxPoint temp2 ; | |
34250 | PyObject * obj0 = 0 ; | |
34251 | PyObject * obj1 = 0 ; | |
34252 | PyObject * obj2 = 0 ; | |
34253 | PyObject * obj3 = 0 ; | |
34254 | char *kwnames[] = { | |
34255 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
34256 | }; | |
34257 | ||
34258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
34259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34261 | { |
34262 | arg2 = &temp2; | |
34263 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34264 | } | |
093d3ff1 RD |
34265 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34266 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34267 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34268 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d55e5bfc RD |
34269 | { |
34270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34271 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
34272 | ||
34273 | wxPyEndAllowThreads(__tstate); | |
34274 | if (PyErr_Occurred()) SWIG_fail; | |
34275 | } | |
34276 | { | |
34277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34278 | } | |
34279 | return resultobj; | |
34280 | fail: | |
34281 | return NULL; | |
34282 | } | |
34283 | ||
34284 | ||
c32bde28 | 34285 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34286 | PyObject *resultobj; |
34287 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34288 | bool result; | |
34289 | PyObject * obj0 = 0 ; | |
34290 | char *kwnames[] = { | |
34291 | (char *) "self", NULL | |
34292 | }; | |
34293 | ||
34294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34295 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34296 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34297 | { |
34298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34299 | result = (bool)(arg1)->EndDrag(); | |
34300 | ||
34301 | wxPyEndAllowThreads(__tstate); | |
34302 | if (PyErr_Occurred()) SWIG_fail; | |
34303 | } | |
34304 | { | |
34305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34306 | } | |
34307 | return resultobj; | |
34308 | fail: | |
34309 | return NULL; | |
34310 | } | |
34311 | ||
34312 | ||
c32bde28 | 34313 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34314 | PyObject *resultobj; |
34315 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34316 | wxPoint *arg2 = 0 ; | |
34317 | bool result; | |
34318 | wxPoint temp2 ; | |
34319 | PyObject * obj0 = 0 ; | |
34320 | PyObject * obj1 = 0 ; | |
34321 | char *kwnames[] = { | |
34322 | (char *) "self",(char *) "pt", NULL | |
34323 | }; | |
34324 | ||
34325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34328 | { |
34329 | arg2 = &temp2; | |
34330 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34331 | } | |
34332 | { | |
34333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34334 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
34335 | ||
34336 | wxPyEndAllowThreads(__tstate); | |
34337 | if (PyErr_Occurred()) SWIG_fail; | |
34338 | } | |
34339 | { | |
34340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34341 | } | |
34342 | return resultobj; | |
34343 | fail: | |
34344 | return NULL; | |
34345 | } | |
34346 | ||
34347 | ||
c32bde28 | 34348 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34349 | PyObject *resultobj; |
34350 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34351 | bool result; | |
34352 | PyObject * obj0 = 0 ; | |
34353 | char *kwnames[] = { | |
34354 | (char *) "self", NULL | |
34355 | }; | |
34356 | ||
34357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34360 | { |
34361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34362 | result = (bool)(arg1)->Show(); | |
34363 | ||
34364 | wxPyEndAllowThreads(__tstate); | |
34365 | if (PyErr_Occurred()) SWIG_fail; | |
34366 | } | |
34367 | { | |
34368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34369 | } | |
34370 | return resultobj; | |
34371 | fail: | |
34372 | return NULL; | |
34373 | } | |
34374 | ||
34375 | ||
c32bde28 | 34376 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34377 | PyObject *resultobj; |
34378 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34379 | bool result; | |
34380 | PyObject * obj0 = 0 ; | |
34381 | char *kwnames[] = { | |
34382 | (char *) "self", NULL | |
34383 | }; | |
34384 | ||
34385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34388 | { |
34389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34390 | result = (bool)(arg1)->Hide(); | |
34391 | ||
34392 | wxPyEndAllowThreads(__tstate); | |
34393 | if (PyErr_Occurred()) SWIG_fail; | |
34394 | } | |
34395 | { | |
34396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34397 | } | |
34398 | return resultobj; | |
34399 | fail: | |
34400 | return NULL; | |
34401 | } | |
34402 | ||
34403 | ||
c32bde28 | 34404 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34405 | PyObject *resultobj; |
34406 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34407 | wxPoint *arg2 = 0 ; | |
34408 | wxRect result; | |
34409 | wxPoint temp2 ; | |
34410 | PyObject * obj0 = 0 ; | |
34411 | PyObject * obj1 = 0 ; | |
34412 | char *kwnames[] = { | |
34413 | (char *) "self",(char *) "pos", NULL | |
34414 | }; | |
34415 | ||
34416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34419 | { |
34420 | arg2 = &temp2; | |
34421 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34422 | } | |
34423 | { | |
34424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34425 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
34426 | ||
34427 | wxPyEndAllowThreads(__tstate); | |
34428 | if (PyErr_Occurred()) SWIG_fail; | |
34429 | } | |
34430 | { | |
34431 | wxRect * resultptr; | |
093d3ff1 | 34432 | resultptr = new wxRect((wxRect &)(result)); |
d55e5bfc RD |
34433 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
34434 | } | |
34435 | return resultobj; | |
34436 | fail: | |
34437 | return NULL; | |
34438 | } | |
34439 | ||
34440 | ||
c32bde28 | 34441 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34442 | PyObject *resultobj; |
34443 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34444 | wxDC *arg2 = 0 ; | |
34445 | wxPoint *arg3 = 0 ; | |
34446 | bool result; | |
34447 | wxPoint temp3 ; | |
34448 | PyObject * obj0 = 0 ; | |
34449 | PyObject * obj1 = 0 ; | |
34450 | PyObject * obj2 = 0 ; | |
34451 | char *kwnames[] = { | |
34452 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
34453 | }; | |
34454 | ||
34455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34458 | { | |
34459 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34460 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34461 | if (arg2 == NULL) { | |
34462 | SWIG_null_ref("wxDC"); | |
34463 | } | |
34464 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d55e5bfc RD |
34465 | } |
34466 | { | |
34467 | arg3 = &temp3; | |
34468 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34469 | } | |
34470 | { | |
34471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34472 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
34473 | ||
34474 | wxPyEndAllowThreads(__tstate); | |
34475 | if (PyErr_Occurred()) SWIG_fail; | |
34476 | } | |
34477 | { | |
34478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34479 | } | |
34480 | return resultobj; | |
34481 | fail: | |
34482 | return NULL; | |
34483 | } | |
34484 | ||
34485 | ||
c32bde28 | 34486 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34487 | PyObject *resultobj; |
34488 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34489 | wxDC *arg2 = 0 ; | |
34490 | wxMemoryDC *arg3 = 0 ; | |
34491 | wxRect *arg4 = 0 ; | |
34492 | wxRect *arg5 = 0 ; | |
34493 | bool result; | |
34494 | wxRect temp4 ; | |
34495 | wxRect temp5 ; | |
34496 | PyObject * obj0 = 0 ; | |
34497 | PyObject * obj1 = 0 ; | |
34498 | PyObject * obj2 = 0 ; | |
34499 | PyObject * obj3 = 0 ; | |
34500 | PyObject * obj4 = 0 ; | |
34501 | char *kwnames[] = { | |
34502 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
34503 | }; | |
34504 | ||
34505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34508 | { | |
34509 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34511 | if (arg2 == NULL) { | |
34512 | SWIG_null_ref("wxDC"); | |
34513 | } | |
34514 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34515 | } | |
34516 | { | |
34517 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
34518 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34519 | if (arg3 == NULL) { | |
34520 | SWIG_null_ref("wxMemoryDC"); | |
34521 | } | |
34522 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d55e5bfc RD |
34523 | } |
34524 | { | |
34525 | arg4 = &temp4; | |
34526 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34527 | } | |
34528 | { | |
34529 | arg5 = &temp5; | |
34530 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
34531 | } | |
34532 | { | |
34533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34534 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
34535 | ||
34536 | wxPyEndAllowThreads(__tstate); | |
34537 | if (PyErr_Occurred()) SWIG_fail; | |
34538 | } | |
34539 | { | |
34540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34541 | } | |
34542 | return resultobj; | |
34543 | fail: | |
34544 | return NULL; | |
34545 | } | |
34546 | ||
34547 | ||
c32bde28 | 34548 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34549 | PyObject *resultobj; |
34550 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34551 | wxPoint *arg2 = 0 ; | |
34552 | wxPoint *arg3 = 0 ; | |
34553 | bool arg4 ; | |
34554 | bool arg5 ; | |
34555 | bool result; | |
34556 | wxPoint temp2 ; | |
34557 | wxPoint temp3 ; | |
34558 | PyObject * obj0 = 0 ; | |
34559 | PyObject * obj1 = 0 ; | |
34560 | PyObject * obj2 = 0 ; | |
34561 | PyObject * obj3 = 0 ; | |
34562 | PyObject * obj4 = 0 ; | |
34563 | char *kwnames[] = { | |
34564 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
34565 | }; | |
34566 | ||
34567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d55e5bfc RD |
34570 | { |
34571 | arg2 = &temp2; | |
34572 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34573 | } | |
34574 | { | |
34575 | arg3 = &temp3; | |
34576 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34577 | } | |
093d3ff1 RD |
34578 | { |
34579 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
34580 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34581 | } | |
34582 | { | |
34583 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
34584 | if (SWIG_arg_fail(5)) SWIG_fail; | |
34585 | } | |
d55e5bfc RD |
34586 | { |
34587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34588 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
34589 | ||
34590 | wxPyEndAllowThreads(__tstate); | |
34591 | if (PyErr_Occurred()) SWIG_fail; | |
34592 | } | |
34593 | { | |
34594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34595 | } | |
34596 | return resultobj; | |
34597 | fail: | |
34598 | return NULL; | |
34599 | } | |
34600 | ||
34601 | ||
c32bde28 | 34602 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34603 | PyObject *obj; |
34604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34605 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
34606 | Py_INCREF(obj); | |
34607 | return Py_BuildValue((char *)""); | |
34608 | } | |
53aa7709 RD |
34609 | static int _wrap_DatePickerCtrlNameStr_set(PyObject *) { |
34610 | PyErr_SetString(PyExc_TypeError,"Variable DatePickerCtrlNameStr is read-only."); | |
34611 | return 1; | |
34612 | } | |
34613 | ||
34614 | ||
34615 | static PyObject *_wrap_DatePickerCtrlNameStr_get(void) { | |
34616 | PyObject *pyobj; | |
34617 | ||
34618 | { | |
34619 | #if wxUSE_UNICODE | |
34620 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34621 | #else | |
34622 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34623 | #endif | |
34624 | } | |
34625 | return pyobj; | |
34626 | } | |
34627 | ||
34628 | ||
34629 | static PyObject *_wrap_new_DatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
34630 | PyObject *resultobj; | |
34631 | wxWindow *arg1 = (wxWindow *) 0 ; | |
34632 | int arg2 = (int) -1 ; | |
34633 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
34634 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
34635 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
34636 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34637 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34638 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34639 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34640 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34641 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34642 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
34643 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34644 | wxDatePickerCtrl *result; | |
34645 | wxPoint temp4 ; | |
34646 | wxSize temp5 ; | |
34647 | bool temp8 = false ; | |
34648 | PyObject * obj0 = 0 ; | |
34649 | PyObject * obj1 = 0 ; | |
34650 | PyObject * obj2 = 0 ; | |
34651 | PyObject * obj3 = 0 ; | |
34652 | PyObject * obj4 = 0 ; | |
34653 | PyObject * obj5 = 0 ; | |
34654 | PyObject * obj6 = 0 ; | |
34655 | PyObject * obj7 = 0 ; | |
34656 | char *kwnames[] = { | |
34657 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34658 | }; | |
34659 | ||
34660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
34661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34663 | if (obj1) { | |
34664 | { | |
34665 | arg2 = (int)(SWIG_As_int(obj1)); | |
34666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34667 | } | |
34668 | } | |
34669 | if (obj2) { | |
34670 | { | |
34671 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34672 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34673 | if (arg3 == NULL) { | |
34674 | SWIG_null_ref("wxDateTime"); | |
34675 | } | |
34676 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34677 | } | |
34678 | } | |
34679 | if (obj3) { | |
34680 | { | |
34681 | arg4 = &temp4; | |
34682 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34683 | } | |
34684 | } | |
34685 | if (obj4) { | |
34686 | { | |
34687 | arg5 = &temp5; | |
34688 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34689 | } | |
34690 | } | |
34691 | if (obj5) { | |
34692 | { | |
34693 | arg6 = (long)(SWIG_As_long(obj5)); | |
34694 | if (SWIG_arg_fail(6)) SWIG_fail; | |
34695 | } | |
34696 | } | |
34697 | if (obj6) { | |
34698 | { | |
34699 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34700 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34701 | if (arg7 == NULL) { | |
34702 | SWIG_null_ref("wxValidator"); | |
34703 | } | |
34704 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34705 | } | |
34706 | } | |
34707 | if (obj7) { | |
34708 | { | |
34709 | arg8 = wxString_in_helper(obj7); | |
34710 | if (arg8 == NULL) SWIG_fail; | |
34711 | temp8 = true; | |
34712 | } | |
34713 | } | |
34714 | { | |
34715 | if (!wxPyCheckForApp()) SWIG_fail; | |
34716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34717 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34718 | ||
34719 | wxPyEndAllowThreads(__tstate); | |
34720 | if (PyErr_Occurred()) SWIG_fail; | |
34721 | } | |
34722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34723 | { | |
34724 | if (temp8) | |
34725 | delete arg8; | |
34726 | } | |
34727 | return resultobj; | |
34728 | fail: | |
34729 | { | |
34730 | if (temp8) | |
34731 | delete arg8; | |
34732 | } | |
34733 | return NULL; | |
34734 | } | |
34735 | ||
34736 | ||
34737 | static PyObject *_wrap_new_PreDatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
34738 | PyObject *resultobj; | |
34739 | wxDatePickerCtrl *result; | |
34740 | char *kwnames[] = { | |
34741 | NULL | |
34742 | }; | |
34743 | ||
34744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDatePickerCtrl",kwnames)) goto fail; | |
34745 | { | |
34746 | if (!wxPyCheckForApp()) SWIG_fail; | |
34747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34748 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
34749 | ||
34750 | wxPyEndAllowThreads(__tstate); | |
34751 | if (PyErr_Occurred()) SWIG_fail; | |
34752 | } | |
34753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34754 | return resultobj; | |
34755 | fail: | |
34756 | return NULL; | |
34757 | } | |
34758 | ||
34759 | ||
34760 | static PyObject *_wrap_DatePickerCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
34761 | PyObject *resultobj; | |
34762 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34763 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34764 | int arg3 = (int) -1 ; | |
34765 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
34766 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
34767 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
34768 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
34769 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
34770 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
34771 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34772 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
34773 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
34774 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
34775 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
34776 | bool result; | |
34777 | wxPoint temp5 ; | |
34778 | wxSize temp6 ; | |
34779 | bool temp9 = false ; | |
34780 | PyObject * obj0 = 0 ; | |
34781 | PyObject * obj1 = 0 ; | |
34782 | PyObject * obj2 = 0 ; | |
34783 | PyObject * obj3 = 0 ; | |
34784 | PyObject * obj4 = 0 ; | |
34785 | PyObject * obj5 = 0 ; | |
34786 | PyObject * obj6 = 0 ; | |
34787 | PyObject * obj7 = 0 ; | |
34788 | PyObject * obj8 = 0 ; | |
34789 | char *kwnames[] = { | |
34790 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34791 | }; | |
34792 | ||
34793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
34794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34796 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34797 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34798 | if (obj2) { | |
34799 | { | |
34800 | arg3 = (int)(SWIG_As_int(obj2)); | |
34801 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34802 | } | |
34803 | } | |
34804 | if (obj3) { | |
34805 | { | |
34806 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34807 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34808 | if (arg4 == NULL) { | |
34809 | SWIG_null_ref("wxDateTime"); | |
34810 | } | |
34811 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34812 | } | |
34813 | } | |
34814 | if (obj4) { | |
34815 | { | |
34816 | arg5 = &temp5; | |
34817 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
34818 | } | |
34819 | } | |
34820 | if (obj5) { | |
34821 | { | |
34822 | arg6 = &temp6; | |
34823 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
34824 | } | |
34825 | } | |
34826 | if (obj6) { | |
34827 | { | |
34828 | arg7 = (long)(SWIG_As_long(obj6)); | |
34829 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34830 | } | |
34831 | } | |
34832 | if (obj7) { | |
34833 | { | |
34834 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34835 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34836 | if (arg8 == NULL) { | |
34837 | SWIG_null_ref("wxValidator"); | |
34838 | } | |
34839 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34840 | } | |
34841 | } | |
34842 | if (obj8) { | |
34843 | { | |
34844 | arg9 = wxString_in_helper(obj8); | |
34845 | if (arg9 == NULL) SWIG_fail; | |
34846 | temp9 = true; | |
34847 | } | |
34848 | } | |
34849 | { | |
34850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34851 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
34852 | ||
34853 | wxPyEndAllowThreads(__tstate); | |
34854 | if (PyErr_Occurred()) SWIG_fail; | |
34855 | } | |
34856 | { | |
34857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34858 | } | |
34859 | { | |
34860 | if (temp9) | |
34861 | delete arg9; | |
34862 | } | |
34863 | return resultobj; | |
34864 | fail: | |
34865 | { | |
34866 | if (temp9) | |
34867 | delete arg9; | |
34868 | } | |
34869 | return NULL; | |
34870 | } | |
34871 | ||
34872 | ||
34873 | static PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
34874 | PyObject *resultobj; | |
34875 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34876 | wxDateTime *arg2 = 0 ; | |
34877 | PyObject * obj0 = 0 ; | |
34878 | PyObject * obj1 = 0 ; | |
34879 | char *kwnames[] = { | |
34880 | (char *) "self",(char *) "dt", NULL | |
34881 | }; | |
34882 | ||
34883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
34884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34886 | { | |
34887 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34889 | if (arg2 == NULL) { | |
34890 | SWIG_null_ref("wxDateTime"); | |
34891 | } | |
34892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34893 | } | |
34894 | { | |
34895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34896 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
34897 | ||
34898 | wxPyEndAllowThreads(__tstate); | |
34899 | if (PyErr_Occurred()) SWIG_fail; | |
34900 | } | |
34901 | Py_INCREF(Py_None); resultobj = Py_None; | |
34902 | return resultobj; | |
34903 | fail: | |
34904 | return NULL; | |
34905 | } | |
34906 | ||
34907 | ||
34908 | static PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
34909 | PyObject *resultobj; | |
34910 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34911 | wxDateTime result; | |
34912 | PyObject * obj0 = 0 ; | |
34913 | char *kwnames[] = { | |
34914 | (char *) "self", NULL | |
34915 | }; | |
34916 | ||
34917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetValue",kwnames,&obj0)) goto fail; | |
34918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34920 | { | |
34921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34922 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
34923 | ||
34924 | wxPyEndAllowThreads(__tstate); | |
34925 | if (PyErr_Occurred()) SWIG_fail; | |
34926 | } | |
34927 | { | |
34928 | wxDateTime * resultptr; | |
34929 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34930 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34931 | } | |
34932 | return resultobj; | |
34933 | fail: | |
34934 | return NULL; | |
34935 | } | |
34936 | ||
34937 | ||
34938 | static PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
34939 | PyObject *resultobj; | |
34940 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34941 | wxDateTime *arg2 = 0 ; | |
34942 | wxDateTime *arg3 = 0 ; | |
34943 | PyObject * obj0 = 0 ; | |
34944 | PyObject * obj1 = 0 ; | |
34945 | PyObject * obj2 = 0 ; | |
34946 | char *kwnames[] = { | |
34947 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
34948 | }; | |
34949 | ||
34950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34953 | { | |
34954 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34955 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34956 | if (arg2 == NULL) { | |
34957 | SWIG_null_ref("wxDateTime"); | |
34958 | } | |
34959 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34960 | } | |
34961 | { | |
34962 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34963 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34964 | if (arg3 == NULL) { | |
34965 | SWIG_null_ref("wxDateTime"); | |
34966 | } | |
34967 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34968 | } | |
34969 | { | |
34970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34971 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
34972 | ||
34973 | wxPyEndAllowThreads(__tstate); | |
34974 | if (PyErr_Occurred()) SWIG_fail; | |
34975 | } | |
34976 | Py_INCREF(Py_None); resultobj = Py_None; | |
34977 | return resultobj; | |
34978 | fail: | |
34979 | return NULL; | |
34980 | } | |
34981 | ||
34982 | ||
34983 | static PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
34984 | PyObject *resultobj; | |
34985 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34986 | wxDateTime result; | |
34987 | PyObject * obj0 = 0 ; | |
34988 | char *kwnames[] = { | |
34989 | (char *) "self", NULL | |
34990 | }; | |
34991 | ||
34992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetLowerLimit",kwnames,&obj0)) goto fail; | |
34993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34995 | { | |
34996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34997 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
34998 | ||
34999 | wxPyEndAllowThreads(__tstate); | |
35000 | if (PyErr_Occurred()) SWIG_fail; | |
35001 | } | |
35002 | { | |
35003 | wxDateTime * resultptr; | |
35004 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
35005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
35006 | } | |
35007 | return resultobj; | |
35008 | fail: | |
35009 | return NULL; | |
35010 | } | |
35011 | ||
35012 | ||
35013 | static PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
35014 | PyObject *resultobj; | |
35015 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
35016 | wxDateTime result; | |
35017 | PyObject * obj0 = 0 ; | |
35018 | char *kwnames[] = { | |
35019 | (char *) "self", NULL | |
35020 | }; | |
35021 | ||
35022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetUpperLimit",kwnames,&obj0)) goto fail; | |
35023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
35024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35025 | { | |
35026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35027 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
35028 | ||
35029 | wxPyEndAllowThreads(__tstate); | |
35030 | if (PyErr_Occurred()) SWIG_fail; | |
35031 | } | |
35032 | { | |
35033 | wxDateTime * resultptr; | |
35034 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
35035 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
35036 | } | |
35037 | return resultobj; | |
35038 | fail: | |
35039 | return NULL; | |
35040 | } | |
35041 | ||
35042 | ||
35043 | static PyObject * DatePickerCtrl_swigregister(PyObject *, PyObject *args) { | |
35044 | PyObject *obj; | |
35045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35046 | SWIG_TypeClientData(SWIGTYPE_p_wxDatePickerCtrl, obj); | |
35047 | Py_INCREF(obj); | |
35048 | return Py_BuildValue((char *)""); | |
35049 | } | |
d55e5bfc | 35050 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
35051 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, |
35052 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35053 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35054 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35055 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35056 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35057 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
35058 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35059 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35060 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35061 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35062 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35063 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35064 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35065 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35066 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35067 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35068 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35069 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35070 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35071 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35072 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
35073 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35074 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35075 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35076 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35077 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35078 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35079 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35080 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35081 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35082 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35083 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35084 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
35085 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35086 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35087 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9d7dfdff | 35088 | { (char *)"Choice_GetCurrentSelection", (PyCFunction) _wrap_Choice_GetCurrentSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35089 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35090 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
35091 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35092 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35093 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35094 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35095 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35096 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35097 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35098 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35099 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35100 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35101 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35102 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35103 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35104 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35105 | { (char *)"ComboBox_GetMark", (PyCFunction) _wrap_ComboBox_GetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9d7dfdff | 35106 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction) _wrap_ComboBox_GetCurrentSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35107 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
35108 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35109 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35110 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35111 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35112 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35113 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35114 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35115 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35116 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35117 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35118 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35119 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35120 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35121 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35122 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
35123 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35124 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35125 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35126 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35127 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35128 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35129 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35130 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35131 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35132 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35133 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35134 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35135 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35136 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
35137 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35138 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35139 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35140 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35141 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
35142 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35143 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35144 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35145 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35146 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35147 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35148 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
35149 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35150 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35151 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9d7dfdff | 35152 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35153 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35154 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
35155 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35156 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35157 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35158 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35159 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35160 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35161 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35162 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
35163 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35164 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35165 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35166 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35167 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35168 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35169 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35170 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35171 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35172 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35173 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35174 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35175 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35176 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35177 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35178 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35179 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35180 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35181 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35182 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35183 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35184 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35185 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
35186 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35187 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35188 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35189 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35190 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35191 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35192 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35193 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35194 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
35195 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35196 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35197 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35198 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35199 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35200 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35201 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35202 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35203 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35204 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35205 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35206 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35207 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35208 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35209 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35210 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35211 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35212 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35213 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35214 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35215 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35216 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35217 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35218 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35219 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35220 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35221 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35222 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35223 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35224 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35225 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
35226 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35227 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35228 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35229 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35230 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35231 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35232 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35233 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35234 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35235 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35236 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35237 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35238 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35239 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35240 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35241 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35242 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35243 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35244 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35245 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35246 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35247 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35248 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35249 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35250 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35251 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35252 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35253 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35254 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35255 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35256 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35257 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35258 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35259 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35260 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35261 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35262 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35263 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35264 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35265 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35266 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35267 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35268 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35269 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35270 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35271 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35272 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35273 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35274 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35275 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35276 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35277 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35278 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35279 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35280 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35281 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35282 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35283 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
35284 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35285 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35286 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35287 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35288 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
35289 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35290 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35291 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35292 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35293 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35294 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35295 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35296 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35297 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35298 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35299 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35300 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
35301 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35302 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35303 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35304 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35305 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35306 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35307 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35308 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35309 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35310 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35311 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35312 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35313 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
35314 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35315 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35316 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35317 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35318 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35319 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35320 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35321 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35322 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35323 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35324 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35325 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
35326 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35327 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35328 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35329 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
35330 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35331 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35332 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35333 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35334 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35335 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35336 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35337 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35338 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35339 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35340 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35341 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35342 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35343 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35344 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35345 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35346 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35347 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
35348 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35349 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35350 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35351 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35352 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35353 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35354 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
35355 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35356 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35357 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35358 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35359 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35360 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35361 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35362 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35363 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35364 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35365 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35366 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35367 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35368 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35369 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35370 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35371 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35372 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35373 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35374 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35375 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35376 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35377 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35378 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35379 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35380 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
35381 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35382 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35383 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35384 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35385 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35386 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35387 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35388 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
35389 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35390 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35391 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35392 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35393 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35394 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35395 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35396 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35397 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35398 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35399 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35400 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35401 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35402 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35403 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35404 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35405 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35406 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35407 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35408 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35409 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35410 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
35411 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35412 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35413 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35414 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35415 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35416 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
35417 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35418 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35419 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35420 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35421 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35422 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35423 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35424 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
091fdbfa | 35425 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction) _wrap_Notebook_GetThemeBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35426 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35427 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
35428 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35429 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
35430 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35431 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35432 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35433 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35434 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35435 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
35436 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35437 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
35438 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35439 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35440 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35441 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70b7a5fe | 35442 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction) _wrap_Choicebook_GetChoiceCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35443 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, |
35444 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
35445 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35446 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
35447 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, |
35448 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35449 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35450 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35451 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35452 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35453 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35454 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35455 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35456 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35457 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35458 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35459 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35460 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35461 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35462 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35463 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35464 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35465 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35466 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35467 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35468 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35469 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35470 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35471 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35472 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35473 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35474 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35475 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35476 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
35477 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35478 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35479 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35480 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35481 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35482 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35483 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35484 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35485 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35486 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35487 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35488 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35489 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35490 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35491 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35492 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35493 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35494 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35495 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35496 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35497 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35498 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35499 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35500 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35501 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35502 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35503 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35504 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35505 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35506 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35507 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35508 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35509 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35510 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35511 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35512 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35513 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35514 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35515 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35516 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35517 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35518 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35519 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35520 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35521 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
35522 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35523 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35524 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35525 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35526 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35527 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
35528 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35529 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35530 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35531 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35532 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35533 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35534 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35535 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35536 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35537 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35538 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35539 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
35540 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35541 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35542 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35543 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35544 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35545 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35546 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35547 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35548 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35549 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35550 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35551 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35552 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35553 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35554 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35555 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35556 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35557 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35558 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35559 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35560 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35561 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35562 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35563 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35564 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35565 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35566 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35567 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35568 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35569 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35570 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35571 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35572 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35573 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35574 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35575 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35576 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35577 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35578 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35579 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35580 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35581 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35582 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35583 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35584 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35585 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35586 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35587 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35588 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35589 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35590 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35591 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
35592 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35593 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35594 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35595 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35596 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35597 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35598 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35599 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35600 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35601 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35602 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35603 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35604 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35605 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35606 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35607 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35608 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35609 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35610 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35611 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35612 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35613 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35614 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35615 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35616 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35617 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35618 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
35619 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35620 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35621 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35622 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35623 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35624 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35625 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35626 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35627 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35628 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35629 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35630 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35631 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35632 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35633 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35634 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35635 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35636 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35637 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35638 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35639 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35640 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35641 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35642 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35643 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35644 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35645 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35646 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35647 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35648 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35649 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35650 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35651 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35652 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35653 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35654 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35655 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35656 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35657 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35658 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35659 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35660 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35661 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35662 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35663 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35664 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35665 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35666 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35667 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35668 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35669 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35670 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35671 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35672 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35673 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35674 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35675 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35676 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35677 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35678 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
a3957d3d | 35679 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35680 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, |
35681 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35682 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35683 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35684 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35685 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35686 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
9d7dfdff RD |
35687 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
35688 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
35689 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, |
35690 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35691 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35692 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
35693 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35694 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35695 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35696 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35697 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35698 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35699 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35700 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35701 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35702 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35703 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35704 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
35705 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35706 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35707 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35708 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35709 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35710 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35711 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35712 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
35713 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35714 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35715 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35716 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35717 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35718 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35719 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
35720 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35721 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35722 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35723 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35724 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35725 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35726 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35727 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35728 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35729 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35730 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35731 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35732 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35733 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35734 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
dcb8fc74 | 35735 | { (char *)"TreeEvent_GetToolTip", (PyCFunction) _wrap_TreeEvent_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35736 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, |
35737 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35738 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35739 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35740 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35741 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35742 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35743 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35744 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35745 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35746 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35747 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35748 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35749 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35750 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35751 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35752 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35753 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35754 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35755 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35756 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35757 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35758 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35759 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35760 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35761 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35762 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35763 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35764 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35765 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35766 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35767 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35768 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35769 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35770 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35771 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35772 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35773 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35774 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35775 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35776 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35777 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35778 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35779 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35780 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35781 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35782 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35783 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35784 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35785 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35786 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35787 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35788 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35789 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35790 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35791 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35792 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35793 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35794 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35795 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35796 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35797 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35798 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35799 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35800 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35801 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35802 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35803 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35804 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35805 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35806 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35807 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35808 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35809 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35810 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35811 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35812 | { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35813 | { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35814 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35815 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
35816 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35817 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35818 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35819 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35820 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35821 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35822 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35823 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35824 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35825 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35826 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35827 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35828 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35829 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35830 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35831 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35832 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35833 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35834 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35835 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35836 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35837 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
35838 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35839 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35840 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35841 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35842 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
35843 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35844 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35845 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35846 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
60d5fcc1 | 35847 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35848 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
35849 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35850 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35851 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35852 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35853 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35854 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35855 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35856 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35857 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35858 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35859 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35860 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35861 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35862 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35863 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35864 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35865 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35866 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 | 35867 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
8d38bd1d | 35868 | { (char *)"PyControl_base_OnInternalIdle", (PyCFunction) _wrap_PyControl_base_OnInternalIdle, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35869 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, |
35870 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35871 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35872 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35873 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35874 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35875 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35876 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35877 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
35878 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35879 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35880 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35881 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35882 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
35883 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35884 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
35885 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35886 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35887 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35888 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35889 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35890 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35891 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35892 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35893 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
35894 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35895 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
35896 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35897 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35898 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35899 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35900 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35901 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35902 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35903 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35904 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35905 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35906 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35907 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35908 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35909 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35910 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35911 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35912 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35913 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
53aa7709 RD |
35914 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
35915 | { (char *)"new_PreDatePickerCtrl", (PyCFunction) _wrap_new_PreDatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35916 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35917 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35918 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction) _wrap_DatePickerCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35919 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35920 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction) _wrap_DatePickerCtrl_GetLowerLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35921 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction) _wrap_DatePickerCtrl_GetUpperLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35922 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 35923 | { NULL, NULL, 0, NULL } |
d55e5bfc RD |
35924 | }; |
35925 | ||
35926 | ||
35927 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
35928 | ||
d55e5bfc RD |
35929 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
35930 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
35931 | } | |
35932 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
35933 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
35934 | } | |
35935 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
35936 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
35937 | } | |
35938 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
35939 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
35940 | } | |
35941 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
35942 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
35943 | } | |
8ac8dba0 RD |
35944 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { |
35945 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35946 | } | |
d55e5bfc RD |
35947 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { |
35948 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35949 | } | |
35950 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
35951 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
35952 | } | |
35953 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
35954 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
35955 | } | |
35956 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
35957 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
35958 | } | |
35959 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
35960 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
35961 | } | |
d55e5bfc RD |
35962 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
35963 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
35964 | } | |
35965 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
35966 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
35967 | } | |
35968 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
35969 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
35970 | } | |
35971 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 35972 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
35973 | } |
35974 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 35975 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 35976 | } |
ae8162c8 | 35977 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
8ac8dba0 | 35978 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
ae8162c8 | 35979 | } |
d55e5bfc RD |
35980 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
35981 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
35982 | } | |
35983 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
35984 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
35985 | } | |
35986 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
35987 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
35988 | } | |
35989 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
35990 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
35991 | } | |
35992 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
35993 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
35994 | } | |
35995 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
35996 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
35997 | } | |
35998 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
35999 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
36000 | } | |
36001 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
36002 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
36003 | } | |
36004 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
36005 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
36006 | } | |
53aa7709 RD |
36007 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
36008 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
36009 | } | |
d55e5bfc RD |
36010 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
36011 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
36012 | } | |
36013 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
36014 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
36015 | } | |
36016 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
36017 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36018 | } | |
36019 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
36020 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36021 | } | |
36022 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
36023 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36024 | } | |
36025 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
36026 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36027 | } | |
36028 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
36029 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36030 | } | |
36031 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
36032 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
36033 | } | |
36034 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
36035 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
36036 | } | |
36037 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
36038 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36039 | } | |
36040 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
36041 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
36042 | } | |
36043 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
36044 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
36045 | } | |
36046 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
36047 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36048 | } | |
36049 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
36050 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36051 | } | |
36052 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
36053 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36054 | } | |
36055 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
36056 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
36057 | } | |
36058 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
36059 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
36060 | } | |
36061 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
36062 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36063 | } | |
36064 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
36065 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
36066 | } | |
36067 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
36068 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36069 | } | |
36070 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
36071 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
36072 | } | |
36073 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
36074 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
36075 | } | |
36076 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
36077 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
36078 | } | |
36079 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
36080 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36081 | } | |
36082 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
36083 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
36084 | } | |
8ac8dba0 RD |
36085 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
36086 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
d55e5bfc RD |
36087 | } |
36088 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
36089 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
36090 | } | |
ae8162c8 RD |
36091 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
36092 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d55e5bfc | 36093 | } |
ae8162c8 RD |
36094 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
36095 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d55e5bfc | 36096 | } |
ae8162c8 RD |
36097 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
36098 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
d55e5bfc | 36099 | } |
ae8162c8 RD |
36100 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
36101 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
36102 | } | |
36103 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
36104 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d55e5bfc RD |
36105 | } |
36106 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
36107 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
36108 | } | |
ae8162c8 RD |
36109 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
36110 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
d55e5bfc | 36111 | } |
ae8162c8 RD |
36112 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
36113 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d55e5bfc RD |
36114 | } |
36115 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
36116 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
36117 | } | |
ae8162c8 RD |
36118 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
36119 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d55e5bfc RD |
36120 | } |
36121 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
36122 | return (void *)((wxControl *) ((wxGauge *) x)); | |
36123 | } | |
ae8162c8 RD |
36124 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
36125 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d55e5bfc | 36126 | } |
ae8162c8 | 36127 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
8ac8dba0 | 36128 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); |
d55e5bfc | 36129 | } |
ae8162c8 | 36130 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
8ac8dba0 | 36131 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc | 36132 | } |
ae8162c8 RD |
36133 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
36134 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d55e5bfc | 36135 | } |
ae8162c8 RD |
36136 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
36137 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d55e5bfc RD |
36138 | } |
36139 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
36140 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
36141 | } | |
ae8162c8 RD |
36142 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
36143 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
36144 | } | |
36145 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
36146 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
36147 | } | |
36148 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
36149 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36150 | } | |
36151 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
36152 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
36153 | } | |
d55e5bfc | 36154 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
8ac8dba0 | 36155 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc | 36156 | } |
ae8162c8 RD |
36157 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
36158 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d55e5bfc | 36159 | } |
ae8162c8 RD |
36160 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
36161 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d55e5bfc | 36162 | } |
ae8162c8 RD |
36163 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
36164 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d55e5bfc | 36165 | } |
ae8162c8 RD |
36166 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
36167 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d55e5bfc RD |
36168 | } |
36169 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
36170 | return (void *)((wxControl *) ((wxSlider *) x)); | |
36171 | } | |
ae8162c8 RD |
36172 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
36173 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
d55e5bfc | 36174 | } |
ae8162c8 RD |
36175 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
36176 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d55e5bfc | 36177 | } |
ae8162c8 RD |
36178 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
36179 | return (void *)((wxControl *) ((wxButton *) x)); | |
d55e5bfc | 36180 | } |
ae8162c8 RD |
36181 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
36182 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
36183 | } | |
53aa7709 RD |
36184 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { |
36185 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
36186 | } | |
ae8162c8 RD |
36187 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
36188 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d55e5bfc RD |
36189 | } |
36190 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
36191 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
36192 | } | |
36193 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
36194 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
36195 | } | |
36196 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
36197 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36198 | } | |
8ac8dba0 RD |
36199 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
36200 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36201 | } | |
d55e5bfc RD |
36202 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { |
36203 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36204 | } | |
d55e5bfc RD |
36205 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { |
36206 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
36207 | } | |
36208 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
36209 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36210 | } | |
36211 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 36212 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
36213 | } |
36214 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 36215 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 36216 | } |
ae8162c8 | 36217 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 RD |
36218 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
36219 | } | |
36220 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
36221 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
36222 | } | |
36223 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
36224 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
ae8162c8 | 36225 | } |
8ac8dba0 RD |
36226 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { |
36227 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
d55e5bfc RD |
36228 | } |
36229 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
36230 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
36231 | } | |
8ac8dba0 RD |
36232 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { |
36233 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36234 | } | |
d55e5bfc RD |
36235 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
36236 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
36237 | } | |
36238 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
36239 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
36240 | } | |
36241 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
36242 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36243 | } | |
36244 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
36245 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
36246 | } | |
36247 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
36248 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36249 | } | |
36250 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
36251 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36252 | } | |
36253 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
36254 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
36255 | } | |
36256 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
36257 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
36258 | } | |
36259 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
36260 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36261 | } | |
d55e5bfc RD |
36262 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
36263 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
36264 | } | |
ae8162c8 RD |
36265 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
36266 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36267 | } | |
d55e5bfc RD |
36268 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
36269 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36270 | } | |
36271 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
36272 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36273 | } | |
36274 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
36275 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
36276 | } | |
36277 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
36278 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36279 | } | |
36280 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
36281 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36282 | } | |
36283 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
36284 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36285 | } | |
36286 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
36287 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36288 | } | |
36289 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
36290 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36291 | } | |
ae8162c8 | 36292 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 36293 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
ae8162c8 | 36294 | } |
d55e5bfc | 36295 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 36296 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
36297 | } |
36298 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
36299 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36300 | } | |
36301 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
36302 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36303 | } | |
36304 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
36305 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36306 | } | |
36307 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
36308 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36309 | } | |
36310 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
36311 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36312 | } | |
36313 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
36314 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36315 | } | |
36316 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
8ac8dba0 | 36317 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
36318 | } |
36319 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
36320 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36321 | } | |
36322 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
36323 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36324 | } | |
36325 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
36326 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36327 | } | |
36328 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
36329 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36330 | } | |
36331 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
36332 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36333 | } | |
36334 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
36335 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36336 | } | |
36337 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
36338 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36339 | } | |
36340 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
36341 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
36342 | } | |
36343 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
36344 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36345 | } | |
36346 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
36347 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36348 | } | |
53aa7709 RD |
36349 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { |
36350 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36351 | } | |
d55e5bfc RD |
36352 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
36353 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36354 | } | |
36355 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
36356 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
36357 | } | |
d55e5bfc RD |
36358 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { |
36359 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
36360 | } | |
36361 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
36362 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36363 | } | |
36364 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
36365 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36366 | } | |
36367 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
36368 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
36369 | } | |
36370 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
36371 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
36372 | } | |
36373 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
36374 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
36375 | } | |
36376 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
36377 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
36378 | } | |
36379 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
36380 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
36381 | } | |
36382 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
36383 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
36384 | } | |
36385 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
36386 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36387 | } | |
d55e5bfc RD |
36388 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
36389 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36390 | } | |
36391 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
36392 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
36393 | } | |
36394 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
36395 | return (void *)((wxObject *) ((wxSizer *) x)); | |
36396 | } | |
36397 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
36398 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36399 | } | |
36400 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
36401 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36402 | } | |
36403 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
36404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36405 | } | |
36406 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
36407 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36408 | } | |
36409 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
36410 | return (void *)((wxObject *) ((wxEvent *) x)); | |
36411 | } | |
36412 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
36413 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36414 | } | |
36415 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
36416 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
36417 | } | |
36418 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
36419 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
36420 | } | |
36421 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
36422 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36423 | } | |
36424 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
36425 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36426 | } | |
36427 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
36428 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36429 | } | |
36430 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
36431 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
36432 | } | |
36433 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
36434 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
36435 | } | |
36436 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
36437 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36438 | } | |
36439 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
36440 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36441 | } | |
36442 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
36443 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36444 | } | |
36445 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
36446 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36447 | } | |
36448 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
36449 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36450 | } | |
36451 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
36452 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
36453 | } | |
36454 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
36455 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36456 | } | |
36457 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
36458 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36459 | } | |
36460 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
36461 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36462 | } | |
36463 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
36464 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36465 | } | |
36466 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
36467 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36468 | } | |
36469 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
36470 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
36471 | } | |
36472 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
36473 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36474 | } | |
36475 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
36476 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
36477 | } | |
36478 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
36479 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
36480 | } | |
36481 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
36482 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36483 | } | |
36484 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
36485 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36486 | } | |
36487 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
8ac8dba0 | 36488 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
36489 | } |
36490 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
36491 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
36492 | } | |
36493 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
36494 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36495 | } | |
ae8162c8 | 36496 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
8ac8dba0 | 36497 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
ae8162c8 | 36498 | } |
d55e5bfc | 36499 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
8ac8dba0 | 36500 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
36501 | } |
36502 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
36503 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
36504 | } | |
36505 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
36506 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36507 | } | |
36508 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
36509 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36510 | } | |
36511 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
36512 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
36513 | } | |
53aa7709 RD |
36514 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
36515 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
36516 | } | |
d55e5bfc RD |
36517 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
36518 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
36519 | } | |
36520 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
36521 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36522 | } | |
36523 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
36524 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36525 | } | |
36526 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
36527 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
36528 | } | |
36529 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
36530 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
36531 | } | |
36532 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
36533 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
36534 | } | |
36535 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
36536 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
36537 | } | |
36538 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
36539 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
36540 | } | |
36541 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
36542 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36543 | } | |
36544 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
36545 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
36546 | } | |
8ac8dba0 RD |
36547 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
36548 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36549 | } | |
d55e5bfc RD |
36550 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
36551 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
36552 | } | |
36553 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
36554 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
36555 | } | |
36556 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
36557 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
36558 | } | |
36559 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
36560 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
36561 | } | |
36562 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
36563 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
36564 | } | |
36565 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
36566 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36567 | } | |
36568 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
36569 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36570 | } | |
36571 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
36572 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
36573 | } | |
36574 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
36575 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
36576 | } | |
9d7dfdff RD |
36577 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
36578 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
36579 | } | |
d55e5bfc RD |
36580 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
36581 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
36582 | } | |
9d7dfdff RD |
36583 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
36584 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
36585 | } | |
d55e5bfc RD |
36586 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
36587 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
36588 | } | |
36589 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
36590 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
36591 | } | |
36592 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
36593 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
36594 | } | |
36595 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
36596 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36597 | } | |
36598 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
36599 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36600 | } | |
d55e5bfc RD |
36601 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
36602 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
36603 | } | |
36604 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
36605 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36606 | } | |
36607 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
36608 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36609 | } | |
36610 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
36611 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36612 | } | |
62d32a5f RD |
36613 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
36614 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
36615 | } | |
d55e5bfc RD |
36616 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
36617 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
36618 | } | |
36619 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
36620 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36621 | } | |
36622 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
36623 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36624 | } | |
36625 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
36626 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
36627 | } | |
36628 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
36629 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
36630 | } | |
36631 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
36632 | return (void *)((wxObject *) ((wxListItem *) x)); | |
36633 | } | |
36634 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36635 | return (void *)((wxObject *) ((wxImage *) x)); | |
36636 | } | |
d55e5bfc RD |
36637 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
36638 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
36639 | } | |
36640 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
36641 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36642 | } | |
36643 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
36644 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
36645 | } | |
36646 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
36647 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36648 | } | |
36649 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 36650 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc RD |
36651 | } |
36652 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 36653 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc | 36654 | } |
ae8162c8 | 36655 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
8ac8dba0 | 36656 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
ae8162c8 | 36657 | } |
d55e5bfc RD |
36658 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
36659 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36660 | } | |
36661 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
36662 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36663 | } | |
36664 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
36665 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
36666 | } | |
36667 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36668 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36669 | } | |
36670 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36671 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36672 | } | |
36673 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36674 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36675 | } | |
36676 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
36677 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
36678 | } | |
36679 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36680 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36681 | } | |
36682 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36683 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36684 | } | |
36685 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36686 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36687 | } | |
36688 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36689 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36690 | } | |
36691 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36692 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36693 | } | |
36694 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36695 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36696 | } | |
8ac8dba0 RD |
36697 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { |
36698 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36699 | } | |
d55e5bfc RD |
36700 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { |
36701 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36702 | } | |
36703 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
36704 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36705 | } | |
36706 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
36707 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
36708 | } | |
36709 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
36710 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36711 | } | |
36712 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
36713 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
36714 | } | |
36715 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
36716 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
36717 | } | |
36718 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
36719 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36720 | } | |
53aa7709 RD |
36721 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { |
36722 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36723 | } | |
d55e5bfc RD |
36724 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
36725 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36726 | } | |
36727 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
36728 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
36729 | } | |
36730 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
36731 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36732 | } | |
36733 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
36734 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36735 | } | |
36736 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36737 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36738 | } | |
d55e5bfc RD |
36739 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
36740 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
36741 | } | |
8ac8dba0 RD |
36742 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { |
36743 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
36744 | } | |
d55e5bfc RD |
36745 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { |
36746 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36747 | } | |
36748 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
36749 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
36750 | } | |
36751 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
36752 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
36753 | } | |
d55e5bfc RD |
36754 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
36755 | return (void *)((wxWindow *) ((wxControl *) x)); | |
36756 | } | |
36757 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
36758 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
36759 | } | |
36760 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
36761 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36762 | } | |
36763 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
36764 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
36765 | } | |
36766 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
36767 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
36768 | } | |
ae8162c8 RD |
36769 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
36770 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
36771 | } | |
d55e5bfc RD |
36772 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
36773 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
36774 | } | |
36775 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
36776 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
36777 | } | |
36778 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
36779 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
36780 | } | |
36781 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
36782 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
36783 | } | |
36784 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
36785 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
36786 | } | |
ae8162c8 | 36787 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
8ac8dba0 | 36788 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
ae8162c8 | 36789 | } |
d55e5bfc | 36790 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
8ac8dba0 | 36791 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d55e5bfc RD |
36792 | } |
36793 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
36794 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
36795 | } | |
36796 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
36797 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
36798 | } | |
36799 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
36800 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
36801 | } | |
36802 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
36803 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36804 | } | |
36805 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
36806 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36807 | } | |
36808 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
36809 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36810 | } | |
36811 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
36812 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36813 | } | |
36814 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
8ac8dba0 | 36815 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d55e5bfc RD |
36816 | } |
36817 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
36818 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
36819 | } | |
36820 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
36821 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
36822 | } | |
36823 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
36824 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
36825 | } | |
36826 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
36827 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
36828 | } | |
36829 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
36830 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
36831 | } | |
36832 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
36833 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
36834 | } | |
36835 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
36836 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
36837 | } | |
36838 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
36839 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36840 | } | |
36841 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
36842 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36843 | } | |
53aa7709 RD |
36844 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { |
36845 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
36846 | } | |
d55e5bfc RD |
36847 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
36848 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
36849 | } | |
8ac8dba0 RD |
36850 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
36851 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36852 | } | |
36853 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36854 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36855 | } | |
36856 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36857 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36858 | } | |
d55e5bfc RD |
36859 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
36860 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36861 | } | |
d55e5bfc RD |
36862 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
36863 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36864 | } | |
36865 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
36866 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
36867 | } | |
36868 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
36869 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36870 | } | |
36871 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
36872 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36873 | } | |
36874 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
36875 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36876 | } | |
36877 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 36878 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d55e5bfc RD |
36879 | } |
36880 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 36881 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d55e5bfc | 36882 | } |
53aa7709 RD |
36883 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
36884 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36885 | } | |
36886 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
36887 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
36888 | } | |
d55e5bfc RD |
36889 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
36890 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36891 | } | |
ae8162c8 RD |
36892 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
36893 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
36894 | } | |
8ac8dba0 RD |
36895 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
36896 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36897 | } | |
d55e5bfc RD |
36898 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
36899 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36900 | } | |
36901 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
36902 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36903 | } | |
36904 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
36905 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
36906 | } | |
36907 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
36908 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36909 | } | |
36910 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
36911 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36912 | } | |
36913 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
36914 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
36915 | } | |
36916 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
36917 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36918 | } | |
36919 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
36920 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
36921 | } | |
36922 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
36923 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
36924 | } | |
36925 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
36926 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
36927 | } | |
36928 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
36929 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
36930 | } | |
36931 | 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 |
36932 | 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}}; |
36933 | 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 | 36934 | 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 |
36935 | 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}}; |
36936 | 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 |
36937 | 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}}; |
36938 | 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}}; | |
093d3ff1 | 36939 | 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 |
36940 | 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}}; |
36941 | 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 | 36942 | 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 |
36943 | 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}}; |
36944 | 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}}; | |
36945 | 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}}; | |
36946 | 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}}; | |
36947 | 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}}; | |
36948 | 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}}; | |
36949 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36950 | 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}}; | |
093d3ff1 RD |
36951 | 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}}; |
36952 | 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 |
36953 | 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}}; |
36954 | 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}}; | |
36955 | 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}}; | |
36956 | 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}}; | |
36957 | 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}}; | |
36958 | 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}}; | |
36959 | 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}}; | |
36960 | 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}}; | |
36961 | 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}}; | |
36962 | 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}}; | |
ae8162c8 | 36963 | 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}}; |
8ac8dba0 | 36964 | 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 | 36965 | 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}}; |
093d3ff1 | 36966 | 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 |
36967 | 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}}; |
36968 | 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}}; | |
36969 | 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}}; | |
36970 | 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}}; | |
36971 | 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}}; | |
36972 | 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}}; | |
36973 | 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}}; | |
093d3ff1 | 36974 | 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}}; |
8ac8dba0 | 36975 | 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 | 36976 | 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 |
36977 | 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}}; |
36978 | 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}}; | |
36979 | 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 |
36980 | 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}}; |
36981 | 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}}; | |
36982 | 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}}; | |
36983 | 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}}; | |
36984 | 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}}; | |
36985 | 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}}; | |
36986 | 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}}; | |
36987 | 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 | 36988 | 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}}; |
093d3ff1 | 36989 | 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 |
36990 | 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}}; |
36991 | 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 |
36992 | 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}}; |
36993 | 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}}; | |
36994 | 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}}; | |
093d3ff1 | 36995 | 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 |
36996 | 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}}; |
36997 | 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}}; | |
36998 | 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}}; | |
36999 | 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}}; | |
ae8162c8 | 37000 | 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 |
37001 | 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}}; |
37002 | 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}}; | |
093d3ff1 | 37003 | 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}}; |
9d7dfdff | 37004 | 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 | 37005 | 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 | 37006 | 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 | 37007 | 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}}; |
093d3ff1 | 37008 | 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 | 37009 | 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 |
37010 | 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}}; |
37011 | 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}}; | |
093d3ff1 RD |
37012 | 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}}; |
37013 | 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}}; | |
37014 | 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 | 37015 | 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}}; |
8ac8dba0 | 37016 | 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}}; |
093d3ff1 | 37017 | 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 | 37018 | 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 | 37019 | 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 | 37020 | 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 |
37021 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
37022 | 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}}; | |
37023 | 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}}; | |
37024 | 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 |
37025 | 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}}; |
37026 | ||
37027 | static swig_type_info *swig_types_initial[] = { | |
37028 | _swigt__p_wxTextUrlEvent, | |
d55e5bfc RD |
37029 | _swigt__p_wxCheckBox, |
37030 | _swigt__p_wxPyTreeCtrl, | |
37031 | _swigt__p_wxEvent, | |
37032 | _swigt__p_wxGenericDirCtrl, | |
37033 | _swigt__p_bool, | |
d55e5bfc RD |
37034 | _swigt__p_wxItemContainer, |
37035 | _swigt__p_wxPyListCtrl, | |
093d3ff1 | 37036 | _swigt__p_wxPyTreeItemData, |
d55e5bfc RD |
37037 | _swigt__p_wxDirFilterListCtrl, |
37038 | _swigt__p_wxStaticLine, | |
37039 | _swigt__p_wxControl, | |
37040 | _swigt__p_wxPyControl, | |
37041 | _swigt__p_wxGauge, | |
37042 | _swigt__p_wxToolBarBase, | |
37043 | _swigt__p_wxFont, | |
37044 | _swigt__p_wxToggleButton, | |
37045 | _swigt__p_wxRadioButton, | |
37046 | _swigt__p_wxChoice, | |
37047 | _swigt__p_wxMemoryDC, | |
093d3ff1 RD |
37048 | _swigt__ptrdiff_t, |
37049 | _swigt__std__ptrdiff_t, | |
d55e5bfc RD |
37050 | _swigt__p_wxListItemAttr, |
37051 | _swigt__p_void, | |
37052 | _swigt__p_int, | |
37053 | _swigt__p_wxSize, | |
37054 | _swigt__p_wxDC, | |
37055 | _swigt__p_wxListView, | |
37056 | _swigt__p_wxIcon, | |
37057 | _swigt__p_wxVisualAttributes, | |
37058 | _swigt__p_wxTextCtrl, | |
37059 | _swigt__p_wxNotebook, | |
ae8162c8 | 37060 | _swigt__p_wxChoicebook, |
d55e5bfc RD |
37061 | _swigt__p_wxNotifyEvent, |
37062 | _swigt__p_wxArrayString, | |
093d3ff1 | 37063 | _swigt__p_form_ops_t, |
d55e5bfc RD |
37064 | _swigt__p_wxListbook, |
37065 | _swigt__p_wxStaticBitmap, | |
37066 | _swigt__p_wxSlider, | |
37067 | _swigt__p_wxStaticBox, | |
37068 | _swigt__p_wxArrayInt, | |
37069 | _swigt__p_wxContextHelp, | |
37070 | _swigt__p_long, | |
093d3ff1 | 37071 | _swigt__p_wxDuplexMode, |
8ac8dba0 | 37072 | _swigt__p_wxBookCtrlBase, |
d55e5bfc RD |
37073 | _swigt__p_wxEvtHandler, |
37074 | _swigt__p_wxListEvent, | |
37075 | _swigt__p_wxCheckListBox, | |
37076 | _swigt__p_wxListBox, | |
d55e5bfc RD |
37077 | _swigt__p_wxSpinButton, |
37078 | _swigt__p_wxButton, | |
37079 | _swigt__p_wxBitmapButton, | |
37080 | _swigt__p_wxRect, | |
37081 | _swigt__p_wxContextHelpButton, | |
37082 | _swigt__p_wxRadioBox, | |
37083 | _swigt__p_wxScrollBar, | |
37084 | _swigt__p_char, | |
d55e5bfc | 37085 | _swigt__p_wxComboBox, |
093d3ff1 | 37086 | _swigt__p_wxTreeItemId, |
d55e5bfc RD |
37087 | _swigt__p_wxHelpEvent, |
37088 | _swigt__p_wxListItem, | |
d55e5bfc RD |
37089 | _swigt__p_wxSpinEvent, |
37090 | _swigt__p_wxGenericDragImage, | |
37091 | _swigt__p_wxSpinCtrl, | |
093d3ff1 | 37092 | _swigt__p_wxPaperSize, |
d55e5bfc RD |
37093 | _swigt__p_wxImageList, |
37094 | _swigt__p_wxHelpProvider, | |
37095 | _swigt__p_wxTextAttr, | |
37096 | _swigt__p_wxSimpleHelpProvider, | |
ae8162c8 | 37097 | _swigt__p_wxChoicebookEvent, |
d55e5bfc RD |
37098 | _swigt__p_wxListbookEvent, |
37099 | _swigt__p_wxNotebookEvent, | |
093d3ff1 | 37100 | _swigt__p_wxPoint, |
d55e5bfc RD |
37101 | _swigt__p_wxObject, |
37102 | _swigt__p_wxCursor, | |
53aa7709 | 37103 | _swigt__p_wxDateTime, |
d55e5bfc | 37104 | _swigt__p_wxKeyEvent, |
093d3ff1 | 37105 | _swigt__p_unsigned_long, |
d55e5bfc RD |
37106 | _swigt__p_wxWindow, |
37107 | _swigt__p_wxString, | |
37108 | _swigt__p_wxBitmap, | |
093d3ff1 RD |
37109 | _swigt__unsigned_int, |
37110 | _swigt__p_unsigned_int, | |
37111 | _swigt__p_unsigned_char, | |
d55e5bfc | 37112 | _swigt__p_wxMouseEvent, |
8ac8dba0 | 37113 | _swigt__p_wxBookCtrlBaseEvent, |
093d3ff1 | 37114 | _swigt__p_wxTreeEvent, |
d55e5bfc RD |
37115 | _swigt__p_wxCommandEvent, |
37116 | _swigt__p_wxStaticText, | |
53aa7709 | 37117 | _swigt__p_wxDatePickerCtrl, |
d55e5bfc RD |
37118 | _swigt__p_wxControlWithItems, |
37119 | _swigt__p_wxToolBarToolBase, | |
37120 | _swigt__p_wxColour, | |
37121 | _swigt__p_wxToolBar, | |
d55e5bfc RD |
37122 | _swigt__p_wxValidator, |
37123 | 0 | |
37124 | }; | |
37125 | ||
37126 | ||
37127 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
37128 | ||
37129 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 37130 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
37131 | |
37132 | #ifdef __cplusplus | |
37133 | } | |
37134 | #endif | |
37135 | ||
093d3ff1 RD |
37136 | |
37137 | #ifdef __cplusplus | |
37138 | extern "C" { | |
37139 | #endif | |
37140 | ||
37141 | /* Python-specific SWIG API */ | |
37142 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
37143 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
37144 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
37145 | ||
37146 | /* ----------------------------------------------------------------------------- | |
37147 | * global variable support code. | |
37148 | * ----------------------------------------------------------------------------- */ | |
37149 | ||
37150 | typedef struct swig_globalvar { | |
37151 | char *name; /* Name of global variable */ | |
37152 | PyObject *(*get_attr)(); /* Return the current value */ | |
37153 | int (*set_attr)(PyObject *); /* Set the value */ | |
37154 | struct swig_globalvar *next; | |
37155 | } swig_globalvar; | |
37156 | ||
37157 | typedef struct swig_varlinkobject { | |
37158 | PyObject_HEAD | |
37159 | swig_globalvar *vars; | |
37160 | } swig_varlinkobject; | |
37161 | ||
37162 | static PyObject * | |
37163 | swig_varlink_repr(swig_varlinkobject *v) { | |
37164 | v = v; | |
37165 | return PyString_FromString("<Swig global variables>"); | |
37166 | } | |
37167 | ||
37168 | static int | |
37169 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
37170 | swig_globalvar *var; | |
37171 | flags = flags; | |
37172 | fprintf(fp,"Swig global variables { "); | |
37173 | for (var = v->vars; var; var=var->next) { | |
37174 | fprintf(fp,"%s", var->name); | |
37175 | if (var->next) fprintf(fp,", "); | |
37176 | } | |
37177 | fprintf(fp," }\n"); | |
37178 | return 0; | |
37179 | } | |
37180 | ||
37181 | static PyObject * | |
37182 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
37183 | swig_globalvar *var = v->vars; | |
37184 | while (var) { | |
37185 | if (strcmp(var->name,n) == 0) { | |
37186 | return (*var->get_attr)(); | |
37187 | } | |
37188 | var = var->next; | |
37189 | } | |
37190 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
37191 | return NULL; | |
37192 | } | |
37193 | ||
37194 | static int | |
37195 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
37196 | swig_globalvar *var = v->vars; | |
37197 | while (var) { | |
37198 | if (strcmp(var->name,n) == 0) { | |
37199 | return (*var->set_attr)(p); | |
37200 | } | |
37201 | var = var->next; | |
37202 | } | |
37203 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
37204 | return 1; | |
37205 | } | |
37206 | ||
37207 | static PyTypeObject varlinktype = { | |
37208 | PyObject_HEAD_INIT(0) | |
37209 | 0, /* Number of items in variable part (ob_size) */ | |
37210 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
37211 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
37212 | 0, /* Itemsize (tp_itemsize) */ | |
37213 | 0, /* Deallocator (tp_dealloc) */ | |
37214 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
37215 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
37216 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
37217 | 0, /* tp_compare */ | |
37218 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
37219 | 0, /* tp_as_number */ | |
37220 | 0, /* tp_as_sequence */ | |
37221 | 0, /* tp_as_mapping */ | |
37222 | 0, /* tp_hash */ | |
37223 | 0, /* tp_call */ | |
37224 | 0, /* tp_str */ | |
37225 | 0, /* tp_getattro */ | |
37226 | 0, /* tp_setattro */ | |
37227 | 0, /* tp_as_buffer */ | |
37228 | 0, /* tp_flags */ | |
37229 | 0, /* tp_doc */ | |
37230 | #if PY_VERSION_HEX >= 0x02000000 | |
37231 | 0, /* tp_traverse */ | |
37232 | 0, /* tp_clear */ | |
37233 | #endif | |
37234 | #if PY_VERSION_HEX >= 0x02010000 | |
37235 | 0, /* tp_richcompare */ | |
37236 | 0, /* tp_weaklistoffset */ | |
37237 | #endif | |
37238 | #if PY_VERSION_HEX >= 0x02020000 | |
37239 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
37240 | #endif | |
37241 | #if PY_VERSION_HEX >= 0x02030000 | |
37242 | 0, /* tp_del */ | |
37243 | #endif | |
37244 | #ifdef COUNT_ALLOCS | |
37245 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
37246 | #endif | |
37247 | }; | |
37248 | ||
37249 | /* Create a variable linking object for use later */ | |
37250 | static PyObject * | |
37251 | SWIG_Python_newvarlink(void) { | |
37252 | swig_varlinkobject *result = 0; | |
37253 | result = PyMem_NEW(swig_varlinkobject,1); | |
37254 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
37255 | result->ob_type = &varlinktype; | |
37256 | result->vars = 0; | |
37257 | result->ob_refcnt = 0; | |
37258 | Py_XINCREF((PyObject *) result); | |
37259 | return ((PyObject*) result); | |
37260 | } | |
37261 | ||
37262 | static void | |
37263 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
37264 | swig_varlinkobject *v; | |
37265 | swig_globalvar *gv; | |
37266 | v= (swig_varlinkobject *) p; | |
37267 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
37268 | gv->name = (char *) malloc(strlen(name)+1); | |
37269 | strcpy(gv->name,name); | |
37270 | gv->get_attr = get_attr; | |
37271 | gv->set_attr = set_attr; | |
37272 | gv->next = v->vars; | |
37273 | v->vars = gv; | |
37274 | } | |
37275 | ||
37276 | /* ----------------------------------------------------------------------------- | |
37277 | * constants/methods manipulation | |
37278 | * ----------------------------------------------------------------------------- */ | |
37279 | ||
37280 | /* Install Constants */ | |
37281 | static void | |
37282 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
37283 | PyObject *obj = 0; | |
37284 | size_t i; | |
37285 | for (i = 0; constants[i].type; i++) { | |
37286 | switch(constants[i].type) { | |
37287 | case SWIG_PY_INT: | |
37288 | obj = PyInt_FromLong(constants[i].lvalue); | |
37289 | break; | |
37290 | case SWIG_PY_FLOAT: | |
37291 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
37292 | break; | |
37293 | case SWIG_PY_STRING: | |
37294 | if (constants[i].pvalue) { | |
37295 | obj = PyString_FromString((char *) constants[i].pvalue); | |
37296 | } else { | |
37297 | Py_INCREF(Py_None); | |
37298 | obj = Py_None; | |
37299 | } | |
37300 | break; | |
37301 | case SWIG_PY_POINTER: | |
37302 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
37303 | break; | |
37304 | case SWIG_PY_BINARY: | |
37305 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
37306 | break; | |
37307 | default: | |
37308 | obj = 0; | |
37309 | break; | |
37310 | } | |
37311 | if (obj) { | |
37312 | PyDict_SetItemString(d,constants[i].name,obj); | |
37313 | Py_DECREF(obj); | |
37314 | } | |
37315 | } | |
37316 | } | |
37317 | ||
37318 | /* -----------------------------------------------------------------------------*/ | |
37319 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37320 | /* -----------------------------------------------------------------------------*/ | |
37321 | ||
37322 | static void | |
37323 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
37324 | swig_const_info *const_table, | |
37325 | swig_type_info **types, | |
37326 | swig_type_info **types_initial) { | |
37327 | size_t i; | |
37328 | for (i = 0; methods[i].ml_name; ++i) { | |
37329 | char *c = methods[i].ml_doc; | |
37330 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
37331 | int j; | |
37332 | swig_const_info *ci = 0; | |
37333 | char *name = c + 10; | |
37334 | for (j = 0; const_table[j].type; j++) { | |
37335 | if (strncmp(const_table[j].name, name, | |
37336 | strlen(const_table[j].name)) == 0) { | |
37337 | ci = &(const_table[j]); | |
37338 | break; | |
37339 | } | |
37340 | } | |
37341 | if (ci) { | |
37342 | size_t shift = (ci->ptype) - types; | |
37343 | swig_type_info *ty = types_initial[shift]; | |
37344 | size_t ldoc = (c - methods[i].ml_doc); | |
37345 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
37346 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
37347 | char *buff = ndoc; | |
37348 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
37349 | strncpy(buff, methods[i].ml_doc, ldoc); | |
37350 | buff += ldoc; | |
37351 | strncpy(buff, "swig_ptr: ", 10); | |
37352 | buff += 10; | |
37353 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
37354 | methods[i].ml_doc = ndoc; | |
37355 | } | |
37356 | } | |
37357 | } | |
37358 | } | |
37359 | ||
37360 | /* -----------------------------------------------------------------------------* | |
37361 | * Initialize type list | |
37362 | * -----------------------------------------------------------------------------*/ | |
37363 | ||
37364 | #if PY_MAJOR_VERSION < 2 | |
37365 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
37366 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
37367 | static int | |
37368 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
37369 | { | |
37370 | PyObject *dict; | |
37371 | if (!PyModule_Check(m)) { | |
37372 | PyErr_SetString(PyExc_TypeError, | |
37373 | "PyModule_AddObject() needs module as first arg"); | |
37374 | return -1; | |
37375 | } | |
37376 | if (!o) { | |
37377 | PyErr_SetString(PyExc_TypeError, | |
37378 | "PyModule_AddObject() needs non-NULL value"); | |
37379 | return -1; | |
37380 | } | |
37381 | ||
37382 | dict = PyModule_GetDict(m); | |
37383 | if (dict == NULL) { | |
37384 | /* Internal error -- modules must have a dict! */ | |
37385 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
37386 | PyModule_GetName(m)); | |
37387 | return -1; | |
37388 | } | |
37389 | if (PyDict_SetItemString(dict, name, o)) | |
37390 | return -1; | |
37391 | Py_DECREF(o); | |
37392 | return 0; | |
37393 | } | |
37394 | #endif | |
37395 | ||
37396 | static swig_type_info ** | |
37397 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
37398 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
37399 | { | |
37400 | NULL, NULL, 0, NULL | |
37401 | } | |
37402 | };/* Sentinel */ | |
37403 | ||
37404 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
37405 | swig_empty_runtime_method_table); | |
37406 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
37407 | if (pointer && module) { | |
37408 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
37409 | } | |
37410 | return type_list_handle; | |
37411 | } | |
37412 | ||
37413 | static swig_type_info ** | |
37414 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
37415 | swig_type_info **type_pointer; | |
37416 | ||
37417 | /* first check if module already created */ | |
37418 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
37419 | if (type_pointer) { | |
37420 | return type_pointer; | |
37421 | } else { | |
37422 | /* create a new module and variable */ | |
37423 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
37424 | } | |
37425 | } | |
37426 | ||
37427 | #ifdef __cplusplus | |
37428 | } | |
37429 | #endif | |
37430 | ||
37431 | /* -----------------------------------------------------------------------------* | |
37432 | * Partial Init method | |
37433 | * -----------------------------------------------------------------------------*/ | |
37434 | ||
37435 | #ifdef SWIG_LINK_RUNTIME | |
37436 | #ifdef __cplusplus | |
37437 | extern "C" | |
37438 | #endif | |
37439 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
37440 | #endif | |
37441 | ||
d55e5bfc RD |
37442 | #ifdef __cplusplus |
37443 | extern "C" | |
37444 | #endif | |
37445 | SWIGEXPORT(void) SWIG_init(void) { | |
37446 | static PyObject *SWIG_globals = 0; | |
37447 | static int typeinit = 0; | |
37448 | PyObject *m, *d; | |
37449 | int i; | |
37450 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
37451 | |
37452 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37453 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
37454 | ||
d55e5bfc RD |
37455 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
37456 | d = PyModule_GetDict(m); | |
37457 | ||
37458 | if (!typeinit) { | |
093d3ff1 RD |
37459 | #ifdef SWIG_LINK_RUNTIME |
37460 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
37461 | #else | |
37462 | # ifndef SWIG_STATIC_RUNTIME | |
37463 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
37464 | # endif | |
37465 | #endif | |
d55e5bfc RD |
37466 | for (i = 0; swig_types_initial[i]; i++) { |
37467 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
37468 | } | |
37469 | typeinit = 1; | |
37470 | } | |
37471 | SWIG_InstallConstants(d,swig_const_table); | |
37472 | ||
37473 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
37474 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
093d3ff1 RD |
37475 | { |
37476 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)(wxBU_LEFT))); | |
37477 | } | |
37478 | { | |
37479 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)(wxBU_TOP))); | |
37480 | } | |
37481 | { | |
37482 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)(wxBU_RIGHT))); | |
37483 | } | |
37484 | { | |
37485 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)(wxBU_BOTTOM))); | |
37486 | } | |
37487 | { | |
37488 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)(wxBU_ALIGN_MASK))); | |
37489 | } | |
37490 | { | |
37491 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)(wxBU_EXACTFIT))); | |
37492 | } | |
37493 | { | |
37494 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)(wxBU_AUTODRAW))); | |
37495 | } | |
d55e5bfc | 37496 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
093d3ff1 RD |
37497 | { |
37498 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)(wxCHK_2STATE))); | |
37499 | } | |
37500 | { | |
37501 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)(wxCHK_3STATE))); | |
37502 | } | |
37503 | { | |
37504 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
37505 | } | |
37506 | { | |
37507 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)(wxCHK_UNCHECKED))); | |
37508 | } | |
37509 | { | |
37510 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)(wxCHK_CHECKED))); | |
37511 | } | |
37512 | { | |
37513 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)(wxCHK_UNDETERMINED))); | |
37514 | } | |
d55e5bfc RD |
37515 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
37516 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
37517 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
093d3ff1 RD |
37518 | { |
37519 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)(wxGA_HORIZONTAL))); | |
37520 | } | |
37521 | { | |
37522 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)(wxGA_VERTICAL))); | |
37523 | } | |
37524 | { | |
37525 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)(wxGA_SMOOTH))); | |
37526 | } | |
37527 | { | |
37528 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)(wxGA_PROGRESSBAR))); | |
37529 | } | |
d55e5bfc RD |
37530 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
37531 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
37532 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
37533 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
37534 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
093d3ff1 RD |
37535 | { |
37536 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)(wxTE_NO_VSCROLL))); | |
37537 | } | |
37538 | { | |
37539 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)(wxTE_AUTO_SCROLL))); | |
37540 | } | |
37541 | { | |
37542 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)(wxTE_READONLY))); | |
37543 | } | |
37544 | { | |
37545 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)(wxTE_MULTILINE))); | |
37546 | } | |
37547 | { | |
37548 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)(wxTE_PROCESS_TAB))); | |
37549 | } | |
37550 | { | |
37551 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)(wxTE_LEFT))); | |
37552 | } | |
37553 | { | |
37554 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)(wxTE_CENTER))); | |
37555 | } | |
37556 | { | |
37557 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)(wxTE_RIGHT))); | |
37558 | } | |
37559 | { | |
37560 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)(wxTE_CENTRE))); | |
37561 | } | |
37562 | { | |
37563 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)(wxTE_RICH))); | |
37564 | } | |
37565 | { | |
37566 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)(wxTE_PROCESS_ENTER))); | |
37567 | } | |
37568 | { | |
37569 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)(wxTE_PASSWORD))); | |
37570 | } | |
37571 | { | |
37572 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)(wxTE_AUTO_URL))); | |
37573 | } | |
37574 | { | |
37575 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)(wxTE_NOHIDESEL))); | |
37576 | } | |
37577 | { | |
37578 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)(wxTE_DONTWRAP))); | |
37579 | } | |
37580 | { | |
08d9e66e | 37581 | PyDict_SetItemString(d,"TE_CHARWRAP", SWIG_From_int((int)(wxTE_CHARWRAP))); |
093d3ff1 RD |
37582 | } |
37583 | { | |
37584 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)(wxTE_WORDWRAP))); | |
37585 | } | |
08d9e66e RD |
37586 | { |
37587 | PyDict_SetItemString(d,"TE_BESTWRAP", SWIG_From_int((int)(wxTE_BESTWRAP))); | |
37588 | } | |
37589 | { | |
37590 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)(wxTE_LINEWRAP))); | |
37591 | } | |
093d3ff1 RD |
37592 | { |
37593 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)(wxTE_RICH2))); | |
37594 | } | |
88c6b281 RD |
37595 | { |
37596 | PyDict_SetItemString(d,"TE_CAPITALIZE", SWIG_From_int((int)(wxTE_CAPITALIZE))); | |
37597 | } | |
093d3ff1 RD |
37598 | { |
37599 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_DEFAULT))); | |
37600 | } | |
37601 | { | |
37602 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_LEFT))); | |
37603 | } | |
37604 | { | |
37605 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTRE))); | |
37606 | } | |
37607 | { | |
37608 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTER))); | |
37609 | } | |
37610 | { | |
37611 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_RIGHT))); | |
37612 | } | |
37613 | { | |
37614 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
37615 | } | |
37616 | { | |
37617 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_TEXT_COLOUR))); | |
37618 | } | |
37619 | { | |
37620 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
37621 | } | |
37622 | { | |
37623 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_FACE))); | |
37624 | } | |
37625 | { | |
37626 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_SIZE))); | |
37627 | } | |
37628 | { | |
37629 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)(wxTEXT_ATTR_FONT_WEIGHT))); | |
37630 | } | |
37631 | { | |
37632 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)(wxTEXT_ATTR_FONT_ITALIC))); | |
37633 | } | |
37634 | { | |
37635 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_UNDERLINE))); | |
37636 | } | |
37637 | { | |
37638 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)(wxTEXT_ATTR_FONT))); | |
37639 | } | |
37640 | { | |
37641 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)(wxTEXT_ATTR_ALIGNMENT))); | |
37642 | } | |
37643 | { | |
37644 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_LEFT_INDENT))); | |
37645 | } | |
37646 | { | |
37647 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_RIGHT_INDENT))); | |
37648 | } | |
37649 | { | |
37650 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)(wxTEXT_ATTR_TABS))); | |
37651 | } | |
37652 | { | |
37653 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)(wxTE_HT_UNKNOWN))); | |
37654 | } | |
37655 | { | |
37656 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)(wxTE_HT_BEFORE))); | |
37657 | } | |
37658 | { | |
37659 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)(wxTE_HT_ON_TEXT))); | |
37660 | } | |
37661 | { | |
37662 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)(wxTE_HT_BELOW))); | |
37663 | } | |
37664 | { | |
37665 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)(wxTE_HT_BEYOND))); | |
37666 | } | |
fef4c27a RD |
37667 | { |
37668 | PyDict_SetItemString(d,"OutOfRangeTextCoord", SWIG_From_int((int)(wxOutOfRangeTextCoord))); | |
37669 | } | |
37670 | { | |
37671 | PyDict_SetItemString(d,"InvalidTextCoord", SWIG_From_int((int)(wxInvalidTextCoord))); | |
37672 | } | |
d55e5bfc RD |
37673 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
37674 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
37675 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
37676 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
37677 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
37678 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
37679 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
093d3ff1 RD |
37680 | { |
37681 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)(wxSP_HORIZONTAL))); | |
37682 | } | |
37683 | { | |
37684 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)(wxSP_VERTICAL))); | |
37685 | } | |
37686 | { | |
37687 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)(wxSP_ARROW_KEYS))); | |
37688 | } | |
37689 | { | |
37690 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)(wxSP_WRAP))); | |
37691 | } | |
d55e5bfc RD |
37692 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
37693 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
37694 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
37695 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
fef4c27a RD |
37696 | { |
37697 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)(wxSL_HORIZONTAL))); | |
37698 | } | |
37699 | { | |
37700 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)(wxSL_VERTICAL))); | |
37701 | } | |
70b7a5fe RD |
37702 | { |
37703 | PyDict_SetItemString(d,"SL_TICKS", SWIG_From_int((int)(wxSL_TICKS))); | |
37704 | } | |
fef4c27a RD |
37705 | { |
37706 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)(wxSL_AUTOTICKS))); | |
37707 | } | |
37708 | { | |
37709 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)(wxSL_LABELS))); | |
37710 | } | |
37711 | { | |
37712 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)(wxSL_LEFT))); | |
37713 | } | |
37714 | { | |
37715 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)(wxSL_TOP))); | |
37716 | } | |
37717 | { | |
37718 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)(wxSL_RIGHT))); | |
37719 | } | |
37720 | { | |
37721 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)(wxSL_BOTTOM))); | |
37722 | } | |
37723 | { | |
37724 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)(wxSL_BOTH))); | |
37725 | } | |
37726 | { | |
37727 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)(wxSL_SELRANGE))); | |
37728 | } | |
37729 | { | |
37730 | PyDict_SetItemString(d,"SL_INVERSE", SWIG_From_int((int)(wxSL_INVERSE))); | |
37731 | } | |
d55e5bfc RD |
37732 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); |
37733 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
51b83b37 | 37734 | SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set); |
093d3ff1 RD |
37735 | { |
37736 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)(wxNB_FIXEDWIDTH))); | |
37737 | } | |
37738 | { | |
37739 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)(wxNB_TOP))); | |
37740 | } | |
37741 | { | |
37742 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)(wxNB_LEFT))); | |
37743 | } | |
37744 | { | |
37745 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)(wxNB_RIGHT))); | |
37746 | } | |
37747 | { | |
37748 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)(wxNB_BOTTOM))); | |
37749 | } | |
37750 | { | |
37751 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)(wxNB_MULTILINE))); | |
37752 | } | |
091fdbfa RD |
37753 | { |
37754 | PyDict_SetItemString(d,"NB_NOPAGETHEME", SWIG_From_int((int)(wxNB_NOPAGETHEME))); | |
37755 | } | |
093d3ff1 RD |
37756 | { |
37757 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)(wxNB_HITTEST_NOWHERE))); | |
37758 | } | |
37759 | { | |
37760 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)(wxNB_HITTEST_ONICON))); | |
37761 | } | |
37762 | { | |
37763 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)(wxNB_HITTEST_ONLABEL))); | |
37764 | } | |
37765 | { | |
37766 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)(wxNB_HITTEST_ONITEM))); | |
37767 | } | |
d55e5bfc RD |
37768 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
37769 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37770 | { |
37771 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)(wxLB_DEFAULT))); | |
37772 | } | |
37773 | { | |
37774 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)(wxLB_TOP))); | |
37775 | } | |
37776 | { | |
37777 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)(wxLB_BOTTOM))); | |
37778 | } | |
37779 | { | |
37780 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)(wxLB_LEFT))); | |
37781 | } | |
37782 | { | |
37783 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)(wxLB_RIGHT))); | |
37784 | } | |
37785 | { | |
37786 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)(wxLB_ALIGN_MASK))); | |
37787 | } | |
d55e5bfc RD |
37788 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
37789 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37790 | { |
37791 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)(wxCHB_DEFAULT))); | |
37792 | } | |
37793 | { | |
37794 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)(wxCHB_TOP))); | |
37795 | } | |
37796 | { | |
37797 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)(wxCHB_BOTTOM))); | |
37798 | } | |
37799 | { | |
37800 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)(wxCHB_LEFT))); | |
37801 | } | |
37802 | { | |
37803 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)(wxCHB_RIGHT))); | |
37804 | } | |
37805 | { | |
37806 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)(wxCHB_ALIGN_MASK))); | |
37807 | } | |
ae8162c8 RD |
37808 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); |
37809 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37810 | { |
37811 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)(wxTOOL_STYLE_BUTTON))); | |
37812 | } | |
37813 | { | |
37814 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)(wxTOOL_STYLE_SEPARATOR))); | |
37815 | } | |
37816 | { | |
37817 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)(wxTOOL_STYLE_CONTROL))); | |
37818 | } | |
37819 | { | |
37820 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)(wxTB_HORIZONTAL))); | |
37821 | } | |
37822 | { | |
37823 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)(wxTB_VERTICAL))); | |
37824 | } | |
37825 | { | |
37826 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)(wxTB_3DBUTTONS))); | |
37827 | } | |
37828 | { | |
37829 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)(wxTB_FLAT))); | |
37830 | } | |
37831 | { | |
37832 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)(wxTB_DOCKABLE))); | |
37833 | } | |
37834 | { | |
37835 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)(wxTB_NOICONS))); | |
37836 | } | |
37837 | { | |
37838 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)(wxTB_TEXT))); | |
37839 | } | |
37840 | { | |
37841 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)(wxTB_NODIVIDER))); | |
37842 | } | |
37843 | { | |
37844 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)(wxTB_NOALIGN))); | |
37845 | } | |
37846 | { | |
37847 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)(wxTB_HORZ_LAYOUT))); | |
37848 | } | |
37849 | { | |
37850 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)(wxTB_HORZ_TEXT))); | |
37851 | } | |
d55e5bfc | 37852 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
093d3ff1 RD |
37853 | { |
37854 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)(wxLC_VRULES))); | |
37855 | } | |
37856 | { | |
37857 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)(wxLC_HRULES))); | |
37858 | } | |
37859 | { | |
37860 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)(wxLC_ICON))); | |
37861 | } | |
37862 | { | |
37863 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)(wxLC_SMALL_ICON))); | |
37864 | } | |
37865 | { | |
37866 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)(wxLC_LIST))); | |
37867 | } | |
37868 | { | |
37869 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)(wxLC_REPORT))); | |
37870 | } | |
37871 | { | |
37872 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)(wxLC_ALIGN_TOP))); | |
37873 | } | |
37874 | { | |
37875 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)(wxLC_ALIGN_LEFT))); | |
37876 | } | |
37877 | { | |
37878 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)(wxLC_AUTOARRANGE))); | |
37879 | } | |
37880 | { | |
37881 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)(wxLC_VIRTUAL))); | |
37882 | } | |
37883 | { | |
37884 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)(wxLC_EDIT_LABELS))); | |
37885 | } | |
37886 | { | |
37887 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)(wxLC_NO_HEADER))); | |
37888 | } | |
37889 | { | |
37890 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)(wxLC_NO_SORT_HEADER))); | |
37891 | } | |
37892 | { | |
37893 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)(wxLC_SINGLE_SEL))); | |
37894 | } | |
37895 | { | |
37896 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)(wxLC_SORT_ASCENDING))); | |
37897 | } | |
37898 | { | |
37899 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)(wxLC_SORT_DESCENDING))); | |
37900 | } | |
37901 | { | |
37902 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)(wxLC_MASK_TYPE))); | |
37903 | } | |
37904 | { | |
37905 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)(wxLC_MASK_ALIGN))); | |
37906 | } | |
37907 | { | |
37908 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)(wxLC_MASK_SORT))); | |
37909 | } | |
37910 | { | |
37911 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)(wxLIST_MASK_STATE))); | |
37912 | } | |
37913 | { | |
37914 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)(wxLIST_MASK_TEXT))); | |
37915 | } | |
37916 | { | |
37917 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)(wxLIST_MASK_IMAGE))); | |
37918 | } | |
37919 | { | |
37920 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)(wxLIST_MASK_DATA))); | |
37921 | } | |
37922 | { | |
37923 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)(wxLIST_SET_ITEM))); | |
37924 | } | |
37925 | { | |
37926 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)(wxLIST_MASK_WIDTH))); | |
37927 | } | |
37928 | { | |
37929 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)(wxLIST_MASK_FORMAT))); | |
37930 | } | |
37931 | { | |
37932 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)(wxLIST_STATE_DONTCARE))); | |
37933 | } | |
37934 | { | |
37935 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)(wxLIST_STATE_DROPHILITED))); | |
37936 | } | |
37937 | { | |
37938 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)(wxLIST_STATE_FOCUSED))); | |
37939 | } | |
37940 | { | |
37941 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)(wxLIST_STATE_SELECTED))); | |
37942 | } | |
37943 | { | |
37944 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)(wxLIST_STATE_CUT))); | |
37945 | } | |
37946 | { | |
37947 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)(wxLIST_STATE_DISABLED))); | |
37948 | } | |
37949 | { | |
37950 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)(wxLIST_STATE_FILTERED))); | |
37951 | } | |
37952 | { | |
37953 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)(wxLIST_STATE_INUSE))); | |
37954 | } | |
37955 | { | |
37956 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)(wxLIST_STATE_PICKED))); | |
37957 | } | |
37958 | { | |
37959 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)(wxLIST_STATE_SOURCE))); | |
37960 | } | |
37961 | { | |
37962 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)(wxLIST_HITTEST_ABOVE))); | |
37963 | } | |
37964 | { | |
37965 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)(wxLIST_HITTEST_BELOW))); | |
37966 | } | |
37967 | { | |
37968 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)(wxLIST_HITTEST_NOWHERE))); | |
37969 | } | |
37970 | { | |
37971 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMICON))); | |
37972 | } | |
37973 | { | |
37974 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMLABEL))); | |
37975 | } | |
37976 | { | |
37977 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMRIGHT))); | |
37978 | } | |
37979 | { | |
37980 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMSTATEICON))); | |
37981 | } | |
37982 | { | |
37983 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)(wxLIST_HITTEST_TOLEFT))); | |
37984 | } | |
37985 | { | |
37986 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)(wxLIST_HITTEST_TORIGHT))); | |
37987 | } | |
37988 | { | |
37989 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)(wxLIST_HITTEST_ONITEM))); | |
37990 | } | |
37991 | { | |
37992 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)(wxLIST_NEXT_ABOVE))); | |
37993 | } | |
37994 | { | |
37995 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)(wxLIST_NEXT_ALL))); | |
37996 | } | |
37997 | { | |
37998 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)(wxLIST_NEXT_BELOW))); | |
37999 | } | |
38000 | { | |
38001 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)(wxLIST_NEXT_LEFT))); | |
38002 | } | |
38003 | { | |
38004 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)(wxLIST_NEXT_RIGHT))); | |
38005 | } | |
38006 | { | |
38007 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)(wxLIST_ALIGN_DEFAULT))); | |
38008 | } | |
38009 | { | |
38010 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)(wxLIST_ALIGN_LEFT))); | |
38011 | } | |
38012 | { | |
38013 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)(wxLIST_ALIGN_TOP))); | |
38014 | } | |
38015 | { | |
38016 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)(wxLIST_ALIGN_SNAP_TO_GRID))); | |
38017 | } | |
38018 | { | |
38019 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)(wxLIST_FORMAT_LEFT))); | |
38020 | } | |
38021 | { | |
38022 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)(wxLIST_FORMAT_RIGHT))); | |
38023 | } | |
38024 | { | |
38025 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)(wxLIST_FORMAT_CENTRE))); | |
38026 | } | |
38027 | { | |
38028 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)(wxLIST_FORMAT_CENTER))); | |
38029 | } | |
38030 | { | |
38031 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)(wxLIST_AUTOSIZE))); | |
38032 | } | |
38033 | { | |
38034 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)(wxLIST_AUTOSIZE_USEHEADER))); | |
38035 | } | |
38036 | { | |
38037 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)(wxLIST_RECT_BOUNDS))); | |
38038 | } | |
38039 | { | |
38040 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)(wxLIST_RECT_ICON))); | |
38041 | } | |
38042 | { | |
38043 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)(wxLIST_RECT_LABEL))); | |
38044 | } | |
38045 | { | |
38046 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)(wxLIST_FIND_UP))); | |
38047 | } | |
38048 | { | |
38049 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)(wxLIST_FIND_DOWN))); | |
38050 | } | |
38051 | { | |
38052 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)(wxLIST_FIND_LEFT))); | |
38053 | } | |
38054 | { | |
38055 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)(wxLIST_FIND_RIGHT))); | |
38056 | } | |
d55e5bfc RD |
38057 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
38058 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
38059 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
38060 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
38061 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
38062 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
d55e5bfc RD |
38063 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); |
38064 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
38065 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
38066 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
38067 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
38068 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
38069 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
38070 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
38071 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
38072 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
38073 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
38074 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
38075 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
38076 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
38077 | ||
38078 | // Map renamed classes back to their common name for OOR | |
38079 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
38080 | ||
38081 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
093d3ff1 RD |
38082 | { |
38083 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)(wxTR_NO_BUTTONS))); | |
38084 | } | |
38085 | { | |
38086 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)(wxTR_HAS_BUTTONS))); | |
38087 | } | |
38088 | { | |
38089 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)(wxTR_NO_LINES))); | |
38090 | } | |
38091 | { | |
38092 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)(wxTR_LINES_AT_ROOT))); | |
38093 | } | |
38094 | { | |
38095 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)(wxTR_SINGLE))); | |
38096 | } | |
38097 | { | |
38098 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)(wxTR_MULTIPLE))); | |
38099 | } | |
38100 | { | |
38101 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)(wxTR_EXTENDED))); | |
38102 | } | |
38103 | { | |
38104 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
38105 | } | |
38106 | { | |
38107 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)(wxTR_EDIT_LABELS))); | |
38108 | } | |
38109 | { | |
38110 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)(wxTR_HIDE_ROOT))); | |
38111 | } | |
38112 | { | |
38113 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)(wxTR_ROW_LINES))); | |
38114 | } | |
38115 | { | |
38116 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)(wxTR_FULL_ROW_HIGHLIGHT))); | |
38117 | } | |
38118 | { | |
38119 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)(wxTR_DEFAULT_STYLE))); | |
38120 | } | |
38121 | { | |
38122 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)(wxTR_TWIST_BUTTONS))); | |
38123 | } | |
38124 | { | |
38125 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)(wxTR_MAC_BUTTONS))); | |
38126 | } | |
38127 | { | |
38128 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)(wxTR_AQUA_BUTTONS))); | |
38129 | } | |
38130 | { | |
38131 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)(wxTreeItemIcon_Normal))); | |
38132 | } | |
38133 | { | |
38134 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)(wxTreeItemIcon_Selected))); | |
38135 | } | |
38136 | { | |
38137 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)(wxTreeItemIcon_Expanded))); | |
38138 | } | |
38139 | { | |
38140 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)(wxTreeItemIcon_SelectedExpanded))); | |
38141 | } | |
38142 | { | |
38143 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)(wxTreeItemIcon_Max))); | |
38144 | } | |
38145 | { | |
38146 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)(wxTREE_HITTEST_ABOVE))); | |
38147 | } | |
38148 | { | |
38149 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)(wxTREE_HITTEST_BELOW))); | |
38150 | } | |
38151 | { | |
38152 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)(wxTREE_HITTEST_NOWHERE))); | |
38153 | } | |
38154 | { | |
38155 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMBUTTON))); | |
38156 | } | |
38157 | { | |
38158 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMICON))); | |
38159 | } | |
38160 | { | |
38161 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMINDENT))); | |
38162 | } | |
38163 | { | |
38164 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLABEL))); | |
38165 | } | |
38166 | { | |
38167 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMRIGHT))); | |
38168 | } | |
38169 | { | |
38170 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMSTATEICON))); | |
38171 | } | |
38172 | { | |
38173 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)(wxTREE_HITTEST_TOLEFT))); | |
38174 | } | |
38175 | { | |
38176 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)(wxTREE_HITTEST_TORIGHT))); | |
38177 | } | |
38178 | { | |
38179 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMUPPERPART))); | |
38180 | } | |
38181 | { | |
38182 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLOWERPART))); | |
38183 | } | |
38184 | { | |
38185 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)(wxTREE_HITTEST_ONITEM))); | |
38186 | } | |
d55e5bfc RD |
38187 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
38188 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
38189 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
38190 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
38191 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
38192 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
38193 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
38194 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
38195 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
38196 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
38197 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
38198 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
38199 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
38200 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
38201 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
38202 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
38203 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
38204 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
38205 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
38206 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
62d32a5f | 38207 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); |
d55e5bfc RD |
38208 | |
38209 | // Map renamed classes back to their common name for OOR | |
38210 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
38211 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
38212 | ||
38213 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
093d3ff1 RD |
38214 | { |
38215 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)(wxDIRCTRL_DIR_ONLY))); | |
38216 | } | |
38217 | { | |
38218 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)(wxDIRCTRL_SELECT_FIRST))); | |
38219 | } | |
38220 | { | |
38221 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)(wxDIRCTRL_SHOW_FILTERS))); | |
38222 | } | |
38223 | { | |
38224 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)(wxDIRCTRL_3D_INTERNAL))); | |
38225 | } | |
38226 | { | |
38227 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)(wxDIRCTRL_EDIT_LABELS))); | |
38228 | } | |
38229 | { | |
38230 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)(wxFRAME_EX_CONTEXTHELP))); | |
38231 | } | |
38232 | { | |
38233 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)(wxDIALOG_EX_CONTEXTHELP))); | |
38234 | } | |
d55e5bfc RD |
38235 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
38236 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
38237 | ||
38238 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
38239 | ||
53aa7709 RD |
38240 | SWIG_addvarlink(SWIG_globals,(char*)"DatePickerCtrlNameStr",_wrap_DatePickerCtrlNameStr_get, _wrap_DatePickerCtrlNameStr_set); |
38241 | { | |
38242 | PyDict_SetItemString(d,"DP_DEFAULT", SWIG_From_int((int)(wxDP_DEFAULT))); | |
38243 | } | |
38244 | { | |
38245 | PyDict_SetItemString(d,"DP_SPIN", SWIG_From_int((int)(wxDP_SPIN))); | |
38246 | } | |
38247 | { | |
38248 | PyDict_SetItemString(d,"DP_DROPDOWN", SWIG_From_int((int)(wxDP_DROPDOWN))); | |
38249 | } | |
38250 | { | |
38251 | PyDict_SetItemString(d,"DP_SHOWCENTURY", SWIG_From_int((int)(wxDP_SHOWCENTURY))); | |
38252 | } | |
38253 | { | |
38254 | PyDict_SetItemString(d,"DP_ALLOWNONE", SWIG_From_int((int)(wxDP_ALLOWNONE))); | |
38255 | } | |
d55e5bfc RD |
38256 | } |
38257 |