]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
093d3ff1 | 3 | * Version 1.3.24 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
d14a1e28 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 | }; |
d14a1e28 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 | |
d14a1e28 | 37 | |
c9c7117a | 38 | |
093d3ff1 | 39 | #include <Python.h> |
d14a1e28 RD |
40 | |
41 | /*********************************************************************** | |
093d3ff1 | 42 | * swigrun.swg |
d14a1e28 | 43 | * |
093d3ff1 RD |
44 | * This file contains generic CAPI SWIG runtime support for pointer |
45 | * type checking. | |
d14a1e28 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" | |
d14a1e28 | 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) | |
d14a1e28 | 58 | #else |
093d3ff1 | 59 | #define SWIG_TYPE_TABLE_NAME |
d14a1e28 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 | |
d14a1e28 | 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 | |
d14a1e28 RD |
85 | #endif |
86 | ||
d14a1e28 RD |
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 { | |
cc6dd355 | 95 | const char *name; |
d14a1e28 RD |
96 | swig_converter_func converter; |
97 | const char *str; | |
cc6dd355 | 98 | void *clientdata; |
d14a1e28 RD |
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 | } | |
d14a1e28 | 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 | } | |
d14a1e28 | 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 | } | |
d14a1e28 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. | |
d14a1e28 | 441 | * |
093d3ff1 | 442 | * Author : David Beazley (beazley@cs.uchicago.edu) |
d14a1e28 | 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. | |
d14a1e28 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 | ||
d14a1e28 RD |
461 | #ifdef __cplusplus |
462 | extern "C" { | |
463 | #endif | |
464 | ||
d14a1e28 | 465 | |
093d3ff1 | 466 | /*************************************************************************/ |
d14a1e28 | 467 | |
d14a1e28 | 468 | |
093d3ff1 | 469 | /* The static type info list */ |
d14a1e28 | 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 | ||
d14a1e28 | 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 | } | |
d14a1e28 | 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 | } | |
d14a1e28 | 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 | } | |
d14a1e28 | 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 | } | |
d14a1e28 | 502 | |
d14a1e28 RD |
503 | #ifdef __cplusplus |
504 | } | |
505 | #endif | |
506 | ||
093d3ff1 RD |
507 | /* ----------------------------------------------------------------------------- |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 510 | |
093d3ff1 RD |
511 | #ifdef __cplusplus |
512 | extern "C" { | |
513 | #endif | |
c32bde28 | 514 | |
093d3ff1 RD |
515 | /* ----------------------------------------------------------------------------- |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 518 | |
093d3ff1 RD |
519 | #ifndef SWIGINTERN |
520 | #define SWIGINTERN static | |
521 | #endif | |
d14a1e28 | 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 | |
d14a1e28 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 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 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; | |
d14a1e28 | 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 | |
994141e6 | 576 | |
994141e6 | 577 | #ifdef __cplusplus |
093d3ff1 RD |
578 | } |
579 | #endif | |
994141e6 | 580 | |
15afbcd0 | 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 | ************************************************************************/ | |
15afbcd0 | 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) | |
596 | ||
994141e6 | 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) | |
994141e6 | 601 | |
994141e6 | 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 | |
994141e6 | 614 | |
093d3ff1 RD |
615 | /* Flags for pointer conversion */ |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
d14a1e28 | 618 | |
4d5c3d91 | 619 | |
093d3ff1 RD |
620 | #ifdef __cplusplus |
621 | extern "C" { | |
622 | #endif | |
4d5c3d91 | 623 | |
093d3ff1 RD |
624 | /* ----------------------------------------------------------------------------- |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
994141e6 | 627 | |
093d3ff1 RD |
628 | #ifndef SWIG_BUFFER_SIZE |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
15afbcd0 | 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 | * ----------------------------------------------------------------------------- */ | |
15afbcd0 | 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) | |
15afbcd0 | 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; | |
15afbcd0 | 655 | } |
093d3ff1 RD |
656 | } |
657 | ||
658 | SWIGRUNTIME PyObject * | |
659 | PySwigObject_repr(PySwigObject *v) | |
660 | { | |
661 | char result[SWIG_BUFFER_SIZE]; | |
662 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
663 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
15afbcd0 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 | } | |
15afbcd0 | 673 | |
093d3ff1 RD |
674 | SWIGRUNTIME PyObject * |
675 | PySwigObject_long(PySwigObject *v) | |
15afbcd0 | 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); | |
15afbcd0 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 | } | |
15afbcd0 | 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 | } |
994141e6 | 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"; | |
723 | ||
724 | static PyNumberMethods PySwigObject_as_number = { | |
725 | (binaryfunc)0, /*nb_add*/ | |
726 | (binaryfunc)0, /*nb_subtract*/ | |
727 | (binaryfunc)0, /*nb_multiply*/ | |
728 | (binaryfunc)0, /*nb_divide*/ | |
729 | (binaryfunc)0, /*nb_remainder*/ | |
730 | (binaryfunc)0, /*nb_divmod*/ | |
731 | (ternaryfunc)0,/*nb_power*/ | |
732 | (unaryfunc)0, /*nb_negative*/ | |
733 | (unaryfunc)0, /*nb_positive*/ | |
734 | (unaryfunc)0, /*nb_absolute*/ | |
735 | (inquiry)0, /*nb_nonzero*/ | |
736 | 0, /*nb_invert*/ | |
737 | 0, /*nb_lshift*/ | |
738 | 0, /*nb_rshift*/ | |
739 | 0, /*nb_and*/ | |
740 | 0, /*nb_xor*/ | |
741 | 0, /*nb_or*/ | |
742 | (coercion)0, /*nb_coerce*/ | |
743 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
744 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
745 | (unaryfunc)0, /*nb_float*/ | |
746 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
747 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
748 | #if PY_VERSION_HEX >= 0x02000000 | |
749 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ | |
750 | #endif | |
751 | }; | |
752 | ||
753 | static int type_init = 0; | |
754 | static PyTypeObject PySwigObject_Type; | |
755 | ||
756 | if (!type_init) { | |
757 | PyTypeObject tmp = { | |
758 | PyObject_HEAD_INIT(&PyType_Type) | |
759 | 0, /*ob_size*/ | |
760 | "PySwigObject", /*tp_name*/ | |
761 | sizeof(PySwigObject), /*tp_basicsize*/ | |
762 | 0, /*tp_itemsize*/ | |
763 | /* methods */ | |
764 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
765 | (printfunc)PySwigObject_print, /*tp_print*/ | |
766 | (getattrfunc)0, /*tp_getattr*/ | |
767 | (setattrfunc)0, /*tp_setattr*/ | |
768 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
769 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
770 | &PySwigObject_as_number, /*tp_as_number*/ | |
771 | 0, /*tp_as_sequence*/ | |
772 | 0, /*tp_as_mapping*/ | |
773 | (hashfunc)0, /*tp_hash*/ | |
774 | (ternaryfunc)0, /*tp_call*/ | |
775 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
776 | /* Space for future expansion */ | |
777 | 0L,0L,0L,0L, | |
778 | PySwigObject_Type__doc__, /* Documentation string */ | |
779 | #if PY_VERSION_HEX >= 0x02000000 | |
780 | 0, /* tp_traverse */ | |
781 | 0, /* tp_clear */ | |
782 | #endif | |
783 | #if PY_VERSION_HEX >= 0x02010000 | |
784 | 0, /* tp_richcompare */ | |
785 | 0, /* tp_weaklistoffset */ | |
786 | #endif | |
787 | #if PY_VERSION_HEX >= 0x02020000 | |
788 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
15afbcd0 | 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 | }; | |
994141e6 | 797 | |
093d3ff1 RD |
798 | PySwigObject_Type = tmp; |
799 | type_init = 1; | |
800 | } | |
994141e6 | 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 | } | |
857 | ||
858 | SWIGRUNTIME PyObject * | |
859 | PySwigPacked_repr(PySwigPacked *v) | |
860 | { | |
861 | char result[SWIG_BUFFER_SIZE]; | |
862 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
863 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
864 | } else { | |
865 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
866 | } | |
867 | } | |
868 | ||
869 | SWIGRUNTIME PyObject * | |
870 | PySwigPacked_str(PySwigPacked *v) | |
871 | { | |
872 | char result[SWIG_BUFFER_SIZE]; | |
873 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
874 | return PyString_FromFormat("%s%s", result, v->desc); | |
875 | } else { | |
876 | return PyString_FromFormat("%s", v->desc); | |
877 | } | |
878 | } | |
879 | ||
880 | SWIGRUNTIME int | |
881 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
882 | { | |
883 | int c = strcmp(v->desc, w->desc); | |
884 | if (c) { | |
885 | return c; | |
886 | } else { | |
887 | size_t i = v->size; | |
888 | size_t j = w->size; | |
889 | int s = (i < j) ? -1 : (i > j) ? 1 : 0; | |
890 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
891 | } | |
892 | } | |
893 | ||
894 | SWIGRUNTIME void | |
895 | PySwigPacked_dealloc(PySwigPacked *self) | |
896 | { | |
897 | free(self->pack); | |
898 | PyObject_DEL(self); | |
899 | } | |
900 | ||
901 | SWIGRUNTIME PyTypeObject* | |
902 | PySwigPacked_GetType() { | |
903 | static char PySwigPacked_Type__doc__[] = | |
904 | "Swig object carries a C/C++ instance pointer"; | |
905 | static int type_init = 0; | |
906 | ||
907 | static PyTypeObject PySwigPacked_Type; | |
908 | if (!type_init) { | |
909 | PyTypeObject tmp = { | |
910 | PyObject_HEAD_INIT(&PyType_Type) | |
911 | 0, /*ob_size*/ | |
912 | "PySwigPacked", /*tp_name*/ | |
913 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
914 | 0, /*tp_itemsize*/ | |
915 | /* methods */ | |
916 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
917 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
918 | (getattrfunc)0, /*tp_getattr*/ | |
919 | (setattrfunc)0, /*tp_setattr*/ | |
920 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
921 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
922 | 0, /*tp_as_number*/ | |
923 | 0, /*tp_as_sequence*/ | |
924 | 0, /*tp_as_mapping*/ | |
925 | (hashfunc)0, /*tp_hash*/ | |
926 | (ternaryfunc)0, /*tp_call*/ | |
927 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
928 | /* Space for future expansion */ | |
929 | 0L,0L,0L,0L, | |
930 | PySwigPacked_Type__doc__, /* Documentation string */ | |
931 | #if PY_VERSION_HEX >= 0x02000000 | |
932 | 0, /* tp_traverse */ | |
933 | 0, /* tp_clear */ | |
934 | #endif | |
935 | #if PY_VERSION_HEX >= 0x02010000 | |
936 | 0, /* tp_richcompare */ | |
937 | 0, /* tp_weaklistoffset */ | |
938 | #endif | |
939 | #if PY_VERSION_HEX >= 0x02020000 | |
940 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
941 | #endif | |
942 | #if PY_VERSION_HEX >= 0x02030000 | |
943 | 0, /* tp_del */ | |
944 | #endif | |
945 | #ifdef COUNT_ALLOCS | |
946 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
947 | #endif | |
948 | }; | |
949 | ||
950 | PySwigPacked_Type = tmp; | |
951 | type_init = 1; | |
952 | } | |
953 | ||
954 | ||
955 | ||
956 | return &PySwigPacked_Type; | |
957 | } | |
958 | ||
959 | SWIGRUNTIME PyObject * | |
960 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
961 | { | |
962 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType()); | |
963 | if (self == NULL) { | |
964 | return NULL; | |
965 | } else { | |
966 | void *pack = malloc(size); | |
967 | memcpy(pack, ptr, size); | |
968 | self->pack = pack; | |
969 | self->desc = desc; | |
970 | self->size = size; | |
971 | return (PyObject *) self; | |
972 | } | |
973 | } | |
974 | ||
975 | SWIGRUNTIMEINLINE const char * | |
976 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
977 | { | |
978 | PySwigPacked *self = (PySwigPacked *)obj; | |
979 | if (self->size != size) return 0; | |
980 | memcpy(ptr, self->pack, size); | |
981 | return self->desc; | |
982 | } | |
983 | ||
984 | SWIGRUNTIMEINLINE const char * | |
985 | PySwigPacked_GetDesc(PyObject *self) | |
986 | { | |
987 | return ((PySwigPacked *)self)->desc; | |
988 | } | |
989 | ||
990 | SWIGRUNTIMEINLINE int | |
991 | PySwigPacked_Check(PyObject *op) { | |
992 | return ((op)->ob_type == PySwigPacked_GetType()) | |
993 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
994 | } | |
995 | ||
996 | #else | |
997 | /* ----------------------------------------------------------------------------- | |
998 | * Use the old Python PyCObject instead of PySwigObject | |
999 | * ----------------------------------------------------------------------------- */ | |
1000 | ||
1001 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1002 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1003 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1004 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1005 | ||
1006 | #endif | |
1007 | ||
1008 | #endif | |
1009 | ||
1010 | /* ----------------------------------------------------------------------------- | |
1011 | * errors manipulation | |
1012 | * ----------------------------------------------------------------------------- */ | |
1013 | ||
1014 | SWIGRUNTIME void | |
1015 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1016 | { | |
1017 | if (type) { | |
1018 | #if defined(SWIG_COBJECT_TYPES) | |
1019 | if (PySwigObject_Check(obj)) { | |
1020 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
1021 | if (otype) { | |
1022 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1023 | type, otype); | |
1024 | return; | |
1025 | } | |
1026 | } else | |
1027 | #endif | |
1028 | { | |
1029 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1030 | if (otype) { | |
1031 | PyObject *str = PyObject_Str(obj); | |
1032 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1033 | if (cstr) { | |
1034 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1035 | type, otype, cstr); | |
1036 | } else { | |
1037 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1038 | type, otype); | |
1039 | } | |
1040 | Py_DECREF(str); | |
1041 | return; | |
1042 | } | |
1043 | } | |
1044 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1045 | } else { | |
1046 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1047 | } | |
1048 | } | |
1049 | ||
1050 | SWIGRUNTIMEINLINE void | |
1051 | SWIG_Python_NullRef(const char *type) | |
1052 | { | |
1053 | if (type) { | |
1054 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1055 | } else { | |
1056 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1057 | } | |
1058 | } | |
1059 | ||
1060 | SWIGRUNTIME int | |
1061 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1062 | { | |
1063 | if (PyErr_Occurred()) { | |
1064 | PyObject *type = 0; | |
1065 | PyObject *value = 0; | |
1066 | PyObject *traceback = 0; | |
1067 | PyErr_Fetch(&type, &value, &traceback); | |
1068 | if (value) { | |
1069 | PyObject *old_str = PyObject_Str(value); | |
1070 | Py_XINCREF(type); | |
1071 | PyErr_Clear(); | |
1072 | if (infront) { | |
1073 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1074 | } else { | |
1075 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1076 | } | |
1077 | Py_DECREF(old_str); | |
1078 | } | |
1079 | return 1; | |
1080 | } else { | |
1081 | return 0; | |
1082 | } | |
1083 | } | |
1084 | ||
1085 | SWIGRUNTIME int | |
1086 | SWIG_Python_ArgFail(int argnum) | |
1087 | { | |
1088 | if (PyErr_Occurred()) { | |
1089 | /* add information about failing argument */ | |
1090 | char mesg[256]; | |
1091 | sprintf(mesg, "argument number %d:", argnum); | |
1092 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1093 | } else { | |
1094 | return 0; | |
1095 | } | |
1096 | } | |
1097 | ||
1098 | ||
1099 | /* ----------------------------------------------------------------------------- | |
1100 | * pointers/data manipulation | |
1101 | * ----------------------------------------------------------------------------- */ | |
1102 | ||
1103 | /* Convert a pointer value */ | |
1104 | SWIGRUNTIME int | |
1105 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1106 | swig_type_info *tc; | |
1107 | const char *c = 0; | |
1108 | static PyObject *SWIG_this = 0; | |
1109 | int newref = 0; | |
1110 | PyObject *pyobj = 0; | |
1111 | void *vptr; | |
1112 | ||
1113 | if (!obj) return 0; | |
1114 | if (obj == Py_None) { | |
1115 | *ptr = 0; | |
1116 | return 0; | |
1117 | } | |
1118 | ||
1119 | #ifdef SWIG_COBJECT_TYPES | |
1120 | if (!(PySwigObject_Check(obj))) { | |
1121 | if (!SWIG_this) | |
1122 | SWIG_this = PyString_FromString("this"); | |
1123 | pyobj = obj; | |
1124 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1125 | newref = 1; | |
1126 | if (!obj) goto type_error; | |
1127 | if (!PySwigObject_Check(obj)) { | |
1128 | Py_DECREF(obj); | |
1129 | goto type_error; | |
1130 | } | |
1131 | } | |
1132 | vptr = PySwigObject_AsVoidPtr(obj); | |
1133 | c = (const char *) PySwigObject_GetDesc(obj); | |
1134 | if (newref) { Py_DECREF(obj); } | |
1135 | goto type_check; | |
1136 | #else | |
1137 | if (!(PyString_Check(obj))) { | |
1138 | if (!SWIG_this) | |
1139 | SWIG_this = PyString_FromString("this"); | |
1140 | pyobj = obj; | |
1141 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1142 | newref = 1; | |
1143 | if (!obj) goto type_error; | |
1144 | if (!PyString_Check(obj)) { | |
1145 | Py_DECREF(obj); | |
1146 | goto type_error; | |
1147 | } | |
1148 | } | |
1149 | c = PyString_AS_STRING(obj); | |
1150 | /* Pointer values must start with leading underscore */ | |
1151 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1152 | if (newref) { Py_DECREF(obj); } | |
1153 | if (!c) goto type_error; | |
1154 | #endif | |
1155 | ||
1156 | type_check: | |
1157 | ||
1158 | if (ty) { | |
1159 | tc = SWIG_TypeCheck(c,ty); | |
1160 | if (!tc) goto type_error; | |
1161 | *ptr = SWIG_TypeCast(tc,vptr); | |
1162 | } else { | |
1163 | *ptr = vptr; | |
1164 | } | |
1165 | ||
1166 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1167 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1168 | } | |
1169 | return 0; | |
1170 | ||
1171 | type_error: | |
1172 | PyErr_Clear(); | |
1173 | if (pyobj && !obj) { | |
1174 | obj = pyobj; | |
1175 | if (PyCFunction_Check(obj)) { | |
1176 | /* here we get the method pointer for callbacks */ | |
1177 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1178 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1179 | if (c) { | |
1180 | c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name); | |
1181 | if (!c) goto type_error; | |
1182 | goto type_check; | |
1183 | } | |
1184 | } | |
1185 | } | |
1186 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1187 | if (ty) { | |
1188 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1189 | } else { | |
1190 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1191 | } | |
1192 | } | |
1193 | return -1; | |
1194 | } | |
1195 | ||
1196 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1197 | SWIGRUNTIME void * | |
1198 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1199 | void *result; | |
1200 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1201 | PyErr_Clear(); | |
1202 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1203 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1204 | SWIG_Python_ArgFail(argnum); | |
1205 | } | |
1206 | } | |
1207 | return result; | |
1208 | } | |
1209 | ||
1210 | /* Convert a packed value value */ | |
1211 | SWIGRUNTIME int | |
1212 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1213 | swig_type_info *tc; | |
1214 | const char *c = 0; | |
1215 | ||
1216 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1217 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1218 | #else | |
1219 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1220 | c = PyString_AS_STRING(obj); | |
1221 | /* Pointer values must start with leading underscore */ | |
1222 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1223 | #endif | |
1224 | if (!c) goto type_error; | |
1225 | if (ty) { | |
1226 | tc = SWIG_TypeCheck(c,ty); | |
1227 | if (!tc) goto type_error; | |
1228 | } | |
1229 | return 0; | |
1230 | ||
1231 | type_error: | |
1232 | PyErr_Clear(); | |
1233 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1234 | if (ty) { | |
1235 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1236 | } else { | |
1237 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1238 | } | |
1239 | } | |
1240 | return -1; | |
1241 | } | |
1242 | ||
1243 | /* Create a new array object */ | |
1244 | SWIGRUNTIME PyObject * | |
1245 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1246 | PyObject *robj = 0; | |
1247 | if (!ptr) { | |
1248 | Py_INCREF(Py_None); | |
1249 | return Py_None; | |
1250 | } | |
1251 | #ifdef SWIG_COBJECT_TYPES | |
1252 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1253 | #else | |
1254 | { | |
1255 | char result[SWIG_BUFFER_SIZE]; | |
1256 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1257 | PyString_FromString(result) : 0; | |
1258 | } | |
1259 | #endif | |
1260 | if (!robj || (robj == Py_None)) return robj; | |
1261 | if (type->clientdata) { | |
1262 | PyObject *inst; | |
1263 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1264 | Py_DECREF(robj); | |
1265 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1266 | Py_DECREF(args); | |
1267 | if (inst) { | |
1268 | if (own) { | |
1269 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1270 | } | |
1271 | robj = inst; | |
1272 | } | |
1273 | } | |
1274 | return robj; | |
1275 | } | |
1276 | ||
1277 | SWIGRUNTIME PyObject * | |
1278 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1279 | PyObject *robj = 0; | |
1280 | if (!ptr) { | |
1281 | Py_INCREF(Py_None); | |
1282 | return Py_None; | |
1283 | } | |
1284 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1285 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1286 | #else | |
1287 | { | |
1288 | char result[SWIG_BUFFER_SIZE]; | |
1289 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1290 | PyString_FromString(result) : 0; | |
1291 | } | |
1292 | #endif | |
1293 | return robj; | |
1294 | } | |
1295 | ||
1296 | /* -----------------------------------------------------------------------------* | |
1297 | * Get type list | |
1298 | * -----------------------------------------------------------------------------*/ | |
1299 | ||
1300 | #ifdef SWIG_LINK_RUNTIME | |
1301 | void *SWIG_ReturnGlobalTypeList(void *); | |
1302 | #endif | |
1303 | ||
1304 | SWIGRUNTIME swig_type_info ** | |
1305 | SWIG_Python_GetTypeListHandle() { | |
1306 | static void *type_pointer = (void *)0; | |
1307 | /* first check if module already created */ | |
1308 | if (!type_pointer) { | |
1309 | #ifdef SWIG_LINK_RUNTIME | |
1310 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1311 | #else | |
1312 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1313 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1314 | if (PyErr_Occurred()) { | |
1315 | PyErr_Clear(); | |
1316 | type_pointer = (void *)0; | |
1317 | } | |
1318 | } | |
1319 | #endif | |
1320 | return (swig_type_info **) type_pointer; | |
1321 | } | |
1322 | ||
1323 | /* | |
1324 | Search for a swig_type_info structure | |
1325 | */ | |
1326 | SWIGRUNTIMEINLINE swig_type_info * | |
1327 | SWIG_Python_GetTypeList() { | |
1328 | swig_type_info **tlh = SWIG_Python_GetTypeListHandle(); | |
1329 | return tlh ? *tlh : (swig_type_info*)0; | |
1330 | } | |
1331 | ||
1332 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList | |
1333 | ||
1334 | #ifdef __cplusplus | |
1335 | } | |
1336 | #endif | |
1337 | ||
1338 | ||
1339 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1340 | ||
1341 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
1342 | #define SWIGTYPE_p_wxSizer swig_types[1] | |
1343 | #define SWIGTYPE_p_wxCheckBox swig_types[2] | |
1344 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[3] | |
1345 | #define SWIGTYPE_p_wxEvent swig_types[4] | |
1346 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[5] | |
1347 | #define SWIGTYPE_p_bool swig_types[6] | |
1348 | #define SWIGTYPE_p_wxItemContainer swig_types[7] | |
1349 | #define SWIGTYPE_p_wxPyListCtrl swig_types[8] | |
1350 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[9] | |
1351 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
1352 | #define SWIGTYPE_p_wxStaticLine swig_types[11] | |
1353 | #define SWIGTYPE_p_wxControl swig_types[12] | |
1354 | #define SWIGTYPE_p_wxPyControl swig_types[13] | |
1355 | #define SWIGTYPE_p_wxGauge swig_types[14] | |
1356 | #define SWIGTYPE_p_wxToolBarBase swig_types[15] | |
1357 | #define SWIGTYPE_p_wxFont swig_types[16] | |
1358 | #define SWIGTYPE_p_wxToggleButton swig_types[17] | |
1359 | #define SWIGTYPE_p_wxRadioButton swig_types[18] | |
1360 | #define SWIGTYPE_p_wxChoice swig_types[19] | |
1361 | #define SWIGTYPE_p_wxMemoryDC swig_types[20] | |
1362 | #define SWIGTYPE_ptrdiff_t swig_types[21] | |
1363 | #define SWIGTYPE_std__ptrdiff_t swig_types[22] | |
1364 | #define SWIGTYPE_p_wxListItemAttr swig_types[23] | |
1365 | #define SWIGTYPE_p_void swig_types[24] | |
1366 | #define SWIGTYPE_p_int swig_types[25] | |
1367 | #define SWIGTYPE_p_wxSize swig_types[26] | |
1368 | #define SWIGTYPE_p_wxDC swig_types[27] | |
1369 | #define SWIGTYPE_p_wxListView swig_types[28] | |
1370 | #define SWIGTYPE_p_wxIcon swig_types[29] | |
1371 | #define SWIGTYPE_p_wxVisualAttributes swig_types[30] | |
1372 | #define SWIGTYPE_p_wxTextCtrl swig_types[31] | |
1373 | #define SWIGTYPE_p_wxNotebook swig_types[32] | |
1374 | #define SWIGTYPE_p_wxChoicebook swig_types[33] | |
1375 | #define SWIGTYPE_p_wxNotifyEvent swig_types[34] | |
1376 | #define SWIGTYPE_p_wxArrayString swig_types[35] | |
1377 | #define SWIGTYPE_p_form_ops_t swig_types[36] | |
1378 | #define SWIGTYPE_p_wxListbook swig_types[37] | |
1379 | #define SWIGTYPE_p_wxStaticBitmap swig_types[38] | |
1380 | #define SWIGTYPE_p_wxSlider swig_types[39] | |
1381 | #define SWIGTYPE_p_wxStaticBox swig_types[40] | |
1382 | #define SWIGTYPE_p_wxArrayInt swig_types[41] | |
1383 | #define SWIGTYPE_p_wxContextHelp swig_types[42] | |
1384 | #define SWIGTYPE_p_long swig_types[43] | |
1385 | #define SWIGTYPE_p_wxDuplexMode swig_types[44] | |
1386 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[45] | |
1387 | #define SWIGTYPE_p_wxEvtHandler swig_types[46] | |
1388 | #define SWIGTYPE_p_wxListEvent swig_types[47] | |
1389 | #define SWIGTYPE_p_wxCheckListBox swig_types[48] | |
1390 | #define SWIGTYPE_p_wxListBox swig_types[49] | |
1391 | #define SWIGTYPE_p_wxSpinButton swig_types[50] | |
1392 | #define SWIGTYPE_p_wxButton swig_types[51] | |
1393 | #define SWIGTYPE_p_wxBitmapButton swig_types[52] | |
1394 | #define SWIGTYPE_p_wxRect swig_types[53] | |
1395 | #define SWIGTYPE_p_wxContextHelpButton swig_types[54] | |
1396 | #define SWIGTYPE_p_wxRadioBox swig_types[55] | |
1397 | #define SWIGTYPE_p_wxScrollBar swig_types[56] | |
1398 | #define SWIGTYPE_p_char swig_types[57] | |
1399 | #define SWIGTYPE_p_wxComboBox swig_types[58] | |
1400 | #define SWIGTYPE_p_wxTreeItemId swig_types[59] | |
1401 | #define SWIGTYPE_p_wxHelpEvent swig_types[60] | |
1402 | #define SWIGTYPE_p_wxListItem swig_types[61] | |
1403 | #define SWIGTYPE_p_wxNotebookSizer swig_types[62] | |
1404 | #define SWIGTYPE_p_wxSpinEvent swig_types[63] | |
1405 | #define SWIGTYPE_p_wxGenericDragImage swig_types[64] | |
1406 | #define SWIGTYPE_p_wxSpinCtrl swig_types[65] | |
1407 | #define SWIGTYPE_p_wxPaperSize swig_types[66] | |
1408 | #define SWIGTYPE_p_wxImageList swig_types[67] | |
1409 | #define SWIGTYPE_p_wxHelpProvider swig_types[68] | |
1410 | #define SWIGTYPE_p_wxTextAttr swig_types[69] | |
1411 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[70] | |
1412 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[71] | |
1413 | #define SWIGTYPE_p_wxListbookEvent swig_types[72] | |
1414 | #define SWIGTYPE_p_wxNotebookEvent swig_types[73] | |
1415 | #define SWIGTYPE_p_wxPoint swig_types[74] | |
1416 | #define SWIGTYPE_p_wxObject swig_types[75] | |
1417 | #define SWIGTYPE_p_wxCursor swig_types[76] | |
1418 | #define SWIGTYPE_p_wxKeyEvent swig_types[77] | |
1419 | #define SWIGTYPE_p_unsigned_long swig_types[78] | |
1420 | #define SWIGTYPE_p_wxWindow swig_types[79] | |
1421 | #define SWIGTYPE_p_wxString swig_types[80] | |
1422 | #define SWIGTYPE_p_wxBitmap swig_types[81] | |
1423 | #define SWIGTYPE_unsigned_int swig_types[82] | |
1424 | #define SWIGTYPE_p_unsigned_int swig_types[83] | |
1425 | #define SWIGTYPE_p_unsigned_char swig_types[84] | |
1426 | #define SWIGTYPE_p_wxMouseEvent swig_types[85] | |
1427 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[86] | |
1428 | #define SWIGTYPE_p_wxTreeEvent swig_types[87] | |
1429 | #define SWIGTYPE_p_wxCommandEvent swig_types[88] | |
1430 | #define SWIGTYPE_p_wxStaticText swig_types[89] | |
1431 | #define SWIGTYPE_p_wxControlWithItems swig_types[90] | |
1432 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[91] | |
1433 | #define SWIGTYPE_p_wxColour swig_types[92] | |
1434 | #define SWIGTYPE_p_wxToolBar swig_types[93] | |
1435 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[94] | |
1436 | #define SWIGTYPE_p_wxValidator swig_types[95] | |
1437 | static swig_type_info *swig_types[97]; | |
1438 | ||
1439 | /* -------- TYPES TABLE (END) -------- */ | |
1440 | ||
1441 | ||
1442 | /*----------------------------------------------- | |
1443 | @(target):= _controls_.so | |
1444 | ------------------------------------------------*/ | |
1445 | #define SWIG_init init_controls_ | |
1446 | ||
1447 | #define SWIG_name "_controls_" | |
1448 | ||
1449 | #include "wx/wxPython/wxPython.h" | |
1450 | #include "wx/wxPython/pyclasses.h" | |
1451 | ||
1452 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1453 | static const wxString wxPyEmptyString(wxEmptyString); | |
1454 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1455 | ||
1456 | const wxArrayString wxPyEmptyStringArray; | |
1457 | ||
1458 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
1459 | ||
1460 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1461 | #define SWIG_From_int PyInt_FromLong | |
1462 | /*@@*/ | |
1463 | ||
1464 | ||
1465 | #include <limits.h> | |
1466 | ||
1467 | ||
1468 | SWIGINTERN int | |
1469 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1470 | const char *errmsg) | |
1471 | { | |
1472 | if (value < min_value) { | |
1473 | if (errmsg) { | |
1474 | PyErr_Format(PyExc_OverflowError, | |
1475 | "value %ld is less than '%s' minimum %ld", | |
1476 | value, errmsg, min_value); | |
1477 | } | |
1478 | return 0; | |
1479 | } else if (value > max_value) { | |
1480 | if (errmsg) { | |
1481 | PyErr_Format(PyExc_OverflowError, | |
1482 | "value %ld is greater than '%s' maximum %ld", | |
1483 | value, errmsg, max_value); | |
1484 | } | |
1485 | return 0; | |
1486 | } | |
1487 | return 1; | |
1488 | } | |
1489 | ||
1490 | ||
1491 | SWIGINTERN int | |
1492 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1493 | { | |
1494 | if (PyNumber_Check(obj)) { | |
1495 | if (val) *val = PyInt_AsLong(obj); | |
1496 | return 1; | |
1497 | } | |
1498 | else { | |
1499 | SWIG_type_error("number", obj); | |
1500 | } | |
1501 | return 0; | |
1502 | } | |
1503 | ||
1504 | ||
1505 | #if INT_MAX != LONG_MAX | |
1506 | SWIGINTERN int | |
1507 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1508 | { | |
1509 | const char* errmsg = val ? "int" : (char*)0; | |
1510 | long v; | |
1511 | if (SWIG_AsVal_long(obj, &v)) { | |
1512 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1513 | if (val) *val = (int)(v); | |
1514 | return 1; | |
1515 | } else { | |
1516 | return 0; | |
1517 | } | |
1518 | } else { | |
1519 | PyErr_Clear(); | |
1520 | } | |
1521 | if (val) { | |
1522 | SWIG_type_error(errmsg, obj); | |
1523 | } | |
1524 | return 0; | |
1525 | } | |
1526 | #else | |
1527 | SWIGINTERNSHORT int | |
1528 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1529 | { | |
1530 | return SWIG_AsVal_long(obj,(long*)val); | |
1531 | } | |
1532 | #endif | |
1533 | ||
1534 | ||
1535 | SWIGINTERNSHORT int | |
c32bde28 | 1536 | SWIG_As_int(PyObject* obj) |
994141e6 | 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)); | |
15afbcd0 | 1544 | } |
c32bde28 | 1545 | return v; |
15afbcd0 RD |
1546 | } |
1547 | ||
1548 | ||
093d3ff1 | 1549 | SWIGINTERNSHORT long |
c32bde28 | 1550 | SWIG_As_long(PyObject* obj) |
15afbcd0 | 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)); | |
15afbcd0 | 1558 | } |
c32bde28 | 1559 | return v; |
994141e6 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 | } | |
994141e6 | 1568 | |
c32bde28 | 1569 | |
093d3ff1 | 1570 | SWIGINTERNSHORT int |
c32bde28 | 1571 | SWIG_Check_long(PyObject* obj) |
994141e6 | 1572 | { |
c32bde28 | 1573 | return SWIG_AsVal_long(obj, (long*)0); |
994141e6 RD |
1574 | } |
1575 | ||
c32bde28 | 1576 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 | 1577 | |
093d3ff1 | 1578 | SWIGINTERN int |
c32bde28 | 1579 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
15afbcd0 | 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; | |
15afbcd0 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); | |
15afbcd0 RD |
1621 | } |
1622 | ||
b2dc1044 RD |
1623 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
1624 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
093d3ff1 RD |
1625 | |
1626 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1627 | #define SWIG_From_long PyInt_FromLong | |
1628 | /*@@*/ | |
1629 | ||
b2dc1044 RD |
1630 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); |
1631 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
1632 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
1633 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
1634 | |
1635 | #include <wx/checklst.h> | |
1636 | ||
d14a1e28 | 1637 | |
b2dc1044 | 1638 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
093d3ff1 | 1639 | static void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d14a1e28 RD |
1640 | if (clientData) { |
1641 | wxPyClientData* data = new wxPyClientData(clientData); | |
1642 | self->Insert(item, pos, data); | |
1643 | } else | |
1644 | self->Insert(item, pos); | |
1645 | } | |
093d3ff1 | 1646 | static PyObject *wxListBox_GetSelections(wxListBox *self){ |
d14a1e28 RD |
1647 | wxArrayInt lst; |
1648 | self->GetSelections(lst); | |
1649 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
1650 | for(size_t i=0; i<lst.GetCount(); i++) { | |
1651 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
1652 | } | |
1653 | return tup; | |
1654 | } | |
093d3ff1 | 1655 | static void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
1656 | #ifdef __WXMSW__ |
1657 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1658 | self->GetItem(item)->SetTextColour(c); | |
1659 | #endif | |
1660 | } | |
093d3ff1 | 1661 | static void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
1662 | #ifdef __WXMSW__ |
1663 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1664 | self->GetItem(item)->SetBackgroundColour(c); | |
1665 | #endif | |
1666 | } | |
093d3ff1 | 1667 | static void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
c3eb6258 RD |
1668 | #ifdef __WXMSW__ |
1669 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1670 | self->GetItem(item)->SetFont(f); | |
1671 | #endif | |
1672 | } | |
b2dc1044 | 1673 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 | 1674 | |
c32bde28 | 1675 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d14a1e28 RD |
1676 | PyObject* o2; |
1677 | PyObject* o3; | |
c32bde28 | 1678 | |
d14a1e28 RD |
1679 | if (!target) { |
1680 | target = o; | |
1681 | } else if (target == Py_None) { | |
1682 | Py_DECREF(Py_None); | |
1683 | target = o; | |
7e63a440 RD |
1684 | } else { |
1685 | if (!PyTuple_Check(target)) { | |
1686 | o2 = target; | |
1687 | target = PyTuple_New(1); | |
1688 | PyTuple_SetItem(target, 0, o2); | |
1689 | } | |
d14a1e28 RD |
1690 | o3 = PyTuple_New(1); |
1691 | PyTuple_SetItem(o3, 0, o); | |
1692 | ||
1693 | o2 = target; | |
1694 | target = PySequence_Concat(o2, o3); | |
1695 | Py_DECREF(o2); | |
1696 | Py_DECREF(o3); | |
1697 | } | |
1698 | return target; | |
7e63a440 | 1699 | } |
d14a1e28 | 1700 | |
15afbcd0 | 1701 | |
c32bde28 | 1702 | |
093d3ff1 | 1703 | SWIGINTERN int |
c32bde28 | 1704 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
15afbcd0 | 1705 | { |
c32bde28 RD |
1706 | long v = 0; |
1707 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
093d3ff1 | 1708 | SWIG_type_error("unsigned number", obj); |
15afbcd0 | 1709 | } |
c32bde28 RD |
1710 | else if (val) |
1711 | *val = (unsigned long)v; | |
1712 | return 1; | |
15afbcd0 RD |
1713 | } |
1714 | ||
1715 | ||
093d3ff1 | 1716 | SWIGINTERNSHORT unsigned long |
c32bde28 | 1717 | SWIG_As_unsigned_SS_long(PyObject* obj) |
15afbcd0 | 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)); | |
15afbcd0 | 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); | |
15afbcd0 RD |
1734 | } |
1735 | ||
093d3ff1 | 1736 | static void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d14a1e28 RD |
1737 | self->AppendText(text); |
1738 | } | |
093d3ff1 | 1739 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d14a1e28 RD |
1740 | return self->GetValue().Mid(from, to - from); |
1741 | } | |
b2dc1044 RD |
1742 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
1743 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 1744 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
1745 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
1746 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
093d3ff1 RD |
1747 | static int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
1748 | static int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
1749 | static int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
d14a1e28 RD |
1750 | |
1751 | #include <wx/slider.h> | |
1752 | ||
d14a1e28 | 1753 | |
b2dc1044 | 1754 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 1755 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 1756 | |
15afbcd0 RD |
1757 | #if !wxUSE_TOGGLEBTN |
1758 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
1759 | |
1760 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
1761 | ||
1762 | class wxToggleButton : public wxControl | |
1763 | { | |
1764 | public: | |
1765 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
1766 | const wxPoint&, const wxSize&, long, | |
1767 | const wxValidator&, const wxString&) | |
39f61e25 | 1768 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1769 | |
1770 | wxToggleButton() | |
39f61e25 | 1771 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1772 | }; |
1773 | #endif | |
1774 | ||
51b83b37 | 1775 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
994141e6 | 1776 | |
093d3ff1 | 1777 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1778 | SWIG_From_unsigned_SS_long(unsigned long value) |
994141e6 | 1779 | { |
15afbcd0 RD |
1780 | return (value > LONG_MAX) ? |
1781 | PyLong_FromUnsignedLong(value) | |
093d3ff1 | 1782 | : PyInt_FromLong((long)(value)); |
994141e6 RD |
1783 | } |
1784 | ||
b2dc1044 | 1785 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
093d3ff1 | 1786 | static PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d14a1e28 RD |
1787 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
1788 | if (udata) { | |
1789 | Py_INCREF(udata->m_obj); | |
1790 | return udata->m_obj; | |
1791 | } else { | |
1792 | Py_INCREF(Py_None); | |
1793 | return Py_None; | |
1794 | } | |
1795 | } | |
093d3ff1 | 1796 | static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d14a1e28 RD |
1797 | self->SetClientData(new wxPyUserData(clientData)); |
1798 | } | |
093d3ff1 | 1799 | 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){ |
d14a1e28 RD |
1800 | wxPyUserData* udata = NULL; |
1801 | if (clientData && clientData != Py_None) | |
1802 | udata = new wxPyUserData(clientData); | |
1803 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
1804 | shortHelp, longHelp, udata); | |
1805 | } | |
093d3ff1 | 1806 | 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){ |
d14a1e28 RD |
1807 | wxPyUserData* udata = NULL; |
1808 | if (clientData && clientData != Py_None) | |
1809 | udata = new wxPyUserData(clientData); | |
1810 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
1811 | shortHelp, longHelp, udata); | |
1812 | } | |
093d3ff1 | 1813 | static PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d14a1e28 RD |
1814 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
1815 | if (udata) { | |
1816 | Py_INCREF(udata->m_obj); | |
1817 | return udata->m_obj; | |
1818 | } else { | |
1819 | Py_INCREF(Py_None); | |
1820 | return Py_None; | |
1821 | } | |
1822 | } | |
093d3ff1 | 1823 | static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d14a1e28 RD |
1824 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
1825 | } | |
1826 | ||
1827 | #include <wx/listctrl.h> | |
1828 | ||
7557b9b5 | 1829 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
093d3ff1 | 1830 | static void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d14a1e28 RD |
1831 | // Python aware sorting function for wxPyListCtrl |
1832 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
1833 | int retval = 0; | |
1834 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 1835 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1836 | |
1837 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
1838 | PyObject* result = PyEval_CallObject(func, args); | |
1839 | Py_DECREF(args); | |
1840 | if (result) { | |
1841 | retval = PyInt_AsLong(result); | |
1842 | Py_DECREF(result); | |
1843 | } | |
1844 | ||
4f89f6a3 | 1845 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1846 | return retval; |
1847 | } | |
1848 | ||
1849 | // C++ Version of a Python aware class | |
1850 | class wxPyListCtrl : public wxListCtrl { | |
1851 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
1852 | public: | |
1853 | wxPyListCtrl() : wxListCtrl() {} | |
1854 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
1855 | const wxPoint& pos, | |
1856 | const wxSize& size, | |
1857 | long style, | |
1858 | const wxValidator& validator, | |
1859 | const wxString& name) : | |
1860 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
1861 | ||
1862 | bool Create(wxWindow* parent, wxWindowID id, | |
1863 | const wxPoint& pos, | |
1864 | const wxSize& size, | |
1865 | long style, | |
1866 | const wxValidator& validator, | |
1867 | const wxString& name) { | |
1868 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
1869 | } | |
1870 | ||
1871 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d14a1e28 RD |
1872 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
1873 | ||
84f85550 RD |
1874 | // use the virtual version to avoid a confusing assert in the base class |
1875 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
1876 | ||
d14a1e28 RD |
1877 | PYPRIVATE; |
1878 | }; | |
1879 | ||
1880 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
1881 | ||
1882 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d14a1e28 | 1883 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 RD |
1884 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
1885 | ||
d14a1e28 | 1886 | |
093d3ff1 | 1887 | static wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d14a1e28 RD |
1888 | wxListItem item; |
1889 | item.SetMask( wxLIST_MASK_STATE | | |
1890 | wxLIST_MASK_TEXT | | |
1891 | wxLIST_MASK_IMAGE | | |
1892 | wxLIST_MASK_DATA | | |
1893 | wxLIST_SET_ITEM | | |
1894 | wxLIST_MASK_WIDTH | | |
1895 | wxLIST_MASK_FORMAT | |
1896 | ); | |
1897 | if (self->GetColumn(col, item)) | |
1898 | return new wxListItem(item); | |
1899 | else | |
1900 | return NULL; | |
1901 | } | |
093d3ff1 | 1902 | static wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d14a1e28 RD |
1903 | wxListItem* info = new wxListItem; |
1904 | info->m_itemId = itemId; | |
1905 | info->m_col = col; | |
1906 | info->m_mask = 0xFFFF; | |
1907 | self->GetItem(*info); | |
1908 | return info; | |
1909 | } | |
093d3ff1 | 1910 | static wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d14a1e28 RD |
1911 | wxPoint pos; |
1912 | self->GetItemPosition(item, pos); | |
1913 | return pos; | |
1914 | } | |
093d3ff1 | 1915 | static wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d14a1e28 RD |
1916 | wxRect rect; |
1917 | self->GetItemRect(item, rect, code); | |
1918 | return rect; | |
1919 | } | |
c32bde28 | 1920 | |
093d3ff1 | 1921 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d14a1e28 | 1922 | if (!PyCallable_Check(func)) |
ae8162c8 | 1923 | return false; |
d14a1e28 RD |
1924 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
1925 | } | |
093d3ff1 | 1926 | static wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d14a1e28 RD |
1927 | |
1928 | ||
1929 | ||
1930 | return (wxWindow*)self->m_mainWin; | |
1931 | ||
1932 | } | |
1933 | ||
1934 | #include <wx/treectrl.h> | |
1935 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 1936 | |
33b885b9 | 1937 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
093d3ff1 RD |
1938 | static bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
1939 | static bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
1940 | static void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
d14a1e28 RD |
1941 | // C++ version of Python aware wxTreeCtrl |
1942 | class wxPyTreeCtrl : public wxTreeCtrl { | |
1943 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
1944 | public: | |
1945 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
1946 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
1947 | const wxPoint& pos, | |
1948 | const wxSize& size, | |
1949 | long style, | |
1950 | const wxValidator& validator, | |
1951 | const wxString& name) : | |
1952 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
1953 | ||
1954 | bool Create(wxWindow *parent, wxWindowID id, | |
1955 | const wxPoint& pos, | |
1956 | const wxSize& size, | |
1957 | long style, | |
1958 | const wxValidator& validator, | |
1959 | const wxString& name) { | |
1960 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
1961 | } | |
1962 | ||
1963 | ||
1964 | int OnCompareItems(const wxTreeItemId& item1, | |
1965 | const wxTreeItemId& item2) { | |
1966 | int rval = 0; | |
1967 | bool found; | |
4f89f6a3 | 1968 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1969 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
1970 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
1971 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
1972 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
1973 | Py_DECREF(o1); | |
1974 | Py_DECREF(o2); | |
1975 | } | |
4f89f6a3 | 1976 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1977 | if (! found) |
1978 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
1979 | return rval; | |
1980 | } | |
1981 | PYPRIVATE; | |
1982 | }; | |
1983 | ||
1984 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
1985 | ||
1986 | ||
994141e6 | 1987 | |
15afbcd0 | 1988 | #if UINT_MAX < LONG_MAX |
093d3ff1 | 1989 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
1990 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
1991 | /*@@*/ | |
15afbcd0 | 1992 | #else |
093d3ff1 | 1993 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
1994 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
1995 | /*@@*/ | |
15afbcd0 RD |
1996 | #endif |
1997 | ||
1998 | ||
093d3ff1 | 1999 | SWIGINTERNSHORT int |
c32bde28 RD |
2000 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
2001 | unsigned long max_value, | |
2002 | const char *errmsg) | |
15afbcd0 | 2003 | { |
c32bde28 RD |
2004 | if (value > max_value) { |
2005 | if (errmsg) { | |
2006 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 2007 | "value %lu is greater than '%s' minimum %lu", |
c32bde28 | 2008 | value, errmsg, max_value); |
15afbcd0 | 2009 | } |
c32bde28 | 2010 | return 0; |
15afbcd0 | 2011 | } |
c32bde28 RD |
2012 | return 1; |
2013 | } | |
994141e6 RD |
2014 | |
2015 | ||
15afbcd0 | 2016 | #if UINT_MAX != ULONG_MAX |
093d3ff1 | 2017 | SWIGINTERN int |
c32bde28 | 2018 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
994141e6 | 2019 | { |
093d3ff1 | 2020 | const char* errmsg = val ? "unsigned int" : (char*)0; |
c32bde28 RD |
2021 | unsigned long v; |
2022 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2023 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
093d3ff1 | 2024 | if (val) *val = (unsigned int)(v); |
c32bde28 RD |
2025 | return 1; |
2026 | } | |
2027 | } else { | |
2028 | PyErr_Clear(); | |
2029 | } | |
2030 | if (val) { | |
093d3ff1 | 2031 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2032 | } |
2033 | return 0; | |
15afbcd0 RD |
2034 | } |
2035 | #else | |
093d3ff1 | 2036 | SWIGINTERNSHORT unsigned int |
c32bde28 RD |
2037 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2038 | { | |
2039 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2040 | } | |
15afbcd0 RD |
2041 | #endif |
2042 | ||
2043 | ||
093d3ff1 | 2044 | SWIGINTERNSHORT unsigned int |
c32bde28 | 2045 | SWIG_As_unsigned_SS_int(PyObject* obj) |
15afbcd0 | 2046 | { |
c32bde28 RD |
2047 | unsigned int v; |
2048 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2049 | /* | |
093d3ff1 | 2050 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2051 | */ |
2052 | memset((void*)&v, 0, sizeof(unsigned int)); | |
15afbcd0 | 2053 | } |
c32bde28 RD |
2054 | return v; |
2055 | } | |
2056 | ||
2057 | ||
093d3ff1 | 2058 | SWIGINTERNSHORT int |
c32bde28 RD |
2059 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
2060 | { | |
2061 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
994141e6 RD |
2062 | } |
2063 | ||
093d3ff1 | 2064 | static wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
2065 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2066 | if (data == NULL) { | |
2067 | data = new wxPyTreeItemData(); | |
2068 | data->SetId(item); // set the id | |
2069 | self->SetItemData(item, data); | |
2070 | } | |
2071 | return data; | |
2072 | } | |
093d3ff1 | 2073 | static PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
2074 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2075 | if (data == NULL) { | |
2076 | data = new wxPyTreeItemData(); | |
2077 | data->SetId(item); // set the id | |
2078 | self->SetItemData(item, data); | |
2079 | } | |
2080 | return data->GetData(); | |
2081 | } | |
093d3ff1 | 2082 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d14a1e28 RD |
2083 | data->SetId(item); // set the id |
2084 | self->SetItemData(item, data); | |
2085 | } | |
093d3ff1 | 2086 | static void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d14a1e28 RD |
2087 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2088 | if (data == NULL) { | |
2089 | data = new wxPyTreeItemData(obj); | |
2090 | data->SetId(item); // set the id | |
2091 | self->SetItemData(item, data); | |
2092 | } else | |
2093 | data->SetData(obj); | |
2094 | } | |
093d3ff1 | 2095 | static PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
4f89f6a3 | 2096 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2097 | PyObject* rval = PyList_New(0); |
2098 | wxArrayTreeItemIds array; | |
2099 | size_t num, x; | |
2100 | num = self->GetSelections(array); | |
2101 | for (x=0; x < num; x++) { | |
2102 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 2103 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 2104 | PyList_Append(rval, item); |
1a10c483 | 2105 | Py_DECREF(item); |
d14a1e28 | 2106 | } |
4f89f6a3 | 2107 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2108 | return rval; |
2109 | } | |
093d3ff1 | 2110 | static PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
58203fa6 RD |
2111 | void* cookie = 0; |
2112 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 2113 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2114 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 2115 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 2116 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 2117 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2118 | return tup; |
2119 | } | |
093d3ff1 | 2120 | static PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
58203fa6 | 2121 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
4f89f6a3 | 2122 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2123 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 2124 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 2125 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 2126 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2127 | return tup; |
2128 | } | |
093d3ff1 | 2129 | static PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d14a1e28 RD |
2130 | wxRect rect; |
2131 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 2132 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2133 | wxRect* r = new wxRect(rect); |
ae8162c8 | 2134 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 2135 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2136 | return val; |
2137 | } | |
2138 | else | |
2139 | RETURN_NONE(); | |
2140 | } | |
b2dc1044 | 2141 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 | 2142 | |
093d3ff1 | 2143 | SWIGINTERNSHORT PyObject* |
c32bde28 RD |
2144 | SWIG_From_bool(bool value) |
2145 | { | |
2146 | PyObject *obj = value ? Py_True : Py_False; | |
2147 | Py_INCREF(obj); | |
2148 | return obj; | |
2149 | } | |
2150 | ||
2151 | ||
d14a1e28 RD |
2152 | // C++ version of Python aware wxControl |
2153 | class wxPyControl : public wxControl | |
2154 | { | |
2155 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
2156 | public: | |
2157 | wxPyControl() : wxControl() {} | |
2158 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
2159 | const wxPoint& pos = wxDefaultPosition, | |
2160 | const wxSize& size = wxDefaultSize, | |
2161 | long style = 0, | |
2162 | const wxValidator& validator=wxDefaultValidator, | |
2163 | const wxString& name = wxPyControlNameStr) | |
2164 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
2165 | ||
db3e571a | 2166 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 RD |
2167 | |
2168 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
2169 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
2170 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
2171 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
2172 | ||
2173 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
2174 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
2175 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
2176 | ||
2177 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
2178 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
2179 | ||
2180 | DEC_PYCALLBACK__(InitDialog); | |
2181 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
2182 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
2183 | DEC_PYCALLBACK_BOOL_(Validate); | |
2184 | ||
2185 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
2186 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
2187 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
2188 | ||
2189 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
2190 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
2191 | ||
db3e571a | 2192 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
1cb4a8aa | 2193 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
db3e571a | 2194 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 2195 | |
51b83b37 RD |
2196 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
2197 | ||
d14a1e28 RD |
2198 | PYPRIVATE; |
2199 | }; | |
2200 | ||
2201 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
2202 | ||
2203 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
2204 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
2205 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
2206 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
2207 | ||
2208 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
2209 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
2210 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
2211 | ||
2212 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
2213 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
2214 | ||
2215 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
2216 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
2217 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
2218 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
2219 | ||
2220 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
2221 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
2222 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
2223 | ||
2224 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
2225 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
2226 | ||
db3e571a | 2227 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
1cb4a8aa | 2228 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
db3e571a | 2229 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 | 2230 | |
51b83b37 RD |
2231 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
2232 | ||
d14a1e28 RD |
2233 | |
2234 | ||
093d3ff1 | 2235 | static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
e811c8ce RD |
2236 | |
2237 | #include <wx/generic/dragimgg.h> | |
2238 | ||
d14a1e28 RD |
2239 | #ifdef __cplusplus |
2240 | extern "C" { | |
2241 | #endif | |
c32bde28 | 2242 | static int _wrap_ButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
2243 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
2244 | return 1; | |
2245 | } | |
2246 | ||
2247 | ||
093d3ff1 | 2248 | static PyObject *_wrap_ButtonNameStr_get(void) { |
b2dc1044 RD |
2249 | PyObject *pyobj; |
2250 | ||
2251 | { | |
2252 | #if wxUSE_UNICODE | |
2253 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2254 | #else | |
2255 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2256 | #endif | |
2257 | } | |
2258 | return pyobj; | |
2259 | } | |
2260 | ||
2261 | ||
c32bde28 | 2262 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2263 | PyObject *resultobj; |
2264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
2265 | int arg2 = (int) -1 ; |
2266 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2267 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
2268 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2269 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2270 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2271 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2272 | long arg6 = (long) 0 ; | |
2273 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2274 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2275 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2276 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2277 | wxButton *result; | |
ae8162c8 | 2278 | bool temp3 = false ; |
d14a1e28 RD |
2279 | wxPoint temp4 ; |
2280 | wxSize temp5 ; | |
ae8162c8 | 2281 | bool temp8 = false ; |
d14a1e28 | 2282 | PyObject * obj0 = 0 ; |
994141e6 | 2283 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2284 | PyObject * obj2 = 0 ; |
2285 | PyObject * obj3 = 0 ; | |
2286 | PyObject * obj4 = 0 ; | |
994141e6 | 2287 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2288 | PyObject * obj6 = 0 ; |
2289 | PyObject * obj7 = 0 ; | |
2290 | char *kwnames[] = { | |
2291 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2292 | }; | |
2293 | ||
248ed943 | 2294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2295 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2296 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2297 | if (obj1) { |
093d3ff1 RD |
2298 | { |
2299 | arg2 = (int)(SWIG_As_int(obj1)); | |
2300 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2301 | } | |
248ed943 RD |
2302 | } |
2303 | if (obj2) { | |
2304 | { | |
2305 | arg3 = wxString_in_helper(obj2); | |
2306 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2307 | temp3 = true; |
248ed943 | 2308 | } |
d14a1e28 RD |
2309 | } |
2310 | if (obj3) { | |
2311 | { | |
2312 | arg4 = &temp4; | |
2313 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2314 | } | |
2315 | } | |
2316 | if (obj4) { | |
2317 | { | |
2318 | arg5 = &temp5; | |
2319 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2320 | } | |
2321 | } | |
994141e6 | 2322 | if (obj5) { |
093d3ff1 RD |
2323 | { |
2324 | arg6 = (long)(SWIG_As_long(obj5)); | |
2325 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2326 | } | |
994141e6 | 2327 | } |
d14a1e28 | 2328 | if (obj6) { |
093d3ff1 RD |
2329 | { |
2330 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2331 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2332 | if (arg7 == NULL) { | |
2333 | SWIG_null_ref("wxValidator"); | |
2334 | } | |
2335 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
2336 | } |
2337 | } | |
2338 | if (obj7) { | |
2339 | { | |
2340 | arg8 = wxString_in_helper(obj7); | |
2341 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2342 | temp8 = true; |
d14a1e28 RD |
2343 | } |
2344 | } | |
2345 | { | |
e3b71cb8 | 2346 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2348 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2349 | ||
2350 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2351 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2352 | } |
b0f7404b | 2353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
2354 | { |
2355 | if (temp3) | |
2356 | delete arg3; | |
2357 | } | |
2358 | { | |
2359 | if (temp8) | |
2360 | delete arg8; | |
2361 | } | |
2362 | return resultobj; | |
2363 | fail: | |
2364 | { | |
2365 | if (temp3) | |
2366 | delete arg3; | |
2367 | } | |
2368 | { | |
2369 | if (temp8) | |
2370 | delete arg8; | |
2371 | } | |
2372 | return NULL; | |
2373 | } | |
2374 | ||
2375 | ||
c32bde28 | 2376 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2377 | PyObject *resultobj; |
2378 | wxButton *result; | |
2379 | char *kwnames[] = { | |
2380 | NULL | |
2381 | }; | |
2382 | ||
2383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
2384 | { | |
e3b71cb8 | 2385 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2387 | result = (wxButton *)new wxButton(); | |
2388 | ||
2389 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2390 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2391 | } |
b0f7404b | 2392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
2393 | return resultobj; |
2394 | fail: | |
2395 | return NULL; | |
2396 | } | |
2397 | ||
2398 | ||
c32bde28 | 2399 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2400 | PyObject *resultobj; |
2401 | wxButton *arg1 = (wxButton *) 0 ; | |
2402 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2403 | int arg3 = (int) -1 ; |
2404 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2405 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2406 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2407 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2408 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2409 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2410 | long arg7 = (long) 0 ; | |
2411 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2412 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2413 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2414 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2415 | bool result; | |
ae8162c8 | 2416 | bool temp4 = false ; |
d14a1e28 RD |
2417 | wxPoint temp5 ; |
2418 | wxSize temp6 ; | |
ae8162c8 | 2419 | bool temp9 = false ; |
d14a1e28 RD |
2420 | PyObject * obj0 = 0 ; |
2421 | PyObject * obj1 = 0 ; | |
994141e6 | 2422 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2423 | PyObject * obj3 = 0 ; |
2424 | PyObject * obj4 = 0 ; | |
2425 | PyObject * obj5 = 0 ; | |
994141e6 | 2426 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2427 | PyObject * obj7 = 0 ; |
2428 | PyObject * obj8 = 0 ; | |
2429 | char *kwnames[] = { | |
2430 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2431 | }; | |
2432 | ||
248ed943 | 2433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
2434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2436 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 2438 | if (obj2) { |
093d3ff1 RD |
2439 | { |
2440 | arg3 = (int)(SWIG_As_int(obj2)); | |
2441 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2442 | } | |
248ed943 RD |
2443 | } |
2444 | if (obj3) { | |
2445 | { | |
2446 | arg4 = wxString_in_helper(obj3); | |
2447 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2448 | temp4 = true; |
248ed943 | 2449 | } |
d14a1e28 RD |
2450 | } |
2451 | if (obj4) { | |
2452 | { | |
2453 | arg5 = &temp5; | |
2454 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2455 | } | |
2456 | } | |
2457 | if (obj5) { | |
2458 | { | |
2459 | arg6 = &temp6; | |
2460 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2461 | } | |
2462 | } | |
994141e6 | 2463 | if (obj6) { |
093d3ff1 RD |
2464 | { |
2465 | arg7 = (long)(SWIG_As_long(obj6)); | |
2466 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2467 | } | |
994141e6 | 2468 | } |
d14a1e28 | 2469 | if (obj7) { |
093d3ff1 RD |
2470 | { |
2471 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2472 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2473 | if (arg8 == NULL) { | |
2474 | SWIG_null_ref("wxValidator"); | |
2475 | } | |
2476 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
2477 | } |
2478 | } | |
2479 | if (obj8) { | |
2480 | { | |
2481 | arg9 = wxString_in_helper(obj8); | |
2482 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2483 | temp9 = true; |
d14a1e28 RD |
2484 | } |
2485 | } | |
2486 | { | |
2487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2488 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2489 | ||
2490 | wxPyEndAllowThreads(__tstate); | |
2491 | if (PyErr_Occurred()) SWIG_fail; | |
2492 | } | |
4f89f6a3 RD |
2493 | { |
2494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2495 | } | |
d14a1e28 RD |
2496 | { |
2497 | if (temp4) | |
2498 | delete arg4; | |
2499 | } | |
2500 | { | |
2501 | if (temp9) | |
2502 | delete arg9; | |
2503 | } | |
2504 | return resultobj; | |
2505 | fail: | |
2506 | { | |
2507 | if (temp4) | |
2508 | delete arg4; | |
2509 | } | |
2510 | { | |
2511 | if (temp9) | |
2512 | delete arg9; | |
2513 | } | |
2514 | return NULL; | |
2515 | } | |
2516 | ||
2517 | ||
c32bde28 | 2518 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2519 | PyObject *resultobj; |
2520 | wxButton *arg1 = (wxButton *) 0 ; | |
2521 | PyObject * obj0 = 0 ; | |
2522 | char *kwnames[] = { | |
2523 | (char *) "self", NULL | |
2524 | }; | |
2525 | ||
2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2529 | { |
2530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2531 | (arg1)->SetDefault(); | |
2532 | ||
2533 | wxPyEndAllowThreads(__tstate); | |
2534 | if (PyErr_Occurred()) SWIG_fail; | |
2535 | } | |
2536 | Py_INCREF(Py_None); resultobj = Py_None; | |
2537 | return resultobj; | |
2538 | fail: | |
2539 | return NULL; | |
2540 | } | |
2541 | ||
2542 | ||
c32bde28 | 2543 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2544 | PyObject *resultobj; |
2545 | wxSize result; | |
2546 | char *kwnames[] = { | |
2547 | NULL | |
2548 | }; | |
2549 | ||
2550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
2551 | { | |
2552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2553 | result = wxButton::GetDefaultSize(); | |
2554 | ||
2555 | wxPyEndAllowThreads(__tstate); | |
2556 | if (PyErr_Occurred()) SWIG_fail; | |
2557 | } | |
2558 | { | |
2559 | wxSize * resultptr; | |
093d3ff1 | 2560 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 2561 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2562 | } |
2563 | return resultobj; | |
2564 | fail: | |
2565 | return NULL; | |
2566 | } | |
2567 | ||
2568 | ||
c32bde28 | 2569 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 2570 | PyObject *resultobj; |
093d3ff1 | 2571 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
2572 | wxVisualAttributes result; |
2573 | PyObject * obj0 = 0 ; | |
2574 | char *kwnames[] = { | |
2575 | (char *) "variant", NULL | |
2576 | }; | |
2577 | ||
2578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2579 | if (obj0) { | |
093d3ff1 RD |
2580 | { |
2581 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
2582 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2583 | } | |
22bfe96c RD |
2584 | } |
2585 | { | |
110da5b0 | 2586 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2588 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2589 | ||
2590 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2591 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2592 | } |
2593 | { | |
2594 | wxVisualAttributes * resultptr; | |
093d3ff1 | 2595 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
2596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
2597 | } | |
2598 | return resultobj; | |
2599 | fail: | |
2600 | return NULL; | |
2601 | } | |
2602 | ||
2603 | ||
c32bde28 | 2604 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2605 | PyObject *obj; |
2606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2607 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
2608 | Py_INCREF(obj); | |
2609 | return Py_BuildValue((char *)""); | |
2610 | } | |
c32bde28 | 2611 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2612 | PyObject *resultobj; |
2613 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
2614 | int arg2 = (int) -1 ; |
2615 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
2616 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
2617 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2618 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2619 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2620 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2621 | long arg6 = (long) wxBU_AUTODRAW ; | |
2622 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2623 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2624 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2625 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2626 | wxBitmapButton *result; | |
2627 | wxPoint temp4 ; | |
2628 | wxSize temp5 ; | |
ae8162c8 | 2629 | bool temp8 = false ; |
d14a1e28 | 2630 | PyObject * obj0 = 0 ; |
994141e6 | 2631 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2632 | PyObject * obj2 = 0 ; |
2633 | PyObject * obj3 = 0 ; | |
2634 | PyObject * obj4 = 0 ; | |
994141e6 | 2635 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2636 | PyObject * obj6 = 0 ; |
2637 | PyObject * obj7 = 0 ; | |
2638 | char *kwnames[] = { | |
2639 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2640 | }; | |
2641 | ||
248ed943 | 2642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2645 | if (obj1) { |
093d3ff1 RD |
2646 | { |
2647 | arg2 = (int)(SWIG_As_int(obj1)); | |
2648 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2649 | } | |
248ed943 RD |
2650 | } |
2651 | if (obj2) { | |
093d3ff1 RD |
2652 | { |
2653 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2654 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2655 | if (arg3 == NULL) { | |
2656 | SWIG_null_ref("wxBitmap"); | |
2657 | } | |
2658 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 2659 | } |
d14a1e28 RD |
2660 | } |
2661 | if (obj3) { | |
2662 | { | |
2663 | arg4 = &temp4; | |
2664 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2665 | } | |
2666 | } | |
2667 | if (obj4) { | |
2668 | { | |
2669 | arg5 = &temp5; | |
2670 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2671 | } | |
2672 | } | |
994141e6 | 2673 | if (obj5) { |
093d3ff1 RD |
2674 | { |
2675 | arg6 = (long)(SWIG_As_long(obj5)); | |
2676 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2677 | } | |
994141e6 | 2678 | } |
d14a1e28 | 2679 | if (obj6) { |
093d3ff1 RD |
2680 | { |
2681 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2682 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2683 | if (arg7 == NULL) { | |
2684 | SWIG_null_ref("wxValidator"); | |
2685 | } | |
2686 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
2687 | } |
2688 | } | |
2689 | if (obj7) { | |
2690 | { | |
2691 | arg8 = wxString_in_helper(obj7); | |
2692 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2693 | temp8 = true; |
d14a1e28 RD |
2694 | } |
2695 | } | |
2696 | { | |
e3b71cb8 | 2697 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2699 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2700 | ||
2701 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2702 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2703 | } |
b0f7404b | 2704 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
2705 | { |
2706 | if (temp8) | |
2707 | delete arg8; | |
2708 | } | |
2709 | return resultobj; | |
2710 | fail: | |
2711 | { | |
2712 | if (temp8) | |
2713 | delete arg8; | |
2714 | } | |
2715 | return NULL; | |
2716 | } | |
2717 | ||
2718 | ||
c32bde28 | 2719 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2720 | PyObject *resultobj; |
2721 | wxBitmapButton *result; | |
2722 | char *kwnames[] = { | |
2723 | NULL | |
2724 | }; | |
2725 | ||
2726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
2727 | { | |
e3b71cb8 | 2728 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2730 | result = (wxBitmapButton *)new wxBitmapButton(); | |
2731 | ||
2732 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2733 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2734 | } |
b0f7404b | 2735 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
2736 | return resultobj; |
2737 | fail: | |
2738 | return NULL; | |
2739 | } | |
2740 | ||
2741 | ||
c32bde28 | 2742 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2743 | PyObject *resultobj; |
2744 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2745 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2746 | int arg3 = (int) -1 ; |
2747 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
2748 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
2749 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2750 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2751 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2752 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2753 | long arg7 = (long) wxBU_AUTODRAW ; | |
2754 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2755 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2756 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2757 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2758 | bool result; | |
2759 | wxPoint temp5 ; | |
2760 | wxSize temp6 ; | |
ae8162c8 | 2761 | bool temp9 = false ; |
d14a1e28 RD |
2762 | PyObject * obj0 = 0 ; |
2763 | PyObject * obj1 = 0 ; | |
994141e6 | 2764 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2765 | PyObject * obj3 = 0 ; |
2766 | PyObject * obj4 = 0 ; | |
2767 | PyObject * obj5 = 0 ; | |
994141e6 | 2768 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2769 | PyObject * obj7 = 0 ; |
2770 | PyObject * obj8 = 0 ; | |
2771 | char *kwnames[] = { | |
2772 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2773 | }; | |
2774 | ||
248ed943 | 2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
2776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2778 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2779 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 2780 | if (obj2) { |
093d3ff1 RD |
2781 | { |
2782 | arg3 = (int)(SWIG_As_int(obj2)); | |
2783 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2784 | } | |
248ed943 RD |
2785 | } |
2786 | if (obj3) { | |
093d3ff1 RD |
2787 | { |
2788 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2789 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2790 | if (arg4 == NULL) { | |
2791 | SWIG_null_ref("wxBitmap"); | |
2792 | } | |
2793 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 2794 | } |
d14a1e28 RD |
2795 | } |
2796 | if (obj4) { | |
2797 | { | |
2798 | arg5 = &temp5; | |
2799 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2800 | } | |
2801 | } | |
2802 | if (obj5) { | |
2803 | { | |
2804 | arg6 = &temp6; | |
2805 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2806 | } | |
2807 | } | |
994141e6 | 2808 | if (obj6) { |
093d3ff1 RD |
2809 | { |
2810 | arg7 = (long)(SWIG_As_long(obj6)); | |
2811 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2812 | } | |
994141e6 | 2813 | } |
d14a1e28 | 2814 | if (obj7) { |
093d3ff1 RD |
2815 | { |
2816 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2817 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2818 | if (arg8 == NULL) { | |
2819 | SWIG_null_ref("wxValidator"); | |
2820 | } | |
2821 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
2822 | } |
2823 | } | |
2824 | if (obj8) { | |
2825 | { | |
2826 | arg9 = wxString_in_helper(obj8); | |
2827 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2828 | temp9 = true; |
d14a1e28 RD |
2829 | } |
2830 | } | |
2831 | { | |
2832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2833 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2834 | ||
2835 | wxPyEndAllowThreads(__tstate); | |
2836 | if (PyErr_Occurred()) SWIG_fail; | |
2837 | } | |
4f89f6a3 RD |
2838 | { |
2839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2840 | } | |
d14a1e28 RD |
2841 | { |
2842 | if (temp9) | |
2843 | delete arg9; | |
2844 | } | |
2845 | return resultobj; | |
2846 | fail: | |
2847 | { | |
2848 | if (temp9) | |
2849 | delete arg9; | |
2850 | } | |
2851 | return NULL; | |
2852 | } | |
2853 | ||
2854 | ||
c32bde28 | 2855 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2856 | PyObject *resultobj; |
2857 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2858 | wxBitmap result; | |
2859 | PyObject * obj0 = 0 ; | |
2860 | char *kwnames[] = { | |
2861 | (char *) "self", NULL | |
2862 | }; | |
2863 | ||
2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2865 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2866 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2867 | { |
2868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2869 | result = (arg1)->GetBitmapLabel(); | |
2870 | ||
2871 | wxPyEndAllowThreads(__tstate); | |
2872 | if (PyErr_Occurred()) SWIG_fail; | |
2873 | } | |
2874 | { | |
2875 | wxBitmap * resultptr; | |
093d3ff1 | 2876 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 2877 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2878 | } |
2879 | return resultobj; | |
2880 | fail: | |
2881 | return NULL; | |
2882 | } | |
2883 | ||
2884 | ||
c32bde28 | 2885 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2886 | PyObject *resultobj; |
2887 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2888 | wxBitmap result; | |
2889 | PyObject * obj0 = 0 ; | |
2890 | char *kwnames[] = { | |
2891 | (char *) "self", NULL | |
2892 | }; | |
2893 | ||
2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2897 | { |
2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2899 | result = (arg1)->GetBitmapDisabled(); | |
2900 | ||
2901 | wxPyEndAllowThreads(__tstate); | |
2902 | if (PyErr_Occurred()) SWIG_fail; | |
2903 | } | |
2904 | { | |
2905 | wxBitmap * resultptr; | |
093d3ff1 | 2906 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 2907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2908 | } |
2909 | return resultobj; | |
2910 | fail: | |
2911 | return NULL; | |
2912 | } | |
2913 | ||
2914 | ||
c32bde28 | 2915 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2916 | PyObject *resultobj; |
2917 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2918 | wxBitmap result; | |
2919 | PyObject * obj0 = 0 ; | |
2920 | char *kwnames[] = { | |
2921 | (char *) "self", NULL | |
2922 | }; | |
2923 | ||
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2927 | { |
2928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2929 | result = (arg1)->GetBitmapFocus(); | |
2930 | ||
2931 | wxPyEndAllowThreads(__tstate); | |
2932 | if (PyErr_Occurred()) SWIG_fail; | |
2933 | } | |
2934 | { | |
2935 | wxBitmap * resultptr; | |
093d3ff1 | 2936 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 2937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2938 | } |
2939 | return resultobj; | |
2940 | fail: | |
2941 | return NULL; | |
2942 | } | |
2943 | ||
2944 | ||
c32bde28 | 2945 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2946 | PyObject *resultobj; |
2947 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2948 | wxBitmap result; | |
2949 | PyObject * obj0 = 0 ; | |
2950 | char *kwnames[] = { | |
2951 | (char *) "self", NULL | |
2952 | }; | |
2953 | ||
2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2957 | { |
2958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2959 | result = (arg1)->GetBitmapSelected(); | |
2960 | ||
2961 | wxPyEndAllowThreads(__tstate); | |
2962 | if (PyErr_Occurred()) SWIG_fail; | |
2963 | } | |
2964 | { | |
2965 | wxBitmap * resultptr; | |
093d3ff1 | 2966 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 2967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2968 | } |
2969 | return resultobj; | |
2970 | fail: | |
2971 | return NULL; | |
2972 | } | |
2973 | ||
2974 | ||
c32bde28 | 2975 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2976 | PyObject *resultobj; |
2977 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2978 | wxBitmap *arg2 = 0 ; | |
2979 | PyObject * obj0 = 0 ; | |
2980 | PyObject * obj1 = 0 ; | |
2981 | char *kwnames[] = { | |
2982 | (char *) "self",(char *) "bitmap", NULL | |
2983 | }; | |
2984 | ||
2985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
2986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2988 | { | |
2989 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2990 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2991 | if (arg2 == NULL) { | |
2992 | SWIG_null_ref("wxBitmap"); | |
2993 | } | |
2994 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
2995 | } |
2996 | { | |
2997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2998 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
2999 | ||
3000 | wxPyEndAllowThreads(__tstate); | |
3001 | if (PyErr_Occurred()) SWIG_fail; | |
3002 | } | |
3003 | Py_INCREF(Py_None); resultobj = Py_None; | |
3004 | return resultobj; | |
3005 | fail: | |
3006 | return NULL; | |
3007 | } | |
3008 | ||
3009 | ||
c32bde28 | 3010 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3011 | PyObject *resultobj; |
3012 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3013 | wxBitmap *arg2 = 0 ; | |
3014 | PyObject * obj0 = 0 ; | |
3015 | PyObject * obj1 = 0 ; | |
3016 | char *kwnames[] = { | |
3017 | (char *) "self",(char *) "bitmap", NULL | |
3018 | }; | |
3019 | ||
3020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3023 | { | |
3024 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3025 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3026 | if (arg2 == NULL) { | |
3027 | SWIG_null_ref("wxBitmap"); | |
3028 | } | |
3029 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3030 | } |
3031 | { | |
3032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3033 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
3034 | ||
3035 | wxPyEndAllowThreads(__tstate); | |
3036 | if (PyErr_Occurred()) SWIG_fail; | |
3037 | } | |
3038 | Py_INCREF(Py_None); resultobj = Py_None; | |
3039 | return resultobj; | |
3040 | fail: | |
3041 | return NULL; | |
3042 | } | |
3043 | ||
3044 | ||
c32bde28 | 3045 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3046 | PyObject *resultobj; |
3047 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3048 | wxBitmap *arg2 = 0 ; | |
3049 | PyObject * obj0 = 0 ; | |
3050 | PyObject * obj1 = 0 ; | |
3051 | char *kwnames[] = { | |
3052 | (char *) "self",(char *) "bitmap", NULL | |
3053 | }; | |
3054 | ||
3055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3058 | { | |
3059 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3060 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3061 | if (arg2 == NULL) { | |
3062 | SWIG_null_ref("wxBitmap"); | |
3063 | } | |
3064 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3065 | } |
3066 | { | |
3067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3068 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
3069 | ||
3070 | wxPyEndAllowThreads(__tstate); | |
3071 | if (PyErr_Occurred()) SWIG_fail; | |
3072 | } | |
3073 | Py_INCREF(Py_None); resultobj = Py_None; | |
3074 | return resultobj; | |
3075 | fail: | |
3076 | return NULL; | |
3077 | } | |
3078 | ||
3079 | ||
c32bde28 | 3080 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3081 | PyObject *resultobj; |
3082 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3083 | wxBitmap *arg2 = 0 ; | |
3084 | PyObject * obj0 = 0 ; | |
3085 | PyObject * obj1 = 0 ; | |
3086 | char *kwnames[] = { | |
3087 | (char *) "self",(char *) "bitmap", NULL | |
3088 | }; | |
3089 | ||
3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3093 | { | |
3094 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3095 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3096 | if (arg2 == NULL) { | |
3097 | SWIG_null_ref("wxBitmap"); | |
3098 | } | |
3099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3100 | } |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | Py_INCREF(Py_None); resultobj = Py_None; | |
3109 | return resultobj; | |
3110 | fail: | |
3111 | return NULL; | |
3112 | } | |
3113 | ||
3114 | ||
c32bde28 | 3115 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3116 | PyObject *resultobj; |
3117 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3118 | int arg2 ; | |
3119 | int arg3 ; | |
3120 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3121 | PyObject * obj1 = 0 ; |
3122 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3123 | char *kwnames[] = { |
3124 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3125 | }; | |
3126 | ||
994141e6 | 3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
3128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3130 | { | |
3131 | arg2 = (int)(SWIG_As_int(obj1)); | |
3132 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3133 | } | |
3134 | { | |
3135 | arg3 = (int)(SWIG_As_int(obj2)); | |
3136 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3137 | } | |
d14a1e28 RD |
3138 | { |
3139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3140 | (arg1)->SetMargins(arg2,arg3); | |
3141 | ||
3142 | wxPyEndAllowThreads(__tstate); | |
3143 | if (PyErr_Occurred()) SWIG_fail; | |
3144 | } | |
3145 | Py_INCREF(Py_None); resultobj = Py_None; | |
3146 | return resultobj; | |
3147 | fail: | |
3148 | return NULL; | |
3149 | } | |
3150 | ||
3151 | ||
c32bde28 | 3152 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3153 | PyObject *resultobj; |
3154 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3155 | int result; | |
3156 | PyObject * obj0 = 0 ; | |
3157 | char *kwnames[] = { | |
3158 | (char *) "self", NULL | |
3159 | }; | |
3160 | ||
3161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3164 | { |
3165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3166 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
3167 | ||
3168 | wxPyEndAllowThreads(__tstate); | |
3169 | if (PyErr_Occurred()) SWIG_fail; | |
3170 | } | |
093d3ff1 RD |
3171 | { |
3172 | resultobj = SWIG_From_int((int)(result)); | |
3173 | } | |
d14a1e28 RD |
3174 | return resultobj; |
3175 | fail: | |
3176 | return NULL; | |
3177 | } | |
3178 | ||
3179 | ||
c32bde28 | 3180 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3181 | PyObject *resultobj; |
3182 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3183 | int result; | |
3184 | PyObject * obj0 = 0 ; | |
3185 | char *kwnames[] = { | |
3186 | (char *) "self", NULL | |
3187 | }; | |
3188 | ||
3189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3192 | { |
3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3194 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
3195 | ||
3196 | wxPyEndAllowThreads(__tstate); | |
3197 | if (PyErr_Occurred()) SWIG_fail; | |
3198 | } | |
093d3ff1 RD |
3199 | { |
3200 | resultobj = SWIG_From_int((int)(result)); | |
3201 | } | |
d14a1e28 RD |
3202 | return resultobj; |
3203 | fail: | |
3204 | return NULL; | |
3205 | } | |
3206 | ||
3207 | ||
c32bde28 | 3208 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3209 | PyObject *obj; |
3210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3211 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
3212 | Py_INCREF(obj); | |
3213 | return Py_BuildValue((char *)""); | |
3214 | } | |
c32bde28 | 3215 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
3216 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
3217 | return 1; | |
3218 | } | |
3219 | ||
3220 | ||
093d3ff1 | 3221 | static PyObject *_wrap_CheckBoxNameStr_get(void) { |
b2dc1044 RD |
3222 | PyObject *pyobj; |
3223 | ||
3224 | { | |
3225 | #if wxUSE_UNICODE | |
3226 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3227 | #else | |
3228 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3229 | #endif | |
3230 | } | |
3231 | return pyobj; | |
3232 | } | |
3233 | ||
3234 | ||
c32bde28 | 3235 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3236 | PyObject *resultobj; |
3237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3238 | int arg2 = (int) -1 ; |
3239 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3240 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
3241 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3242 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3243 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3244 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3245 | long arg6 = (long) 0 ; | |
3246 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3247 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3248 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
3249 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3250 | wxCheckBox *result; | |
ae8162c8 | 3251 | bool temp3 = false ; |
d14a1e28 RD |
3252 | wxPoint temp4 ; |
3253 | wxSize temp5 ; | |
ae8162c8 | 3254 | bool temp8 = false ; |
d14a1e28 | 3255 | PyObject * obj0 = 0 ; |
994141e6 | 3256 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3257 | PyObject * obj2 = 0 ; |
3258 | PyObject * obj3 = 0 ; | |
3259 | PyObject * obj4 = 0 ; | |
994141e6 | 3260 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3261 | PyObject * obj6 = 0 ; |
3262 | PyObject * obj7 = 0 ; | |
3263 | char *kwnames[] = { | |
3264 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3265 | }; | |
3266 | ||
248ed943 | 3267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 3270 | if (obj1) { |
093d3ff1 RD |
3271 | { |
3272 | arg2 = (int)(SWIG_As_int(obj1)); | |
3273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3274 | } | |
248ed943 RD |
3275 | } |
3276 | if (obj2) { | |
3277 | { | |
3278 | arg3 = wxString_in_helper(obj2); | |
3279 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3280 | temp3 = true; |
248ed943 | 3281 | } |
d14a1e28 RD |
3282 | } |
3283 | if (obj3) { | |
3284 | { | |
3285 | arg4 = &temp4; | |
3286 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3287 | } | |
3288 | } | |
3289 | if (obj4) { | |
3290 | { | |
3291 | arg5 = &temp5; | |
3292 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3293 | } | |
3294 | } | |
994141e6 | 3295 | if (obj5) { |
093d3ff1 RD |
3296 | { |
3297 | arg6 = (long)(SWIG_As_long(obj5)); | |
3298 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3299 | } | |
994141e6 | 3300 | } |
d14a1e28 | 3301 | if (obj6) { |
093d3ff1 RD |
3302 | { |
3303 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3304 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3305 | if (arg7 == NULL) { | |
3306 | SWIG_null_ref("wxValidator"); | |
3307 | } | |
3308 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
3309 | } |
3310 | } | |
3311 | if (obj7) { | |
3312 | { | |
3313 | arg8 = wxString_in_helper(obj7); | |
3314 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 3315 | temp8 = true; |
d14a1e28 RD |
3316 | } |
3317 | } | |
3318 | { | |
e3b71cb8 | 3319 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3321 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3322 | ||
3323 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3324 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3325 | } |
15afbcd0 | 3326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
3327 | { |
3328 | if (temp3) | |
3329 | delete arg3; | |
3330 | } | |
3331 | { | |
3332 | if (temp8) | |
3333 | delete arg8; | |
3334 | } | |
3335 | return resultobj; | |
3336 | fail: | |
3337 | { | |
3338 | if (temp3) | |
3339 | delete arg3; | |
3340 | } | |
3341 | { | |
3342 | if (temp8) | |
3343 | delete arg8; | |
3344 | } | |
3345 | return NULL; | |
3346 | } | |
3347 | ||
3348 | ||
c32bde28 | 3349 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3350 | PyObject *resultobj; |
3351 | wxCheckBox *result; | |
3352 | char *kwnames[] = { | |
3353 | NULL | |
3354 | }; | |
3355 | ||
3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
3357 | { | |
e3b71cb8 | 3358 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3360 | result = (wxCheckBox *)new wxCheckBox(); | |
3361 | ||
3362 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3363 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3364 | } |
15afbcd0 | 3365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
3366 | return resultobj; |
3367 | fail: | |
3368 | return NULL; | |
3369 | } | |
3370 | ||
3371 | ||
c32bde28 | 3372 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3373 | PyObject *resultobj; |
3374 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3375 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3376 | int arg3 = (int) -1 ; |
3377 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3378 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
3379 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3380 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3381 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3382 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3383 | long arg7 = (long) 0 ; | |
3384 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3385 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3386 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
3387 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3388 | bool result; | |
ae8162c8 | 3389 | bool temp4 = false ; |
d14a1e28 RD |
3390 | wxPoint temp5 ; |
3391 | wxSize temp6 ; | |
ae8162c8 | 3392 | bool temp9 = false ; |
d14a1e28 RD |
3393 | PyObject * obj0 = 0 ; |
3394 | PyObject * obj1 = 0 ; | |
994141e6 | 3395 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3396 | PyObject * obj3 = 0 ; |
3397 | PyObject * obj4 = 0 ; | |
3398 | PyObject * obj5 = 0 ; | |
994141e6 | 3399 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3400 | PyObject * obj7 = 0 ; |
3401 | PyObject * obj8 = 0 ; | |
3402 | char *kwnames[] = { | |
3403 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3404 | }; | |
3405 | ||
248ed943 | 3406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
3407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3409 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3410 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 3411 | if (obj2) { |
093d3ff1 RD |
3412 | { |
3413 | arg3 = (int)(SWIG_As_int(obj2)); | |
3414 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3415 | } | |
248ed943 RD |
3416 | } |
3417 | if (obj3) { | |
3418 | { | |
3419 | arg4 = wxString_in_helper(obj3); | |
3420 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3421 | temp4 = true; |
248ed943 | 3422 | } |
d14a1e28 RD |
3423 | } |
3424 | if (obj4) { | |
3425 | { | |
3426 | arg5 = &temp5; | |
3427 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3428 | } | |
3429 | } | |
3430 | if (obj5) { | |
3431 | { | |
3432 | arg6 = &temp6; | |
3433 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3434 | } | |
3435 | } | |
994141e6 | 3436 | if (obj6) { |
093d3ff1 RD |
3437 | { |
3438 | arg7 = (long)(SWIG_As_long(obj6)); | |
3439 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3440 | } | |
994141e6 | 3441 | } |
d14a1e28 | 3442 | if (obj7) { |
093d3ff1 RD |
3443 | { |
3444 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3445 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3446 | if (arg8 == NULL) { | |
3447 | SWIG_null_ref("wxValidator"); | |
3448 | } | |
3449 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
3450 | } |
3451 | } | |
3452 | if (obj8) { | |
3453 | { | |
3454 | arg9 = wxString_in_helper(obj8); | |
3455 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3456 | temp9 = true; |
d14a1e28 RD |
3457 | } |
3458 | } | |
3459 | { | |
3460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3461 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3462 | ||
3463 | wxPyEndAllowThreads(__tstate); | |
3464 | if (PyErr_Occurred()) SWIG_fail; | |
3465 | } | |
4f89f6a3 RD |
3466 | { |
3467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3468 | } | |
d14a1e28 RD |
3469 | { |
3470 | if (temp4) | |
3471 | delete arg4; | |
3472 | } | |
3473 | { | |
3474 | if (temp9) | |
3475 | delete arg9; | |
3476 | } | |
3477 | return resultobj; | |
3478 | fail: | |
3479 | { | |
3480 | if (temp4) | |
3481 | delete arg4; | |
3482 | } | |
3483 | { | |
3484 | if (temp9) | |
3485 | delete arg9; | |
3486 | } | |
3487 | return NULL; | |
3488 | } | |
3489 | ||
3490 | ||
c32bde28 | 3491 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3492 | PyObject *resultobj; |
3493 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3494 | bool result; | |
3495 | PyObject * obj0 = 0 ; | |
3496 | char *kwnames[] = { | |
3497 | (char *) "self", NULL | |
3498 | }; | |
3499 | ||
3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3503 | { |
3504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3505 | result = (bool)(arg1)->GetValue(); | |
3506 | ||
3507 | wxPyEndAllowThreads(__tstate); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | } | |
4f89f6a3 RD |
3510 | { |
3511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3512 | } | |
d14a1e28 RD |
3513 | return resultobj; |
3514 | fail: | |
3515 | return NULL; | |
3516 | } | |
3517 | ||
3518 | ||
c32bde28 | 3519 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3520 | PyObject *resultobj; |
3521 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3522 | bool result; | |
3523 | PyObject * obj0 = 0 ; | |
3524 | char *kwnames[] = { | |
3525 | (char *) "self", NULL | |
3526 | }; | |
3527 | ||
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3531 | { |
3532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3533 | result = (bool)(arg1)->IsChecked(); | |
3534 | ||
3535 | wxPyEndAllowThreads(__tstate); | |
3536 | if (PyErr_Occurred()) SWIG_fail; | |
3537 | } | |
4f89f6a3 RD |
3538 | { |
3539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3540 | } | |
d14a1e28 RD |
3541 | return resultobj; |
3542 | fail: | |
3543 | return NULL; | |
3544 | } | |
3545 | ||
3546 | ||
c32bde28 | 3547 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3548 | PyObject *resultobj; |
3549 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3550 | bool arg2 ; | |
3551 | PyObject * obj0 = 0 ; | |
3552 | PyObject * obj1 = 0 ; | |
3553 | char *kwnames[] = { | |
3554 | (char *) "self",(char *) "state", NULL | |
3555 | }; | |
3556 | ||
3557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3560 | { | |
3561 | arg2 = (bool const)(SWIG_As_bool(obj1)); | |
3562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3563 | } | |
d14a1e28 RD |
3564 | { |
3565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3566 | (arg1)->SetValue(arg2); | |
3567 | ||
3568 | wxPyEndAllowThreads(__tstate); | |
3569 | if (PyErr_Occurred()) SWIG_fail; | |
3570 | } | |
3571 | Py_INCREF(Py_None); resultobj = Py_None; | |
3572 | return resultobj; | |
3573 | fail: | |
3574 | return NULL; | |
3575 | } | |
3576 | ||
3577 | ||
c32bde28 | 3578 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3579 | PyObject *resultobj; |
3580 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
093d3ff1 | 3581 | wxCheckBoxState result; |
d14a1e28 RD |
3582 | PyObject * obj0 = 0 ; |
3583 | char *kwnames[] = { | |
3584 | (char *) "self", NULL | |
3585 | }; | |
3586 | ||
3587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3590 | { |
3591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3592 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); |
d14a1e28 RD |
3593 | |
3594 | wxPyEndAllowThreads(__tstate); | |
3595 | if (PyErr_Occurred()) SWIG_fail; | |
3596 | } | |
093d3ff1 | 3597 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
3598 | return resultobj; |
3599 | fail: | |
3600 | return NULL; | |
3601 | } | |
3602 | ||
3603 | ||
c32bde28 | 3604 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3605 | PyObject *resultobj; |
3606 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
093d3ff1 | 3607 | wxCheckBoxState arg2 ; |
d14a1e28 | 3608 | PyObject * obj0 = 0 ; |
994141e6 | 3609 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3610 | char *kwnames[] = { |
3611 | (char *) "self",(char *) "state", NULL | |
3612 | }; | |
3613 | ||
994141e6 | 3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3617 | { | |
3618 | arg2 = (wxCheckBoxState)(SWIG_As_int(obj1)); | |
3619 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3620 | } | |
d14a1e28 RD |
3621 | { |
3622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3623 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
3624 | ||
3625 | wxPyEndAllowThreads(__tstate); | |
3626 | if (PyErr_Occurred()) SWIG_fail; | |
3627 | } | |
3628 | Py_INCREF(Py_None); resultobj = Py_None; | |
3629 | return resultobj; | |
3630 | fail: | |
3631 | return NULL; | |
3632 | } | |
3633 | ||
3634 | ||
c32bde28 | 3635 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3636 | PyObject *resultobj; |
3637 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3638 | bool result; | |
3639 | PyObject * obj0 = 0 ; | |
3640 | char *kwnames[] = { | |
3641 | (char *) "self", NULL | |
3642 | }; | |
3643 | ||
3644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3647 | { |
3648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3649 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
3650 | ||
3651 | wxPyEndAllowThreads(__tstate); | |
3652 | if (PyErr_Occurred()) SWIG_fail; | |
3653 | } | |
4f89f6a3 RD |
3654 | { |
3655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3656 | } | |
d14a1e28 RD |
3657 | return resultobj; |
3658 | fail: | |
3659 | return NULL; | |
3660 | } | |
3661 | ||
3662 | ||
c32bde28 | 3663 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3664 | PyObject *resultobj; |
3665 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3666 | bool result; | |
3667 | PyObject * obj0 = 0 ; | |
3668 | char *kwnames[] = { | |
3669 | (char *) "self", NULL | |
3670 | }; | |
3671 | ||
3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3675 | { |
3676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3677 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
3678 | ||
3679 | wxPyEndAllowThreads(__tstate); | |
3680 | if (PyErr_Occurred()) SWIG_fail; | |
3681 | } | |
4f89f6a3 RD |
3682 | { |
3683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3684 | } | |
d14a1e28 RD |
3685 | return resultobj; |
3686 | fail: | |
3687 | return NULL; | |
3688 | } | |
3689 | ||
3690 | ||
c32bde28 | 3691 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 3692 | PyObject *resultobj; |
093d3ff1 | 3693 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
3694 | wxVisualAttributes result; |
3695 | PyObject * obj0 = 0 ; | |
3696 | char *kwnames[] = { | |
3697 | (char *) "variant", NULL | |
3698 | }; | |
3699 | ||
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3701 | if (obj0) { | |
093d3ff1 RD |
3702 | { |
3703 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
3704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3705 | } | |
22bfe96c RD |
3706 | } |
3707 | { | |
110da5b0 | 3708 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3710 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3711 | ||
3712 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3713 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3714 | } |
3715 | { | |
3716 | wxVisualAttributes * resultptr; | |
093d3ff1 | 3717 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
3718 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
3719 | } | |
3720 | return resultobj; | |
3721 | fail: | |
3722 | return NULL; | |
3723 | } | |
3724 | ||
3725 | ||
c32bde28 | 3726 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3727 | PyObject *obj; |
3728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3729 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
3730 | Py_INCREF(obj); | |
3731 | return Py_BuildValue((char *)""); | |
3732 | } | |
c32bde28 | 3733 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
b2dc1044 RD |
3734 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
3735 | return 1; | |
3736 | } | |
3737 | ||
3738 | ||
093d3ff1 | 3739 | static PyObject *_wrap_ChoiceNameStr_get(void) { |
b2dc1044 RD |
3740 | PyObject *pyobj; |
3741 | ||
3742 | { | |
3743 | #if wxUSE_UNICODE | |
3744 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3745 | #else | |
3746 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3747 | #endif | |
3748 | } | |
3749 | return pyobj; | |
3750 | } | |
3751 | ||
3752 | ||
c32bde28 | 3753 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3754 | PyObject *resultobj; |
3755 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 3756 | int arg2 = (int) -1 ; |
d14a1e28 RD |
3757 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3758 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3759 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3760 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
3761 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
3762 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
3763 | long arg6 = (long) 0 ; | |
3764 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3765 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3766 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
3767 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
3768 | wxChoice *result; |
3769 | wxPoint temp3 ; | |
3770 | wxSize temp4 ; | |
ae8162c8 RD |
3771 | bool temp5 = false ; |
3772 | bool temp8 = false ; | |
d14a1e28 | 3773 | PyObject * obj0 = 0 ; |
994141e6 | 3774 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3775 | PyObject * obj2 = 0 ; |
3776 | PyObject * obj3 = 0 ; | |
3777 | PyObject * obj4 = 0 ; | |
994141e6 | 3778 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3779 | PyObject * obj6 = 0 ; |
3780 | PyObject * obj7 = 0 ; | |
3781 | char *kwnames[] = { | |
3782 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3783 | }; | |
3784 | ||
a95a7133 | 3785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 3788 | if (obj1) { |
093d3ff1 RD |
3789 | { |
3790 | arg2 = (int)(SWIG_As_int(obj1)); | |
3791 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3792 | } | |
a95a7133 | 3793 | } |
d14a1e28 RD |
3794 | if (obj2) { |
3795 | { | |
3796 | arg3 = &temp3; | |
3797 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3798 | } | |
3799 | } | |
3800 | if (obj3) { | |
3801 | { | |
3802 | arg4 = &temp4; | |
3803 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3804 | } | |
3805 | } | |
3806 | if (obj4) { | |
3807 | { | |
4d5c3d91 RD |
3808 | if (! PySequence_Check(obj4)) { |
3809 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3810 | SWIG_fail; | |
3811 | } | |
3812 | arg5 = new wxArrayString; | |
ae8162c8 | 3813 | temp5 = true; |
4d5c3d91 RD |
3814 | int i, len=PySequence_Length(obj4); |
3815 | for (i=0; i<len; i++) { | |
3816 | PyObject* item = PySequence_GetItem(obj4, i); | |
3817 | #if wxUSE_UNICODE | |
3818 | PyObject* str = PyObject_Unicode(item); | |
3819 | #else | |
3820 | PyObject* str = PyObject_Str(item); | |
3821 | #endif | |
74a57fcd | 3822 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3823 | arg5->Add(Py2wxString(str)); |
3824 | Py_DECREF(item); | |
3825 | Py_DECREF(str); | |
3826 | } | |
d14a1e28 RD |
3827 | } |
3828 | } | |
994141e6 | 3829 | if (obj5) { |
093d3ff1 RD |
3830 | { |
3831 | arg6 = (long)(SWIG_As_long(obj5)); | |
3832 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3833 | } | |
994141e6 | 3834 | } |
d14a1e28 | 3835 | if (obj6) { |
093d3ff1 RD |
3836 | { |
3837 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3838 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3839 | if (arg7 == NULL) { | |
3840 | SWIG_null_ref("wxValidator"); | |
3841 | } | |
3842 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
3843 | } |
3844 | } | |
3845 | if (obj7) { | |
3846 | { | |
4d5c3d91 RD |
3847 | arg8 = wxString_in_helper(obj7); |
3848 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 3849 | temp8 = true; |
d14a1e28 RD |
3850 | } |
3851 | } | |
3852 | { | |
e3b71cb8 | 3853 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 3855 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
3856 | |
3857 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3858 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3859 | } |
15afbcd0 | 3860 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 3861 | { |
3adfb63b | 3862 | if (temp5) delete arg5; |
d14a1e28 RD |
3863 | } |
3864 | { | |
3865 | if (temp8) | |
4d5c3d91 | 3866 | delete arg8; |
d14a1e28 RD |
3867 | } |
3868 | return resultobj; | |
3869 | fail: | |
3870 | { | |
3adfb63b | 3871 | if (temp5) delete arg5; |
d14a1e28 RD |
3872 | } |
3873 | { | |
3874 | if (temp8) | |
4d5c3d91 | 3875 | delete arg8; |
d14a1e28 RD |
3876 | } |
3877 | return NULL; | |
3878 | } | |
3879 | ||
3880 | ||
c32bde28 | 3881 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3882 | PyObject *resultobj; |
3883 | wxChoice *result; | |
3884 | char *kwnames[] = { | |
3885 | NULL | |
3886 | }; | |
3887 | ||
3888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
3889 | { | |
e3b71cb8 | 3890 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3892 | result = (wxChoice *)new wxChoice(); | |
3893 | ||
3894 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3895 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3896 | } |
15afbcd0 | 3897 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
3898 | return resultobj; |
3899 | fail: | |
3900 | return NULL; | |
3901 | } | |
3902 | ||
3903 | ||
c32bde28 | 3904 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3905 | PyObject *resultobj; |
3906 | wxChoice *arg1 = (wxChoice *) 0 ; | |
3907 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3908 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3909 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3910 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3911 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3912 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
3913 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
3914 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3915 | long arg7 = (long) 0 ; | |
3916 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3917 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3918 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
3919 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
3920 | bool result; |
3921 | wxPoint temp4 ; | |
3922 | wxSize temp5 ; | |
ae8162c8 RD |
3923 | bool temp6 = false ; |
3924 | bool temp9 = false ; | |
d14a1e28 RD |
3925 | PyObject * obj0 = 0 ; |
3926 | PyObject * obj1 = 0 ; | |
994141e6 | 3927 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3928 | PyObject * obj3 = 0 ; |
3929 | PyObject * obj4 = 0 ; | |
3930 | PyObject * obj5 = 0 ; | |
994141e6 | 3931 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3932 | PyObject * obj7 = 0 ; |
3933 | PyObject * obj8 = 0 ; | |
3934 | char *kwnames[] = { | |
3935 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3936 | }; | |
3937 | ||
a95a7133 | 3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
3939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); |
3940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3941 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3942 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a95a7133 | 3943 | if (obj2) { |
093d3ff1 RD |
3944 | { |
3945 | arg3 = (int)(SWIG_As_int(obj2)); | |
3946 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3947 | } | |
a95a7133 | 3948 | } |
d14a1e28 RD |
3949 | if (obj3) { |
3950 | { | |
3951 | arg4 = &temp4; | |
3952 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3953 | } | |
3954 | } | |
3955 | if (obj4) { | |
3956 | { | |
3957 | arg5 = &temp5; | |
3958 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3959 | } | |
3960 | } | |
3961 | if (obj5) { | |
3962 | { | |
4d5c3d91 RD |
3963 | if (! PySequence_Check(obj5)) { |
3964 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3965 | SWIG_fail; | |
3966 | } | |
3967 | arg6 = new wxArrayString; | |
ae8162c8 | 3968 | temp6 = true; |
4d5c3d91 RD |
3969 | int i, len=PySequence_Length(obj5); |
3970 | for (i=0; i<len; i++) { | |
3971 | PyObject* item = PySequence_GetItem(obj5, i); | |
3972 | #if wxUSE_UNICODE | |
3973 | PyObject* str = PyObject_Unicode(item); | |
3974 | #else | |
3975 | PyObject* str = PyObject_Str(item); | |
3976 | #endif | |
74a57fcd | 3977 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3978 | arg6->Add(Py2wxString(str)); |
3979 | Py_DECREF(item); | |
3980 | Py_DECREF(str); | |
3981 | } | |
d14a1e28 RD |
3982 | } |
3983 | } | |
994141e6 | 3984 | if (obj6) { |
093d3ff1 RD |
3985 | { |
3986 | arg7 = (long)(SWIG_As_long(obj6)); | |
3987 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3988 | } | |
994141e6 | 3989 | } |
d14a1e28 | 3990 | if (obj7) { |
093d3ff1 RD |
3991 | { |
3992 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3993 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3994 | if (arg8 == NULL) { | |
3995 | SWIG_null_ref("wxValidator"); | |
3996 | } | |
3997 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
3998 | } |
3999 | } | |
4000 | if (obj8) { | |
4001 | { | |
4d5c3d91 RD |
4002 | arg9 = wxString_in_helper(obj8); |
4003 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4004 | temp9 = true; |
d14a1e28 RD |
4005 | } |
4006 | } | |
4007 | { | |
4008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4009 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
4010 | |
4011 | wxPyEndAllowThreads(__tstate); | |
4012 | if (PyErr_Occurred()) SWIG_fail; | |
4013 | } | |
4f89f6a3 RD |
4014 | { |
4015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4016 | } | |
d14a1e28 | 4017 | { |
3adfb63b | 4018 | if (temp6) delete arg6; |
d14a1e28 RD |
4019 | } |
4020 | { | |
4021 | if (temp9) | |
4d5c3d91 | 4022 | delete arg9; |
d14a1e28 RD |
4023 | } |
4024 | return resultobj; | |
4025 | fail: | |
4026 | { | |
3adfb63b | 4027 | if (temp6) delete arg6; |
d14a1e28 RD |
4028 | } |
4029 | { | |
4030 | if (temp9) | |
4d5c3d91 | 4031 | delete arg9; |
d14a1e28 RD |
4032 | } |
4033 | return NULL; | |
4034 | } | |
4035 | ||
4036 | ||
c32bde28 | 4037 | static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4038 | PyObject *resultobj; |
4039 | wxChoice *arg1 = (wxChoice *) 0 ; | |
4040 | int arg2 ; | |
4041 | PyObject * obj0 = 0 ; | |
994141e6 | 4042 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4043 | char *kwnames[] = { |
4044 | (char *) "self",(char *) "n", NULL | |
4045 | }; | |
4046 | ||
994141e6 | 4047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); |
4049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4050 | { | |
4051 | arg2 = (int const)(SWIG_As_int(obj1)); | |
4052 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4053 | } | |
d14a1e28 RD |
4054 | { |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | (arg1)->SetSelection(arg2); | |
4057 | ||
4058 | wxPyEndAllowThreads(__tstate); | |
4059 | if (PyErr_Occurred()) SWIG_fail; | |
4060 | } | |
4061 | Py_INCREF(Py_None); resultobj = Py_None; | |
4062 | return resultobj; | |
4063 | fail: | |
4064 | return NULL; | |
4065 | } | |
4066 | ||
4067 | ||
c32bde28 | 4068 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4069 | PyObject *resultobj; |
4070 | wxChoice *arg1 = (wxChoice *) 0 ; | |
4071 | wxString *arg2 = 0 ; | |
121b9a67 | 4072 | bool result; |
ae8162c8 | 4073 | bool temp2 = false ; |
d14a1e28 RD |
4074 | PyObject * obj0 = 0 ; |
4075 | PyObject * obj1 = 0 ; | |
4076 | char *kwnames[] = { | |
4077 | (char *) "self",(char *) "string", NULL | |
4078 | }; | |
4079 | ||
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); |
4082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4083 | { |
4084 | arg2 = wxString_in_helper(obj1); | |
4085 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4086 | temp2 = true; |
d14a1e28 RD |
4087 | } |
4088 | { | |
4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 4090 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
4091 | |
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
121b9a67 RD |
4095 | { |
4096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4097 | } | |
d14a1e28 RD |
4098 | { |
4099 | if (temp2) | |
4100 | delete arg2; | |
4101 | } | |
4102 | return resultobj; | |
4103 | fail: | |
4104 | { | |
4105 | if (temp2) | |
4106 | delete arg2; | |
4107 | } | |
4108 | return NULL; | |
4109 | } | |
4110 | ||
4111 | ||
c32bde28 | 4112 | static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4113 | PyObject *resultobj; |
4114 | wxChoice *arg1 = (wxChoice *) 0 ; | |
4115 | int arg2 ; | |
4116 | wxString *arg3 = 0 ; | |
ae8162c8 | 4117 | bool temp3 = false ; |
d14a1e28 | 4118 | PyObject * obj0 = 0 ; |
994141e6 | 4119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4120 | PyObject * obj2 = 0 ; |
4121 | char *kwnames[] = { | |
fcafa8a9 | 4122 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
4123 | }; |
4124 | ||
994141e6 | 4125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
4126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); |
4127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4128 | { | |
4129 | arg2 = (int)(SWIG_As_int(obj1)); | |
4130 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4131 | } | |
d14a1e28 RD |
4132 | { |
4133 | arg3 = wxString_in_helper(obj2); | |
4134 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4135 | temp3 = true; |
d14a1e28 RD |
4136 | } |
4137 | { | |
4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4139 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
4140 | ||
4141 | wxPyEndAllowThreads(__tstate); | |
4142 | if (PyErr_Occurred()) SWIG_fail; | |
4143 | } | |
4144 | Py_INCREF(Py_None); resultobj = Py_None; | |
4145 | { | |
4146 | if (temp3) | |
4147 | delete arg3; | |
4148 | } | |
4149 | return resultobj; | |
4150 | fail: | |
4151 | { | |
4152 | if (temp3) | |
4153 | delete arg3; | |
4154 | } | |
4155 | return NULL; | |
4156 | } | |
4157 | ||
4158 | ||
c32bde28 | 4159 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 4160 | PyObject *resultobj; |
093d3ff1 | 4161 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
4162 | wxVisualAttributes result; |
4163 | PyObject * obj0 = 0 ; | |
4164 | char *kwnames[] = { | |
4165 | (char *) "variant", NULL | |
4166 | }; | |
4167 | ||
4168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4169 | if (obj0) { | |
093d3ff1 RD |
4170 | { |
4171 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
4172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4173 | } | |
22bfe96c RD |
4174 | } |
4175 | { | |
110da5b0 | 4176 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4178 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4179 | ||
4180 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4181 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4182 | } |
4183 | { | |
4184 | wxVisualAttributes * resultptr; | |
093d3ff1 | 4185 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
4186 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4187 | } | |
4188 | return resultobj; | |
4189 | fail: | |
4190 | return NULL; | |
4191 | } | |
4192 | ||
4193 | ||
c32bde28 | 4194 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4195 | PyObject *obj; |
4196 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4197 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
4198 | Py_INCREF(obj); | |
4199 | return Py_BuildValue((char *)""); | |
4200 | } | |
c32bde28 | 4201 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
4202 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
4203 | return 1; | |
4204 | } | |
4205 | ||
4206 | ||
093d3ff1 | 4207 | static PyObject *_wrap_ComboBoxNameStr_get(void) { |
b2dc1044 RD |
4208 | PyObject *pyobj; |
4209 | ||
4210 | { | |
4211 | #if wxUSE_UNICODE | |
4212 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4213 | #else | |
4214 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4215 | #endif | |
4216 | } | |
4217 | return pyobj; | |
4218 | } | |
4219 | ||
4220 | ||
c32bde28 | 4221 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4222 | PyObject *resultobj; |
4223 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 4224 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4225 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4226 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4227 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4228 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4229 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4230 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
4231 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
4232 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
4233 | long arg7 = (long) 0 ; | |
4234 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4235 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4236 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
4237 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 4238 | wxComboBox *result; |
ae8162c8 | 4239 | bool temp3 = false ; |
d14a1e28 RD |
4240 | wxPoint temp4 ; |
4241 | wxSize temp5 ; | |
ae8162c8 RD |
4242 | bool temp6 = false ; |
4243 | bool temp9 = false ; | |
d14a1e28 | 4244 | PyObject * obj0 = 0 ; |
994141e6 | 4245 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4246 | PyObject * obj2 = 0 ; |
4247 | PyObject * obj3 = 0 ; | |
4248 | PyObject * obj4 = 0 ; | |
4249 | PyObject * obj5 = 0 ; | |
994141e6 | 4250 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4251 | PyObject * obj7 = 0 ; |
4252 | PyObject * obj8 = 0 ; | |
4253 | char *kwnames[] = { | |
4254 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4255 | }; | |
4256 | ||
a95a7133 | 4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
4258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 4260 | if (obj1) { |
093d3ff1 RD |
4261 | { |
4262 | arg2 = (int)(SWIG_As_int(obj1)); | |
4263 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4264 | } | |
a95a7133 | 4265 | } |
d14a1e28 RD |
4266 | if (obj2) { |
4267 | { | |
4268 | arg3 = wxString_in_helper(obj2); | |
4269 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4270 | temp3 = true; |
d14a1e28 RD |
4271 | } |
4272 | } | |
4273 | if (obj3) { | |
4274 | { | |
4275 | arg4 = &temp4; | |
4276 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4277 | } | |
4278 | } | |
4279 | if (obj4) { | |
4280 | { | |
4281 | arg5 = &temp5; | |
4282 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4283 | } | |
4284 | } | |
4285 | if (obj5) { | |
4286 | { | |
4d5c3d91 RD |
4287 | if (! PySequence_Check(obj5)) { |
4288 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4289 | SWIG_fail; | |
4290 | } | |
4291 | arg6 = new wxArrayString; | |
ae8162c8 | 4292 | temp6 = true; |
4d5c3d91 RD |
4293 | int i, len=PySequence_Length(obj5); |
4294 | for (i=0; i<len; i++) { | |
4295 | PyObject* item = PySequence_GetItem(obj5, i); | |
4296 | #if wxUSE_UNICODE | |
4297 | PyObject* str = PyObject_Unicode(item); | |
4298 | #else | |
4299 | PyObject* str = PyObject_Str(item); | |
4300 | #endif | |
74a57fcd | 4301 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
4302 | arg6->Add(Py2wxString(str)); |
4303 | Py_DECREF(item); | |
4304 | Py_DECREF(str); | |
4305 | } | |
d14a1e28 RD |
4306 | } |
4307 | } | |
994141e6 | 4308 | if (obj6) { |
093d3ff1 RD |
4309 | { |
4310 | arg7 = (long)(SWIG_As_long(obj6)); | |
4311 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4312 | } | |
994141e6 | 4313 | } |
d14a1e28 | 4314 | if (obj7) { |
093d3ff1 RD |
4315 | { |
4316 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4317 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4318 | if (arg8 == NULL) { | |
4319 | SWIG_null_ref("wxValidator"); | |
4320 | } | |
4321 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
4322 | } |
4323 | } | |
4324 | if (obj8) { | |
4325 | { | |
4d5c3d91 RD |
4326 | arg9 = wxString_in_helper(obj8); |
4327 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4328 | temp9 = true; |
d14a1e28 RD |
4329 | } |
4330 | } | |
4331 | { | |
e3b71cb8 | 4332 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 4334 | 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); |
d14a1e28 RD |
4335 | |
4336 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4337 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4338 | } |
15afbcd0 | 4339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
4340 | { |
4341 | if (temp3) | |
4342 | delete arg3; | |
4343 | } | |
4344 | { | |
3adfb63b | 4345 | if (temp6) delete arg6; |
d14a1e28 RD |
4346 | } |
4347 | { | |
4348 | if (temp9) | |
4d5c3d91 | 4349 | delete arg9; |
d14a1e28 RD |
4350 | } |
4351 | return resultobj; | |
4352 | fail: | |
4353 | { | |
4354 | if (temp3) | |
4355 | delete arg3; | |
4356 | } | |
4357 | { | |
3adfb63b | 4358 | if (temp6) delete arg6; |
d14a1e28 RD |
4359 | } |
4360 | { | |
4361 | if (temp9) | |
4d5c3d91 | 4362 | delete arg9; |
d14a1e28 RD |
4363 | } |
4364 | return NULL; | |
4365 | } | |
4366 | ||
4367 | ||
c32bde28 | 4368 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4369 | PyObject *resultobj; |
4370 | wxComboBox *result; | |
4371 | char *kwnames[] = { | |
4372 | NULL | |
4373 | }; | |
4374 | ||
4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
4376 | { | |
e3b71cb8 | 4377 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4379 | result = (wxComboBox *)new wxComboBox(); | |
4380 | ||
4381 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4382 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4383 | } |
15afbcd0 | 4384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
4385 | return resultobj; |
4386 | fail: | |
4387 | return NULL; | |
4388 | } | |
4389 | ||
4390 | ||
c32bde28 | 4391 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4392 | PyObject *resultobj; |
4393 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4394 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 4395 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4396 | wxString const &arg4_defvalue = wxPyEmptyString ; |
4397 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4398 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4399 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4400 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4401 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
4402 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
4403 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
4404 | long arg8 = (long) 0 ; | |
4405 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4406 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 4407 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 4408 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 4409 | bool result; |
ae8162c8 | 4410 | bool temp4 = false ; |
d14a1e28 RD |
4411 | wxPoint temp5 ; |
4412 | wxSize temp6 ; | |
ae8162c8 RD |
4413 | bool temp7 = false ; |
4414 | bool temp10 = false ; | |
d14a1e28 RD |
4415 | PyObject * obj0 = 0 ; |
4416 | PyObject * obj1 = 0 ; | |
994141e6 | 4417 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4418 | PyObject * obj3 = 0 ; |
4419 | PyObject * obj4 = 0 ; | |
4420 | PyObject * obj5 = 0 ; | |
4421 | PyObject * obj6 = 0 ; | |
994141e6 | 4422 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
4423 | PyObject * obj8 = 0 ; |
4424 | PyObject * obj9 = 0 ; | |
4425 | char *kwnames[] = { | |
4426 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4427 | }; | |
4428 | ||
a95a7133 | 4429 | 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 |
4430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4432 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4433 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a95a7133 | 4434 | if (obj2) { |
093d3ff1 RD |
4435 | { |
4436 | arg3 = (int)(SWIG_As_int(obj2)); | |
4437 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4438 | } | |
a95a7133 | 4439 | } |
d14a1e28 RD |
4440 | if (obj3) { |
4441 | { | |
4442 | arg4 = wxString_in_helper(obj3); | |
4443 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4444 | temp4 = true; |
d14a1e28 RD |
4445 | } |
4446 | } | |
4447 | if (obj4) { | |
4448 | { | |
4449 | arg5 = &temp5; | |
4450 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4451 | } | |
4452 | } | |
4453 | if (obj5) { | |
4454 | { | |
4455 | arg6 = &temp6; | |
4456 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4457 | } | |
4458 | } | |
4459 | if (obj6) { | |
4460 | { | |
4d5c3d91 RD |
4461 | if (! PySequence_Check(obj6)) { |
4462 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4463 | SWIG_fail; | |
4464 | } | |
4465 | arg7 = new wxArrayString; | |
ae8162c8 | 4466 | temp7 = true; |
4d5c3d91 RD |
4467 | int i, len=PySequence_Length(obj6); |
4468 | for (i=0; i<len; i++) { | |
4469 | PyObject* item = PySequence_GetItem(obj6, i); | |
4470 | #if wxUSE_UNICODE | |
4471 | PyObject* str = PyObject_Unicode(item); | |
4472 | #else | |
4473 | PyObject* str = PyObject_Str(item); | |
4474 | #endif | |
74a57fcd | 4475 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
4476 | arg7->Add(Py2wxString(str)); |
4477 | Py_DECREF(item); | |
4478 | Py_DECREF(str); | |
4479 | } | |
d14a1e28 RD |
4480 | } |
4481 | } | |
994141e6 | 4482 | if (obj7) { |
093d3ff1 RD |
4483 | { |
4484 | arg8 = (long)(SWIG_As_long(obj7)); | |
4485 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4486 | } | |
994141e6 | 4487 | } |
d14a1e28 | 4488 | if (obj8) { |
093d3ff1 RD |
4489 | { |
4490 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4491 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4492 | if (arg9 == NULL) { | |
4493 | SWIG_null_ref("wxValidator"); | |
4494 | } | |
4495 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
4496 | } |
4497 | } | |
4498 | if (obj9) { | |
4499 | { | |
4d5c3d91 RD |
4500 | arg10 = wxString_in_helper(obj9); |
4501 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 4502 | temp10 = true; |
d14a1e28 RD |
4503 | } |
4504 | } | |
4505 | { | |
4506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4507 | 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); |
d14a1e28 RD |
4508 | |
4509 | wxPyEndAllowThreads(__tstate); | |
4510 | if (PyErr_Occurred()) SWIG_fail; | |
4511 | } | |
4f89f6a3 RD |
4512 | { |
4513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4514 | } | |
d14a1e28 RD |
4515 | { |
4516 | if (temp4) | |
4517 | delete arg4; | |
4518 | } | |
4519 | { | |
3adfb63b | 4520 | if (temp7) delete arg7; |
d14a1e28 RD |
4521 | } |
4522 | { | |
4523 | if (temp10) | |
4d5c3d91 | 4524 | delete arg10; |
d14a1e28 RD |
4525 | } |
4526 | return resultobj; | |
4527 | fail: | |
4528 | { | |
4529 | if (temp4) | |
4530 | delete arg4; | |
4531 | } | |
4532 | { | |
3adfb63b | 4533 | if (temp7) delete arg7; |
d14a1e28 RD |
4534 | } |
4535 | { | |
4536 | if (temp10) | |
4d5c3d91 | 4537 | delete arg10; |
d14a1e28 RD |
4538 | } |
4539 | return NULL; | |
4540 | } | |
4541 | ||
4542 | ||
c32bde28 | 4543 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4544 | PyObject *resultobj; |
4545 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4546 | wxString result; | |
4547 | PyObject * obj0 = 0 ; | |
4548 | char *kwnames[] = { | |
4549 | (char *) "self", NULL | |
4550 | }; | |
4551 | ||
4552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4553 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4554 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4555 | { |
4556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4557 | result = ((wxComboBox const *)arg1)->GetValue(); | |
4558 | ||
4559 | wxPyEndAllowThreads(__tstate); | |
4560 | if (PyErr_Occurred()) SWIG_fail; | |
4561 | } | |
4562 | { | |
4563 | #if wxUSE_UNICODE | |
4564 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4565 | #else | |
4566 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4567 | #endif | |
4568 | } | |
4569 | return resultobj; | |
4570 | fail: | |
4571 | return NULL; | |
4572 | } | |
4573 | ||
4574 | ||
c32bde28 | 4575 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4576 | PyObject *resultobj; |
4577 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4578 | wxString *arg2 = 0 ; | |
ae8162c8 | 4579 | bool temp2 = false ; |
d14a1e28 RD |
4580 | PyObject * obj0 = 0 ; |
4581 | PyObject * obj1 = 0 ; | |
4582 | char *kwnames[] = { | |
4583 | (char *) "self",(char *) "value", NULL | |
4584 | }; | |
4585 | ||
4586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4589 | { |
4590 | arg2 = wxString_in_helper(obj1); | |
4591 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4592 | temp2 = true; |
d14a1e28 RD |
4593 | } |
4594 | { | |
4595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4596 | (arg1)->SetValue((wxString const &)*arg2); | |
4597 | ||
4598 | wxPyEndAllowThreads(__tstate); | |
4599 | if (PyErr_Occurred()) SWIG_fail; | |
4600 | } | |
4601 | Py_INCREF(Py_None); resultobj = Py_None; | |
4602 | { | |
4603 | if (temp2) | |
4604 | delete arg2; | |
4605 | } | |
4606 | return resultobj; | |
4607 | fail: | |
4608 | { | |
4609 | if (temp2) | |
4610 | delete arg2; | |
4611 | } | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
c32bde28 | 4616 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4617 | PyObject *resultobj; |
4618 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4619 | PyObject * obj0 = 0 ; | |
4620 | char *kwnames[] = { | |
4621 | (char *) "self", NULL | |
4622 | }; | |
4623 | ||
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4627 | { |
4628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4629 | (arg1)->Copy(); | |
4630 | ||
4631 | wxPyEndAllowThreads(__tstate); | |
4632 | if (PyErr_Occurred()) SWIG_fail; | |
4633 | } | |
4634 | Py_INCREF(Py_None); resultobj = Py_None; | |
4635 | return resultobj; | |
4636 | fail: | |
4637 | return NULL; | |
4638 | } | |
4639 | ||
4640 | ||
c32bde28 | 4641 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4642 | PyObject *resultobj; |
4643 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4644 | PyObject * obj0 = 0 ; | |
4645 | char *kwnames[] = { | |
4646 | (char *) "self", NULL | |
4647 | }; | |
4648 | ||
4649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4652 | { |
4653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4654 | (arg1)->Cut(); | |
4655 | ||
4656 | wxPyEndAllowThreads(__tstate); | |
4657 | if (PyErr_Occurred()) SWIG_fail; | |
4658 | } | |
4659 | Py_INCREF(Py_None); resultobj = Py_None; | |
4660 | return resultobj; | |
4661 | fail: | |
4662 | return NULL; | |
4663 | } | |
4664 | ||
4665 | ||
c32bde28 | 4666 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4667 | PyObject *resultobj; |
4668 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4669 | PyObject * obj0 = 0 ; | |
4670 | char *kwnames[] = { | |
4671 | (char *) "self", NULL | |
4672 | }; | |
4673 | ||
4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4675 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4676 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4677 | { |
4678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4679 | (arg1)->Paste(); | |
4680 | ||
4681 | wxPyEndAllowThreads(__tstate); | |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
4683 | } | |
4684 | Py_INCREF(Py_None); resultobj = Py_None; | |
4685 | return resultobj; | |
4686 | fail: | |
4687 | return NULL; | |
4688 | } | |
4689 | ||
4690 | ||
c32bde28 | 4691 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4692 | PyObject *resultobj; |
4693 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4694 | long arg2 ; | |
4695 | PyObject * obj0 = 0 ; | |
994141e6 | 4696 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4697 | char *kwnames[] = { |
4698 | (char *) "self",(char *) "pos", NULL | |
4699 | }; | |
4700 | ||
994141e6 | 4701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4704 | { | |
4705 | arg2 = (long)(SWIG_As_long(obj1)); | |
4706 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4707 | } | |
d14a1e28 RD |
4708 | { |
4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4710 | (arg1)->SetInsertionPoint(arg2); | |
4711 | ||
4712 | wxPyEndAllowThreads(__tstate); | |
4713 | if (PyErr_Occurred()) SWIG_fail; | |
4714 | } | |
4715 | Py_INCREF(Py_None); resultobj = Py_None; | |
4716 | return resultobj; | |
4717 | fail: | |
4718 | return NULL; | |
4719 | } | |
4720 | ||
4721 | ||
c32bde28 | 4722 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4723 | PyObject *resultobj; |
4724 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4725 | long result; | |
4726 | PyObject * obj0 = 0 ; | |
4727 | char *kwnames[] = { | |
4728 | (char *) "self", NULL | |
4729 | }; | |
4730 | ||
4731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4734 | { |
4735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4736 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
4737 | ||
4738 | wxPyEndAllowThreads(__tstate); | |
4739 | if (PyErr_Occurred()) SWIG_fail; | |
4740 | } | |
093d3ff1 RD |
4741 | { |
4742 | resultobj = SWIG_From_long((long)(result)); | |
4743 | } | |
d14a1e28 RD |
4744 | return resultobj; |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
c32bde28 | 4750 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4751 | PyObject *resultobj; |
4752 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4753 | long result; | |
4754 | PyObject * obj0 = 0 ; | |
4755 | char *kwnames[] = { | |
4756 | (char *) "self", NULL | |
4757 | }; | |
4758 | ||
4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4762 | { |
4763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4764 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
4765 | ||
4766 | wxPyEndAllowThreads(__tstate); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
093d3ff1 RD |
4769 | { |
4770 | resultobj = SWIG_From_long((long)(result)); | |
4771 | } | |
d14a1e28 RD |
4772 | return resultobj; |
4773 | fail: | |
4774 | return NULL; | |
4775 | } | |
4776 | ||
4777 | ||
c32bde28 | 4778 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4779 | PyObject *resultobj; |
4780 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4781 | long arg2 ; | |
4782 | long arg3 ; | |
4783 | wxString *arg4 = 0 ; | |
ae8162c8 | 4784 | bool temp4 = false ; |
d14a1e28 | 4785 | PyObject * obj0 = 0 ; |
994141e6 RD |
4786 | PyObject * obj1 = 0 ; |
4787 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4788 | PyObject * obj3 = 0 ; |
4789 | char *kwnames[] = { | |
4790 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
4791 | }; | |
4792 | ||
994141e6 | 4793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
4794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4796 | { | |
4797 | arg2 = (long)(SWIG_As_long(obj1)); | |
4798 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4799 | } | |
4800 | { | |
4801 | arg3 = (long)(SWIG_As_long(obj2)); | |
4802 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4803 | } | |
d14a1e28 RD |
4804 | { |
4805 | arg4 = wxString_in_helper(obj3); | |
4806 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4807 | temp4 = true; |
d14a1e28 RD |
4808 | } |
4809 | { | |
4810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4811 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
4812 | ||
4813 | wxPyEndAllowThreads(__tstate); | |
4814 | if (PyErr_Occurred()) SWIG_fail; | |
4815 | } | |
4816 | Py_INCREF(Py_None); resultobj = Py_None; | |
4817 | { | |
4818 | if (temp4) | |
4819 | delete arg4; | |
4820 | } | |
4821 | return resultobj; | |
4822 | fail: | |
4823 | { | |
4824 | if (temp4) | |
4825 | delete arg4; | |
4826 | } | |
4827 | return NULL; | |
4828 | } | |
4829 | ||
4830 | ||
c32bde28 | 4831 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
fd3f2efe RD |
4832 | PyObject *resultobj; |
4833 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4834 | int arg2 ; | |
4835 | PyObject * obj0 = 0 ; | |
994141e6 | 4836 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
4837 | char *kwnames[] = { |
4838 | (char *) "self",(char *) "n", NULL | |
4839 | }; | |
4840 | ||
994141e6 | 4841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4844 | { | |
4845 | arg2 = (int)(SWIG_As_int(obj1)); | |
4846 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4847 | } | |
fd3f2efe RD |
4848 | { |
4849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4850 | (arg1)->SetSelection(arg2); | |
4851 | ||
4852 | wxPyEndAllowThreads(__tstate); | |
4853 | if (PyErr_Occurred()) SWIG_fail; | |
4854 | } | |
4855 | Py_INCREF(Py_None); resultobj = Py_None; | |
4856 | return resultobj; | |
4857 | fail: | |
4858 | return NULL; | |
4859 | } | |
4860 | ||
4861 | ||
c32bde28 | 4862 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4863 | PyObject *resultobj; |
4864 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4865 | long arg2 ; | |
4866 | long arg3 ; | |
4867 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4868 | PyObject * obj1 = 0 ; |
4869 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4870 | char *kwnames[] = { |
4871 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4872 | }; | |
4873 | ||
994141e6 | 4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
4875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4877 | { | |
4878 | arg2 = (long)(SWIG_As_long(obj1)); | |
4879 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4880 | } | |
4881 | { | |
4882 | arg3 = (long)(SWIG_As_long(obj2)); | |
4883 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4884 | } | |
d14a1e28 RD |
4885 | { |
4886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4887 | (arg1)->SetSelection(arg2,arg3); | |
4888 | ||
4889 | wxPyEndAllowThreads(__tstate); | |
4890 | if (PyErr_Occurred()) SWIG_fail; | |
4891 | } | |
4892 | Py_INCREF(Py_None); resultobj = Py_None; | |
4893 | return resultobj; | |
4894 | fail: | |
4895 | return NULL; | |
4896 | } | |
4897 | ||
4898 | ||
c32bde28 | 4899 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
4900 | PyObject *resultobj; |
4901 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4902 | wxString *arg2 = 0 ; | |
4903 | bool result; | |
ae8162c8 | 4904 | bool temp2 = false ; |
121b9a67 RD |
4905 | PyObject * obj0 = 0 ; |
4906 | PyObject * obj1 = 0 ; | |
4907 | char *kwnames[] = { | |
4908 | (char *) "self",(char *) "string", NULL | |
4909 | }; | |
4910 | ||
4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
121b9a67 RD |
4914 | { |
4915 | arg2 = wxString_in_helper(obj1); | |
4916 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4917 | temp2 = true; |
121b9a67 RD |
4918 | } |
4919 | { | |
4920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4921 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
4922 | ||
4923 | wxPyEndAllowThreads(__tstate); | |
4924 | if (PyErr_Occurred()) SWIG_fail; | |
4925 | } | |
4926 | { | |
4927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4928 | } | |
4929 | { | |
4930 | if (temp2) | |
4931 | delete arg2; | |
4932 | } | |
4933 | return resultobj; | |
4934 | fail: | |
4935 | { | |
4936 | if (temp2) | |
4937 | delete arg2; | |
4938 | } | |
4939 | return NULL; | |
4940 | } | |
4941 | ||
4942 | ||
c32bde28 | 4943 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
4944 | PyObject *resultobj; |
4945 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4946 | int arg2 ; | |
4947 | wxString *arg3 = 0 ; | |
ae8162c8 | 4948 | bool temp3 = false ; |
121b9a67 RD |
4949 | PyObject * obj0 = 0 ; |
4950 | PyObject * obj1 = 0 ; | |
4951 | PyObject * obj2 = 0 ; | |
4952 | char *kwnames[] = { | |
4953 | (char *) "self",(char *) "n",(char *) "string", NULL | |
4954 | }; | |
4955 | ||
4956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
4957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4959 | { | |
4960 | arg2 = (int)(SWIG_As_int(obj1)); | |
4961 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4962 | } | |
121b9a67 RD |
4963 | { |
4964 | arg3 = wxString_in_helper(obj2); | |
4965 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4966 | temp3 = true; |
121b9a67 RD |
4967 | } |
4968 | { | |
4969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4970 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
4971 | ||
4972 | wxPyEndAllowThreads(__tstate); | |
4973 | if (PyErr_Occurred()) SWIG_fail; | |
4974 | } | |
4975 | Py_INCREF(Py_None); resultobj = Py_None; | |
4976 | { | |
4977 | if (temp3) | |
4978 | delete arg3; | |
4979 | } | |
4980 | return resultobj; | |
4981 | fail: | |
4982 | { | |
4983 | if (temp3) | |
4984 | delete arg3; | |
4985 | } | |
4986 | return NULL; | |
4987 | } | |
4988 | ||
4989 | ||
c32bde28 | 4990 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4991 | PyObject *resultobj; |
4992 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4993 | bool arg2 ; | |
4994 | PyObject * obj0 = 0 ; | |
4995 | PyObject * obj1 = 0 ; | |
4996 | char *kwnames[] = { | |
4997 | (char *) "self",(char *) "editable", NULL | |
4998 | }; | |
4999 | ||
5000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5003 | { | |
5004 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
5005 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5006 | } | |
d14a1e28 RD |
5007 | { |
5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5009 | (arg1)->SetEditable(arg2); | |
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_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5022 | PyObject *resultobj; |
5023 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5024 | PyObject * obj0 = 0 ; | |
5025 | char *kwnames[] = { | |
5026 | (char *) "self", NULL | |
5027 | }; | |
5028 | ||
5029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5032 | { |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5034 | (arg1)->SetInsertionPointEnd(); | |
5035 | ||
5036 | wxPyEndAllowThreads(__tstate); | |
5037 | if (PyErr_Occurred()) SWIG_fail; | |
5038 | } | |
5039 | Py_INCREF(Py_None); resultobj = Py_None; | |
5040 | return resultobj; | |
5041 | fail: | |
5042 | return NULL; | |
5043 | } | |
5044 | ||
5045 | ||
c32bde28 | 5046 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5047 | PyObject *resultobj; |
5048 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5049 | long arg2 ; | |
5050 | long arg3 ; | |
5051 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5052 | PyObject * obj1 = 0 ; |
5053 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5054 | char *kwnames[] = { |
5055 | (char *) "self",(char *) "from",(char *) "to", NULL | |
5056 | }; | |
5057 | ||
994141e6 | 5058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
5059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5061 | { | |
5062 | arg2 = (long)(SWIG_As_long(obj1)); | |
5063 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5064 | } | |
5065 | { | |
5066 | arg3 = (long)(SWIG_As_long(obj2)); | |
5067 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5068 | } | |
d14a1e28 RD |
5069 | { |
5070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5071 | (arg1)->Remove(arg2,arg3); | |
5072 | ||
5073 | wxPyEndAllowThreads(__tstate); | |
5074 | if (PyErr_Occurred()) SWIG_fail; | |
5075 | } | |
5076 | Py_INCREF(Py_None); resultobj = Py_None; | |
5077 | return resultobj; | |
5078 | fail: | |
5079 | return NULL; | |
5080 | } | |
5081 | ||
5082 | ||
5cbf236d RD |
5083 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
5084 | PyObject *resultobj; | |
5085 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5086 | bool result; | |
5087 | PyObject * obj0 = 0 ; | |
5088 | char *kwnames[] = { | |
5089 | (char *) "self", NULL | |
5090 | }; | |
5091 | ||
5092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5095 | { |
5096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5097 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
5098 | ||
5099 | wxPyEndAllowThreads(__tstate); | |
5100 | if (PyErr_Occurred()) SWIG_fail; | |
5101 | } | |
5102 | { | |
5103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5104 | } | |
5105 | return resultobj; | |
5106 | fail: | |
5107 | return NULL; | |
5108 | } | |
5109 | ||
5110 | ||
5111 | static PyObject *_wrap_ComboBox_Undo(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_Undo",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; | |
5cbf236d RD |
5122 | { |
5123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5124 | (arg1)->Undo(); | |
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_Redo(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_Redo",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; | |
5cbf236d RD |
5147 | { |
5148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5149 | (arg1)->Redo(); | |
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_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
5162 | PyObject *resultobj; | |
5163 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5164 | PyObject * obj0 = 0 ; | |
5165 | char *kwnames[] = { | |
5166 | (char *) "self", NULL | |
5167 | }; | |
5168 | ||
5169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5172 | { |
5173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5174 | (arg1)->SelectAll(); | |
5175 | ||
5176 | wxPyEndAllowThreads(__tstate); | |
5177 | if (PyErr_Occurred()) SWIG_fail; | |
5178 | } | |
5179 | Py_INCREF(Py_None); resultobj = Py_None; | |
5180 | return resultobj; | |
5181 | fail: | |
5182 | return NULL; | |
5183 | } | |
5184 | ||
5185 | ||
5186 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
5187 | PyObject *resultobj; | |
5188 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5189 | bool result; | |
5190 | PyObject * obj0 = 0 ; | |
5191 | char *kwnames[] = { | |
5192 | (char *) "self", NULL | |
5193 | }; | |
5194 | ||
5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5198 | { |
5199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5200 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
5201 | ||
5202 | wxPyEndAllowThreads(__tstate); | |
5203 | if (PyErr_Occurred()) SWIG_fail; | |
5204 | } | |
5205 | { | |
5206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5207 | } | |
5208 | return resultobj; | |
5209 | fail: | |
5210 | return NULL; | |
5211 | } | |
5212 | ||
5213 | ||
5214 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
5215 | PyObject *resultobj; | |
5216 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5217 | bool result; | |
5218 | PyObject * obj0 = 0 ; | |
5219 | char *kwnames[] = { | |
5220 | (char *) "self", NULL | |
5221 | }; | |
5222 | ||
5223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5226 | { |
5227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5228 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
5229 | ||
5230 | wxPyEndAllowThreads(__tstate); | |
5231 | if (PyErr_Occurred()) SWIG_fail; | |
5232 | } | |
5233 | { | |
5234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5235 | } | |
5236 | return resultobj; | |
5237 | fail: | |
5238 | return NULL; | |
5239 | } | |
5240 | ||
5241 | ||
5242 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
5243 | PyObject *resultobj; | |
5244 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5245 | bool result; | |
5246 | PyObject * obj0 = 0 ; | |
5247 | char *kwnames[] = { | |
5248 | (char *) "self", NULL | |
5249 | }; | |
5250 | ||
5251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5254 | { |
5255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5256 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
5257 | ||
5258 | wxPyEndAllowThreads(__tstate); | |
5259 | if (PyErr_Occurred()) SWIG_fail; | |
5260 | } | |
5261 | { | |
5262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5263 | } | |
5264 | return resultobj; | |
5265 | fail: | |
5266 | return NULL; | |
5267 | } | |
5268 | ||
5269 | ||
5270 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5271 | PyObject *resultobj; | |
5272 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5273 | bool result; | |
5274 | PyObject * obj0 = 0 ; | |
5275 | char *kwnames[] = { | |
5276 | (char *) "self", NULL | |
5277 | }; | |
5278 | ||
5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5282 | { |
5283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5284 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
5285 | ||
5286 | wxPyEndAllowThreads(__tstate); | |
5287 | if (PyErr_Occurred()) SWIG_fail; | |
5288 | } | |
5289 | { | |
5290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5291 | } | |
5292 | return resultobj; | |
5293 | fail: | |
5294 | return NULL; | |
5295 | } | |
5296 | ||
5297 | ||
5298 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5299 | PyObject *resultobj; | |
5300 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5301 | bool result; | |
5302 | PyObject * obj0 = 0 ; | |
5303 | char *kwnames[] = { | |
5304 | (char *) "self", NULL | |
5305 | }; | |
5306 | ||
5307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5310 | { |
5311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5312 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
5313 | ||
5314 | wxPyEndAllowThreads(__tstate); | |
5315 | if (PyErr_Occurred()) SWIG_fail; | |
5316 | } | |
5317 | { | |
5318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5319 | } | |
5320 | return resultobj; | |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
c32bde28 | 5326 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 5327 | PyObject *resultobj; |
093d3ff1 | 5328 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
5329 | wxVisualAttributes result; |
5330 | PyObject * obj0 = 0 ; | |
5331 | char *kwnames[] = { | |
5332 | (char *) "variant", NULL | |
5333 | }; | |
5334 | ||
5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5336 | if (obj0) { | |
093d3ff1 RD |
5337 | { |
5338 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5340 | } | |
22bfe96c RD |
5341 | } |
5342 | { | |
110da5b0 | 5343 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5345 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5346 | ||
5347 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5348 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5349 | } |
5350 | { | |
5351 | wxVisualAttributes * resultptr; | |
093d3ff1 | 5352 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
5353 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5354 | } | |
5355 | return resultobj; | |
5356 | fail: | |
5357 | return NULL; | |
5358 | } | |
5359 | ||
5360 | ||
c32bde28 | 5361 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5362 | PyObject *obj; |
5363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5364 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
5365 | Py_INCREF(obj); | |
5366 | return Py_BuildValue((char *)""); | |
5367 | } | |
c32bde28 | 5368 | static int _wrap_GaugeNameStr_set(PyObject *) { |
b2dc1044 RD |
5369 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
5370 | return 1; | |
5371 | } | |
5372 | ||
5373 | ||
093d3ff1 | 5374 | static PyObject *_wrap_GaugeNameStr_get(void) { |
b2dc1044 RD |
5375 | PyObject *pyobj; |
5376 | ||
5377 | { | |
5378 | #if wxUSE_UNICODE | |
5379 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5380 | #else | |
5381 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5382 | #endif | |
5383 | } | |
5384 | return pyobj; | |
5385 | } | |
5386 | ||
5387 | ||
c32bde28 | 5388 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5389 | PyObject *resultobj; |
5390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5391 | int arg2 = (int) -1 ; |
5392 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
5393 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5394 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5395 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5396 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5397 | long arg6 = (long) wxGA_HORIZONTAL ; | |
5398 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5399 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5400 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
5401 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5402 | wxGauge *result; | |
5403 | wxPoint temp4 ; | |
5404 | wxSize temp5 ; | |
ae8162c8 | 5405 | bool temp8 = false ; |
d14a1e28 | 5406 | PyObject * obj0 = 0 ; |
994141e6 RD |
5407 | PyObject * obj1 = 0 ; |
5408 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5409 | PyObject * obj3 = 0 ; |
5410 | PyObject * obj4 = 0 ; | |
994141e6 | 5411 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5412 | PyObject * obj6 = 0 ; |
5413 | PyObject * obj7 = 0 ; | |
5414 | char *kwnames[] = { | |
5415 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5416 | }; | |
5417 | ||
248ed943 | 5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
5419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 5421 | if (obj1) { |
093d3ff1 RD |
5422 | { |
5423 | arg2 = (int)(SWIG_As_int(obj1)); | |
5424 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5425 | } | |
248ed943 RD |
5426 | } |
5427 | if (obj2) { | |
093d3ff1 RD |
5428 | { |
5429 | arg3 = (int)(SWIG_As_int(obj2)); | |
5430 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5431 | } | |
248ed943 | 5432 | } |
d14a1e28 RD |
5433 | if (obj3) { |
5434 | { | |
5435 | arg4 = &temp4; | |
5436 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5437 | } | |
5438 | } | |
5439 | if (obj4) { | |
5440 | { | |
5441 | arg5 = &temp5; | |
5442 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5443 | } | |
5444 | } | |
994141e6 | 5445 | if (obj5) { |
093d3ff1 RD |
5446 | { |
5447 | arg6 = (long)(SWIG_As_long(obj5)); | |
5448 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5449 | } | |
994141e6 | 5450 | } |
d14a1e28 | 5451 | if (obj6) { |
093d3ff1 RD |
5452 | { |
5453 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5454 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5455 | if (arg7 == NULL) { | |
5456 | SWIG_null_ref("wxValidator"); | |
5457 | } | |
5458 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
5459 | } |
5460 | } | |
5461 | if (obj7) { | |
5462 | { | |
5463 | arg8 = wxString_in_helper(obj7); | |
5464 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5465 | temp8 = true; |
d14a1e28 RD |
5466 | } |
5467 | } | |
5468 | { | |
e3b71cb8 | 5469 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5471 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5472 | ||
5473 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5474 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5475 | } |
15afbcd0 | 5476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
5477 | { |
5478 | if (temp8) | |
5479 | delete arg8; | |
5480 | } | |
5481 | return resultobj; | |
5482 | fail: | |
5483 | { | |
5484 | if (temp8) | |
5485 | delete arg8; | |
5486 | } | |
5487 | return NULL; | |
5488 | } | |
5489 | ||
5490 | ||
c32bde28 | 5491 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5492 | PyObject *resultobj; |
5493 | wxGauge *result; | |
5494 | char *kwnames[] = { | |
5495 | NULL | |
5496 | }; | |
5497 | ||
5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
5499 | { | |
e3b71cb8 | 5500 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5502 | result = (wxGauge *)new wxGauge(); | |
5503 | ||
5504 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5505 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5506 | } |
15afbcd0 | 5507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
5508 | return resultobj; |
5509 | fail: | |
5510 | return NULL; | |
5511 | } | |
5512 | ||
5513 | ||
c32bde28 | 5514 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5515 | PyObject *resultobj; |
5516 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5517 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5518 | int arg3 = (int) -1 ; |
5519 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
5520 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5521 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5522 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5523 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5524 | long arg7 = (long) wxGA_HORIZONTAL ; | |
5525 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5526 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5527 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
5528 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5529 | bool result; | |
5530 | wxPoint temp5 ; | |
5531 | wxSize temp6 ; | |
ae8162c8 | 5532 | bool temp9 = false ; |
d14a1e28 RD |
5533 | PyObject * obj0 = 0 ; |
5534 | PyObject * obj1 = 0 ; | |
994141e6 RD |
5535 | PyObject * obj2 = 0 ; |
5536 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5537 | PyObject * obj4 = 0 ; |
5538 | PyObject * obj5 = 0 ; | |
994141e6 | 5539 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5540 | PyObject * obj7 = 0 ; |
5541 | PyObject * obj8 = 0 ; | |
5542 | char *kwnames[] = { | |
5543 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5544 | }; | |
5545 | ||
248ed943 | 5546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
5547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5549 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5550 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 5551 | if (obj2) { |
093d3ff1 RD |
5552 | { |
5553 | arg3 = (int)(SWIG_As_int(obj2)); | |
5554 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5555 | } | |
248ed943 RD |
5556 | } |
5557 | if (obj3) { | |
093d3ff1 RD |
5558 | { |
5559 | arg4 = (int)(SWIG_As_int(obj3)); | |
5560 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5561 | } | |
248ed943 | 5562 | } |
d14a1e28 RD |
5563 | if (obj4) { |
5564 | { | |
5565 | arg5 = &temp5; | |
5566 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5567 | } | |
5568 | } | |
5569 | if (obj5) { | |
5570 | { | |
5571 | arg6 = &temp6; | |
5572 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5573 | } | |
5574 | } | |
994141e6 | 5575 | if (obj6) { |
093d3ff1 RD |
5576 | { |
5577 | arg7 = (long)(SWIG_As_long(obj6)); | |
5578 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5579 | } | |
994141e6 | 5580 | } |
d14a1e28 | 5581 | if (obj7) { |
093d3ff1 RD |
5582 | { |
5583 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5584 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5585 | if (arg8 == NULL) { | |
5586 | SWIG_null_ref("wxValidator"); | |
5587 | } | |
5588 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
5589 | } |
5590 | } | |
5591 | if (obj8) { | |
5592 | { | |
5593 | arg9 = wxString_in_helper(obj8); | |
5594 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 5595 | temp9 = true; |
d14a1e28 RD |
5596 | } |
5597 | } | |
5598 | { | |
5599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5600 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5601 | ||
5602 | wxPyEndAllowThreads(__tstate); | |
5603 | if (PyErr_Occurred()) SWIG_fail; | |
5604 | } | |
4f89f6a3 RD |
5605 | { |
5606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5607 | } | |
d14a1e28 RD |
5608 | { |
5609 | if (temp9) | |
5610 | delete arg9; | |
5611 | } | |
5612 | return resultobj; | |
5613 | fail: | |
5614 | { | |
5615 | if (temp9) | |
5616 | delete arg9; | |
5617 | } | |
5618 | return NULL; | |
5619 | } | |
5620 | ||
5621 | ||
c32bde28 | 5622 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5623 | PyObject *resultobj; |
5624 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5625 | int arg2 ; | |
5626 | PyObject * obj0 = 0 ; | |
994141e6 | 5627 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5628 | char *kwnames[] = { |
5629 | (char *) "self",(char *) "range", NULL | |
5630 | }; | |
5631 | ||
994141e6 | 5632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5635 | { | |
5636 | arg2 = (int)(SWIG_As_int(obj1)); | |
5637 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5638 | } | |
d14a1e28 RD |
5639 | { |
5640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5641 | (arg1)->SetRange(arg2); | |
5642 | ||
5643 | wxPyEndAllowThreads(__tstate); | |
5644 | if (PyErr_Occurred()) SWIG_fail; | |
5645 | } | |
5646 | Py_INCREF(Py_None); resultobj = Py_None; | |
5647 | return resultobj; | |
5648 | fail: | |
5649 | return NULL; | |
5650 | } | |
5651 | ||
5652 | ||
c32bde28 | 5653 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5654 | PyObject *resultobj; |
5655 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5656 | int result; | |
5657 | PyObject * obj0 = 0 ; | |
5658 | char *kwnames[] = { | |
5659 | (char *) "self", NULL | |
5660 | }; | |
5661 | ||
5662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5665 | { |
5666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5667 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
5668 | ||
5669 | wxPyEndAllowThreads(__tstate); | |
5670 | if (PyErr_Occurred()) SWIG_fail; | |
5671 | } | |
093d3ff1 RD |
5672 | { |
5673 | resultobj = SWIG_From_int((int)(result)); | |
5674 | } | |
d14a1e28 RD |
5675 | return resultobj; |
5676 | fail: | |
5677 | return NULL; | |
5678 | } | |
5679 | ||
5680 | ||
c32bde28 | 5681 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5682 | PyObject *resultobj; |
5683 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5684 | int arg2 ; | |
5685 | PyObject * obj0 = 0 ; | |
994141e6 | 5686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5687 | char *kwnames[] = { |
5688 | (char *) "self",(char *) "pos", NULL | |
5689 | }; | |
5690 | ||
994141e6 | 5691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5694 | { | |
5695 | arg2 = (int)(SWIG_As_int(obj1)); | |
5696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5697 | } | |
d14a1e28 RD |
5698 | { |
5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5700 | (arg1)->SetValue(arg2); | |
5701 | ||
5702 | wxPyEndAllowThreads(__tstate); | |
5703 | if (PyErr_Occurred()) SWIG_fail; | |
5704 | } | |
5705 | Py_INCREF(Py_None); resultobj = Py_None; | |
5706 | return resultobj; | |
5707 | fail: | |
5708 | return NULL; | |
5709 | } | |
5710 | ||
5711 | ||
c32bde28 | 5712 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5713 | PyObject *resultobj; |
5714 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5715 | int result; | |
5716 | PyObject * obj0 = 0 ; | |
5717 | char *kwnames[] = { | |
5718 | (char *) "self", NULL | |
5719 | }; | |
5720 | ||
5721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5722 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5723 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5724 | { |
5725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5726 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
5727 | ||
5728 | wxPyEndAllowThreads(__tstate); | |
5729 | if (PyErr_Occurred()) SWIG_fail; | |
5730 | } | |
093d3ff1 RD |
5731 | { |
5732 | resultobj = SWIG_From_int((int)(result)); | |
5733 | } | |
d14a1e28 RD |
5734 | return resultobj; |
5735 | fail: | |
5736 | return NULL; | |
5737 | } | |
5738 | ||
5739 | ||
c32bde28 | 5740 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5741 | PyObject *resultobj; |
5742 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5743 | bool result; | |
5744 | PyObject * obj0 = 0 ; | |
5745 | char *kwnames[] = { | |
5746 | (char *) "self", NULL | |
5747 | }; | |
5748 | ||
5749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5750 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5751 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5752 | { |
5753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5754 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
5755 | ||
5756 | wxPyEndAllowThreads(__tstate); | |
5757 | if (PyErr_Occurred()) SWIG_fail; | |
5758 | } | |
4f89f6a3 RD |
5759 | { |
5760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5761 | } | |
d14a1e28 RD |
5762 | return resultobj; |
5763 | fail: | |
5764 | return NULL; | |
5765 | } | |
5766 | ||
5767 | ||
c32bde28 | 5768 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5769 | PyObject *resultobj; |
5770 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5771 | int arg2 ; | |
5772 | PyObject * obj0 = 0 ; | |
994141e6 | 5773 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5774 | char *kwnames[] = { |
5775 | (char *) "self",(char *) "w", NULL | |
5776 | }; | |
5777 | ||
994141e6 | 5778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5781 | { | |
5782 | arg2 = (int)(SWIG_As_int(obj1)); | |
5783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5784 | } | |
d14a1e28 RD |
5785 | { |
5786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5787 | (arg1)->SetShadowWidth(arg2); | |
5788 | ||
5789 | wxPyEndAllowThreads(__tstate); | |
5790 | if (PyErr_Occurred()) SWIG_fail; | |
5791 | } | |
5792 | Py_INCREF(Py_None); resultobj = Py_None; | |
5793 | return resultobj; | |
5794 | fail: | |
5795 | return NULL; | |
5796 | } | |
5797 | ||
5798 | ||
c32bde28 | 5799 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5800 | PyObject *resultobj; |
5801 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5802 | int result; | |
5803 | PyObject * obj0 = 0 ; | |
5804 | char *kwnames[] = { | |
5805 | (char *) "self", NULL | |
5806 | }; | |
5807 | ||
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5811 | { |
5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5813 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
5814 | ||
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
093d3ff1 RD |
5818 | { |
5819 | resultobj = SWIG_From_int((int)(result)); | |
5820 | } | |
d14a1e28 RD |
5821 | return resultobj; |
5822 | fail: | |
5823 | return NULL; | |
5824 | } | |
5825 | ||
5826 | ||
c32bde28 | 5827 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5828 | PyObject *resultobj; |
5829 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5830 | int arg2 ; | |
5831 | PyObject * obj0 = 0 ; | |
994141e6 | 5832 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5833 | char *kwnames[] = { |
5834 | (char *) "self",(char *) "w", NULL | |
5835 | }; | |
5836 | ||
994141e6 | 5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5840 | { | |
5841 | arg2 = (int)(SWIG_As_int(obj1)); | |
5842 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5843 | } | |
d14a1e28 RD |
5844 | { |
5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5846 | (arg1)->SetBezelFace(arg2); | |
5847 | ||
5848 | wxPyEndAllowThreads(__tstate); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
5851 | Py_INCREF(Py_None); resultobj = Py_None; | |
5852 | return resultobj; | |
5853 | fail: | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
c32bde28 | 5858 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5859 | PyObject *resultobj; |
5860 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5861 | int result; | |
5862 | PyObject * obj0 = 0 ; | |
5863 | char *kwnames[] = { | |
5864 | (char *) "self", NULL | |
5865 | }; | |
5866 | ||
5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5870 | { |
5871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5872 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
5873 | ||
5874 | wxPyEndAllowThreads(__tstate); | |
5875 | if (PyErr_Occurred()) SWIG_fail; | |
5876 | } | |
093d3ff1 RD |
5877 | { |
5878 | resultobj = SWIG_From_int((int)(result)); | |
5879 | } | |
d14a1e28 RD |
5880 | return resultobj; |
5881 | fail: | |
5882 | return NULL; | |
5883 | } | |
5884 | ||
5885 | ||
c32bde28 | 5886 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 5887 | PyObject *resultobj; |
093d3ff1 | 5888 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
5889 | wxVisualAttributes result; |
5890 | PyObject * obj0 = 0 ; | |
5891 | char *kwnames[] = { | |
5892 | (char *) "variant", NULL | |
5893 | }; | |
5894 | ||
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5896 | if (obj0) { | |
093d3ff1 RD |
5897 | { |
5898 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5900 | } | |
22bfe96c RD |
5901 | } |
5902 | { | |
110da5b0 | 5903 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5905 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5906 | ||
5907 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5908 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5909 | } |
5910 | { | |
5911 | wxVisualAttributes * resultptr; | |
093d3ff1 | 5912 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
5913 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5914 | } | |
5915 | return resultobj; | |
5916 | fail: | |
5917 | return NULL; | |
5918 | } | |
5919 | ||
5920 | ||
c32bde28 | 5921 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5922 | PyObject *obj; |
5923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5924 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
5925 | Py_INCREF(obj); | |
5926 | return Py_BuildValue((char *)""); | |
5927 | } | |
c32bde28 | 5928 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
b2dc1044 RD |
5929 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
5930 | return 1; | |
5931 | } | |
5932 | ||
5933 | ||
093d3ff1 | 5934 | static PyObject *_wrap_StaticBitmapNameStr_get(void) { |
b2dc1044 RD |
5935 | PyObject *pyobj; |
5936 | ||
5937 | { | |
5938 | #if wxUSE_UNICODE | |
5939 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5940 | #else | |
5941 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5942 | #endif | |
5943 | } | |
5944 | return pyobj; | |
5945 | } | |
5946 | ||
5947 | ||
c32bde28 | 5948 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
5949 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
5950 | return 1; | |
5951 | } | |
5952 | ||
5953 | ||
093d3ff1 | 5954 | static PyObject *_wrap_StaticBoxNameStr_get(void) { |
b2dc1044 RD |
5955 | PyObject *pyobj; |
5956 | ||
5957 | { | |
5958 | #if wxUSE_UNICODE | |
5959 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5960 | #else | |
5961 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5962 | #endif | |
5963 | } | |
5964 | return pyobj; | |
5965 | } | |
5966 | ||
5967 | ||
c32bde28 | 5968 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
b2dc1044 RD |
5969 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
5970 | return 1; | |
5971 | } | |
5972 | ||
5973 | ||
093d3ff1 | 5974 | static PyObject *_wrap_StaticTextNameStr_get(void) { |
b2dc1044 RD |
5975 | PyObject *pyobj; |
5976 | ||
5977 | { | |
5978 | #if wxUSE_UNICODE | |
5979 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5980 | #else | |
5981 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5982 | #endif | |
5983 | } | |
5984 | return pyobj; | |
5985 | } | |
5986 | ||
5987 | ||
c32bde28 | 5988 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5989 | PyObject *resultobj; |
5990 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5991 | int arg2 = (int) -1 ; |
5992 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5993 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
5994 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5995 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5996 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5997 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5998 | long arg6 = (long) 0 ; | |
5999 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
6000 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6001 | wxStaticBox *result; | |
ae8162c8 | 6002 | bool temp3 = false ; |
d14a1e28 RD |
6003 | wxPoint temp4 ; |
6004 | wxSize temp5 ; | |
ae8162c8 | 6005 | bool temp7 = false ; |
d14a1e28 | 6006 | PyObject * obj0 = 0 ; |
994141e6 | 6007 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6008 | PyObject * obj2 = 0 ; |
6009 | PyObject * obj3 = 0 ; | |
6010 | PyObject * obj4 = 0 ; | |
994141e6 | 6011 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6012 | PyObject * obj6 = 0 ; |
6013 | char *kwnames[] = { | |
6014 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6015 | }; | |
6016 | ||
248ed943 | 6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6020 | if (obj1) { |
093d3ff1 RD |
6021 | { |
6022 | arg2 = (int)(SWIG_As_int(obj1)); | |
6023 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6024 | } | |
248ed943 RD |
6025 | } |
6026 | if (obj2) { | |
6027 | { | |
6028 | arg3 = wxString_in_helper(obj2); | |
6029 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6030 | temp3 = true; |
248ed943 | 6031 | } |
d14a1e28 RD |
6032 | } |
6033 | if (obj3) { | |
6034 | { | |
6035 | arg4 = &temp4; | |
6036 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6037 | } | |
6038 | } | |
6039 | if (obj4) { | |
6040 | { | |
6041 | arg5 = &temp5; | |
6042 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6043 | } | |
6044 | } | |
994141e6 | 6045 | if (obj5) { |
093d3ff1 RD |
6046 | { |
6047 | arg6 = (long)(SWIG_As_long(obj5)); | |
6048 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6049 | } | |
994141e6 | 6050 | } |
d14a1e28 RD |
6051 | if (obj6) { |
6052 | { | |
6053 | arg7 = wxString_in_helper(obj6); | |
6054 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6055 | temp7 = true; |
d14a1e28 RD |
6056 | } |
6057 | } | |
6058 | { | |
e3b71cb8 | 6059 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6061 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6062 | ||
6063 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6064 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6065 | } |
b0f7404b | 6066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
6067 | { |
6068 | if (temp3) | |
6069 | delete arg3; | |
6070 | } | |
6071 | { | |
6072 | if (temp7) | |
6073 | delete arg7; | |
6074 | } | |
6075 | return resultobj; | |
6076 | fail: | |
6077 | { | |
6078 | if (temp3) | |
6079 | delete arg3; | |
6080 | } | |
6081 | { | |
6082 | if (temp7) | |
6083 | delete arg7; | |
6084 | } | |
6085 | return NULL; | |
6086 | } | |
6087 | ||
6088 | ||
c32bde28 | 6089 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6090 | PyObject *resultobj; |
6091 | wxStaticBox *result; | |
6092 | char *kwnames[] = { | |
6093 | NULL | |
6094 | }; | |
6095 | ||
6096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
6097 | { | |
e3b71cb8 | 6098 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6100 | result = (wxStaticBox *)new wxStaticBox(); | |
6101 | ||
6102 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6103 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6104 | } |
b0f7404b | 6105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
6106 | return resultobj; |
6107 | fail: | |
6108 | return NULL; | |
6109 | } | |
6110 | ||
6111 | ||
c32bde28 | 6112 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6113 | PyObject *resultobj; |
6114 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
6115 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6116 | int arg3 = (int) -1 ; |
6117 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6118 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
6119 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6120 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6121 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6122 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6123 | long arg7 = (long) 0 ; | |
6124 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
6125 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6126 | bool result; | |
ae8162c8 | 6127 | bool temp4 = false ; |
d14a1e28 RD |
6128 | wxPoint temp5 ; |
6129 | wxSize temp6 ; | |
ae8162c8 | 6130 | bool temp8 = false ; |
d14a1e28 RD |
6131 | PyObject * obj0 = 0 ; |
6132 | PyObject * obj1 = 0 ; | |
994141e6 | 6133 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6134 | PyObject * obj3 = 0 ; |
6135 | PyObject * obj4 = 0 ; | |
6136 | PyObject * obj5 = 0 ; | |
994141e6 | 6137 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6138 | PyObject * obj7 = 0 ; |
6139 | char *kwnames[] = { | |
6140 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6141 | }; | |
6142 | ||
248ed943 | 6143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
6145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6146 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6148 | if (obj2) { |
093d3ff1 RD |
6149 | { |
6150 | arg3 = (int)(SWIG_As_int(obj2)); | |
6151 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6152 | } | |
248ed943 RD |
6153 | } |
6154 | if (obj3) { | |
6155 | { | |
6156 | arg4 = wxString_in_helper(obj3); | |
6157 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6158 | temp4 = true; |
248ed943 | 6159 | } |
d14a1e28 RD |
6160 | } |
6161 | if (obj4) { | |
6162 | { | |
6163 | arg5 = &temp5; | |
6164 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6165 | } | |
6166 | } | |
6167 | if (obj5) { | |
6168 | { | |
6169 | arg6 = &temp6; | |
6170 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6171 | } | |
6172 | } | |
994141e6 | 6173 | if (obj6) { |
093d3ff1 RD |
6174 | { |
6175 | arg7 = (long)(SWIG_As_long(obj6)); | |
6176 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6177 | } | |
994141e6 | 6178 | } |
d14a1e28 RD |
6179 | if (obj7) { |
6180 | { | |
6181 | arg8 = wxString_in_helper(obj7); | |
6182 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6183 | temp8 = true; |
d14a1e28 RD |
6184 | } |
6185 | } | |
6186 | { | |
6187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6188 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6189 | ||
6190 | wxPyEndAllowThreads(__tstate); | |
6191 | if (PyErr_Occurred()) SWIG_fail; | |
6192 | } | |
4f89f6a3 RD |
6193 | { |
6194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6195 | } | |
d14a1e28 RD |
6196 | { |
6197 | if (temp4) | |
6198 | delete arg4; | |
6199 | } | |
6200 | { | |
6201 | if (temp8) | |
6202 | delete arg8; | |
6203 | } | |
6204 | return resultobj; | |
6205 | fail: | |
6206 | { | |
6207 | if (temp4) | |
6208 | delete arg4; | |
6209 | } | |
6210 | { | |
6211 | if (temp8) | |
6212 | delete arg8; | |
6213 | } | |
6214 | return NULL; | |
6215 | } | |
6216 | ||
6217 | ||
c32bde28 | 6218 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 6219 | PyObject *resultobj; |
093d3ff1 | 6220 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6221 | wxVisualAttributes result; |
6222 | PyObject * obj0 = 0 ; | |
6223 | char *kwnames[] = { | |
6224 | (char *) "variant", NULL | |
6225 | }; | |
6226 | ||
6227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6228 | if (obj0) { | |
093d3ff1 RD |
6229 | { |
6230 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6232 | } | |
22bfe96c RD |
6233 | } |
6234 | { | |
110da5b0 | 6235 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
6236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6237 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6238 | ||
6239 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6240 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6241 | } |
6242 | { | |
6243 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6244 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
6245 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6246 | } | |
6247 | return resultobj; | |
6248 | fail: | |
6249 | return NULL; | |
6250 | } | |
6251 | ||
6252 | ||
c32bde28 | 6253 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6254 | PyObject *obj; |
6255 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6256 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
6257 | Py_INCREF(obj); | |
6258 | return Py_BuildValue((char *)""); | |
6259 | } | |
c32bde28 | 6260 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6261 | PyObject *resultobj; |
6262 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6263 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6264 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6265 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6266 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6267 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6268 | long arg5 = (long) wxLI_HORIZONTAL ; | |
6269 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
6270 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6271 | wxStaticLine *result; | |
6272 | wxPoint temp3 ; | |
6273 | wxSize temp4 ; | |
ae8162c8 | 6274 | bool temp6 = false ; |
d14a1e28 | 6275 | PyObject * obj0 = 0 ; |
994141e6 | 6276 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6277 | PyObject * obj2 = 0 ; |
6278 | PyObject * obj3 = 0 ; | |
994141e6 | 6279 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
6280 | PyObject * obj5 = 0 ; |
6281 | char *kwnames[] = { | |
6282 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6283 | }; | |
6284 | ||
248ed943 | 6285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
6286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6288 | if (obj1) { |
093d3ff1 RD |
6289 | { |
6290 | arg2 = (int)(SWIG_As_int(obj1)); | |
6291 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6292 | } | |
248ed943 | 6293 | } |
d14a1e28 RD |
6294 | if (obj2) { |
6295 | { | |
6296 | arg3 = &temp3; | |
6297 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6298 | } | |
6299 | } | |
6300 | if (obj3) { | |
6301 | { | |
6302 | arg4 = &temp4; | |
6303 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6304 | } | |
6305 | } | |
994141e6 | 6306 | if (obj4) { |
093d3ff1 RD |
6307 | { |
6308 | arg5 = (long)(SWIG_As_long(obj4)); | |
6309 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6310 | } | |
994141e6 | 6311 | } |
d14a1e28 RD |
6312 | if (obj5) { |
6313 | { | |
6314 | arg6 = wxString_in_helper(obj5); | |
6315 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 6316 | temp6 = true; |
d14a1e28 RD |
6317 | } |
6318 | } | |
6319 | { | |
e3b71cb8 | 6320 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6322 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6323 | ||
6324 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6325 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6326 | } |
15afbcd0 | 6327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
6328 | { |
6329 | if (temp6) | |
6330 | delete arg6; | |
6331 | } | |
6332 | return resultobj; | |
6333 | fail: | |
6334 | { | |
6335 | if (temp6) | |
6336 | delete arg6; | |
6337 | } | |
6338 | return NULL; | |
6339 | } | |
6340 | ||
6341 | ||
c32bde28 | 6342 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6343 | PyObject *resultobj; |
6344 | wxStaticLine *result; | |
6345 | char *kwnames[] = { | |
6346 | NULL | |
6347 | }; | |
6348 | ||
6349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
6350 | { | |
e3b71cb8 | 6351 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6353 | result = (wxStaticLine *)new wxStaticLine(); | |
6354 | ||
6355 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6356 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6357 | } |
15afbcd0 | 6358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
6359 | return resultobj; |
6360 | fail: | |
6361 | return NULL; | |
6362 | } | |
6363 | ||
6364 | ||
c32bde28 | 6365 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6366 | PyObject *resultobj; |
6367 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6368 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6369 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6370 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6371 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6372 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6373 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6374 | long arg6 = (long) wxLI_HORIZONTAL ; | |
6375 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6376 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6377 | bool result; | |
6378 | wxPoint temp4 ; | |
6379 | wxSize temp5 ; | |
ae8162c8 | 6380 | bool temp7 = false ; |
d14a1e28 RD |
6381 | PyObject * obj0 = 0 ; |
6382 | PyObject * obj1 = 0 ; | |
994141e6 | 6383 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6384 | PyObject * obj3 = 0 ; |
6385 | PyObject * obj4 = 0 ; | |
994141e6 | 6386 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6387 | PyObject * obj6 = 0 ; |
6388 | char *kwnames[] = { | |
6389 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6390 | }; | |
6391 | ||
248ed943 | 6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6395 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6396 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6397 | if (obj2) { |
093d3ff1 RD |
6398 | { |
6399 | arg3 = (int)(SWIG_As_int(obj2)); | |
6400 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6401 | } | |
248ed943 | 6402 | } |
d14a1e28 RD |
6403 | if (obj3) { |
6404 | { | |
6405 | arg4 = &temp4; | |
6406 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6407 | } | |
6408 | } | |
6409 | if (obj4) { | |
6410 | { | |
6411 | arg5 = &temp5; | |
6412 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6413 | } | |
6414 | } | |
994141e6 | 6415 | if (obj5) { |
093d3ff1 RD |
6416 | { |
6417 | arg6 = (long)(SWIG_As_long(obj5)); | |
6418 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6419 | } | |
994141e6 | 6420 | } |
d14a1e28 RD |
6421 | if (obj6) { |
6422 | { | |
6423 | arg7 = wxString_in_helper(obj6); | |
6424 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6425 | temp7 = true; |
d14a1e28 RD |
6426 | } |
6427 | } | |
6428 | { | |
6429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6430 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6431 | ||
6432 | wxPyEndAllowThreads(__tstate); | |
6433 | if (PyErr_Occurred()) SWIG_fail; | |
6434 | } | |
4f89f6a3 RD |
6435 | { |
6436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6437 | } | |
d14a1e28 RD |
6438 | { |
6439 | if (temp7) | |
6440 | delete arg7; | |
6441 | } | |
6442 | return resultobj; | |
6443 | fail: | |
6444 | { | |
6445 | if (temp7) | |
6446 | delete arg7; | |
6447 | } | |
6448 | return NULL; | |
6449 | } | |
6450 | ||
6451 | ||
c32bde28 | 6452 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6453 | PyObject *resultobj; |
6454 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6455 | bool result; | |
6456 | PyObject * obj0 = 0 ; | |
6457 | char *kwnames[] = { | |
6458 | (char *) "self", NULL | |
6459 | }; | |
6460 | ||
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6464 | { |
6465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6466 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
6467 | ||
6468 | wxPyEndAllowThreads(__tstate); | |
6469 | if (PyErr_Occurred()) SWIG_fail; | |
6470 | } | |
4f89f6a3 RD |
6471 | { |
6472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6473 | } | |
d14a1e28 RD |
6474 | return resultobj; |
6475 | fail: | |
6476 | return NULL; | |
6477 | } | |
6478 | ||
6479 | ||
c32bde28 | 6480 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6481 | PyObject *resultobj; |
6482 | int result; | |
6483 | char *kwnames[] = { | |
6484 | NULL | |
6485 | }; | |
6486 | ||
6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
6488 | { | |
6489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6490 | result = (int)wxStaticLine::GetDefaultSize(); | |
6491 | ||
6492 | wxPyEndAllowThreads(__tstate); | |
6493 | if (PyErr_Occurred()) SWIG_fail; | |
6494 | } | |
093d3ff1 RD |
6495 | { |
6496 | resultobj = SWIG_From_int((int)(result)); | |
6497 | } | |
d14a1e28 RD |
6498 | return resultobj; |
6499 | fail: | |
6500 | return NULL; | |
6501 | } | |
6502 | ||
6503 | ||
c32bde28 | 6504 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 6505 | PyObject *resultobj; |
093d3ff1 | 6506 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6507 | wxVisualAttributes result; |
6508 | PyObject * obj0 = 0 ; | |
6509 | char *kwnames[] = { | |
6510 | (char *) "variant", NULL | |
6511 | }; | |
6512 | ||
6513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6514 | if (obj0) { | |
093d3ff1 RD |
6515 | { |
6516 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6518 | } | |
22bfe96c RD |
6519 | } |
6520 | { | |
110da5b0 | 6521 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
6522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6523 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6524 | ||
6525 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6526 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6527 | } |
6528 | { | |
6529 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6530 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
6531 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6532 | } | |
6533 | return resultobj; | |
6534 | fail: | |
6535 | return NULL; | |
6536 | } | |
6537 | ||
6538 | ||
c32bde28 | 6539 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6540 | PyObject *obj; |
6541 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6542 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
6543 | Py_INCREF(obj); | |
6544 | return Py_BuildValue((char *)""); | |
6545 | } | |
c32bde28 | 6546 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6547 | PyObject *resultobj; |
6548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
6549 | int arg2 = (int) -1 ; |
6550 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6551 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
6552 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6553 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6554 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6555 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6556 | long arg6 = (long) 0 ; | |
6557 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6558 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6559 | wxStaticText *result; | |
ae8162c8 | 6560 | bool temp3 = false ; |
d14a1e28 RD |
6561 | wxPoint temp4 ; |
6562 | wxSize temp5 ; | |
ae8162c8 | 6563 | bool temp7 = false ; |
d14a1e28 | 6564 | PyObject * obj0 = 0 ; |
994141e6 | 6565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6566 | PyObject * obj2 = 0 ; |
6567 | PyObject * obj3 = 0 ; | |
6568 | PyObject * obj4 = 0 ; | |
994141e6 | 6569 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6570 | PyObject * obj6 = 0 ; |
6571 | char *kwnames[] = { | |
6572 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6573 | }; | |
6574 | ||
248ed943 | 6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6578 | if (obj1) { |
093d3ff1 RD |
6579 | { |
6580 | arg2 = (int)(SWIG_As_int(obj1)); | |
6581 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6582 | } | |
248ed943 RD |
6583 | } |
6584 | if (obj2) { | |
6585 | { | |
6586 | arg3 = wxString_in_helper(obj2); | |
6587 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6588 | temp3 = true; |
248ed943 | 6589 | } |
d14a1e28 RD |
6590 | } |
6591 | if (obj3) { | |
6592 | { | |
6593 | arg4 = &temp4; | |
6594 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6595 | } | |
6596 | } | |
6597 | if (obj4) { | |
6598 | { | |
6599 | arg5 = &temp5; | |
6600 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6601 | } | |
6602 | } | |
994141e6 | 6603 | if (obj5) { |
093d3ff1 RD |
6604 | { |
6605 | arg6 = (long)(SWIG_As_long(obj5)); | |
6606 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6607 | } | |
994141e6 | 6608 | } |
d14a1e28 RD |
6609 | if (obj6) { |
6610 | { | |
6611 | arg7 = wxString_in_helper(obj6); | |
6612 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6613 | temp7 = true; |
d14a1e28 RD |
6614 | } |
6615 | } | |
6616 | { | |
e3b71cb8 | 6617 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6619 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6620 | ||
6621 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6622 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6623 | } |
15afbcd0 | 6624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
6625 | { |
6626 | if (temp3) | |
6627 | delete arg3; | |
6628 | } | |
6629 | { | |
6630 | if (temp7) | |
6631 | delete arg7; | |
6632 | } | |
6633 | return resultobj; | |
6634 | fail: | |
6635 | { | |
6636 | if (temp3) | |
6637 | delete arg3; | |
6638 | } | |
6639 | { | |
6640 | if (temp7) | |
6641 | delete arg7; | |
6642 | } | |
6643 | return NULL; | |
6644 | } | |
6645 | ||
6646 | ||
c32bde28 | 6647 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6648 | PyObject *resultobj; |
6649 | wxStaticText *result; | |
6650 | char *kwnames[] = { | |
6651 | NULL | |
6652 | }; | |
6653 | ||
6654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
6655 | { | |
e3b71cb8 | 6656 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6658 | result = (wxStaticText *)new wxStaticText(); | |
6659 | ||
6660 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6661 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6662 | } |
15afbcd0 | 6663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
6664 | return resultobj; |
6665 | fail: | |
6666 | return NULL; | |
6667 | } | |
6668 | ||
6669 | ||
c32bde28 | 6670 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6671 | PyObject *resultobj; |
6672 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
6673 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6674 | int arg3 = (int) -1 ; |
6675 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6676 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
6677 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6678 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6679 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6680 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6681 | long arg7 = (long) 0 ; | |
6682 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
6683 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6684 | bool result; | |
ae8162c8 | 6685 | bool temp4 = false ; |
d14a1e28 RD |
6686 | wxPoint temp5 ; |
6687 | wxSize temp6 ; | |
ae8162c8 | 6688 | bool temp8 = false ; |
d14a1e28 RD |
6689 | PyObject * obj0 = 0 ; |
6690 | PyObject * obj1 = 0 ; | |
994141e6 | 6691 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6692 | PyObject * obj3 = 0 ; |
6693 | PyObject * obj4 = 0 ; | |
6694 | PyObject * obj5 = 0 ; | |
994141e6 | 6695 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6696 | PyObject * obj7 = 0 ; |
6697 | char *kwnames[] = { | |
6698 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6699 | }; | |
6700 | ||
248ed943 | 6701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); |
6703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6704 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6706 | if (obj2) { |
093d3ff1 RD |
6707 | { |
6708 | arg3 = (int)(SWIG_As_int(obj2)); | |
6709 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6710 | } | |
248ed943 RD |
6711 | } |
6712 | if (obj3) { | |
6713 | { | |
6714 | arg4 = wxString_in_helper(obj3); | |
6715 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6716 | temp4 = true; |
248ed943 | 6717 | } |
d14a1e28 RD |
6718 | } |
6719 | if (obj4) { | |
6720 | { | |
6721 | arg5 = &temp5; | |
6722 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6723 | } | |
6724 | } | |
6725 | if (obj5) { | |
6726 | { | |
6727 | arg6 = &temp6; | |
6728 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6729 | } | |
6730 | } | |
994141e6 | 6731 | if (obj6) { |
093d3ff1 RD |
6732 | { |
6733 | arg7 = (long)(SWIG_As_long(obj6)); | |
6734 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6735 | } | |
994141e6 | 6736 | } |
d14a1e28 RD |
6737 | if (obj7) { |
6738 | { | |
6739 | arg8 = wxString_in_helper(obj7); | |
6740 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6741 | temp8 = true; |
d14a1e28 RD |
6742 | } |
6743 | } | |
6744 | { | |
6745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6746 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6747 | ||
6748 | wxPyEndAllowThreads(__tstate); | |
6749 | if (PyErr_Occurred()) SWIG_fail; | |
6750 | } | |
4f89f6a3 RD |
6751 | { |
6752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6753 | } | |
d14a1e28 RD |
6754 | { |
6755 | if (temp4) | |
6756 | delete arg4; | |
6757 | } | |
6758 | { | |
6759 | if (temp8) | |
6760 | delete arg8; | |
6761 | } | |
6762 | return resultobj; | |
6763 | fail: | |
6764 | { | |
6765 | if (temp4) | |
6766 | delete arg4; | |
6767 | } | |
6768 | { | |
6769 | if (temp8) | |
6770 | delete arg8; | |
6771 | } | |
6772 | return NULL; | |
6773 | } | |
6774 | ||
6775 | ||
c32bde28 | 6776 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 6777 | PyObject *resultobj; |
093d3ff1 | 6778 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6779 | wxVisualAttributes result; |
6780 | PyObject * obj0 = 0 ; | |
6781 | char *kwnames[] = { | |
6782 | (char *) "variant", NULL | |
6783 | }; | |
6784 | ||
6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6786 | if (obj0) { | |
093d3ff1 RD |
6787 | { |
6788 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6790 | } | |
22bfe96c RD |
6791 | } |
6792 | { | |
110da5b0 | 6793 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6795 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6796 | ||
6797 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6798 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6799 | } |
6800 | { | |
6801 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6802 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
6803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6804 | } | |
6805 | return resultobj; | |
6806 | fail: | |
6807 | return NULL; | |
6808 | } | |
6809 | ||
6810 | ||
c32bde28 | 6811 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6812 | PyObject *obj; |
6813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6814 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
6815 | Py_INCREF(obj); | |
6816 | return Py_BuildValue((char *)""); | |
6817 | } | |
c32bde28 | 6818 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6819 | PyObject *resultobj; |
6820 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
6821 | int arg2 = (int) -1 ; |
6822 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
6823 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
6824 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6825 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6826 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6827 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6828 | long arg6 = (long) 0 ; | |
6829 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
6830 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6831 | wxStaticBitmap *result; | |
6832 | wxPoint temp4 ; | |
6833 | wxSize temp5 ; | |
ae8162c8 | 6834 | bool temp7 = false ; |
d14a1e28 | 6835 | PyObject * obj0 = 0 ; |
994141e6 | 6836 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6837 | PyObject * obj2 = 0 ; |
6838 | PyObject * obj3 = 0 ; | |
6839 | PyObject * obj4 = 0 ; | |
994141e6 | 6840 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6841 | PyObject * obj6 = 0 ; |
6842 | char *kwnames[] = { | |
6843 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6844 | }; | |
6845 | ||
248ed943 | 6846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6849 | if (obj1) { |
093d3ff1 RD |
6850 | { |
6851 | arg2 = (int)(SWIG_As_int(obj1)); | |
6852 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6853 | } | |
248ed943 RD |
6854 | } |
6855 | if (obj2) { | |
093d3ff1 RD |
6856 | { |
6857 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6858 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6859 | if (arg3 == NULL) { | |
6860 | SWIG_null_ref("wxBitmap"); | |
6861 | } | |
6862 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 6863 | } |
d14a1e28 RD |
6864 | } |
6865 | if (obj3) { | |
6866 | { | |
6867 | arg4 = &temp4; | |
6868 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6869 | } | |
6870 | } | |
6871 | if (obj4) { | |
6872 | { | |
6873 | arg5 = &temp5; | |
6874 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6875 | } | |
6876 | } | |
994141e6 | 6877 | if (obj5) { |
093d3ff1 RD |
6878 | { |
6879 | arg6 = (long)(SWIG_As_long(obj5)); | |
6880 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6881 | } | |
994141e6 | 6882 | } |
d14a1e28 RD |
6883 | if (obj6) { |
6884 | { | |
6885 | arg7 = wxString_in_helper(obj6); | |
6886 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6887 | temp7 = true; |
d14a1e28 RD |
6888 | } |
6889 | } | |
6890 | { | |
e3b71cb8 | 6891 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6893 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6894 | ||
6895 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6896 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6897 | } |
15afbcd0 | 6898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
6899 | { |
6900 | if (temp7) | |
6901 | delete arg7; | |
6902 | } | |
6903 | return resultobj; | |
6904 | fail: | |
6905 | { | |
6906 | if (temp7) | |
6907 | delete arg7; | |
6908 | } | |
6909 | return NULL; | |
6910 | } | |
6911 | ||
6912 | ||
c32bde28 | 6913 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6914 | PyObject *resultobj; |
6915 | wxStaticBitmap *result; | |
6916 | char *kwnames[] = { | |
6917 | NULL | |
6918 | }; | |
6919 | ||
6920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
6921 | { | |
e3b71cb8 | 6922 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6924 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
6925 | ||
6926 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6927 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6928 | } |
15afbcd0 | 6929 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
6930 | return resultobj; |
6931 | fail: | |
6932 | return NULL; | |
6933 | } | |
6934 | ||
6935 | ||
c32bde28 | 6936 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6937 | PyObject *resultobj; |
6938 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6939 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6940 | int arg3 = (int) -1 ; |
6941 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
6942 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
6943 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6944 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6945 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6946 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6947 | long arg7 = (long) 0 ; | |
6948 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
6949 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6950 | bool result; | |
6951 | wxPoint temp5 ; | |
6952 | wxSize temp6 ; | |
ae8162c8 | 6953 | bool temp8 = false ; |
d14a1e28 RD |
6954 | PyObject * obj0 = 0 ; |
6955 | PyObject * obj1 = 0 ; | |
994141e6 | 6956 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6957 | PyObject * obj3 = 0 ; |
6958 | PyObject * obj4 = 0 ; | |
6959 | PyObject * obj5 = 0 ; | |
994141e6 | 6960 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6961 | PyObject * obj7 = 0 ; |
6962 | char *kwnames[] = { | |
6963 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6964 | }; | |
6965 | ||
248ed943 | 6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
6968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6969 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6970 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6971 | if (obj2) { |
093d3ff1 RD |
6972 | { |
6973 | arg3 = (int)(SWIG_As_int(obj2)); | |
6974 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6975 | } | |
248ed943 RD |
6976 | } |
6977 | if (obj3) { | |
093d3ff1 RD |
6978 | { |
6979 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6980 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6981 | if (arg4 == NULL) { | |
6982 | SWIG_null_ref("wxBitmap"); | |
6983 | } | |
6984 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 6985 | } |
d14a1e28 RD |
6986 | } |
6987 | if (obj4) { | |
6988 | { | |
6989 | arg5 = &temp5; | |
6990 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6991 | } | |
6992 | } | |
6993 | if (obj5) { | |
6994 | { | |
6995 | arg6 = &temp6; | |
6996 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6997 | } | |
6998 | } | |
994141e6 | 6999 | if (obj6) { |
093d3ff1 RD |
7000 | { |
7001 | arg7 = (long)(SWIG_As_long(obj6)); | |
7002 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7003 | } | |
994141e6 | 7004 | } |
d14a1e28 RD |
7005 | if (obj7) { |
7006 | { | |
7007 | arg8 = wxString_in_helper(obj7); | |
7008 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7009 | temp8 = true; |
d14a1e28 RD |
7010 | } |
7011 | } | |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
4f89f6a3 RD |
7019 | { |
7020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7021 | } | |
d14a1e28 RD |
7022 | { |
7023 | if (temp8) | |
7024 | delete arg8; | |
7025 | } | |
7026 | return resultobj; | |
7027 | fail: | |
7028 | { | |
7029 | if (temp8) | |
7030 | delete arg8; | |
7031 | } | |
7032 | return NULL; | |
7033 | } | |
7034 | ||
7035 | ||
c32bde28 | 7036 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7037 | PyObject *resultobj; |
7038 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7039 | wxBitmap result; | |
7040 | PyObject * obj0 = 0 ; | |
7041 | char *kwnames[] = { | |
7042 | (char *) "self", NULL | |
7043 | }; | |
7044 | ||
7045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7048 | { |
7049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7050 | result = (arg1)->GetBitmap(); | |
7051 | ||
7052 | wxPyEndAllowThreads(__tstate); | |
7053 | if (PyErr_Occurred()) SWIG_fail; | |
7054 | } | |
7055 | { | |
7056 | wxBitmap * resultptr; | |
093d3ff1 | 7057 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 7058 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
7059 | } |
7060 | return resultobj; | |
7061 | fail: | |
7062 | return NULL; | |
7063 | } | |
7064 | ||
7065 | ||
c32bde28 | 7066 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7067 | PyObject *resultobj; |
7068 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7069 | wxBitmap *arg2 = 0 ; | |
7070 | PyObject * obj0 = 0 ; | |
7071 | PyObject * obj1 = 0 ; | |
7072 | char *kwnames[] = { | |
7073 | (char *) "self",(char *) "bitmap", NULL | |
7074 | }; | |
7075 | ||
7076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7079 | { | |
7080 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7081 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7082 | if (arg2 == NULL) { | |
7083 | SWIG_null_ref("wxBitmap"); | |
7084 | } | |
7085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7086 | } |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | Py_INCREF(Py_None); resultobj = Py_None; | |
7095 | return resultobj; | |
7096 | fail: | |
7097 | return NULL; | |
7098 | } | |
7099 | ||
7100 | ||
c32bde28 | 7101 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7102 | PyObject *resultobj; |
7103 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7104 | wxIcon *arg2 = 0 ; | |
7105 | PyObject * obj0 = 0 ; | |
7106 | PyObject * obj1 = 0 ; | |
7107 | char *kwnames[] = { | |
7108 | (char *) "self",(char *) "icon", NULL | |
7109 | }; | |
7110 | ||
7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7112 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7113 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7114 | { | |
7115 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
7116 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7117 | if (arg2 == NULL) { | |
7118 | SWIG_null_ref("wxIcon"); | |
7119 | } | |
7120 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7121 | } |
7122 | { | |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7124 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
7125 | ||
7126 | wxPyEndAllowThreads(__tstate); | |
7127 | if (PyErr_Occurred()) SWIG_fail; | |
7128 | } | |
7129 | Py_INCREF(Py_None); resultobj = Py_None; | |
7130 | return resultobj; | |
7131 | fail: | |
7132 | return NULL; | |
7133 | } | |
7134 | ||
7135 | ||
c32bde28 | 7136 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 7137 | PyObject *resultobj; |
093d3ff1 | 7138 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
7139 | wxVisualAttributes result; |
7140 | PyObject * obj0 = 0 ; | |
7141 | char *kwnames[] = { | |
7142 | (char *) "variant", NULL | |
7143 | }; | |
7144 | ||
7145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
7146 | if (obj0) { | |
093d3ff1 RD |
7147 | { |
7148 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
7149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7150 | } | |
22bfe96c RD |
7151 | } |
7152 | { | |
110da5b0 | 7153 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7155 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
7156 | ||
7157 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 7158 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
7159 | } |
7160 | { | |
7161 | wxVisualAttributes * resultptr; | |
093d3ff1 | 7162 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
7163 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
7164 | } | |
7165 | return resultobj; | |
7166 | fail: | |
7167 | return NULL; | |
7168 | } | |
7169 | ||
7170 | ||
c32bde28 | 7171 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7172 | PyObject *obj; |
7173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7174 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
7175 | Py_INCREF(obj); | |
7176 | return Py_BuildValue((char *)""); | |
7177 | } | |
c32bde28 | 7178 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
7179 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
7180 | return 1; | |
7181 | } | |
7182 | ||
7183 | ||
093d3ff1 | 7184 | static PyObject *_wrap_ListBoxNameStr_get(void) { |
b2dc1044 RD |
7185 | PyObject *pyobj; |
7186 | ||
7187 | { | |
7188 | #if wxUSE_UNICODE | |
7189 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7190 | #else | |
7191 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7192 | #endif | |
7193 | } | |
7194 | return pyobj; | |
7195 | } | |
7196 | ||
7197 | ||
c32bde28 | 7198 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7199 | PyObject *resultobj; |
7200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 7201 | int arg2 = (int) -1 ; |
d14a1e28 RD |
7202 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7203 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7204 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7205 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
7206 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
7207 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
7208 | long arg6 = (long) 0 ; | |
7209 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7210 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7211 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
7212 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
7213 | wxListBox *result; |
7214 | wxPoint temp3 ; | |
7215 | wxSize temp4 ; | |
ae8162c8 RD |
7216 | bool temp5 = false ; |
7217 | bool temp8 = false ; | |
d14a1e28 | 7218 | PyObject * obj0 = 0 ; |
994141e6 | 7219 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7220 | PyObject * obj2 = 0 ; |
7221 | PyObject * obj3 = 0 ; | |
7222 | PyObject * obj4 = 0 ; | |
994141e6 | 7223 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7224 | PyObject * obj6 = 0 ; |
7225 | PyObject * obj7 = 0 ; | |
7226 | char *kwnames[] = { | |
7227 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7228 | }; | |
7229 | ||
248ed943 | 7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
7231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 7233 | if (obj1) { |
093d3ff1 RD |
7234 | { |
7235 | arg2 = (int)(SWIG_As_int(obj1)); | |
7236 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7237 | } | |
248ed943 | 7238 | } |
d14a1e28 RD |
7239 | if (obj2) { |
7240 | { | |
7241 | arg3 = &temp3; | |
7242 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7243 | } | |
7244 | } | |
7245 | if (obj3) { | |
7246 | { | |
7247 | arg4 = &temp4; | |
7248 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7249 | } | |
7250 | } | |
7251 | if (obj4) { | |
7252 | { | |
4d5c3d91 RD |
7253 | if (! PySequence_Check(obj4)) { |
7254 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7255 | SWIG_fail; | |
7256 | } | |
7257 | arg5 = new wxArrayString; | |
ae8162c8 | 7258 | temp5 = true; |
4d5c3d91 RD |
7259 | int i, len=PySequence_Length(obj4); |
7260 | for (i=0; i<len; i++) { | |
7261 | PyObject* item = PySequence_GetItem(obj4, i); | |
7262 | #if wxUSE_UNICODE | |
7263 | PyObject* str = PyObject_Unicode(item); | |
7264 | #else | |
7265 | PyObject* str = PyObject_Str(item); | |
7266 | #endif | |
74a57fcd | 7267 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
7268 | arg5->Add(Py2wxString(str)); |
7269 | Py_DECREF(item); | |
7270 | Py_DECREF(str); | |
7271 | } | |
d14a1e28 RD |
7272 | } |
7273 | } | |
994141e6 | 7274 | if (obj5) { |
093d3ff1 RD |
7275 | { |
7276 | arg6 = (long)(SWIG_As_long(obj5)); | |
7277 | if (SWIG_arg_fail(6)) SWIG_fail; | |
7278 | } | |
994141e6 | 7279 | } |
d14a1e28 | 7280 | if (obj6) { |
093d3ff1 RD |
7281 | { |
7282 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7283 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7284 | if (arg7 == NULL) { | |
7285 | SWIG_null_ref("wxValidator"); | |
7286 | } | |
7287 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
7288 | } |
7289 | } | |
7290 | if (obj7) { | |
7291 | { | |
4d5c3d91 RD |
7292 | arg8 = wxString_in_helper(obj7); |
7293 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7294 | temp8 = true; |
d14a1e28 RD |
7295 | } |
7296 | } | |
7297 | { | |
e3b71cb8 | 7298 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 7299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 7300 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
7301 | |
7302 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7303 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7304 | } |
15afbcd0 | 7305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 7306 | { |
3adfb63b | 7307 | if (temp5) delete arg5; |
d14a1e28 RD |
7308 | } |
7309 | { | |
7310 | if (temp8) | |
4d5c3d91 | 7311 | delete arg8; |
d14a1e28 RD |
7312 | } |
7313 | return resultobj; | |
7314 | fail: | |
7315 | { | |
3adfb63b | 7316 | if (temp5) delete arg5; |
d14a1e28 RD |
7317 | } |
7318 | { | |
7319 | if (temp8) | |
4d5c3d91 | 7320 | delete arg8; |
d14a1e28 RD |
7321 | } |
7322 | return NULL; | |
7323 | } | |
7324 | ||
7325 | ||
c32bde28 | 7326 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7327 | PyObject *resultobj; |
7328 | wxListBox *result; | |
7329 | char *kwnames[] = { | |
7330 | NULL | |
7331 | }; | |
7332 | ||
7333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
7334 | { | |
e3b71cb8 | 7335 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7337 | result = (wxListBox *)new wxListBox(); | |
7338 | ||
7339 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7340 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7341 | } |
15afbcd0 | 7342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
7343 | return resultobj; |
7344 | fail: | |
7345 | return NULL; | |
7346 | } | |
7347 | ||
7348 | ||
c32bde28 | 7349 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7350 | PyObject *resultobj; |
7351 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7352 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 7353 | int arg3 = (int) -1 ; |
d14a1e28 RD |
7354 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7355 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7356 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7357 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
7358 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
7359 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7360 | long arg7 = (long) 0 ; | |
7361 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7362 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7363 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7364 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
7365 | bool result; |
7366 | wxPoint temp4 ; | |
7367 | wxSize temp5 ; | |
ae8162c8 RD |
7368 | bool temp6 = false ; |
7369 | bool temp9 = false ; | |
d14a1e28 RD |
7370 | PyObject * obj0 = 0 ; |
7371 | PyObject * obj1 = 0 ; | |
994141e6 | 7372 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7373 | PyObject * obj3 = 0 ; |
7374 | PyObject * obj4 = 0 ; | |
7375 | PyObject * obj5 = 0 ; | |
994141e6 | 7376 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7377 | PyObject * obj7 = 0 ; |
7378 | PyObject * obj8 = 0 ; | |
7379 | char *kwnames[] = { | |
7380 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7381 | }; | |
7382 | ||
248ed943 | 7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
7384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7386 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7387 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 7388 | if (obj2) { |
093d3ff1 RD |
7389 | { |
7390 | arg3 = (int)(SWIG_As_int(obj2)); | |
7391 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7392 | } | |
248ed943 | 7393 | } |
d14a1e28 RD |
7394 | if (obj3) { |
7395 | { | |
7396 | arg4 = &temp4; | |
7397 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7398 | } | |
7399 | } | |
7400 | if (obj4) { | |
7401 | { | |
7402 | arg5 = &temp5; | |
7403 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7404 | } | |
7405 | } | |
7406 | if (obj5) { | |
7407 | { | |
4d5c3d91 RD |
7408 | if (! PySequence_Check(obj5)) { |
7409 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7410 | SWIG_fail; | |
7411 | } | |
7412 | arg6 = new wxArrayString; | |
ae8162c8 | 7413 | temp6 = true; |
4d5c3d91 RD |
7414 | int i, len=PySequence_Length(obj5); |
7415 | for (i=0; i<len; i++) { | |
7416 | PyObject* item = PySequence_GetItem(obj5, i); | |
7417 | #if wxUSE_UNICODE | |
7418 | PyObject* str = PyObject_Unicode(item); | |
7419 | #else | |
7420 | PyObject* str = PyObject_Str(item); | |
7421 | #endif | |
74a57fcd | 7422 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
7423 | arg6->Add(Py2wxString(str)); |
7424 | Py_DECREF(item); | |
7425 | Py_DECREF(str); | |
7426 | } | |
d14a1e28 RD |
7427 | } |
7428 | } | |
994141e6 | 7429 | if (obj6) { |
093d3ff1 RD |
7430 | { |
7431 | arg7 = (long)(SWIG_As_long(obj6)); | |
7432 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7433 | } | |
994141e6 | 7434 | } |
d14a1e28 | 7435 | if (obj7) { |
093d3ff1 RD |
7436 | { |
7437 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7438 | if (SWIG_arg_fail(8)) SWIG_fail; | |
7439 | if (arg8 == NULL) { | |
7440 | SWIG_null_ref("wxValidator"); | |
7441 | } | |
7442 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
7443 | } |
7444 | } | |
7445 | if (obj8) { | |
7446 | { | |
4d5c3d91 RD |
7447 | arg9 = wxString_in_helper(obj8); |
7448 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 7449 | temp9 = true; |
d14a1e28 RD |
7450 | } |
7451 | } | |
7452 | { | |
7453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 7454 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
7455 | |
7456 | wxPyEndAllowThreads(__tstate); | |
7457 | if (PyErr_Occurred()) SWIG_fail; | |
7458 | } | |
4f89f6a3 RD |
7459 | { |
7460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7461 | } | |
d14a1e28 | 7462 | { |
3adfb63b | 7463 | if (temp6) delete arg6; |
d14a1e28 RD |
7464 | } |
7465 | { | |
7466 | if (temp9) | |
4d5c3d91 | 7467 | delete arg9; |
d14a1e28 RD |
7468 | } |
7469 | return resultobj; | |
7470 | fail: | |
7471 | { | |
3adfb63b | 7472 | if (temp6) delete arg6; |
d14a1e28 RD |
7473 | } |
7474 | { | |
7475 | if (temp9) | |
4d5c3d91 | 7476 | delete arg9; |
d14a1e28 RD |
7477 | } |
7478 | return NULL; | |
7479 | } | |
7480 | ||
7481 | ||
c32bde28 | 7482 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7483 | PyObject *resultobj; |
7484 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7485 | wxString *arg2 = 0 ; | |
7486 | int arg3 ; | |
7487 | PyObject *arg4 = (PyObject *) NULL ; | |
ae8162c8 | 7488 | bool temp2 = false ; |
d14a1e28 RD |
7489 | PyObject * obj0 = 0 ; |
7490 | PyObject * obj1 = 0 ; | |
994141e6 | 7491 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7492 | PyObject * obj3 = 0 ; |
7493 | char *kwnames[] = { | |
7494 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
7495 | }; | |
7496 | ||
994141e6 | 7497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
7498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7500 | { |
7501 | arg2 = wxString_in_helper(obj1); | |
7502 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7503 | temp2 = true; |
d14a1e28 | 7504 | } |
093d3ff1 RD |
7505 | { |
7506 | arg3 = (int)(SWIG_As_int(obj2)); | |
7507 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7508 | } | |
d14a1e28 RD |
7509 | if (obj3) { |
7510 | arg4 = obj3; | |
7511 | } | |
7512 | { | |
7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7514 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
7515 | ||
7516 | wxPyEndAllowThreads(__tstate); | |
7517 | if (PyErr_Occurred()) SWIG_fail; | |
7518 | } | |
7519 | Py_INCREF(Py_None); resultobj = Py_None; | |
7520 | { | |
7521 | if (temp2) | |
7522 | delete arg2; | |
7523 | } | |
7524 | return resultobj; | |
7525 | fail: | |
7526 | { | |
7527 | if (temp2) | |
7528 | delete arg2; | |
7529 | } | |
7530 | return NULL; | |
7531 | } | |
7532 | ||
7533 | ||
c32bde28 | 7534 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7535 | PyObject *resultobj; |
7536 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7537 | wxArrayString *arg2 = 0 ; | |
7538 | int arg3 ; | |
ae8162c8 | 7539 | bool temp2 = false ; |
d14a1e28 RD |
7540 | PyObject * obj0 = 0 ; |
7541 | PyObject * obj1 = 0 ; | |
994141e6 | 7542 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7543 | char *kwnames[] = { |
7544 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
7545 | }; | |
7546 | ||
994141e6 | 7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7550 | { |
7551 | if (! PySequence_Check(obj1)) { | |
7552 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7553 | SWIG_fail; | |
7554 | } | |
7555 | arg2 = new wxArrayString; | |
ae8162c8 | 7556 | temp2 = true; |
d14a1e28 RD |
7557 | int i, len=PySequence_Length(obj1); |
7558 | for (i=0; i<len; i++) { | |
7559 | PyObject* item = PySequence_GetItem(obj1, i); | |
7560 | #if wxUSE_UNICODE | |
7561 | PyObject* str = PyObject_Unicode(item); | |
7562 | #else | |
7563 | PyObject* str = PyObject_Str(item); | |
7564 | #endif | |
74a57fcd | 7565 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7566 | arg2->Add(Py2wxString(str)); |
7567 | Py_DECREF(item); | |
7568 | Py_DECREF(str); | |
7569 | } | |
7570 | } | |
093d3ff1 RD |
7571 | { |
7572 | arg3 = (int)(SWIG_As_int(obj2)); | |
7573 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7574 | } | |
d14a1e28 RD |
7575 | { |
7576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7577 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
7578 | ||
7579 | wxPyEndAllowThreads(__tstate); | |
7580 | if (PyErr_Occurred()) SWIG_fail; | |
7581 | } | |
7582 | Py_INCREF(Py_None); resultobj = Py_None; | |
7583 | { | |
3adfb63b | 7584 | if (temp2) delete arg2; |
d14a1e28 RD |
7585 | } |
7586 | return resultobj; | |
7587 | fail: | |
7588 | { | |
3adfb63b | 7589 | if (temp2) delete arg2; |
d14a1e28 RD |
7590 | } |
7591 | return NULL; | |
7592 | } | |
7593 | ||
7594 | ||
c32bde28 | 7595 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7596 | PyObject *resultobj; |
7597 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7598 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 7599 | bool temp2 = false ; |
d14a1e28 RD |
7600 | PyObject * obj0 = 0 ; |
7601 | PyObject * obj1 = 0 ; | |
7602 | char *kwnames[] = { | |
7603 | (char *) "self",(char *) "items", NULL | |
7604 | }; | |
7605 | ||
7606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7609 | { |
7610 | if (! PySequence_Check(obj1)) { | |
7611 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7612 | SWIG_fail; | |
7613 | } | |
7614 | arg2 = new wxArrayString; | |
ae8162c8 | 7615 | temp2 = true; |
d14a1e28 RD |
7616 | int i, len=PySequence_Length(obj1); |
7617 | for (i=0; i<len; i++) { | |
7618 | PyObject* item = PySequence_GetItem(obj1, i); | |
7619 | #if wxUSE_UNICODE | |
7620 | PyObject* str = PyObject_Unicode(item); | |
7621 | #else | |
7622 | PyObject* str = PyObject_Str(item); | |
7623 | #endif | |
74a57fcd | 7624 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7625 | arg2->Add(Py2wxString(str)); |
7626 | Py_DECREF(item); | |
7627 | Py_DECREF(str); | |
7628 | } | |
7629 | } | |
7630 | { | |
7631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7632 | (arg1)->Set((wxArrayString const &)*arg2); | |
7633 | ||
7634 | wxPyEndAllowThreads(__tstate); | |
7635 | if (PyErr_Occurred()) SWIG_fail; | |
7636 | } | |
7637 | Py_INCREF(Py_None); resultobj = Py_None; | |
7638 | { | |
3adfb63b | 7639 | if (temp2) delete arg2; |
d14a1e28 RD |
7640 | } |
7641 | return resultobj; | |
7642 | fail: | |
7643 | { | |
3adfb63b | 7644 | if (temp2) delete arg2; |
d14a1e28 RD |
7645 | } |
7646 | return NULL; | |
7647 | } | |
7648 | ||
7649 | ||
c32bde28 | 7650 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7651 | PyObject *resultobj; |
7652 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7653 | int arg2 ; | |
7654 | bool result; | |
7655 | PyObject * obj0 = 0 ; | |
994141e6 | 7656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7657 | char *kwnames[] = { |
7658 | (char *) "self",(char *) "n", NULL | |
7659 | }; | |
7660 | ||
994141e6 | 7661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7664 | { | |
7665 | arg2 = (int)(SWIG_As_int(obj1)); | |
7666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7667 | } | |
d14a1e28 RD |
7668 | { |
7669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7670 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
7671 | ||
7672 | wxPyEndAllowThreads(__tstate); | |
7673 | if (PyErr_Occurred()) SWIG_fail; | |
7674 | } | |
4f89f6a3 RD |
7675 | { |
7676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7677 | } | |
d14a1e28 RD |
7678 | return resultobj; |
7679 | fail: | |
7680 | return NULL; | |
7681 | } | |
7682 | ||
7683 | ||
c32bde28 | 7684 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7685 | PyObject *resultobj; |
7686 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7687 | int arg2 ; | |
ae8162c8 | 7688 | bool arg3 = (bool) true ; |
d14a1e28 | 7689 | PyObject * obj0 = 0 ; |
994141e6 | 7690 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7691 | PyObject * obj2 = 0 ; |
7692 | char *kwnames[] = { | |
7693 | (char *) "self",(char *) "n",(char *) "select", NULL | |
7694 | }; | |
7695 | ||
994141e6 | 7696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7699 | { | |
7700 | arg2 = (int)(SWIG_As_int(obj1)); | |
7701 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7702 | } | |
d14a1e28 | 7703 | if (obj2) { |
093d3ff1 RD |
7704 | { |
7705 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7706 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7707 | } | |
d14a1e28 RD |
7708 | } |
7709 | { | |
7710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7711 | (arg1)->SetSelection(arg2,arg3); | |
7712 | ||
7713 | wxPyEndAllowThreads(__tstate); | |
7714 | if (PyErr_Occurred()) SWIG_fail; | |
7715 | } | |
7716 | Py_INCREF(Py_None); resultobj = Py_None; | |
7717 | return resultobj; | |
7718 | fail: | |
7719 | return NULL; | |
7720 | } | |
7721 | ||
7722 | ||
c32bde28 | 7723 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7724 | PyObject *resultobj; |
7725 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7726 | int arg2 ; | |
7727 | PyObject * obj0 = 0 ; | |
994141e6 | 7728 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7729 | char *kwnames[] = { |
7730 | (char *) "self",(char *) "n", NULL | |
7731 | }; | |
7732 | ||
994141e6 | 7733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7734 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7735 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7736 | { | |
7737 | arg2 = (int)(SWIG_As_int(obj1)); | |
7738 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7739 | } | |
d14a1e28 RD |
7740 | { |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | (arg1)->Select(arg2); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
7747 | Py_INCREF(Py_None); resultobj = Py_None; | |
7748 | return resultobj; | |
7749 | fail: | |
7750 | return NULL; | |
7751 | } | |
7752 | ||
7753 | ||
c32bde28 | 7754 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7755 | PyObject *resultobj; |
7756 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7757 | int arg2 ; | |
7758 | PyObject * obj0 = 0 ; | |
994141e6 | 7759 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7760 | char *kwnames[] = { |
7761 | (char *) "self",(char *) "n", NULL | |
7762 | }; | |
7763 | ||
994141e6 | 7764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7767 | { | |
7768 | arg2 = (int)(SWIG_As_int(obj1)); | |
7769 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7770 | } | |
d14a1e28 RD |
7771 | { |
7772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7773 | (arg1)->Deselect(arg2); | |
7774 | ||
7775 | wxPyEndAllowThreads(__tstate); | |
7776 | if (PyErr_Occurred()) SWIG_fail; | |
7777 | } | |
7778 | Py_INCREF(Py_None); resultobj = Py_None; | |
7779 | return resultobj; | |
7780 | fail: | |
7781 | return NULL; | |
7782 | } | |
7783 | ||
7784 | ||
c32bde28 | 7785 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7786 | PyObject *resultobj; |
7787 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7788 | int arg2 = (int) -1 ; | |
7789 | PyObject * obj0 = 0 ; | |
994141e6 | 7790 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7791 | char *kwnames[] = { |
7792 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
7793 | }; | |
7794 | ||
994141e6 | 7795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7798 | if (obj1) { |
093d3ff1 RD |
7799 | { |
7800 | arg2 = (int)(SWIG_As_int(obj1)); | |
7801 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7802 | } | |
994141e6 | 7803 | } |
d14a1e28 RD |
7804 | { |
7805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7806 | (arg1)->DeselectAll(arg2); | |
7807 | ||
7808 | wxPyEndAllowThreads(__tstate); | |
7809 | if (PyErr_Occurred()) SWIG_fail; | |
7810 | } | |
7811 | Py_INCREF(Py_None); resultobj = Py_None; | |
7812 | return resultobj; | |
7813 | fail: | |
7814 | return NULL; | |
7815 | } | |
7816 | ||
7817 | ||
c32bde28 | 7818 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7819 | PyObject *resultobj; |
7820 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7821 | wxString *arg2 = 0 ; | |
ae8162c8 | 7822 | bool arg3 = (bool) true ; |
d14a1e28 | 7823 | bool result; |
ae8162c8 | 7824 | bool temp2 = false ; |
d14a1e28 RD |
7825 | PyObject * obj0 = 0 ; |
7826 | PyObject * obj1 = 0 ; | |
7827 | PyObject * obj2 = 0 ; | |
7828 | char *kwnames[] = { | |
7829 | (char *) "self",(char *) "s",(char *) "select", NULL | |
7830 | }; | |
7831 | ||
7832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7835 | { |
7836 | arg2 = wxString_in_helper(obj1); | |
7837 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7838 | temp2 = true; |
d14a1e28 RD |
7839 | } |
7840 | if (obj2) { | |
093d3ff1 RD |
7841 | { |
7842 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7843 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7844 | } | |
d14a1e28 RD |
7845 | } |
7846 | { | |
7847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7848 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
7849 | ||
7850 | wxPyEndAllowThreads(__tstate); | |
7851 | if (PyErr_Occurred()) SWIG_fail; | |
7852 | } | |
4f89f6a3 RD |
7853 | { |
7854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7855 | } | |
d14a1e28 RD |
7856 | { |
7857 | if (temp2) | |
7858 | delete arg2; | |
7859 | } | |
7860 | return resultobj; | |
7861 | fail: | |
7862 | { | |
7863 | if (temp2) | |
7864 | delete arg2; | |
7865 | } | |
7866 | return NULL; | |
7867 | } | |
7868 | ||
7869 | ||
c32bde28 | 7870 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7871 | PyObject *resultobj; |
7872 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7873 | PyObject *result; | |
7874 | PyObject * obj0 = 0 ; | |
7875 | char *kwnames[] = { | |
7876 | (char *) "self", NULL | |
7877 | }; | |
7878 | ||
7879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7880 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7881 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7882 | { |
7883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7884 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
7885 | ||
7886 | wxPyEndAllowThreads(__tstate); | |
7887 | if (PyErr_Occurred()) SWIG_fail; | |
7888 | } | |
7889 | resultobj = result; | |
7890 | return resultobj; | |
7891 | fail: | |
7892 | return NULL; | |
7893 | } | |
7894 | ||
7895 | ||
c32bde28 | 7896 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7897 | PyObject *resultobj; |
7898 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7899 | int arg2 ; | |
7900 | PyObject * obj0 = 0 ; | |
994141e6 | 7901 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7902 | char *kwnames[] = { |
7903 | (char *) "self",(char *) "n", NULL | |
7904 | }; | |
7905 | ||
994141e6 | 7906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7909 | { | |
7910 | arg2 = (int)(SWIG_As_int(obj1)); | |
7911 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7912 | } | |
d14a1e28 RD |
7913 | { |
7914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7915 | (arg1)->SetFirstItem(arg2); | |
7916 | ||
7917 | wxPyEndAllowThreads(__tstate); | |
7918 | if (PyErr_Occurred()) SWIG_fail; | |
7919 | } | |
7920 | Py_INCREF(Py_None); resultobj = Py_None; | |
7921 | return resultobj; | |
7922 | fail: | |
7923 | return NULL; | |
7924 | } | |
7925 | ||
7926 | ||
c32bde28 | 7927 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7928 | PyObject *resultobj; |
7929 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7930 | wxString *arg2 = 0 ; | |
ae8162c8 | 7931 | bool temp2 = false ; |
d14a1e28 RD |
7932 | PyObject * obj0 = 0 ; |
7933 | PyObject * obj1 = 0 ; | |
7934 | char *kwnames[] = { | |
7935 | (char *) "self",(char *) "s", NULL | |
7936 | }; | |
7937 | ||
7938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7941 | { |
7942 | arg2 = wxString_in_helper(obj1); | |
7943 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7944 | temp2 = true; |
d14a1e28 RD |
7945 | } |
7946 | { | |
7947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7948 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
7949 | ||
7950 | wxPyEndAllowThreads(__tstate); | |
7951 | if (PyErr_Occurred()) SWIG_fail; | |
7952 | } | |
7953 | Py_INCREF(Py_None); resultobj = Py_None; | |
7954 | { | |
7955 | if (temp2) | |
7956 | delete arg2; | |
7957 | } | |
7958 | return resultobj; | |
7959 | fail: | |
7960 | { | |
7961 | if (temp2) | |
7962 | delete arg2; | |
7963 | } | |
7964 | return NULL; | |
7965 | } | |
7966 | ||
7967 | ||
c32bde28 | 7968 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7969 | PyObject *resultobj; |
7970 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7971 | int arg2 ; | |
7972 | PyObject * obj0 = 0 ; | |
994141e6 | 7973 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7974 | char *kwnames[] = { |
7975 | (char *) "self",(char *) "n", NULL | |
7976 | }; | |
7977 | ||
994141e6 | 7978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7981 | { | |
7982 | arg2 = (int)(SWIG_As_int(obj1)); | |
7983 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7984 | } | |
d14a1e28 RD |
7985 | { |
7986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7987 | (arg1)->EnsureVisible(arg2); | |
7988 | ||
7989 | wxPyEndAllowThreads(__tstate); | |
7990 | if (PyErr_Occurred()) SWIG_fail; | |
7991 | } | |
7992 | Py_INCREF(Py_None); resultobj = Py_None; | |
7993 | return resultobj; | |
7994 | fail: | |
7995 | return NULL; | |
7996 | } | |
7997 | ||
7998 | ||
c32bde28 | 7999 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8000 | PyObject *resultobj; |
8001 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8002 | wxString *arg2 = 0 ; | |
ae8162c8 | 8003 | bool temp2 = false ; |
d14a1e28 RD |
8004 | PyObject * obj0 = 0 ; |
8005 | PyObject * obj1 = 0 ; | |
8006 | char *kwnames[] = { | |
8007 | (char *) "self",(char *) "s", NULL | |
8008 | }; | |
8009 | ||
8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8013 | { |
8014 | arg2 = wxString_in_helper(obj1); | |
8015 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8016 | temp2 = true; |
d14a1e28 RD |
8017 | } |
8018 | { | |
8019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8020 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
8021 | ||
8022 | wxPyEndAllowThreads(__tstate); | |
8023 | if (PyErr_Occurred()) SWIG_fail; | |
8024 | } | |
8025 | Py_INCREF(Py_None); resultobj = Py_None; | |
8026 | { | |
8027 | if (temp2) | |
8028 | delete arg2; | |
8029 | } | |
8030 | return resultobj; | |
8031 | fail: | |
8032 | { | |
8033 | if (temp2) | |
8034 | delete arg2; | |
8035 | } | |
8036 | return NULL; | |
8037 | } | |
8038 | ||
8039 | ||
c32bde28 | 8040 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8041 | PyObject *resultobj; |
8042 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8043 | bool result; | |
8044 | PyObject * obj0 = 0 ; | |
8045 | char *kwnames[] = { | |
8046 | (char *) "self", NULL | |
8047 | }; | |
8048 | ||
8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8050 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8051 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8052 | { |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
8055 | ||
8056 | wxPyEndAllowThreads(__tstate); | |
8057 | if (PyErr_Occurred()) SWIG_fail; | |
8058 | } | |
4f89f6a3 RD |
8059 | { |
8060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8061 | } | |
d14a1e28 RD |
8062 | return resultobj; |
8063 | fail: | |
8064 | return NULL; | |
8065 | } | |
8066 | ||
8067 | ||
c32bde28 | 8068 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
8069 | PyObject *resultobj; |
8070 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8071 | int arg2 ; | |
8072 | wxColour *arg3 = 0 ; | |
8073 | wxColour temp3 ; | |
8074 | PyObject * obj0 = 0 ; | |
8075 | PyObject * obj1 = 0 ; | |
8076 | PyObject * obj2 = 0 ; | |
8077 | char *kwnames[] = { | |
8078 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8079 | }; | |
8080 | ||
8081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8084 | { | |
8085 | arg2 = (int)(SWIG_As_int(obj1)); | |
8086 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8087 | } | |
c3eb6258 RD |
8088 | { |
8089 | arg3 = &temp3; | |
8090 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8091 | } | |
8092 | { | |
8093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8094 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8095 | ||
8096 | wxPyEndAllowThreads(__tstate); | |
8097 | if (PyErr_Occurred()) SWIG_fail; | |
8098 | } | |
8099 | Py_INCREF(Py_None); resultobj = Py_None; | |
8100 | return resultobj; | |
8101 | fail: | |
8102 | return NULL; | |
8103 | } | |
8104 | ||
8105 | ||
c32bde28 | 8106 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
8107 | PyObject *resultobj; |
8108 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8109 | int arg2 ; | |
8110 | wxColour *arg3 = 0 ; | |
8111 | wxColour temp3 ; | |
8112 | PyObject * obj0 = 0 ; | |
8113 | PyObject * obj1 = 0 ; | |
8114 | PyObject * obj2 = 0 ; | |
8115 | char *kwnames[] = { | |
8116 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8117 | }; | |
8118 | ||
8119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8122 | { | |
8123 | arg2 = (int)(SWIG_As_int(obj1)); | |
8124 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8125 | } | |
c3eb6258 RD |
8126 | { |
8127 | arg3 = &temp3; | |
8128 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8129 | } | |
8130 | { | |
8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8132 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8133 | ||
8134 | wxPyEndAllowThreads(__tstate); | |
8135 | if (PyErr_Occurred()) SWIG_fail; | |
8136 | } | |
8137 | Py_INCREF(Py_None); resultobj = Py_None; | |
8138 | return resultobj; | |
8139 | fail: | |
8140 | return NULL; | |
8141 | } | |
8142 | ||
8143 | ||
c32bde28 | 8144 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
8145 | PyObject *resultobj; |
8146 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8147 | int arg2 ; | |
8148 | wxFont *arg3 = 0 ; | |
8149 | PyObject * obj0 = 0 ; | |
8150 | PyObject * obj1 = 0 ; | |
8151 | PyObject * obj2 = 0 ; | |
8152 | char *kwnames[] = { | |
8153 | (char *) "self",(char *) "item",(char *) "f", NULL | |
8154 | }; | |
8155 | ||
8156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8159 | { | |
8160 | arg2 = (int)(SWIG_As_int(obj1)); | |
8161 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8162 | } | |
8163 | { | |
8164 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8165 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8166 | if (arg3 == NULL) { | |
8167 | SWIG_null_ref("wxFont"); | |
8168 | } | |
8169 | if (SWIG_arg_fail(3)) SWIG_fail; | |
c3eb6258 RD |
8170 | } |
8171 | { | |
8172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8173 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
8174 | ||
8175 | wxPyEndAllowThreads(__tstate); | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | } | |
8178 | Py_INCREF(Py_None); resultobj = Py_None; | |
8179 | return resultobj; | |
8180 | fail: | |
8181 | return NULL; | |
8182 | } | |
8183 | ||
8184 | ||
c32bde28 | 8185 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd | 8186 | PyObject *resultobj; |
093d3ff1 | 8187 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
8188 | wxVisualAttributes result; |
8189 | PyObject * obj0 = 0 ; | |
8190 | char *kwnames[] = { | |
8191 | (char *) "variant", NULL | |
8192 | }; | |
8193 | ||
8194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
8195 | if (obj0) { | |
093d3ff1 RD |
8196 | { |
8197 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
8198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8199 | } | |
74a57fcd RD |
8200 | } |
8201 | { | |
110da5b0 | 8202 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
8203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8204 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
8205 | ||
8206 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 8207 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
8208 | } |
8209 | { | |
8210 | wxVisualAttributes * resultptr; | |
093d3ff1 | 8211 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
8212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
8213 | } | |
8214 | return resultobj; | |
8215 | fail: | |
8216 | return NULL; | |
8217 | } | |
8218 | ||
8219 | ||
c32bde28 | 8220 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8221 | PyObject *obj; |
8222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8223 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
8224 | Py_INCREF(obj); | |
8225 | return Py_BuildValue((char *)""); | |
8226 | } | |
c32bde28 | 8227 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8228 | PyObject *resultobj; |
8229 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8230 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8231 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8232 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8233 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8234 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
8235 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
8236 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8237 | long arg6 = (long) 0 ; | |
8238 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8239 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8240 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8241 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
8242 | wxCheckListBox *result; |
8243 | wxPoint temp3 ; | |
8244 | wxSize temp4 ; | |
ae8162c8 RD |
8245 | bool temp5 = false ; |
8246 | bool temp8 = false ; | |
d14a1e28 | 8247 | PyObject * obj0 = 0 ; |
994141e6 | 8248 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8249 | PyObject * obj2 = 0 ; |
8250 | PyObject * obj3 = 0 ; | |
8251 | PyObject * obj4 = 0 ; | |
994141e6 | 8252 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8253 | PyObject * obj6 = 0 ; |
8254 | PyObject * obj7 = 0 ; | |
8255 | char *kwnames[] = { | |
8256 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8257 | }; | |
8258 | ||
248ed943 | 8259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
8260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 8262 | if (obj1) { |
093d3ff1 RD |
8263 | { |
8264 | arg2 = (int)(SWIG_As_int(obj1)); | |
8265 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8266 | } | |
248ed943 | 8267 | } |
d14a1e28 RD |
8268 | if (obj2) { |
8269 | { | |
8270 | arg3 = &temp3; | |
8271 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8272 | } | |
8273 | } | |
8274 | if (obj3) { | |
8275 | { | |
8276 | arg4 = &temp4; | |
8277 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8278 | } | |
8279 | } | |
8280 | if (obj4) { | |
8281 | { | |
4d5c3d91 RD |
8282 | if (! PySequence_Check(obj4)) { |
8283 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8284 | SWIG_fail; | |
8285 | } | |
8286 | arg5 = new wxArrayString; | |
ae8162c8 | 8287 | temp5 = true; |
4d5c3d91 RD |
8288 | int i, len=PySequence_Length(obj4); |
8289 | for (i=0; i<len; i++) { | |
8290 | PyObject* item = PySequence_GetItem(obj4, i); | |
8291 | #if wxUSE_UNICODE | |
8292 | PyObject* str = PyObject_Unicode(item); | |
8293 | #else | |
8294 | PyObject* str = PyObject_Str(item); | |
8295 | #endif | |
74a57fcd | 8296 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
8297 | arg5->Add(Py2wxString(str)); |
8298 | Py_DECREF(item); | |
8299 | Py_DECREF(str); | |
8300 | } | |
d14a1e28 RD |
8301 | } |
8302 | } | |
994141e6 | 8303 | if (obj5) { |
093d3ff1 RD |
8304 | { |
8305 | arg6 = (long)(SWIG_As_long(obj5)); | |
8306 | if (SWIG_arg_fail(6)) SWIG_fail; | |
8307 | } | |
994141e6 | 8308 | } |
d14a1e28 | 8309 | if (obj6) { |
093d3ff1 RD |
8310 | { |
8311 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8312 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8313 | if (arg7 == NULL) { | |
8314 | SWIG_null_ref("wxValidator"); | |
8315 | } | |
8316 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
8317 | } |
8318 | } | |
8319 | if (obj7) { | |
8320 | { | |
4d5c3d91 RD |
8321 | arg8 = wxString_in_helper(obj7); |
8322 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 8323 | temp8 = true; |
d14a1e28 RD |
8324 | } |
8325 | } | |
8326 | { | |
e3b71cb8 | 8327 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 8328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 8329 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
8330 | |
8331 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8332 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8333 | } |
15afbcd0 | 8334 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 8335 | { |
3adfb63b | 8336 | if (temp5) delete arg5; |
d14a1e28 RD |
8337 | } |
8338 | { | |
8339 | if (temp8) | |
4d5c3d91 | 8340 | delete arg8; |
d14a1e28 RD |
8341 | } |
8342 | return resultobj; | |
8343 | fail: | |
8344 | { | |
3adfb63b | 8345 | if (temp5) delete arg5; |
d14a1e28 RD |
8346 | } |
8347 | { | |
8348 | if (temp8) | |
4d5c3d91 | 8349 | delete arg8; |
d14a1e28 RD |
8350 | } |
8351 | return NULL; | |
8352 | } | |
8353 | ||
8354 | ||
c32bde28 | 8355 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8356 | PyObject *resultobj; |
8357 | wxCheckListBox *result; | |
8358 | char *kwnames[] = { | |
8359 | NULL | |
8360 | }; | |
8361 | ||
8362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
8363 | { | |
e3b71cb8 | 8364 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8366 | result = (wxCheckListBox *)new wxCheckListBox(); | |
8367 | ||
8368 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8369 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8370 | } |
15afbcd0 | 8371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
8372 | return resultobj; |
8373 | fail: | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
c32bde28 | 8378 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8379 | PyObject *resultobj; |
8380 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8381 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8382 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8383 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8384 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8385 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8386 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
8387 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
8388 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8389 | long arg7 = (long) 0 ; | |
8390 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8391 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8392 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8393 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
8394 | bool result; |
8395 | wxPoint temp4 ; | |
8396 | wxSize temp5 ; | |
ae8162c8 RD |
8397 | bool temp6 = false ; |
8398 | bool temp9 = false ; | |
d14a1e28 RD |
8399 | PyObject * obj0 = 0 ; |
8400 | PyObject * obj1 = 0 ; | |
994141e6 | 8401 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8402 | PyObject * obj3 = 0 ; |
8403 | PyObject * obj4 = 0 ; | |
8404 | PyObject * obj5 = 0 ; | |
994141e6 | 8405 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8406 | PyObject * obj7 = 0 ; |
8407 | PyObject * obj8 = 0 ; | |
8408 | char *kwnames[] = { | |
8409 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8410 | }; | |
8411 | ||
248ed943 | 8412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
8413 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8414 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8415 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8416 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 8417 | if (obj2) { |
093d3ff1 RD |
8418 | { |
8419 | arg3 = (int)(SWIG_As_int(obj2)); | |
8420 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8421 | } | |
248ed943 | 8422 | } |
d14a1e28 RD |
8423 | if (obj3) { |
8424 | { | |
8425 | arg4 = &temp4; | |
8426 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8427 | } | |
8428 | } | |
8429 | if (obj4) { | |
8430 | { | |
8431 | arg5 = &temp5; | |
8432 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8433 | } | |
8434 | } | |
8435 | if (obj5) { | |
8436 | { | |
4d5c3d91 RD |
8437 | if (! PySequence_Check(obj5)) { |
8438 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8439 | SWIG_fail; | |
8440 | } | |
8441 | arg6 = new wxArrayString; | |
ae8162c8 | 8442 | temp6 = true; |
4d5c3d91 RD |
8443 | int i, len=PySequence_Length(obj5); |
8444 | for (i=0; i<len; i++) { | |
8445 | PyObject* item = PySequence_GetItem(obj5, i); | |
8446 | #if wxUSE_UNICODE | |
8447 | PyObject* str = PyObject_Unicode(item); | |
8448 | #else | |
8449 | PyObject* str = PyObject_Str(item); | |
8450 | #endif | |
74a57fcd | 8451 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
8452 | arg6->Add(Py2wxString(str)); |
8453 | Py_DECREF(item); | |
8454 | Py_DECREF(str); | |
8455 | } | |
d14a1e28 RD |
8456 | } |
8457 | } | |
994141e6 | 8458 | if (obj6) { |
093d3ff1 RD |
8459 | { |
8460 | arg7 = (long)(SWIG_As_long(obj6)); | |
8461 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8462 | } | |
994141e6 | 8463 | } |
d14a1e28 | 8464 | if (obj7) { |
093d3ff1 RD |
8465 | { |
8466 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8467 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8468 | if (arg8 == NULL) { | |
8469 | SWIG_null_ref("wxValidator"); | |
8470 | } | |
8471 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
8472 | } |
8473 | } | |
8474 | if (obj8) { | |
8475 | { | |
4d5c3d91 RD |
8476 | arg9 = wxString_in_helper(obj8); |
8477 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 8478 | temp9 = true; |
d14a1e28 RD |
8479 | } |
8480 | } | |
8481 | { | |
8482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 8483 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
8484 | |
8485 | wxPyEndAllowThreads(__tstate); | |
8486 | if (PyErr_Occurred()) SWIG_fail; | |
8487 | } | |
4f89f6a3 RD |
8488 | { |
8489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8490 | } | |
d14a1e28 | 8491 | { |
3adfb63b | 8492 | if (temp6) delete arg6; |
d14a1e28 RD |
8493 | } |
8494 | { | |
8495 | if (temp9) | |
4d5c3d91 | 8496 | delete arg9; |
d14a1e28 RD |
8497 | } |
8498 | return resultobj; | |
8499 | fail: | |
8500 | { | |
3adfb63b | 8501 | if (temp6) delete arg6; |
d14a1e28 RD |
8502 | } |
8503 | { | |
8504 | if (temp9) | |
4d5c3d91 | 8505 | delete arg9; |
d14a1e28 RD |
8506 | } |
8507 | return NULL; | |
8508 | } | |
8509 | ||
8510 | ||
c32bde28 | 8511 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8512 | PyObject *resultobj; |
8513 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8514 | int arg2 ; | |
8515 | bool result; | |
8516 | PyObject * obj0 = 0 ; | |
994141e6 | 8517 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8518 | char *kwnames[] = { |
8519 | (char *) "self",(char *) "index", NULL | |
8520 | }; | |
8521 | ||
994141e6 | 8522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8523 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8524 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8525 | { | |
8526 | arg2 = (int)(SWIG_As_int(obj1)); | |
8527 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8528 | } | |
d14a1e28 RD |
8529 | { |
8530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8531 | result = (bool)(arg1)->IsChecked(arg2); | |
8532 | ||
8533 | wxPyEndAllowThreads(__tstate); | |
8534 | if (PyErr_Occurred()) SWIG_fail; | |
8535 | } | |
4f89f6a3 RD |
8536 | { |
8537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8538 | } | |
d14a1e28 RD |
8539 | return resultobj; |
8540 | fail: | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
c32bde28 | 8545 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8546 | PyObject *resultobj; |
8547 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8548 | int arg2 ; | |
ae8162c8 | 8549 | int arg3 = (int) true ; |
d14a1e28 | 8550 | PyObject * obj0 = 0 ; |
994141e6 RD |
8551 | PyObject * obj1 = 0 ; |
8552 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8553 | char *kwnames[] = { |
8554 | (char *) "self",(char *) "index",(char *) "check", NULL | |
8555 | }; | |
8556 | ||
994141e6 | 8557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8560 | { | |
8561 | arg2 = (int)(SWIG_As_int(obj1)); | |
8562 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8563 | } | |
994141e6 | 8564 | if (obj2) { |
093d3ff1 RD |
8565 | { |
8566 | arg3 = (int)(SWIG_As_int(obj2)); | |
8567 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8568 | } | |
994141e6 | 8569 | } |
d14a1e28 RD |
8570 | { |
8571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8572 | (arg1)->Check(arg2,arg3); | |
8573 | ||
8574 | wxPyEndAllowThreads(__tstate); | |
8575 | if (PyErr_Occurred()) SWIG_fail; | |
8576 | } | |
8577 | Py_INCREF(Py_None); resultobj = Py_None; | |
8578 | return resultobj; | |
8579 | fail: | |
8580 | return NULL; | |
8581 | } | |
8582 | ||
8583 | ||
c32bde28 | 8584 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8585 | PyObject *resultobj; |
8586 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8587 | int result; | |
8588 | PyObject * obj0 = 0 ; | |
8589 | char *kwnames[] = { | |
8590 | (char *) "self", NULL | |
8591 | }; | |
8592 | ||
8593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8596 | { |
8597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8598 | result = (int)(arg1)->GetItemHeight(); | |
8599 | ||
8600 | wxPyEndAllowThreads(__tstate); | |
8601 | if (PyErr_Occurred()) SWIG_fail; | |
8602 | } | |
093d3ff1 RD |
8603 | { |
8604 | resultobj = SWIG_From_int((int)(result)); | |
8605 | } | |
d14a1e28 RD |
8606 | return resultobj; |
8607 | fail: | |
8608 | return NULL; | |
8609 | } | |
8610 | ||
8611 | ||
c32bde28 | 8612 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8613 | PyObject *resultobj; |
8614 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8615 | wxPoint *arg2 = 0 ; | |
8616 | int result; | |
8617 | wxPoint temp2 ; | |
8618 | PyObject * obj0 = 0 ; | |
8619 | PyObject * obj1 = 0 ; | |
8620 | char *kwnames[] = { | |
8621 | (char *) "self",(char *) "pt", NULL | |
8622 | }; | |
8623 | ||
8624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8627 | { |
8628 | arg2 = &temp2; | |
8629 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8630 | } | |
8631 | { | |
8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8633 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
8634 | ||
8635 | wxPyEndAllowThreads(__tstate); | |
8636 | if (PyErr_Occurred()) SWIG_fail; | |
8637 | } | |
093d3ff1 RD |
8638 | { |
8639 | resultobj = SWIG_From_int((int)(result)); | |
8640 | } | |
d14a1e28 RD |
8641 | return resultobj; |
8642 | fail: | |
8643 | return NULL; | |
8644 | } | |
8645 | ||
8646 | ||
c32bde28 | 8647 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8648 | PyObject *resultobj; |
8649 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
8650 | int arg2 ; |
8651 | int arg3 ; | |
d14a1e28 RD |
8652 | int result; |
8653 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8654 | PyObject * obj1 = 0 ; |
8655 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8656 | char *kwnames[] = { |
8657 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8658 | }; | |
8659 | ||
994141e6 | 8660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8663 | { | |
8664 | arg2 = (int)(SWIG_As_int(obj1)); | |
8665 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8666 | } | |
8667 | { | |
8668 | arg3 = (int)(SWIG_As_int(obj2)); | |
8669 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8670 | } | |
d14a1e28 RD |
8671 | { |
8672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8673 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
8674 | ||
8675 | wxPyEndAllowThreads(__tstate); | |
8676 | if (PyErr_Occurred()) SWIG_fail; | |
8677 | } | |
093d3ff1 RD |
8678 | { |
8679 | resultobj = SWIG_From_int((int)(result)); | |
8680 | } | |
d14a1e28 RD |
8681 | return resultobj; |
8682 | fail: | |
8683 | return NULL; | |
8684 | } | |
8685 | ||
8686 | ||
c32bde28 | 8687 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8688 | PyObject *obj; |
8689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8690 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
8691 | Py_INCREF(obj); | |
8692 | return Py_BuildValue((char *)""); | |
8693 | } | |
c32bde28 | 8694 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
8695 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
8696 | return 1; | |
8697 | } | |
8698 | ||
8699 | ||
093d3ff1 | 8700 | static PyObject *_wrap_TextCtrlNameStr_get(void) { |
b2dc1044 RD |
8701 | PyObject *pyobj; |
8702 | ||
8703 | { | |
8704 | #if wxUSE_UNICODE | |
8705 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8706 | #else | |
8707 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8708 | #endif | |
8709 | } | |
8710 | return pyobj; | |
8711 | } | |
8712 | ||
8713 | ||
c32bde28 | 8714 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8715 | PyObject *resultobj; |
908b74cd RD |
8716 | wxColour const &arg1_defvalue = wxNullColour ; |
8717 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
8718 | wxColour const &arg2_defvalue = wxNullColour ; |
8719 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8720 | wxFont const &arg3_defvalue = wxNullFont ; | |
8721 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
093d3ff1 | 8722 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; |
d14a1e28 RD |
8723 | wxTextAttr *result; |
8724 | wxColour temp1 ; | |
8725 | wxColour temp2 ; | |
8726 | PyObject * obj0 = 0 ; | |
8727 | PyObject * obj1 = 0 ; | |
8728 | PyObject * obj2 = 0 ; | |
994141e6 | 8729 | PyObject * obj3 = 0 ; |
908b74cd RD |
8730 | char *kwnames[] = { |
8731 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
8732 | }; | |
d14a1e28 | 8733 | |
908b74cd RD |
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8735 | if (obj0) { | |
8736 | { | |
8737 | arg1 = &temp1; | |
8738 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
8739 | } | |
d14a1e28 RD |
8740 | } |
8741 | if (obj1) { | |
8742 | { | |
8743 | arg2 = &temp2; | |
8744 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8745 | } | |
8746 | } | |
8747 | if (obj2) { | |
093d3ff1 RD |
8748 | { |
8749 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8750 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8751 | if (arg3 == NULL) { | |
8752 | SWIG_null_ref("wxFont"); | |
8753 | } | |
8754 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
8755 | } |
8756 | } | |
994141e6 | 8757 | if (obj3) { |
093d3ff1 RD |
8758 | { |
8759 | arg4 = (wxTextAttrAlignment)(SWIG_As_int(obj3)); | |
8760 | if (SWIG_arg_fail(4)) SWIG_fail; | |
8761 | } | |
994141e6 | 8762 | } |
d14a1e28 RD |
8763 | { |
8764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8765 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
8766 | ||
8767 | wxPyEndAllowThreads(__tstate); | |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
8769 | } | |
15afbcd0 | 8770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
8771 | return resultobj; |
8772 | fail: | |
8773 | return NULL; | |
8774 | } | |
8775 | ||
8776 | ||
c32bde28 | 8777 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8778 | PyObject *resultobj; |
8779 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8780 | PyObject * obj0 = 0 ; | |
8781 | char *kwnames[] = { | |
8782 | (char *) "self", NULL | |
8783 | }; | |
8784 | ||
994141e6 | 8785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
8786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8788 | { |
8789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 8790 | delete arg1; |
d14a1e28 RD |
8791 | |
8792 | wxPyEndAllowThreads(__tstate); | |
8793 | if (PyErr_Occurred()) SWIG_fail; | |
8794 | } | |
8795 | Py_INCREF(Py_None); resultobj = Py_None; | |
8796 | return resultobj; | |
8797 | fail: | |
8798 | return NULL; | |
8799 | } | |
8800 | ||
8801 | ||
c32bde28 | 8802 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
8803 | PyObject *resultobj; |
8804 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8805 | PyObject * obj0 = 0 ; | |
8806 | char *kwnames[] = { | |
8807 | (char *) "self", NULL | |
8808 | }; | |
8809 | ||
8810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
8813 | { |
8814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8815 | (arg1)->Init(); | |
8816 | ||
8817 | wxPyEndAllowThreads(__tstate); | |
8818 | if (PyErr_Occurred()) SWIG_fail; | |
8819 | } | |
8820 | Py_INCREF(Py_None); resultobj = Py_None; | |
8821 | return resultobj; | |
8822 | fail: | |
8823 | return NULL; | |
8824 | } | |
8825 | ||
8826 | ||
c32bde28 | 8827 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8828 | PyObject *resultobj; |
8829 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8830 | wxColour *arg2 = 0 ; | |
8831 | wxColour temp2 ; | |
8832 | PyObject * obj0 = 0 ; | |
8833 | PyObject * obj1 = 0 ; | |
8834 | char *kwnames[] = { | |
8835 | (char *) "self",(char *) "colText", NULL | |
8836 | }; | |
8837 | ||
8838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8841 | { |
8842 | arg2 = &temp2; | |
8843 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8844 | } | |
8845 | { | |
8846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8847 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
8848 | ||
8849 | wxPyEndAllowThreads(__tstate); | |
8850 | if (PyErr_Occurred()) SWIG_fail; | |
8851 | } | |
8852 | Py_INCREF(Py_None); resultobj = Py_None; | |
8853 | return resultobj; | |
8854 | fail: | |
8855 | return NULL; | |
8856 | } | |
8857 | ||
8858 | ||
c32bde28 | 8859 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8860 | PyObject *resultobj; |
8861 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8862 | wxColour *arg2 = 0 ; | |
8863 | wxColour temp2 ; | |
8864 | PyObject * obj0 = 0 ; | |
8865 | PyObject * obj1 = 0 ; | |
8866 | char *kwnames[] = { | |
8867 | (char *) "self",(char *) "colBack", NULL | |
8868 | }; | |
8869 | ||
8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8871 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8872 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8873 | { |
8874 | arg2 = &temp2; | |
8875 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8876 | } | |
8877 | { | |
8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8879 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
8880 | ||
8881 | wxPyEndAllowThreads(__tstate); | |
8882 | if (PyErr_Occurred()) SWIG_fail; | |
8883 | } | |
8884 | Py_INCREF(Py_None); resultobj = Py_None; | |
8885 | return resultobj; | |
8886 | fail: | |
8887 | return NULL; | |
8888 | } | |
8889 | ||
8890 | ||
c32bde28 | 8891 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8892 | PyObject *resultobj; |
8893 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8894 | wxFont *arg2 = 0 ; | |
8895 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
8896 | PyObject * obj0 = 0 ; | |
8897 | PyObject * obj1 = 0 ; | |
994141e6 | 8898 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8899 | char *kwnames[] = { |
8900 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
8901 | }; | |
8902 | ||
994141e6 | 8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8906 | { | |
8907 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8908 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8909 | if (arg2 == NULL) { | |
8910 | SWIG_null_ref("wxFont"); | |
8911 | } | |
8912 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 8913 | } |
994141e6 | 8914 | if (obj2) { |
093d3ff1 RD |
8915 | { |
8916 | arg3 = (long)(SWIG_As_long(obj2)); | |
8917 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8918 | } | |
994141e6 | 8919 | } |
d14a1e28 RD |
8920 | { |
8921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8922 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
8923 | ||
8924 | wxPyEndAllowThreads(__tstate); | |
8925 | if (PyErr_Occurred()) SWIG_fail; | |
8926 | } | |
8927 | Py_INCREF(Py_None); resultobj = Py_None; | |
8928 | return resultobj; | |
8929 | fail: | |
8930 | return NULL; | |
8931 | } | |
8932 | ||
8933 | ||
c32bde28 | 8934 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8935 | PyObject *resultobj; |
8936 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
093d3ff1 | 8937 | wxTextAttrAlignment arg2 ; |
d14a1e28 | 8938 | PyObject * obj0 = 0 ; |
994141e6 | 8939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8940 | char *kwnames[] = { |
8941 | (char *) "self",(char *) "alignment", NULL | |
8942 | }; | |
8943 | ||
994141e6 | 8944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8947 | { | |
8948 | arg2 = (wxTextAttrAlignment)(SWIG_As_int(obj1)); | |
8949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8950 | } | |
d14a1e28 RD |
8951 | { |
8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8953 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
8954 | ||
8955 | wxPyEndAllowThreads(__tstate); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | } | |
8958 | Py_INCREF(Py_None); resultobj = Py_None; | |
8959 | return resultobj; | |
8960 | fail: | |
8961 | return NULL; | |
8962 | } | |
8963 | ||
8964 | ||
c32bde28 | 8965 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8966 | PyObject *resultobj; |
8967 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8968 | wxArrayInt *arg2 = 0 ; | |
ae8162c8 | 8969 | bool temp2 = false ; |
d14a1e28 RD |
8970 | PyObject * obj0 = 0 ; |
8971 | PyObject * obj1 = 0 ; | |
8972 | char *kwnames[] = { | |
8973 | (char *) "self",(char *) "tabs", NULL | |
8974 | }; | |
8975 | ||
8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8979 | { |
8980 | if (! PySequence_Check(obj1)) { | |
8981 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
8982 | SWIG_fail; | |
8983 | } | |
8984 | arg2 = new wxArrayInt; | |
ae8162c8 | 8985 | temp2 = true; |
d14a1e28 RD |
8986 | int i, len=PySequence_Length(obj1); |
8987 | for (i=0; i<len; i++) { | |
8988 | PyObject* item = PySequence_GetItem(obj1, i); | |
8989 | PyObject* number = PyNumber_Int(item); | |
8990 | arg2->Add(PyInt_AS_LONG(number)); | |
8991 | Py_DECREF(item); | |
8992 | Py_DECREF(number); | |
8993 | } | |
8994 | } | |
8995 | { | |
8996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8997 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
8998 | ||
8999 | wxPyEndAllowThreads(__tstate); | |
9000 | if (PyErr_Occurred()) SWIG_fail; | |
9001 | } | |
9002 | Py_INCREF(Py_None); resultobj = Py_None; | |
9003 | { | |
3adfb63b | 9004 | if (temp2) delete arg2; |
d14a1e28 RD |
9005 | } |
9006 | return resultobj; | |
9007 | fail: | |
9008 | { | |
3adfb63b | 9009 | if (temp2) delete arg2; |
d14a1e28 RD |
9010 | } |
9011 | return NULL; | |
9012 | } | |
9013 | ||
9014 | ||
c32bde28 | 9015 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9016 | PyObject *resultobj; |
9017 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9018 | int arg2 ; | |
5e4ca4a8 | 9019 | int arg3 = (int) 0 ; |
d14a1e28 | 9020 | PyObject * obj0 = 0 ; |
994141e6 | 9021 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 9022 | PyObject * obj2 = 0 ; |
d14a1e28 | 9023 | char *kwnames[] = { |
5e4ca4a8 | 9024 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
9025 | }; |
9026 | ||
5e4ca4a8 | 9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9030 | { | |
9031 | arg2 = (int)(SWIG_As_int(obj1)); | |
9032 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9033 | } | |
5e4ca4a8 | 9034 | if (obj2) { |
093d3ff1 RD |
9035 | { |
9036 | arg3 = (int)(SWIG_As_int(obj2)); | |
9037 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9038 | } | |
5e4ca4a8 | 9039 | } |
d14a1e28 RD |
9040 | { |
9041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 9042 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
9043 | |
9044 | wxPyEndAllowThreads(__tstate); | |
9045 | if (PyErr_Occurred()) SWIG_fail; | |
9046 | } | |
9047 | Py_INCREF(Py_None); resultobj = Py_None; | |
9048 | return resultobj; | |
9049 | fail: | |
9050 | return NULL; | |
9051 | } | |
9052 | ||
9053 | ||
c32bde28 | 9054 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9055 | PyObject *resultobj; |
9056 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9057 | int arg2 ; | |
9058 | PyObject * obj0 = 0 ; | |
994141e6 | 9059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9060 | char *kwnames[] = { |
9061 | (char *) "self",(char *) "indent", NULL | |
9062 | }; | |
9063 | ||
994141e6 | 9064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9067 | { | |
9068 | arg2 = (int)(SWIG_As_int(obj1)); | |
9069 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9070 | } | |
d14a1e28 RD |
9071 | { |
9072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9073 | (arg1)->SetRightIndent(arg2); | |
9074 | ||
9075 | wxPyEndAllowThreads(__tstate); | |
9076 | if (PyErr_Occurred()) SWIG_fail; | |
9077 | } | |
9078 | Py_INCREF(Py_None); resultobj = Py_None; | |
9079 | return resultobj; | |
9080 | fail: | |
9081 | return NULL; | |
9082 | } | |
9083 | ||
9084 | ||
c32bde28 | 9085 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9086 | PyObject *resultobj; |
9087 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9088 | long arg2 ; | |
9089 | PyObject * obj0 = 0 ; | |
994141e6 | 9090 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9091 | char *kwnames[] = { |
9092 | (char *) "self",(char *) "flags", NULL | |
9093 | }; | |
9094 | ||
994141e6 | 9095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9098 | { | |
9099 | arg2 = (long)(SWIG_As_long(obj1)); | |
9100 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9101 | } | |
d14a1e28 RD |
9102 | { |
9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9104 | (arg1)->SetFlags(arg2); | |
9105 | ||
9106 | wxPyEndAllowThreads(__tstate); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | } | |
9109 | Py_INCREF(Py_None); resultobj = Py_None; | |
9110 | return resultobj; | |
9111 | fail: | |
9112 | return NULL; | |
9113 | } | |
9114 | ||
9115 | ||
c32bde28 | 9116 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9117 | PyObject *resultobj; |
9118 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9119 | bool result; | |
9120 | PyObject * obj0 = 0 ; | |
9121 | char *kwnames[] = { | |
9122 | (char *) "self", NULL | |
9123 | }; | |
9124 | ||
9125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9128 | { |
9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9130 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
9131 | ||
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
4f89f6a3 RD |
9135 | { |
9136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9137 | } | |
d14a1e28 RD |
9138 | return resultobj; |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
c32bde28 | 9144 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9145 | PyObject *resultobj; |
9146 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9147 | bool result; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | char *kwnames[] = { | |
9150 | (char *) "self", NULL | |
9151 | }; | |
9152 | ||
9153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9156 | { |
9157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9158 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
9159 | ||
9160 | wxPyEndAllowThreads(__tstate); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
9162 | } | |
4f89f6a3 RD |
9163 | { |
9164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9165 | } | |
d14a1e28 RD |
9166 | return resultobj; |
9167 | fail: | |
9168 | return NULL; | |
9169 | } | |
9170 | ||
9171 | ||
c32bde28 | 9172 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9173 | PyObject *resultobj; |
9174 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9175 | bool result; | |
9176 | PyObject * obj0 = 0 ; | |
9177 | char *kwnames[] = { | |
9178 | (char *) "self", NULL | |
9179 | }; | |
9180 | ||
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9184 | { |
9185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9186 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
9187 | ||
9188 | wxPyEndAllowThreads(__tstate); | |
9189 | if (PyErr_Occurred()) SWIG_fail; | |
9190 | } | |
4f89f6a3 RD |
9191 | { |
9192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9193 | } | |
d14a1e28 RD |
9194 | return resultobj; |
9195 | fail: | |
9196 | return NULL; | |
9197 | } | |
9198 | ||
9199 | ||
c32bde28 | 9200 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9201 | PyObject *resultobj; |
9202 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9203 | bool result; | |
9204 | PyObject * obj0 = 0 ; | |
9205 | char *kwnames[] = { | |
9206 | (char *) "self", NULL | |
9207 | }; | |
9208 | ||
9209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9212 | { |
9213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9214 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
9215 | ||
9216 | wxPyEndAllowThreads(__tstate); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | } | |
4f89f6a3 RD |
9219 | { |
9220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9221 | } | |
d14a1e28 RD |
9222 | return resultobj; |
9223 | fail: | |
9224 | return NULL; | |
9225 | } | |
9226 | ||
9227 | ||
c32bde28 | 9228 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9229 | PyObject *resultobj; |
9230 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9231 | bool result; | |
9232 | PyObject * obj0 = 0 ; | |
9233 | char *kwnames[] = { | |
9234 | (char *) "self", NULL | |
9235 | }; | |
9236 | ||
9237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9240 | { |
9241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9242 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
9243 | ||
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
4f89f6a3 RD |
9247 | { |
9248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9249 | } | |
d14a1e28 RD |
9250 | return resultobj; |
9251 | fail: | |
9252 | return NULL; | |
9253 | } | |
9254 | ||
9255 | ||
c32bde28 | 9256 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9257 | PyObject *resultobj; |
9258 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9259 | bool result; | |
9260 | PyObject * obj0 = 0 ; | |
9261 | char *kwnames[] = { | |
9262 | (char *) "self", NULL | |
9263 | }; | |
9264 | ||
9265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9268 | { |
9269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9270 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
9271 | ||
9272 | wxPyEndAllowThreads(__tstate); | |
9273 | if (PyErr_Occurred()) SWIG_fail; | |
9274 | } | |
4f89f6a3 RD |
9275 | { |
9276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9277 | } | |
d14a1e28 RD |
9278 | return resultobj; |
9279 | fail: | |
9280 | return NULL; | |
9281 | } | |
9282 | ||
9283 | ||
c32bde28 | 9284 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9285 | PyObject *resultobj; |
9286 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9287 | bool result; | |
9288 | PyObject * obj0 = 0 ; | |
9289 | char *kwnames[] = { | |
9290 | (char *) "self", NULL | |
9291 | }; | |
9292 | ||
9293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9296 | { |
9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9298 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
9299 | ||
9300 | wxPyEndAllowThreads(__tstate); | |
9301 | if (PyErr_Occurred()) SWIG_fail; | |
9302 | } | |
4f89f6a3 RD |
9303 | { |
9304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9305 | } | |
d14a1e28 RD |
9306 | return resultobj; |
9307 | fail: | |
9308 | return NULL; | |
9309 | } | |
9310 | ||
9311 | ||
c32bde28 | 9312 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9313 | PyObject *resultobj; |
9314 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9315 | long arg2 ; | |
9316 | bool result; | |
9317 | PyObject * obj0 = 0 ; | |
994141e6 | 9318 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9319 | char *kwnames[] = { |
9320 | (char *) "self",(char *) "flag", NULL | |
9321 | }; | |
9322 | ||
994141e6 | 9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9326 | { | |
9327 | arg2 = (long)(SWIG_As_long(obj1)); | |
9328 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9329 | } | |
d14a1e28 RD |
9330 | { |
9331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9332 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
9333 | ||
9334 | wxPyEndAllowThreads(__tstate); | |
9335 | if (PyErr_Occurred()) SWIG_fail; | |
9336 | } | |
4f89f6a3 RD |
9337 | { |
9338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9339 | } | |
d14a1e28 RD |
9340 | return resultobj; |
9341 | fail: | |
9342 | return NULL; | |
9343 | } | |
9344 | ||
9345 | ||
c32bde28 | 9346 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9347 | PyObject *resultobj; |
9348 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9349 | wxColour *result; | |
9350 | PyObject * obj0 = 0 ; | |
9351 | char *kwnames[] = { | |
9352 | (char *) "self", NULL | |
9353 | }; | |
9354 | ||
9355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9358 | { |
9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9360 | { | |
9361 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
9362 | result = (wxColour *) &_result_ref; | |
9363 | } | |
9364 | ||
9365 | wxPyEndAllowThreads(__tstate); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
15afbcd0 | 9368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
9369 | return resultobj; |
9370 | fail: | |
9371 | return NULL; | |
9372 | } | |
9373 | ||
9374 | ||
c32bde28 | 9375 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9376 | PyObject *resultobj; |
9377 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9378 | wxColour *result; | |
9379 | PyObject * obj0 = 0 ; | |
9380 | char *kwnames[] = { | |
9381 | (char *) "self", NULL | |
9382 | }; | |
9383 | ||
9384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9387 | { |
9388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9389 | { | |
9390 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
9391 | result = (wxColour *) &_result_ref; | |
9392 | } | |
9393 | ||
9394 | wxPyEndAllowThreads(__tstate); | |
9395 | if (PyErr_Occurred()) SWIG_fail; | |
9396 | } | |
15afbcd0 | 9397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
9398 | return resultobj; |
9399 | fail: | |
9400 | return NULL; | |
9401 | } | |
9402 | ||
9403 | ||
c32bde28 | 9404 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9405 | PyObject *resultobj; |
9406 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9407 | wxFont *result; | |
9408 | PyObject * obj0 = 0 ; | |
9409 | char *kwnames[] = { | |
9410 | (char *) "self", NULL | |
9411 | }; | |
9412 | ||
9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9416 | { |
9417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9418 | { | |
9419 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
9420 | result = (wxFont *) &_result_ref; | |
9421 | } | |
9422 | ||
9423 | wxPyEndAllowThreads(__tstate); | |
9424 | if (PyErr_Occurred()) SWIG_fail; | |
9425 | } | |
4276dc52 RD |
9426 | { |
9427 | wxFont* resultptr = new wxFont(*result); | |
9428 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
9429 | } | |
d14a1e28 RD |
9430 | return resultobj; |
9431 | fail: | |
9432 | return NULL; | |
9433 | } | |
9434 | ||
9435 | ||
c32bde28 | 9436 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9437 | PyObject *resultobj; |
9438 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
093d3ff1 | 9439 | wxTextAttrAlignment result; |
d14a1e28 RD |
9440 | PyObject * obj0 = 0 ; |
9441 | char *kwnames[] = { | |
9442 | (char *) "self", NULL | |
9443 | }; | |
9444 | ||
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9448 | { |
9449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9450 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); |
d14a1e28 RD |
9451 | |
9452 | wxPyEndAllowThreads(__tstate); | |
9453 | if (PyErr_Occurred()) SWIG_fail; | |
9454 | } | |
093d3ff1 | 9455 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
9456 | return resultobj; |
9457 | fail: | |
9458 | return NULL; | |
9459 | } | |
9460 | ||
9461 | ||
c32bde28 | 9462 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9463 | PyObject *resultobj; |
9464 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9465 | wxArrayInt *result; | |
9466 | PyObject * obj0 = 0 ; | |
9467 | char *kwnames[] = { | |
9468 | (char *) "self", NULL | |
9469 | }; | |
9470 | ||
9471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9474 | { |
9475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9476 | { | |
9477 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
9478 | result = (wxArrayInt *) &_result_ref; | |
9479 | } | |
9480 | ||
9481 | wxPyEndAllowThreads(__tstate); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
9484 | { | |
9485 | resultobj = PyList_New(0); | |
9486 | size_t idx; | |
9487 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
9488 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
9489 | PyList_Append(resultobj, val); | |
9490 | Py_DECREF(val); | |
9491 | } | |
9492 | } | |
9493 | return resultobj; | |
9494 | fail: | |
9495 | return NULL; | |
9496 | } | |
9497 | ||
9498 | ||
c32bde28 | 9499 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9500 | PyObject *resultobj; |
9501 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9502 | long result; | |
9503 | PyObject * obj0 = 0 ; | |
9504 | char *kwnames[] = { | |
9505 | (char *) "self", NULL | |
9506 | }; | |
9507 | ||
9508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9511 | { |
9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9513 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
9514 | ||
9515 | wxPyEndAllowThreads(__tstate); | |
9516 | if (PyErr_Occurred()) SWIG_fail; | |
9517 | } | |
093d3ff1 RD |
9518 | { |
9519 | resultobj = SWIG_From_long((long)(result)); | |
9520 | } | |
d14a1e28 RD |
9521 | return resultobj; |
9522 | fail: | |
9523 | return NULL; | |
9524 | } | |
9525 | ||
9526 | ||
c32bde28 | 9527 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
5e4ca4a8 RD |
9528 | PyObject *resultobj; |
9529 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9530 | long result; | |
9531 | PyObject * obj0 = 0 ; | |
9532 | char *kwnames[] = { | |
9533 | (char *) "self", NULL | |
9534 | }; | |
9535 | ||
9536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5e4ca4a8 RD |
9539 | { |
9540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9541 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
9542 | ||
9543 | wxPyEndAllowThreads(__tstate); | |
9544 | if (PyErr_Occurred()) SWIG_fail; | |
9545 | } | |
093d3ff1 RD |
9546 | { |
9547 | resultobj = SWIG_From_long((long)(result)); | |
9548 | } | |
5e4ca4a8 RD |
9549 | return resultobj; |
9550 | fail: | |
9551 | return NULL; | |
9552 | } | |
9553 | ||
9554 | ||
c32bde28 | 9555 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9556 | PyObject *resultobj; |
9557 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9558 | long result; | |
9559 | PyObject * obj0 = 0 ; | |
9560 | char *kwnames[] = { | |
9561 | (char *) "self", NULL | |
9562 | }; | |
9563 | ||
9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9567 | { |
9568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9569 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
9570 | ||
9571 | wxPyEndAllowThreads(__tstate); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | } | |
093d3ff1 RD |
9574 | { |
9575 | resultobj = SWIG_From_long((long)(result)); | |
9576 | } | |
d14a1e28 RD |
9577 | return resultobj; |
9578 | fail: | |
9579 | return NULL; | |
9580 | } | |
9581 | ||
9582 | ||
c32bde28 | 9583 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9584 | PyObject *resultobj; |
9585 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9586 | long result; | |
9587 | PyObject * obj0 = 0 ; | |
9588 | char *kwnames[] = { | |
9589 | (char *) "self", NULL | |
9590 | }; | |
9591 | ||
9592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9595 | { |
9596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9597 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
9598 | ||
9599 | wxPyEndAllowThreads(__tstate); | |
9600 | if (PyErr_Occurred()) SWIG_fail; | |
9601 | } | |
093d3ff1 RD |
9602 | { |
9603 | resultobj = SWIG_From_long((long)(result)); | |
9604 | } | |
d14a1e28 RD |
9605 | return resultobj; |
9606 | fail: | |
9607 | return NULL; | |
9608 | } | |
9609 | ||
9610 | ||
c32bde28 | 9611 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9612 | PyObject *resultobj; |
9613 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9614 | bool result; | |
9615 | PyObject * obj0 = 0 ; | |
9616 | char *kwnames[] = { | |
9617 | (char *) "self", NULL | |
9618 | }; | |
9619 | ||
9620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9623 | { |
9624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9625 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
9626 | ||
9627 | wxPyEndAllowThreads(__tstate); | |
9628 | if (PyErr_Occurred()) SWIG_fail; | |
9629 | } | |
4f89f6a3 RD |
9630 | { |
9631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9632 | } | |
d14a1e28 RD |
9633 | return resultobj; |
9634 | fail: | |
9635 | return NULL; | |
9636 | } | |
9637 | ||
9638 | ||
c32bde28 | 9639 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9640 | PyObject *resultobj; |
9641 | wxTextAttr *arg1 = 0 ; | |
9642 | wxTextAttr *arg2 = 0 ; | |
9643 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
9644 | wxTextAttr result; | |
9645 | PyObject * obj0 = 0 ; | |
9646 | PyObject * obj1 = 0 ; | |
9647 | PyObject * obj2 = 0 ; | |
9648 | char *kwnames[] = { | |
9649 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
9650 | }; | |
9651 | ||
9652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9653 | { |
9654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9656 | if (arg1 == NULL) { | |
9657 | SWIG_null_ref("wxTextAttr"); | |
9658 | } | |
9659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 9660 | } |
093d3ff1 RD |
9661 | { |
9662 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9663 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9664 | if (arg2 == NULL) { | |
9665 | SWIG_null_ref("wxTextAttr"); | |
9666 | } | |
9667 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 9668 | } |
093d3ff1 RD |
9669 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9670 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
9671 | { |
9672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9673 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
9674 | ||
9675 | wxPyEndAllowThreads(__tstate); | |
9676 | if (PyErr_Occurred()) SWIG_fail; | |
9677 | } | |
9678 | { | |
9679 | wxTextAttr * resultptr; | |
093d3ff1 | 9680 | resultptr = new wxTextAttr((wxTextAttr &)(result)); |
15afbcd0 | 9681 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
9682 | } |
9683 | return resultobj; | |
9684 | fail: | |
9685 | return NULL; | |
9686 | } | |
9687 | ||
9688 | ||
c32bde28 | 9689 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9690 | PyObject *obj; |
9691 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9692 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
9693 | Py_INCREF(obj); | |
9694 | return Py_BuildValue((char *)""); | |
9695 | } | |
c32bde28 | 9696 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9697 | PyObject *resultobj; |
9698 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 9699 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9700 | wxString const &arg3_defvalue = wxPyEmptyString ; |
9701 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9702 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9703 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9704 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9705 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9706 | long arg6 = (long) 0 ; | |
9707 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9708 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9709 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
9710 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9711 | wxTextCtrl *result; | |
ae8162c8 | 9712 | bool temp3 = false ; |
d14a1e28 RD |
9713 | wxPoint temp4 ; |
9714 | wxSize temp5 ; | |
ae8162c8 | 9715 | bool temp8 = false ; |
d14a1e28 | 9716 | PyObject * obj0 = 0 ; |
994141e6 | 9717 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9718 | PyObject * obj2 = 0 ; |
9719 | PyObject * obj3 = 0 ; | |
9720 | PyObject * obj4 = 0 ; | |
994141e6 | 9721 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9722 | PyObject * obj6 = 0 ; |
9723 | PyObject * obj7 = 0 ; | |
9724 | char *kwnames[] = { | |
9725 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9726 | }; | |
9727 | ||
248ed943 | 9728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
9729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
9730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 9731 | if (obj1) { |
093d3ff1 RD |
9732 | { |
9733 | arg2 = (int)(SWIG_As_int(obj1)); | |
9734 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9735 | } | |
248ed943 | 9736 | } |
d14a1e28 RD |
9737 | if (obj2) { |
9738 | { | |
9739 | arg3 = wxString_in_helper(obj2); | |
9740 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9741 | temp3 = true; |
d14a1e28 RD |
9742 | } |
9743 | } | |
9744 | if (obj3) { | |
9745 | { | |
9746 | arg4 = &temp4; | |
9747 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9748 | } | |
9749 | } | |
9750 | if (obj4) { | |
9751 | { | |
9752 | arg5 = &temp5; | |
9753 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9754 | } | |
9755 | } | |
994141e6 | 9756 | if (obj5) { |
093d3ff1 RD |
9757 | { |
9758 | arg6 = (long)(SWIG_As_long(obj5)); | |
9759 | if (SWIG_arg_fail(6)) SWIG_fail; | |
9760 | } | |
994141e6 | 9761 | } |
d14a1e28 | 9762 | if (obj6) { |
093d3ff1 RD |
9763 | { |
9764 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9765 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9766 | if (arg7 == NULL) { | |
9767 | SWIG_null_ref("wxValidator"); | |
9768 | } | |
9769 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
9770 | } |
9771 | } | |
9772 | if (obj7) { | |
9773 | { | |
9774 | arg8 = wxString_in_helper(obj7); | |
9775 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 9776 | temp8 = true; |
d14a1e28 RD |
9777 | } |
9778 | } | |
9779 | { | |
e3b71cb8 | 9780 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9782 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9783 | ||
9784 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9785 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9786 | } |
b0f7404b | 9787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
9788 | { |
9789 | if (temp3) | |
9790 | delete arg3; | |
9791 | } | |
9792 | { | |
9793 | if (temp8) | |
9794 | delete arg8; | |
9795 | } | |
9796 | return resultobj; | |
9797 | fail: | |
9798 | { | |
9799 | if (temp3) | |
9800 | delete arg3; | |
9801 | } | |
9802 | { | |
9803 | if (temp8) | |
9804 | delete arg8; | |
9805 | } | |
9806 | return NULL; | |
9807 | } | |
9808 | ||
9809 | ||
c32bde28 | 9810 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9811 | PyObject *resultobj; |
9812 | wxTextCtrl *result; | |
9813 | char *kwnames[] = { | |
9814 | NULL | |
9815 | }; | |
9816 | ||
9817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
9818 | { | |
e3b71cb8 | 9819 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9821 | result = (wxTextCtrl *)new wxTextCtrl(); | |
9822 | ||
9823 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9824 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9825 | } |
b0f7404b | 9826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
9827 | return resultobj; |
9828 | fail: | |
9829 | return NULL; | |
9830 | } | |
9831 | ||
9832 | ||
c32bde28 | 9833 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9834 | PyObject *resultobj; |
9835 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9836 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 9837 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9838 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9839 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9840 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9841 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9842 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9843 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9844 | long arg7 = (long) 0 ; | |
9845 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9846 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9847 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
9848 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9849 | bool result; | |
ae8162c8 | 9850 | bool temp4 = false ; |
d14a1e28 RD |
9851 | wxPoint temp5 ; |
9852 | wxSize temp6 ; | |
ae8162c8 | 9853 | bool temp9 = false ; |
d14a1e28 RD |
9854 | PyObject * obj0 = 0 ; |
9855 | PyObject * obj1 = 0 ; | |
994141e6 | 9856 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9857 | PyObject * obj3 = 0 ; |
9858 | PyObject * obj4 = 0 ; | |
9859 | PyObject * obj5 = 0 ; | |
994141e6 | 9860 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
9861 | PyObject * obj7 = 0 ; |
9862 | PyObject * obj8 = 0 ; | |
9863 | char *kwnames[] = { | |
9864 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9865 | }; | |
9866 | ||
248ed943 | 9867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
9868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9870 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9871 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 9872 | if (obj2) { |
093d3ff1 RD |
9873 | { |
9874 | arg3 = (int)(SWIG_As_int(obj2)); | |
9875 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9876 | } | |
248ed943 | 9877 | } |
d14a1e28 RD |
9878 | if (obj3) { |
9879 | { | |
9880 | arg4 = wxString_in_helper(obj3); | |
9881 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 9882 | temp4 = true; |
d14a1e28 RD |
9883 | } |
9884 | } | |
9885 | if (obj4) { | |
9886 | { | |
9887 | arg5 = &temp5; | |
9888 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9889 | } | |
9890 | } | |
9891 | if (obj5) { | |
9892 | { | |
9893 | arg6 = &temp6; | |
9894 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9895 | } | |
9896 | } | |
994141e6 | 9897 | if (obj6) { |
093d3ff1 RD |
9898 | { |
9899 | arg7 = (long)(SWIG_As_long(obj6)); | |
9900 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9901 | } | |
994141e6 | 9902 | } |
d14a1e28 | 9903 | if (obj7) { |
093d3ff1 RD |
9904 | { |
9905 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9906 | if (SWIG_arg_fail(8)) SWIG_fail; | |
9907 | if (arg8 == NULL) { | |
9908 | SWIG_null_ref("wxValidator"); | |
9909 | } | |
9910 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
9911 | } |
9912 | } | |
9913 | if (obj8) { | |
9914 | { | |
9915 | arg9 = wxString_in_helper(obj8); | |
9916 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 9917 | temp9 = true; |
d14a1e28 RD |
9918 | } |
9919 | } | |
9920 | { | |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9923 | ||
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
4f89f6a3 RD |
9927 | { |
9928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9929 | } | |
d14a1e28 RD |
9930 | { |
9931 | if (temp4) | |
9932 | delete arg4; | |
9933 | } | |
9934 | { | |
9935 | if (temp9) | |
9936 | delete arg9; | |
9937 | } | |
9938 | return resultobj; | |
9939 | fail: | |
9940 | { | |
9941 | if (temp4) | |
9942 | delete arg4; | |
9943 | } | |
9944 | { | |
9945 | if (temp9) | |
9946 | delete arg9; | |
9947 | } | |
9948 | return NULL; | |
9949 | } | |
9950 | ||
9951 | ||
c32bde28 | 9952 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9953 | PyObject *resultobj; |
9954 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9955 | wxString result; | |
9956 | PyObject * obj0 = 0 ; | |
9957 | char *kwnames[] = { | |
9958 | (char *) "self", NULL | |
9959 | }; | |
9960 | ||
9961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9964 | { |
9965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9966 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
9967 | ||
9968 | wxPyEndAllowThreads(__tstate); | |
9969 | if (PyErr_Occurred()) SWIG_fail; | |
9970 | } | |
9971 | { | |
9972 | #if wxUSE_UNICODE | |
9973 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9974 | #else | |
9975 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9976 | #endif | |
9977 | } | |
9978 | return resultobj; | |
9979 | fail: | |
9980 | return NULL; | |
9981 | } | |
9982 | ||
9983 | ||
c32bde28 | 9984 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9985 | PyObject *resultobj; |
9986 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9987 | wxString *arg2 = 0 ; | |
ae8162c8 | 9988 | bool temp2 = false ; |
d14a1e28 RD |
9989 | PyObject * obj0 = 0 ; |
9990 | PyObject * obj1 = 0 ; | |
9991 | char *kwnames[] = { | |
9992 | (char *) "self",(char *) "value", NULL | |
9993 | }; | |
9994 | ||
9995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9998 | { |
9999 | arg2 = wxString_in_helper(obj1); | |
10000 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10001 | temp2 = true; |
d14a1e28 RD |
10002 | } |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | (arg1)->SetValue((wxString const &)*arg2); | |
10006 | ||
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
10010 | Py_INCREF(Py_None); resultobj = Py_None; | |
10011 | { | |
10012 | if (temp2) | |
10013 | delete arg2; | |
10014 | } | |
10015 | return resultobj; | |
10016 | fail: | |
10017 | { | |
10018 | if (temp2) | |
10019 | delete arg2; | |
10020 | } | |
10021 | return NULL; | |
10022 | } | |
10023 | ||
10024 | ||
c32bde28 | 10025 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10026 | PyObject *resultobj; |
10027 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10028 | long arg2 ; | |
10029 | long arg3 ; | |
10030 | wxString result; | |
10031 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10032 | PyObject * obj1 = 0 ; |
10033 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10034 | char *kwnames[] = { |
10035 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10036 | }; | |
10037 | ||
994141e6 | 10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10041 | { | |
10042 | arg2 = (long)(SWIG_As_long(obj1)); | |
10043 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10044 | } | |
10045 | { | |
10046 | arg3 = (long)(SWIG_As_long(obj2)); | |
10047 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10048 | } | |
d14a1e28 RD |
10049 | { |
10050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10051 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
10052 | ||
10053 | wxPyEndAllowThreads(__tstate); | |
10054 | if (PyErr_Occurred()) SWIG_fail; | |
10055 | } | |
10056 | { | |
10057 | #if wxUSE_UNICODE | |
10058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10059 | #else | |
10060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10061 | #endif | |
10062 | } | |
10063 | return resultobj; | |
10064 | fail: | |
10065 | return NULL; | |
10066 | } | |
10067 | ||
10068 | ||
c32bde28 | 10069 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10070 | PyObject *resultobj; |
10071 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10072 | long arg2 ; | |
10073 | int result; | |
10074 | PyObject * obj0 = 0 ; | |
994141e6 | 10075 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10076 | char *kwnames[] = { |
10077 | (char *) "self",(char *) "lineNo", NULL | |
10078 | }; | |
10079 | ||
994141e6 | 10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10083 | { | |
10084 | arg2 = (long)(SWIG_As_long(obj1)); | |
10085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10086 | } | |
d14a1e28 RD |
10087 | { |
10088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10089 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
10090 | ||
10091 | wxPyEndAllowThreads(__tstate); | |
10092 | if (PyErr_Occurred()) SWIG_fail; | |
10093 | } | |
093d3ff1 RD |
10094 | { |
10095 | resultobj = SWIG_From_int((int)(result)); | |
10096 | } | |
d14a1e28 RD |
10097 | return resultobj; |
10098 | fail: | |
10099 | return NULL; | |
10100 | } | |
10101 | ||
10102 | ||
c32bde28 | 10103 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10104 | PyObject *resultobj; |
10105 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10106 | long arg2 ; | |
10107 | wxString result; | |
10108 | PyObject * obj0 = 0 ; | |
994141e6 | 10109 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10110 | char *kwnames[] = { |
10111 | (char *) "self",(char *) "lineNo", NULL | |
10112 | }; | |
10113 | ||
994141e6 | 10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10117 | { | |
10118 | arg2 = (long)(SWIG_As_long(obj1)); | |
10119 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10120 | } | |
d14a1e28 RD |
10121 | { |
10122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10123 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
10124 | ||
10125 | wxPyEndAllowThreads(__tstate); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | } | |
10128 | { | |
10129 | #if wxUSE_UNICODE | |
10130 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10131 | #else | |
10132 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10133 | #endif | |
10134 | } | |
10135 | return resultobj; | |
10136 | fail: | |
10137 | return NULL; | |
10138 | } | |
10139 | ||
10140 | ||
c32bde28 | 10141 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10142 | PyObject *resultobj; |
10143 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10144 | int result; | |
10145 | PyObject * obj0 = 0 ; | |
10146 | char *kwnames[] = { | |
10147 | (char *) "self", NULL | |
10148 | }; | |
10149 | ||
10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10153 | { |
10154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10155 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
10156 | ||
10157 | wxPyEndAllowThreads(__tstate); | |
10158 | if (PyErr_Occurred()) SWIG_fail; | |
10159 | } | |
093d3ff1 RD |
10160 | { |
10161 | resultobj = SWIG_From_int((int)(result)); | |
10162 | } | |
d14a1e28 RD |
10163 | return resultobj; |
10164 | fail: | |
10165 | return NULL; | |
10166 | } | |
10167 | ||
10168 | ||
c32bde28 | 10169 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10170 | PyObject *resultobj; |
10171 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10172 | bool result; | |
10173 | PyObject * obj0 = 0 ; | |
10174 | char *kwnames[] = { | |
10175 | (char *) "self", NULL | |
10176 | }; | |
10177 | ||
10178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10181 | { |
10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10183 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
10184 | ||
10185 | wxPyEndAllowThreads(__tstate); | |
10186 | if (PyErr_Occurred()) SWIG_fail; | |
10187 | } | |
4f89f6a3 RD |
10188 | { |
10189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10190 | } | |
d14a1e28 RD |
10191 | return resultobj; |
10192 | fail: | |
10193 | return NULL; | |
10194 | } | |
10195 | ||
10196 | ||
c32bde28 | 10197 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10198 | PyObject *resultobj; |
10199 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10200 | bool result; | |
10201 | PyObject * obj0 = 0 ; | |
10202 | char *kwnames[] = { | |
10203 | (char *) "self", NULL | |
10204 | }; | |
10205 | ||
10206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10209 | { |
10210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10211 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
10212 | ||
10213 | wxPyEndAllowThreads(__tstate); | |
10214 | if (PyErr_Occurred()) SWIG_fail; | |
10215 | } | |
4f89f6a3 RD |
10216 | { |
10217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10218 | } | |
d14a1e28 RD |
10219 | return resultobj; |
10220 | fail: | |
10221 | return NULL; | |
10222 | } | |
10223 | ||
10224 | ||
c32bde28 | 10225 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10226 | PyObject *resultobj; |
10227 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10228 | bool result; | |
10229 | PyObject * obj0 = 0 ; | |
10230 | char *kwnames[] = { | |
10231 | (char *) "self", NULL | |
10232 | }; | |
10233 | ||
10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10237 | { |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
10240 | ||
10241 | wxPyEndAllowThreads(__tstate); | |
10242 | if (PyErr_Occurred()) SWIG_fail; | |
10243 | } | |
4f89f6a3 RD |
10244 | { |
10245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10246 | } | |
d14a1e28 RD |
10247 | return resultobj; |
10248 | fail: | |
10249 | return NULL; | |
10250 | } | |
10251 | ||
10252 | ||
c32bde28 | 10253 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10254 | PyObject *resultobj; |
10255 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10256 | bool result; | |
10257 | PyObject * obj0 = 0 ; | |
10258 | char *kwnames[] = { | |
10259 | (char *) "self", NULL | |
10260 | }; | |
10261 | ||
10262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10265 | { |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10267 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
10268 | ||
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) SWIG_fail; | |
10271 | } | |
4f89f6a3 RD |
10272 | { |
10273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10274 | } | |
d14a1e28 RD |
10275 | return resultobj; |
10276 | fail: | |
10277 | return NULL; | |
10278 | } | |
10279 | ||
10280 | ||
c32bde28 | 10281 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10282 | PyObject *resultobj; |
10283 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10284 | long *arg2 = (long *) 0 ; | |
10285 | long *arg3 = (long *) 0 ; | |
10286 | long temp2 ; | |
c32bde28 | 10287 | int res2 = 0 ; |
d14a1e28 | 10288 | long temp3 ; |
c32bde28 | 10289 | int res3 = 0 ; |
d14a1e28 RD |
10290 | PyObject * obj0 = 0 ; |
10291 | char *kwnames[] = { | |
10292 | (char *) "self", NULL | |
10293 | }; | |
10294 | ||
c32bde28 RD |
10295 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10296 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 10297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
10298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10300 | { |
10301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10302 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
10303 | ||
10304 | wxPyEndAllowThreads(__tstate); | |
10305 | if (PyErr_Occurred()) SWIG_fail; | |
10306 | } | |
10307 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
10308 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10309 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
10310 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10311 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
10312 | return resultobj; |
10313 | fail: | |
10314 | return NULL; | |
10315 | } | |
10316 | ||
10317 | ||
c32bde28 | 10318 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10319 | PyObject *resultobj; |
10320 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10321 | wxString result; | |
10322 | PyObject * obj0 = 0 ; | |
10323 | char *kwnames[] = { | |
10324 | (char *) "self", NULL | |
10325 | }; | |
10326 | ||
10327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10330 | { |
10331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10332 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
10333 | ||
10334 | wxPyEndAllowThreads(__tstate); | |
10335 | if (PyErr_Occurred()) SWIG_fail; | |
10336 | } | |
10337 | { | |
10338 | #if wxUSE_UNICODE | |
10339 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10340 | #else | |
10341 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10342 | #endif | |
10343 | } | |
10344 | return resultobj; | |
10345 | fail: | |
10346 | return NULL; | |
10347 | } | |
10348 | ||
10349 | ||
c32bde28 | 10350 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10351 | PyObject *resultobj; |
10352 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10353 | PyObject * obj0 = 0 ; | |
10354 | char *kwnames[] = { | |
10355 | (char *) "self", NULL | |
10356 | }; | |
10357 | ||
10358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10361 | { |
10362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10363 | (arg1)->Clear(); | |
10364 | ||
10365 | wxPyEndAllowThreads(__tstate); | |
10366 | if (PyErr_Occurred()) SWIG_fail; | |
10367 | } | |
10368 | Py_INCREF(Py_None); resultobj = Py_None; | |
10369 | return resultobj; | |
10370 | fail: | |
10371 | return NULL; | |
10372 | } | |
10373 | ||
10374 | ||
c32bde28 | 10375 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10376 | PyObject *resultobj; |
10377 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10378 | long arg2 ; | |
10379 | long arg3 ; | |
10380 | wxString *arg4 = 0 ; | |
ae8162c8 | 10381 | bool temp4 = false ; |
d14a1e28 | 10382 | PyObject * obj0 = 0 ; |
994141e6 RD |
10383 | PyObject * obj1 = 0 ; |
10384 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10385 | PyObject * obj3 = 0 ; |
10386 | char *kwnames[] = { | |
10387 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
10388 | }; | |
10389 | ||
994141e6 | 10390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10393 | { | |
10394 | arg2 = (long)(SWIG_As_long(obj1)); | |
10395 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10396 | } | |
10397 | { | |
10398 | arg3 = (long)(SWIG_As_long(obj2)); | |
10399 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10400 | } | |
d14a1e28 RD |
10401 | { |
10402 | arg4 = wxString_in_helper(obj3); | |
10403 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 10404 | temp4 = true; |
d14a1e28 RD |
10405 | } |
10406 | { | |
10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10408 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
10409 | ||
10410 | wxPyEndAllowThreads(__tstate); | |
10411 | if (PyErr_Occurred()) SWIG_fail; | |
10412 | } | |
10413 | Py_INCREF(Py_None); resultobj = Py_None; | |
10414 | { | |
10415 | if (temp4) | |
10416 | delete arg4; | |
10417 | } | |
10418 | return resultobj; | |
10419 | fail: | |
10420 | { | |
10421 | if (temp4) | |
10422 | delete arg4; | |
10423 | } | |
10424 | return NULL; | |
10425 | } | |
10426 | ||
10427 | ||
c32bde28 | 10428 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10429 | PyObject *resultobj; |
10430 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10431 | long arg2 ; | |
10432 | long arg3 ; | |
10433 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10434 | PyObject * obj1 = 0 ; |
10435 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10436 | char *kwnames[] = { |
10437 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10438 | }; | |
10439 | ||
994141e6 | 10440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10443 | { | |
10444 | arg2 = (long)(SWIG_As_long(obj1)); | |
10445 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10446 | } | |
10447 | { | |
10448 | arg3 = (long)(SWIG_As_long(obj2)); | |
10449 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10450 | } | |
d14a1e28 RD |
10451 | { |
10452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10453 | (arg1)->Remove(arg2,arg3); | |
10454 | ||
10455 | wxPyEndAllowThreads(__tstate); | |
10456 | if (PyErr_Occurred()) SWIG_fail; | |
10457 | } | |
10458 | Py_INCREF(Py_None); resultobj = Py_None; | |
10459 | return resultobj; | |
10460 | fail: | |
10461 | return NULL; | |
10462 | } | |
10463 | ||
10464 | ||
c32bde28 | 10465 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10466 | PyObject *resultobj; |
10467 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10468 | wxString *arg2 = 0 ; | |
10469 | bool result; | |
ae8162c8 | 10470 | bool temp2 = false ; |
d14a1e28 RD |
10471 | PyObject * obj0 = 0 ; |
10472 | PyObject * obj1 = 0 ; | |
10473 | char *kwnames[] = { | |
10474 | (char *) "self",(char *) "file", NULL | |
10475 | }; | |
10476 | ||
10477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10480 | { |
10481 | arg2 = wxString_in_helper(obj1); | |
10482 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10483 | temp2 = true; |
d14a1e28 RD |
10484 | } |
10485 | { | |
10486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10487 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
10488 | ||
10489 | wxPyEndAllowThreads(__tstate); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
4f89f6a3 RD |
10492 | { |
10493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10494 | } | |
d14a1e28 RD |
10495 | { |
10496 | if (temp2) | |
10497 | delete arg2; | |
10498 | } | |
10499 | return resultobj; | |
10500 | fail: | |
10501 | { | |
10502 | if (temp2) | |
10503 | delete arg2; | |
10504 | } | |
10505 | return NULL; | |
10506 | } | |
10507 | ||
10508 | ||
c32bde28 | 10509 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10510 | PyObject *resultobj; |
10511 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10512 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10513 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10514 | bool result; | |
ae8162c8 | 10515 | bool temp2 = false ; |
d14a1e28 RD |
10516 | PyObject * obj0 = 0 ; |
10517 | PyObject * obj1 = 0 ; | |
10518 | char *kwnames[] = { | |
10519 | (char *) "self",(char *) "file", NULL | |
10520 | }; | |
10521 | ||
10522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10523 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10524 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10525 | if (obj1) { |
10526 | { | |
10527 | arg2 = wxString_in_helper(obj1); | |
10528 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10529 | temp2 = true; |
d14a1e28 RD |
10530 | } |
10531 | } | |
10532 | { | |
10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10534 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
10535 | ||
10536 | wxPyEndAllowThreads(__tstate); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | } | |
4f89f6a3 RD |
10539 | { |
10540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10541 | } | |
d14a1e28 RD |
10542 | { |
10543 | if (temp2) | |
10544 | delete arg2; | |
10545 | } | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | { | |
10549 | if (temp2) | |
10550 | delete arg2; | |
10551 | } | |
10552 | return NULL; | |
10553 | } | |
10554 | ||
10555 | ||
c32bde28 | 10556 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10557 | PyObject *resultobj; |
10558 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10559 | PyObject * obj0 = 0 ; | |
10560 | char *kwnames[] = { | |
10561 | (char *) "self", NULL | |
10562 | }; | |
10563 | ||
10564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10567 | { |
10568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10569 | (arg1)->MarkDirty(); | |
10570 | ||
10571 | wxPyEndAllowThreads(__tstate); | |
10572 | if (PyErr_Occurred()) SWIG_fail; | |
10573 | } | |
10574 | Py_INCREF(Py_None); resultobj = Py_None; | |
10575 | return resultobj; | |
10576 | fail: | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
c32bde28 | 10581 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10582 | PyObject *resultobj; |
10583 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10584 | PyObject * obj0 = 0 ; | |
10585 | char *kwnames[] = { | |
10586 | (char *) "self", NULL | |
10587 | }; | |
10588 | ||
10589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10592 | { |
10593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10594 | (arg1)->DiscardEdits(); | |
10595 | ||
10596 | wxPyEndAllowThreads(__tstate); | |
10597 | if (PyErr_Occurred()) SWIG_fail; | |
10598 | } | |
10599 | Py_INCREF(Py_None); resultobj = Py_None; | |
10600 | return resultobj; | |
10601 | fail: | |
10602 | return NULL; | |
10603 | } | |
10604 | ||
10605 | ||
c32bde28 | 10606 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10607 | PyObject *resultobj; |
10608 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10609 | unsigned long arg2 ; | |
10610 | PyObject * obj0 = 0 ; | |
10611 | PyObject * obj1 = 0 ; | |
10612 | char *kwnames[] = { | |
10613 | (char *) "self",(char *) "len", NULL | |
10614 | }; | |
10615 | ||
10616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10619 | { | |
10620 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
10621 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10622 | } | |
d14a1e28 RD |
10623 | { |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10625 | (arg1)->SetMaxLength(arg2); | |
10626 | ||
10627 | wxPyEndAllowThreads(__tstate); | |
10628 | if (PyErr_Occurred()) SWIG_fail; | |
10629 | } | |
10630 | Py_INCREF(Py_None); resultobj = Py_None; | |
10631 | return resultobj; | |
10632 | fail: | |
10633 | return NULL; | |
10634 | } | |
10635 | ||
10636 | ||
c32bde28 | 10637 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10638 | PyObject *resultobj; |
10639 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10640 | wxString *arg2 = 0 ; | |
ae8162c8 | 10641 | bool temp2 = false ; |
d14a1e28 RD |
10642 | PyObject * obj0 = 0 ; |
10643 | PyObject * obj1 = 0 ; | |
10644 | char *kwnames[] = { | |
10645 | (char *) "self",(char *) "text", NULL | |
10646 | }; | |
10647 | ||
10648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10651 | { |
10652 | arg2 = wxString_in_helper(obj1); | |
10653 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10654 | temp2 = true; |
d14a1e28 RD |
10655 | } |
10656 | { | |
10657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10658 | (arg1)->WriteText((wxString const &)*arg2); | |
10659 | ||
10660 | wxPyEndAllowThreads(__tstate); | |
10661 | if (PyErr_Occurred()) SWIG_fail; | |
10662 | } | |
10663 | Py_INCREF(Py_None); resultobj = Py_None; | |
10664 | { | |
10665 | if (temp2) | |
10666 | delete arg2; | |
10667 | } | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | { | |
10671 | if (temp2) | |
10672 | delete arg2; | |
10673 | } | |
10674 | return NULL; | |
10675 | } | |
10676 | ||
10677 | ||
c32bde28 | 10678 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10679 | PyObject *resultobj; |
10680 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10681 | wxString *arg2 = 0 ; | |
ae8162c8 | 10682 | bool temp2 = false ; |
d14a1e28 RD |
10683 | PyObject * obj0 = 0 ; |
10684 | PyObject * obj1 = 0 ; | |
10685 | char *kwnames[] = { | |
10686 | (char *) "self",(char *) "text", NULL | |
10687 | }; | |
10688 | ||
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10692 | { |
10693 | arg2 = wxString_in_helper(obj1); | |
10694 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10695 | temp2 = true; |
d14a1e28 RD |
10696 | } |
10697 | { | |
10698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10699 | (arg1)->AppendText((wxString const &)*arg2); | |
10700 | ||
10701 | wxPyEndAllowThreads(__tstate); | |
10702 | if (PyErr_Occurred()) SWIG_fail; | |
10703 | } | |
10704 | Py_INCREF(Py_None); resultobj = Py_None; | |
10705 | { | |
10706 | if (temp2) | |
10707 | delete arg2; | |
10708 | } | |
10709 | return resultobj; | |
10710 | fail: | |
10711 | { | |
10712 | if (temp2) | |
10713 | delete arg2; | |
10714 | } | |
10715 | return NULL; | |
10716 | } | |
10717 | ||
10718 | ||
c32bde28 | 10719 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10720 | PyObject *resultobj; |
10721 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10722 | wxKeyEvent *arg2 = 0 ; | |
10723 | bool result; | |
10724 | PyObject * obj0 = 0 ; | |
10725 | PyObject * obj1 = 0 ; | |
10726 | char *kwnames[] = { | |
10727 | (char *) "self",(char *) "event", NULL | |
10728 | }; | |
10729 | ||
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10731 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10732 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10733 | { | |
10734 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
10735 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10736 | if (arg2 == NULL) { | |
10737 | SWIG_null_ref("wxKeyEvent"); | |
10738 | } | |
10739 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10740 | } |
10741 | { | |
10742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10743 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
10744 | ||
10745 | wxPyEndAllowThreads(__tstate); | |
10746 | if (PyErr_Occurred()) SWIG_fail; | |
10747 | } | |
4f89f6a3 RD |
10748 | { |
10749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10750 | } | |
d14a1e28 RD |
10751 | return resultobj; |
10752 | fail: | |
10753 | return NULL; | |
10754 | } | |
10755 | ||
10756 | ||
c32bde28 | 10757 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10758 | PyObject *resultobj; |
10759 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10760 | long arg2 ; | |
10761 | long arg3 ; | |
10762 | wxTextAttr *arg4 = 0 ; | |
10763 | bool result; | |
10764 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10765 | PyObject * obj1 = 0 ; |
10766 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10767 | PyObject * obj3 = 0 ; |
10768 | char *kwnames[] = { | |
10769 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
10770 | }; | |
10771 | ||
994141e6 | 10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10775 | { | |
10776 | arg2 = (long)(SWIG_As_long(obj1)); | |
10777 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10778 | } | |
10779 | { | |
10780 | arg3 = (long)(SWIG_As_long(obj2)); | |
10781 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10782 | } | |
10783 | { | |
10784 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10785 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10786 | if (arg4 == NULL) { | |
10787 | SWIG_null_ref("wxTextAttr"); | |
10788 | } | |
10789 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
10790 | } |
10791 | { | |
10792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10793 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
10794 | ||
10795 | wxPyEndAllowThreads(__tstate); | |
10796 | if (PyErr_Occurred()) SWIG_fail; | |
10797 | } | |
4f89f6a3 RD |
10798 | { |
10799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10800 | } | |
d14a1e28 RD |
10801 | return resultobj; |
10802 | fail: | |
10803 | return NULL; | |
10804 | } | |
10805 | ||
10806 | ||
c32bde28 | 10807 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10808 | PyObject *resultobj; |
10809 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10810 | long arg2 ; | |
10811 | wxTextAttr *arg3 = 0 ; | |
10812 | bool result; | |
10813 | PyObject * obj0 = 0 ; | |
994141e6 | 10814 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10815 | PyObject * obj2 = 0 ; |
10816 | char *kwnames[] = { | |
10817 | (char *) "self",(char *) "position",(char *) "style", NULL | |
10818 | }; | |
10819 | ||
994141e6 | 10820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10823 | { | |
10824 | arg2 = (long)(SWIG_As_long(obj1)); | |
10825 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10826 | } | |
10827 | { | |
10828 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10829 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10830 | if (arg3 == NULL) { | |
10831 | SWIG_null_ref("wxTextAttr"); | |
10832 | } | |
10833 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
10834 | } |
10835 | { | |
10836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10837 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
10838 | ||
10839 | wxPyEndAllowThreads(__tstate); | |
10840 | if (PyErr_Occurred()) SWIG_fail; | |
10841 | } | |
4f89f6a3 RD |
10842 | { |
10843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10844 | } | |
d14a1e28 RD |
10845 | return resultobj; |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
c32bde28 | 10851 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10852 | PyObject *resultobj; |
10853 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10854 | wxTextAttr *arg2 = 0 ; | |
10855 | bool result; | |
10856 | PyObject * obj0 = 0 ; | |
10857 | PyObject * obj1 = 0 ; | |
10858 | char *kwnames[] = { | |
10859 | (char *) "self",(char *) "style", NULL | |
10860 | }; | |
10861 | ||
10862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10863 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10864 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10865 | { | |
10866 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10867 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10868 | if (arg2 == NULL) { | |
10869 | SWIG_null_ref("wxTextAttr"); | |
10870 | } | |
10871 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10872 | } |
10873 | { | |
10874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10875 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
10876 | ||
10877 | wxPyEndAllowThreads(__tstate); | |
10878 | if (PyErr_Occurred()) SWIG_fail; | |
10879 | } | |
4f89f6a3 RD |
10880 | { |
10881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10882 | } | |
d14a1e28 RD |
10883 | return resultobj; |
10884 | fail: | |
10885 | return NULL; | |
10886 | } | |
10887 | ||
10888 | ||
c32bde28 | 10889 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10890 | PyObject *resultobj; |
10891 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10892 | wxTextAttr *result; | |
10893 | PyObject * obj0 = 0 ; | |
10894 | char *kwnames[] = { | |
10895 | (char *) "self", NULL | |
10896 | }; | |
10897 | ||
10898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10901 | { |
10902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10903 | { | |
10904 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
10905 | result = (wxTextAttr *) &_result_ref; | |
10906 | } | |
10907 | ||
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
15afbcd0 | 10911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
10912 | return resultobj; |
10913 | fail: | |
10914 | return NULL; | |
10915 | } | |
10916 | ||
10917 | ||
c32bde28 | 10918 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10919 | PyObject *resultobj; |
10920 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10921 | long arg2 ; | |
10922 | long arg3 ; | |
10923 | long result; | |
10924 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10925 | PyObject * obj1 = 0 ; |
10926 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10927 | char *kwnames[] = { |
10928 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10929 | }; | |
10930 | ||
994141e6 | 10931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10934 | { | |
10935 | arg2 = (long)(SWIG_As_long(obj1)); | |
10936 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10937 | } | |
10938 | { | |
10939 | arg3 = (long)(SWIG_As_long(obj2)); | |
10940 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10941 | } | |
d14a1e28 RD |
10942 | { |
10943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10944 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
10945 | ||
10946 | wxPyEndAllowThreads(__tstate); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
10948 | } | |
093d3ff1 RD |
10949 | { |
10950 | resultobj = SWIG_From_long((long)(result)); | |
10951 | } | |
d14a1e28 RD |
10952 | return resultobj; |
10953 | fail: | |
10954 | return NULL; | |
10955 | } | |
10956 | ||
10957 | ||
c32bde28 | 10958 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10959 | PyObject *resultobj; |
10960 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10961 | long arg2 ; | |
10962 | long *arg3 = (long *) 0 ; | |
10963 | long *arg4 = (long *) 0 ; | |
10964 | long temp3 ; | |
c32bde28 | 10965 | int res3 = 0 ; |
d14a1e28 | 10966 | long temp4 ; |
c32bde28 | 10967 | int res4 = 0 ; |
d14a1e28 | 10968 | PyObject * obj0 = 0 ; |
994141e6 | 10969 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10970 | char *kwnames[] = { |
10971 | (char *) "self",(char *) "pos", NULL | |
10972 | }; | |
10973 | ||
c32bde28 RD |
10974 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
10975 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 10976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10979 | { | |
10980 | arg2 = (long)(SWIG_As_long(obj1)); | |
10981 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10982 | } | |
d14a1e28 RD |
10983 | { |
10984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10985 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
10986 | ||
10987 | wxPyEndAllowThreads(__tstate); | |
10988 | if (PyErr_Occurred()) SWIG_fail; | |
10989 | } | |
10990 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
10991 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
10992 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10993 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10994 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
10995 | return resultobj; |
10996 | fail: | |
10997 | return NULL; | |
10998 | } | |
10999 | ||
11000 | ||
c32bde28 | 11001 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11002 | PyObject *resultobj; |
11003 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11004 | long arg2 ; | |
11005 | PyObject * obj0 = 0 ; | |
994141e6 | 11006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11007 | char *kwnames[] = { |
11008 | (char *) "self",(char *) "pos", NULL | |
11009 | }; | |
11010 | ||
994141e6 | 11011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11014 | { | |
11015 | arg2 = (long)(SWIG_As_long(obj1)); | |
11016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11017 | } | |
d14a1e28 RD |
11018 | { |
11019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11020 | (arg1)->ShowPosition(arg2); | |
11021 | ||
11022 | wxPyEndAllowThreads(__tstate); | |
11023 | if (PyErr_Occurred()) SWIG_fail; | |
11024 | } | |
11025 | Py_INCREF(Py_None); resultobj = Py_None; | |
11026 | return resultobj; | |
11027 | fail: | |
11028 | return NULL; | |
11029 | } | |
11030 | ||
11031 | ||
c32bde28 | 11032 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
11033 | PyObject *resultobj; |
11034 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11035 | wxPoint *arg2 = 0 ; | |
11036 | long *arg3 = (long *) 0 ; | |
11037 | long *arg4 = (long *) 0 ; | |
093d3ff1 | 11038 | wxTextCtrlHitTestResult result; |
4d5c3d91 RD |
11039 | wxPoint temp2 ; |
11040 | long temp3 ; | |
c32bde28 | 11041 | int res3 = 0 ; |
4d5c3d91 | 11042 | long temp4 ; |
c32bde28 | 11043 | int res4 = 0 ; |
4d5c3d91 RD |
11044 | PyObject * obj0 = 0 ; |
11045 | PyObject * obj1 = 0 ; | |
11046 | char *kwnames[] = { | |
11047 | (char *) "self",(char *) "pt", NULL | |
11048 | }; | |
11049 | ||
c32bde28 RD |
11050 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
11051 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4d5c3d91 | 11052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4d5c3d91 RD |
11055 | { |
11056 | arg2 = &temp2; | |
11057 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11058 | } | |
11059 | { | |
11060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11061 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); |
4d5c3d91 RD |
11062 | |
11063 | wxPyEndAllowThreads(__tstate); | |
11064 | if (PyErr_Occurred()) SWIG_fail; | |
11065 | } | |
093d3ff1 | 11066 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11067 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11068 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
11069 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
11070 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
4d5c3d91 RD |
11071 | return resultobj; |
11072 | fail: | |
11073 | return NULL; | |
11074 | } | |
11075 | ||
11076 | ||
c32bde28 | 11077 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
11078 | PyObject *resultobj; |
11079 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11080 | wxPoint *arg2 = 0 ; | |
11081 | long *arg3 = (long *) 0 ; | |
093d3ff1 | 11082 | wxTextCtrlHitTestResult result; |
4896ac9e RD |
11083 | wxPoint temp2 ; |
11084 | long temp3 ; | |
c32bde28 | 11085 | int res3 = 0 ; |
4896ac9e RD |
11086 | PyObject * obj0 = 0 ; |
11087 | PyObject * obj1 = 0 ; | |
11088 | char *kwnames[] = { | |
11089 | (char *) "self",(char *) "pt", NULL | |
11090 | }; | |
11091 | ||
c32bde28 | 11092 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e | 11093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4896ac9e RD |
11096 | { |
11097 | arg2 = &temp2; | |
11098 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11099 | } | |
11100 | { | |
11101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11102 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); |
4896ac9e RD |
11103 | |
11104 | wxPyEndAllowThreads(__tstate); | |
11105 | if (PyErr_Occurred()) SWIG_fail; | |
11106 | } | |
093d3ff1 | 11107 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11108 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11109 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
11110 | return resultobj; |
11111 | fail: | |
11112 | return NULL; | |
11113 | } | |
11114 | ||
11115 | ||
c32bde28 | 11116 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11117 | PyObject *resultobj; |
11118 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11119 | PyObject * obj0 = 0 ; | |
11120 | char *kwnames[] = { | |
11121 | (char *) "self", NULL | |
11122 | }; | |
11123 | ||
11124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11127 | { |
11128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11129 | (arg1)->Copy(); | |
11130 | ||
11131 | wxPyEndAllowThreads(__tstate); | |
11132 | if (PyErr_Occurred()) SWIG_fail; | |
11133 | } | |
11134 | Py_INCREF(Py_None); resultobj = Py_None; | |
11135 | return resultobj; | |
11136 | fail: | |
11137 | return NULL; | |
11138 | } | |
11139 | ||
11140 | ||
c32bde28 | 11141 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11142 | PyObject *resultobj; |
11143 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11144 | PyObject * obj0 = 0 ; | |
11145 | char *kwnames[] = { | |
11146 | (char *) "self", NULL | |
11147 | }; | |
11148 | ||
11149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11150 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11152 | { |
11153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11154 | (arg1)->Cut(); | |
11155 | ||
11156 | wxPyEndAllowThreads(__tstate); | |
11157 | if (PyErr_Occurred()) SWIG_fail; | |
11158 | } | |
11159 | Py_INCREF(Py_None); resultobj = Py_None; | |
11160 | return resultobj; | |
11161 | fail: | |
11162 | return NULL; | |
11163 | } | |
11164 | ||
11165 | ||
c32bde28 | 11166 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11167 | PyObject *resultobj; |
11168 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11169 | PyObject * obj0 = 0 ; | |
11170 | char *kwnames[] = { | |
11171 | (char *) "self", NULL | |
11172 | }; | |
11173 | ||
11174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11177 | { |
11178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11179 | (arg1)->Paste(); | |
11180 | ||
11181 | wxPyEndAllowThreads(__tstate); | |
11182 | if (PyErr_Occurred()) SWIG_fail; | |
11183 | } | |
11184 | Py_INCREF(Py_None); resultobj = Py_None; | |
11185 | return resultobj; | |
11186 | fail: | |
11187 | return NULL; | |
11188 | } | |
11189 | ||
11190 | ||
c32bde28 | 11191 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11192 | PyObject *resultobj; |
11193 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11194 | bool result; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | char *kwnames[] = { | |
11197 | (char *) "self", NULL | |
11198 | }; | |
11199 | ||
11200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11203 | { |
11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11205 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
11206 | ||
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
4f89f6a3 RD |
11210 | { |
11211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11212 | } | |
d14a1e28 RD |
11213 | return resultobj; |
11214 | fail: | |
11215 | return NULL; | |
11216 | } | |
11217 | ||
11218 | ||
c32bde28 | 11219 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11220 | PyObject *resultobj; |
11221 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11222 | bool result; | |
11223 | PyObject * obj0 = 0 ; | |
11224 | char *kwnames[] = { | |
11225 | (char *) "self", NULL | |
11226 | }; | |
11227 | ||
11228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11231 | { |
11232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11233 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
11234 | ||
11235 | wxPyEndAllowThreads(__tstate); | |
11236 | if (PyErr_Occurred()) SWIG_fail; | |
11237 | } | |
4f89f6a3 RD |
11238 | { |
11239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11240 | } | |
d14a1e28 RD |
11241 | return resultobj; |
11242 | fail: | |
11243 | return NULL; | |
11244 | } | |
11245 | ||
11246 | ||
c32bde28 | 11247 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11248 | PyObject *resultobj; |
11249 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11250 | bool result; | |
11251 | PyObject * obj0 = 0 ; | |
11252 | char *kwnames[] = { | |
11253 | (char *) "self", NULL | |
11254 | }; | |
11255 | ||
11256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11259 | { |
11260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11261 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
11262 | ||
11263 | wxPyEndAllowThreads(__tstate); | |
11264 | if (PyErr_Occurred()) SWIG_fail; | |
11265 | } | |
4f89f6a3 RD |
11266 | { |
11267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11268 | } | |
d14a1e28 RD |
11269 | return resultobj; |
11270 | fail: | |
11271 | return NULL; | |
11272 | } | |
11273 | ||
11274 | ||
c32bde28 | 11275 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11276 | PyObject *resultobj; |
11277 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11278 | PyObject * obj0 = 0 ; | |
11279 | char *kwnames[] = { | |
11280 | (char *) "self", NULL | |
11281 | }; | |
11282 | ||
11283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11286 | { |
11287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11288 | (arg1)->Undo(); | |
11289 | ||
11290 | wxPyEndAllowThreads(__tstate); | |
11291 | if (PyErr_Occurred()) SWIG_fail; | |
11292 | } | |
11293 | Py_INCREF(Py_None); resultobj = Py_None; | |
11294 | return resultobj; | |
11295 | fail: | |
11296 | return NULL; | |
11297 | } | |
11298 | ||
11299 | ||
c32bde28 | 11300 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11301 | PyObject *resultobj; |
11302 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11303 | PyObject * obj0 = 0 ; | |
11304 | char *kwnames[] = { | |
11305 | (char *) "self", NULL | |
11306 | }; | |
11307 | ||
11308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11311 | { |
11312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11313 | (arg1)->Redo(); | |
11314 | ||
11315 | wxPyEndAllowThreads(__tstate); | |
11316 | if (PyErr_Occurred()) SWIG_fail; | |
11317 | } | |
11318 | Py_INCREF(Py_None); resultobj = Py_None; | |
11319 | return resultobj; | |
11320 | fail: | |
11321 | return NULL; | |
11322 | } | |
11323 | ||
11324 | ||
c32bde28 | 11325 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11326 | PyObject *resultobj; |
11327 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11328 | bool result; | |
11329 | PyObject * obj0 = 0 ; | |
11330 | char *kwnames[] = { | |
11331 | (char *) "self", NULL | |
11332 | }; | |
11333 | ||
11334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11337 | { |
11338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11339 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
11340 | ||
11341 | wxPyEndAllowThreads(__tstate); | |
11342 | if (PyErr_Occurred()) SWIG_fail; | |
11343 | } | |
4f89f6a3 RD |
11344 | { |
11345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11346 | } | |
d14a1e28 RD |
11347 | return resultobj; |
11348 | fail: | |
11349 | return NULL; | |
11350 | } | |
11351 | ||
11352 | ||
c32bde28 | 11353 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11354 | PyObject *resultobj; |
11355 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11356 | bool result; | |
11357 | PyObject * obj0 = 0 ; | |
11358 | char *kwnames[] = { | |
11359 | (char *) "self", NULL | |
11360 | }; | |
11361 | ||
11362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11365 | { |
11366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11367 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
11368 | ||
11369 | wxPyEndAllowThreads(__tstate); | |
11370 | if (PyErr_Occurred()) SWIG_fail; | |
11371 | } | |
4f89f6a3 RD |
11372 | { |
11373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11374 | } | |
d14a1e28 RD |
11375 | return resultobj; |
11376 | fail: | |
11377 | return NULL; | |
11378 | } | |
11379 | ||
11380 | ||
c32bde28 | 11381 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11382 | PyObject *resultobj; |
11383 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11384 | long arg2 ; | |
11385 | PyObject * obj0 = 0 ; | |
994141e6 | 11386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11387 | char *kwnames[] = { |
11388 | (char *) "self",(char *) "pos", NULL | |
11389 | }; | |
11390 | ||
994141e6 | 11391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11394 | { | |
11395 | arg2 = (long)(SWIG_As_long(obj1)); | |
11396 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11397 | } | |
d14a1e28 RD |
11398 | { |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | (arg1)->SetInsertionPoint(arg2); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
11405 | Py_INCREF(Py_None); resultobj = Py_None; | |
11406 | return resultobj; | |
11407 | fail: | |
11408 | return NULL; | |
11409 | } | |
11410 | ||
11411 | ||
c32bde28 | 11412 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11413 | PyObject *resultobj; |
11414 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11415 | PyObject * obj0 = 0 ; | |
11416 | char *kwnames[] = { | |
11417 | (char *) "self", NULL | |
11418 | }; | |
11419 | ||
11420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11423 | { |
11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11425 | (arg1)->SetInsertionPointEnd(); | |
11426 | ||
11427 | wxPyEndAllowThreads(__tstate); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | } | |
11430 | Py_INCREF(Py_None); resultobj = Py_None; | |
11431 | return resultobj; | |
11432 | fail: | |
11433 | return NULL; | |
11434 | } | |
11435 | ||
11436 | ||
c32bde28 | 11437 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11438 | PyObject *resultobj; |
11439 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11440 | long result; | |
11441 | PyObject * obj0 = 0 ; | |
11442 | char *kwnames[] = { | |
11443 | (char *) "self", NULL | |
11444 | }; | |
11445 | ||
11446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11449 | { |
11450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11451 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
11452 | ||
11453 | wxPyEndAllowThreads(__tstate); | |
11454 | if (PyErr_Occurred()) SWIG_fail; | |
11455 | } | |
093d3ff1 RD |
11456 | { |
11457 | resultobj = SWIG_From_long((long)(result)); | |
11458 | } | |
d14a1e28 RD |
11459 | return resultobj; |
11460 | fail: | |
11461 | return NULL; | |
11462 | } | |
11463 | ||
11464 | ||
c32bde28 | 11465 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11466 | PyObject *resultobj; |
11467 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11468 | long result; | |
11469 | PyObject * obj0 = 0 ; | |
11470 | char *kwnames[] = { | |
11471 | (char *) "self", NULL | |
11472 | }; | |
11473 | ||
11474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11477 | { |
11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11479 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
11480 | ||
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
093d3ff1 RD |
11484 | { |
11485 | resultobj = SWIG_From_long((long)(result)); | |
11486 | } | |
d14a1e28 RD |
11487 | return resultobj; |
11488 | fail: | |
11489 | return NULL; | |
11490 | } | |
11491 | ||
11492 | ||
c32bde28 | 11493 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11494 | PyObject *resultobj; |
11495 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11496 | long arg2 ; | |
11497 | long arg3 ; | |
11498 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11499 | PyObject * obj1 = 0 ; |
11500 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11501 | char *kwnames[] = { |
11502 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11503 | }; | |
11504 | ||
994141e6 | 11505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11508 | { | |
11509 | arg2 = (long)(SWIG_As_long(obj1)); | |
11510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11511 | } | |
11512 | { | |
11513 | arg3 = (long)(SWIG_As_long(obj2)); | |
11514 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11515 | } | |
d14a1e28 RD |
11516 | { |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | (arg1)->SetSelection(arg2,arg3); | |
11519 | ||
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
11523 | Py_INCREF(Py_None); resultobj = Py_None; | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | return NULL; | |
11527 | } | |
11528 | ||
11529 | ||
c32bde28 | 11530 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11531 | PyObject *resultobj; |
11532 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11533 | PyObject * obj0 = 0 ; | |
11534 | char *kwnames[] = { | |
11535 | (char *) "self", NULL | |
11536 | }; | |
11537 | ||
11538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11541 | { |
11542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11543 | (arg1)->SelectAll(); | |
11544 | ||
11545 | wxPyEndAllowThreads(__tstate); | |
11546 | if (PyErr_Occurred()) SWIG_fail; | |
11547 | } | |
11548 | Py_INCREF(Py_None); resultobj = Py_None; | |
11549 | return resultobj; | |
11550 | fail: | |
11551 | return NULL; | |
11552 | } | |
11553 | ||
11554 | ||
c32bde28 | 11555 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11556 | PyObject *resultobj; |
11557 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11558 | bool arg2 ; | |
11559 | PyObject * obj0 = 0 ; | |
11560 | PyObject * obj1 = 0 ; | |
11561 | char *kwnames[] = { | |
11562 | (char *) "self",(char *) "editable", NULL | |
11563 | }; | |
11564 | ||
11565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11568 | { | |
11569 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
11570 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11571 | } | |
d14a1e28 RD |
11572 | { |
11573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11574 | (arg1)->SetEditable(arg2); | |
11575 | ||
11576 | wxPyEndAllowThreads(__tstate); | |
11577 | if (PyErr_Occurred()) SWIG_fail; | |
11578 | } | |
11579 | Py_INCREF(Py_None); resultobj = Py_None; | |
11580 | return resultobj; | |
11581 | fail: | |
11582 | return NULL; | |
11583 | } | |
11584 | ||
11585 | ||
c32bde28 | 11586 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11587 | PyObject *resultobj; |
11588 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11589 | wxString *arg2 = 0 ; | |
ae8162c8 | 11590 | bool temp2 = false ; |
d14a1e28 RD |
11591 | PyObject * obj0 = 0 ; |
11592 | PyObject * obj1 = 0 ; | |
11593 | char *kwnames[] = { | |
11594 | (char *) "self",(char *) "text", NULL | |
11595 | }; | |
11596 | ||
11597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11600 | { |
11601 | arg2 = wxString_in_helper(obj1); | |
11602 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11603 | temp2 = true; |
d14a1e28 RD |
11604 | } |
11605 | { | |
11606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11607 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
11608 | ||
11609 | wxPyEndAllowThreads(__tstate); | |
11610 | if (PyErr_Occurred()) SWIG_fail; | |
11611 | } | |
11612 | Py_INCREF(Py_None); resultobj = Py_None; | |
11613 | { | |
11614 | if (temp2) | |
11615 | delete arg2; | |
11616 | } | |
11617 | return resultobj; | |
11618 | fail: | |
11619 | { | |
11620 | if (temp2) | |
11621 | delete arg2; | |
11622 | } | |
11623 | return NULL; | |
11624 | } | |
11625 | ||
11626 | ||
c32bde28 | 11627 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11628 | PyObject *resultobj; |
11629 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11630 | long arg2 ; | |
11631 | long arg3 ; | |
11632 | wxString result; | |
11633 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11634 | PyObject * obj1 = 0 ; |
11635 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11636 | char *kwnames[] = { |
11637 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11638 | }; | |
11639 | ||
994141e6 | 11640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11643 | { | |
11644 | arg2 = (long)(SWIG_As_long(obj1)); | |
11645 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11646 | } | |
11647 | { | |
11648 | arg3 = (long)(SWIG_As_long(obj2)); | |
11649 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11650 | } | |
d14a1e28 RD |
11651 | { |
11652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11653 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
11654 | ||
11655 | wxPyEndAllowThreads(__tstate); | |
11656 | if (PyErr_Occurred()) SWIG_fail; | |
11657 | } | |
11658 | { | |
11659 | #if wxUSE_UNICODE | |
11660 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11661 | #else | |
11662 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11663 | #endif | |
11664 | } | |
11665 | return resultobj; | |
11666 | fail: | |
11667 | return NULL; | |
11668 | } | |
11669 | ||
11670 | ||
c32bde28 | 11671 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 11672 | PyObject *resultobj; |
093d3ff1 | 11673 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
11674 | wxVisualAttributes result; |
11675 | PyObject * obj0 = 0 ; | |
11676 | char *kwnames[] = { | |
11677 | (char *) "variant", NULL | |
11678 | }; | |
11679 | ||
11680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11681 | if (obj0) { | |
093d3ff1 RD |
11682 | { |
11683 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
11684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11685 | } | |
22bfe96c RD |
11686 | } |
11687 | { | |
110da5b0 | 11688 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11690 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11691 | ||
11692 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11693 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11694 | } |
11695 | { | |
11696 | wxVisualAttributes * resultptr; | |
093d3ff1 | 11697 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
11698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
11699 | } | |
11700 | return resultobj; | |
11701 | fail: | |
11702 | return NULL; | |
11703 | } | |
11704 | ||
11705 | ||
c32bde28 | 11706 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11707 | PyObject *obj; |
11708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11709 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
11710 | Py_INCREF(obj); | |
11711 | return Py_BuildValue((char *)""); | |
11712 | } | |
c32bde28 | 11713 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11714 | PyObject *resultobj; |
11715 | int arg1 ; | |
11716 | wxMouseEvent *arg2 = 0 ; | |
11717 | long arg3 ; | |
11718 | long arg4 ; | |
11719 | wxTextUrlEvent *result; | |
994141e6 | 11720 | PyObject * obj0 = 0 ; |
d14a1e28 | 11721 | PyObject * obj1 = 0 ; |
994141e6 RD |
11722 | PyObject * obj2 = 0 ; |
11723 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11724 | char *kwnames[] = { |
11725 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
11726 | }; | |
11727 | ||
994141e6 | 11728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
11729 | { |
11730 | arg1 = (int)(SWIG_As_int(obj0)); | |
11731 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11732 | } | |
11733 | { | |
11734 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); | |
11735 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11736 | if (arg2 == NULL) { | |
11737 | SWIG_null_ref("wxMouseEvent"); | |
11738 | } | |
11739 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11740 | } | |
11741 | { | |
11742 | arg3 = (long)(SWIG_As_long(obj2)); | |
11743 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11744 | } | |
11745 | { | |
11746 | arg4 = (long)(SWIG_As_long(obj3)); | |
11747 | if (SWIG_arg_fail(4)) SWIG_fail; | |
994141e6 | 11748 | } |
d14a1e28 RD |
11749 | { |
11750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11751 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
11752 | ||
11753 | wxPyEndAllowThreads(__tstate); | |
11754 | if (PyErr_Occurred()) SWIG_fail; | |
11755 | } | |
15afbcd0 | 11756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
11757 | return resultobj; |
11758 | fail: | |
11759 | return NULL; | |
11760 | } | |
11761 | ||
11762 | ||
c32bde28 | 11763 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11764 | PyObject *resultobj; |
11765 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11766 | wxMouseEvent *result; | |
11767 | PyObject * obj0 = 0 ; | |
11768 | char *kwnames[] = { | |
11769 | (char *) "self", NULL | |
11770 | }; | |
11771 | ||
11772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11775 | { |
11776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11777 | { | |
11778 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
11779 | result = (wxMouseEvent *) &_result_ref; | |
11780 | } | |
11781 | ||
11782 | wxPyEndAllowThreads(__tstate); | |
11783 | if (PyErr_Occurred()) SWIG_fail; | |
11784 | } | |
15afbcd0 | 11785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
11786 | return resultobj; |
11787 | fail: | |
11788 | return NULL; | |
11789 | } | |
11790 | ||
11791 | ||
c32bde28 | 11792 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11793 | PyObject *resultobj; |
11794 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11795 | long result; | |
11796 | PyObject * obj0 = 0 ; | |
11797 | char *kwnames[] = { | |
11798 | (char *) "self", NULL | |
11799 | }; | |
11800 | ||
11801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11804 | { |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
093d3ff1 RD |
11811 | { |
11812 | resultobj = SWIG_From_long((long)(result)); | |
11813 | } | |
d14a1e28 RD |
11814 | return resultobj; |
11815 | fail: | |
11816 | return NULL; | |
11817 | } | |
11818 | ||
11819 | ||
c32bde28 | 11820 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11821 | PyObject *resultobj; |
11822 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11823 | long result; | |
11824 | PyObject * obj0 = 0 ; | |
11825 | char *kwnames[] = { | |
11826 | (char *) "self", NULL | |
11827 | }; | |
11828 | ||
11829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11832 | { |
11833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11834 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
11835 | ||
11836 | wxPyEndAllowThreads(__tstate); | |
11837 | if (PyErr_Occurred()) SWIG_fail; | |
11838 | } | |
093d3ff1 RD |
11839 | { |
11840 | resultobj = SWIG_From_long((long)(result)); | |
11841 | } | |
d14a1e28 RD |
11842 | return resultobj; |
11843 | fail: | |
11844 | return NULL; | |
11845 | } | |
11846 | ||
11847 | ||
c32bde28 | 11848 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11849 | PyObject *obj; |
11850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11851 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
11852 | Py_INCREF(obj); | |
11853 | return Py_BuildValue((char *)""); | |
11854 | } | |
c32bde28 | 11855 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
b2dc1044 RD |
11856 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
11857 | return 1; | |
11858 | } | |
11859 | ||
11860 | ||
093d3ff1 | 11861 | static PyObject *_wrap_ScrollBarNameStr_get(void) { |
b2dc1044 RD |
11862 | PyObject *pyobj; |
11863 | ||
11864 | { | |
11865 | #if wxUSE_UNICODE | |
11866 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11867 | #else | |
11868 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11869 | #endif | |
11870 | } | |
11871 | return pyobj; | |
11872 | } | |
11873 | ||
11874 | ||
c32bde28 | 11875 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11876 | PyObject *resultobj; |
11877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11878 | int arg2 = (int) -1 ; |
d14a1e28 RD |
11879 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
11880 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11881 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11882 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11883 | long arg5 = (long) wxSB_HORIZONTAL ; | |
11884 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
11885 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
11886 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
11887 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11888 | wxScrollBar *result; | |
11889 | wxPoint temp3 ; | |
11890 | wxSize temp4 ; | |
ae8162c8 | 11891 | bool temp7 = false ; |
d14a1e28 | 11892 | PyObject * obj0 = 0 ; |
994141e6 | 11893 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11894 | PyObject * obj2 = 0 ; |
11895 | PyObject * obj3 = 0 ; | |
994141e6 | 11896 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
11897 | PyObject * obj5 = 0 ; |
11898 | PyObject * obj6 = 0 ; | |
11899 | char *kwnames[] = { | |
11900 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11901 | }; | |
11902 | ||
994141e6 | 11903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
11904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
11905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 11906 | if (obj1) { |
093d3ff1 RD |
11907 | { |
11908 | arg2 = (int)(SWIG_As_int(obj1)); | |
11909 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11910 | } | |
994141e6 | 11911 | } |
d14a1e28 RD |
11912 | if (obj2) { |
11913 | { | |
11914 | arg3 = &temp3; | |
11915 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11916 | } | |
11917 | } | |
11918 | if (obj3) { | |
11919 | { | |
11920 | arg4 = &temp4; | |
11921 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11922 | } | |
11923 | } | |
994141e6 | 11924 | if (obj4) { |
093d3ff1 RD |
11925 | { |
11926 | arg5 = (long)(SWIG_As_long(obj4)); | |
11927 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11928 | } | |
994141e6 | 11929 | } |
d14a1e28 | 11930 | if (obj5) { |
093d3ff1 RD |
11931 | { |
11932 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
11933 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11934 | if (arg6 == NULL) { | |
11935 | SWIG_null_ref("wxValidator"); | |
11936 | } | |
11937 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
11938 | } |
11939 | } | |
11940 | if (obj6) { | |
11941 | { | |
11942 | arg7 = wxString_in_helper(obj6); | |
11943 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 11944 | temp7 = true; |
d14a1e28 RD |
11945 | } |
11946 | } | |
11947 | { | |
e3b71cb8 | 11948 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11950 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
11951 | ||
11952 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11953 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11954 | } |
15afbcd0 | 11955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
11956 | { |
11957 | if (temp7) | |
11958 | delete arg7; | |
11959 | } | |
11960 | return resultobj; | |
11961 | fail: | |
11962 | { | |
11963 | if (temp7) | |
11964 | delete arg7; | |
11965 | } | |
11966 | return NULL; | |
11967 | } | |
11968 | ||
11969 | ||
c32bde28 | 11970 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11971 | PyObject *resultobj; |
11972 | wxScrollBar *result; | |
11973 | char *kwnames[] = { | |
11974 | NULL | |
11975 | }; | |
11976 | ||
11977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
11978 | { | |
e3b71cb8 | 11979 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11981 | result = (wxScrollBar *)new wxScrollBar(); | |
11982 | ||
11983 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11984 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11985 | } |
15afbcd0 | 11986 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
11987 | return resultobj; |
11988 | fail: | |
11989 | return NULL; | |
11990 | } | |
11991 | ||
11992 | ||
c32bde28 | 11993 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11994 | PyObject *resultobj; |
11995 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
11996 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11997 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11998 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11999 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12000 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12001 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12002 | long arg6 = (long) wxSB_HORIZONTAL ; | |
12003 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12004 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12005 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
12006 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12007 | bool result; | |
12008 | wxPoint temp4 ; | |
12009 | wxSize temp5 ; | |
ae8162c8 | 12010 | bool temp8 = false ; |
d14a1e28 RD |
12011 | PyObject * obj0 = 0 ; |
12012 | PyObject * obj1 = 0 ; | |
994141e6 | 12013 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12014 | PyObject * obj3 = 0 ; |
12015 | PyObject * obj4 = 0 ; | |
994141e6 | 12016 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12017 | PyObject * obj6 = 0 ; |
12018 | PyObject * obj7 = 0 ; | |
12019 | char *kwnames[] = { | |
12020 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12021 | }; | |
12022 | ||
994141e6 | 12023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
12024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12026 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12028 | if (obj2) { |
093d3ff1 RD |
12029 | { |
12030 | arg3 = (int)(SWIG_As_int(obj2)); | |
12031 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12032 | } | |
994141e6 | 12033 | } |
d14a1e28 RD |
12034 | if (obj3) { |
12035 | { | |
12036 | arg4 = &temp4; | |
12037 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12038 | } | |
12039 | } | |
12040 | if (obj4) { | |
12041 | { | |
12042 | arg5 = &temp5; | |
12043 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12044 | } | |
12045 | } | |
994141e6 | 12046 | if (obj5) { |
093d3ff1 RD |
12047 | { |
12048 | arg6 = (long)(SWIG_As_long(obj5)); | |
12049 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12050 | } | |
994141e6 | 12051 | } |
d14a1e28 | 12052 | if (obj6) { |
093d3ff1 RD |
12053 | { |
12054 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
12055 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12056 | if (arg7 == NULL) { | |
12057 | SWIG_null_ref("wxValidator"); | |
12058 | } | |
12059 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
12060 | } |
12061 | } | |
12062 | if (obj7) { | |
12063 | { | |
12064 | arg8 = wxString_in_helper(obj7); | |
12065 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 12066 | temp8 = true; |
d14a1e28 RD |
12067 | } |
12068 | } | |
12069 | { | |
12070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12071 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12072 | ||
12073 | wxPyEndAllowThreads(__tstate); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
4f89f6a3 RD |
12076 | { |
12077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12078 | } | |
d14a1e28 RD |
12079 | { |
12080 | if (temp8) | |
12081 | delete arg8; | |
12082 | } | |
12083 | return resultobj; | |
12084 | fail: | |
12085 | { | |
12086 | if (temp8) | |
12087 | delete arg8; | |
12088 | } | |
12089 | return NULL; | |
12090 | } | |
12091 | ||
12092 | ||
c32bde28 | 12093 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12094 | PyObject *resultobj; |
12095 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12096 | int result; | |
12097 | PyObject * obj0 = 0 ; | |
12098 | char *kwnames[] = { | |
12099 | (char *) "self", NULL | |
12100 | }; | |
12101 | ||
12102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12105 | { |
12106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12107 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
12108 | ||
12109 | wxPyEndAllowThreads(__tstate); | |
12110 | if (PyErr_Occurred()) SWIG_fail; | |
12111 | } | |
093d3ff1 RD |
12112 | { |
12113 | resultobj = SWIG_From_int((int)(result)); | |
12114 | } | |
d14a1e28 RD |
12115 | return resultobj; |
12116 | fail: | |
12117 | return NULL; | |
12118 | } | |
12119 | ||
12120 | ||
c32bde28 | 12121 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12122 | PyObject *resultobj; |
12123 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12124 | int result; | |
12125 | PyObject * obj0 = 0 ; | |
12126 | char *kwnames[] = { | |
12127 | (char *) "self", NULL | |
12128 | }; | |
12129 | ||
12130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12131 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12132 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12133 | { |
12134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12135 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
12136 | ||
12137 | wxPyEndAllowThreads(__tstate); | |
12138 | if (PyErr_Occurred()) SWIG_fail; | |
12139 | } | |
093d3ff1 RD |
12140 | { |
12141 | resultobj = SWIG_From_int((int)(result)); | |
12142 | } | |
d14a1e28 RD |
12143 | return resultobj; |
12144 | fail: | |
12145 | return NULL; | |
12146 | } | |
12147 | ||
12148 | ||
c32bde28 | 12149 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12150 | PyObject *resultobj; |
12151 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12152 | int result; | |
12153 | PyObject * obj0 = 0 ; | |
12154 | char *kwnames[] = { | |
12155 | (char *) "self", NULL | |
12156 | }; | |
12157 | ||
12158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12161 | { |
12162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12163 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
12164 | ||
12165 | wxPyEndAllowThreads(__tstate); | |
12166 | if (PyErr_Occurred()) SWIG_fail; | |
12167 | } | |
093d3ff1 RD |
12168 | { |
12169 | resultobj = SWIG_From_int((int)(result)); | |
12170 | } | |
d14a1e28 RD |
12171 | return resultobj; |
12172 | fail: | |
12173 | return NULL; | |
12174 | } | |
12175 | ||
12176 | ||
c32bde28 | 12177 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12178 | PyObject *resultobj; |
12179 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12180 | int result; | |
12181 | PyObject * obj0 = 0 ; | |
12182 | char *kwnames[] = { | |
12183 | (char *) "self", NULL | |
12184 | }; | |
12185 | ||
12186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12189 | { |
12190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12191 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
12192 | ||
12193 | wxPyEndAllowThreads(__tstate); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
093d3ff1 RD |
12196 | { |
12197 | resultobj = SWIG_From_int((int)(result)); | |
12198 | } | |
d14a1e28 RD |
12199 | return resultobj; |
12200 | fail: | |
12201 | return NULL; | |
12202 | } | |
12203 | ||
12204 | ||
c32bde28 | 12205 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12206 | PyObject *resultobj; |
12207 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12208 | bool result; | |
12209 | PyObject * obj0 = 0 ; | |
12210 | char *kwnames[] = { | |
12211 | (char *) "self", NULL | |
12212 | }; | |
12213 | ||
12214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12217 | { |
12218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12219 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
12220 | ||
12221 | wxPyEndAllowThreads(__tstate); | |
12222 | if (PyErr_Occurred()) SWIG_fail; | |
12223 | } | |
4f89f6a3 RD |
12224 | { |
12225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12226 | } | |
d14a1e28 RD |
12227 | return resultobj; |
12228 | fail: | |
12229 | return NULL; | |
12230 | } | |
12231 | ||
12232 | ||
c32bde28 | 12233 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12234 | PyObject *resultobj; |
12235 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12236 | int arg2 ; | |
12237 | PyObject * obj0 = 0 ; | |
994141e6 | 12238 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12239 | char *kwnames[] = { |
12240 | (char *) "self",(char *) "viewStart", NULL | |
12241 | }; | |
12242 | ||
994141e6 | 12243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12246 | { | |
12247 | arg2 = (int)(SWIG_As_int(obj1)); | |
12248 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12249 | } | |
d14a1e28 RD |
12250 | { |
12251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12252 | (arg1)->SetThumbPosition(arg2); | |
12253 | ||
12254 | wxPyEndAllowThreads(__tstate); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | Py_INCREF(Py_None); resultobj = Py_None; | |
12258 | return resultobj; | |
12259 | fail: | |
12260 | return NULL; | |
12261 | } | |
12262 | ||
12263 | ||
c32bde28 | 12264 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12265 | PyObject *resultobj; |
12266 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12267 | int arg2 ; | |
12268 | int arg3 ; | |
12269 | int arg4 ; | |
12270 | int arg5 ; | |
ae8162c8 | 12271 | bool arg6 = (bool) true ; |
d14a1e28 | 12272 | PyObject * obj0 = 0 ; |
994141e6 RD |
12273 | PyObject * obj1 = 0 ; |
12274 | PyObject * obj2 = 0 ; | |
12275 | PyObject * obj3 = 0 ; | |
12276 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12277 | PyObject * obj5 = 0 ; |
12278 | char *kwnames[] = { | |
12279 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
12280 | }; | |
12281 | ||
994141e6 | 12282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
12283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12285 | { | |
12286 | arg2 = (int)(SWIG_As_int(obj1)); | |
12287 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12288 | } | |
12289 | { | |
12290 | arg3 = (int)(SWIG_As_int(obj2)); | |
12291 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12292 | } | |
12293 | { | |
12294 | arg4 = (int)(SWIG_As_int(obj3)); | |
12295 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12296 | } | |
12297 | { | |
12298 | arg5 = (int)(SWIG_As_int(obj4)); | |
12299 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12300 | } | |
d14a1e28 | 12301 | if (obj5) { |
093d3ff1 RD |
12302 | { |
12303 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
12304 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12305 | } | |
d14a1e28 RD |
12306 | } |
12307 | { | |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
12314 | Py_INCREF(Py_None); resultobj = Py_None; | |
12315 | return resultobj; | |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
c32bde28 | 12321 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 12322 | PyObject *resultobj; |
093d3ff1 | 12323 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
12324 | wxVisualAttributes result; |
12325 | PyObject * obj0 = 0 ; | |
12326 | char *kwnames[] = { | |
12327 | (char *) "variant", NULL | |
12328 | }; | |
12329 | ||
12330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12331 | if (obj0) { | |
093d3ff1 RD |
12332 | { |
12333 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12335 | } | |
22bfe96c RD |
12336 | } |
12337 | { | |
110da5b0 | 12338 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12340 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12343 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12344 | } |
12345 | { | |
12346 | wxVisualAttributes * resultptr; | |
093d3ff1 | 12347 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
12348 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
12349 | } | |
12350 | return resultobj; | |
12351 | fail: | |
12352 | return NULL; | |
12353 | } | |
12354 | ||
12355 | ||
c32bde28 | 12356 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12357 | PyObject *obj; |
12358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12359 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
12360 | Py_INCREF(obj); | |
12361 | return Py_BuildValue((char *)""); | |
12362 | } | |
c32bde28 | 12363 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
b2dc1044 RD |
12364 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
12365 | return 1; | |
12366 | } | |
12367 | ||
12368 | ||
093d3ff1 | 12369 | static PyObject *_wrap_SPIN_BUTTON_NAME_get(void) { |
b2dc1044 RD |
12370 | PyObject *pyobj; |
12371 | ||
12372 | { | |
12373 | #if wxUSE_UNICODE | |
12374 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12375 | #else | |
12376 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12377 | #endif | |
12378 | } | |
12379 | return pyobj; | |
12380 | } | |
12381 | ||
12382 | ||
c32bde28 | 12383 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
12384 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
12385 | return 1; | |
12386 | } | |
12387 | ||
12388 | ||
093d3ff1 | 12389 | static PyObject *_wrap_SpinCtrlNameStr_get(void) { |
b2dc1044 RD |
12390 | PyObject *pyobj; |
12391 | ||
12392 | { | |
12393 | #if wxUSE_UNICODE | |
12394 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12395 | #else | |
12396 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12397 | #endif | |
12398 | } | |
12399 | return pyobj; | |
12400 | } | |
12401 | ||
12402 | ||
c32bde28 | 12403 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12404 | PyObject *resultobj; |
12405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12406 | int arg2 = (int) -1 ; |
d14a1e28 RD |
12407 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12408 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12409 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12410 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12411 | long arg5 = (long) wxSP_HORIZONTAL ; | |
12412 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
12413 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12414 | wxSpinButton *result; | |
12415 | wxPoint temp3 ; | |
12416 | wxSize temp4 ; | |
ae8162c8 | 12417 | bool temp6 = false ; |
d14a1e28 | 12418 | PyObject * obj0 = 0 ; |
994141e6 | 12419 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12420 | PyObject * obj2 = 0 ; |
12421 | PyObject * obj3 = 0 ; | |
994141e6 | 12422 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12423 | PyObject * obj5 = 0 ; |
12424 | char *kwnames[] = { | |
12425 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12426 | }; | |
12427 | ||
994141e6 | 12428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
12429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 12431 | if (obj1) { |
093d3ff1 RD |
12432 | { |
12433 | arg2 = (int)(SWIG_As_int(obj1)); | |
12434 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12435 | } | |
994141e6 | 12436 | } |
d14a1e28 RD |
12437 | if (obj2) { |
12438 | { | |
12439 | arg3 = &temp3; | |
12440 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12441 | } | |
12442 | } | |
12443 | if (obj3) { | |
12444 | { | |
12445 | arg4 = &temp4; | |
12446 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12447 | } | |
12448 | } | |
994141e6 | 12449 | if (obj4) { |
093d3ff1 RD |
12450 | { |
12451 | arg5 = (long)(SWIG_As_long(obj4)); | |
12452 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12453 | } | |
994141e6 | 12454 | } |
d14a1e28 RD |
12455 | if (obj5) { |
12456 | { | |
12457 | arg6 = wxString_in_helper(obj5); | |
12458 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 12459 | temp6 = true; |
d14a1e28 RD |
12460 | } |
12461 | } | |
12462 | { | |
e3b71cb8 | 12463 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12465 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12466 | ||
12467 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12468 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12469 | } |
15afbcd0 | 12470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
12471 | { |
12472 | if (temp6) | |
12473 | delete arg6; | |
12474 | } | |
12475 | return resultobj; | |
12476 | fail: | |
12477 | { | |
12478 | if (temp6) | |
12479 | delete arg6; | |
12480 | } | |
12481 | return NULL; | |
12482 | } | |
12483 | ||
12484 | ||
c32bde28 | 12485 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12486 | PyObject *resultobj; |
12487 | wxSpinButton *result; | |
12488 | char *kwnames[] = { | |
12489 | NULL | |
12490 | }; | |
12491 | ||
12492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
12493 | { | |
e3b71cb8 | 12494 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12496 | result = (wxSpinButton *)new wxSpinButton(); | |
12497 | ||
12498 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12499 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12500 | } |
15afbcd0 | 12501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
12502 | return resultobj; |
12503 | fail: | |
12504 | return NULL; | |
12505 | } | |
12506 | ||
12507 | ||
c32bde28 | 12508 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12509 | PyObject *resultobj; |
12510 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12511 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12512 | int arg3 = (int) -1 ; |
d14a1e28 RD |
12513 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12514 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12515 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12516 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12517 | long arg6 = (long) wxSP_HORIZONTAL ; | |
12518 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
12519 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12520 | bool result; | |
12521 | wxPoint temp4 ; | |
12522 | wxSize temp5 ; | |
ae8162c8 | 12523 | bool temp7 = false ; |
d14a1e28 RD |
12524 | PyObject * obj0 = 0 ; |
12525 | PyObject * obj1 = 0 ; | |
994141e6 | 12526 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12527 | PyObject * obj3 = 0 ; |
12528 | PyObject * obj4 = 0 ; | |
994141e6 | 12529 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12530 | PyObject * obj6 = 0 ; |
12531 | char *kwnames[] = { | |
12532 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12533 | }; | |
12534 | ||
994141e6 | 12535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
12536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12538 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12539 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12540 | if (obj2) { |
093d3ff1 RD |
12541 | { |
12542 | arg3 = (int)(SWIG_As_int(obj2)); | |
12543 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12544 | } | |
994141e6 | 12545 | } |
d14a1e28 RD |
12546 | if (obj3) { |
12547 | { | |
12548 | arg4 = &temp4; | |
12549 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12550 | } | |
12551 | } | |
12552 | if (obj4) { | |
12553 | { | |
12554 | arg5 = &temp5; | |
12555 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12556 | } | |
12557 | } | |
994141e6 | 12558 | if (obj5) { |
093d3ff1 RD |
12559 | { |
12560 | arg6 = (long)(SWIG_As_long(obj5)); | |
12561 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12562 | } | |
994141e6 | 12563 | } |
d14a1e28 RD |
12564 | if (obj6) { |
12565 | { | |
12566 | arg7 = wxString_in_helper(obj6); | |
12567 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 12568 | temp7 = true; |
d14a1e28 RD |
12569 | } |
12570 | } | |
12571 | { | |
12572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12573 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12574 | ||
12575 | wxPyEndAllowThreads(__tstate); | |
12576 | if (PyErr_Occurred()) SWIG_fail; | |
12577 | } | |
4f89f6a3 RD |
12578 | { |
12579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12580 | } | |
d14a1e28 RD |
12581 | { |
12582 | if (temp7) | |
12583 | delete arg7; | |
12584 | } | |
12585 | return resultobj; | |
12586 | fail: | |
12587 | { | |
12588 | if (temp7) | |
12589 | delete arg7; | |
12590 | } | |
12591 | return NULL; | |
12592 | } | |
12593 | ||
12594 | ||
c32bde28 | 12595 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12596 | PyObject *resultobj; |
12597 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12598 | int result; | |
12599 | PyObject * obj0 = 0 ; | |
12600 | char *kwnames[] = { | |
12601 | (char *) "self", NULL | |
12602 | }; | |
12603 | ||
12604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12607 | { |
12608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12609 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
12610 | ||
12611 | wxPyEndAllowThreads(__tstate); | |
12612 | if (PyErr_Occurred()) SWIG_fail; | |
12613 | } | |
093d3ff1 RD |
12614 | { |
12615 | resultobj = SWIG_From_int((int)(result)); | |
12616 | } | |
d14a1e28 RD |
12617 | return resultobj; |
12618 | fail: | |
12619 | return NULL; | |
12620 | } | |
12621 | ||
12622 | ||
c32bde28 | 12623 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12624 | PyObject *resultobj; |
12625 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12626 | int result; | |
12627 | PyObject * obj0 = 0 ; | |
12628 | char *kwnames[] = { | |
12629 | (char *) "self", NULL | |
12630 | }; | |
12631 | ||
12632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12635 | { |
12636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12637 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
12638 | ||
12639 | wxPyEndAllowThreads(__tstate); | |
12640 | if (PyErr_Occurred()) SWIG_fail; | |
12641 | } | |
093d3ff1 RD |
12642 | { |
12643 | resultobj = SWIG_From_int((int)(result)); | |
12644 | } | |
d14a1e28 RD |
12645 | return resultobj; |
12646 | fail: | |
12647 | return NULL; | |
12648 | } | |
12649 | ||
12650 | ||
c32bde28 | 12651 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12652 | PyObject *resultobj; |
12653 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12654 | int result; | |
12655 | PyObject * obj0 = 0 ; | |
12656 | char *kwnames[] = { | |
12657 | (char *) "self", NULL | |
12658 | }; | |
12659 | ||
12660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12663 | { |
12664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12665 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
12666 | ||
12667 | wxPyEndAllowThreads(__tstate); | |
12668 | if (PyErr_Occurred()) SWIG_fail; | |
12669 | } | |
093d3ff1 RD |
12670 | { |
12671 | resultobj = SWIG_From_int((int)(result)); | |
12672 | } | |
d14a1e28 RD |
12673 | return resultobj; |
12674 | fail: | |
12675 | return NULL; | |
12676 | } | |
12677 | ||
12678 | ||
c32bde28 | 12679 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12680 | PyObject *resultobj; |
12681 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12682 | int arg2 ; | |
12683 | PyObject * obj0 = 0 ; | |
994141e6 | 12684 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12685 | char *kwnames[] = { |
12686 | (char *) "self",(char *) "val", NULL | |
12687 | }; | |
12688 | ||
994141e6 | 12689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12692 | { | |
12693 | arg2 = (int)(SWIG_As_int(obj1)); | |
12694 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12695 | } | |
d14a1e28 RD |
12696 | { |
12697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12698 | (arg1)->SetValue(arg2); | |
12699 | ||
12700 | wxPyEndAllowThreads(__tstate); | |
12701 | if (PyErr_Occurred()) SWIG_fail; | |
12702 | } | |
12703 | Py_INCREF(Py_None); resultobj = Py_None; | |
12704 | return resultobj; | |
12705 | fail: | |
12706 | return NULL; | |
12707 | } | |
12708 | ||
12709 | ||
c32bde28 | 12710 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12711 | PyObject *resultobj; |
12712 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12713 | int arg2 ; | |
12714 | PyObject * obj0 = 0 ; | |
994141e6 | 12715 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12716 | char *kwnames[] = { |
12717 | (char *) "self",(char *) "minVal", NULL | |
12718 | }; | |
12719 | ||
994141e6 | 12720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12721 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12722 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12723 | { | |
12724 | arg2 = (int)(SWIG_As_int(obj1)); | |
12725 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12726 | } | |
d14a1e28 RD |
12727 | { |
12728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12729 | (arg1)->SetMin(arg2); | |
12730 | ||
12731 | wxPyEndAllowThreads(__tstate); | |
12732 | if (PyErr_Occurred()) SWIG_fail; | |
12733 | } | |
12734 | Py_INCREF(Py_None); resultobj = Py_None; | |
12735 | return resultobj; | |
12736 | fail: | |
12737 | return NULL; | |
12738 | } | |
12739 | ||
12740 | ||
c32bde28 | 12741 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12742 | PyObject *resultobj; |
12743 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12744 | int arg2 ; | |
12745 | PyObject * obj0 = 0 ; | |
994141e6 | 12746 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12747 | char *kwnames[] = { |
12748 | (char *) "self",(char *) "maxVal", NULL | |
12749 | }; | |
12750 | ||
994141e6 | 12751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12752 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12754 | { | |
12755 | arg2 = (int)(SWIG_As_int(obj1)); | |
12756 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12757 | } | |
d14a1e28 RD |
12758 | { |
12759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12760 | (arg1)->SetMax(arg2); | |
12761 | ||
12762 | wxPyEndAllowThreads(__tstate); | |
12763 | if (PyErr_Occurred()) SWIG_fail; | |
12764 | } | |
12765 | Py_INCREF(Py_None); resultobj = Py_None; | |
12766 | return resultobj; | |
12767 | fail: | |
12768 | return NULL; | |
12769 | } | |
12770 | ||
12771 | ||
c32bde28 | 12772 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12773 | PyObject *resultobj; |
12774 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12775 | int arg2 ; | |
12776 | int arg3 ; | |
12777 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12778 | PyObject * obj1 = 0 ; |
12779 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12780 | char *kwnames[] = { |
12781 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
12782 | }; | |
12783 | ||
994141e6 | 12784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
12785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12787 | { | |
12788 | arg2 = (int)(SWIG_As_int(obj1)); | |
12789 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12790 | } | |
12791 | { | |
12792 | arg3 = (int)(SWIG_As_int(obj2)); | |
12793 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12794 | } | |
994141e6 | 12795 | { |
15afbcd0 RD |
12796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12797 | (arg1)->SetRange(arg2,arg3); | |
12798 | ||
12799 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
12800 | if (PyErr_Occurred()) SWIG_fail; |
12801 | } | |
22bfe96c RD |
12802 | Py_INCREF(Py_None); resultobj = Py_None; |
12803 | return resultobj; | |
12804 | fail: | |
12805 | return NULL; | |
12806 | } | |
12807 | ||
12808 | ||
c32bde28 | 12809 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
12810 | PyObject *resultobj; |
12811 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12812 | bool result; | |
12813 | PyObject * obj0 = 0 ; | |
12814 | char *kwnames[] = { | |
12815 | (char *) "self", NULL | |
12816 | }; | |
12817 | ||
12818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12819 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12820 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22bfe96c RD |
12821 | { |
12822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12823 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
12824 | ||
12825 | wxPyEndAllowThreads(__tstate); | |
12826 | if (PyErr_Occurred()) SWIG_fail; | |
12827 | } | |
12828 | { | |
12829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12830 | } | |
d14a1e28 RD |
12831 | return resultobj; |
12832 | fail: | |
12833 | return NULL; | |
12834 | } | |
12835 | ||
12836 | ||
c32bde28 | 12837 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 12838 | PyObject *resultobj; |
093d3ff1 | 12839 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c | 12840 | wxVisualAttributes result; |
d14a1e28 RD |
12841 | PyObject * obj0 = 0 ; |
12842 | char *kwnames[] = { | |
22bfe96c | 12843 | (char *) "variant", NULL |
d14a1e28 RD |
12844 | }; |
12845 | ||
22bfe96c RD |
12846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
12847 | if (obj0) { | |
093d3ff1 RD |
12848 | { |
12849 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12851 | } | |
22bfe96c | 12852 | } |
d14a1e28 | 12853 | { |
110da5b0 | 12854 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 12855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22bfe96c | 12856 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
12857 | |
12858 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12859 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12860 | } |
4f89f6a3 | 12861 | { |
22bfe96c | 12862 | wxVisualAttributes * resultptr; |
093d3ff1 | 12863 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c | 12864 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4f89f6a3 | 12865 | } |
d14a1e28 RD |
12866 | return resultobj; |
12867 | fail: | |
12868 | return NULL; | |
12869 | } | |
12870 | ||
12871 | ||
c32bde28 | 12872 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12873 | PyObject *obj; |
12874 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12875 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
12876 | Py_INCREF(obj); | |
12877 | return Py_BuildValue((char *)""); | |
12878 | } | |
c32bde28 | 12879 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12880 | PyObject *resultobj; |
12881 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12882 | int arg2 = (int) -1 ; |
d14a1e28 RD |
12883 | wxString const &arg3_defvalue = wxPyEmptyString ; |
12884 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12885 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12886 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12887 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12888 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12889 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
12890 | int arg7 = (int) 0 ; | |
12891 | int arg8 = (int) 100 ; | |
12892 | int arg9 = (int) 0 ; | |
12893 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
12894 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12895 | wxSpinCtrl *result; | |
ae8162c8 | 12896 | bool temp3 = false ; |
d14a1e28 RD |
12897 | wxPoint temp4 ; |
12898 | wxSize temp5 ; | |
ae8162c8 | 12899 | bool temp10 = false ; |
d14a1e28 | 12900 | PyObject * obj0 = 0 ; |
994141e6 | 12901 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12902 | PyObject * obj2 = 0 ; |
12903 | PyObject * obj3 = 0 ; | |
12904 | PyObject * obj4 = 0 ; | |
994141e6 RD |
12905 | PyObject * obj5 = 0 ; |
12906 | PyObject * obj6 = 0 ; | |
12907 | PyObject * obj7 = 0 ; | |
12908 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
12909 | PyObject * obj9 = 0 ; |
12910 | char *kwnames[] = { | |
12911 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
12912 | }; | |
12913 | ||
994141e6 | 12914 | 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 |
12915 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12916 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 12917 | if (obj1) { |
093d3ff1 RD |
12918 | { |
12919 | arg2 = (int)(SWIG_As_int(obj1)); | |
12920 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12921 | } | |
994141e6 RD |
12922 | } |
12923 | if (obj2) { | |
d14a1e28 RD |
12924 | { |
12925 | arg3 = wxString_in_helper(obj2); | |
12926 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12927 | temp3 = true; |
d14a1e28 RD |
12928 | } |
12929 | } | |
12930 | if (obj3) { | |
12931 | { | |
12932 | arg4 = &temp4; | |
12933 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12934 | } | |
12935 | } | |
12936 | if (obj4) { | |
12937 | { | |
12938 | arg5 = &temp5; | |
12939 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12940 | } | |
12941 | } | |
994141e6 | 12942 | if (obj5) { |
093d3ff1 RD |
12943 | { |
12944 | arg6 = (long)(SWIG_As_long(obj5)); | |
12945 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12946 | } | |
994141e6 RD |
12947 | } |
12948 | if (obj6) { | |
093d3ff1 RD |
12949 | { |
12950 | arg7 = (int)(SWIG_As_int(obj6)); | |
12951 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12952 | } | |
994141e6 RD |
12953 | } |
12954 | if (obj7) { | |
093d3ff1 RD |
12955 | { |
12956 | arg8 = (int)(SWIG_As_int(obj7)); | |
12957 | if (SWIG_arg_fail(8)) SWIG_fail; | |
12958 | } | |
994141e6 RD |
12959 | } |
12960 | if (obj8) { | |
093d3ff1 RD |
12961 | { |
12962 | arg9 = (int)(SWIG_As_int(obj8)); | |
12963 | if (SWIG_arg_fail(9)) SWIG_fail; | |
12964 | } | |
994141e6 | 12965 | } |
d14a1e28 RD |
12966 | if (obj9) { |
12967 | { | |
12968 | arg10 = wxString_in_helper(obj9); | |
12969 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 12970 | temp10 = true; |
d14a1e28 RD |
12971 | } |
12972 | } | |
12973 | { | |
e3b71cb8 | 12974 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12976 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
12977 | ||
12978 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12979 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12980 | } |
15afbcd0 | 12981 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
12982 | { |
12983 | if (temp3) | |
12984 | delete arg3; | |
12985 | } | |
12986 | { | |
12987 | if (temp10) | |
12988 | delete arg10; | |
12989 | } | |
12990 | return resultobj; | |
12991 | fail: | |
12992 | { | |
12993 | if (temp3) | |
12994 | delete arg3; | |
12995 | } | |
12996 | { | |
12997 | if (temp10) | |
12998 | delete arg10; | |
12999 | } | |
13000 | return NULL; | |
13001 | } | |
13002 | ||
13003 | ||
c32bde28 | 13004 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13005 | PyObject *resultobj; |
13006 | wxSpinCtrl *result; | |
13007 | char *kwnames[] = { | |
13008 | NULL | |
13009 | }; | |
13010 | ||
13011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
13012 | { | |
e3b71cb8 | 13013 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13015 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
13016 | ||
13017 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13018 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13019 | } |
15afbcd0 | 13020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
13021 | return resultobj; |
13022 | fail: | |
13023 | return NULL; | |
13024 | } | |
13025 | ||
13026 | ||
c32bde28 | 13027 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13028 | PyObject *resultobj; |
13029 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13030 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 13031 | int arg3 = (int) -1 ; |
d14a1e28 RD |
13032 | wxString const &arg4_defvalue = wxPyEmptyString ; |
13033 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13034 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13035 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13036 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13037 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13038 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
13039 | int arg8 = (int) 0 ; | |
13040 | int arg9 = (int) 100 ; | |
13041 | int arg10 = (int) 0 ; | |
13042 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
13043 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13044 | bool result; | |
ae8162c8 | 13045 | bool temp4 = false ; |
d14a1e28 RD |
13046 | wxPoint temp5 ; |
13047 | wxSize temp6 ; | |
ae8162c8 | 13048 | bool temp11 = false ; |
d14a1e28 RD |
13049 | PyObject * obj0 = 0 ; |
13050 | PyObject * obj1 = 0 ; | |
994141e6 | 13051 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13052 | PyObject * obj3 = 0 ; |
13053 | PyObject * obj4 = 0 ; | |
13054 | PyObject * obj5 = 0 ; | |
994141e6 RD |
13055 | PyObject * obj6 = 0 ; |
13056 | PyObject * obj7 = 0 ; | |
13057 | PyObject * obj8 = 0 ; | |
13058 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
13059 | PyObject * obj10 = 0 ; |
13060 | char *kwnames[] = { | |
13061 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
13062 | }; | |
13063 | ||
994141e6 | 13064 | 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 |
13065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13067 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13068 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 13069 | if (obj2) { |
093d3ff1 RD |
13070 | { |
13071 | arg3 = (int)(SWIG_As_int(obj2)); | |
13072 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13073 | } | |
994141e6 | 13074 | } |
d14a1e28 RD |
13075 | if (obj3) { |
13076 | { | |
13077 | arg4 = wxString_in_helper(obj3); | |
13078 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13079 | temp4 = true; |
d14a1e28 RD |
13080 | } |
13081 | } | |
13082 | if (obj4) { | |
13083 | { | |
13084 | arg5 = &temp5; | |
13085 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13086 | } | |
13087 | } | |
13088 | if (obj5) { | |
13089 | { | |
13090 | arg6 = &temp6; | |
13091 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13092 | } | |
13093 | } | |
994141e6 | 13094 | if (obj6) { |
093d3ff1 RD |
13095 | { |
13096 | arg7 = (long)(SWIG_As_long(obj6)); | |
13097 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13098 | } | |
994141e6 RD |
13099 | } |
13100 | if (obj7) { | |
093d3ff1 RD |
13101 | { |
13102 | arg8 = (int)(SWIG_As_int(obj7)); | |
13103 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13104 | } | |
994141e6 RD |
13105 | } |
13106 | if (obj8) { | |
093d3ff1 RD |
13107 | { |
13108 | arg9 = (int)(SWIG_As_int(obj8)); | |
13109 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13110 | } | |
994141e6 RD |
13111 | } |
13112 | if (obj9) { | |
093d3ff1 RD |
13113 | { |
13114 | arg10 = (int)(SWIG_As_int(obj9)); | |
13115 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13116 | } | |
994141e6 | 13117 | } |
d14a1e28 RD |
13118 | if (obj10) { |
13119 | { | |
13120 | arg11 = wxString_in_helper(obj10); | |
13121 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13122 | temp11 = true; |
d14a1e28 RD |
13123 | } |
13124 | } | |
13125 | { | |
13126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13127 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
13128 | ||
13129 | wxPyEndAllowThreads(__tstate); | |
13130 | if (PyErr_Occurred()) SWIG_fail; | |
13131 | } | |
4f89f6a3 RD |
13132 | { |
13133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13134 | } | |
d14a1e28 RD |
13135 | { |
13136 | if (temp4) | |
13137 | delete arg4; | |
13138 | } | |
13139 | { | |
13140 | if (temp11) | |
13141 | delete arg11; | |
13142 | } | |
13143 | return resultobj; | |
13144 | fail: | |
13145 | { | |
13146 | if (temp4) | |
13147 | delete arg4; | |
13148 | } | |
13149 | { | |
13150 | if (temp11) | |
13151 | delete arg11; | |
13152 | } | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
c32bde28 | 13157 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13158 | PyObject *resultobj; |
13159 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13160 | int result; | |
13161 | PyObject * obj0 = 0 ; | |
13162 | char *kwnames[] = { | |
13163 | (char *) "self", NULL | |
13164 | }; | |
13165 | ||
13166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13167 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13169 | { |
13170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13171 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
13172 | ||
13173 | wxPyEndAllowThreads(__tstate); | |
13174 | if (PyErr_Occurred()) SWIG_fail; | |
13175 | } | |
093d3ff1 RD |
13176 | { |
13177 | resultobj = SWIG_From_int((int)(result)); | |
13178 | } | |
d14a1e28 RD |
13179 | return resultobj; |
13180 | fail: | |
13181 | return NULL; | |
13182 | } | |
13183 | ||
13184 | ||
c32bde28 | 13185 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13186 | PyObject *resultobj; |
13187 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13188 | int arg2 ; | |
13189 | PyObject * obj0 = 0 ; | |
994141e6 | 13190 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13191 | char *kwnames[] = { |
13192 | (char *) "self",(char *) "value", NULL | |
13193 | }; | |
13194 | ||
994141e6 | 13195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13198 | { | |
13199 | arg2 = (int)(SWIG_As_int(obj1)); | |
13200 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13201 | } | |
d14a1e28 RD |
13202 | { |
13203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13204 | (arg1)->SetValue(arg2); | |
13205 | ||
13206 | wxPyEndAllowThreads(__tstate); | |
13207 | if (PyErr_Occurred()) SWIG_fail; | |
13208 | } | |
13209 | Py_INCREF(Py_None); resultobj = Py_None; | |
13210 | return resultobj; | |
13211 | fail: | |
13212 | return NULL; | |
13213 | } | |
13214 | ||
13215 | ||
c32bde28 | 13216 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13217 | PyObject *resultobj; |
13218 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13219 | wxString *arg2 = 0 ; | |
ae8162c8 | 13220 | bool temp2 = false ; |
d14a1e28 RD |
13221 | PyObject * obj0 = 0 ; |
13222 | PyObject * obj1 = 0 ; | |
13223 | char *kwnames[] = { | |
13224 | (char *) "self",(char *) "text", NULL | |
13225 | }; | |
13226 | ||
13227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13228 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13229 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13230 | { |
13231 | arg2 = wxString_in_helper(obj1); | |
13232 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13233 | temp2 = true; |
d14a1e28 RD |
13234 | } |
13235 | { | |
13236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13237 | (arg1)->SetValue((wxString const &)*arg2); | |
13238 | ||
13239 | wxPyEndAllowThreads(__tstate); | |
13240 | if (PyErr_Occurred()) SWIG_fail; | |
13241 | } | |
13242 | Py_INCREF(Py_None); resultobj = Py_None; | |
13243 | { | |
13244 | if (temp2) | |
13245 | delete arg2; | |
13246 | } | |
13247 | return resultobj; | |
13248 | fail: | |
13249 | { | |
13250 | if (temp2) | |
13251 | delete arg2; | |
13252 | } | |
13253 | return NULL; | |
13254 | } | |
13255 | ||
13256 | ||
c32bde28 | 13257 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13258 | PyObject *resultobj; |
13259 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13260 | int arg2 ; | |
13261 | int arg3 ; | |
13262 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13263 | PyObject * obj1 = 0 ; |
13264 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13265 | char *kwnames[] = { |
13266 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
13267 | }; | |
13268 | ||
994141e6 | 13269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13272 | { | |
13273 | arg2 = (int)(SWIG_As_int(obj1)); | |
13274 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13275 | } | |
13276 | { | |
13277 | arg3 = (int)(SWIG_As_int(obj2)); | |
13278 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13279 | } | |
d14a1e28 RD |
13280 | { |
13281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13282 | (arg1)->SetRange(arg2,arg3); | |
13283 | ||
13284 | wxPyEndAllowThreads(__tstate); | |
13285 | if (PyErr_Occurred()) SWIG_fail; | |
13286 | } | |
13287 | Py_INCREF(Py_None); resultobj = Py_None; | |
13288 | return resultobj; | |
13289 | fail: | |
13290 | return NULL; | |
13291 | } | |
13292 | ||
13293 | ||
c32bde28 | 13294 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13295 | PyObject *resultobj; |
13296 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13297 | int result; | |
13298 | PyObject * obj0 = 0 ; | |
13299 | char *kwnames[] = { | |
13300 | (char *) "self", NULL | |
13301 | }; | |
13302 | ||
13303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13306 | { |
13307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13308 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
13309 | ||
13310 | wxPyEndAllowThreads(__tstate); | |
13311 | if (PyErr_Occurred()) SWIG_fail; | |
13312 | } | |
093d3ff1 RD |
13313 | { |
13314 | resultobj = SWIG_From_int((int)(result)); | |
13315 | } | |
d14a1e28 RD |
13316 | return resultobj; |
13317 | fail: | |
13318 | return NULL; | |
13319 | } | |
13320 | ||
13321 | ||
c32bde28 | 13322 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13323 | PyObject *resultobj; |
13324 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13325 | int result; | |
13326 | PyObject * obj0 = 0 ; | |
13327 | char *kwnames[] = { | |
13328 | (char *) "self", NULL | |
13329 | }; | |
13330 | ||
13331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13332 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13333 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13334 | { |
13335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13336 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
13337 | ||
13338 | wxPyEndAllowThreads(__tstate); | |
13339 | if (PyErr_Occurred()) SWIG_fail; | |
13340 | } | |
093d3ff1 RD |
13341 | { |
13342 | resultobj = SWIG_From_int((int)(result)); | |
13343 | } | |
d14a1e28 RD |
13344 | return resultobj; |
13345 | fail: | |
13346 | return NULL; | |
13347 | } | |
13348 | ||
13349 | ||
c32bde28 | 13350 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13351 | PyObject *resultobj; |
13352 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13353 | long arg2 ; | |
13354 | long arg3 ; | |
13355 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13356 | PyObject * obj1 = 0 ; |
13357 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13358 | char *kwnames[] = { |
13359 | (char *) "self",(char *) "from",(char *) "to", NULL | |
13360 | }; | |
13361 | ||
994141e6 | 13362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13365 | { | |
13366 | arg2 = (long)(SWIG_As_long(obj1)); | |
13367 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13368 | } | |
13369 | { | |
13370 | arg3 = (long)(SWIG_As_long(obj2)); | |
13371 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13372 | } | |
d14a1e28 RD |
13373 | { |
13374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 13375 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
13376 | |
13377 | wxPyEndAllowThreads(__tstate); | |
13378 | if (PyErr_Occurred()) SWIG_fail; | |
13379 | } | |
13380 | Py_INCREF(Py_None); resultobj = Py_None; | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
13384 | } | |
13385 | ||
13386 | ||
c32bde28 | 13387 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 13388 | PyObject *resultobj; |
093d3ff1 | 13389 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
13390 | wxVisualAttributes result; |
13391 | PyObject * obj0 = 0 ; | |
13392 | char *kwnames[] = { | |
13393 | (char *) "variant", NULL | |
13394 | }; | |
13395 | ||
13396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13397 | if (obj0) { | |
093d3ff1 RD |
13398 | { |
13399 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
13400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13401 | } | |
22bfe96c RD |
13402 | } |
13403 | { | |
110da5b0 | 13404 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
13405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13406 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13407 | ||
13408 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13409 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13410 | } |
13411 | { | |
13412 | wxVisualAttributes * resultptr; | |
093d3ff1 | 13413 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
13414 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
13415 | } | |
13416 | return resultobj; | |
13417 | fail: | |
13418 | return NULL; | |
13419 | } | |
13420 | ||
13421 | ||
c32bde28 | 13422 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13423 | PyObject *obj; |
13424 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13425 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
13426 | Py_INCREF(obj); | |
13427 | return Py_BuildValue((char *)""); | |
13428 | } | |
c32bde28 | 13429 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
13430 | PyObject *resultobj; |
13431 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13432 | int arg2 = (int) 0 ; | |
13433 | wxSpinEvent *result; | |
994141e6 RD |
13434 | PyObject * obj0 = 0 ; |
13435 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
13436 | char *kwnames[] = { |
13437 | (char *) "commandType",(char *) "winid", NULL | |
13438 | }; | |
13439 | ||
994141e6 RD |
13440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
13441 | if (obj0) { | |
093d3ff1 RD |
13442 | { |
13443 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
13444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13445 | } | |
994141e6 RD |
13446 | } |
13447 | if (obj1) { | |
093d3ff1 RD |
13448 | { |
13449 | arg2 = (int)(SWIG_As_int(obj1)); | |
13450 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13451 | } | |
994141e6 | 13452 | } |
d1e20054 RD |
13453 | { |
13454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13455 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
13456 | ||
13457 | wxPyEndAllowThreads(__tstate); | |
13458 | if (PyErr_Occurred()) SWIG_fail; | |
13459 | } | |
15afbcd0 | 13460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
13461 | return resultobj; |
13462 | fail: | |
13463 | return NULL; | |
13464 | } | |
13465 | ||
13466 | ||
c32bde28 | 13467 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
13468 | PyObject *resultobj; |
13469 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13470 | int result; | |
13471 | PyObject * obj0 = 0 ; | |
13472 | char *kwnames[] = { | |
13473 | (char *) "self", NULL | |
13474 | }; | |
13475 | ||
13476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d1e20054 RD |
13479 | { |
13480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13481 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
13482 | ||
13483 | wxPyEndAllowThreads(__tstate); | |
13484 | if (PyErr_Occurred()) SWIG_fail; | |
13485 | } | |
093d3ff1 RD |
13486 | { |
13487 | resultobj = SWIG_From_int((int)(result)); | |
13488 | } | |
d1e20054 RD |
13489 | return resultobj; |
13490 | fail: | |
13491 | return NULL; | |
13492 | } | |
13493 | ||
13494 | ||
c32bde28 | 13495 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
13496 | PyObject *resultobj; |
13497 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13498 | int arg2 ; | |
13499 | PyObject * obj0 = 0 ; | |
994141e6 | 13500 | PyObject * obj1 = 0 ; |
d1e20054 RD |
13501 | char *kwnames[] = { |
13502 | (char *) "self",(char *) "pos", NULL | |
13503 | }; | |
13504 | ||
994141e6 | 13505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13508 | { | |
13509 | arg2 = (int)(SWIG_As_int(obj1)); | |
13510 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13511 | } | |
d1e20054 RD |
13512 | { |
13513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13514 | (arg1)->SetPosition(arg2); | |
13515 | ||
13516 | wxPyEndAllowThreads(__tstate); | |
13517 | if (PyErr_Occurred()) SWIG_fail; | |
13518 | } | |
13519 | Py_INCREF(Py_None); resultobj = Py_None; | |
13520 | return resultobj; | |
13521 | fail: | |
13522 | return NULL; | |
13523 | } | |
13524 | ||
13525 | ||
c32bde28 | 13526 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d1e20054 RD |
13527 | PyObject *obj; |
13528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13529 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
13530 | Py_INCREF(obj); | |
13531 | return Py_BuildValue((char *)""); | |
13532 | } | |
c32bde28 | 13533 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
13534 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
13535 | return 1; | |
13536 | } | |
13537 | ||
13538 | ||
093d3ff1 | 13539 | static PyObject *_wrap_RadioBoxNameStr_get(void) { |
b2dc1044 RD |
13540 | PyObject *pyobj; |
13541 | ||
13542 | { | |
13543 | #if wxUSE_UNICODE | |
13544 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13545 | #else | |
13546 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13547 | #endif | |
13548 | } | |
13549 | return pyobj; | |
13550 | } | |
13551 | ||
13552 | ||
c32bde28 | 13553 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
13554 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
13555 | return 1; | |
13556 | } | |
13557 | ||
13558 | ||
093d3ff1 | 13559 | static PyObject *_wrap_RadioButtonNameStr_get(void) { |
b2dc1044 RD |
13560 | PyObject *pyobj; |
13561 | ||
13562 | { | |
13563 | #if wxUSE_UNICODE | |
13564 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13565 | #else | |
13566 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13567 | #endif | |
13568 | } | |
13569 | return pyobj; | |
13570 | } | |
13571 | ||
13572 | ||
c32bde28 | 13573 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13574 | PyObject *resultobj; |
13575 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13576 | int arg2 = (int) -1 ; |
13577 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13578 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
13579 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13580 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13581 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13582 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
13583 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
13584 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
13585 | int arg7 = (int) 0 ; | |
13586 | long arg8 = (long) wxRA_HORIZONTAL ; | |
13587 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13588 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13589 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
13590 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 13591 | wxRadioBox *result; |
ae8162c8 | 13592 | bool temp3 = false ; |
d14a1e28 RD |
13593 | wxPoint temp4 ; |
13594 | wxSize temp5 ; | |
ae8162c8 RD |
13595 | bool temp6 = false ; |
13596 | bool temp10 = false ; | |
d14a1e28 | 13597 | PyObject * obj0 = 0 ; |
994141e6 | 13598 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13599 | PyObject * obj2 = 0 ; |
13600 | PyObject * obj3 = 0 ; | |
13601 | PyObject * obj4 = 0 ; | |
13602 | PyObject * obj5 = 0 ; | |
994141e6 RD |
13603 | PyObject * obj6 = 0 ; |
13604 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
13605 | PyObject * obj8 = 0 ; |
13606 | PyObject * obj9 = 0 ; | |
13607 | char *kwnames[] = { | |
994141e6 | 13608 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
13609 | }; |
13610 | ||
248ed943 | 13611 | 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 |
13612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
13613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 13614 | if (obj1) { |
093d3ff1 RD |
13615 | { |
13616 | arg2 = (int)(SWIG_As_int(obj1)); | |
13617 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13618 | } | |
248ed943 RD |
13619 | } |
13620 | if (obj2) { | |
13621 | { | |
13622 | arg3 = wxString_in_helper(obj2); | |
13623 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13624 | temp3 = true; |
248ed943 | 13625 | } |
d14a1e28 RD |
13626 | } |
13627 | if (obj3) { | |
13628 | { | |
13629 | arg4 = &temp4; | |
13630 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13631 | } | |
13632 | } | |
13633 | if (obj4) { | |
13634 | { | |
13635 | arg5 = &temp5; | |
13636 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13637 | } | |
13638 | } | |
13639 | if (obj5) { | |
13640 | { | |
4d5c3d91 RD |
13641 | if (! PySequence_Check(obj5)) { |
13642 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13643 | SWIG_fail; | |
13644 | } | |
13645 | arg6 = new wxArrayString; | |
ae8162c8 | 13646 | temp6 = true; |
4d5c3d91 RD |
13647 | int i, len=PySequence_Length(obj5); |
13648 | for (i=0; i<len; i++) { | |
13649 | PyObject* item = PySequence_GetItem(obj5, i); | |
13650 | #if wxUSE_UNICODE | |
13651 | PyObject* str = PyObject_Unicode(item); | |
13652 | #else | |
13653 | PyObject* str = PyObject_Str(item); | |
13654 | #endif | |
74a57fcd | 13655 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
13656 | arg6->Add(Py2wxString(str)); |
13657 | Py_DECREF(item); | |
13658 | Py_DECREF(str); | |
13659 | } | |
d14a1e28 RD |
13660 | } |
13661 | } | |
994141e6 | 13662 | if (obj6) { |
093d3ff1 RD |
13663 | { |
13664 | arg7 = (int)(SWIG_As_int(obj6)); | |
13665 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13666 | } | |
994141e6 RD |
13667 | } |
13668 | if (obj7) { | |
093d3ff1 RD |
13669 | { |
13670 | arg8 = (long)(SWIG_As_long(obj7)); | |
13671 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13672 | } | |
994141e6 | 13673 | } |
d14a1e28 | 13674 | if (obj8) { |
093d3ff1 RD |
13675 | { |
13676 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13677 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13678 | if (arg9 == NULL) { | |
13679 | SWIG_null_ref("wxValidator"); | |
13680 | } | |
13681 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
13682 | } |
13683 | } | |
13684 | if (obj9) { | |
13685 | { | |
4d5c3d91 RD |
13686 | arg10 = wxString_in_helper(obj9); |
13687 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13688 | temp10 = true; |
d14a1e28 RD |
13689 | } |
13690 | } | |
13691 | { | |
e3b71cb8 | 13692 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 13694 | 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); |
d14a1e28 RD |
13695 | |
13696 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13697 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13698 | } |
15afbcd0 | 13699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
13700 | { |
13701 | if (temp3) | |
13702 | delete arg3; | |
13703 | } | |
13704 | { | |
3adfb63b | 13705 | if (temp6) delete arg6; |
d14a1e28 RD |
13706 | } |
13707 | { | |
13708 | if (temp10) | |
4d5c3d91 | 13709 | delete arg10; |
d14a1e28 RD |
13710 | } |
13711 | return resultobj; | |
13712 | fail: | |
13713 | { | |
13714 | if (temp3) | |
13715 | delete arg3; | |
13716 | } | |
13717 | { | |
3adfb63b | 13718 | if (temp6) delete arg6; |
d14a1e28 RD |
13719 | } |
13720 | { | |
13721 | if (temp10) | |
4d5c3d91 | 13722 | delete arg10; |
d14a1e28 RD |
13723 | } |
13724 | return NULL; | |
13725 | } | |
13726 | ||
13727 | ||
c32bde28 | 13728 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13729 | PyObject *resultobj; |
13730 | wxRadioBox *result; | |
13731 | char *kwnames[] = { | |
13732 | NULL | |
13733 | }; | |
13734 | ||
13735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
13736 | { | |
e3b71cb8 | 13737 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13739 | result = (wxRadioBox *)new wxRadioBox(); | |
13740 | ||
13741 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13742 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13743 | } |
15afbcd0 | 13744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
13745 | return resultobj; |
13746 | fail: | |
13747 | return NULL; | |
13748 | } | |
13749 | ||
13750 | ||
c32bde28 | 13751 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13752 | PyObject *resultobj; |
13753 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13754 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13755 | int arg3 = (int) -1 ; |
13756 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13757 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
13758 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13759 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13760 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13761 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
13762 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
13763 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
13764 | int arg8 = (int) 0 ; | |
13765 | long arg9 = (long) wxRA_HORIZONTAL ; | |
13766 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13767 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13768 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
13769 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 13770 | bool result; |
ae8162c8 | 13771 | bool temp4 = false ; |
d14a1e28 RD |
13772 | wxPoint temp5 ; |
13773 | wxSize temp6 ; | |
ae8162c8 RD |
13774 | bool temp7 = false ; |
13775 | bool temp11 = false ; | |
d14a1e28 RD |
13776 | PyObject * obj0 = 0 ; |
13777 | PyObject * obj1 = 0 ; | |
994141e6 | 13778 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13779 | PyObject * obj3 = 0 ; |
13780 | PyObject * obj4 = 0 ; | |
13781 | PyObject * obj5 = 0 ; | |
13782 | PyObject * obj6 = 0 ; | |
994141e6 RD |
13783 | PyObject * obj7 = 0 ; |
13784 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
13785 | PyObject * obj9 = 0 ; |
13786 | PyObject * obj10 = 0 ; | |
13787 | char *kwnames[] = { | |
994141e6 | 13788 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
13789 | }; |
13790 | ||
248ed943 | 13791 | 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 |
13792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13794 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13795 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 13796 | if (obj2) { |
093d3ff1 RD |
13797 | { |
13798 | arg3 = (int)(SWIG_As_int(obj2)); | |
13799 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13800 | } | |
248ed943 RD |
13801 | } |
13802 | if (obj3) { | |
13803 | { | |
13804 | arg4 = wxString_in_helper(obj3); | |
13805 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13806 | temp4 = true; |
248ed943 | 13807 | } |
d14a1e28 RD |
13808 | } |
13809 | if (obj4) { | |
13810 | { | |
13811 | arg5 = &temp5; | |
13812 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13813 | } | |
13814 | } | |
13815 | if (obj5) { | |
13816 | { | |
13817 | arg6 = &temp6; | |
13818 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13819 | } | |
13820 | } | |
13821 | if (obj6) { | |
13822 | { | |
4d5c3d91 RD |
13823 | if (! PySequence_Check(obj6)) { |
13824 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13825 | SWIG_fail; | |
13826 | } | |
13827 | arg7 = new wxArrayString; | |
ae8162c8 | 13828 | temp7 = true; |
4d5c3d91 RD |
13829 | int i, len=PySequence_Length(obj6); |
13830 | for (i=0; i<len; i++) { | |
13831 | PyObject* item = PySequence_GetItem(obj6, i); | |
13832 | #if wxUSE_UNICODE | |
13833 | PyObject* str = PyObject_Unicode(item); | |
13834 | #else | |
13835 | PyObject* str = PyObject_Str(item); | |
13836 | #endif | |
74a57fcd | 13837 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
13838 | arg7->Add(Py2wxString(str)); |
13839 | Py_DECREF(item); | |
13840 | Py_DECREF(str); | |
13841 | } | |
d14a1e28 RD |
13842 | } |
13843 | } | |
994141e6 | 13844 | if (obj7) { |
093d3ff1 RD |
13845 | { |
13846 | arg8 = (int)(SWIG_As_int(obj7)); | |
13847 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13848 | } | |
994141e6 RD |
13849 | } |
13850 | if (obj8) { | |
093d3ff1 RD |
13851 | { |
13852 | arg9 = (long)(SWIG_As_long(obj8)); | |
13853 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13854 | } | |
994141e6 | 13855 | } |
d14a1e28 | 13856 | if (obj9) { |
093d3ff1 RD |
13857 | { |
13858 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13859 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13860 | if (arg10 == NULL) { | |
13861 | SWIG_null_ref("wxValidator"); | |
13862 | } | |
13863 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d14a1e28 RD |
13864 | } |
13865 | } | |
13866 | if (obj10) { | |
13867 | { | |
4d5c3d91 RD |
13868 | arg11 = wxString_in_helper(obj10); |
13869 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13870 | temp11 = true; |
d14a1e28 RD |
13871 | } |
13872 | } | |
13873 | { | |
13874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 13875 | 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); |
d14a1e28 RD |
13876 | |
13877 | wxPyEndAllowThreads(__tstate); | |
13878 | if (PyErr_Occurred()) SWIG_fail; | |
13879 | } | |
4f89f6a3 RD |
13880 | { |
13881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13882 | } | |
d14a1e28 RD |
13883 | { |
13884 | if (temp4) | |
13885 | delete arg4; | |
13886 | } | |
13887 | { | |
3adfb63b | 13888 | if (temp7) delete arg7; |
d14a1e28 RD |
13889 | } |
13890 | { | |
13891 | if (temp11) | |
4d5c3d91 | 13892 | delete arg11; |
d14a1e28 RD |
13893 | } |
13894 | return resultobj; | |
13895 | fail: | |
13896 | { | |
13897 | if (temp4) | |
13898 | delete arg4; | |
13899 | } | |
13900 | { | |
3adfb63b | 13901 | if (temp7) delete arg7; |
d14a1e28 RD |
13902 | } |
13903 | { | |
13904 | if (temp11) | |
4d5c3d91 | 13905 | delete arg11; |
d14a1e28 RD |
13906 | } |
13907 | return NULL; | |
13908 | } | |
13909 | ||
13910 | ||
c32bde28 | 13911 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13912 | PyObject *resultobj; |
13913 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13914 | int arg2 ; | |
13915 | PyObject * obj0 = 0 ; | |
994141e6 | 13916 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13917 | char *kwnames[] = { |
13918 | (char *) "self",(char *) "n", NULL | |
13919 | }; | |
13920 | ||
994141e6 | 13921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13924 | { | |
13925 | arg2 = (int)(SWIG_As_int(obj1)); | |
13926 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13927 | } | |
d14a1e28 RD |
13928 | { |
13929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13930 | (arg1)->SetSelection(arg2); | |
13931 | ||
13932 | wxPyEndAllowThreads(__tstate); | |
13933 | if (PyErr_Occurred()) SWIG_fail; | |
13934 | } | |
13935 | Py_INCREF(Py_None); resultobj = Py_None; | |
13936 | return resultobj; | |
13937 | fail: | |
13938 | return NULL; | |
13939 | } | |
13940 | ||
13941 | ||
c32bde28 | 13942 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13943 | PyObject *resultobj; |
13944 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13945 | int result; | |
13946 | PyObject * obj0 = 0 ; | |
13947 | char *kwnames[] = { | |
13948 | (char *) "self", NULL | |
13949 | }; | |
13950 | ||
13951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13954 | { |
13955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13956 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
13957 | ||
13958 | wxPyEndAllowThreads(__tstate); | |
13959 | if (PyErr_Occurred()) SWIG_fail; | |
13960 | } | |
093d3ff1 RD |
13961 | { |
13962 | resultobj = SWIG_From_int((int)(result)); | |
13963 | } | |
d14a1e28 RD |
13964 | return resultobj; |
13965 | fail: | |
13966 | return NULL; | |
13967 | } | |
13968 | ||
13969 | ||
c32bde28 | 13970 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13971 | PyObject *resultobj; |
13972 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13973 | wxString result; | |
13974 | PyObject * obj0 = 0 ; | |
13975 | char *kwnames[] = { | |
13976 | (char *) "self", NULL | |
13977 | }; | |
13978 | ||
13979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13982 | { |
13983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13984 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
13985 | ||
13986 | wxPyEndAllowThreads(__tstate); | |
13987 | if (PyErr_Occurred()) SWIG_fail; | |
13988 | } | |
13989 | { | |
13990 | #if wxUSE_UNICODE | |
13991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13992 | #else | |
13993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13994 | #endif | |
13995 | } | |
13996 | return resultobj; | |
13997 | fail: | |
13998 | return NULL; | |
13999 | } | |
14000 | ||
14001 | ||
c32bde28 | 14002 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14003 | PyObject *resultobj; |
14004 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14005 | wxString *arg2 = 0 ; | |
14006 | bool result; | |
ae8162c8 | 14007 | bool temp2 = false ; |
d14a1e28 RD |
14008 | PyObject * obj0 = 0 ; |
14009 | PyObject * obj1 = 0 ; | |
14010 | char *kwnames[] = { | |
14011 | (char *) "self",(char *) "s", NULL | |
14012 | }; | |
14013 | ||
14014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14015 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14016 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14017 | { |
14018 | arg2 = wxString_in_helper(obj1); | |
14019 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14020 | temp2 = true; |
d14a1e28 RD |
14021 | } |
14022 | { | |
14023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14024 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
14025 | ||
14026 | wxPyEndAllowThreads(__tstate); | |
14027 | if (PyErr_Occurred()) SWIG_fail; | |
14028 | } | |
4f89f6a3 RD |
14029 | { |
14030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14031 | } | |
d14a1e28 RD |
14032 | { |
14033 | if (temp2) | |
14034 | delete arg2; | |
14035 | } | |
14036 | return resultobj; | |
14037 | fail: | |
14038 | { | |
14039 | if (temp2) | |
14040 | delete arg2; | |
14041 | } | |
14042 | return NULL; | |
14043 | } | |
14044 | ||
14045 | ||
c32bde28 | 14046 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14047 | PyObject *resultobj; |
14048 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14049 | int result; | |
14050 | PyObject * obj0 = 0 ; | |
14051 | char *kwnames[] = { | |
14052 | (char *) "self", NULL | |
14053 | }; | |
14054 | ||
14055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14058 | { |
14059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14060 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
14061 | ||
14062 | wxPyEndAllowThreads(__tstate); | |
14063 | if (PyErr_Occurred()) SWIG_fail; | |
14064 | } | |
093d3ff1 RD |
14065 | { |
14066 | resultobj = SWIG_From_int((int)(result)); | |
14067 | } | |
d14a1e28 RD |
14068 | return resultobj; |
14069 | fail: | |
14070 | return NULL; | |
14071 | } | |
14072 | ||
14073 | ||
c32bde28 | 14074 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14075 | PyObject *resultobj; |
14076 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14077 | wxString *arg2 = 0 ; | |
14078 | int result; | |
ae8162c8 | 14079 | bool temp2 = false ; |
d14a1e28 RD |
14080 | PyObject * obj0 = 0 ; |
14081 | PyObject * obj1 = 0 ; | |
14082 | char *kwnames[] = { | |
14083 | (char *) "self",(char *) "s", NULL | |
14084 | }; | |
14085 | ||
14086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14089 | { |
14090 | arg2 = wxString_in_helper(obj1); | |
14091 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14092 | temp2 = true; |
d14a1e28 RD |
14093 | } |
14094 | { | |
14095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14096 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
14097 | ||
14098 | wxPyEndAllowThreads(__tstate); | |
14099 | if (PyErr_Occurred()) SWIG_fail; | |
14100 | } | |
093d3ff1 RD |
14101 | { |
14102 | resultobj = SWIG_From_int((int)(result)); | |
14103 | } | |
d14a1e28 RD |
14104 | { |
14105 | if (temp2) | |
14106 | delete arg2; | |
14107 | } | |
14108 | return resultobj; | |
14109 | fail: | |
14110 | { | |
14111 | if (temp2) | |
14112 | delete arg2; | |
14113 | } | |
14114 | return NULL; | |
14115 | } | |
14116 | ||
14117 | ||
c32bde28 | 14118 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14119 | PyObject *resultobj; |
14120 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14121 | int arg2 ; | |
14122 | wxString result; | |
14123 | PyObject * obj0 = 0 ; | |
994141e6 | 14124 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14125 | char *kwnames[] = { |
14126 | (char *) "self",(char *) "n", NULL | |
14127 | }; | |
14128 | ||
994141e6 | 14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14132 | { | |
14133 | arg2 = (int)(SWIG_As_int(obj1)); | |
14134 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14135 | } | |
d14a1e28 RD |
14136 | { |
14137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14138 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
14139 | ||
14140 | wxPyEndAllowThreads(__tstate); | |
14141 | if (PyErr_Occurred()) SWIG_fail; | |
14142 | } | |
14143 | { | |
14144 | #if wxUSE_UNICODE | |
14145 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14146 | #else | |
14147 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14148 | #endif | |
14149 | } | |
14150 | return resultobj; | |
14151 | fail: | |
14152 | return NULL; | |
14153 | } | |
14154 | ||
14155 | ||
c32bde28 | 14156 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14157 | PyObject *resultobj; |
14158 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14159 | int arg2 ; | |
14160 | wxString *arg3 = 0 ; | |
ae8162c8 | 14161 | bool temp3 = false ; |
d14a1e28 | 14162 | PyObject * obj0 = 0 ; |
994141e6 | 14163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14164 | PyObject * obj2 = 0 ; |
14165 | char *kwnames[] = { | |
14166 | (char *) "self",(char *) "n",(char *) "label", NULL | |
14167 | }; | |
14168 | ||
994141e6 | 14169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14172 | { | |
14173 | arg2 = (int)(SWIG_As_int(obj1)); | |
14174 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14175 | } | |
d14a1e28 RD |
14176 | { |
14177 | arg3 = wxString_in_helper(obj2); | |
14178 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14179 | temp3 = true; |
d14a1e28 RD |
14180 | } |
14181 | { | |
14182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14183 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
14184 | ||
14185 | wxPyEndAllowThreads(__tstate); | |
14186 | if (PyErr_Occurred()) SWIG_fail; | |
14187 | } | |
14188 | Py_INCREF(Py_None); resultobj = Py_None; | |
14189 | { | |
14190 | if (temp3) | |
14191 | delete arg3; | |
14192 | } | |
14193 | return resultobj; | |
14194 | fail: | |
14195 | { | |
14196 | if (temp3) | |
14197 | delete arg3; | |
14198 | } | |
14199 | return NULL; | |
14200 | } | |
14201 | ||
14202 | ||
c32bde28 | 14203 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14204 | PyObject *resultobj; |
14205 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14206 | int arg2 ; | |
ae8162c8 | 14207 | bool arg3 = (bool) true ; |
d14a1e28 | 14208 | PyObject * obj0 = 0 ; |
994141e6 | 14209 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14210 | PyObject * obj2 = 0 ; |
14211 | char *kwnames[] = { | |
14212 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
14213 | }; | |
14214 | ||
994141e6 | 14215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14218 | { | |
14219 | arg2 = (int)(SWIG_As_int(obj1)); | |
14220 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14221 | } | |
d14a1e28 | 14222 | if (obj2) { |
093d3ff1 RD |
14223 | { |
14224 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14225 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14226 | } | |
d14a1e28 RD |
14227 | } |
14228 | { | |
14229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14230 | (arg1)->Enable(arg2,arg3); | |
14231 | ||
14232 | wxPyEndAllowThreads(__tstate); | |
14233 | if (PyErr_Occurred()) SWIG_fail; | |
14234 | } | |
14235 | Py_INCREF(Py_None); resultobj = Py_None; | |
14236 | return resultobj; | |
14237 | fail: | |
14238 | return NULL; | |
14239 | } | |
14240 | ||
14241 | ||
c32bde28 | 14242 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14243 | PyObject *resultobj; |
14244 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14245 | int arg2 ; | |
ae8162c8 | 14246 | bool arg3 = (bool) true ; |
d14a1e28 | 14247 | PyObject * obj0 = 0 ; |
994141e6 | 14248 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14249 | PyObject * obj2 = 0 ; |
14250 | char *kwnames[] = { | |
14251 | (char *) "self",(char *) "n",(char *) "show", NULL | |
14252 | }; | |
14253 | ||
994141e6 | 14254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14257 | { | |
14258 | arg2 = (int)(SWIG_As_int(obj1)); | |
14259 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14260 | } | |
d14a1e28 | 14261 | if (obj2) { |
093d3ff1 RD |
14262 | { |
14263 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14264 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14265 | } | |
d14a1e28 RD |
14266 | } |
14267 | { | |
14268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14269 | (arg1)->Show(arg2,arg3); | |
14270 | ||
14271 | wxPyEndAllowThreads(__tstate); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
14274 | Py_INCREF(Py_None); resultobj = Py_None; | |
14275 | return resultobj; | |
14276 | fail: | |
14277 | return NULL; | |
14278 | } | |
14279 | ||
14280 | ||
c32bde28 | 14281 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14282 | PyObject *resultobj; |
14283 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14284 | int result; | |
14285 | PyObject * obj0 = 0 ; | |
14286 | char *kwnames[] = { | |
14287 | (char *) "self", NULL | |
14288 | }; | |
14289 | ||
14290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14293 | { |
14294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14295 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
14296 | ||
14297 | wxPyEndAllowThreads(__tstate); | |
14298 | if (PyErr_Occurred()) SWIG_fail; | |
14299 | } | |
093d3ff1 RD |
14300 | { |
14301 | resultobj = SWIG_From_int((int)(result)); | |
14302 | } | |
d14a1e28 RD |
14303 | return resultobj; |
14304 | fail: | |
14305 | return NULL; | |
14306 | } | |
14307 | ||
14308 | ||
c32bde28 | 14309 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14310 | PyObject *resultobj; |
14311 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14312 | int result; | |
14313 | PyObject * obj0 = 0 ; | |
14314 | char *kwnames[] = { | |
14315 | (char *) "self", NULL | |
14316 | }; | |
14317 | ||
14318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14321 | { |
14322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14323 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
14324 | ||
14325 | wxPyEndAllowThreads(__tstate); | |
14326 | if (PyErr_Occurred()) SWIG_fail; | |
14327 | } | |
093d3ff1 RD |
14328 | { |
14329 | resultobj = SWIG_From_int((int)(result)); | |
14330 | } | |
d14a1e28 RD |
14331 | return resultobj; |
14332 | fail: | |
14333 | return NULL; | |
14334 | } | |
14335 | ||
14336 | ||
c32bde28 | 14337 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14338 | PyObject *resultobj; |
14339 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14340 | int arg2 ; | |
093d3ff1 | 14341 | wxDirection arg3 ; |
d14a1e28 RD |
14342 | long arg4 ; |
14343 | int result; | |
14344 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14345 | PyObject * obj1 = 0 ; |
14346 | PyObject * obj2 = 0 ; | |
14347 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14348 | char *kwnames[] = { |
14349 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
14350 | }; | |
14351 | ||
994141e6 | 14352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
14353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14355 | { | |
14356 | arg2 = (int)(SWIG_As_int(obj1)); | |
14357 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14358 | } | |
14359 | { | |
14360 | arg3 = (wxDirection)(SWIG_As_int(obj2)); | |
14361 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14362 | } | |
14363 | { | |
14364 | arg4 = (long)(SWIG_As_long(obj3)); | |
14365 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14366 | } | |
d14a1e28 RD |
14367 | { |
14368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14369 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
14370 | ||
14371 | wxPyEndAllowThreads(__tstate); | |
14372 | if (PyErr_Occurred()) SWIG_fail; | |
14373 | } | |
093d3ff1 RD |
14374 | { |
14375 | resultobj = SWIG_From_int((int)(result)); | |
14376 | } | |
d14a1e28 RD |
14377 | return resultobj; |
14378 | fail: | |
14379 | return NULL; | |
14380 | } | |
14381 | ||
14382 | ||
c32bde28 | 14383 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 14384 | PyObject *resultobj; |
093d3ff1 | 14385 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
14386 | wxVisualAttributes result; |
14387 | PyObject * obj0 = 0 ; | |
14388 | char *kwnames[] = { | |
14389 | (char *) "variant", NULL | |
14390 | }; | |
14391 | ||
14392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14393 | if (obj0) { | |
093d3ff1 RD |
14394 | { |
14395 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14397 | } | |
22bfe96c RD |
14398 | } |
14399 | { | |
110da5b0 | 14400 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14402 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14403 | ||
14404 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14405 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14406 | } |
14407 | { | |
14408 | wxVisualAttributes * resultptr; | |
093d3ff1 | 14409 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
14410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14411 | } | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
c32bde28 | 14418 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14419 | PyObject *obj; |
14420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14421 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
14422 | Py_INCREF(obj); | |
14423 | return Py_BuildValue((char *)""); | |
14424 | } | |
c32bde28 | 14425 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14426 | PyObject *resultobj; |
14427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14428 | int arg2 = (int) -1 ; |
14429 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14430 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
14431 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14432 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14433 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14434 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14435 | long arg6 = (long) 0 ; | |
14436 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14437 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14438 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
14439 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14440 | wxRadioButton *result; | |
ae8162c8 | 14441 | bool temp3 = false ; |
d14a1e28 RD |
14442 | wxPoint temp4 ; |
14443 | wxSize temp5 ; | |
ae8162c8 | 14444 | bool temp8 = false ; |
d14a1e28 | 14445 | PyObject * obj0 = 0 ; |
994141e6 | 14446 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14447 | PyObject * obj2 = 0 ; |
14448 | PyObject * obj3 = 0 ; | |
14449 | PyObject * obj4 = 0 ; | |
994141e6 | 14450 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14451 | PyObject * obj6 = 0 ; |
14452 | PyObject * obj7 = 0 ; | |
14453 | char *kwnames[] = { | |
14454 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14455 | }; | |
14456 | ||
248ed943 | 14457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
14458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14460 | if (obj1) { |
093d3ff1 RD |
14461 | { |
14462 | arg2 = (int)(SWIG_As_int(obj1)); | |
14463 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14464 | } | |
248ed943 RD |
14465 | } |
14466 | if (obj2) { | |
14467 | { | |
14468 | arg3 = wxString_in_helper(obj2); | |
14469 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14470 | temp3 = true; |
248ed943 | 14471 | } |
d14a1e28 RD |
14472 | } |
14473 | if (obj3) { | |
14474 | { | |
14475 | arg4 = &temp4; | |
14476 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14477 | } | |
14478 | } | |
14479 | if (obj4) { | |
14480 | { | |
14481 | arg5 = &temp5; | |
14482 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14483 | } | |
14484 | } | |
994141e6 | 14485 | if (obj5) { |
093d3ff1 RD |
14486 | { |
14487 | arg6 = (long)(SWIG_As_long(obj5)); | |
14488 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14489 | } | |
994141e6 | 14490 | } |
d14a1e28 | 14491 | if (obj6) { |
093d3ff1 RD |
14492 | { |
14493 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14494 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14495 | if (arg7 == NULL) { | |
14496 | SWIG_null_ref("wxValidator"); | |
14497 | } | |
14498 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
14499 | } |
14500 | } | |
14501 | if (obj7) { | |
14502 | { | |
14503 | arg8 = wxString_in_helper(obj7); | |
14504 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 14505 | temp8 = true; |
d14a1e28 RD |
14506 | } |
14507 | } | |
14508 | { | |
e3b71cb8 | 14509 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14511 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14512 | ||
14513 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14514 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14515 | } |
15afbcd0 | 14516 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
14517 | { |
14518 | if (temp3) | |
14519 | delete arg3; | |
14520 | } | |
14521 | { | |
14522 | if (temp8) | |
14523 | delete arg8; | |
14524 | } | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | { | |
14528 | if (temp3) | |
14529 | delete arg3; | |
14530 | } | |
14531 | { | |
14532 | if (temp8) | |
14533 | delete arg8; | |
14534 | } | |
14535 | return NULL; | |
14536 | } | |
14537 | ||
14538 | ||
c32bde28 | 14539 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14540 | PyObject *resultobj; |
14541 | wxRadioButton *result; | |
14542 | char *kwnames[] = { | |
14543 | NULL | |
14544 | }; | |
14545 | ||
14546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
14547 | { | |
e3b71cb8 | 14548 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14550 | result = (wxRadioButton *)new wxRadioButton(); | |
14551 | ||
14552 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14553 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14554 | } |
15afbcd0 | 14555 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
14556 | return resultobj; |
14557 | fail: | |
14558 | return NULL; | |
14559 | } | |
14560 | ||
14561 | ||
c32bde28 | 14562 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14563 | PyObject *resultobj; |
14564 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14565 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14566 | int arg3 = (int) -1 ; |
14567 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14568 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
14569 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14570 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14571 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14572 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14573 | long arg7 = (long) 0 ; | |
14574 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14575 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14576 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
14577 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14578 | bool result; | |
ae8162c8 | 14579 | bool temp4 = false ; |
d14a1e28 RD |
14580 | wxPoint temp5 ; |
14581 | wxSize temp6 ; | |
ae8162c8 | 14582 | bool temp9 = false ; |
d14a1e28 RD |
14583 | PyObject * obj0 = 0 ; |
14584 | PyObject * obj1 = 0 ; | |
994141e6 | 14585 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14586 | PyObject * obj3 = 0 ; |
14587 | PyObject * obj4 = 0 ; | |
14588 | PyObject * obj5 = 0 ; | |
994141e6 | 14589 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14590 | PyObject * obj7 = 0 ; |
14591 | PyObject * obj8 = 0 ; | |
14592 | char *kwnames[] = { | |
14593 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14594 | }; | |
14595 | ||
248ed943 | 14596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
14597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14599 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14600 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 14601 | if (obj2) { |
093d3ff1 RD |
14602 | { |
14603 | arg3 = (int)(SWIG_As_int(obj2)); | |
14604 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14605 | } | |
248ed943 RD |
14606 | } |
14607 | if (obj3) { | |
14608 | { | |
14609 | arg4 = wxString_in_helper(obj3); | |
14610 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14611 | temp4 = true; |
248ed943 | 14612 | } |
d14a1e28 RD |
14613 | } |
14614 | if (obj4) { | |
14615 | { | |
14616 | arg5 = &temp5; | |
14617 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14618 | } | |
14619 | } | |
14620 | if (obj5) { | |
14621 | { | |
14622 | arg6 = &temp6; | |
14623 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14624 | } | |
14625 | } | |
994141e6 | 14626 | if (obj6) { |
093d3ff1 RD |
14627 | { |
14628 | arg7 = (long)(SWIG_As_long(obj6)); | |
14629 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14630 | } | |
994141e6 | 14631 | } |
d14a1e28 | 14632 | if (obj7) { |
093d3ff1 RD |
14633 | { |
14634 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14635 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14636 | if (arg8 == NULL) { | |
14637 | SWIG_null_ref("wxValidator"); | |
14638 | } | |
14639 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
14640 | } |
14641 | } | |
14642 | if (obj8) { | |
14643 | { | |
14644 | arg9 = wxString_in_helper(obj8); | |
14645 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 14646 | temp9 = true; |
d14a1e28 RD |
14647 | } |
14648 | } | |
14649 | { | |
14650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14651 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14652 | ||
14653 | wxPyEndAllowThreads(__tstate); | |
14654 | if (PyErr_Occurred()) SWIG_fail; | |
14655 | } | |
4f89f6a3 RD |
14656 | { |
14657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14658 | } | |
d14a1e28 RD |
14659 | { |
14660 | if (temp4) | |
14661 | delete arg4; | |
14662 | } | |
14663 | { | |
14664 | if (temp9) | |
14665 | delete arg9; | |
14666 | } | |
14667 | return resultobj; | |
14668 | fail: | |
14669 | { | |
14670 | if (temp4) | |
14671 | delete arg4; | |
14672 | } | |
14673 | { | |
14674 | if (temp9) | |
14675 | delete arg9; | |
14676 | } | |
14677 | return NULL; | |
14678 | } | |
14679 | ||
14680 | ||
c32bde28 | 14681 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14682 | PyObject *resultobj; |
14683 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14684 | bool result; | |
14685 | PyObject * obj0 = 0 ; | |
14686 | char *kwnames[] = { | |
14687 | (char *) "self", NULL | |
14688 | }; | |
14689 | ||
14690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14693 | { |
14694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14695 | result = (bool)(arg1)->GetValue(); | |
14696 | ||
14697 | wxPyEndAllowThreads(__tstate); | |
14698 | if (PyErr_Occurred()) SWIG_fail; | |
14699 | } | |
4f89f6a3 RD |
14700 | { |
14701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14702 | } | |
d14a1e28 RD |
14703 | return resultobj; |
14704 | fail: | |
14705 | return NULL; | |
14706 | } | |
14707 | ||
14708 | ||
c32bde28 | 14709 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14710 | PyObject *resultobj; |
14711 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14712 | bool arg2 ; | |
14713 | PyObject * obj0 = 0 ; | |
14714 | PyObject * obj1 = 0 ; | |
14715 | char *kwnames[] = { | |
14716 | (char *) "self",(char *) "value", NULL | |
14717 | }; | |
14718 | ||
14719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14720 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14721 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14722 | { | |
14723 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14724 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14725 | } | |
d14a1e28 RD |
14726 | { |
14727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14728 | (arg1)->SetValue(arg2); | |
14729 | ||
14730 | wxPyEndAllowThreads(__tstate); | |
14731 | if (PyErr_Occurred()) SWIG_fail; | |
14732 | } | |
14733 | Py_INCREF(Py_None); resultobj = Py_None; | |
14734 | return resultobj; | |
14735 | fail: | |
14736 | return NULL; | |
14737 | } | |
14738 | ||
14739 | ||
c32bde28 | 14740 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 14741 | PyObject *resultobj; |
093d3ff1 | 14742 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
14743 | wxVisualAttributes result; |
14744 | PyObject * obj0 = 0 ; | |
14745 | char *kwnames[] = { | |
14746 | (char *) "variant", NULL | |
14747 | }; | |
14748 | ||
14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14750 | if (obj0) { | |
093d3ff1 RD |
14751 | { |
14752 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14753 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14754 | } | |
22bfe96c RD |
14755 | } |
14756 | { | |
110da5b0 | 14757 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14759 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14760 | ||
14761 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14762 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14763 | } |
14764 | { | |
14765 | wxVisualAttributes * resultptr; | |
093d3ff1 | 14766 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
14767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14768 | } | |
14769 | return resultobj; | |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
c32bde28 | 14775 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14776 | PyObject *obj; |
14777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14778 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
14779 | Py_INCREF(obj); | |
14780 | return Py_BuildValue((char *)""); | |
14781 | } | |
c32bde28 | 14782 | static int _wrap_SliderNameStr_set(PyObject *) { |
b2dc1044 RD |
14783 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
14784 | return 1; | |
14785 | } | |
14786 | ||
14787 | ||
093d3ff1 | 14788 | static PyObject *_wrap_SliderNameStr_get(void) { |
b2dc1044 RD |
14789 | PyObject *pyobj; |
14790 | ||
14791 | { | |
14792 | #if wxUSE_UNICODE | |
14793 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14794 | #else | |
14795 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14796 | #endif | |
14797 | } | |
14798 | return pyobj; | |
14799 | } | |
14800 | ||
14801 | ||
c32bde28 | 14802 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14803 | PyObject *resultobj; |
14804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14805 | int arg2 = (int) -1 ; |
14806 | int arg3 = (int) 0 ; | |
14807 | int arg4 = (int) 0 ; | |
14808 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
14809 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
14810 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
14811 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
14812 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
14813 | long arg8 = (long) wxSL_HORIZONTAL ; | |
14814 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
14815 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
14816 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
14817 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
14818 | wxSlider *result; | |
14819 | wxPoint temp6 ; | |
14820 | wxSize temp7 ; | |
ae8162c8 | 14821 | bool temp10 = false ; |
d14a1e28 | 14822 | PyObject * obj0 = 0 ; |
994141e6 RD |
14823 | PyObject * obj1 = 0 ; |
14824 | PyObject * obj2 = 0 ; | |
14825 | PyObject * obj3 = 0 ; | |
14826 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
14827 | PyObject * obj5 = 0 ; |
14828 | PyObject * obj6 = 0 ; | |
994141e6 | 14829 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
14830 | PyObject * obj8 = 0 ; |
14831 | PyObject * obj9 = 0 ; | |
14832 | char *kwnames[] = { | |
994141e6 | 14833 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
14834 | }; |
14835 | ||
248ed943 | 14836 | 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 |
14837 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14838 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14839 | if (obj1) { |
093d3ff1 RD |
14840 | { |
14841 | arg2 = (int)(SWIG_As_int(obj1)); | |
14842 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14843 | } | |
248ed943 RD |
14844 | } |
14845 | if (obj2) { | |
093d3ff1 RD |
14846 | { |
14847 | arg3 = (int)(SWIG_As_int(obj2)); | |
14848 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14849 | } | |
248ed943 RD |
14850 | } |
14851 | if (obj3) { | |
093d3ff1 RD |
14852 | { |
14853 | arg4 = (int)(SWIG_As_int(obj3)); | |
14854 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14855 | } | |
248ed943 RD |
14856 | } |
14857 | if (obj4) { | |
093d3ff1 RD |
14858 | { |
14859 | arg5 = (int)(SWIG_As_int(obj4)); | |
14860 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14861 | } | |
248ed943 | 14862 | } |
d14a1e28 RD |
14863 | if (obj5) { |
14864 | { | |
14865 | arg6 = &temp6; | |
14866 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
14867 | } | |
14868 | } | |
14869 | if (obj6) { | |
14870 | { | |
14871 | arg7 = &temp7; | |
14872 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
14873 | } | |
14874 | } | |
994141e6 | 14875 | if (obj7) { |
093d3ff1 RD |
14876 | { |
14877 | arg8 = (long)(SWIG_As_long(obj7)); | |
14878 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14879 | } | |
994141e6 | 14880 | } |
d14a1e28 | 14881 | if (obj8) { |
093d3ff1 RD |
14882 | { |
14883 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14884 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14885 | if (arg9 == NULL) { | |
14886 | SWIG_null_ref("wxValidator"); | |
14887 | } | |
14888 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
14889 | } |
14890 | } | |
14891 | if (obj9) { | |
14892 | { | |
14893 | arg10 = wxString_in_helper(obj9); | |
14894 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 14895 | temp10 = true; |
d14a1e28 RD |
14896 | } |
14897 | } | |
14898 | { | |
e3b71cb8 | 14899 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14901 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14904 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14905 | } |
15afbcd0 | 14906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
14907 | { |
14908 | if (temp10) | |
14909 | delete arg10; | |
14910 | } | |
14911 | return resultobj; | |
14912 | fail: | |
14913 | { | |
14914 | if (temp10) | |
14915 | delete arg10; | |
14916 | } | |
14917 | return NULL; | |
14918 | } | |
14919 | ||
14920 | ||
c32bde28 | 14921 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14922 | PyObject *resultobj; |
14923 | wxSlider *result; | |
14924 | char *kwnames[] = { | |
14925 | NULL | |
14926 | }; | |
14927 | ||
14928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
14929 | { | |
e3b71cb8 | 14930 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14932 | result = (wxSlider *)new wxSlider(); | |
14933 | ||
14934 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14935 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14936 | } |
15afbcd0 | 14937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
14938 | return resultobj; |
14939 | fail: | |
14940 | return NULL; | |
14941 | } | |
14942 | ||
14943 | ||
c32bde28 | 14944 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14945 | PyObject *resultobj; |
14946 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14947 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14948 | int arg3 = (int) -1 ; |
14949 | int arg4 = (int) 0 ; | |
14950 | int arg5 = (int) 0 ; | |
14951 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
14952 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
14953 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
14954 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
14955 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
14956 | long arg9 = (long) wxSL_HORIZONTAL ; | |
14957 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
14958 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
14959 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
14960 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
14961 | bool result; | |
14962 | wxPoint temp7 ; | |
14963 | wxSize temp8 ; | |
ae8162c8 | 14964 | bool temp11 = false ; |
d14a1e28 RD |
14965 | PyObject * obj0 = 0 ; |
14966 | PyObject * obj1 = 0 ; | |
994141e6 RD |
14967 | PyObject * obj2 = 0 ; |
14968 | PyObject * obj3 = 0 ; | |
14969 | PyObject * obj4 = 0 ; | |
14970 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
14971 | PyObject * obj6 = 0 ; |
14972 | PyObject * obj7 = 0 ; | |
994141e6 | 14973 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
14974 | PyObject * obj9 = 0 ; |
14975 | PyObject * obj10 = 0 ; | |
14976 | char *kwnames[] = { | |
994141e6 | 14977 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
14978 | }; |
14979 | ||
248ed943 | 14980 | 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 |
14981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
14982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14983 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 14985 | if (obj2) { |
093d3ff1 RD |
14986 | { |
14987 | arg3 = (int)(SWIG_As_int(obj2)); | |
14988 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14989 | } | |
248ed943 RD |
14990 | } |
14991 | if (obj3) { | |
093d3ff1 RD |
14992 | { |
14993 | arg4 = (int)(SWIG_As_int(obj3)); | |
14994 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14995 | } | |
248ed943 RD |
14996 | } |
14997 | if (obj4) { | |
093d3ff1 RD |
14998 | { |
14999 | arg5 = (int)(SWIG_As_int(obj4)); | |
15000 | if (SWIG_arg_fail(5)) SWIG_fail; | |
15001 | } | |
248ed943 RD |
15002 | } |
15003 | if (obj5) { | |
093d3ff1 RD |
15004 | { |
15005 | arg6 = (int)(SWIG_As_int(obj5)); | |
15006 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15007 | } | |
248ed943 | 15008 | } |
d14a1e28 RD |
15009 | if (obj6) { |
15010 | { | |
15011 | arg7 = &temp7; | |
15012 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
15013 | } | |
15014 | } | |
15015 | if (obj7) { | |
15016 | { | |
15017 | arg8 = &temp8; | |
15018 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
15019 | } | |
15020 | } | |
994141e6 | 15021 | if (obj8) { |
093d3ff1 RD |
15022 | { |
15023 | arg9 = (long)(SWIG_As_long(obj8)); | |
15024 | if (SWIG_arg_fail(9)) SWIG_fail; | |
15025 | } | |
994141e6 | 15026 | } |
d14a1e28 | 15027 | if (obj9) { |
093d3ff1 RD |
15028 | { |
15029 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15030 | if (SWIG_arg_fail(10)) SWIG_fail; | |
15031 | if (arg10 == NULL) { | |
15032 | SWIG_null_ref("wxValidator"); | |
15033 | } | |
15034 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d14a1e28 RD |
15035 | } |
15036 | } | |
15037 | if (obj10) { | |
15038 | { | |
15039 | arg11 = wxString_in_helper(obj10); | |
15040 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 15041 | temp11 = true; |
d14a1e28 RD |
15042 | } |
15043 | } | |
15044 | { | |
15045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15046 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
15047 | ||
15048 | wxPyEndAllowThreads(__tstate); | |
15049 | if (PyErr_Occurred()) SWIG_fail; | |
15050 | } | |
4f89f6a3 RD |
15051 | { |
15052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15053 | } | |
d14a1e28 RD |
15054 | { |
15055 | if (temp11) | |
15056 | delete arg11; | |
15057 | } | |
15058 | return resultobj; | |
15059 | fail: | |
15060 | { | |
15061 | if (temp11) | |
15062 | delete arg11; | |
15063 | } | |
15064 | return NULL; | |
15065 | } | |
15066 | ||
15067 | ||
c32bde28 | 15068 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15069 | PyObject *resultobj; |
15070 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15071 | int result; | |
15072 | PyObject * obj0 = 0 ; | |
15073 | char *kwnames[] = { | |
15074 | (char *) "self", NULL | |
15075 | }; | |
15076 | ||
15077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15080 | { |
15081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15082 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
15083 | ||
15084 | wxPyEndAllowThreads(__tstate); | |
15085 | if (PyErr_Occurred()) SWIG_fail; | |
15086 | } | |
093d3ff1 RD |
15087 | { |
15088 | resultobj = SWIG_From_int((int)(result)); | |
15089 | } | |
d14a1e28 RD |
15090 | return resultobj; |
15091 | fail: | |
15092 | return NULL; | |
15093 | } | |
15094 | ||
15095 | ||
c32bde28 | 15096 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15097 | PyObject *resultobj; |
15098 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15099 | int arg2 ; | |
15100 | PyObject * obj0 = 0 ; | |
994141e6 | 15101 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15102 | char *kwnames[] = { |
15103 | (char *) "self",(char *) "value", NULL | |
15104 | }; | |
15105 | ||
994141e6 | 15106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15107 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15108 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15109 | { | |
15110 | arg2 = (int)(SWIG_As_int(obj1)); | |
15111 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15112 | } | |
d14a1e28 RD |
15113 | { |
15114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15115 | (arg1)->SetValue(arg2); | |
15116 | ||
15117 | wxPyEndAllowThreads(__tstate); | |
15118 | if (PyErr_Occurred()) SWIG_fail; | |
15119 | } | |
15120 | Py_INCREF(Py_None); resultobj = Py_None; | |
15121 | return resultobj; | |
15122 | fail: | |
15123 | return NULL; | |
15124 | } | |
15125 | ||
15126 | ||
c32bde28 | 15127 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15128 | PyObject *resultobj; |
15129 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15130 | int arg2 ; | |
15131 | int arg3 ; | |
15132 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15133 | PyObject * obj1 = 0 ; |
15134 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15135 | char *kwnames[] = { |
15136 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
15137 | }; | |
15138 | ||
994141e6 | 15139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15142 | { | |
15143 | arg2 = (int)(SWIG_As_int(obj1)); | |
15144 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15145 | } | |
15146 | { | |
15147 | arg3 = (int)(SWIG_As_int(obj2)); | |
15148 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15149 | } | |
d14a1e28 RD |
15150 | { |
15151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15152 | (arg1)->SetRange(arg2,arg3); | |
15153 | ||
15154 | wxPyEndAllowThreads(__tstate); | |
15155 | if (PyErr_Occurred()) SWIG_fail; | |
15156 | } | |
15157 | Py_INCREF(Py_None); resultobj = Py_None; | |
15158 | return resultobj; | |
15159 | fail: | |
15160 | return NULL; | |
15161 | } | |
15162 | ||
15163 | ||
c32bde28 | 15164 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15165 | PyObject *resultobj; |
15166 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15167 | int result; | |
15168 | PyObject * obj0 = 0 ; | |
15169 | char *kwnames[] = { | |
15170 | (char *) "self", NULL | |
15171 | }; | |
15172 | ||
15173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15176 | { |
15177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15178 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
15179 | ||
15180 | wxPyEndAllowThreads(__tstate); | |
15181 | if (PyErr_Occurred()) SWIG_fail; | |
15182 | } | |
093d3ff1 RD |
15183 | { |
15184 | resultobj = SWIG_From_int((int)(result)); | |
15185 | } | |
d14a1e28 RD |
15186 | return resultobj; |
15187 | fail: | |
15188 | return NULL; | |
15189 | } | |
15190 | ||
15191 | ||
c32bde28 | 15192 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15193 | PyObject *resultobj; |
15194 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15195 | int result; | |
15196 | PyObject * obj0 = 0 ; | |
15197 | char *kwnames[] = { | |
15198 | (char *) "self", NULL | |
15199 | }; | |
15200 | ||
15201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15202 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15203 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15204 | { |
15205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15206 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
15207 | ||
15208 | wxPyEndAllowThreads(__tstate); | |
15209 | if (PyErr_Occurred()) SWIG_fail; | |
15210 | } | |
093d3ff1 RD |
15211 | { |
15212 | resultobj = SWIG_From_int((int)(result)); | |
15213 | } | |
d14a1e28 RD |
15214 | return resultobj; |
15215 | fail: | |
15216 | return NULL; | |
15217 | } | |
15218 | ||
15219 | ||
c32bde28 | 15220 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15221 | PyObject *resultobj; |
15222 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15223 | int arg2 ; | |
15224 | PyObject * obj0 = 0 ; | |
994141e6 | 15225 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15226 | char *kwnames[] = { |
15227 | (char *) "self",(char *) "minValue", NULL | |
15228 | }; | |
15229 | ||
994141e6 | 15230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15233 | { | |
15234 | arg2 = (int)(SWIG_As_int(obj1)); | |
15235 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15236 | } | |
d14a1e28 RD |
15237 | { |
15238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15239 | (arg1)->SetMin(arg2); | |
15240 | ||
15241 | wxPyEndAllowThreads(__tstate); | |
15242 | if (PyErr_Occurred()) SWIG_fail; | |
15243 | } | |
15244 | Py_INCREF(Py_None); resultobj = Py_None; | |
15245 | return resultobj; | |
15246 | fail: | |
15247 | return NULL; | |
15248 | } | |
15249 | ||
15250 | ||
c32bde28 | 15251 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15252 | PyObject *resultobj; |
15253 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15254 | int arg2 ; | |
15255 | PyObject * obj0 = 0 ; | |
994141e6 | 15256 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15257 | char *kwnames[] = { |
15258 | (char *) "self",(char *) "maxValue", NULL | |
15259 | }; | |
15260 | ||
994141e6 | 15261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15264 | { | |
15265 | arg2 = (int)(SWIG_As_int(obj1)); | |
15266 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15267 | } | |
d14a1e28 RD |
15268 | { |
15269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15270 | (arg1)->SetMax(arg2); | |
15271 | ||
15272 | wxPyEndAllowThreads(__tstate); | |
15273 | if (PyErr_Occurred()) SWIG_fail; | |
15274 | } | |
15275 | Py_INCREF(Py_None); resultobj = Py_None; | |
15276 | return resultobj; | |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
c32bde28 | 15282 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15283 | PyObject *resultobj; |
15284 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15285 | int arg2 ; | |
15286 | PyObject * obj0 = 0 ; | |
994141e6 | 15287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15288 | char *kwnames[] = { |
15289 | (char *) "self",(char *) "lineSize", NULL | |
15290 | }; | |
15291 | ||
994141e6 | 15292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15295 | { | |
15296 | arg2 = (int)(SWIG_As_int(obj1)); | |
15297 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15298 | } | |
d14a1e28 RD |
15299 | { |
15300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15301 | (arg1)->SetLineSize(arg2); | |
15302 | ||
15303 | wxPyEndAllowThreads(__tstate); | |
15304 | if (PyErr_Occurred()) SWIG_fail; | |
15305 | } | |
15306 | Py_INCREF(Py_None); resultobj = Py_None; | |
15307 | return resultobj; | |
15308 | fail: | |
15309 | return NULL; | |
15310 | } | |
15311 | ||
15312 | ||
c32bde28 | 15313 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15314 | PyObject *resultobj; |
15315 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15316 | int arg2 ; | |
15317 | PyObject * obj0 = 0 ; | |
994141e6 | 15318 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15319 | char *kwnames[] = { |
15320 | (char *) "self",(char *) "pageSize", NULL | |
15321 | }; | |
15322 | ||
994141e6 | 15323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15326 | { | |
15327 | arg2 = (int)(SWIG_As_int(obj1)); | |
15328 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15329 | } | |
d14a1e28 RD |
15330 | { |
15331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15332 | (arg1)->SetPageSize(arg2); | |
15333 | ||
15334 | wxPyEndAllowThreads(__tstate); | |
15335 | if (PyErr_Occurred()) SWIG_fail; | |
15336 | } | |
15337 | Py_INCREF(Py_None); resultobj = Py_None; | |
15338 | return resultobj; | |
15339 | fail: | |
15340 | return NULL; | |
15341 | } | |
15342 | ||
15343 | ||
c32bde28 | 15344 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15345 | PyObject *resultobj; |
15346 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15347 | int result; | |
15348 | PyObject * obj0 = 0 ; | |
15349 | char *kwnames[] = { | |
15350 | (char *) "self", NULL | |
15351 | }; | |
15352 | ||
15353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15356 | { |
15357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15358 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
15359 | ||
15360 | wxPyEndAllowThreads(__tstate); | |
15361 | if (PyErr_Occurred()) SWIG_fail; | |
15362 | } | |
093d3ff1 RD |
15363 | { |
15364 | resultobj = SWIG_From_int((int)(result)); | |
15365 | } | |
d14a1e28 RD |
15366 | return resultobj; |
15367 | fail: | |
15368 | return NULL; | |
15369 | } | |
15370 | ||
15371 | ||
c32bde28 | 15372 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15373 | PyObject *resultobj; |
15374 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15375 | int result; | |
15376 | PyObject * obj0 = 0 ; | |
15377 | char *kwnames[] = { | |
15378 | (char *) "self", NULL | |
15379 | }; | |
15380 | ||
15381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15384 | { |
15385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15386 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
15387 | ||
15388 | wxPyEndAllowThreads(__tstate); | |
15389 | if (PyErr_Occurred()) SWIG_fail; | |
15390 | } | |
093d3ff1 RD |
15391 | { |
15392 | resultobj = SWIG_From_int((int)(result)); | |
15393 | } | |
d14a1e28 RD |
15394 | return resultobj; |
15395 | fail: | |
15396 | return NULL; | |
15397 | } | |
15398 | ||
15399 | ||
c32bde28 | 15400 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15401 | PyObject *resultobj; |
15402 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15403 | int arg2 ; | |
15404 | PyObject * obj0 = 0 ; | |
994141e6 | 15405 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15406 | char *kwnames[] = { |
15407 | (char *) "self",(char *) "lenPixels", NULL | |
15408 | }; | |
15409 | ||
994141e6 | 15410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15411 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15413 | { | |
15414 | arg2 = (int)(SWIG_As_int(obj1)); | |
15415 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15416 | } | |
d14a1e28 RD |
15417 | { |
15418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15419 | (arg1)->SetThumbLength(arg2); | |
15420 | ||
15421 | wxPyEndAllowThreads(__tstate); | |
15422 | if (PyErr_Occurred()) SWIG_fail; | |
15423 | } | |
15424 | Py_INCREF(Py_None); resultobj = Py_None; | |
15425 | return resultobj; | |
15426 | fail: | |
15427 | return NULL; | |
15428 | } | |
15429 | ||
15430 | ||
c32bde28 | 15431 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15432 | PyObject *resultobj; |
15433 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15434 | int result; | |
15435 | PyObject * obj0 = 0 ; | |
15436 | char *kwnames[] = { | |
15437 | (char *) "self", NULL | |
15438 | }; | |
15439 | ||
15440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15443 | { |
15444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15445 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
15446 | ||
15447 | wxPyEndAllowThreads(__tstate); | |
15448 | if (PyErr_Occurred()) SWIG_fail; | |
15449 | } | |
093d3ff1 RD |
15450 | { |
15451 | resultobj = SWIG_From_int((int)(result)); | |
15452 | } | |
d14a1e28 RD |
15453 | return resultobj; |
15454 | fail: | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
c32bde28 | 15459 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15460 | PyObject *resultobj; |
15461 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15462 | int arg2 ; | |
994141e6 | 15463 | int arg3 = (int) 1 ; |
d14a1e28 | 15464 | PyObject * obj0 = 0 ; |
994141e6 RD |
15465 | PyObject * obj1 = 0 ; |
15466 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15467 | char *kwnames[] = { |
15468 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
15469 | }; | |
15470 | ||
994141e6 | 15471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15474 | { | |
15475 | arg2 = (int)(SWIG_As_int(obj1)); | |
15476 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15477 | } | |
994141e6 | 15478 | if (obj2) { |
093d3ff1 RD |
15479 | { |
15480 | arg3 = (int)(SWIG_As_int(obj2)); | |
15481 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15482 | } | |
994141e6 | 15483 | } |
d14a1e28 RD |
15484 | { |
15485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15486 | (arg1)->SetTickFreq(arg2,arg3); | |
15487 | ||
15488 | wxPyEndAllowThreads(__tstate); | |
15489 | if (PyErr_Occurred()) SWIG_fail; | |
15490 | } | |
15491 | Py_INCREF(Py_None); resultobj = Py_None; | |
15492 | return resultobj; | |
15493 | fail: | |
15494 | return NULL; | |
15495 | } | |
15496 | ||
15497 | ||
c32bde28 | 15498 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15499 | PyObject *resultobj; |
15500 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15501 | int result; | |
15502 | PyObject * obj0 = 0 ; | |
15503 | char *kwnames[] = { | |
15504 | (char *) "self", NULL | |
15505 | }; | |
15506 | ||
15507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15510 | { |
15511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15512 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
15513 | ||
15514 | wxPyEndAllowThreads(__tstate); | |
15515 | if (PyErr_Occurred()) SWIG_fail; | |
15516 | } | |
093d3ff1 RD |
15517 | { |
15518 | resultobj = SWIG_From_int((int)(result)); | |
15519 | } | |
d14a1e28 RD |
15520 | return resultobj; |
15521 | fail: | |
15522 | return NULL; | |
15523 | } | |
15524 | ||
15525 | ||
c32bde28 | 15526 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15527 | PyObject *resultobj; |
15528 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15529 | PyObject * obj0 = 0 ; | |
15530 | char *kwnames[] = { | |
15531 | (char *) "self", NULL | |
15532 | }; | |
15533 | ||
15534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15537 | { |
15538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15539 | (arg1)->ClearTicks(); | |
15540 | ||
15541 | wxPyEndAllowThreads(__tstate); | |
15542 | if (PyErr_Occurred()) SWIG_fail; | |
15543 | } | |
15544 | Py_INCREF(Py_None); resultobj = Py_None; | |
15545 | return resultobj; | |
15546 | fail: | |
15547 | return NULL; | |
15548 | } | |
15549 | ||
15550 | ||
c32bde28 | 15551 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15552 | PyObject *resultobj; |
15553 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15554 | int arg2 ; | |
15555 | PyObject * obj0 = 0 ; | |
994141e6 | 15556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15557 | char *kwnames[] = { |
15558 | (char *) "self",(char *) "tickPos", NULL | |
15559 | }; | |
15560 | ||
994141e6 | 15561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15564 | { | |
15565 | arg2 = (int)(SWIG_As_int(obj1)); | |
15566 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15567 | } | |
d14a1e28 RD |
15568 | { |
15569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15570 | (arg1)->SetTick(arg2); | |
15571 | ||
15572 | wxPyEndAllowThreads(__tstate); | |
15573 | if (PyErr_Occurred()) SWIG_fail; | |
15574 | } | |
15575 | Py_INCREF(Py_None); resultobj = Py_None; | |
15576 | return resultobj; | |
15577 | fail: | |
15578 | return NULL; | |
15579 | } | |
15580 | ||
15581 | ||
c32bde28 | 15582 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15583 | PyObject *resultobj; |
15584 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15585 | PyObject * obj0 = 0 ; | |
15586 | char *kwnames[] = { | |
15587 | (char *) "self", NULL | |
15588 | }; | |
15589 | ||
15590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15593 | { |
15594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15595 | (arg1)->ClearSel(); | |
15596 | ||
15597 | wxPyEndAllowThreads(__tstate); | |
15598 | if (PyErr_Occurred()) SWIG_fail; | |
15599 | } | |
15600 | Py_INCREF(Py_None); resultobj = Py_None; | |
15601 | return resultobj; | |
15602 | fail: | |
15603 | return NULL; | |
15604 | } | |
15605 | ||
15606 | ||
c32bde28 | 15607 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15608 | PyObject *resultobj; |
15609 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15610 | int result; | |
15611 | PyObject * obj0 = 0 ; | |
15612 | char *kwnames[] = { | |
15613 | (char *) "self", NULL | |
15614 | }; | |
15615 | ||
15616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15619 | { |
15620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15621 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
15622 | ||
15623 | wxPyEndAllowThreads(__tstate); | |
15624 | if (PyErr_Occurred()) SWIG_fail; | |
15625 | } | |
093d3ff1 RD |
15626 | { |
15627 | resultobj = SWIG_From_int((int)(result)); | |
15628 | } | |
d14a1e28 RD |
15629 | return resultobj; |
15630 | fail: | |
15631 | return NULL; | |
15632 | } | |
15633 | ||
15634 | ||
c32bde28 | 15635 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15636 | PyObject *resultobj; |
15637 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15638 | int result; | |
15639 | PyObject * obj0 = 0 ; | |
15640 | char *kwnames[] = { | |
15641 | (char *) "self", NULL | |
15642 | }; | |
15643 | ||
15644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15647 | { |
15648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15649 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
15650 | ||
15651 | wxPyEndAllowThreads(__tstate); | |
15652 | if (PyErr_Occurred()) SWIG_fail; | |
15653 | } | |
093d3ff1 RD |
15654 | { |
15655 | resultobj = SWIG_From_int((int)(result)); | |
15656 | } | |
d14a1e28 RD |
15657 | return resultobj; |
15658 | fail: | |
15659 | return NULL; | |
15660 | } | |
15661 | ||
15662 | ||
c32bde28 | 15663 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15664 | PyObject *resultobj; |
15665 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15666 | int arg2 ; | |
15667 | int arg3 ; | |
15668 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15669 | PyObject * obj1 = 0 ; |
15670 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15671 | char *kwnames[] = { |
15672 | (char *) "self",(char *) "min",(char *) "max", NULL | |
15673 | }; | |
15674 | ||
994141e6 | 15675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15678 | { | |
15679 | arg2 = (int)(SWIG_As_int(obj1)); | |
15680 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15681 | } | |
15682 | { | |
15683 | arg3 = (int)(SWIG_As_int(obj2)); | |
15684 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15685 | } | |
d14a1e28 RD |
15686 | { |
15687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15688 | (arg1)->SetSelection(arg2,arg3); | |
15689 | ||
15690 | wxPyEndAllowThreads(__tstate); | |
15691 | if (PyErr_Occurred()) SWIG_fail; | |
15692 | } | |
15693 | Py_INCREF(Py_None); resultobj = Py_None; | |
15694 | return resultobj; | |
15695 | fail: | |
15696 | return NULL; | |
15697 | } | |
15698 | ||
15699 | ||
c32bde28 | 15700 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 15701 | PyObject *resultobj; |
093d3ff1 | 15702 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
15703 | wxVisualAttributes result; |
15704 | PyObject * obj0 = 0 ; | |
15705 | char *kwnames[] = { | |
15706 | (char *) "variant", NULL | |
15707 | }; | |
15708 | ||
15709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15710 | if (obj0) { | |
093d3ff1 RD |
15711 | { |
15712 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
15713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15714 | } | |
22bfe96c RD |
15715 | } |
15716 | { | |
110da5b0 | 15717 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
15718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15719 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15720 | ||
15721 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15722 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15723 | } |
15724 | { | |
15725 | wxVisualAttributes * resultptr; | |
093d3ff1 | 15726 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
15727 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
15728 | } | |
15729 | return resultobj; | |
15730 | fail: | |
15731 | return NULL; | |
15732 | } | |
15733 | ||
15734 | ||
c32bde28 | 15735 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15736 | PyObject *obj; |
15737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15738 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
15739 | Py_INCREF(obj); | |
15740 | return Py_BuildValue((char *)""); | |
15741 | } | |
c32bde28 | 15742 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
15743 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
15744 | return 1; | |
15745 | } | |
15746 | ||
15747 | ||
093d3ff1 | 15748 | static PyObject *_wrap_ToggleButtonNameStr_get(void) { |
b2dc1044 RD |
15749 | PyObject *pyobj; |
15750 | ||
15751 | { | |
15752 | #if wxUSE_UNICODE | |
15753 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15754 | #else | |
15755 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15756 | #endif | |
15757 | } | |
15758 | return pyobj; | |
15759 | } | |
15760 | ||
15761 | ||
c32bde28 | 15762 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15763 | PyObject *resultobj; |
15764 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
15765 | int arg2 = (int) -1 ; |
15766 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15767 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
15768 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15769 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15770 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15771 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15772 | long arg6 = (long) 0 ; | |
15773 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
15774 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
15775 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
15776 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15777 | wxToggleButton *result; | |
ae8162c8 | 15778 | bool temp3 = false ; |
d14a1e28 RD |
15779 | wxPoint temp4 ; |
15780 | wxSize temp5 ; | |
ae8162c8 | 15781 | bool temp8 = false ; |
d14a1e28 | 15782 | PyObject * obj0 = 0 ; |
994141e6 | 15783 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15784 | PyObject * obj2 = 0 ; |
15785 | PyObject * obj3 = 0 ; | |
15786 | PyObject * obj4 = 0 ; | |
994141e6 | 15787 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15788 | PyObject * obj6 = 0 ; |
15789 | PyObject * obj7 = 0 ; | |
15790 | char *kwnames[] = { | |
15791 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15792 | }; | |
15793 | ||
248ed943 | 15794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
15795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
15796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 15797 | if (obj1) { |
093d3ff1 RD |
15798 | { |
15799 | arg2 = (int)(SWIG_As_int(obj1)); | |
15800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15801 | } | |
248ed943 RD |
15802 | } |
15803 | if (obj2) { | |
15804 | { | |
15805 | arg3 = wxString_in_helper(obj2); | |
15806 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15807 | temp3 = true; |
248ed943 | 15808 | } |
d14a1e28 RD |
15809 | } |
15810 | if (obj3) { | |
15811 | { | |
15812 | arg4 = &temp4; | |
15813 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15814 | } | |
15815 | } | |
15816 | if (obj4) { | |
15817 | { | |
15818 | arg5 = &temp5; | |
15819 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15820 | } | |
15821 | } | |
994141e6 | 15822 | if (obj5) { |
093d3ff1 RD |
15823 | { |
15824 | arg6 = (long)(SWIG_As_long(obj5)); | |
15825 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15826 | } | |
994141e6 | 15827 | } |
d14a1e28 | 15828 | if (obj6) { |
093d3ff1 RD |
15829 | { |
15830 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15831 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15832 | if (arg7 == NULL) { | |
15833 | SWIG_null_ref("wxValidator"); | |
15834 | } | |
15835 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
15836 | } |
15837 | } | |
15838 | if (obj7) { | |
15839 | { | |
15840 | arg8 = wxString_in_helper(obj7); | |
15841 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 15842 | temp8 = true; |
d14a1e28 RD |
15843 | } |
15844 | } | |
15845 | { | |
e3b71cb8 | 15846 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15848 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
15849 | ||
15850 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15851 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15852 | } |
15afbcd0 | 15853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
15854 | { |
15855 | if (temp3) | |
15856 | delete arg3; | |
15857 | } | |
15858 | { | |
15859 | if (temp8) | |
15860 | delete arg8; | |
15861 | } | |
15862 | return resultobj; | |
15863 | fail: | |
15864 | { | |
15865 | if (temp3) | |
15866 | delete arg3; | |
15867 | } | |
15868 | { | |
15869 | if (temp8) | |
15870 | delete arg8; | |
15871 | } | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
c32bde28 | 15876 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15877 | PyObject *resultobj; |
15878 | wxToggleButton *result; | |
15879 | char *kwnames[] = { | |
15880 | NULL | |
15881 | }; | |
15882 | ||
15883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
15884 | { | |
e3b71cb8 | 15885 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15887 | result = (wxToggleButton *)new wxToggleButton(); | |
15888 | ||
15889 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15890 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15891 | } |
15afbcd0 | 15892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
15893 | return resultobj; |
15894 | fail: | |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
c32bde28 | 15899 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15900 | PyObject *resultobj; |
15901 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15902 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
15903 | int arg3 = (int) -1 ; |
15904 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15905 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
15906 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
15907 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15908 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15909 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15910 | long arg7 = (long) 0 ; | |
15911 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
15912 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
15913 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
15914 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15915 | bool result; | |
ae8162c8 | 15916 | bool temp4 = false ; |
d14a1e28 RD |
15917 | wxPoint temp5 ; |
15918 | wxSize temp6 ; | |
ae8162c8 | 15919 | bool temp9 = false ; |
d14a1e28 RD |
15920 | PyObject * obj0 = 0 ; |
15921 | PyObject * obj1 = 0 ; | |
994141e6 | 15922 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15923 | PyObject * obj3 = 0 ; |
15924 | PyObject * obj4 = 0 ; | |
15925 | PyObject * obj5 = 0 ; | |
994141e6 | 15926 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15927 | PyObject * obj7 = 0 ; |
15928 | PyObject * obj8 = 0 ; | |
15929 | char *kwnames[] = { | |
15930 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15931 | }; | |
15932 | ||
248ed943 | 15933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
15934 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15935 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15936 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 15938 | if (obj2) { |
093d3ff1 RD |
15939 | { |
15940 | arg3 = (int)(SWIG_As_int(obj2)); | |
15941 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15942 | } | |
248ed943 RD |
15943 | } |
15944 | if (obj3) { | |
15945 | { | |
15946 | arg4 = wxString_in_helper(obj3); | |
15947 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 15948 | temp4 = true; |
248ed943 | 15949 | } |
d14a1e28 RD |
15950 | } |
15951 | if (obj4) { | |
15952 | { | |
15953 | arg5 = &temp5; | |
15954 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15955 | } | |
15956 | } | |
15957 | if (obj5) { | |
15958 | { | |
15959 | arg6 = &temp6; | |
15960 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15961 | } | |
15962 | } | |
994141e6 | 15963 | if (obj6) { |
093d3ff1 RD |
15964 | { |
15965 | arg7 = (long)(SWIG_As_long(obj6)); | |
15966 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15967 | } | |
994141e6 | 15968 | } |
d14a1e28 | 15969 | if (obj7) { |
093d3ff1 RD |
15970 | { |
15971 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15972 | if (SWIG_arg_fail(8)) SWIG_fail; | |
15973 | if (arg8 == NULL) { | |
15974 | SWIG_null_ref("wxValidator"); | |
15975 | } | |
15976 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
15977 | } |
15978 | } | |
15979 | if (obj8) { | |
15980 | { | |
15981 | arg9 = wxString_in_helper(obj8); | |
15982 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 15983 | temp9 = true; |
d14a1e28 RD |
15984 | } |
15985 | } | |
15986 | { | |
15987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15988 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
15989 | ||
15990 | wxPyEndAllowThreads(__tstate); | |
15991 | if (PyErr_Occurred()) SWIG_fail; | |
15992 | } | |
4f89f6a3 RD |
15993 | { |
15994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15995 | } | |
d14a1e28 RD |
15996 | { |
15997 | if (temp4) | |
15998 | delete arg4; | |
15999 | } | |
16000 | { | |
16001 | if (temp9) | |
16002 | delete arg9; | |
16003 | } | |
16004 | return resultobj; | |
16005 | fail: | |
16006 | { | |
16007 | if (temp4) | |
16008 | delete arg4; | |
16009 | } | |
16010 | { | |
16011 | if (temp9) | |
16012 | delete arg9; | |
16013 | } | |
16014 | return NULL; | |
16015 | } | |
16016 | ||
16017 | ||
c32bde28 | 16018 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16019 | PyObject *resultobj; |
16020 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
16021 | bool arg2 ; | |
16022 | PyObject * obj0 = 0 ; | |
16023 | PyObject * obj1 = 0 ; | |
16024 | char *kwnames[] = { | |
16025 | (char *) "self",(char *) "value", NULL | |
16026 | }; | |
16027 | ||
16028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16031 | { | |
16032 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16033 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16034 | } | |
d14a1e28 RD |
16035 | { |
16036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16037 | (arg1)->SetValue(arg2); | |
16038 | ||
16039 | wxPyEndAllowThreads(__tstate); | |
16040 | if (PyErr_Occurred()) SWIG_fail; | |
16041 | } | |
16042 | Py_INCREF(Py_None); resultobj = Py_None; | |
16043 | return resultobj; | |
16044 | fail: | |
16045 | return NULL; | |
16046 | } | |
16047 | ||
16048 | ||
c32bde28 | 16049 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16050 | PyObject *resultobj; |
16051 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
16052 | bool result; | |
16053 | PyObject * obj0 = 0 ; | |
16054 | char *kwnames[] = { | |
16055 | (char *) "self", NULL | |
16056 | }; | |
16057 | ||
16058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16061 | { |
16062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16063 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
16064 | ||
16065 | wxPyEndAllowThreads(__tstate); | |
16066 | if (PyErr_Occurred()) SWIG_fail; | |
16067 | } | |
4f89f6a3 RD |
16068 | { |
16069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16070 | } | |
d14a1e28 RD |
16071 | return resultobj; |
16072 | fail: | |
16073 | return NULL; | |
16074 | } | |
16075 | ||
16076 | ||
c32bde28 | 16077 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16078 | PyObject *resultobj; |
16079 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
16080 | wxString *arg2 = 0 ; | |
ae8162c8 | 16081 | bool temp2 = false ; |
d14a1e28 RD |
16082 | PyObject * obj0 = 0 ; |
16083 | PyObject * obj1 = 0 ; | |
16084 | char *kwnames[] = { | |
16085 | (char *) "self",(char *) "label", NULL | |
16086 | }; | |
16087 | ||
16088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16091 | { |
16092 | arg2 = wxString_in_helper(obj1); | |
16093 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16094 | temp2 = true; |
d14a1e28 RD |
16095 | } |
16096 | { | |
16097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16098 | (arg1)->SetLabel((wxString const &)*arg2); | |
16099 | ||
16100 | wxPyEndAllowThreads(__tstate); | |
16101 | if (PyErr_Occurred()) SWIG_fail; | |
16102 | } | |
16103 | Py_INCREF(Py_None); resultobj = Py_None; | |
16104 | { | |
16105 | if (temp2) | |
16106 | delete arg2; | |
16107 | } | |
16108 | return resultobj; | |
16109 | fail: | |
16110 | { | |
16111 | if (temp2) | |
16112 | delete arg2; | |
16113 | } | |
16114 | return NULL; | |
16115 | } | |
16116 | ||
16117 | ||
c32bde28 | 16118 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 16119 | PyObject *resultobj; |
093d3ff1 | 16120 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
16121 | wxVisualAttributes result; |
16122 | PyObject * obj0 = 0 ; | |
16123 | char *kwnames[] = { | |
16124 | (char *) "variant", NULL | |
16125 | }; | |
16126 | ||
16127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
16128 | if (obj0) { | |
093d3ff1 RD |
16129 | { |
16130 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16132 | } | |
22bfe96c RD |
16133 | } |
16134 | { | |
110da5b0 | 16135 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
16136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16137 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
16138 | ||
16139 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 16140 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
16141 | } |
16142 | { | |
16143 | wxVisualAttributes * resultptr; | |
093d3ff1 | 16144 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
16145 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16146 | } | |
16147 | return resultobj; | |
16148 | fail: | |
16149 | return NULL; | |
16150 | } | |
16151 | ||
16152 | ||
c32bde28 | 16153 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16154 | PyObject *obj; |
16155 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16156 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
16157 | Py_INCREF(obj); | |
16158 | return Py_BuildValue((char *)""); | |
16159 | } | |
51b83b37 RD |
16160 | static int _wrap_NotebookNameStr_set(PyObject *) { |
16161 | PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only."); | |
b2dc1044 RD |
16162 | return 1; |
16163 | } | |
16164 | ||
16165 | ||
51b83b37 | 16166 | static PyObject *_wrap_NotebookNameStr_get(void) { |
b2dc1044 RD |
16167 | PyObject *pyobj; |
16168 | ||
16169 | { | |
16170 | #if wxUSE_UNICODE | |
51b83b37 | 16171 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
b2dc1044 | 16172 | #else |
51b83b37 | 16173 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
b2dc1044 RD |
16174 | #endif |
16175 | } | |
16176 | return pyobj; | |
16177 | } | |
16178 | ||
16179 | ||
8ac8dba0 | 16180 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16181 | PyObject *resultobj; |
8ac8dba0 | 16182 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16183 | size_t result; |
16184 | PyObject * obj0 = 0 ; | |
16185 | char *kwnames[] = { | |
16186 | (char *) "self", NULL | |
16187 | }; | |
16188 | ||
8ac8dba0 | 16189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16192 | { |
16193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16194 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); |
d14a1e28 RD |
16195 | |
16196 | wxPyEndAllowThreads(__tstate); | |
16197 | if (PyErr_Occurred()) SWIG_fail; | |
16198 | } | |
093d3ff1 RD |
16199 | { |
16200 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
16201 | } | |
d14a1e28 RD |
16202 | return resultobj; |
16203 | fail: | |
16204 | return NULL; | |
16205 | } | |
16206 | ||
16207 | ||
8ac8dba0 | 16208 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16209 | PyObject *resultobj; |
8ac8dba0 | 16210 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16211 | size_t arg2 ; |
16212 | wxWindow *result; | |
16213 | PyObject * obj0 = 0 ; | |
16214 | PyObject * obj1 = 0 ; | |
16215 | char *kwnames[] = { | |
16216 | (char *) "self",(char *) "n", NULL | |
16217 | }; | |
16218 | ||
8ac8dba0 | 16219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16222 | { | |
16223 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16225 | } | |
d14a1e28 RD |
16226 | { |
16227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16228 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
16229 | ||
16230 | wxPyEndAllowThreads(__tstate); | |
16231 | if (PyErr_Occurred()) SWIG_fail; | |
16232 | } | |
16233 | { | |
412d302d | 16234 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16235 | } |
16236 | return resultobj; | |
16237 | fail: | |
16238 | return NULL; | |
16239 | } | |
16240 | ||
16241 | ||
8ac8dba0 | 16242 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
8fb0e70a | 16243 | PyObject *resultobj; |
8ac8dba0 | 16244 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
8fb0e70a RD |
16245 | wxWindow *result; |
16246 | PyObject * obj0 = 0 ; | |
16247 | char *kwnames[] = { | |
16248 | (char *) "self", NULL | |
16249 | }; | |
16250 | ||
8ac8dba0 | 16251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
16254 | { |
16255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16256 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); |
8fb0e70a RD |
16257 | |
16258 | wxPyEndAllowThreads(__tstate); | |
16259 | if (PyErr_Occurred()) SWIG_fail; | |
16260 | } | |
16261 | { | |
16262 | resultobj = wxPyMake_wxObject(result, 0); | |
16263 | } | |
16264 | return resultobj; | |
16265 | fail: | |
16266 | return NULL; | |
16267 | } | |
16268 | ||
16269 | ||
8ac8dba0 | 16270 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16271 | PyObject *resultobj; |
8ac8dba0 | 16272 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16273 | int result; |
16274 | PyObject * obj0 = 0 ; | |
16275 | char *kwnames[] = { | |
16276 | (char *) "self", NULL | |
16277 | }; | |
16278 | ||
8ac8dba0 | 16279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16282 | { |
16283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16284 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); |
d14a1e28 RD |
16285 | |
16286 | wxPyEndAllowThreads(__tstate); | |
16287 | if (PyErr_Occurred()) SWIG_fail; | |
16288 | } | |
093d3ff1 RD |
16289 | { |
16290 | resultobj = SWIG_From_int((int)(result)); | |
16291 | } | |
d14a1e28 RD |
16292 | return resultobj; |
16293 | fail: | |
16294 | return NULL; | |
16295 | } | |
16296 | ||
16297 | ||
8ac8dba0 | 16298 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16299 | PyObject *resultobj; |
8ac8dba0 | 16300 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16301 | size_t arg2 ; |
16302 | wxString *arg3 = 0 ; | |
16303 | bool result; | |
ae8162c8 | 16304 | bool temp3 = false ; |
d14a1e28 RD |
16305 | PyObject * obj0 = 0 ; |
16306 | PyObject * obj1 = 0 ; | |
16307 | PyObject * obj2 = 0 ; | |
16308 | char *kwnames[] = { | |
16309 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
16310 | }; | |
16311 | ||
8ac8dba0 | 16312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16315 | { | |
16316 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16317 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16318 | } | |
d14a1e28 RD |
16319 | { |
16320 | arg3 = wxString_in_helper(obj2); | |
16321 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16322 | temp3 = true; |
d14a1e28 RD |
16323 | } |
16324 | { | |
16325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16326 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
16327 | ||
16328 | wxPyEndAllowThreads(__tstate); | |
16329 | if (PyErr_Occurred()) SWIG_fail; | |
16330 | } | |
4f89f6a3 RD |
16331 | { |
16332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16333 | } | |
d14a1e28 RD |
16334 | { |
16335 | if (temp3) | |
16336 | delete arg3; | |
16337 | } | |
16338 | return resultobj; | |
16339 | fail: | |
16340 | { | |
16341 | if (temp3) | |
16342 | delete arg3; | |
16343 | } | |
16344 | return NULL; | |
16345 | } | |
16346 | ||
16347 | ||
8ac8dba0 | 16348 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16349 | PyObject *resultobj; |
8ac8dba0 | 16350 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16351 | size_t arg2 ; |
16352 | wxString result; | |
16353 | PyObject * obj0 = 0 ; | |
16354 | PyObject * obj1 = 0 ; | |
16355 | char *kwnames[] = { | |
16356 | (char *) "self",(char *) "n", NULL | |
16357 | }; | |
16358 | ||
8ac8dba0 | 16359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16362 | { | |
16363 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16364 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16365 | } | |
d14a1e28 RD |
16366 | { |
16367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16368 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); |
d14a1e28 RD |
16369 | |
16370 | wxPyEndAllowThreads(__tstate); | |
16371 | if (PyErr_Occurred()) SWIG_fail; | |
16372 | } | |
16373 | { | |
16374 | #if wxUSE_UNICODE | |
16375 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16376 | #else | |
16377 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16378 | #endif | |
16379 | } | |
16380 | return resultobj; | |
16381 | fail: | |
16382 | return NULL; | |
16383 | } | |
16384 | ||
16385 | ||
8ac8dba0 | 16386 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16387 | PyObject *resultobj; |
8ac8dba0 | 16388 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16389 | wxImageList *arg2 = (wxImageList *) 0 ; |
16390 | PyObject * obj0 = 0 ; | |
16391 | PyObject * obj1 = 0 ; | |
16392 | char *kwnames[] = { | |
16393 | (char *) "self",(char *) "imageList", NULL | |
16394 | }; | |
16395 | ||
8ac8dba0 | 16396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16399 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
16400 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16401 | { |
16402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16403 | (arg1)->SetImageList(arg2); | |
16404 | ||
16405 | wxPyEndAllowThreads(__tstate); | |
16406 | if (PyErr_Occurred()) SWIG_fail; | |
16407 | } | |
16408 | Py_INCREF(Py_None); resultobj = Py_None; | |
16409 | return resultobj; | |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
8ac8dba0 | 16415 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16416 | PyObject *resultobj; |
8ac8dba0 | 16417 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16418 | wxImageList *arg2 = (wxImageList *) 0 ; |
16419 | PyObject * obj0 = 0 ; | |
16420 | PyObject * obj1 = 0 ; | |
16421 | char *kwnames[] = { | |
16422 | (char *) "self",(char *) "imageList", NULL | |
16423 | }; | |
16424 | ||
8ac8dba0 | 16425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16428 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
16429 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16430 | { |
16431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16432 | (arg1)->AssignImageList(arg2); | |
16433 | ||
16434 | wxPyEndAllowThreads(__tstate); | |
16435 | if (PyErr_Occurred()) SWIG_fail; | |
16436 | } | |
16437 | Py_INCREF(Py_None); resultobj = Py_None; | |
16438 | return resultobj; | |
16439 | fail: | |
16440 | return NULL; | |
16441 | } | |
16442 | ||
16443 | ||
8ac8dba0 | 16444 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16445 | PyObject *resultobj; |
8ac8dba0 | 16446 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16447 | wxImageList *result; |
16448 | PyObject * obj0 = 0 ; | |
16449 | char *kwnames[] = { | |
16450 | (char *) "self", NULL | |
16451 | }; | |
16452 | ||
8ac8dba0 | 16453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16456 | { |
16457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16458 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); |
d14a1e28 RD |
16459 | |
16460 | wxPyEndAllowThreads(__tstate); | |
16461 | if (PyErr_Occurred()) SWIG_fail; | |
16462 | } | |
16463 | { | |
412d302d | 16464 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16465 | } |
16466 | return resultobj; | |
16467 | fail: | |
16468 | return NULL; | |
16469 | } | |
16470 | ||
16471 | ||
8ac8dba0 | 16472 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16473 | PyObject *resultobj; |
8ac8dba0 | 16474 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16475 | size_t arg2 ; |
16476 | int result; | |
16477 | PyObject * obj0 = 0 ; | |
16478 | PyObject * obj1 = 0 ; | |
16479 | char *kwnames[] = { | |
16480 | (char *) "self",(char *) "n", NULL | |
16481 | }; | |
16482 | ||
8ac8dba0 | 16483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16484 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16485 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16486 | { | |
16487 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16488 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16489 | } | |
d14a1e28 RD |
16490 | { |
16491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16492 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); |
d14a1e28 RD |
16493 | |
16494 | wxPyEndAllowThreads(__tstate); | |
16495 | if (PyErr_Occurred()) SWIG_fail; | |
16496 | } | |
093d3ff1 RD |
16497 | { |
16498 | resultobj = SWIG_From_int((int)(result)); | |
16499 | } | |
d14a1e28 RD |
16500 | return resultobj; |
16501 | fail: | |
16502 | return NULL; | |
16503 | } | |
16504 | ||
16505 | ||
8ac8dba0 | 16506 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16507 | PyObject *resultobj; |
8ac8dba0 | 16508 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16509 | size_t arg2 ; |
16510 | int arg3 ; | |
16511 | bool result; | |
16512 | PyObject * obj0 = 0 ; | |
16513 | PyObject * obj1 = 0 ; | |
994141e6 | 16514 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16515 | char *kwnames[] = { |
16516 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
16517 | }; | |
16518 | ||
8ac8dba0 | 16519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16522 | { | |
16523 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16524 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16525 | } | |
16526 | { | |
16527 | arg3 = (int)(SWIG_As_int(obj2)); | |
16528 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16529 | } | |
d14a1e28 RD |
16530 | { |
16531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16532 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
16533 | ||
16534 | wxPyEndAllowThreads(__tstate); | |
16535 | if (PyErr_Occurred()) SWIG_fail; | |
16536 | } | |
4f89f6a3 RD |
16537 | { |
16538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16539 | } | |
d14a1e28 RD |
16540 | return resultobj; |
16541 | fail: | |
16542 | return NULL; | |
16543 | } | |
16544 | ||
16545 | ||
8ac8dba0 | 16546 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16547 | PyObject *resultobj; |
8ac8dba0 | 16548 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16549 | wxSize *arg2 = 0 ; |
16550 | wxSize temp2 ; | |
16551 | PyObject * obj0 = 0 ; | |
16552 | PyObject * obj1 = 0 ; | |
16553 | char *kwnames[] = { | |
16554 | (char *) "self",(char *) "size", NULL | |
16555 | }; | |
16556 | ||
8ac8dba0 | 16557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) 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; | |
d14a1e28 RD |
16560 | { |
16561 | arg2 = &temp2; | |
16562 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16563 | } | |
16564 | { | |
16565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16566 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
16567 | ||
16568 | wxPyEndAllowThreads(__tstate); | |
16569 | if (PyErr_Occurred()) SWIG_fail; | |
16570 | } | |
16571 | Py_INCREF(Py_None); resultobj = Py_None; | |
16572 | return resultobj; | |
16573 | fail: | |
16574 | return NULL; | |
16575 | } | |
16576 | ||
16577 | ||
8ac8dba0 | 16578 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16579 | PyObject *resultobj; |
8ac8dba0 | 16580 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16581 | wxSize *arg2 = 0 ; |
16582 | wxSize result; | |
16583 | wxSize temp2 ; | |
16584 | PyObject * obj0 = 0 ; | |
16585 | PyObject * obj1 = 0 ; | |
16586 | char *kwnames[] = { | |
16587 | (char *) "self",(char *) "sizePage", NULL | |
16588 | }; | |
16589 | ||
8ac8dba0 | 16590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16593 | { |
16594 | arg2 = &temp2; | |
16595 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16596 | } | |
16597 | { | |
16598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16599 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); |
d14a1e28 RD |
16600 | |
16601 | wxPyEndAllowThreads(__tstate); | |
16602 | if (PyErr_Occurred()) SWIG_fail; | |
16603 | } | |
16604 | { | |
16605 | wxSize * resultptr; | |
093d3ff1 | 16606 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 16607 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16608 | } |
16609 | return resultobj; | |
16610 | fail: | |
16611 | return NULL; | |
16612 | } | |
16613 | ||
16614 | ||
8ac8dba0 | 16615 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16616 | PyObject *resultobj; |
8ac8dba0 | 16617 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16618 | size_t arg2 ; |
16619 | bool result; | |
16620 | PyObject * obj0 = 0 ; | |
16621 | PyObject * obj1 = 0 ; | |
16622 | char *kwnames[] = { | |
16623 | (char *) "self",(char *) "n", NULL | |
16624 | }; | |
16625 | ||
8ac8dba0 | 16626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16629 | { | |
16630 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16631 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16632 | } | |
d14a1e28 RD |
16633 | { |
16634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16635 | result = (bool)(arg1)->DeletePage(arg2); | |
16636 | ||
16637 | wxPyEndAllowThreads(__tstate); | |
16638 | if (PyErr_Occurred()) SWIG_fail; | |
16639 | } | |
4f89f6a3 RD |
16640 | { |
16641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16642 | } | |
d14a1e28 RD |
16643 | return resultobj; |
16644 | fail: | |
16645 | return NULL; | |
16646 | } | |
16647 | ||
16648 | ||
8ac8dba0 | 16649 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16650 | PyObject *resultobj; |
8ac8dba0 | 16651 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16652 | size_t arg2 ; |
16653 | bool result; | |
16654 | PyObject * obj0 = 0 ; | |
16655 | PyObject * obj1 = 0 ; | |
16656 | char *kwnames[] = { | |
16657 | (char *) "self",(char *) "n", NULL | |
16658 | }; | |
16659 | ||
8ac8dba0 | 16660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16663 | { | |
16664 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16665 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16666 | } | |
d14a1e28 RD |
16667 | { |
16668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16669 | result = (bool)(arg1)->RemovePage(arg2); | |
16670 | ||
16671 | wxPyEndAllowThreads(__tstate); | |
16672 | if (PyErr_Occurred()) SWIG_fail; | |
16673 | } | |
4f89f6a3 RD |
16674 | { |
16675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16676 | } | |
d14a1e28 RD |
16677 | return resultobj; |
16678 | fail: | |
16679 | return NULL; | |
16680 | } | |
16681 | ||
16682 | ||
8ac8dba0 | 16683 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16684 | PyObject *resultobj; |
8ac8dba0 | 16685 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16686 | bool result; |
16687 | PyObject * obj0 = 0 ; | |
16688 | char *kwnames[] = { | |
16689 | (char *) "self", NULL | |
16690 | }; | |
16691 | ||
8ac8dba0 | 16692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16695 | { |
16696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16697 | result = (bool)(arg1)->DeleteAllPages(); | |
16698 | ||
16699 | wxPyEndAllowThreads(__tstate); | |
16700 | if (PyErr_Occurred()) SWIG_fail; | |
16701 | } | |
4f89f6a3 RD |
16702 | { |
16703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16704 | } | |
d14a1e28 RD |
16705 | return resultobj; |
16706 | fail: | |
16707 | return NULL; | |
16708 | } | |
16709 | ||
16710 | ||
8ac8dba0 | 16711 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16712 | PyObject *resultobj; |
8ac8dba0 | 16713 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16714 | wxWindow *arg2 = (wxWindow *) 0 ; |
16715 | wxString *arg3 = 0 ; | |
ae8162c8 | 16716 | bool arg4 = (bool) false ; |
d14a1e28 RD |
16717 | int arg5 = (int) -1 ; |
16718 | bool result; | |
ae8162c8 | 16719 | bool temp3 = false ; |
d14a1e28 RD |
16720 | PyObject * obj0 = 0 ; |
16721 | PyObject * obj1 = 0 ; | |
16722 | PyObject * obj2 = 0 ; | |
16723 | PyObject * obj3 = 0 ; | |
994141e6 | 16724 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16725 | char *kwnames[] = { |
16726 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16727 | }; | |
16728 | ||
8ac8dba0 | 16729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
16730 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16731 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16732 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16733 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16734 | { |
16735 | arg3 = wxString_in_helper(obj2); | |
16736 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16737 | temp3 = true; |
d14a1e28 RD |
16738 | } |
16739 | if (obj3) { | |
093d3ff1 RD |
16740 | { |
16741 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
16742 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16743 | } | |
994141e6 RD |
16744 | } |
16745 | if (obj4) { | |
093d3ff1 RD |
16746 | { |
16747 | arg5 = (int)(SWIG_As_int(obj4)); | |
16748 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16749 | } | |
d14a1e28 RD |
16750 | } |
16751 | { | |
16752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16753 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
16754 | ||
16755 | wxPyEndAllowThreads(__tstate); | |
16756 | if (PyErr_Occurred()) SWIG_fail; | |
16757 | } | |
4f89f6a3 RD |
16758 | { |
16759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16760 | } | |
d14a1e28 RD |
16761 | { |
16762 | if (temp3) | |
16763 | delete arg3; | |
16764 | } | |
16765 | return resultobj; | |
16766 | fail: | |
16767 | { | |
16768 | if (temp3) | |
16769 | delete arg3; | |
16770 | } | |
16771 | return NULL; | |
16772 | } | |
16773 | ||
16774 | ||
8ac8dba0 | 16775 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16776 | PyObject *resultobj; |
8ac8dba0 | 16777 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16778 | size_t arg2 ; |
16779 | wxWindow *arg3 = (wxWindow *) 0 ; | |
16780 | wxString *arg4 = 0 ; | |
ae8162c8 | 16781 | bool arg5 = (bool) false ; |
d14a1e28 RD |
16782 | int arg6 = (int) -1 ; |
16783 | bool result; | |
ae8162c8 | 16784 | bool temp4 = false ; |
d14a1e28 RD |
16785 | PyObject * obj0 = 0 ; |
16786 | PyObject * obj1 = 0 ; | |
16787 | PyObject * obj2 = 0 ; | |
16788 | PyObject * obj3 = 0 ; | |
16789 | PyObject * obj4 = 0 ; | |
994141e6 | 16790 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16791 | char *kwnames[] = { |
16792 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16793 | }; | |
16794 | ||
8ac8dba0 | 16795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
16796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16798 | { | |
16799 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16801 | } | |
16802 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16803 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
16804 | { |
16805 | arg4 = wxString_in_helper(obj3); | |
16806 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16807 | temp4 = true; |
d14a1e28 RD |
16808 | } |
16809 | if (obj4) { | |
093d3ff1 RD |
16810 | { |
16811 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
16812 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16813 | } | |
994141e6 RD |
16814 | } |
16815 | if (obj5) { | |
093d3ff1 RD |
16816 | { |
16817 | arg6 = (int)(SWIG_As_int(obj5)); | |
16818 | if (SWIG_arg_fail(6)) SWIG_fail; | |
16819 | } | |
d14a1e28 RD |
16820 | } |
16821 | { | |
16822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16823 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
16824 | ||
16825 | wxPyEndAllowThreads(__tstate); | |
16826 | if (PyErr_Occurred()) SWIG_fail; | |
16827 | } | |
4f89f6a3 RD |
16828 | { |
16829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16830 | } | |
d14a1e28 RD |
16831 | { |
16832 | if (temp4) | |
16833 | delete arg4; | |
16834 | } | |
16835 | return resultobj; | |
16836 | fail: | |
16837 | { | |
16838 | if (temp4) | |
16839 | delete arg4; | |
16840 | } | |
16841 | return NULL; | |
16842 | } | |
16843 | ||
16844 | ||
8ac8dba0 | 16845 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16846 | PyObject *resultobj; |
8ac8dba0 | 16847 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16848 | size_t arg2 ; |
16849 | int result; | |
16850 | PyObject * obj0 = 0 ; | |
16851 | PyObject * obj1 = 0 ; | |
16852 | char *kwnames[] = { | |
16853 | (char *) "self",(char *) "n", NULL | |
16854 | }; | |
16855 | ||
8ac8dba0 | 16856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16859 | { | |
16860 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16861 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16862 | } | |
d14a1e28 RD |
16863 | { |
16864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16865 | result = (int)(arg1)->SetSelection(arg2); | |
16866 | ||
16867 | wxPyEndAllowThreads(__tstate); | |
16868 | if (PyErr_Occurred()) SWIG_fail; | |
16869 | } | |
093d3ff1 RD |
16870 | { |
16871 | resultobj = SWIG_From_int((int)(result)); | |
16872 | } | |
d14a1e28 RD |
16873 | return resultobj; |
16874 | fail: | |
16875 | return NULL; | |
16876 | } | |
16877 | ||
16878 | ||
8ac8dba0 | 16879 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16880 | PyObject *resultobj; |
8ac8dba0 | 16881 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
ae8162c8 | 16882 | bool arg2 = (bool) true ; |
d14a1e28 RD |
16883 | PyObject * obj0 = 0 ; |
16884 | PyObject * obj1 = 0 ; | |
16885 | char *kwnames[] = { | |
16886 | (char *) "self",(char *) "forward", NULL | |
16887 | }; | |
16888 | ||
8ac8dba0 | 16889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 16892 | if (obj1) { |
093d3ff1 RD |
16893 | { |
16894 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16895 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16896 | } | |
d14a1e28 RD |
16897 | } |
16898 | { | |
16899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16900 | (arg1)->AdvanceSelection(arg2); | |
16901 | ||
16902 | wxPyEndAllowThreads(__tstate); | |
16903 | if (PyErr_Occurred()) SWIG_fail; | |
16904 | } | |
16905 | Py_INCREF(Py_None); resultobj = Py_None; | |
16906 | return resultobj; | |
16907 | fail: | |
16908 | return NULL; | |
16909 | } | |
16910 | ||
16911 | ||
8ac8dba0 | 16912 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 16913 | PyObject *resultobj; |
093d3ff1 | 16914 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
16915 | wxVisualAttributes result; |
16916 | PyObject * obj0 = 0 ; | |
16917 | char *kwnames[] = { | |
16918 | (char *) "variant", NULL | |
16919 | }; | |
16920 | ||
8ac8dba0 | 16921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
22bfe96c | 16922 | if (obj0) { |
093d3ff1 RD |
16923 | { |
16924 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16926 | } | |
22bfe96c RD |
16927 | } |
16928 | { | |
110da5b0 | 16929 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 16930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8ac8dba0 | 16931 | result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1); |
22bfe96c RD |
16932 | |
16933 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 16934 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
16935 | } |
16936 | { | |
16937 | wxVisualAttributes * resultptr; | |
093d3ff1 | 16938 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
16939 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16940 | } | |
16941 | return resultobj; | |
16942 | fail: | |
16943 | return NULL; | |
16944 | } | |
16945 | ||
16946 | ||
8ac8dba0 | 16947 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16948 | PyObject *obj; |
16949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 16950 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); |
d14a1e28 RD |
16951 | Py_INCREF(obj); |
16952 | return Py_BuildValue((char *)""); | |
16953 | } | |
8ac8dba0 | 16954 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16955 | PyObject *resultobj; |
16956 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16957 | int arg2 = (int) 0 ; | |
16958 | int arg3 = (int) -1 ; | |
16959 | int arg4 = (int) -1 ; | |
8ac8dba0 | 16960 | wxBookCtrlBaseEvent *result; |
994141e6 RD |
16961 | PyObject * obj0 = 0 ; |
16962 | PyObject * obj1 = 0 ; | |
16963 | PyObject * obj2 = 0 ; | |
16964 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
16965 | char *kwnames[] = { |
16966 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16967 | }; | |
16968 | ||
8ac8dba0 | 16969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
994141e6 | 16970 | if (obj0) { |
093d3ff1 RD |
16971 | { |
16972 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16974 | } | |
994141e6 RD |
16975 | } |
16976 | if (obj1) { | |
093d3ff1 RD |
16977 | { |
16978 | arg2 = (int)(SWIG_As_int(obj1)); | |
16979 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16980 | } | |
994141e6 RD |
16981 | } |
16982 | if (obj2) { | |
093d3ff1 RD |
16983 | { |
16984 | arg3 = (int)(SWIG_As_int(obj2)); | |
16985 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16986 | } | |
994141e6 RD |
16987 | } |
16988 | if (obj3) { | |
093d3ff1 RD |
16989 | { |
16990 | arg4 = (int)(SWIG_As_int(obj3)); | |
16991 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16992 | } | |
994141e6 | 16993 | } |
d14a1e28 RD |
16994 | { |
16995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16996 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
16997 | |
16998 | wxPyEndAllowThreads(__tstate); | |
16999 | if (PyErr_Occurred()) SWIG_fail; | |
17000 | } | |
8ac8dba0 | 17001 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); |
d14a1e28 RD |
17002 | return resultobj; |
17003 | fail: | |
17004 | return NULL; | |
17005 | } | |
17006 | ||
17007 | ||
8ac8dba0 | 17008 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17009 | PyObject *resultobj; |
8ac8dba0 | 17010 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17011 | int result; |
17012 | PyObject * obj0 = 0 ; | |
17013 | char *kwnames[] = { | |
17014 | (char *) "self", NULL | |
17015 | }; | |
17016 | ||
8ac8dba0 | 17017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17018 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17019 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17020 | { |
17021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17022 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); |
d14a1e28 RD |
17023 | |
17024 | wxPyEndAllowThreads(__tstate); | |
17025 | if (PyErr_Occurred()) SWIG_fail; | |
17026 | } | |
093d3ff1 RD |
17027 | { |
17028 | resultobj = SWIG_From_int((int)(result)); | |
17029 | } | |
d14a1e28 RD |
17030 | return resultobj; |
17031 | fail: | |
17032 | return NULL; | |
17033 | } | |
17034 | ||
17035 | ||
8ac8dba0 | 17036 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17037 | PyObject *resultobj; |
8ac8dba0 | 17038 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17039 | int arg2 ; |
17040 | PyObject * obj0 = 0 ; | |
994141e6 | 17041 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17042 | char *kwnames[] = { |
17043 | (char *) "self",(char *) "nSel", NULL | |
17044 | }; | |
17045 | ||
8ac8dba0 | 17046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17049 | { | |
17050 | arg2 = (int)(SWIG_As_int(obj1)); | |
17051 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17052 | } | |
d14a1e28 RD |
17053 | { |
17054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17055 | (arg1)->SetSelection(arg2); | |
17056 | ||
17057 | wxPyEndAllowThreads(__tstate); | |
17058 | if (PyErr_Occurred()) SWIG_fail; | |
17059 | } | |
17060 | Py_INCREF(Py_None); resultobj = Py_None; | |
17061 | return resultobj; | |
17062 | fail: | |
17063 | return NULL; | |
17064 | } | |
17065 | ||
17066 | ||
8ac8dba0 | 17067 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17068 | PyObject *resultobj; |
8ac8dba0 | 17069 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17070 | int result; |
17071 | PyObject * obj0 = 0 ; | |
17072 | char *kwnames[] = { | |
17073 | (char *) "self", NULL | |
17074 | }; | |
17075 | ||
8ac8dba0 | 17076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17079 | { |
17080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17081 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); |
d14a1e28 RD |
17082 | |
17083 | wxPyEndAllowThreads(__tstate); | |
17084 | if (PyErr_Occurred()) SWIG_fail; | |
17085 | } | |
093d3ff1 RD |
17086 | { |
17087 | resultobj = SWIG_From_int((int)(result)); | |
17088 | } | |
d14a1e28 RD |
17089 | return resultobj; |
17090 | fail: | |
17091 | return NULL; | |
17092 | } | |
17093 | ||
17094 | ||
8ac8dba0 | 17095 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17096 | PyObject *resultobj; |
8ac8dba0 | 17097 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17098 | int arg2 ; |
17099 | PyObject * obj0 = 0 ; | |
994141e6 | 17100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17101 | char *kwnames[] = { |
17102 | (char *) "self",(char *) "nOldSel", NULL | |
17103 | }; | |
17104 | ||
8ac8dba0 | 17105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17108 | { | |
17109 | arg2 = (int)(SWIG_As_int(obj1)); | |
17110 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17111 | } | |
d14a1e28 RD |
17112 | { |
17113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17114 | (arg1)->SetOldSelection(arg2); | |
17115 | ||
17116 | wxPyEndAllowThreads(__tstate); | |
17117 | if (PyErr_Occurred()) SWIG_fail; | |
17118 | } | |
17119 | Py_INCREF(Py_None); resultobj = Py_None; | |
17120 | return resultobj; | |
17121 | fail: | |
17122 | return NULL; | |
17123 | } | |
17124 | ||
17125 | ||
8ac8dba0 | 17126 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17127 | PyObject *obj; |
17128 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 17129 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); |
d14a1e28 RD |
17130 | Py_INCREF(obj); |
17131 | return Py_BuildValue((char *)""); | |
17132 | } | |
c32bde28 | 17133 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17134 | PyObject *resultobj; |
17135 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 17136 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17137 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17138 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17139 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17140 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17141 | long arg5 = (long) 0 ; | |
51b83b37 | 17142 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; |
d14a1e28 RD |
17143 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
17144 | wxNotebook *result; | |
17145 | wxPoint temp3 ; | |
17146 | wxSize temp4 ; | |
ae8162c8 | 17147 | bool temp6 = false ; |
d14a1e28 | 17148 | PyObject * obj0 = 0 ; |
994141e6 | 17149 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17150 | PyObject * obj2 = 0 ; |
17151 | PyObject * obj3 = 0 ; | |
994141e6 | 17152 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17153 | PyObject * obj5 = 0 ; |
17154 | char *kwnames[] = { | |
17155 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17156 | }; | |
17157 | ||
4f89f6a3 | 17158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17160 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 | 17161 | if (obj1) { |
093d3ff1 RD |
17162 | { |
17163 | arg2 = (int)(SWIG_As_int(obj1)); | |
17164 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17165 | } | |
4f89f6a3 | 17166 | } |
d14a1e28 RD |
17167 | if (obj2) { |
17168 | { | |
17169 | arg3 = &temp3; | |
17170 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17171 | } | |
17172 | } | |
17173 | if (obj3) { | |
17174 | { | |
17175 | arg4 = &temp4; | |
17176 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17177 | } | |
17178 | } | |
994141e6 | 17179 | if (obj4) { |
093d3ff1 RD |
17180 | { |
17181 | arg5 = (long)(SWIG_As_long(obj4)); | |
17182 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17183 | } | |
994141e6 | 17184 | } |
d14a1e28 RD |
17185 | if (obj5) { |
17186 | { | |
17187 | arg6 = wxString_in_helper(obj5); | |
17188 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17189 | temp6 = true; |
d14a1e28 RD |
17190 | } |
17191 | } | |
17192 | { | |
e3b71cb8 | 17193 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17195 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17196 | ||
17197 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17198 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17199 | } |
b0f7404b | 17200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
17201 | { |
17202 | if (temp6) | |
17203 | delete arg6; | |
17204 | } | |
17205 | return resultobj; | |
17206 | fail: | |
17207 | { | |
17208 | if (temp6) | |
17209 | delete arg6; | |
17210 | } | |
17211 | return NULL; | |
17212 | } | |
17213 | ||
17214 | ||
c32bde28 | 17215 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17216 | PyObject *resultobj; |
17217 | wxNotebook *result; | |
17218 | char *kwnames[] = { | |
17219 | NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
17223 | { | |
e3b71cb8 | 17224 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17226 | result = (wxNotebook *)new wxNotebook(); | |
17227 | ||
17228 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17229 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17230 | } |
b0f7404b | 17231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
17232 | return resultobj; |
17233 | fail: | |
17234 | return NULL; | |
17235 | } | |
17236 | ||
17237 | ||
c32bde28 | 17238 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17239 | PyObject *resultobj; |
17240 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17241 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17242 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17243 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17244 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17245 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17246 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17247 | long arg6 = (long) 0 ; | |
51b83b37 | 17248 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; |
d14a1e28 RD |
17249 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
17250 | bool result; | |
17251 | wxPoint temp4 ; | |
17252 | wxSize temp5 ; | |
ae8162c8 | 17253 | bool temp7 = false ; |
d14a1e28 RD |
17254 | PyObject * obj0 = 0 ; |
17255 | PyObject * obj1 = 0 ; | |
994141e6 | 17256 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17257 | PyObject * obj3 = 0 ; |
17258 | PyObject * obj4 = 0 ; | |
994141e6 | 17259 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17260 | PyObject * obj6 = 0 ; |
17261 | char *kwnames[] = { | |
17262 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17263 | }; | |
17264 | ||
248ed943 | 17265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17268 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17269 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17270 | if (obj2) { |
093d3ff1 RD |
17271 | { |
17272 | arg3 = (int)(SWIG_As_int(obj2)); | |
17273 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17274 | } | |
248ed943 | 17275 | } |
d14a1e28 RD |
17276 | if (obj3) { |
17277 | { | |
17278 | arg4 = &temp4; | |
17279 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17280 | } | |
17281 | } | |
17282 | if (obj4) { | |
17283 | { | |
17284 | arg5 = &temp5; | |
17285 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17286 | } | |
17287 | } | |
994141e6 | 17288 | if (obj5) { |
093d3ff1 RD |
17289 | { |
17290 | arg6 = (long)(SWIG_As_long(obj5)); | |
17291 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17292 | } | |
994141e6 | 17293 | } |
d14a1e28 RD |
17294 | if (obj6) { |
17295 | { | |
17296 | arg7 = wxString_in_helper(obj6); | |
17297 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17298 | temp7 = true; |
d14a1e28 RD |
17299 | } |
17300 | } | |
17301 | { | |
17302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17303 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17304 | ||
17305 | wxPyEndAllowThreads(__tstate); | |
17306 | if (PyErr_Occurred()) SWIG_fail; | |
17307 | } | |
4f89f6a3 RD |
17308 | { |
17309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17310 | } | |
d14a1e28 RD |
17311 | { |
17312 | if (temp7) | |
17313 | delete arg7; | |
17314 | } | |
17315 | return resultobj; | |
17316 | fail: | |
17317 | { | |
17318 | if (temp7) | |
17319 | delete arg7; | |
17320 | } | |
17321 | return NULL; | |
17322 | } | |
17323 | ||
17324 | ||
c32bde28 | 17325 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17326 | PyObject *resultobj; |
17327 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17328 | int result; | |
17329 | PyObject * obj0 = 0 ; | |
17330 | char *kwnames[] = { | |
17331 | (char *) "self", NULL | |
17332 | }; | |
17333 | ||
17334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17337 | { |
17338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17339 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
17340 | ||
17341 | wxPyEndAllowThreads(__tstate); | |
17342 | if (PyErr_Occurred()) SWIG_fail; | |
17343 | } | |
093d3ff1 RD |
17344 | { |
17345 | resultobj = SWIG_From_int((int)(result)); | |
17346 | } | |
d14a1e28 RD |
17347 | return resultobj; |
17348 | fail: | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
c32bde28 | 17353 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17354 | PyObject *resultobj; |
17355 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17356 | wxSize *arg2 = 0 ; | |
17357 | wxSize temp2 ; | |
17358 | PyObject * obj0 = 0 ; | |
17359 | PyObject * obj1 = 0 ; | |
17360 | char *kwnames[] = { | |
17361 | (char *) "self",(char *) "padding", NULL | |
17362 | }; | |
17363 | ||
17364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17367 | { |
17368 | arg2 = &temp2; | |
17369 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17370 | } | |
17371 | { | |
17372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17373 | (arg1)->SetPadding((wxSize const &)*arg2); | |
17374 | ||
17375 | wxPyEndAllowThreads(__tstate); | |
17376 | if (PyErr_Occurred()) SWIG_fail; | |
17377 | } | |
17378 | Py_INCREF(Py_None); resultobj = Py_None; | |
17379 | return resultobj; | |
17380 | fail: | |
17381 | return NULL; | |
17382 | } | |
17383 | ||
17384 | ||
c32bde28 | 17385 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17386 | PyObject *resultobj; |
17387 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17388 | wxSize *arg2 = 0 ; | |
17389 | wxSize temp2 ; | |
17390 | PyObject * obj0 = 0 ; | |
17391 | PyObject * obj1 = 0 ; | |
17392 | char *kwnames[] = { | |
17393 | (char *) "self",(char *) "sz", NULL | |
17394 | }; | |
17395 | ||
17396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17399 | { |
17400 | arg2 = &temp2; | |
17401 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17402 | } | |
17403 | { | |
17404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17405 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
17406 | ||
17407 | wxPyEndAllowThreads(__tstate); | |
17408 | if (PyErr_Occurred()) SWIG_fail; | |
17409 | } | |
17410 | Py_INCREF(Py_None); resultobj = Py_None; | |
17411 | return resultobj; | |
17412 | fail: | |
17413 | return NULL; | |
17414 | } | |
17415 | ||
17416 | ||
c32bde28 | 17417 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17418 | PyObject *resultobj; |
17419 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17420 | wxPoint *arg2 = 0 ; | |
17421 | long *arg3 = (long *) 0 ; | |
17422 | int result; | |
17423 | wxPoint temp2 ; | |
17424 | long temp3 ; | |
c32bde28 | 17425 | int res3 = 0 ; |
d14a1e28 RD |
17426 | PyObject * obj0 = 0 ; |
17427 | PyObject * obj1 = 0 ; | |
17428 | char *kwnames[] = { | |
17429 | (char *) "self",(char *) "pt", NULL | |
17430 | }; | |
17431 | ||
c32bde28 | 17432 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 17433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17436 | { |
17437 | arg2 = &temp2; | |
17438 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17439 | } | |
17440 | { | |
17441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17442 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
17443 | ||
17444 | wxPyEndAllowThreads(__tstate); | |
17445 | if (PyErr_Occurred()) SWIG_fail; | |
17446 | } | |
093d3ff1 RD |
17447 | { |
17448 | resultobj = SWIG_From_int((int)(result)); | |
17449 | } | |
c32bde28 RD |
17450 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
17451 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
17452 | return resultobj; |
17453 | fail: | |
17454 | return NULL; | |
17455 | } | |
17456 | ||
17457 | ||
c32bde28 | 17458 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17459 | PyObject *resultobj; |
17460 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17461 | wxSize *arg2 = 0 ; | |
17462 | wxSize result; | |
17463 | wxSize temp2 ; | |
17464 | PyObject * obj0 = 0 ; | |
17465 | PyObject * obj1 = 0 ; | |
17466 | char *kwnames[] = { | |
17467 | (char *) "self",(char *) "sizePage", NULL | |
17468 | }; | |
17469 | ||
17470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17473 | { |
17474 | arg2 = &temp2; | |
17475 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17476 | } | |
17477 | { | |
17478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17479 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
17480 | ||
17481 | wxPyEndAllowThreads(__tstate); | |
17482 | if (PyErr_Occurred()) SWIG_fail; | |
17483 | } | |
17484 | { | |
17485 | wxSize * resultptr; | |
093d3ff1 | 17486 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 17487 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17488 | } |
17489 | return resultobj; | |
17490 | fail: | |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
8e738329 RD |
17495 | static PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
17496 | PyObject *resultobj; | |
17497 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17498 | wxColour result; | |
17499 | PyObject * obj0 = 0 ; | |
17500 | char *kwnames[] = { | |
17501 | (char *) "self", NULL | |
17502 | }; | |
17503 | ||
17504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetThemeBackgroundColour",kwnames,&obj0)) goto fail; | |
17505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17507 | { | |
17508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17509 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
17510 | ||
17511 | wxPyEndAllowThreads(__tstate); | |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
17513 | } | |
17514 | { | |
17515 | wxColour * resultptr; | |
17516 | resultptr = new wxColour((wxColour &)(result)); | |
17517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17518 | } | |
17519 | return resultobj; | |
17520 | fail: | |
17521 | return NULL; | |
17522 | } | |
17523 | ||
17524 | ||
c32bde28 | 17525 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 17526 | PyObject *resultobj; |
093d3ff1 | 17527 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
17528 | wxVisualAttributes result; |
17529 | PyObject * obj0 = 0 ; | |
17530 | char *kwnames[] = { | |
17531 | (char *) "variant", NULL | |
17532 | }; | |
17533 | ||
17534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
17535 | if (obj0) { | |
093d3ff1 RD |
17536 | { |
17537 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
17538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17539 | } | |
22bfe96c RD |
17540 | } |
17541 | { | |
110da5b0 | 17542 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
17543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17544 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
17545 | ||
17546 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 17547 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
17548 | } |
17549 | { | |
17550 | wxVisualAttributes * resultptr; | |
093d3ff1 | 17551 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
17552 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
17553 | } | |
17554 | return resultobj; | |
17555 | fail: | |
17556 | return NULL; | |
17557 | } | |
17558 | ||
17559 | ||
c32bde28 | 17560 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17561 | PyObject *obj; |
17562 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17563 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
17564 | Py_INCREF(obj); | |
17565 | return Py_BuildValue((char *)""); | |
17566 | } | |
c32bde28 | 17567 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17568 | PyObject *resultobj; |
17569 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17570 | int arg2 = (int) 0 ; | |
17571 | int arg3 = (int) -1 ; | |
17572 | int arg4 = (int) -1 ; | |
17573 | wxNotebookEvent *result; | |
994141e6 RD |
17574 | PyObject * obj0 = 0 ; |
17575 | PyObject * obj1 = 0 ; | |
17576 | PyObject * obj2 = 0 ; | |
17577 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17578 | char *kwnames[] = { |
17579 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17580 | }; | |
17581 | ||
994141e6 RD |
17582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17583 | if (obj0) { | |
093d3ff1 RD |
17584 | { |
17585 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17587 | } | |
994141e6 RD |
17588 | } |
17589 | if (obj1) { | |
093d3ff1 RD |
17590 | { |
17591 | arg2 = (int)(SWIG_As_int(obj1)); | |
17592 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17593 | } | |
994141e6 RD |
17594 | } |
17595 | if (obj2) { | |
093d3ff1 RD |
17596 | { |
17597 | arg3 = (int)(SWIG_As_int(obj2)); | |
17598 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17599 | } | |
994141e6 RD |
17600 | } |
17601 | if (obj3) { | |
093d3ff1 RD |
17602 | { |
17603 | arg4 = (int)(SWIG_As_int(obj3)); | |
17604 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17605 | } | |
994141e6 | 17606 | } |
d14a1e28 RD |
17607 | { |
17608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17609 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
17610 | ||
17611 | wxPyEndAllowThreads(__tstate); | |
17612 | if (PyErr_Occurred()) SWIG_fail; | |
17613 | } | |
15afbcd0 | 17614 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
17615 | return resultobj; |
17616 | fail: | |
17617 | return NULL; | |
17618 | } | |
17619 | ||
17620 | ||
c32bde28 | 17621 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17622 | PyObject *obj; |
17623 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17624 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
17625 | Py_INCREF(obj); | |
17626 | return Py_BuildValue((char *)""); | |
17627 | } | |
c32bde28 | 17628 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17629 | PyObject *resultobj; |
17630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 17631 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17632 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17633 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17634 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17635 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17636 | long arg5 = (long) 0 ; | |
17637 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17638 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17639 | wxListbook *result; | |
17640 | wxPoint temp3 ; | |
17641 | wxSize temp4 ; | |
ae8162c8 | 17642 | bool temp6 = false ; |
d14a1e28 | 17643 | PyObject * obj0 = 0 ; |
994141e6 | 17644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17645 | PyObject * obj2 = 0 ; |
17646 | PyObject * obj3 = 0 ; | |
994141e6 | 17647 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17648 | PyObject * obj5 = 0 ; |
17649 | char *kwnames[] = { | |
17650 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17651 | }; | |
17652 | ||
4f89f6a3 | 17653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 | 17656 | if (obj1) { |
093d3ff1 RD |
17657 | { |
17658 | arg2 = (int)(SWIG_As_int(obj1)); | |
17659 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17660 | } | |
4f89f6a3 | 17661 | } |
d14a1e28 RD |
17662 | if (obj2) { |
17663 | { | |
17664 | arg3 = &temp3; | |
17665 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17666 | } | |
17667 | } | |
17668 | if (obj3) { | |
17669 | { | |
17670 | arg4 = &temp4; | |
17671 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17672 | } | |
17673 | } | |
994141e6 | 17674 | if (obj4) { |
093d3ff1 RD |
17675 | { |
17676 | arg5 = (long)(SWIG_As_long(obj4)); | |
17677 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17678 | } | |
994141e6 | 17679 | } |
d14a1e28 RD |
17680 | if (obj5) { |
17681 | { | |
17682 | arg6 = wxString_in_helper(obj5); | |
17683 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17684 | temp6 = true; |
d14a1e28 RD |
17685 | } |
17686 | } | |
17687 | { | |
e3b71cb8 | 17688 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17690 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17691 | ||
17692 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17693 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17694 | } |
15afbcd0 | 17695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
17696 | { |
17697 | if (temp6) | |
17698 | delete arg6; | |
17699 | } | |
17700 | return resultobj; | |
17701 | fail: | |
17702 | { | |
17703 | if (temp6) | |
17704 | delete arg6; | |
17705 | } | |
17706 | return NULL; | |
17707 | } | |
17708 | ||
17709 | ||
c32bde28 | 17710 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17711 | PyObject *resultobj; |
17712 | wxListbook *result; | |
17713 | char *kwnames[] = { | |
17714 | NULL | |
17715 | }; | |
17716 | ||
17717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
17718 | { | |
e3b71cb8 | 17719 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17721 | result = (wxListbook *)new wxListbook(); | |
17722 | ||
17723 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17724 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17725 | } |
15afbcd0 | 17726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
17727 | return resultobj; |
17728 | fail: | |
17729 | return NULL; | |
17730 | } | |
17731 | ||
17732 | ||
c32bde28 | 17733 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17734 | PyObject *resultobj; |
17735 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17736 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17737 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17738 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17739 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17740 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17741 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17742 | long arg6 = (long) 0 ; | |
17743 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17744 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17745 | bool result; | |
17746 | wxPoint temp4 ; | |
17747 | wxSize temp5 ; | |
ae8162c8 | 17748 | bool temp7 = false ; |
d14a1e28 RD |
17749 | PyObject * obj0 = 0 ; |
17750 | PyObject * obj1 = 0 ; | |
994141e6 | 17751 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17752 | PyObject * obj3 = 0 ; |
17753 | PyObject * obj4 = 0 ; | |
994141e6 | 17754 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17755 | PyObject * obj6 = 0 ; |
17756 | char *kwnames[] = { | |
17757 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17758 | }; | |
17759 | ||
248ed943 | 17760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17763 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17764 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17765 | if (obj2) { |
093d3ff1 RD |
17766 | { |
17767 | arg3 = (int)(SWIG_As_int(obj2)); | |
17768 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17769 | } | |
248ed943 | 17770 | } |
d14a1e28 RD |
17771 | if (obj3) { |
17772 | { | |
17773 | arg4 = &temp4; | |
17774 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17775 | } | |
17776 | } | |
17777 | if (obj4) { | |
17778 | { | |
17779 | arg5 = &temp5; | |
17780 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17781 | } | |
17782 | } | |
994141e6 | 17783 | if (obj5) { |
093d3ff1 RD |
17784 | { |
17785 | arg6 = (long)(SWIG_As_long(obj5)); | |
17786 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17787 | } | |
994141e6 | 17788 | } |
d14a1e28 RD |
17789 | if (obj6) { |
17790 | { | |
17791 | arg7 = wxString_in_helper(obj6); | |
17792 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17793 | temp7 = true; |
d14a1e28 RD |
17794 | } |
17795 | } | |
17796 | { | |
17797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17798 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17799 | ||
17800 | wxPyEndAllowThreads(__tstate); | |
17801 | if (PyErr_Occurred()) SWIG_fail; | |
17802 | } | |
4f89f6a3 RD |
17803 | { |
17804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17805 | } | |
d14a1e28 RD |
17806 | { |
17807 | if (temp7) | |
17808 | delete arg7; | |
17809 | } | |
17810 | return resultobj; | |
17811 | fail: | |
17812 | { | |
17813 | if (temp7) | |
17814 | delete arg7; | |
17815 | } | |
17816 | return NULL; | |
17817 | } | |
17818 | ||
17819 | ||
c32bde28 | 17820 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17821 | PyObject *resultobj; |
17822 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17823 | bool result; | |
17824 | PyObject * obj0 = 0 ; | |
17825 | char *kwnames[] = { | |
17826 | (char *) "self", NULL | |
17827 | }; | |
17828 | ||
17829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17832 | { |
17833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17834 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
17835 | ||
17836 | wxPyEndAllowThreads(__tstate); | |
17837 | if (PyErr_Occurred()) SWIG_fail; | |
17838 | } | |
4f89f6a3 RD |
17839 | { |
17840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17841 | } | |
d14a1e28 RD |
17842 | return resultobj; |
17843 | fail: | |
17844 | return NULL; | |
17845 | } | |
17846 | ||
17847 | ||
1fbf26be RD |
17848 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
17849 | PyObject *resultobj; | |
17850 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17851 | wxListView *result; | |
17852 | PyObject * obj0 = 0 ; | |
17853 | char *kwnames[] = { | |
17854 | (char *) "self", NULL | |
17855 | }; | |
17856 | ||
17857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1fbf26be RD |
17860 | { |
17861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17862 | result = (wxListView *)(arg1)->GetListView(); | |
17863 | ||
17864 | wxPyEndAllowThreads(__tstate); | |
17865 | if (PyErr_Occurred()) SWIG_fail; | |
17866 | } | |
17867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
17868 | return resultobj; | |
17869 | fail: | |
17870 | return NULL; | |
17871 | } | |
17872 | ||
17873 | ||
c32bde28 | 17874 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17875 | PyObject *obj; |
17876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17877 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
17878 | Py_INCREF(obj); | |
17879 | return Py_BuildValue((char *)""); | |
17880 | } | |
c32bde28 | 17881 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17882 | PyObject *resultobj; |
17883 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17884 | int arg2 = (int) 0 ; | |
17885 | int arg3 = (int) -1 ; | |
17886 | int arg4 = (int) -1 ; | |
17887 | wxListbookEvent *result; | |
994141e6 RD |
17888 | PyObject * obj0 = 0 ; |
17889 | PyObject * obj1 = 0 ; | |
17890 | PyObject * obj2 = 0 ; | |
17891 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17892 | char *kwnames[] = { |
17893 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17894 | }; | |
17895 | ||
994141e6 RD |
17896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17897 | if (obj0) { | |
093d3ff1 RD |
17898 | { |
17899 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17901 | } | |
994141e6 RD |
17902 | } |
17903 | if (obj1) { | |
093d3ff1 RD |
17904 | { |
17905 | arg2 = (int)(SWIG_As_int(obj1)); | |
17906 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17907 | } | |
994141e6 RD |
17908 | } |
17909 | if (obj2) { | |
093d3ff1 RD |
17910 | { |
17911 | arg3 = (int)(SWIG_As_int(obj2)); | |
17912 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17913 | } | |
994141e6 RD |
17914 | } |
17915 | if (obj3) { | |
093d3ff1 RD |
17916 | { |
17917 | arg4 = (int)(SWIG_As_int(obj3)); | |
17918 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17919 | } | |
994141e6 | 17920 | } |
d14a1e28 RD |
17921 | { |
17922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17923 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
17924 | ||
17925 | wxPyEndAllowThreads(__tstate); | |
17926 | if (PyErr_Occurred()) SWIG_fail; | |
17927 | } | |
15afbcd0 | 17928 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
17929 | return resultobj; |
17930 | fail: | |
17931 | return NULL; | |
17932 | } | |
17933 | ||
17934 | ||
c32bde28 | 17935 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17936 | PyObject *obj; |
17937 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17938 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
17939 | Py_INCREF(obj); | |
17940 | return Py_BuildValue((char *)""); | |
17941 | } | |
2ef75293 RD |
17942 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { |
17943 | PyObject *resultobj; | |
17944 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17945 | int arg2 ; | |
17946 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17947 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17948 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17949 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17950 | long arg5 = (long) 0 ; | |
17951 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17952 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17953 | wxChoicebook *result; | |
17954 | wxPoint temp3 ; | |
17955 | wxSize temp4 ; | |
ae8162c8 | 17956 | bool temp6 = false ; |
2ef75293 RD |
17957 | PyObject * obj0 = 0 ; |
17958 | PyObject * obj1 = 0 ; | |
17959 | PyObject * obj2 = 0 ; | |
17960 | PyObject * obj3 = 0 ; | |
17961 | PyObject * obj4 = 0 ; | |
17962 | PyObject * obj5 = 0 ; | |
17963 | char *kwnames[] = { | |
17964 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17965 | }; | |
17966 | ||
17967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
17968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17970 | { | |
17971 | arg2 = (int)(SWIG_As_int(obj1)); | |
17972 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17973 | } | |
2ef75293 RD |
17974 | if (obj2) { |
17975 | { | |
17976 | arg3 = &temp3; | |
17977 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17978 | } | |
17979 | } | |
17980 | if (obj3) { | |
17981 | { | |
17982 | arg4 = &temp4; | |
17983 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17984 | } | |
17985 | } | |
17986 | if (obj4) { | |
093d3ff1 RD |
17987 | { |
17988 | arg5 = (long)(SWIG_As_long(obj4)); | |
17989 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17990 | } | |
2ef75293 RD |
17991 | } |
17992 | if (obj5) { | |
17993 | { | |
17994 | arg6 = wxString_in_helper(obj5); | |
17995 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17996 | temp6 = true; |
2ef75293 RD |
17997 | } |
17998 | } | |
17999 | { | |
18000 | if (!wxPyCheckForApp()) SWIG_fail; | |
18001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18002 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18003 | ||
18004 | wxPyEndAllowThreads(__tstate); | |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
18006 | } | |
18007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
18008 | { | |
18009 | if (temp6) | |
18010 | delete arg6; | |
18011 | } | |
18012 | return resultobj; | |
18013 | fail: | |
18014 | { | |
18015 | if (temp6) | |
18016 | delete arg6; | |
18017 | } | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
18022 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
18023 | PyObject *resultobj; | |
18024 | wxChoicebook *result; | |
18025 | char *kwnames[] = { | |
18026 | NULL | |
18027 | }; | |
18028 | ||
18029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
18030 | { | |
18031 | if (!wxPyCheckForApp()) SWIG_fail; | |
18032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18033 | result = (wxChoicebook *)new wxChoicebook(); | |
18034 | ||
18035 | wxPyEndAllowThreads(__tstate); | |
18036 | if (PyErr_Occurred()) SWIG_fail; | |
18037 | } | |
18038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
18039 | return resultobj; | |
18040 | fail: | |
18041 | return NULL; | |
18042 | } | |
18043 | ||
18044 | ||
18045 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
18046 | PyObject *resultobj; | |
18047 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18048 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18049 | int arg3 ; | |
18050 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18051 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18052 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18053 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18054 | long arg6 = (long) 0 ; | |
18055 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18056 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18057 | bool result; | |
18058 | wxPoint temp4 ; | |
18059 | wxSize temp5 ; | |
ae8162c8 | 18060 | bool temp7 = false ; |
2ef75293 RD |
18061 | PyObject * obj0 = 0 ; |
18062 | PyObject * obj1 = 0 ; | |
18063 | PyObject * obj2 = 0 ; | |
18064 | PyObject * obj3 = 0 ; | |
18065 | PyObject * obj4 = 0 ; | |
18066 | PyObject * obj5 = 0 ; | |
18067 | PyObject * obj6 = 0 ; | |
18068 | char *kwnames[] = { | |
18069 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18070 | }; | |
18071 | ||
18072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
18073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18075 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18076 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18077 | { | |
18078 | arg3 = (int)(SWIG_As_int(obj2)); | |
18079 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18080 | } | |
2ef75293 RD |
18081 | if (obj3) { |
18082 | { | |
18083 | arg4 = &temp4; | |
18084 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18085 | } | |
18086 | } | |
18087 | if (obj4) { | |
18088 | { | |
18089 | arg5 = &temp5; | |
18090 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18091 | } | |
18092 | } | |
18093 | if (obj5) { | |
093d3ff1 RD |
18094 | { |
18095 | arg6 = (long)(SWIG_As_long(obj5)); | |
18096 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18097 | } | |
2ef75293 RD |
18098 | } |
18099 | if (obj6) { | |
18100 | { | |
18101 | arg7 = wxString_in_helper(obj6); | |
18102 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 18103 | temp7 = true; |
2ef75293 RD |
18104 | } |
18105 | } | |
18106 | { | |
18107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18108 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18109 | ||
18110 | wxPyEndAllowThreads(__tstate); | |
18111 | if (PyErr_Occurred()) SWIG_fail; | |
18112 | } | |
18113 | { | |
18114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18115 | } | |
18116 | { | |
18117 | if (temp7) | |
18118 | delete arg7; | |
18119 | } | |
18120 | return resultobj; | |
18121 | fail: | |
18122 | { | |
18123 | if (temp7) | |
18124 | delete arg7; | |
18125 | } | |
18126 | return NULL; | |
18127 | } | |
18128 | ||
18129 | ||
18130 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
18131 | PyObject *resultobj; | |
18132 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18133 | bool result; | |
18134 | PyObject * obj0 = 0 ; | |
18135 | char *kwnames[] = { | |
18136 | (char *) "self", NULL | |
18137 | }; | |
18138 | ||
18139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
18142 | { |
18143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18144 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
18145 | ||
18146 | wxPyEndAllowThreads(__tstate); | |
18147 | if (PyErr_Occurred()) SWIG_fail; | |
18148 | } | |
18149 | { | |
18150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18151 | } | |
18152 | return resultobj; | |
18153 | fail: | |
18154 | return NULL; | |
18155 | } | |
18156 | ||
18157 | ||
18158 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
18159 | PyObject *resultobj; | |
18160 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18161 | bool result; | |
18162 | PyObject * obj0 = 0 ; | |
18163 | char *kwnames[] = { | |
18164 | (char *) "self", NULL | |
18165 | }; | |
18166 | ||
18167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
18170 | { |
18171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18172 | result = (bool)(arg1)->DeleteAllPages(); | |
18173 | ||
18174 | wxPyEndAllowThreads(__tstate); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | } | |
18177 | { | |
18178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18179 | } | |
18180 | return resultobj; | |
18181 | fail: | |
18182 | return NULL; | |
18183 | } | |
18184 | ||
18185 | ||
18186 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
18187 | PyObject *obj; | |
18188 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18189 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
18190 | Py_INCREF(obj); | |
18191 | return Py_BuildValue((char *)""); | |
18192 | } | |
18193 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
18194 | PyObject *resultobj; | |
18195 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18196 | int arg2 = (int) 0 ; | |
18197 | int arg3 = (int) -1 ; | |
18198 | int arg4 = (int) -1 ; | |
18199 | wxChoicebookEvent *result; | |
18200 | PyObject * obj0 = 0 ; | |
18201 | PyObject * obj1 = 0 ; | |
18202 | PyObject * obj2 = 0 ; | |
18203 | PyObject * obj3 = 0 ; | |
18204 | char *kwnames[] = { | |
18205 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18206 | }; | |
18207 | ||
18208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18209 | if (obj0) { | |
093d3ff1 RD |
18210 | { |
18211 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
18212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18213 | } | |
2ef75293 RD |
18214 | } |
18215 | if (obj1) { | |
093d3ff1 RD |
18216 | { |
18217 | arg2 = (int)(SWIG_As_int(obj1)); | |
18218 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18219 | } | |
2ef75293 RD |
18220 | } |
18221 | if (obj2) { | |
093d3ff1 RD |
18222 | { |
18223 | arg3 = (int)(SWIG_As_int(obj2)); | |
18224 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18225 | } | |
2ef75293 RD |
18226 | } |
18227 | if (obj3) { | |
093d3ff1 RD |
18228 | { |
18229 | arg4 = (int)(SWIG_As_int(obj3)); | |
18230 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18231 | } | |
2ef75293 RD |
18232 | } |
18233 | { | |
18234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18235 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
18236 | ||
18237 | wxPyEndAllowThreads(__tstate); | |
18238 | if (PyErr_Occurred()) SWIG_fail; | |
18239 | } | |
18240 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
18241 | return resultobj; | |
18242 | fail: | |
18243 | return NULL; | |
18244 | } | |
18245 | ||
18246 | ||
18247 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
18248 | PyObject *obj; | |
18249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18250 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
18251 | Py_INCREF(obj); | |
18252 | return Py_BuildValue((char *)""); | |
18253 | } | |
c32bde28 | 18254 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18255 | PyObject *resultobj; |
8ac8dba0 | 18256 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
18257 | wxBookCtrlSizer *result; |
18258 | PyObject * obj0 = 0 ; | |
18259 | char *kwnames[] = { | |
18260 | (char *) "nb", NULL | |
18261 | }; | |
18262 | ||
18263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
18265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18266 | { |
18267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18268 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
18269 | ||
18270 | wxPyEndAllowThreads(__tstate); | |
18271 | if (PyErr_Occurred()) SWIG_fail; | |
18272 | } | |
15afbcd0 | 18273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
18274 | return resultobj; |
18275 | fail: | |
18276 | return NULL; | |
18277 | } | |
18278 | ||
18279 | ||
c32bde28 | 18280 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18281 | PyObject *resultobj; |
18282 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
18283 | PyObject * obj0 = 0 ; | |
18284 | char *kwnames[] = { | |
18285 | (char *) "self", NULL | |
18286 | }; | |
18287 | ||
18288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); |
18290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18291 | { |
18292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18293 | (arg1)->RecalcSizes(); | |
18294 | ||
18295 | wxPyEndAllowThreads(__tstate); | |
18296 | if (PyErr_Occurred()) SWIG_fail; | |
18297 | } | |
18298 | Py_INCREF(Py_None); resultobj = Py_None; | |
18299 | return resultobj; | |
18300 | fail: | |
18301 | return NULL; | |
18302 | } | |
18303 | ||
18304 | ||
c32bde28 | 18305 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18306 | PyObject *resultobj; |
18307 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
18308 | wxSize result; | |
18309 | PyObject * obj0 = 0 ; | |
18310 | char *kwnames[] = { | |
18311 | (char *) "self", NULL | |
18312 | }; | |
18313 | ||
18314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); |
18316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18317 | { |
18318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18319 | result = (arg1)->CalcMin(); | |
18320 | ||
18321 | wxPyEndAllowThreads(__tstate); | |
18322 | if (PyErr_Occurred()) SWIG_fail; | |
18323 | } | |
18324 | { | |
18325 | wxSize * resultptr; | |
093d3ff1 | 18326 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 18327 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18328 | } |
18329 | return resultobj; | |
18330 | fail: | |
18331 | return NULL; | |
18332 | } | |
18333 | ||
18334 | ||
c32bde28 | 18335 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18336 | PyObject *resultobj; |
18337 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
8ac8dba0 | 18338 | wxBookCtrlBase *result; |
d14a1e28 RD |
18339 | PyObject * obj0 = 0 ; |
18340 | char *kwnames[] = { | |
18341 | (char *) "self", NULL | |
18342 | }; | |
18343 | ||
18344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); |
18346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18347 | { |
18348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 18349 | result = (wxBookCtrlBase *)(arg1)->GetControl(); |
d14a1e28 RD |
18350 | |
18351 | wxPyEndAllowThreads(__tstate); | |
18352 | if (PyErr_Occurred()) SWIG_fail; | |
18353 | } | |
8ac8dba0 | 18354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBase, 0); |
d14a1e28 RD |
18355 | return resultobj; |
18356 | fail: | |
18357 | return NULL; | |
18358 | } | |
18359 | ||
18360 | ||
c32bde28 | 18361 | static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18362 | PyObject *obj; |
18363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18364 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
18365 | Py_INCREF(obj); | |
18366 | return Py_BuildValue((char *)""); | |
18367 | } | |
c32bde28 | 18368 | static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18369 | PyObject *resultobj; |
18370 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
18371 | wxNotebookSizer *result; | |
18372 | PyObject * obj0 = 0 ; | |
18373 | char *kwnames[] = { | |
18374 | (char *) "nb", NULL | |
18375 | }; | |
18376 | ||
18377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
18379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18380 | { |
18381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18382 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
18383 | ||
18384 | wxPyEndAllowThreads(__tstate); | |
18385 | if (PyErr_Occurred()) SWIG_fail; | |
18386 | } | |
15afbcd0 | 18387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
18388 | return resultobj; |
18389 | fail: | |
18390 | return NULL; | |
18391 | } | |
18392 | ||
18393 | ||
c32bde28 | 18394 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18395 | PyObject *resultobj; |
18396 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18397 | PyObject * obj0 = 0 ; | |
18398 | char *kwnames[] = { | |
18399 | (char *) "self", NULL | |
18400 | }; | |
18401 | ||
18402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); |
18404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18405 | { |
18406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18407 | (arg1)->RecalcSizes(); | |
18408 | ||
18409 | wxPyEndAllowThreads(__tstate); | |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
18411 | } | |
18412 | Py_INCREF(Py_None); resultobj = Py_None; | |
18413 | return resultobj; | |
18414 | fail: | |
18415 | return NULL; | |
18416 | } | |
18417 | ||
18418 | ||
c32bde28 | 18419 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18420 | PyObject *resultobj; |
18421 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18422 | wxSize result; | |
18423 | PyObject * obj0 = 0 ; | |
18424 | char *kwnames[] = { | |
18425 | (char *) "self", NULL | |
18426 | }; | |
18427 | ||
18428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); |
18430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18431 | { |
18432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18433 | result = (arg1)->CalcMin(); | |
18434 | ||
18435 | wxPyEndAllowThreads(__tstate); | |
18436 | if (PyErr_Occurred()) SWIG_fail; | |
18437 | } | |
18438 | { | |
18439 | wxSize * resultptr; | |
093d3ff1 | 18440 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 18441 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18442 | } |
18443 | return resultobj; | |
18444 | fail: | |
18445 | return NULL; | |
18446 | } | |
18447 | ||
18448 | ||
c32bde28 | 18449 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18450 | PyObject *resultobj; |
18451 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18452 | wxNotebook *result; | |
18453 | PyObject * obj0 = 0 ; | |
18454 | char *kwnames[] = { | |
18455 | (char *) "self", NULL | |
18456 | }; | |
18457 | ||
18458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); |
18460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18461 | { |
18462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18463 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
18464 | ||
18465 | wxPyEndAllowThreads(__tstate); | |
18466 | if (PyErr_Occurred()) SWIG_fail; | |
18467 | } | |
18468 | { | |
412d302d | 18469 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18470 | } |
18471 | return resultobj; | |
18472 | fail: | |
18473 | return NULL; | |
18474 | } | |
18475 | ||
18476 | ||
c32bde28 | 18477 | static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18478 | PyObject *obj; |
18479 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18480 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
18481 | Py_INCREF(obj); | |
18482 | return Py_BuildValue((char *)""); | |
18483 | } | |
c32bde28 | 18484 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18485 | PyObject *resultobj; |
18486 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18487 | int result; | |
18488 | PyObject * obj0 = 0 ; | |
18489 | char *kwnames[] = { | |
18490 | (char *) "self", NULL | |
18491 | }; | |
18492 | ||
18493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18496 | { |
18497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18498 | result = (int)(arg1)->GetId(); | |
18499 | ||
18500 | wxPyEndAllowThreads(__tstate); | |
18501 | if (PyErr_Occurred()) SWIG_fail; | |
18502 | } | |
093d3ff1 RD |
18503 | { |
18504 | resultobj = SWIG_From_int((int)(result)); | |
18505 | } | |
d14a1e28 RD |
18506 | return resultobj; |
18507 | fail: | |
18508 | return NULL; | |
18509 | } | |
18510 | ||
18511 | ||
c32bde28 | 18512 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18513 | PyObject *resultobj; |
18514 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18515 | wxControl *result; | |
18516 | PyObject * obj0 = 0 ; | |
18517 | char *kwnames[] = { | |
18518 | (char *) "self", NULL | |
18519 | }; | |
18520 | ||
18521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18522 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18523 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18524 | { |
18525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18526 | result = (wxControl *)(arg1)->GetControl(); | |
18527 | ||
18528 | wxPyEndAllowThreads(__tstate); | |
18529 | if (PyErr_Occurred()) SWIG_fail; | |
18530 | } | |
18531 | { | |
412d302d | 18532 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18533 | } |
18534 | return resultobj; | |
18535 | fail: | |
18536 | return NULL; | |
18537 | } | |
18538 | ||
18539 | ||
c32bde28 | 18540 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18541 | PyObject *resultobj; |
18542 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18543 | wxToolBarBase *result; | |
18544 | PyObject * obj0 = 0 ; | |
18545 | char *kwnames[] = { | |
18546 | (char *) "self", NULL | |
18547 | }; | |
18548 | ||
18549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",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; | |
d14a1e28 RD |
18552 | { |
18553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18554 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
18555 | ||
18556 | wxPyEndAllowThreads(__tstate); | |
18557 | if (PyErr_Occurred()) SWIG_fail; | |
18558 | } | |
18559 | { | |
412d302d | 18560 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18561 | } |
18562 | return resultobj; | |
18563 | fail: | |
18564 | return NULL; | |
18565 | } | |
18566 | ||
18567 | ||
c32bde28 | 18568 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18569 | PyObject *resultobj; |
18570 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18571 | int result; | |
18572 | PyObject * obj0 = 0 ; | |
18573 | char *kwnames[] = { | |
18574 | (char *) "self", NULL | |
18575 | }; | |
18576 | ||
18577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",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; | |
d14a1e28 RD |
18580 | { |
18581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18582 | result = (int)(arg1)->IsButton(); | |
18583 | ||
18584 | wxPyEndAllowThreads(__tstate); | |
18585 | if (PyErr_Occurred()) SWIG_fail; | |
18586 | } | |
093d3ff1 RD |
18587 | { |
18588 | resultobj = SWIG_From_int((int)(result)); | |
18589 | } | |
d14a1e28 RD |
18590 | return resultobj; |
18591 | fail: | |
18592 | return NULL; | |
18593 | } | |
18594 | ||
18595 | ||
c32bde28 | 18596 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18597 | PyObject *resultobj; |
18598 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18599 | int result; | |
18600 | PyObject * obj0 = 0 ; | |
18601 | char *kwnames[] = { | |
18602 | (char *) "self", NULL | |
18603 | }; | |
18604 | ||
18605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",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; | |
d14a1e28 RD |
18608 | { |
18609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18610 | result = (int)(arg1)->IsControl(); | |
18611 | ||
18612 | wxPyEndAllowThreads(__tstate); | |
18613 | if (PyErr_Occurred()) SWIG_fail; | |
18614 | } | |
093d3ff1 RD |
18615 | { |
18616 | resultobj = SWIG_From_int((int)(result)); | |
18617 | } | |
d14a1e28 RD |
18618 | return resultobj; |
18619 | fail: | |
18620 | return NULL; | |
18621 | } | |
18622 | ||
18623 | ||
c32bde28 | 18624 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18625 | PyObject *resultobj; |
18626 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18627 | int result; | |
18628 | PyObject * obj0 = 0 ; | |
18629 | char *kwnames[] = { | |
18630 | (char *) "self", NULL | |
18631 | }; | |
18632 | ||
18633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",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; | |
d14a1e28 RD |
18636 | { |
18637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18638 | result = (int)(arg1)->IsSeparator(); | |
18639 | ||
18640 | wxPyEndAllowThreads(__tstate); | |
18641 | if (PyErr_Occurred()) SWIG_fail; | |
18642 | } | |
093d3ff1 RD |
18643 | { |
18644 | resultobj = SWIG_From_int((int)(result)); | |
18645 | } | |
d14a1e28 RD |
18646 | return resultobj; |
18647 | fail: | |
18648 | return NULL; | |
18649 | } | |
18650 | ||
18651 | ||
c32bde28 | 18652 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18653 | PyObject *resultobj; |
18654 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18655 | int result; | |
18656 | PyObject * obj0 = 0 ; | |
18657 | char *kwnames[] = { | |
18658 | (char *) "self", NULL | |
18659 | }; | |
18660 | ||
18661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18664 | { |
18665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18666 | result = (int)(arg1)->GetStyle(); | |
18667 | ||
18668 | wxPyEndAllowThreads(__tstate); | |
18669 | if (PyErr_Occurred()) SWIG_fail; | |
18670 | } | |
093d3ff1 RD |
18671 | { |
18672 | resultobj = SWIG_From_int((int)(result)); | |
18673 | } | |
d14a1e28 RD |
18674 | return resultobj; |
18675 | fail: | |
18676 | return NULL; | |
18677 | } | |
18678 | ||
18679 | ||
c32bde28 | 18680 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18681 | PyObject *resultobj; |
18682 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
093d3ff1 | 18683 | wxItemKind result; |
d14a1e28 RD |
18684 | PyObject * obj0 = 0 ; |
18685 | char *kwnames[] = { | |
18686 | (char *) "self", NULL | |
18687 | }; | |
18688 | ||
18689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18692 | { |
18693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 18694 | result = (wxItemKind)(arg1)->GetKind(); |
d14a1e28 RD |
18695 | |
18696 | wxPyEndAllowThreads(__tstate); | |
18697 | if (PyErr_Occurred()) SWIG_fail; | |
18698 | } | |
093d3ff1 | 18699 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
18700 | return resultobj; |
18701 | fail: | |
18702 | return NULL; | |
18703 | } | |
18704 | ||
18705 | ||
c32bde28 | 18706 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18707 | PyObject *resultobj; |
18708 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18709 | bool result; | |
18710 | PyObject * obj0 = 0 ; | |
18711 | char *kwnames[] = { | |
18712 | (char *) "self", NULL | |
18713 | }; | |
18714 | ||
18715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18718 | { |
18719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18720 | result = (bool)(arg1)->IsEnabled(); | |
18721 | ||
18722 | wxPyEndAllowThreads(__tstate); | |
18723 | if (PyErr_Occurred()) SWIG_fail; | |
18724 | } | |
4f89f6a3 RD |
18725 | { |
18726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18727 | } | |
d14a1e28 RD |
18728 | return resultobj; |
18729 | fail: | |
18730 | return NULL; | |
18731 | } | |
18732 | ||
18733 | ||
c32bde28 | 18734 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18735 | PyObject *resultobj; |
18736 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18737 | bool result; | |
18738 | PyObject * obj0 = 0 ; | |
18739 | char *kwnames[] = { | |
18740 | (char *) "self", NULL | |
18741 | }; | |
18742 | ||
18743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18746 | { |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18748 | result = (bool)(arg1)->IsToggled(); | |
18749 | ||
18750 | wxPyEndAllowThreads(__tstate); | |
18751 | if (PyErr_Occurred()) SWIG_fail; | |
18752 | } | |
4f89f6a3 RD |
18753 | { |
18754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18755 | } | |
d14a1e28 RD |
18756 | return resultobj; |
18757 | fail: | |
18758 | return NULL; | |
18759 | } | |
18760 | ||
18761 | ||
c32bde28 | 18762 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18763 | PyObject *resultobj; |
18764 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18765 | bool result; | |
18766 | PyObject * obj0 = 0 ; | |
18767 | char *kwnames[] = { | |
18768 | (char *) "self", NULL | |
18769 | }; | |
18770 | ||
18771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18774 | { |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | result = (bool)(arg1)->CanBeToggled(); | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
4f89f6a3 RD |
18781 | { |
18782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18783 | } | |
d14a1e28 RD |
18784 | return resultobj; |
18785 | fail: | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
c32bde28 | 18790 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18791 | PyObject *resultobj; |
18792 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18793 | wxBitmap *result; | |
18794 | PyObject * obj0 = 0 ; | |
18795 | char *kwnames[] = { | |
18796 | (char *) "self", NULL | |
18797 | }; | |
18798 | ||
18799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18800 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18801 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18802 | { |
18803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18804 | { | |
18805 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
18806 | result = (wxBitmap *) &_result_ref; | |
18807 | } | |
18808 | ||
18809 | wxPyEndAllowThreads(__tstate); | |
18810 | if (PyErr_Occurred()) SWIG_fail; | |
18811 | } | |
4276dc52 RD |
18812 | { |
18813 | wxBitmap* resultptr = new wxBitmap(*result); | |
18814 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18815 | } | |
d14a1e28 RD |
18816 | return resultobj; |
18817 | fail: | |
18818 | return NULL; | |
18819 | } | |
18820 | ||
18821 | ||
c32bde28 | 18822 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18823 | PyObject *resultobj; |
18824 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18825 | wxBitmap *result; | |
18826 | PyObject * obj0 = 0 ; | |
18827 | char *kwnames[] = { | |
18828 | (char *) "self", NULL | |
18829 | }; | |
18830 | ||
18831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18834 | { |
18835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18836 | { | |
18837 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
18838 | result = (wxBitmap *) &_result_ref; | |
18839 | } | |
18840 | ||
18841 | wxPyEndAllowThreads(__tstate); | |
18842 | if (PyErr_Occurred()) SWIG_fail; | |
18843 | } | |
4276dc52 RD |
18844 | { |
18845 | wxBitmap* resultptr = new wxBitmap(*result); | |
18846 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18847 | } | |
d14a1e28 RD |
18848 | return resultobj; |
18849 | fail: | |
18850 | return NULL; | |
18851 | } | |
18852 | ||
18853 | ||
c32bde28 | 18854 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18855 | PyObject *resultobj; |
18856 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18857 | wxBitmap result; | |
18858 | PyObject * obj0 = 0 ; | |
18859 | char *kwnames[] = { | |
18860 | (char *) "self", NULL | |
18861 | }; | |
18862 | ||
18863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18866 | { |
18867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18868 | result = (arg1)->GetBitmap(); | |
18869 | ||
18870 | wxPyEndAllowThreads(__tstate); | |
18871 | if (PyErr_Occurred()) SWIG_fail; | |
18872 | } | |
18873 | { | |
18874 | wxBitmap * resultptr; | |
093d3ff1 | 18875 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 18876 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
18877 | } |
18878 | return resultobj; | |
18879 | fail: | |
18880 | return NULL; | |
18881 | } | |
18882 | ||
18883 | ||
c32bde28 | 18884 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18885 | PyObject *resultobj; |
18886 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18887 | wxString result; | |
18888 | PyObject * obj0 = 0 ; | |
18889 | char *kwnames[] = { | |
18890 | (char *) "self", NULL | |
18891 | }; | |
18892 | ||
18893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18896 | { |
18897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18898 | result = (arg1)->GetLabel(); | |
18899 | ||
18900 | wxPyEndAllowThreads(__tstate); | |
18901 | if (PyErr_Occurred()) SWIG_fail; | |
18902 | } | |
18903 | { | |
18904 | #if wxUSE_UNICODE | |
18905 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18906 | #else | |
18907 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18908 | #endif | |
18909 | } | |
18910 | return resultobj; | |
18911 | fail: | |
18912 | return NULL; | |
18913 | } | |
18914 | ||
18915 | ||
c32bde28 | 18916 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18917 | PyObject *resultobj; |
18918 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18919 | wxString result; | |
18920 | PyObject * obj0 = 0 ; | |
18921 | char *kwnames[] = { | |
18922 | (char *) "self", NULL | |
18923 | }; | |
18924 | ||
18925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18928 | { |
18929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18930 | result = (arg1)->GetShortHelp(); | |
18931 | ||
18932 | wxPyEndAllowThreads(__tstate); | |
18933 | if (PyErr_Occurred()) SWIG_fail; | |
18934 | } | |
18935 | { | |
18936 | #if wxUSE_UNICODE | |
18937 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18938 | #else | |
18939 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18940 | #endif | |
18941 | } | |
18942 | return resultobj; | |
18943 | fail: | |
18944 | return NULL; | |
18945 | } | |
18946 | ||
18947 | ||
c32bde28 | 18948 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18949 | PyObject *resultobj; |
18950 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18951 | wxString result; | |
18952 | PyObject * obj0 = 0 ; | |
18953 | char *kwnames[] = { | |
18954 | (char *) "self", NULL | |
18955 | }; | |
18956 | ||
18957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18960 | { |
18961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18962 | result = (arg1)->GetLongHelp(); | |
18963 | ||
18964 | wxPyEndAllowThreads(__tstate); | |
18965 | if (PyErr_Occurred()) SWIG_fail; | |
18966 | } | |
18967 | { | |
18968 | #if wxUSE_UNICODE | |
18969 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18970 | #else | |
18971 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18972 | #endif | |
18973 | } | |
18974 | return resultobj; | |
18975 | fail: | |
18976 | return NULL; | |
18977 | } | |
18978 | ||
18979 | ||
c32bde28 | 18980 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18981 | PyObject *resultobj; |
18982 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18983 | bool arg2 ; | |
18984 | bool result; | |
18985 | PyObject * obj0 = 0 ; | |
18986 | PyObject * obj1 = 0 ; | |
18987 | char *kwnames[] = { | |
18988 | (char *) "self",(char *) "enable", NULL | |
18989 | }; | |
18990 | ||
18991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18994 | { | |
18995 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18997 | } | |
d14a1e28 RD |
18998 | { |
18999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19000 | result = (bool)(arg1)->Enable(arg2); | |
19001 | ||
19002 | wxPyEndAllowThreads(__tstate); | |
19003 | if (PyErr_Occurred()) SWIG_fail; | |
19004 | } | |
4f89f6a3 RD |
19005 | { |
19006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19007 | } | |
d14a1e28 RD |
19008 | return resultobj; |
19009 | fail: | |
19010 | return NULL; | |
19011 | } | |
19012 | ||
19013 | ||
c32bde28 | 19014 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19015 | PyObject *resultobj; |
19016 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19017 | PyObject * obj0 = 0 ; | |
19018 | char *kwnames[] = { | |
19019 | (char *) "self", NULL | |
19020 | }; | |
19021 | ||
19022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19025 | { |
19026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19027 | (arg1)->Toggle(); | |
19028 | ||
19029 | wxPyEndAllowThreads(__tstate); | |
19030 | if (PyErr_Occurred()) SWIG_fail; | |
19031 | } | |
19032 | Py_INCREF(Py_None); resultobj = Py_None; | |
19033 | return resultobj; | |
19034 | fail: | |
19035 | return NULL; | |
19036 | } | |
19037 | ||
19038 | ||
c32bde28 | 19039 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19040 | PyObject *resultobj; |
19041 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19042 | bool arg2 ; | |
19043 | bool result; | |
19044 | PyObject * obj0 = 0 ; | |
19045 | PyObject * obj1 = 0 ; | |
19046 | char *kwnames[] = { | |
19047 | (char *) "self",(char *) "toggle", NULL | |
19048 | }; | |
19049 | ||
19050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19051 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19052 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19053 | { | |
19054 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19055 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19056 | } | |
d14a1e28 RD |
19057 | { |
19058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19059 | result = (bool)(arg1)->SetToggle(arg2); | |
19060 | ||
19061 | wxPyEndAllowThreads(__tstate); | |
19062 | if (PyErr_Occurred()) SWIG_fail; | |
19063 | } | |
4f89f6a3 RD |
19064 | { |
19065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19066 | } | |
d14a1e28 RD |
19067 | return resultobj; |
19068 | fail: | |
19069 | return NULL; | |
19070 | } | |
19071 | ||
19072 | ||
c32bde28 | 19073 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19074 | PyObject *resultobj; |
19075 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19076 | wxString *arg2 = 0 ; | |
19077 | bool result; | |
ae8162c8 | 19078 | bool temp2 = false ; |
d14a1e28 RD |
19079 | PyObject * obj0 = 0 ; |
19080 | PyObject * obj1 = 0 ; | |
19081 | char *kwnames[] = { | |
19082 | (char *) "self",(char *) "help", NULL | |
19083 | }; | |
19084 | ||
19085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19088 | { |
19089 | arg2 = wxString_in_helper(obj1); | |
19090 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19091 | temp2 = true; |
d14a1e28 RD |
19092 | } |
19093 | { | |
19094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19095 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
19096 | ||
19097 | wxPyEndAllowThreads(__tstate); | |
19098 | if (PyErr_Occurred()) SWIG_fail; | |
19099 | } | |
4f89f6a3 RD |
19100 | { |
19101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19102 | } | |
d14a1e28 RD |
19103 | { |
19104 | if (temp2) | |
19105 | delete arg2; | |
19106 | } | |
19107 | return resultobj; | |
19108 | fail: | |
19109 | { | |
19110 | if (temp2) | |
19111 | delete arg2; | |
19112 | } | |
19113 | return NULL; | |
19114 | } | |
19115 | ||
19116 | ||
c32bde28 | 19117 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19118 | PyObject *resultobj; |
19119 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19120 | wxString *arg2 = 0 ; | |
19121 | bool result; | |
ae8162c8 | 19122 | bool temp2 = false ; |
d14a1e28 RD |
19123 | PyObject * obj0 = 0 ; |
19124 | PyObject * obj1 = 0 ; | |
19125 | char *kwnames[] = { | |
19126 | (char *) "self",(char *) "help", NULL | |
19127 | }; | |
19128 | ||
19129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19132 | { |
19133 | arg2 = wxString_in_helper(obj1); | |
19134 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19135 | temp2 = true; |
d14a1e28 RD |
19136 | } |
19137 | { | |
19138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19139 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
19140 | ||
19141 | wxPyEndAllowThreads(__tstate); | |
19142 | if (PyErr_Occurred()) SWIG_fail; | |
19143 | } | |
4f89f6a3 RD |
19144 | { |
19145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19146 | } | |
d14a1e28 RD |
19147 | { |
19148 | if (temp2) | |
19149 | delete arg2; | |
19150 | } | |
19151 | return resultobj; | |
19152 | fail: | |
19153 | { | |
19154 | if (temp2) | |
19155 | delete arg2; | |
19156 | } | |
19157 | return NULL; | |
19158 | } | |
19159 | ||
19160 | ||
c32bde28 | 19161 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19162 | PyObject *resultobj; |
19163 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19164 | wxBitmap *arg2 = 0 ; | |
19165 | PyObject * obj0 = 0 ; | |
19166 | PyObject * obj1 = 0 ; | |
19167 | char *kwnames[] = { | |
19168 | (char *) "self",(char *) "bmp", NULL | |
19169 | }; | |
19170 | ||
19171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19174 | { | |
19175 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19176 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19177 | if (arg2 == NULL) { | |
19178 | SWIG_null_ref("wxBitmap"); | |
19179 | } | |
19180 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19181 | } |
19182 | { | |
19183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19184 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
19185 | ||
19186 | wxPyEndAllowThreads(__tstate); | |
19187 | if (PyErr_Occurred()) SWIG_fail; | |
19188 | } | |
19189 | Py_INCREF(Py_None); resultobj = Py_None; | |
19190 | return resultobj; | |
19191 | fail: | |
19192 | return NULL; | |
19193 | } | |
19194 | ||
19195 | ||
c32bde28 | 19196 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19197 | PyObject *resultobj; |
19198 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19199 | wxBitmap *arg2 = 0 ; | |
19200 | PyObject * obj0 = 0 ; | |
19201 | PyObject * obj1 = 0 ; | |
19202 | char *kwnames[] = { | |
19203 | (char *) "self",(char *) "bmp", NULL | |
19204 | }; | |
19205 | ||
19206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19209 | { | |
19210 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19211 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19212 | if (arg2 == NULL) { | |
19213 | SWIG_null_ref("wxBitmap"); | |
19214 | } | |
19215 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19216 | } |
19217 | { | |
19218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19219 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
19220 | ||
19221 | wxPyEndAllowThreads(__tstate); | |
19222 | if (PyErr_Occurred()) SWIG_fail; | |
19223 | } | |
19224 | Py_INCREF(Py_None); resultobj = Py_None; | |
19225 | return resultobj; | |
19226 | fail: | |
19227 | return NULL; | |
19228 | } | |
19229 | ||
19230 | ||
c32bde28 | 19231 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19232 | PyObject *resultobj; |
19233 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19234 | wxString *arg2 = 0 ; | |
ae8162c8 | 19235 | bool temp2 = false ; |
d14a1e28 RD |
19236 | PyObject * obj0 = 0 ; |
19237 | PyObject * obj1 = 0 ; | |
19238 | char *kwnames[] = { | |
19239 | (char *) "self",(char *) "label", NULL | |
19240 | }; | |
19241 | ||
19242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19245 | { |
19246 | arg2 = wxString_in_helper(obj1); | |
19247 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19248 | temp2 = true; |
d14a1e28 RD |
19249 | } |
19250 | { | |
19251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19252 | (arg1)->SetLabel((wxString const &)*arg2); | |
19253 | ||
19254 | wxPyEndAllowThreads(__tstate); | |
19255 | if (PyErr_Occurred()) SWIG_fail; | |
19256 | } | |
19257 | Py_INCREF(Py_None); resultobj = Py_None; | |
19258 | { | |
19259 | if (temp2) | |
19260 | delete arg2; | |
19261 | } | |
19262 | return resultobj; | |
19263 | fail: | |
19264 | { | |
19265 | if (temp2) | |
19266 | delete arg2; | |
19267 | } | |
19268 | return NULL; | |
19269 | } | |
19270 | ||
19271 | ||
c32bde28 | 19272 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19273 | PyObject *resultobj; |
19274 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19275 | PyObject * obj0 = 0 ; | |
19276 | char *kwnames[] = { | |
19277 | (char *) "self", NULL | |
19278 | }; | |
19279 | ||
19280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19283 | { |
19284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19285 | (arg1)->Detach(); | |
19286 | ||
19287 | wxPyEndAllowThreads(__tstate); | |
19288 | if (PyErr_Occurred()) SWIG_fail; | |
19289 | } | |
19290 | Py_INCREF(Py_None); resultobj = Py_None; | |
19291 | return resultobj; | |
19292 | fail: | |
19293 | return NULL; | |
19294 | } | |
19295 | ||
19296 | ||
c32bde28 | 19297 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19298 | PyObject *resultobj; |
19299 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19300 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
19301 | PyObject * obj0 = 0 ; | |
19302 | PyObject * obj1 = 0 ; | |
19303 | char *kwnames[] = { | |
19304 | (char *) "self",(char *) "tbar", NULL | |
19305 | }; | |
19306 | ||
19307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19310 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19311 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19312 | { |
19313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19314 | (arg1)->Attach(arg2); | |
19315 | ||
19316 | wxPyEndAllowThreads(__tstate); | |
19317 | if (PyErr_Occurred()) SWIG_fail; | |
19318 | } | |
19319 | Py_INCREF(Py_None); resultobj = Py_None; | |
19320 | return resultobj; | |
19321 | fail: | |
19322 | return NULL; | |
19323 | } | |
19324 | ||
19325 | ||
c32bde28 | 19326 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19327 | PyObject *resultobj; |
19328 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19329 | PyObject *result; | |
19330 | PyObject * obj0 = 0 ; | |
19331 | char *kwnames[] = { | |
19332 | (char *) "self", NULL | |
19333 | }; | |
19334 | ||
19335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19338 | { |
19339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19340 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
19341 | ||
19342 | wxPyEndAllowThreads(__tstate); | |
19343 | if (PyErr_Occurred()) SWIG_fail; | |
19344 | } | |
19345 | resultobj = result; | |
19346 | return resultobj; | |
19347 | fail: | |
19348 | return NULL; | |
19349 | } | |
19350 | ||
19351 | ||
c32bde28 | 19352 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19353 | PyObject *resultobj; |
19354 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19355 | PyObject *arg2 = (PyObject *) 0 ; | |
19356 | PyObject * obj0 = 0 ; | |
19357 | PyObject * obj1 = 0 ; | |
19358 | char *kwnames[] = { | |
19359 | (char *) "self",(char *) "clientData", NULL | |
19360 | }; | |
19361 | ||
19362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19365 | arg2 = obj1; |
19366 | { | |
19367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19368 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
19369 | ||
19370 | wxPyEndAllowThreads(__tstate); | |
19371 | if (PyErr_Occurred()) SWIG_fail; | |
19372 | } | |
19373 | Py_INCREF(Py_None); resultobj = Py_None; | |
19374 | return resultobj; | |
19375 | fail: | |
19376 | return NULL; | |
19377 | } | |
19378 | ||
19379 | ||
c32bde28 | 19380 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19381 | PyObject *obj; |
19382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19383 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
19384 | Py_INCREF(obj); | |
19385 | return Py_BuildValue((char *)""); | |
19386 | } | |
c32bde28 | 19387 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19388 | PyObject *resultobj; |
19389 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19390 | int arg2 ; | |
19391 | wxString *arg3 = 0 ; | |
19392 | wxBitmap *arg4 = 0 ; | |
19393 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
19394 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
093d3ff1 | 19395 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
19396 | wxString const &arg7_defvalue = wxPyEmptyString ; |
19397 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19398 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
19399 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19400 | PyObject *arg9 = (PyObject *) NULL ; | |
19401 | wxToolBarToolBase *result; | |
ae8162c8 RD |
19402 | bool temp3 = false ; |
19403 | bool temp7 = false ; | |
19404 | bool temp8 = false ; | |
d14a1e28 | 19405 | PyObject * obj0 = 0 ; |
994141e6 | 19406 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19407 | PyObject * obj2 = 0 ; |
19408 | PyObject * obj3 = 0 ; | |
19409 | PyObject * obj4 = 0 ; | |
994141e6 | 19410 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19411 | PyObject * obj6 = 0 ; |
19412 | PyObject * obj7 = 0 ; | |
19413 | PyObject * obj8 = 0 ; | |
19414 | char *kwnames[] = { | |
19415 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19416 | }; | |
19417 | ||
994141e6 | 19418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
19419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19421 | { | |
19422 | arg2 = (int)(SWIG_As_int(obj1)); | |
19423 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19424 | } | |
d14a1e28 RD |
19425 | { |
19426 | arg3 = wxString_in_helper(obj2); | |
19427 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19428 | temp3 = true; |
d14a1e28 | 19429 | } |
093d3ff1 RD |
19430 | { |
19431 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19432 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19433 | if (arg4 == NULL) { | |
19434 | SWIG_null_ref("wxBitmap"); | |
19435 | } | |
19436 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
19437 | } |
19438 | if (obj4) { | |
093d3ff1 RD |
19439 | { |
19440 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19441 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19442 | if (arg5 == NULL) { | |
19443 | SWIG_null_ref("wxBitmap"); | |
19444 | } | |
19445 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
19446 | } |
19447 | } | |
994141e6 | 19448 | if (obj5) { |
093d3ff1 RD |
19449 | { |
19450 | arg6 = (wxItemKind)(SWIG_As_int(obj5)); | |
19451 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19452 | } | |
994141e6 | 19453 | } |
d14a1e28 RD |
19454 | if (obj6) { |
19455 | { | |
19456 | arg7 = wxString_in_helper(obj6); | |
19457 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19458 | temp7 = true; |
d14a1e28 RD |
19459 | } |
19460 | } | |
19461 | if (obj7) { | |
19462 | { | |
19463 | arg8 = wxString_in_helper(obj7); | |
19464 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 19465 | temp8 = true; |
d14a1e28 RD |
19466 | } |
19467 | } | |
19468 | if (obj8) { | |
19469 | arg9 = obj8; | |
19470 | } | |
19471 | { | |
19472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19473 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
19474 | ||
19475 | wxPyEndAllowThreads(__tstate); | |
19476 | if (PyErr_Occurred()) SWIG_fail; | |
19477 | } | |
19478 | { | |
412d302d | 19479 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19480 | } |
19481 | { | |
19482 | if (temp3) | |
19483 | delete arg3; | |
19484 | } | |
19485 | { | |
19486 | if (temp7) | |
19487 | delete arg7; | |
19488 | } | |
19489 | { | |
19490 | if (temp8) | |
19491 | delete arg8; | |
19492 | } | |
19493 | return resultobj; | |
19494 | fail: | |
19495 | { | |
19496 | if (temp3) | |
19497 | delete arg3; | |
19498 | } | |
19499 | { | |
19500 | if (temp7) | |
19501 | delete arg7; | |
19502 | } | |
19503 | { | |
19504 | if (temp8) | |
19505 | delete arg8; | |
19506 | } | |
19507 | return NULL; | |
19508 | } | |
19509 | ||
19510 | ||
c32bde28 | 19511 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19512 | PyObject *resultobj; |
19513 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19514 | size_t arg2 ; | |
19515 | int arg3 ; | |
19516 | wxString *arg4 = 0 ; | |
19517 | wxBitmap *arg5 = 0 ; | |
19518 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
19519 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
093d3ff1 | 19520 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
19521 | wxString const &arg8_defvalue = wxPyEmptyString ; |
19522 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19523 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
19524 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
19525 | PyObject *arg10 = (PyObject *) NULL ; | |
19526 | wxToolBarToolBase *result; | |
ae8162c8 RD |
19527 | bool temp4 = false ; |
19528 | bool temp8 = false ; | |
19529 | bool temp9 = false ; | |
d14a1e28 RD |
19530 | PyObject * obj0 = 0 ; |
19531 | PyObject * obj1 = 0 ; | |
994141e6 | 19532 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19533 | PyObject * obj3 = 0 ; |
19534 | PyObject * obj4 = 0 ; | |
19535 | PyObject * obj5 = 0 ; | |
994141e6 | 19536 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
19537 | PyObject * obj7 = 0 ; |
19538 | PyObject * obj8 = 0 ; | |
19539 | PyObject * obj9 = 0 ; | |
19540 | char *kwnames[] = { | |
19541 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19542 | }; | |
19543 | ||
994141e6 | 19544 | 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 |
19545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19547 | { | |
19548 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19550 | } | |
19551 | { | |
19552 | arg3 = (int)(SWIG_As_int(obj2)); | |
19553 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19554 | } | |
d14a1e28 RD |
19555 | { |
19556 | arg4 = wxString_in_helper(obj3); | |
19557 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 19558 | temp4 = true; |
d14a1e28 | 19559 | } |
093d3ff1 RD |
19560 | { |
19561 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19562 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19563 | if (arg5 == NULL) { | |
19564 | SWIG_null_ref("wxBitmap"); | |
19565 | } | |
19566 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
19567 | } |
19568 | if (obj5) { | |
093d3ff1 RD |
19569 | { |
19570 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19571 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19572 | if (arg6 == NULL) { | |
19573 | SWIG_null_ref("wxBitmap"); | |
19574 | } | |
19575 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
19576 | } |
19577 | } | |
994141e6 | 19578 | if (obj6) { |
093d3ff1 RD |
19579 | { |
19580 | arg7 = (wxItemKind)(SWIG_As_int(obj6)); | |
19581 | if (SWIG_arg_fail(7)) SWIG_fail; | |
19582 | } | |
994141e6 | 19583 | } |
d14a1e28 RD |
19584 | if (obj7) { |
19585 | { | |
19586 | arg8 = wxString_in_helper(obj7); | |
19587 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 19588 | temp8 = true; |
d14a1e28 RD |
19589 | } |
19590 | } | |
19591 | if (obj8) { | |
19592 | { | |
19593 | arg9 = wxString_in_helper(obj8); | |
19594 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 19595 | temp9 = true; |
d14a1e28 RD |
19596 | } |
19597 | } | |
19598 | if (obj9) { | |
19599 | arg10 = obj9; | |
19600 | } | |
19601 | { | |
19602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19603 | 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); | |
19604 | ||
19605 | wxPyEndAllowThreads(__tstate); | |
19606 | if (PyErr_Occurred()) SWIG_fail; | |
19607 | } | |
19608 | { | |
412d302d | 19609 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19610 | } |
19611 | { | |
19612 | if (temp4) | |
19613 | delete arg4; | |
19614 | } | |
19615 | { | |
19616 | if (temp8) | |
19617 | delete arg8; | |
19618 | } | |
19619 | { | |
19620 | if (temp9) | |
19621 | delete arg9; | |
19622 | } | |
19623 | return resultobj; | |
19624 | fail: | |
19625 | { | |
19626 | if (temp4) | |
19627 | delete arg4; | |
19628 | } | |
19629 | { | |
19630 | if (temp8) | |
19631 | delete arg8; | |
19632 | } | |
19633 | { | |
19634 | if (temp9) | |
19635 | delete arg9; | |
19636 | } | |
19637 | return NULL; | |
19638 | } | |
19639 | ||
19640 | ||
c32bde28 | 19641 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
19642 | PyObject *resultobj; |
19643 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19644 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
19645 | wxToolBarToolBase *result; | |
19646 | PyObject * obj0 = 0 ; | |
19647 | PyObject * obj1 = 0 ; | |
19648 | char *kwnames[] = { | |
19649 | (char *) "self",(char *) "tool", NULL | |
19650 | }; | |
19651 | ||
19652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19655 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3a04f143 RD |
19657 | { |
19658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19659 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
19660 | ||
19661 | wxPyEndAllowThreads(__tstate); | |
19662 | if (PyErr_Occurred()) SWIG_fail; | |
19663 | } | |
19664 | { | |
412d302d | 19665 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
19666 | } |
19667 | return resultobj; | |
19668 | fail: | |
19669 | return NULL; | |
19670 | } | |
19671 | ||
19672 | ||
c32bde28 | 19673 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
19674 | PyObject *resultobj; |
19675 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19676 | size_t arg2 ; | |
19677 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
19678 | wxToolBarToolBase *result; | |
19679 | PyObject * obj0 = 0 ; | |
19680 | PyObject * obj1 = 0 ; | |
19681 | PyObject * obj2 = 0 ; | |
19682 | char *kwnames[] = { | |
19683 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
19684 | }; | |
19685 | ||
19686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19689 | { | |
19690 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19692 | } | |
19693 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19694 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3a04f143 RD |
19695 | { |
19696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19697 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
19698 | ||
19699 | wxPyEndAllowThreads(__tstate); | |
19700 | if (PyErr_Occurred()) SWIG_fail; | |
19701 | } | |
19702 | { | |
412d302d | 19703 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
19704 | } |
19705 | return resultobj; | |
19706 | fail: | |
19707 | return NULL; | |
19708 | } | |
19709 | ||
19710 | ||
c32bde28 | 19711 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19712 | PyObject *resultobj; |
19713 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19714 | wxControl *arg2 = (wxControl *) 0 ; | |
19715 | wxToolBarToolBase *result; | |
19716 | PyObject * obj0 = 0 ; | |
19717 | PyObject * obj1 = 0 ; | |
19718 | char *kwnames[] = { | |
19719 | (char *) "self",(char *) "control", NULL | |
19720 | }; | |
19721 | ||
19722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",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 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19726 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19727 | { |
19728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19729 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
19730 | ||
19731 | wxPyEndAllowThreads(__tstate); | |
19732 | if (PyErr_Occurred()) SWIG_fail; | |
19733 | } | |
19734 | { | |
412d302d | 19735 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19736 | } |
19737 | return resultobj; | |
19738 | fail: | |
19739 | return NULL; | |
19740 | } | |
19741 | ||
19742 | ||
c32bde28 | 19743 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19744 | PyObject *resultobj; |
19745 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19746 | size_t arg2 ; | |
19747 | wxControl *arg3 = (wxControl *) 0 ; | |
19748 | wxToolBarToolBase *result; | |
19749 | PyObject * obj0 = 0 ; | |
19750 | PyObject * obj1 = 0 ; | |
19751 | PyObject * obj2 = 0 ; | |
19752 | char *kwnames[] = { | |
19753 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
19754 | }; | |
19755 | ||
19756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) 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 | } | |
19763 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19764 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
19765 | { |
19766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19767 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
19768 | ||
19769 | wxPyEndAllowThreads(__tstate); | |
19770 | if (PyErr_Occurred()) SWIG_fail; | |
19771 | } | |
19772 | { | |
412d302d | 19773 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19774 | } |
19775 | return resultobj; | |
19776 | fail: | |
19777 | return NULL; | |
19778 | } | |
19779 | ||
19780 | ||
c32bde28 | 19781 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19782 | PyObject *resultobj; |
19783 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19784 | int arg2 ; | |
19785 | wxControl *result; | |
19786 | PyObject * obj0 = 0 ; | |
994141e6 | 19787 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19788 | char *kwnames[] = { |
19789 | (char *) "self",(char *) "id", NULL | |
19790 | }; | |
19791 | ||
994141e6 | 19792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19795 | { | |
19796 | arg2 = (int)(SWIG_As_int(obj1)); | |
19797 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19798 | } | |
d14a1e28 RD |
19799 | { |
19800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19801 | result = (wxControl *)(arg1)->FindControl(arg2); | |
19802 | ||
19803 | wxPyEndAllowThreads(__tstate); | |
19804 | if (PyErr_Occurred()) SWIG_fail; | |
19805 | } | |
19806 | { | |
412d302d | 19807 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19808 | } |
19809 | return resultobj; | |
19810 | fail: | |
19811 | return NULL; | |
19812 | } | |
19813 | ||
19814 | ||
c32bde28 | 19815 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19816 | PyObject *resultobj; |
19817 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19818 | wxToolBarToolBase *result; | |
19819 | PyObject * obj0 = 0 ; | |
19820 | char *kwnames[] = { | |
19821 | (char *) "self", NULL | |
19822 | }; | |
19823 | ||
19824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19827 | { |
19828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19829 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
19830 | ||
19831 | wxPyEndAllowThreads(__tstate); | |
19832 | if (PyErr_Occurred()) SWIG_fail; | |
19833 | } | |
19834 | { | |
412d302d | 19835 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19836 | } |
19837 | return resultobj; | |
19838 | fail: | |
19839 | return NULL; | |
19840 | } | |
19841 | ||
19842 | ||
c32bde28 | 19843 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19844 | PyObject *resultobj; |
19845 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19846 | size_t arg2 ; | |
19847 | wxToolBarToolBase *result; | |
19848 | PyObject * obj0 = 0 ; | |
19849 | PyObject * obj1 = 0 ; | |
19850 | char *kwnames[] = { | |
19851 | (char *) "self",(char *) "pos", NULL | |
19852 | }; | |
19853 | ||
19854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19855 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19856 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19857 | { | |
19858 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19859 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19860 | } | |
d14a1e28 RD |
19861 | { |
19862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19863 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
19864 | ||
19865 | wxPyEndAllowThreads(__tstate); | |
19866 | if (PyErr_Occurred()) SWIG_fail; | |
19867 | } | |
19868 | { | |
412d302d | 19869 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19870 | } |
19871 | return resultobj; | |
19872 | fail: | |
19873 | return NULL; | |
19874 | } | |
19875 | ||
19876 | ||
c32bde28 | 19877 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19878 | PyObject *resultobj; |
19879 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19880 | int arg2 ; | |
19881 | wxToolBarToolBase *result; | |
19882 | PyObject * obj0 = 0 ; | |
994141e6 | 19883 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19884 | char *kwnames[] = { |
19885 | (char *) "self",(char *) "id", NULL | |
19886 | }; | |
19887 | ||
994141e6 | 19888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19891 | { | |
19892 | arg2 = (int)(SWIG_As_int(obj1)); | |
19893 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19894 | } | |
d14a1e28 RD |
19895 | { |
19896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19897 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
19898 | ||
19899 | wxPyEndAllowThreads(__tstate); | |
19900 | if (PyErr_Occurred()) SWIG_fail; | |
19901 | } | |
19902 | { | |
412d302d | 19903 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19904 | } |
19905 | return resultobj; | |
19906 | fail: | |
19907 | return NULL; | |
19908 | } | |
19909 | ||
19910 | ||
c32bde28 | 19911 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19912 | PyObject *resultobj; |
19913 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19914 | size_t arg2 ; | |
19915 | bool result; | |
19916 | PyObject * obj0 = 0 ; | |
19917 | PyObject * obj1 = 0 ; | |
19918 | char *kwnames[] = { | |
19919 | (char *) "self",(char *) "pos", NULL | |
19920 | }; | |
19921 | ||
19922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19925 | { | |
19926 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19927 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19928 | } | |
d14a1e28 RD |
19929 | { |
19930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19931 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
19932 | ||
19933 | wxPyEndAllowThreads(__tstate); | |
19934 | if (PyErr_Occurred()) SWIG_fail; | |
19935 | } | |
4f89f6a3 RD |
19936 | { |
19937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19938 | } | |
d14a1e28 RD |
19939 | return resultobj; |
19940 | fail: | |
19941 | return NULL; | |
19942 | } | |
19943 | ||
19944 | ||
c32bde28 | 19945 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19946 | PyObject *resultobj; |
19947 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19948 | int arg2 ; | |
19949 | bool result; | |
19950 | PyObject * obj0 = 0 ; | |
994141e6 | 19951 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19952 | char *kwnames[] = { |
19953 | (char *) "self",(char *) "id", NULL | |
19954 | }; | |
19955 | ||
994141e6 | 19956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19959 | { | |
19960 | arg2 = (int)(SWIG_As_int(obj1)); | |
19961 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19962 | } | |
d14a1e28 RD |
19963 | { |
19964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19965 | result = (bool)(arg1)->DeleteTool(arg2); | |
19966 | ||
19967 | wxPyEndAllowThreads(__tstate); | |
19968 | if (PyErr_Occurred()) SWIG_fail; | |
19969 | } | |
4f89f6a3 RD |
19970 | { |
19971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19972 | } | |
d14a1e28 RD |
19973 | return resultobj; |
19974 | fail: | |
19975 | return NULL; | |
19976 | } | |
19977 | ||
19978 | ||
c32bde28 | 19979 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19980 | PyObject *resultobj; |
19981 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | char *kwnames[] = { | |
19984 | (char *) "self", NULL | |
19985 | }; | |
19986 | ||
19987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19990 | { |
19991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19992 | (arg1)->ClearTools(); | |
19993 | ||
19994 | wxPyEndAllowThreads(__tstate); | |
19995 | if (PyErr_Occurred()) SWIG_fail; | |
19996 | } | |
19997 | Py_INCREF(Py_None); resultobj = Py_None; | |
19998 | return resultobj; | |
19999 | fail: | |
20000 | return NULL; | |
20001 | } | |
20002 | ||
20003 | ||
c32bde28 | 20004 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20005 | PyObject *resultobj; |
20006 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20007 | bool result; | |
20008 | PyObject * obj0 = 0 ; | |
20009 | char *kwnames[] = { | |
20010 | (char *) "self", NULL | |
20011 | }; | |
20012 | ||
20013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20016 | { |
20017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20018 | result = (bool)(arg1)->Realize(); | |
20019 | ||
20020 | wxPyEndAllowThreads(__tstate); | |
20021 | if (PyErr_Occurred()) SWIG_fail; | |
20022 | } | |
4f89f6a3 RD |
20023 | { |
20024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20025 | } | |
d14a1e28 RD |
20026 | return resultobj; |
20027 | fail: | |
20028 | return NULL; | |
20029 | } | |
20030 | ||
20031 | ||
c32bde28 | 20032 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20033 | PyObject *resultobj; |
20034 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20035 | int arg2 ; | |
20036 | bool arg3 ; | |
20037 | PyObject * obj0 = 0 ; | |
994141e6 | 20038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20039 | PyObject * obj2 = 0 ; |
20040 | char *kwnames[] = { | |
20041 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
20042 | }; | |
20043 | ||
994141e6 | 20044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20047 | { | |
20048 | arg2 = (int)(SWIG_As_int(obj1)); | |
20049 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20050 | } | |
20051 | { | |
20052 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
20053 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20054 | } | |
d14a1e28 RD |
20055 | { |
20056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20057 | (arg1)->EnableTool(arg2,arg3); | |
20058 | ||
20059 | wxPyEndAllowThreads(__tstate); | |
20060 | if (PyErr_Occurred()) SWIG_fail; | |
20061 | } | |
20062 | Py_INCREF(Py_None); resultobj = Py_None; | |
20063 | return resultobj; | |
20064 | fail: | |
20065 | return NULL; | |
20066 | } | |
20067 | ||
20068 | ||
c32bde28 | 20069 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20070 | PyObject *resultobj; |
20071 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20072 | int arg2 ; | |
20073 | bool arg3 ; | |
20074 | PyObject * obj0 = 0 ; | |
994141e6 | 20075 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20076 | PyObject * obj2 = 0 ; |
20077 | char *kwnames[] = { | |
20078 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
20079 | }; | |
20080 | ||
994141e6 | 20081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20084 | { | |
20085 | arg2 = (int)(SWIG_As_int(obj1)); | |
20086 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20087 | } | |
20088 | { | |
20089 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
20090 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20091 | } | |
d14a1e28 RD |
20092 | { |
20093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20094 | (arg1)->ToggleTool(arg2,arg3); | |
20095 | ||
20096 | wxPyEndAllowThreads(__tstate); | |
20097 | if (PyErr_Occurred()) SWIG_fail; | |
20098 | } | |
20099 | Py_INCREF(Py_None); resultobj = Py_None; | |
20100 | return resultobj; | |
20101 | fail: | |
20102 | return NULL; | |
20103 | } | |
20104 | ||
20105 | ||
c32bde28 | 20106 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20107 | PyObject *resultobj; |
20108 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20109 | int arg2 ; | |
20110 | bool arg3 ; | |
20111 | PyObject * obj0 = 0 ; | |
994141e6 | 20112 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20113 | PyObject * obj2 = 0 ; |
20114 | char *kwnames[] = { | |
20115 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
20116 | }; | |
20117 | ||
994141e6 | 20118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20121 | { | |
20122 | arg2 = (int)(SWIG_As_int(obj1)); | |
20123 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20124 | } | |
20125 | { | |
20126 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
20127 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20128 | } | |
d14a1e28 RD |
20129 | { |
20130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20131 | (arg1)->SetToggle(arg2,arg3); | |
20132 | ||
20133 | wxPyEndAllowThreads(__tstate); | |
20134 | if (PyErr_Occurred()) SWIG_fail; | |
20135 | } | |
20136 | Py_INCREF(Py_None); resultobj = Py_None; | |
20137 | return resultobj; | |
20138 | fail: | |
20139 | return NULL; | |
20140 | } | |
20141 | ||
20142 | ||
c32bde28 | 20143 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20144 | PyObject *resultobj; |
20145 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20146 | int arg2 ; | |
20147 | PyObject *result; | |
20148 | PyObject * obj0 = 0 ; | |
994141e6 | 20149 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20150 | char *kwnames[] = { |
20151 | (char *) "self",(char *) "id", NULL | |
20152 | }; | |
20153 | ||
994141e6 | 20154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20157 | { | |
20158 | arg2 = (int)(SWIG_As_int(obj1)); | |
20159 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20160 | } | |
d14a1e28 RD |
20161 | { |
20162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20163 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
20164 | ||
20165 | wxPyEndAllowThreads(__tstate); | |
20166 | if (PyErr_Occurred()) SWIG_fail; | |
20167 | } | |
20168 | resultobj = result; | |
20169 | return resultobj; | |
20170 | fail: | |
20171 | return NULL; | |
20172 | } | |
20173 | ||
20174 | ||
c32bde28 | 20175 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20176 | PyObject *resultobj; |
20177 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20178 | int arg2 ; | |
20179 | PyObject *arg3 = (PyObject *) 0 ; | |
20180 | PyObject * obj0 = 0 ; | |
994141e6 | 20181 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20182 | PyObject * obj2 = 0 ; |
20183 | char *kwnames[] = { | |
20184 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
20185 | }; | |
20186 | ||
994141e6 | 20187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20190 | { | |
20191 | arg2 = (int)(SWIG_As_int(obj1)); | |
20192 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20193 | } | |
d14a1e28 RD |
20194 | arg3 = obj2; |
20195 | { | |
20196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20197 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
20198 | ||
20199 | wxPyEndAllowThreads(__tstate); | |
20200 | if (PyErr_Occurred()) SWIG_fail; | |
20201 | } | |
20202 | Py_INCREF(Py_None); resultobj = Py_None; | |
20203 | return resultobj; | |
20204 | fail: | |
20205 | return NULL; | |
20206 | } | |
20207 | ||
20208 | ||
c32bde28 | 20209 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20210 | PyObject *resultobj; |
20211 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20212 | int arg2 ; | |
20213 | int result; | |
20214 | PyObject * obj0 = 0 ; | |
994141e6 | 20215 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20216 | char *kwnames[] = { |
20217 | (char *) "self",(char *) "id", NULL | |
20218 | }; | |
20219 | ||
994141e6 | 20220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20223 | { | |
20224 | arg2 = (int)(SWIG_As_int(obj1)); | |
20225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20226 | } | |
d14a1e28 RD |
20227 | { |
20228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20229 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
20230 | ||
20231 | wxPyEndAllowThreads(__tstate); | |
20232 | if (PyErr_Occurred()) SWIG_fail; | |
20233 | } | |
093d3ff1 RD |
20234 | { |
20235 | resultobj = SWIG_From_int((int)(result)); | |
20236 | } | |
d14a1e28 RD |
20237 | return resultobj; |
20238 | fail: | |
20239 | return NULL; | |
20240 | } | |
20241 | ||
20242 | ||
c32bde28 | 20243 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20244 | PyObject *resultobj; |
20245 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20246 | int arg2 ; | |
20247 | bool result; | |
20248 | PyObject * obj0 = 0 ; | |
994141e6 | 20249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20250 | char *kwnames[] = { |
20251 | (char *) "self",(char *) "id", NULL | |
20252 | }; | |
20253 | ||
994141e6 | 20254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20257 | { | |
20258 | arg2 = (int)(SWIG_As_int(obj1)); | |
20259 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20260 | } | |
d14a1e28 RD |
20261 | { |
20262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20263 | result = (bool)(arg1)->GetToolState(arg2); | |
20264 | ||
20265 | wxPyEndAllowThreads(__tstate); | |
20266 | if (PyErr_Occurred()) SWIG_fail; | |
20267 | } | |
4f89f6a3 RD |
20268 | { |
20269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20270 | } | |
d14a1e28 RD |
20271 | return resultobj; |
20272 | fail: | |
20273 | return NULL; | |
20274 | } | |
20275 | ||
20276 | ||
c32bde28 | 20277 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20278 | PyObject *resultobj; |
20279 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20280 | int arg2 ; | |
20281 | bool result; | |
20282 | PyObject * obj0 = 0 ; | |
994141e6 | 20283 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20284 | char *kwnames[] = { |
20285 | (char *) "self",(char *) "id", NULL | |
20286 | }; | |
20287 | ||
994141e6 | 20288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",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 | } | |
d14a1e28 RD |
20295 | { |
20296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20297 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
20298 | ||
20299 | wxPyEndAllowThreads(__tstate); | |
20300 | if (PyErr_Occurred()) SWIG_fail; | |
20301 | } | |
4f89f6a3 RD |
20302 | { |
20303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20304 | } | |
d14a1e28 RD |
20305 | return resultobj; |
20306 | fail: | |
20307 | return NULL; | |
20308 | } | |
20309 | ||
20310 | ||
c32bde28 | 20311 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20312 | PyObject *resultobj; |
20313 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20314 | int arg2 ; | |
20315 | wxString *arg3 = 0 ; | |
ae8162c8 | 20316 | bool temp3 = false ; |
d14a1e28 | 20317 | PyObject * obj0 = 0 ; |
994141e6 | 20318 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20319 | PyObject * obj2 = 0 ; |
20320 | char *kwnames[] = { | |
20321 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20322 | }; | |
20323 | ||
994141e6 | 20324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20327 | { | |
20328 | arg2 = (int)(SWIG_As_int(obj1)); | |
20329 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20330 | } | |
d14a1e28 RD |
20331 | { |
20332 | arg3 = wxString_in_helper(obj2); | |
20333 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20334 | temp3 = true; |
d14a1e28 RD |
20335 | } |
20336 | { | |
20337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20338 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
20339 | ||
20340 | wxPyEndAllowThreads(__tstate); | |
20341 | if (PyErr_Occurred()) SWIG_fail; | |
20342 | } | |
20343 | Py_INCREF(Py_None); resultobj = Py_None; | |
20344 | { | |
20345 | if (temp3) | |
20346 | delete arg3; | |
20347 | } | |
20348 | return resultobj; | |
20349 | fail: | |
20350 | { | |
20351 | if (temp3) | |
20352 | delete arg3; | |
20353 | } | |
20354 | return NULL; | |
20355 | } | |
20356 | ||
20357 | ||
c32bde28 | 20358 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20359 | PyObject *resultobj; |
20360 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20361 | int arg2 ; | |
20362 | wxString result; | |
20363 | PyObject * obj0 = 0 ; | |
994141e6 | 20364 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20365 | char *kwnames[] = { |
20366 | (char *) "self",(char *) "id", NULL | |
20367 | }; | |
20368 | ||
994141e6 | 20369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20372 | { | |
20373 | arg2 = (int)(SWIG_As_int(obj1)); | |
20374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20375 | } | |
d14a1e28 RD |
20376 | { |
20377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20378 | result = (arg1)->GetToolShortHelp(arg2); | |
20379 | ||
20380 | wxPyEndAllowThreads(__tstate); | |
20381 | if (PyErr_Occurred()) SWIG_fail; | |
20382 | } | |
20383 | { | |
20384 | #if wxUSE_UNICODE | |
20385 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20386 | #else | |
20387 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20388 | #endif | |
20389 | } | |
20390 | return resultobj; | |
20391 | fail: | |
20392 | return NULL; | |
20393 | } | |
20394 | ||
20395 | ||
c32bde28 | 20396 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20397 | PyObject *resultobj; |
20398 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20399 | int arg2 ; | |
20400 | wxString *arg3 = 0 ; | |
ae8162c8 | 20401 | bool temp3 = false ; |
d14a1e28 | 20402 | PyObject * obj0 = 0 ; |
994141e6 | 20403 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20404 | PyObject * obj2 = 0 ; |
20405 | char *kwnames[] = { | |
20406 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20407 | }; | |
20408 | ||
994141e6 | 20409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20412 | { | |
20413 | arg2 = (int)(SWIG_As_int(obj1)); | |
20414 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20415 | } | |
d14a1e28 RD |
20416 | { |
20417 | arg3 = wxString_in_helper(obj2); | |
20418 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20419 | temp3 = true; |
d14a1e28 RD |
20420 | } |
20421 | { | |
20422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20423 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
20424 | ||
20425 | wxPyEndAllowThreads(__tstate); | |
20426 | if (PyErr_Occurred()) SWIG_fail; | |
20427 | } | |
20428 | Py_INCREF(Py_None); resultobj = Py_None; | |
20429 | { | |
20430 | if (temp3) | |
20431 | delete arg3; | |
20432 | } | |
20433 | return resultobj; | |
20434 | fail: | |
20435 | { | |
20436 | if (temp3) | |
20437 | delete arg3; | |
20438 | } | |
20439 | return NULL; | |
20440 | } | |
20441 | ||
20442 | ||
c32bde28 | 20443 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20444 | PyObject *resultobj; |
20445 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20446 | int arg2 ; | |
20447 | wxString result; | |
20448 | PyObject * obj0 = 0 ; | |
994141e6 | 20449 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20450 | char *kwnames[] = { |
20451 | (char *) "self",(char *) "id", NULL | |
20452 | }; | |
20453 | ||
994141e6 | 20454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20457 | { | |
20458 | arg2 = (int)(SWIG_As_int(obj1)); | |
20459 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20460 | } | |
d14a1e28 RD |
20461 | { |
20462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20463 | result = (arg1)->GetToolLongHelp(arg2); | |
20464 | ||
20465 | wxPyEndAllowThreads(__tstate); | |
20466 | if (PyErr_Occurred()) SWIG_fail; | |
20467 | } | |
20468 | { | |
20469 | #if wxUSE_UNICODE | |
20470 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20471 | #else | |
20472 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20473 | #endif | |
20474 | } | |
20475 | return resultobj; | |
20476 | fail: | |
20477 | return NULL; | |
20478 | } | |
20479 | ||
20480 | ||
c32bde28 | 20481 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20482 | PyObject *resultobj; |
20483 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20484 | int arg2 ; | |
20485 | int arg3 ; | |
20486 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20487 | PyObject * obj1 = 0 ; |
20488 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20489 | char *kwnames[] = { |
20490 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20491 | }; | |
20492 | ||
994141e6 | 20493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20496 | { | |
20497 | arg2 = (int)(SWIG_As_int(obj1)); | |
20498 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20499 | } | |
20500 | { | |
20501 | arg3 = (int)(SWIG_As_int(obj2)); | |
20502 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20503 | } | |
d14a1e28 RD |
20504 | { |
20505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20506 | (arg1)->SetMargins(arg2,arg3); | |
20507 | ||
20508 | wxPyEndAllowThreads(__tstate); | |
20509 | if (PyErr_Occurred()) SWIG_fail; | |
20510 | } | |
20511 | Py_INCREF(Py_None); resultobj = Py_None; | |
20512 | return resultobj; | |
20513 | fail: | |
20514 | return NULL; | |
20515 | } | |
20516 | ||
20517 | ||
c32bde28 | 20518 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20519 | PyObject *resultobj; |
20520 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20521 | wxSize *arg2 = 0 ; | |
20522 | wxSize temp2 ; | |
20523 | PyObject * obj0 = 0 ; | |
20524 | PyObject * obj1 = 0 ; | |
20525 | char *kwnames[] = { | |
20526 | (char *) "self",(char *) "size", NULL | |
20527 | }; | |
20528 | ||
20529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20532 | { |
20533 | arg2 = &temp2; | |
20534 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20535 | } | |
20536 | { | |
20537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20538 | (arg1)->SetMargins((wxSize const &)*arg2); | |
20539 | ||
20540 | wxPyEndAllowThreads(__tstate); | |
20541 | if (PyErr_Occurred()) SWIG_fail; | |
20542 | } | |
20543 | Py_INCREF(Py_None); resultobj = Py_None; | |
20544 | return resultobj; | |
20545 | fail: | |
20546 | return NULL; | |
20547 | } | |
20548 | ||
20549 | ||
c32bde28 | 20550 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20551 | PyObject *resultobj; |
20552 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20553 | int arg2 ; | |
20554 | PyObject * obj0 = 0 ; | |
994141e6 | 20555 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20556 | char *kwnames[] = { |
20557 | (char *) "self",(char *) "packing", NULL | |
20558 | }; | |
20559 | ||
994141e6 | 20560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20563 | { | |
20564 | arg2 = (int)(SWIG_As_int(obj1)); | |
20565 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20566 | } | |
d14a1e28 RD |
20567 | { |
20568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20569 | (arg1)->SetToolPacking(arg2); | |
20570 | ||
20571 | wxPyEndAllowThreads(__tstate); | |
20572 | if (PyErr_Occurred()) SWIG_fail; | |
20573 | } | |
20574 | Py_INCREF(Py_None); resultobj = Py_None; | |
20575 | return resultobj; | |
20576 | fail: | |
20577 | return NULL; | |
20578 | } | |
20579 | ||
20580 | ||
c32bde28 | 20581 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20582 | PyObject *resultobj; |
20583 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20584 | int arg2 ; | |
20585 | PyObject * obj0 = 0 ; | |
994141e6 | 20586 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20587 | char *kwnames[] = { |
20588 | (char *) "self",(char *) "separation", NULL | |
20589 | }; | |
20590 | ||
994141e6 | 20591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20594 | { | |
20595 | arg2 = (int)(SWIG_As_int(obj1)); | |
20596 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20597 | } | |
d14a1e28 RD |
20598 | { |
20599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20600 | (arg1)->SetToolSeparation(arg2); | |
20601 | ||
20602 | wxPyEndAllowThreads(__tstate); | |
20603 | if (PyErr_Occurred()) SWIG_fail; | |
20604 | } | |
20605 | Py_INCREF(Py_None); resultobj = Py_None; | |
20606 | return resultobj; | |
20607 | fail: | |
20608 | return NULL; | |
20609 | } | |
20610 | ||
20611 | ||
c32bde28 | 20612 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20613 | PyObject *resultobj; |
20614 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20615 | wxSize result; | |
20616 | PyObject * obj0 = 0 ; | |
20617 | char *kwnames[] = { | |
20618 | (char *) "self", NULL | |
20619 | }; | |
20620 | ||
20621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20624 | { |
20625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20626 | result = (arg1)->GetToolMargins(); | |
20627 | ||
20628 | wxPyEndAllowThreads(__tstate); | |
20629 | if (PyErr_Occurred()) SWIG_fail; | |
20630 | } | |
20631 | { | |
20632 | wxSize * resultptr; | |
093d3ff1 | 20633 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 20634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20635 | } |
20636 | return resultobj; | |
20637 | fail: | |
20638 | return NULL; | |
20639 | } | |
20640 | ||
20641 | ||
c32bde28 | 20642 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20643 | PyObject *resultobj; |
20644 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20645 | wxSize result; | |
20646 | PyObject * obj0 = 0 ; | |
20647 | char *kwnames[] = { | |
20648 | (char *) "self", NULL | |
20649 | }; | |
20650 | ||
20651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20654 | { |
20655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20656 | result = (arg1)->GetMargins(); | |
20657 | ||
20658 | wxPyEndAllowThreads(__tstate); | |
20659 | if (PyErr_Occurred()) SWIG_fail; | |
20660 | } | |
20661 | { | |
20662 | wxSize * resultptr; | |
093d3ff1 | 20663 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 20664 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20665 | } |
20666 | return resultobj; | |
20667 | fail: | |
20668 | return NULL; | |
20669 | } | |
20670 | ||
20671 | ||
c32bde28 | 20672 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20673 | PyObject *resultobj; |
20674 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20675 | int result; | |
20676 | PyObject * obj0 = 0 ; | |
20677 | char *kwnames[] = { | |
20678 | (char *) "self", NULL | |
20679 | }; | |
20680 | ||
20681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20684 | { |
20685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20686 | result = (int)(arg1)->GetToolPacking(); | |
20687 | ||
20688 | wxPyEndAllowThreads(__tstate); | |
20689 | if (PyErr_Occurred()) SWIG_fail; | |
20690 | } | |
093d3ff1 RD |
20691 | { |
20692 | resultobj = SWIG_From_int((int)(result)); | |
20693 | } | |
d14a1e28 RD |
20694 | return resultobj; |
20695 | fail: | |
20696 | return NULL; | |
20697 | } | |
20698 | ||
20699 | ||
c32bde28 | 20700 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20701 | PyObject *resultobj; |
20702 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20703 | int result; | |
20704 | PyObject * obj0 = 0 ; | |
20705 | char *kwnames[] = { | |
20706 | (char *) "self", NULL | |
20707 | }; | |
20708 | ||
20709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20712 | { |
20713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20714 | result = (int)(arg1)->GetToolSeparation(); | |
20715 | ||
20716 | wxPyEndAllowThreads(__tstate); | |
20717 | if (PyErr_Occurred()) SWIG_fail; | |
20718 | } | |
093d3ff1 RD |
20719 | { |
20720 | resultobj = SWIG_From_int((int)(result)); | |
20721 | } | |
d14a1e28 RD |
20722 | return resultobj; |
20723 | fail: | |
20724 | return NULL; | |
20725 | } | |
20726 | ||
20727 | ||
c32bde28 | 20728 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20729 | PyObject *resultobj; |
20730 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20731 | int arg2 ; | |
20732 | PyObject * obj0 = 0 ; | |
994141e6 | 20733 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20734 | char *kwnames[] = { |
20735 | (char *) "self",(char *) "nRows", NULL | |
20736 | }; | |
20737 | ||
994141e6 | 20738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20741 | { | |
20742 | arg2 = (int)(SWIG_As_int(obj1)); | |
20743 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20744 | } | |
d14a1e28 RD |
20745 | { |
20746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20747 | (arg1)->SetRows(arg2); | |
20748 | ||
20749 | wxPyEndAllowThreads(__tstate); | |
20750 | if (PyErr_Occurred()) SWIG_fail; | |
20751 | } | |
20752 | Py_INCREF(Py_None); resultobj = Py_None; | |
20753 | return resultobj; | |
20754 | fail: | |
20755 | return NULL; | |
20756 | } | |
20757 | ||
20758 | ||
c32bde28 | 20759 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20760 | PyObject *resultobj; |
20761 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20762 | int arg2 ; | |
20763 | int arg3 ; | |
20764 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20765 | PyObject * obj1 = 0 ; |
20766 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20767 | char *kwnames[] = { |
20768 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
20769 | }; | |
20770 | ||
994141e6 | 20771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20774 | { | |
20775 | arg2 = (int)(SWIG_As_int(obj1)); | |
20776 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20777 | } | |
20778 | { | |
20779 | arg3 = (int)(SWIG_As_int(obj2)); | |
20780 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20781 | } | |
d14a1e28 RD |
20782 | { |
20783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20784 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
20785 | ||
20786 | wxPyEndAllowThreads(__tstate); | |
20787 | if (PyErr_Occurred()) SWIG_fail; | |
20788 | } | |
20789 | Py_INCREF(Py_None); resultobj = Py_None; | |
20790 | return resultobj; | |
20791 | fail: | |
20792 | return NULL; | |
20793 | } | |
20794 | ||
20795 | ||
c32bde28 | 20796 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20797 | PyObject *resultobj; |
20798 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20799 | int result; | |
20800 | PyObject * obj0 = 0 ; | |
20801 | char *kwnames[] = { | |
20802 | (char *) "self", NULL | |
20803 | }; | |
20804 | ||
20805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20808 | { |
20809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20810 | result = (int)(arg1)->GetMaxRows(); | |
20811 | ||
20812 | wxPyEndAllowThreads(__tstate); | |
20813 | if (PyErr_Occurred()) SWIG_fail; | |
20814 | } | |
093d3ff1 RD |
20815 | { |
20816 | resultobj = SWIG_From_int((int)(result)); | |
20817 | } | |
d14a1e28 RD |
20818 | return resultobj; |
20819 | fail: | |
20820 | return NULL; | |
20821 | } | |
20822 | ||
20823 | ||
c32bde28 | 20824 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20825 | PyObject *resultobj; |
20826 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20827 | int result; | |
20828 | PyObject * obj0 = 0 ; | |
20829 | char *kwnames[] = { | |
20830 | (char *) "self", NULL | |
20831 | }; | |
20832 | ||
20833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20836 | { |
20837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20838 | result = (int)(arg1)->GetMaxCols(); | |
20839 | ||
20840 | wxPyEndAllowThreads(__tstate); | |
20841 | if (PyErr_Occurred()) SWIG_fail; | |
20842 | } | |
093d3ff1 RD |
20843 | { |
20844 | resultobj = SWIG_From_int((int)(result)); | |
20845 | } | |
d14a1e28 RD |
20846 | return resultobj; |
20847 | fail: | |
20848 | return NULL; | |
20849 | } | |
20850 | ||
20851 | ||
c32bde28 | 20852 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20853 | PyObject *resultobj; |
20854 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20855 | wxSize *arg2 = 0 ; | |
20856 | wxSize temp2 ; | |
20857 | PyObject * obj0 = 0 ; | |
20858 | PyObject * obj1 = 0 ; | |
20859 | char *kwnames[] = { | |
20860 | (char *) "self",(char *) "size", NULL | |
20861 | }; | |
20862 | ||
20863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20866 | { |
20867 | arg2 = &temp2; | |
20868 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20869 | } | |
20870 | { | |
20871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20872 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
20873 | ||
20874 | wxPyEndAllowThreads(__tstate); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | } | |
20877 | Py_INCREF(Py_None); resultobj = Py_None; | |
20878 | return resultobj; | |
20879 | fail: | |
20880 | return NULL; | |
20881 | } | |
20882 | ||
20883 | ||
c32bde28 | 20884 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20885 | PyObject *resultobj; |
20886 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20887 | wxSize result; | |
20888 | PyObject * obj0 = 0 ; | |
20889 | char *kwnames[] = { | |
20890 | (char *) "self", NULL | |
20891 | }; | |
20892 | ||
20893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20896 | { |
20897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20898 | result = (arg1)->GetToolBitmapSize(); | |
20899 | ||
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | { | |
20904 | wxSize * resultptr; | |
093d3ff1 | 20905 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 20906 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20907 | } |
20908 | return resultobj; | |
20909 | fail: | |
20910 | return NULL; | |
20911 | } | |
20912 | ||
20913 | ||
c32bde28 | 20914 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20915 | PyObject *resultobj; |
20916 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20917 | wxSize result; | |
20918 | PyObject * obj0 = 0 ; | |
20919 | char *kwnames[] = { | |
20920 | (char *) "self", NULL | |
20921 | }; | |
20922 | ||
20923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20926 | { |
20927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20928 | result = (arg1)->GetToolSize(); | |
20929 | ||
20930 | wxPyEndAllowThreads(__tstate); | |
20931 | if (PyErr_Occurred()) SWIG_fail; | |
20932 | } | |
20933 | { | |
20934 | wxSize * resultptr; | |
093d3ff1 | 20935 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 20936 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20937 | } |
20938 | return resultobj; | |
20939 | fail: | |
20940 | return NULL; | |
20941 | } | |
20942 | ||
20943 | ||
c32bde28 | 20944 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20945 | PyObject *resultobj; |
20946 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
20947 | int arg2 ; |
20948 | int arg3 ; | |
d14a1e28 RD |
20949 | wxToolBarToolBase *result; |
20950 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20951 | PyObject * obj1 = 0 ; |
20952 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20953 | char *kwnames[] = { |
20954 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20955 | }; | |
20956 | ||
994141e6 | 20957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20960 | { | |
20961 | arg2 = (int)(SWIG_As_int(obj1)); | |
20962 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20963 | } | |
20964 | { | |
20965 | arg3 = (int)(SWIG_As_int(obj2)); | |
20966 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20967 | } | |
d14a1e28 RD |
20968 | { |
20969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20970 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
20971 | ||
20972 | wxPyEndAllowThreads(__tstate); | |
20973 | if (PyErr_Occurred()) SWIG_fail; | |
20974 | } | |
20975 | { | |
412d302d | 20976 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20977 | } |
20978 | return resultobj; | |
20979 | fail: | |
20980 | return NULL; | |
20981 | } | |
20982 | ||
20983 | ||
c32bde28 | 20984 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
20985 | PyObject *resultobj; |
20986 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20987 | int arg2 ; | |
20988 | wxToolBarToolBase *result; | |
20989 | PyObject * obj0 = 0 ; | |
994141e6 | 20990 | PyObject * obj1 = 0 ; |
3a04f143 RD |
20991 | char *kwnames[] = { |
20992 | (char *) "self",(char *) "toolid", NULL | |
20993 | }; | |
20994 | ||
994141e6 | 20995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20998 | { | |
20999 | arg2 = (int)(SWIG_As_int(obj1)); | |
21000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21001 | } | |
3a04f143 RD |
21002 | { |
21003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21004 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
21005 | ||
21006 | wxPyEndAllowThreads(__tstate); | |
21007 | if (PyErr_Occurred()) SWIG_fail; | |
21008 | } | |
21009 | { | |
412d302d | 21010 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
21011 | } |
21012 | return resultobj; | |
21013 | fail: | |
21014 | return NULL; | |
21015 | } | |
21016 | ||
21017 | ||
c32bde28 | 21018 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21019 | PyObject *resultobj; |
21020 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
21021 | bool result; | |
21022 | PyObject * obj0 = 0 ; | |
21023 | char *kwnames[] = { | |
21024 | (char *) "self", NULL | |
21025 | }; | |
21026 | ||
21027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21030 | { |
21031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21032 | result = (bool)(arg1)->IsVertical(); | |
21033 | ||
21034 | wxPyEndAllowThreads(__tstate); | |
21035 | if (PyErr_Occurred()) SWIG_fail; | |
21036 | } | |
4f89f6a3 RD |
21037 | { |
21038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21039 | } | |
d14a1e28 RD |
21040 | return resultobj; |
21041 | fail: | |
21042 | return NULL; | |
21043 | } | |
21044 | ||
21045 | ||
c32bde28 | 21046 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21047 | PyObject *obj; |
21048 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21049 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
21050 | Py_INCREF(obj); | |
21051 | return Py_BuildValue((char *)""); | |
21052 | } | |
c32bde28 | 21053 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21054 | PyObject *resultobj; |
21055 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 21056 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21057 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21058 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21059 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21060 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21061 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
21062 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
21063 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21064 | wxToolBar *result; | |
21065 | wxPoint temp3 ; | |
21066 | wxSize temp4 ; | |
ae8162c8 | 21067 | bool temp6 = false ; |
d14a1e28 | 21068 | PyObject * obj0 = 0 ; |
994141e6 | 21069 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21070 | PyObject * obj2 = 0 ; |
21071 | PyObject * obj3 = 0 ; | |
994141e6 | 21072 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21073 | PyObject * obj5 = 0 ; |
21074 | char *kwnames[] = { | |
21075 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21076 | }; | |
21077 | ||
248ed943 | 21078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
21079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 21081 | if (obj1) { |
093d3ff1 RD |
21082 | { |
21083 | arg2 = (int)(SWIG_As_int(obj1)); | |
21084 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21085 | } | |
248ed943 | 21086 | } |
d14a1e28 RD |
21087 | if (obj2) { |
21088 | { | |
21089 | arg3 = &temp3; | |
21090 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21091 | } | |
21092 | } | |
21093 | if (obj3) { | |
21094 | { | |
21095 | arg4 = &temp4; | |
21096 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21097 | } | |
21098 | } | |
994141e6 | 21099 | if (obj4) { |
093d3ff1 RD |
21100 | { |
21101 | arg5 = (long)(SWIG_As_long(obj4)); | |
21102 | if (SWIG_arg_fail(5)) SWIG_fail; | |
21103 | } | |
994141e6 | 21104 | } |
d14a1e28 RD |
21105 | if (obj5) { |
21106 | { | |
21107 | arg6 = wxString_in_helper(obj5); | |
21108 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 21109 | temp6 = true; |
d14a1e28 RD |
21110 | } |
21111 | } | |
21112 | { | |
e3b71cb8 | 21113 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21115 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21116 | ||
21117 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21118 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21119 | } |
b0f7404b | 21120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
21121 | { |
21122 | if (temp6) | |
21123 | delete arg6; | |
21124 | } | |
21125 | return resultobj; | |
21126 | fail: | |
21127 | { | |
21128 | if (temp6) | |
21129 | delete arg6; | |
21130 | } | |
21131 | return NULL; | |
21132 | } | |
21133 | ||
21134 | ||
c32bde28 | 21135 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21136 | PyObject *resultobj; |
21137 | wxToolBar *result; | |
21138 | char *kwnames[] = { | |
21139 | NULL | |
21140 | }; | |
21141 | ||
21142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
21143 | { | |
e3b71cb8 | 21144 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21146 | result = (wxToolBar *)new wxToolBar(); | |
21147 | ||
21148 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21149 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21150 | } |
b0f7404b | 21151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
21152 | return resultobj; |
21153 | fail: | |
21154 | return NULL; | |
21155 | } | |
21156 | ||
21157 | ||
c32bde28 | 21158 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21159 | PyObject *resultobj; |
21160 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
21161 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 21162 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21163 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21164 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21165 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21166 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21167 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
21168 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
21169 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21170 | bool result; | |
21171 | wxPoint temp4 ; | |
21172 | wxSize temp5 ; | |
ae8162c8 | 21173 | bool temp7 = false ; |
d14a1e28 RD |
21174 | PyObject * obj0 = 0 ; |
21175 | PyObject * obj1 = 0 ; | |
994141e6 | 21176 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21177 | PyObject * obj3 = 0 ; |
21178 | PyObject * obj4 = 0 ; | |
994141e6 | 21179 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21180 | PyObject * obj6 = 0 ; |
21181 | char *kwnames[] = { | |
21182 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21183 | }; | |
21184 | ||
248ed943 | 21185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
21186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
21187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21188 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21189 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 21190 | if (obj2) { |
093d3ff1 RD |
21191 | { |
21192 | arg3 = (int)(SWIG_As_int(obj2)); | |
21193 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21194 | } | |
248ed943 | 21195 | } |
d14a1e28 RD |
21196 | if (obj3) { |
21197 | { | |
21198 | arg4 = &temp4; | |
21199 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21200 | } | |
21201 | } | |
21202 | if (obj4) { | |
21203 | { | |
21204 | arg5 = &temp5; | |
21205 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21206 | } | |
21207 | } | |
994141e6 | 21208 | if (obj5) { |
093d3ff1 RD |
21209 | { |
21210 | arg6 = (long)(SWIG_As_long(obj5)); | |
21211 | if (SWIG_arg_fail(6)) SWIG_fail; | |
21212 | } | |
994141e6 | 21213 | } |
d14a1e28 RD |
21214 | if (obj6) { |
21215 | { | |
21216 | arg7 = wxString_in_helper(obj6); | |
21217 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 21218 | temp7 = true; |
d14a1e28 RD |
21219 | } |
21220 | } | |
21221 | { | |
21222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21223 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21224 | ||
21225 | wxPyEndAllowThreads(__tstate); | |
21226 | if (PyErr_Occurred()) SWIG_fail; | |
21227 | } | |
4f89f6a3 RD |
21228 | { |
21229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21230 | } | |
d14a1e28 RD |
21231 | { |
21232 | if (temp7) | |
21233 | delete arg7; | |
21234 | } | |
21235 | return resultobj; | |
21236 | fail: | |
21237 | { | |
21238 | if (temp7) | |
21239 | delete arg7; | |
21240 | } | |
21241 | return NULL; | |
21242 | } | |
21243 | ||
21244 | ||
c32bde28 | 21245 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21246 | PyObject *resultobj; |
21247 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
21248 | int arg2 ; |
21249 | int arg3 ; | |
d14a1e28 RD |
21250 | wxToolBarToolBase *result; |
21251 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21252 | PyObject * obj1 = 0 ; |
21253 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21254 | char *kwnames[] = { |
21255 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21256 | }; | |
21257 | ||
994141e6 | 21258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
21260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21261 | { | |
21262 | arg2 = (int)(SWIG_As_int(obj1)); | |
21263 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21264 | } | |
21265 | { | |
21266 | arg3 = (int)(SWIG_As_int(obj2)); | |
21267 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21268 | } | |
d14a1e28 RD |
21269 | { |
21270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21271 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
21272 | ||
21273 | wxPyEndAllowThreads(__tstate); | |
21274 | if (PyErr_Occurred()) SWIG_fail; | |
21275 | } | |
21276 | { | |
412d302d | 21277 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21278 | } |
21279 | return resultobj; | |
21280 | fail: | |
21281 | return NULL; | |
21282 | } | |
21283 | ||
21284 | ||
c32bde28 | 21285 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 21286 | PyObject *resultobj; |
093d3ff1 | 21287 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
21288 | wxVisualAttributes result; |
21289 | PyObject * obj0 = 0 ; | |
21290 | char *kwnames[] = { | |
21291 | (char *) "variant", NULL | |
21292 | }; | |
21293 | ||
21294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
21295 | if (obj0) { | |
093d3ff1 RD |
21296 | { |
21297 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
21298 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21299 | } | |
22bfe96c RD |
21300 | } |
21301 | { | |
110da5b0 | 21302 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
21303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21304 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
21305 | ||
21306 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 21307 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
21308 | } |
21309 | { | |
21310 | wxVisualAttributes * resultptr; | |
093d3ff1 | 21311 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
21312 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
21313 | } | |
21314 | return resultobj; | |
21315 | fail: | |
21316 | return NULL; | |
21317 | } | |
21318 | ||
21319 | ||
c32bde28 | 21320 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21321 | PyObject *obj; |
21322 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21323 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
21324 | Py_INCREF(obj); | |
21325 | return Py_BuildValue((char *)""); | |
21326 | } | |
c32bde28 | 21327 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
21328 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
21329 | return 1; | |
21330 | } | |
21331 | ||
21332 | ||
093d3ff1 | 21333 | static PyObject *_wrap_ListCtrlNameStr_get(void) { |
b2dc1044 RD |
21334 | PyObject *pyobj; |
21335 | ||
21336 | { | |
21337 | #if wxUSE_UNICODE | |
21338 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21339 | #else | |
21340 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21341 | #endif | |
21342 | } | |
21343 | return pyobj; | |
21344 | } | |
21345 | ||
21346 | ||
c32bde28 | 21347 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21348 | PyObject *resultobj; |
21349 | wxColour const &arg1_defvalue = wxNullColour ; | |
21350 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
21351 | wxColour const &arg2_defvalue = wxNullColour ; | |
21352 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
21353 | wxFont const &arg3_defvalue = wxNullFont ; | |
21354 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
21355 | wxListItemAttr *result; | |
21356 | wxColour temp1 ; | |
21357 | wxColour temp2 ; | |
21358 | PyObject * obj0 = 0 ; | |
21359 | PyObject * obj1 = 0 ; | |
21360 | PyObject * obj2 = 0 ; | |
21361 | char *kwnames[] = { | |
21362 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
21363 | }; | |
21364 | ||
21365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21366 | if (obj0) { | |
21367 | { | |
21368 | arg1 = &temp1; | |
21369 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
21370 | } | |
21371 | } | |
21372 | if (obj1) { | |
21373 | { | |
21374 | arg2 = &temp2; | |
21375 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21376 | } | |
21377 | } | |
21378 | if (obj2) { | |
093d3ff1 RD |
21379 | { |
21380 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21381 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21382 | if (arg3 == NULL) { | |
21383 | SWIG_null_ref("wxFont"); | |
21384 | } | |
21385 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
21386 | } |
21387 | } | |
21388 | { | |
21389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21390 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
21391 | ||
21392 | wxPyEndAllowThreads(__tstate); | |
21393 | if (PyErr_Occurred()) SWIG_fail; | |
21394 | } | |
15afbcd0 | 21395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
21396 | return resultobj; |
21397 | fail: | |
21398 | return NULL; | |
21399 | } | |
21400 | ||
21401 | ||
c32bde28 | 21402 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21403 | PyObject *resultobj; |
21404 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21405 | wxColour *arg2 = 0 ; | |
21406 | wxColour temp2 ; | |
21407 | PyObject * obj0 = 0 ; | |
21408 | PyObject * obj1 = 0 ; | |
21409 | char *kwnames[] = { | |
21410 | (char *) "self",(char *) "colText", NULL | |
21411 | }; | |
21412 | ||
21413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21416 | { |
21417 | arg2 = &temp2; | |
21418 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21419 | } | |
21420 | { | |
21421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21422 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21423 | ||
21424 | wxPyEndAllowThreads(__tstate); | |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
21426 | } | |
21427 | Py_INCREF(Py_None); resultobj = Py_None; | |
21428 | return resultobj; | |
21429 | fail: | |
21430 | return NULL; | |
21431 | } | |
21432 | ||
21433 | ||
c32bde28 | 21434 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21435 | PyObject *resultobj; |
21436 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21437 | wxColour *arg2 = 0 ; | |
21438 | wxColour temp2 ; | |
21439 | PyObject * obj0 = 0 ; | |
21440 | PyObject * obj1 = 0 ; | |
21441 | char *kwnames[] = { | |
21442 | (char *) "self",(char *) "colBack", NULL | |
21443 | }; | |
21444 | ||
21445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21448 | { |
21449 | arg2 = &temp2; | |
21450 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21451 | } | |
21452 | { | |
21453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21454 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21455 | ||
21456 | wxPyEndAllowThreads(__tstate); | |
21457 | if (PyErr_Occurred()) SWIG_fail; | |
21458 | } | |
21459 | Py_INCREF(Py_None); resultobj = Py_None; | |
21460 | return resultobj; | |
21461 | fail: | |
21462 | return NULL; | |
21463 | } | |
21464 | ||
21465 | ||
c32bde28 | 21466 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21467 | PyObject *resultobj; |
21468 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21469 | wxFont *arg2 = 0 ; | |
21470 | PyObject * obj0 = 0 ; | |
21471 | PyObject * obj1 = 0 ; | |
21472 | char *kwnames[] = { | |
21473 | (char *) "self",(char *) "font", NULL | |
21474 | }; | |
21475 | ||
21476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21479 | { | |
21480 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21481 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21482 | if (arg2 == NULL) { | |
21483 | SWIG_null_ref("wxFont"); | |
21484 | } | |
21485 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
21486 | } |
21487 | { | |
21488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21489 | (arg1)->SetFont((wxFont const &)*arg2); | |
21490 | ||
21491 | wxPyEndAllowThreads(__tstate); | |
21492 | if (PyErr_Occurred()) SWIG_fail; | |
21493 | } | |
21494 | Py_INCREF(Py_None); resultobj = Py_None; | |
21495 | return resultobj; | |
21496 | fail: | |
21497 | return NULL; | |
21498 | } | |
21499 | ||
21500 | ||
c32bde28 | 21501 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21502 | PyObject *resultobj; |
21503 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21504 | bool result; | |
21505 | PyObject * obj0 = 0 ; | |
21506 | char *kwnames[] = { | |
21507 | (char *) "self", NULL | |
21508 | }; | |
21509 | ||
21510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21513 | { |
21514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21515 | result = (bool)(arg1)->HasTextColour(); | |
21516 | ||
21517 | wxPyEndAllowThreads(__tstate); | |
21518 | if (PyErr_Occurred()) SWIG_fail; | |
21519 | } | |
4f89f6a3 RD |
21520 | { |
21521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21522 | } | |
d14a1e28 RD |
21523 | return resultobj; |
21524 | fail: | |
21525 | return NULL; | |
21526 | } | |
21527 | ||
21528 | ||
c32bde28 | 21529 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21530 | PyObject *resultobj; |
21531 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21532 | bool result; | |
21533 | PyObject * obj0 = 0 ; | |
21534 | char *kwnames[] = { | |
21535 | (char *) "self", NULL | |
21536 | }; | |
21537 | ||
21538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21541 | { |
21542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21543 | result = (bool)(arg1)->HasBackgroundColour(); | |
21544 | ||
21545 | wxPyEndAllowThreads(__tstate); | |
21546 | if (PyErr_Occurred()) SWIG_fail; | |
21547 | } | |
4f89f6a3 RD |
21548 | { |
21549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21550 | } | |
d14a1e28 RD |
21551 | return resultobj; |
21552 | fail: | |
21553 | return NULL; | |
21554 | } | |
21555 | ||
21556 | ||
c32bde28 | 21557 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21558 | PyObject *resultobj; |
21559 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21560 | bool result; | |
21561 | PyObject * obj0 = 0 ; | |
21562 | char *kwnames[] = { | |
21563 | (char *) "self", NULL | |
21564 | }; | |
21565 | ||
21566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21569 | { |
21570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21571 | result = (bool)(arg1)->HasFont(); | |
21572 | ||
21573 | wxPyEndAllowThreads(__tstate); | |
21574 | if (PyErr_Occurred()) SWIG_fail; | |
21575 | } | |
4f89f6a3 RD |
21576 | { |
21577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21578 | } | |
d14a1e28 RD |
21579 | return resultobj; |
21580 | fail: | |
21581 | return NULL; | |
21582 | } | |
21583 | ||
21584 | ||
c32bde28 | 21585 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21586 | PyObject *resultobj; |
21587 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21588 | wxColour result; | |
21589 | PyObject * obj0 = 0 ; | |
21590 | char *kwnames[] = { | |
21591 | (char *) "self", NULL | |
21592 | }; | |
21593 | ||
21594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21597 | { |
21598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21599 | result = (arg1)->GetTextColour(); | |
21600 | ||
21601 | wxPyEndAllowThreads(__tstate); | |
21602 | if (PyErr_Occurred()) SWIG_fail; | |
21603 | } | |
21604 | { | |
21605 | wxColour * resultptr; | |
093d3ff1 | 21606 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 21607 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21608 | } |
21609 | return resultobj; | |
21610 | fail: | |
21611 | return NULL; | |
21612 | } | |
21613 | ||
21614 | ||
c32bde28 | 21615 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21616 | PyObject *resultobj; |
21617 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21618 | wxColour result; | |
21619 | PyObject * obj0 = 0 ; | |
21620 | char *kwnames[] = { | |
21621 | (char *) "self", NULL | |
21622 | }; | |
21623 | ||
21624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21627 | { |
21628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21629 | result = (arg1)->GetBackgroundColour(); | |
21630 | ||
21631 | wxPyEndAllowThreads(__tstate); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | } | |
21634 | { | |
21635 | wxColour * resultptr; | |
093d3ff1 | 21636 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 21637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21638 | } |
21639 | return resultobj; | |
21640 | fail: | |
21641 | return NULL; | |
21642 | } | |
21643 | ||
21644 | ||
c32bde28 | 21645 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21646 | PyObject *resultobj; |
21647 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21648 | wxFont result; | |
21649 | PyObject * obj0 = 0 ; | |
21650 | char *kwnames[] = { | |
21651 | (char *) "self", NULL | |
21652 | }; | |
21653 | ||
21654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21657 | { |
21658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21659 | result = (arg1)->GetFont(); | |
21660 | ||
21661 | wxPyEndAllowThreads(__tstate); | |
21662 | if (PyErr_Occurred()) SWIG_fail; | |
21663 | } | |
21664 | { | |
21665 | wxFont * resultptr; | |
093d3ff1 | 21666 | resultptr = new wxFont((wxFont &)(result)); |
15afbcd0 | 21667 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
21668 | } |
21669 | return resultobj; | |
21670 | fail: | |
21671 | return NULL; | |
21672 | } | |
21673 | ||
21674 | ||
c32bde28 | 21675 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21676 | PyObject *resultobj; |
21677 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21678 | PyObject * obj0 = 0 ; | |
21679 | char *kwnames[] = { | |
21680 | (char *) "self", NULL | |
21681 | }; | |
21682 | ||
21683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21684 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21685 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21686 | { |
21687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21688 | wxListItemAttr_Destroy(arg1); | |
21689 | ||
21690 | wxPyEndAllowThreads(__tstate); | |
21691 | if (PyErr_Occurred()) SWIG_fail; | |
21692 | } | |
21693 | Py_INCREF(Py_None); resultobj = Py_None; | |
21694 | return resultobj; | |
21695 | fail: | |
21696 | return NULL; | |
21697 | } | |
21698 | ||
21699 | ||
c32bde28 | 21700 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21701 | PyObject *obj; |
21702 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21703 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
21704 | Py_INCREF(obj); | |
21705 | return Py_BuildValue((char *)""); | |
21706 | } | |
c32bde28 | 21707 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21708 | PyObject *resultobj; |
21709 | wxListItem *result; | |
21710 | char *kwnames[] = { | |
21711 | NULL | |
21712 | }; | |
21713 | ||
21714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
21715 | { | |
21716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21717 | result = (wxListItem *)new wxListItem(); | |
21718 | ||
21719 | wxPyEndAllowThreads(__tstate); | |
21720 | if (PyErr_Occurred()) SWIG_fail; | |
21721 | } | |
21722 | { | |
412d302d | 21723 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
21724 | } |
21725 | return resultobj; | |
21726 | fail: | |
21727 | return NULL; | |
21728 | } | |
21729 | ||
21730 | ||
c32bde28 | 21731 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21732 | PyObject *resultobj; |
21733 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21734 | PyObject * obj0 = 0 ; | |
21735 | char *kwnames[] = { | |
21736 | (char *) "self", NULL | |
21737 | }; | |
21738 | ||
21739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21742 | { |
21743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21744 | delete arg1; | |
21745 | ||
21746 | wxPyEndAllowThreads(__tstate); | |
21747 | if (PyErr_Occurred()) SWIG_fail; | |
21748 | } | |
21749 | Py_INCREF(Py_None); resultobj = Py_None; | |
21750 | return resultobj; | |
21751 | fail: | |
21752 | return NULL; | |
21753 | } | |
21754 | ||
21755 | ||
c32bde28 | 21756 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21757 | PyObject *resultobj; |
21758 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21759 | PyObject * obj0 = 0 ; | |
21760 | char *kwnames[] = { | |
21761 | (char *) "self", NULL | |
21762 | }; | |
21763 | ||
21764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21767 | { |
21768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21769 | (arg1)->Clear(); | |
21770 | ||
21771 | wxPyEndAllowThreads(__tstate); | |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
21773 | } | |
21774 | Py_INCREF(Py_None); resultobj = Py_None; | |
21775 | return resultobj; | |
21776 | fail: | |
21777 | return NULL; | |
21778 | } | |
21779 | ||
21780 | ||
c32bde28 | 21781 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21782 | PyObject *resultobj; |
21783 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21784 | PyObject * obj0 = 0 ; | |
21785 | char *kwnames[] = { | |
21786 | (char *) "self", NULL | |
21787 | }; | |
21788 | ||
21789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21792 | { |
21793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21794 | (arg1)->ClearAttributes(); | |
21795 | ||
21796 | wxPyEndAllowThreads(__tstate); | |
21797 | if (PyErr_Occurred()) SWIG_fail; | |
21798 | } | |
21799 | Py_INCREF(Py_None); resultobj = Py_None; | |
21800 | return resultobj; | |
21801 | fail: | |
21802 | return NULL; | |
21803 | } | |
21804 | ||
21805 | ||
c32bde28 | 21806 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21807 | PyObject *resultobj; |
21808 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21809 | long arg2 ; | |
21810 | PyObject * obj0 = 0 ; | |
994141e6 | 21811 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21812 | char *kwnames[] = { |
21813 | (char *) "self",(char *) "mask", NULL | |
21814 | }; | |
21815 | ||
994141e6 | 21816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21819 | { | |
21820 | arg2 = (long)(SWIG_As_long(obj1)); | |
21821 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21822 | } | |
d14a1e28 RD |
21823 | { |
21824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21825 | (arg1)->SetMask(arg2); | |
21826 | ||
21827 | wxPyEndAllowThreads(__tstate); | |
21828 | if (PyErr_Occurred()) SWIG_fail; | |
21829 | } | |
21830 | Py_INCREF(Py_None); resultobj = Py_None; | |
21831 | return resultobj; | |
21832 | fail: | |
21833 | return NULL; | |
21834 | } | |
21835 | ||
21836 | ||
c32bde28 | 21837 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21838 | PyObject *resultobj; |
21839 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21840 | long arg2 ; | |
21841 | PyObject * obj0 = 0 ; | |
994141e6 | 21842 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21843 | char *kwnames[] = { |
21844 | (char *) "self",(char *) "id", NULL | |
21845 | }; | |
21846 | ||
994141e6 | 21847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21850 | { | |
21851 | arg2 = (long)(SWIG_As_long(obj1)); | |
21852 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21853 | } | |
d14a1e28 RD |
21854 | { |
21855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21856 | (arg1)->SetId(arg2); | |
21857 | ||
21858 | wxPyEndAllowThreads(__tstate); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | } | |
21861 | Py_INCREF(Py_None); resultobj = Py_None; | |
21862 | return resultobj; | |
21863 | fail: | |
21864 | return NULL; | |
21865 | } | |
21866 | ||
21867 | ||
c32bde28 | 21868 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21869 | PyObject *resultobj; |
21870 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21871 | int arg2 ; | |
21872 | PyObject * obj0 = 0 ; | |
994141e6 | 21873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21874 | char *kwnames[] = { |
21875 | (char *) "self",(char *) "col", NULL | |
21876 | }; | |
21877 | ||
994141e6 | 21878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21881 | { | |
21882 | arg2 = (int)(SWIG_As_int(obj1)); | |
21883 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21884 | } | |
d14a1e28 RD |
21885 | { |
21886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21887 | (arg1)->SetColumn(arg2); | |
21888 | ||
21889 | wxPyEndAllowThreads(__tstate); | |
21890 | if (PyErr_Occurred()) SWIG_fail; | |
21891 | } | |
21892 | Py_INCREF(Py_None); resultobj = Py_None; | |
21893 | return resultobj; | |
21894 | fail: | |
21895 | return NULL; | |
21896 | } | |
21897 | ||
21898 | ||
c32bde28 | 21899 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21900 | PyObject *resultobj; |
21901 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21902 | long arg2 ; | |
21903 | PyObject * obj0 = 0 ; | |
994141e6 | 21904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21905 | char *kwnames[] = { |
21906 | (char *) "self",(char *) "state", NULL | |
21907 | }; | |
21908 | ||
994141e6 | 21909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21912 | { | |
21913 | arg2 = (long)(SWIG_As_long(obj1)); | |
21914 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21915 | } | |
d14a1e28 RD |
21916 | { |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | (arg1)->SetState(arg2); | |
21919 | ||
21920 | wxPyEndAllowThreads(__tstate); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | Py_INCREF(Py_None); resultobj = Py_None; | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
c32bde28 | 21930 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21931 | PyObject *resultobj; |
21932 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21933 | long arg2 ; | |
21934 | PyObject * obj0 = 0 ; | |
994141e6 | 21935 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21936 | char *kwnames[] = { |
21937 | (char *) "self",(char *) "stateMask", NULL | |
21938 | }; | |
21939 | ||
994141e6 | 21940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21943 | { | |
21944 | arg2 = (long)(SWIG_As_long(obj1)); | |
21945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21946 | } | |
d14a1e28 RD |
21947 | { |
21948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21949 | (arg1)->SetStateMask(arg2); | |
21950 | ||
21951 | wxPyEndAllowThreads(__tstate); | |
21952 | if (PyErr_Occurred()) SWIG_fail; | |
21953 | } | |
21954 | Py_INCREF(Py_None); resultobj = Py_None; | |
21955 | return resultobj; | |
21956 | fail: | |
21957 | return NULL; | |
21958 | } | |
21959 | ||
21960 | ||
c32bde28 | 21961 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21962 | PyObject *resultobj; |
21963 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21964 | wxString *arg2 = 0 ; | |
ae8162c8 | 21965 | bool temp2 = false ; |
d14a1e28 RD |
21966 | PyObject * obj0 = 0 ; |
21967 | PyObject * obj1 = 0 ; | |
21968 | char *kwnames[] = { | |
21969 | (char *) "self",(char *) "text", NULL | |
21970 | }; | |
21971 | ||
21972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21975 | { |
21976 | arg2 = wxString_in_helper(obj1); | |
21977 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21978 | temp2 = true; |
d14a1e28 RD |
21979 | } |
21980 | { | |
21981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21982 | (arg1)->SetText((wxString const &)*arg2); | |
21983 | ||
21984 | wxPyEndAllowThreads(__tstate); | |
21985 | if (PyErr_Occurred()) SWIG_fail; | |
21986 | } | |
21987 | Py_INCREF(Py_None); resultobj = Py_None; | |
21988 | { | |
21989 | if (temp2) | |
21990 | delete arg2; | |
21991 | } | |
21992 | return resultobj; | |
21993 | fail: | |
21994 | { | |
21995 | if (temp2) | |
21996 | delete arg2; | |
21997 | } | |
21998 | return NULL; | |
21999 | } | |
22000 | ||
22001 | ||
c32bde28 | 22002 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22003 | PyObject *resultobj; |
22004 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22005 | int arg2 ; | |
22006 | PyObject * obj0 = 0 ; | |
994141e6 | 22007 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22008 | char *kwnames[] = { |
22009 | (char *) "self",(char *) "image", NULL | |
22010 | }; | |
22011 | ||
994141e6 | 22012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22015 | { | |
22016 | arg2 = (int)(SWIG_As_int(obj1)); | |
22017 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22018 | } | |
d14a1e28 RD |
22019 | { |
22020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22021 | (arg1)->SetImage(arg2); | |
22022 | ||
22023 | wxPyEndAllowThreads(__tstate); | |
22024 | if (PyErr_Occurred()) SWIG_fail; | |
22025 | } | |
22026 | Py_INCREF(Py_None); resultobj = Py_None; | |
22027 | return resultobj; | |
22028 | fail: | |
22029 | return NULL; | |
22030 | } | |
22031 | ||
22032 | ||
c32bde28 | 22033 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22034 | PyObject *resultobj; |
22035 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22036 | long arg2 ; | |
22037 | PyObject * obj0 = 0 ; | |
994141e6 | 22038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22039 | char *kwnames[] = { |
22040 | (char *) "self",(char *) "data", NULL | |
22041 | }; | |
22042 | ||
994141e6 | 22043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22046 | { | |
22047 | arg2 = (long)(SWIG_As_long(obj1)); | |
22048 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22049 | } | |
d14a1e28 RD |
22050 | { |
22051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22052 | (arg1)->SetData(arg2); | |
22053 | ||
22054 | wxPyEndAllowThreads(__tstate); | |
22055 | if (PyErr_Occurred()) SWIG_fail; | |
22056 | } | |
22057 | Py_INCREF(Py_None); resultobj = Py_None; | |
22058 | return resultobj; | |
22059 | fail: | |
22060 | return NULL; | |
22061 | } | |
22062 | ||
22063 | ||
c32bde28 | 22064 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22065 | PyObject *resultobj; |
22066 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22067 | int arg2 ; | |
22068 | PyObject * obj0 = 0 ; | |
994141e6 | 22069 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22070 | char *kwnames[] = { |
22071 | (char *) "self",(char *) "width", NULL | |
22072 | }; | |
22073 | ||
994141e6 | 22074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22075 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22077 | { | |
22078 | arg2 = (int)(SWIG_As_int(obj1)); | |
22079 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22080 | } | |
d14a1e28 RD |
22081 | { |
22082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22083 | (arg1)->SetWidth(arg2); | |
22084 | ||
22085 | wxPyEndAllowThreads(__tstate); | |
22086 | if (PyErr_Occurred()) SWIG_fail; | |
22087 | } | |
22088 | Py_INCREF(Py_None); resultobj = Py_None; | |
22089 | return resultobj; | |
22090 | fail: | |
22091 | return NULL; | |
22092 | } | |
22093 | ||
22094 | ||
c32bde28 | 22095 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22096 | PyObject *resultobj; |
22097 | wxListItem *arg1 = (wxListItem *) 0 ; | |
093d3ff1 | 22098 | wxListColumnFormat arg2 ; |
d14a1e28 | 22099 | PyObject * obj0 = 0 ; |
994141e6 | 22100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22101 | char *kwnames[] = { |
22102 | (char *) "self",(char *) "align", NULL | |
22103 | }; | |
22104 | ||
994141e6 | 22105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22108 | { | |
22109 | arg2 = (wxListColumnFormat)(SWIG_As_int(obj1)); | |
22110 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22111 | } | |
d14a1e28 RD |
22112 | { |
22113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22114 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
22115 | ||
22116 | wxPyEndAllowThreads(__tstate); | |
22117 | if (PyErr_Occurred()) SWIG_fail; | |
22118 | } | |
22119 | Py_INCREF(Py_None); resultobj = Py_None; | |
22120 | return resultobj; | |
22121 | fail: | |
22122 | return NULL; | |
22123 | } | |
22124 | ||
22125 | ||
c32bde28 | 22126 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22127 | PyObject *resultobj; |
22128 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22129 | wxColour *arg2 = 0 ; | |
22130 | wxColour temp2 ; | |
22131 | PyObject * obj0 = 0 ; | |
22132 | PyObject * obj1 = 0 ; | |
22133 | char *kwnames[] = { | |
22134 | (char *) "self",(char *) "colText", NULL | |
22135 | }; | |
22136 | ||
22137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22140 | { |
22141 | arg2 = &temp2; | |
22142 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22143 | } | |
22144 | { | |
22145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22146 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22147 | ||
22148 | wxPyEndAllowThreads(__tstate); | |
22149 | if (PyErr_Occurred()) SWIG_fail; | |
22150 | } | |
22151 | Py_INCREF(Py_None); resultobj = Py_None; | |
22152 | return resultobj; | |
22153 | fail: | |
22154 | return NULL; | |
22155 | } | |
22156 | ||
22157 | ||
c32bde28 | 22158 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22159 | PyObject *resultobj; |
22160 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22161 | wxColour *arg2 = 0 ; | |
22162 | wxColour temp2 ; | |
22163 | PyObject * obj0 = 0 ; | |
22164 | PyObject * obj1 = 0 ; | |
22165 | char *kwnames[] = { | |
22166 | (char *) "self",(char *) "colBack", NULL | |
22167 | }; | |
22168 | ||
22169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22172 | { |
22173 | arg2 = &temp2; | |
22174 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22175 | } | |
22176 | { | |
22177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22178 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22179 | ||
22180 | wxPyEndAllowThreads(__tstate); | |
22181 | if (PyErr_Occurred()) SWIG_fail; | |
22182 | } | |
22183 | Py_INCREF(Py_None); resultobj = Py_None; | |
22184 | return resultobj; | |
22185 | fail: | |
22186 | return NULL; | |
22187 | } | |
22188 | ||
22189 | ||
c32bde28 | 22190 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22191 | PyObject *resultobj; |
22192 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22193 | wxFont *arg2 = 0 ; | |
22194 | PyObject * obj0 = 0 ; | |
22195 | PyObject * obj1 = 0 ; | |
22196 | char *kwnames[] = { | |
22197 | (char *) "self",(char *) "font", NULL | |
22198 | }; | |
22199 | ||
22200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22203 | { | |
22204 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
22205 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22206 | if (arg2 == NULL) { | |
22207 | SWIG_null_ref("wxFont"); | |
22208 | } | |
22209 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22210 | } |
22211 | { | |
22212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22213 | (arg1)->SetFont((wxFont const &)*arg2); | |
22214 | ||
22215 | wxPyEndAllowThreads(__tstate); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
22217 | } | |
22218 | Py_INCREF(Py_None); resultobj = Py_None; | |
22219 | return resultobj; | |
22220 | fail: | |
22221 | return NULL; | |
22222 | } | |
22223 | ||
22224 | ||
c32bde28 | 22225 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22226 | PyObject *resultobj; |
22227 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22228 | long result; | |
22229 | PyObject * obj0 = 0 ; | |
22230 | char *kwnames[] = { | |
22231 | (char *) "self", NULL | |
22232 | }; | |
22233 | ||
22234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22237 | { |
22238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22239 | result = (long)(arg1)->GetMask(); | |
22240 | ||
22241 | wxPyEndAllowThreads(__tstate); | |
22242 | if (PyErr_Occurred()) SWIG_fail; | |
22243 | } | |
093d3ff1 RD |
22244 | { |
22245 | resultobj = SWIG_From_long((long)(result)); | |
22246 | } | |
d14a1e28 RD |
22247 | return resultobj; |
22248 | fail: | |
22249 | return NULL; | |
22250 | } | |
22251 | ||
22252 | ||
c32bde28 | 22253 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22254 | PyObject *resultobj; |
22255 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22256 | long result; | |
22257 | PyObject * obj0 = 0 ; | |
22258 | char *kwnames[] = { | |
22259 | (char *) "self", NULL | |
22260 | }; | |
22261 | ||
22262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22265 | { |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22267 | result = (long)(arg1)->GetId(); | |
22268 | ||
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
093d3ff1 RD |
22272 | { |
22273 | resultobj = SWIG_From_long((long)(result)); | |
22274 | } | |
d14a1e28 RD |
22275 | return resultobj; |
22276 | fail: | |
22277 | return NULL; | |
22278 | } | |
22279 | ||
22280 | ||
c32bde28 | 22281 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22282 | PyObject *resultobj; |
22283 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22284 | int result; | |
22285 | PyObject * obj0 = 0 ; | |
22286 | char *kwnames[] = { | |
22287 | (char *) "self", NULL | |
22288 | }; | |
22289 | ||
22290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22293 | { |
22294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22295 | result = (int)(arg1)->GetColumn(); | |
22296 | ||
22297 | wxPyEndAllowThreads(__tstate); | |
22298 | if (PyErr_Occurred()) SWIG_fail; | |
22299 | } | |
093d3ff1 RD |
22300 | { |
22301 | resultobj = SWIG_From_int((int)(result)); | |
22302 | } | |
d14a1e28 RD |
22303 | return resultobj; |
22304 | fail: | |
22305 | return NULL; | |
22306 | } | |
22307 | ||
22308 | ||
c32bde28 | 22309 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22310 | PyObject *resultobj; |
22311 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22312 | long result; | |
22313 | PyObject * obj0 = 0 ; | |
22314 | char *kwnames[] = { | |
22315 | (char *) "self", NULL | |
22316 | }; | |
22317 | ||
22318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22321 | { |
22322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22323 | result = (long)(arg1)->GetState(); | |
22324 | ||
22325 | wxPyEndAllowThreads(__tstate); | |
22326 | if (PyErr_Occurred()) SWIG_fail; | |
22327 | } | |
093d3ff1 RD |
22328 | { |
22329 | resultobj = SWIG_From_long((long)(result)); | |
22330 | } | |
d14a1e28 RD |
22331 | return resultobj; |
22332 | fail: | |
22333 | return NULL; | |
22334 | } | |
22335 | ||
22336 | ||
c32bde28 | 22337 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22338 | PyObject *resultobj; |
22339 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22340 | wxString *result; | |
22341 | PyObject * obj0 = 0 ; | |
22342 | char *kwnames[] = { | |
22343 | (char *) "self", NULL | |
22344 | }; | |
22345 | ||
22346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22349 | { |
22350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22351 | { | |
22352 | wxString const &_result_ref = (arg1)->GetText(); | |
22353 | result = (wxString *) &_result_ref; | |
22354 | } | |
22355 | ||
22356 | wxPyEndAllowThreads(__tstate); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
cc6dd355 RD |
22359 | { |
22360 | #if wxUSE_UNICODE | |
22361 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22362 | #else | |
22363 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22364 | #endif | |
22365 | } | |
d14a1e28 RD |
22366 | return resultobj; |
22367 | fail: | |
22368 | return NULL; | |
22369 | } | |
22370 | ||
22371 | ||
c32bde28 | 22372 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22373 | PyObject *resultobj; |
22374 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22375 | int result; | |
22376 | PyObject * obj0 = 0 ; | |
22377 | char *kwnames[] = { | |
22378 | (char *) "self", NULL | |
22379 | }; | |
22380 | ||
22381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22384 | { |
22385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22386 | result = (int)(arg1)->GetImage(); | |
22387 | ||
22388 | wxPyEndAllowThreads(__tstate); | |
22389 | if (PyErr_Occurred()) SWIG_fail; | |
22390 | } | |
093d3ff1 RD |
22391 | { |
22392 | resultobj = SWIG_From_int((int)(result)); | |
22393 | } | |
d14a1e28 RD |
22394 | return resultobj; |
22395 | fail: | |
22396 | return NULL; | |
22397 | } | |
22398 | ||
22399 | ||
c32bde28 | 22400 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22401 | PyObject *resultobj; |
22402 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22403 | long result; | |
22404 | PyObject * obj0 = 0 ; | |
22405 | char *kwnames[] = { | |
22406 | (char *) "self", NULL | |
22407 | }; | |
22408 | ||
22409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",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; | |
d14a1e28 RD |
22412 | { |
22413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22414 | result = (long)(arg1)->GetData(); | |
22415 | ||
22416 | wxPyEndAllowThreads(__tstate); | |
22417 | if (PyErr_Occurred()) SWIG_fail; | |
22418 | } | |
093d3ff1 RD |
22419 | { |
22420 | resultobj = SWIG_From_long((long)(result)); | |
22421 | } | |
d14a1e28 RD |
22422 | return resultobj; |
22423 | fail: | |
22424 | return NULL; | |
22425 | } | |
22426 | ||
22427 | ||
c32bde28 | 22428 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22429 | PyObject *resultobj; |
22430 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22431 | int result; | |
22432 | PyObject * obj0 = 0 ; | |
22433 | char *kwnames[] = { | |
22434 | (char *) "self", NULL | |
22435 | }; | |
22436 | ||
22437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22438 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22439 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22440 | { |
22441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22442 | result = (int)(arg1)->GetWidth(); | |
22443 | ||
22444 | wxPyEndAllowThreads(__tstate); | |
22445 | if (PyErr_Occurred()) SWIG_fail; | |
22446 | } | |
093d3ff1 RD |
22447 | { |
22448 | resultobj = SWIG_From_int((int)(result)); | |
22449 | } | |
d14a1e28 RD |
22450 | return resultobj; |
22451 | fail: | |
22452 | return NULL; | |
22453 | } | |
22454 | ||
22455 | ||
c32bde28 | 22456 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22457 | PyObject *resultobj; |
22458 | wxListItem *arg1 = (wxListItem *) 0 ; | |
093d3ff1 | 22459 | wxListColumnFormat result; |
d14a1e28 RD |
22460 | PyObject * obj0 = 0 ; |
22461 | char *kwnames[] = { | |
22462 | (char *) "self", NULL | |
22463 | }; | |
22464 | ||
22465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22468 | { |
22469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22470 | result = (wxListColumnFormat)(arg1)->GetAlign(); |
d14a1e28 RD |
22471 | |
22472 | wxPyEndAllowThreads(__tstate); | |
22473 | if (PyErr_Occurred()) SWIG_fail; | |
22474 | } | |
093d3ff1 | 22475 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
22476 | return resultobj; |
22477 | fail: | |
22478 | return NULL; | |
22479 | } | |
22480 | ||
22481 | ||
c32bde28 | 22482 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22483 | PyObject *resultobj; |
22484 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22485 | wxListItemAttr *result; | |
22486 | PyObject * obj0 = 0 ; | |
22487 | char *kwnames[] = { | |
22488 | (char *) "self", NULL | |
22489 | }; | |
22490 | ||
22491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22494 | { |
22495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22496 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
22497 | ||
22498 | wxPyEndAllowThreads(__tstate); | |
22499 | if (PyErr_Occurred()) SWIG_fail; | |
22500 | } | |
15afbcd0 | 22501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
22502 | return resultobj; |
22503 | fail: | |
22504 | return NULL; | |
22505 | } | |
22506 | ||
22507 | ||
c32bde28 | 22508 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22509 | PyObject *resultobj; |
22510 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22511 | bool result; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | char *kwnames[] = { | |
22514 | (char *) "self", NULL | |
22515 | }; | |
22516 | ||
22517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22520 | { |
22521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22522 | result = (bool)(arg1)->HasAttributes(); | |
22523 | ||
22524 | wxPyEndAllowThreads(__tstate); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | } | |
4f89f6a3 RD |
22527 | { |
22528 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22529 | } | |
d14a1e28 RD |
22530 | return resultobj; |
22531 | fail: | |
22532 | return NULL; | |
22533 | } | |
22534 | ||
22535 | ||
c32bde28 | 22536 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22537 | PyObject *resultobj; |
22538 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22539 | wxColour result; | |
22540 | PyObject * obj0 = 0 ; | |
22541 | char *kwnames[] = { | |
22542 | (char *) "self", NULL | |
22543 | }; | |
22544 | ||
22545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22548 | { |
22549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22550 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
22551 | ||
22552 | wxPyEndAllowThreads(__tstate); | |
22553 | if (PyErr_Occurred()) SWIG_fail; | |
22554 | } | |
22555 | { | |
22556 | wxColour * resultptr; | |
093d3ff1 | 22557 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 22558 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22559 | } |
22560 | return resultobj; | |
22561 | fail: | |
22562 | return NULL; | |
22563 | } | |
22564 | ||
22565 | ||
c32bde28 | 22566 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22567 | PyObject *resultobj; |
22568 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22569 | wxColour result; | |
22570 | PyObject * obj0 = 0 ; | |
22571 | char *kwnames[] = { | |
22572 | (char *) "self", NULL | |
22573 | }; | |
22574 | ||
22575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22578 | { |
22579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22580 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
22581 | ||
22582 | wxPyEndAllowThreads(__tstate); | |
22583 | if (PyErr_Occurred()) SWIG_fail; | |
22584 | } | |
22585 | { | |
22586 | wxColour * resultptr; | |
093d3ff1 | 22587 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 22588 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22589 | } |
22590 | return resultobj; | |
22591 | fail: | |
22592 | return NULL; | |
22593 | } | |
22594 | ||
22595 | ||
c32bde28 | 22596 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22597 | PyObject *resultobj; |
22598 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22599 | wxFont result; | |
22600 | PyObject * obj0 = 0 ; | |
22601 | char *kwnames[] = { | |
22602 | (char *) "self", NULL | |
22603 | }; | |
22604 | ||
22605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22608 | { |
22609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22610 | result = ((wxListItem const *)arg1)->GetFont(); | |
22611 | ||
22612 | wxPyEndAllowThreads(__tstate); | |
22613 | if (PyErr_Occurred()) SWIG_fail; | |
22614 | } | |
22615 | { | |
22616 | wxFont * resultptr; | |
093d3ff1 | 22617 | resultptr = new wxFont((wxFont &)(result)); |
15afbcd0 | 22618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
22619 | } |
22620 | return resultobj; | |
22621 | fail: | |
22622 | return NULL; | |
22623 | } | |
22624 | ||
22625 | ||
c32bde28 | 22626 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22627 | PyObject *resultobj; |
22628 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22629 | long arg2 ; | |
22630 | PyObject * obj0 = 0 ; | |
994141e6 | 22631 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22632 | char *kwnames[] = { |
22633 | (char *) "self",(char *) "m_mask", NULL | |
22634 | }; | |
22635 | ||
994141e6 | 22636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22637 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22638 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22639 | { | |
22640 | arg2 = (long)(SWIG_As_long(obj1)); | |
22641 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22642 | } | |
d14a1e28 RD |
22643 | if (arg1) (arg1)->m_mask = arg2; |
22644 | ||
22645 | Py_INCREF(Py_None); resultobj = Py_None; | |
22646 | return resultobj; | |
22647 | fail: | |
22648 | return NULL; | |
22649 | } | |
22650 | ||
22651 | ||
c32bde28 | 22652 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22653 | PyObject *resultobj; |
22654 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22655 | long result; | |
22656 | PyObject * obj0 = 0 ; | |
22657 | char *kwnames[] = { | |
22658 | (char *) "self", NULL | |
22659 | }; | |
22660 | ||
22661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22664 | result = (long) ((arg1)->m_mask); |
22665 | ||
093d3ff1 RD |
22666 | { |
22667 | resultobj = SWIG_From_long((long)(result)); | |
22668 | } | |
d14a1e28 RD |
22669 | return resultobj; |
22670 | fail: | |
22671 | return NULL; | |
22672 | } | |
22673 | ||
22674 | ||
c32bde28 | 22675 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22676 | PyObject *resultobj; |
22677 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22678 | long arg2 ; | |
22679 | PyObject * obj0 = 0 ; | |
994141e6 | 22680 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22681 | char *kwnames[] = { |
22682 | (char *) "self",(char *) "m_itemId", NULL | |
22683 | }; | |
22684 | ||
994141e6 | 22685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22688 | { | |
22689 | arg2 = (long)(SWIG_As_long(obj1)); | |
22690 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22691 | } | |
d14a1e28 RD |
22692 | if (arg1) (arg1)->m_itemId = arg2; |
22693 | ||
22694 | Py_INCREF(Py_None); resultobj = Py_None; | |
22695 | return resultobj; | |
22696 | fail: | |
22697 | return NULL; | |
22698 | } | |
22699 | ||
22700 | ||
c32bde28 | 22701 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22702 | PyObject *resultobj; |
22703 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22704 | long result; | |
22705 | PyObject * obj0 = 0 ; | |
22706 | char *kwnames[] = { | |
22707 | (char *) "self", NULL | |
22708 | }; | |
22709 | ||
22710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22713 | result = (long) ((arg1)->m_itemId); |
22714 | ||
093d3ff1 RD |
22715 | { |
22716 | resultobj = SWIG_From_long((long)(result)); | |
22717 | } | |
d14a1e28 RD |
22718 | return resultobj; |
22719 | fail: | |
22720 | return NULL; | |
22721 | } | |
22722 | ||
22723 | ||
c32bde28 | 22724 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22725 | PyObject *resultobj; |
22726 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22727 | int arg2 ; | |
22728 | PyObject * obj0 = 0 ; | |
994141e6 | 22729 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22730 | char *kwnames[] = { |
22731 | (char *) "self",(char *) "m_col", NULL | |
22732 | }; | |
22733 | ||
994141e6 | 22734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22737 | { | |
22738 | arg2 = (int)(SWIG_As_int(obj1)); | |
22739 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22740 | } | |
d14a1e28 RD |
22741 | if (arg1) (arg1)->m_col = arg2; |
22742 | ||
22743 | Py_INCREF(Py_None); resultobj = Py_None; | |
22744 | return resultobj; | |
22745 | fail: | |
22746 | return NULL; | |
22747 | } | |
22748 | ||
22749 | ||
c32bde28 | 22750 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22751 | PyObject *resultobj; |
22752 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22753 | int result; | |
22754 | PyObject * obj0 = 0 ; | |
22755 | char *kwnames[] = { | |
22756 | (char *) "self", NULL | |
22757 | }; | |
22758 | ||
22759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22762 | result = (int) ((arg1)->m_col); |
22763 | ||
093d3ff1 RD |
22764 | { |
22765 | resultobj = SWIG_From_int((int)(result)); | |
22766 | } | |
d14a1e28 RD |
22767 | return resultobj; |
22768 | fail: | |
22769 | return NULL; | |
22770 | } | |
22771 | ||
22772 | ||
c32bde28 | 22773 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22774 | PyObject *resultobj; |
22775 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22776 | long arg2 ; | |
22777 | PyObject * obj0 = 0 ; | |
994141e6 | 22778 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22779 | char *kwnames[] = { |
22780 | (char *) "self",(char *) "m_state", NULL | |
22781 | }; | |
22782 | ||
994141e6 | 22783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22786 | { | |
22787 | arg2 = (long)(SWIG_As_long(obj1)); | |
22788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22789 | } | |
d14a1e28 RD |
22790 | if (arg1) (arg1)->m_state = arg2; |
22791 | ||
22792 | Py_INCREF(Py_None); resultobj = Py_None; | |
22793 | return resultobj; | |
22794 | fail: | |
22795 | return NULL; | |
22796 | } | |
22797 | ||
22798 | ||
c32bde28 | 22799 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22800 | PyObject *resultobj; |
22801 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22802 | long result; | |
22803 | PyObject * obj0 = 0 ; | |
22804 | char *kwnames[] = { | |
22805 | (char *) "self", NULL | |
22806 | }; | |
22807 | ||
22808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22811 | result = (long) ((arg1)->m_state); |
22812 | ||
093d3ff1 RD |
22813 | { |
22814 | resultobj = SWIG_From_long((long)(result)); | |
22815 | } | |
d14a1e28 RD |
22816 | return resultobj; |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
c32bde28 | 22822 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22823 | PyObject *resultobj; |
22824 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22825 | long arg2 ; | |
22826 | PyObject * obj0 = 0 ; | |
994141e6 | 22827 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22828 | char *kwnames[] = { |
22829 | (char *) "self",(char *) "m_stateMask", NULL | |
22830 | }; | |
22831 | ||
994141e6 | 22832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22835 | { | |
22836 | arg2 = (long)(SWIG_As_long(obj1)); | |
22837 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22838 | } | |
d14a1e28 RD |
22839 | if (arg1) (arg1)->m_stateMask = arg2; |
22840 | ||
22841 | Py_INCREF(Py_None); resultobj = Py_None; | |
22842 | return resultobj; | |
22843 | fail: | |
22844 | return NULL; | |
22845 | } | |
22846 | ||
22847 | ||
c32bde28 | 22848 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22849 | PyObject *resultobj; |
22850 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22851 | long result; | |
22852 | PyObject * obj0 = 0 ; | |
22853 | char *kwnames[] = { | |
22854 | (char *) "self", NULL | |
22855 | }; | |
22856 | ||
22857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22860 | result = (long) ((arg1)->m_stateMask); |
22861 | ||
093d3ff1 RD |
22862 | { |
22863 | resultobj = SWIG_From_long((long)(result)); | |
22864 | } | |
d14a1e28 RD |
22865 | return resultobj; |
22866 | fail: | |
22867 | return NULL; | |
22868 | } | |
22869 | ||
22870 | ||
c32bde28 | 22871 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22872 | PyObject *resultobj; |
22873 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 22874 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 22875 | bool temp2 = false ; |
d14a1e28 RD |
22876 | PyObject * obj0 = 0 ; |
22877 | PyObject * obj1 = 0 ; | |
22878 | char *kwnames[] = { | |
22879 | (char *) "self",(char *) "m_text", NULL | |
22880 | }; | |
22881 | ||
22882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22883 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22884 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b RD |
22885 | { |
22886 | arg2 = wxString_in_helper(obj1); | |
22887 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22888 | temp2 = true; |
7eae615b | 22889 | } |
196addbf | 22890 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
22891 | |
22892 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
22893 | { |
22894 | if (temp2) | |
22895 | delete arg2; | |
22896 | } | |
d14a1e28 RD |
22897 | return resultobj; |
22898 | fail: | |
7eae615b RD |
22899 | { |
22900 | if (temp2) | |
22901 | delete arg2; | |
22902 | } | |
d14a1e28 RD |
22903 | return NULL; |
22904 | } | |
22905 | ||
22906 | ||
c32bde28 | 22907 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22908 | PyObject *resultobj; |
22909 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 22910 | wxString *result; |
d14a1e28 RD |
22911 | PyObject * obj0 = 0 ; |
22912 | char *kwnames[] = { | |
22913 | (char *) "self", NULL | |
22914 | }; | |
22915 | ||
22916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
196addbf | 22919 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
22920 | |
22921 | { | |
22922 | #if wxUSE_UNICODE | |
196addbf | 22923 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 22924 | #else |
196addbf | 22925 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
22926 | #endif |
22927 | } | |
22928 | return resultobj; | |
22929 | fail: | |
22930 | return NULL; | |
22931 | } | |
22932 | ||
22933 | ||
c32bde28 | 22934 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22935 | PyObject *resultobj; |
22936 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22937 | int arg2 ; | |
22938 | PyObject * obj0 = 0 ; | |
994141e6 | 22939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22940 | char *kwnames[] = { |
22941 | (char *) "self",(char *) "m_image", NULL | |
22942 | }; | |
22943 | ||
994141e6 | 22944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22947 | { | |
22948 | arg2 = (int)(SWIG_As_int(obj1)); | |
22949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22950 | } | |
d14a1e28 RD |
22951 | if (arg1) (arg1)->m_image = arg2; |
22952 | ||
22953 | Py_INCREF(Py_None); resultobj = Py_None; | |
22954 | return resultobj; | |
22955 | fail: | |
22956 | return NULL; | |
22957 | } | |
22958 | ||
22959 | ||
c32bde28 | 22960 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22961 | PyObject *resultobj; |
22962 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22963 | int result; | |
22964 | PyObject * obj0 = 0 ; | |
22965 | char *kwnames[] = { | |
22966 | (char *) "self", NULL | |
22967 | }; | |
22968 | ||
22969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22972 | result = (int) ((arg1)->m_image); |
22973 | ||
093d3ff1 RD |
22974 | { |
22975 | resultobj = SWIG_From_int((int)(result)); | |
22976 | } | |
d14a1e28 RD |
22977 | return resultobj; |
22978 | fail: | |
22979 | return NULL; | |
22980 | } | |
22981 | ||
22982 | ||
c32bde28 | 22983 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22984 | PyObject *resultobj; |
22985 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22986 | long arg2 ; | |
22987 | PyObject * obj0 = 0 ; | |
994141e6 | 22988 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22989 | char *kwnames[] = { |
22990 | (char *) "self",(char *) "m_data", NULL | |
22991 | }; | |
22992 | ||
994141e6 | 22993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22994 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22996 | { | |
22997 | arg2 = (long)(SWIG_As_long(obj1)); | |
22998 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22999 | } | |
d14a1e28 RD |
23000 | if (arg1) (arg1)->m_data = arg2; |
23001 | ||
23002 | Py_INCREF(Py_None); resultobj = Py_None; | |
23003 | return resultobj; | |
23004 | fail: | |
23005 | return NULL; | |
23006 | } | |
23007 | ||
23008 | ||
c32bde28 | 23009 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23010 | PyObject *resultobj; |
23011 | wxListItem *arg1 = (wxListItem *) 0 ; | |
23012 | long result; | |
23013 | PyObject * obj0 = 0 ; | |
23014 | char *kwnames[] = { | |
23015 | (char *) "self", NULL | |
23016 | }; | |
23017 | ||
23018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23021 | result = (long) ((arg1)->m_data); |
23022 | ||
093d3ff1 RD |
23023 | { |
23024 | resultobj = SWIG_From_long((long)(result)); | |
23025 | } | |
d14a1e28 RD |
23026 | return resultobj; |
23027 | fail: | |
23028 | return NULL; | |
23029 | } | |
23030 | ||
23031 | ||
c32bde28 | 23032 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23033 | PyObject *resultobj; |
23034 | wxListItem *arg1 = (wxListItem *) 0 ; | |
23035 | int arg2 ; | |
23036 | PyObject * obj0 = 0 ; | |
994141e6 | 23037 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23038 | char *kwnames[] = { |
23039 | (char *) "self",(char *) "m_format", NULL | |
23040 | }; | |
23041 | ||
994141e6 | 23042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23043 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23045 | { | |
23046 | arg2 = (int)(SWIG_As_int(obj1)); | |
23047 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23048 | } | |
d14a1e28 RD |
23049 | if (arg1) (arg1)->m_format = arg2; |
23050 | ||
23051 | Py_INCREF(Py_None); resultobj = Py_None; | |
23052 | return resultobj; | |
23053 | fail: | |
23054 | return NULL; | |
23055 | } | |
23056 | ||
23057 | ||
c32bde28 | 23058 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23059 | PyObject *resultobj; |
23060 | wxListItem *arg1 = (wxListItem *) 0 ; | |
23061 | int result; | |
23062 | PyObject * obj0 = 0 ; | |
23063 | char *kwnames[] = { | |
23064 | (char *) "self", NULL | |
23065 | }; | |
23066 | ||
23067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23070 | result = (int) ((arg1)->m_format); |
23071 | ||
093d3ff1 RD |
23072 | { |
23073 | resultobj = SWIG_From_int((int)(result)); | |
23074 | } | |
d14a1e28 RD |
23075 | return resultobj; |
23076 | fail: | |
23077 | return NULL; | |
23078 | } | |
23079 | ||
23080 | ||
c32bde28 | 23081 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23082 | PyObject *resultobj; |
23083 | wxListItem *arg1 = (wxListItem *) 0 ; | |
23084 | int arg2 ; | |
23085 | PyObject * obj0 = 0 ; | |
994141e6 | 23086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23087 | char *kwnames[] = { |
23088 | (char *) "self",(char *) "m_width", NULL | |
23089 | }; | |
23090 | ||
994141e6 | 23091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23094 | { | |
23095 | arg2 = (int)(SWIG_As_int(obj1)); | |
23096 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23097 | } | |
d14a1e28 RD |
23098 | if (arg1) (arg1)->m_width = arg2; |
23099 | ||
23100 | Py_INCREF(Py_None); resultobj = Py_None; | |
23101 | return resultobj; | |
23102 | fail: | |
23103 | return NULL; | |
23104 | } | |
23105 | ||
23106 | ||
c32bde28 | 23107 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23108 | PyObject *resultobj; |
23109 | wxListItem *arg1 = (wxListItem *) 0 ; | |
23110 | int result; | |
23111 | PyObject * obj0 = 0 ; | |
23112 | char *kwnames[] = { | |
23113 | (char *) "self", NULL | |
23114 | }; | |
23115 | ||
23116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23119 | result = (int) ((arg1)->m_width); |
23120 | ||
093d3ff1 RD |
23121 | { |
23122 | resultobj = SWIG_From_int((int)(result)); | |
23123 | } | |
d14a1e28 RD |
23124 | return resultobj; |
23125 | fail: | |
23126 | return NULL; | |
23127 | } | |
23128 | ||
23129 | ||
c32bde28 | 23130 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23131 | PyObject *obj; |
23132 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23133 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
23134 | Py_INCREF(obj); | |
23135 | return Py_BuildValue((char *)""); | |
23136 | } | |
c32bde28 | 23137 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23138 | PyObject *resultobj; |
23139 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23140 | int arg2 = (int) 0 ; | |
23141 | wxListEvent *result; | |
994141e6 RD |
23142 | PyObject * obj0 = 0 ; |
23143 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23144 | char *kwnames[] = { |
23145 | (char *) "commandType",(char *) "id", NULL | |
23146 | }; | |
23147 | ||
994141e6 RD |
23148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
23149 | if (obj0) { | |
093d3ff1 RD |
23150 | { |
23151 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
23152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23153 | } | |
994141e6 RD |
23154 | } |
23155 | if (obj1) { | |
093d3ff1 RD |
23156 | { |
23157 | arg2 = (int)(SWIG_As_int(obj1)); | |
23158 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23159 | } | |
994141e6 | 23160 | } |
d14a1e28 RD |
23161 | { |
23162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23163 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
23164 | ||
23165 | wxPyEndAllowThreads(__tstate); | |
23166 | if (PyErr_Occurred()) SWIG_fail; | |
23167 | } | |
15afbcd0 | 23168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
23169 | return resultobj; |
23170 | fail: | |
23171 | return NULL; | |
23172 | } | |
23173 | ||
23174 | ||
c32bde28 | 23175 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23176 | PyObject *resultobj; |
23177 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23178 | int arg2 ; | |
23179 | PyObject * obj0 = 0 ; | |
994141e6 | 23180 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23181 | char *kwnames[] = { |
23182 | (char *) "self",(char *) "m_code", NULL | |
23183 | }; | |
23184 | ||
994141e6 | 23185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23188 | { | |
23189 | arg2 = (int)(SWIG_As_int(obj1)); | |
23190 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23191 | } | |
d14a1e28 RD |
23192 | if (arg1) (arg1)->m_code = arg2; |
23193 | ||
23194 | Py_INCREF(Py_None); resultobj = Py_None; | |
23195 | return resultobj; | |
23196 | fail: | |
23197 | return NULL; | |
23198 | } | |
23199 | ||
23200 | ||
c32bde28 | 23201 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23202 | PyObject *resultobj; |
23203 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23204 | int result; | |
23205 | PyObject * obj0 = 0 ; | |
23206 | char *kwnames[] = { | |
23207 | (char *) "self", NULL | |
23208 | }; | |
23209 | ||
23210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23213 | result = (int) ((arg1)->m_code); |
23214 | ||
093d3ff1 RD |
23215 | { |
23216 | resultobj = SWIG_From_int((int)(result)); | |
23217 | } | |
d14a1e28 RD |
23218 | return resultobj; |
23219 | fail: | |
23220 | return NULL; | |
23221 | } | |
23222 | ||
23223 | ||
c32bde28 | 23224 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23225 | PyObject *resultobj; |
23226 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23227 | long arg2 ; | |
23228 | PyObject * obj0 = 0 ; | |
994141e6 | 23229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23230 | char *kwnames[] = { |
23231 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
23232 | }; | |
23233 | ||
994141e6 | 23234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23237 | { | |
23238 | arg2 = (long)(SWIG_As_long(obj1)); | |
23239 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23240 | } | |
d14a1e28 RD |
23241 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
23242 | ||
23243 | Py_INCREF(Py_None); resultobj = Py_None; | |
23244 | return resultobj; | |
23245 | fail: | |
23246 | return NULL; | |
23247 | } | |
23248 | ||
23249 | ||
c32bde28 | 23250 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23251 | PyObject *resultobj; |
23252 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23253 | long result; | |
23254 | PyObject * obj0 = 0 ; | |
23255 | char *kwnames[] = { | |
23256 | (char *) "self", NULL | |
23257 | }; | |
23258 | ||
23259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_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; | |
d14a1e28 RD |
23262 | result = (long) ((arg1)->m_oldItemIndex); |
23263 | ||
093d3ff1 RD |
23264 | { |
23265 | resultobj = SWIG_From_long((long)(result)); | |
23266 | } | |
d14a1e28 RD |
23267 | return resultobj; |
23268 | fail: | |
23269 | return NULL; | |
23270 | } | |
23271 | ||
23272 | ||
c32bde28 | 23273 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23274 | PyObject *resultobj; |
23275 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23276 | long arg2 ; | |
23277 | PyObject * obj0 = 0 ; | |
994141e6 | 23278 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23279 | char *kwnames[] = { |
23280 | (char *) "self",(char *) "m_itemIndex", NULL | |
23281 | }; | |
23282 | ||
994141e6 | 23283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23286 | { | |
23287 | arg2 = (long)(SWIG_As_long(obj1)); | |
23288 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23289 | } | |
d14a1e28 RD |
23290 | if (arg1) (arg1)->m_itemIndex = arg2; |
23291 | ||
23292 | Py_INCREF(Py_None); resultobj = Py_None; | |
23293 | return resultobj; | |
23294 | fail: | |
23295 | return NULL; | |
23296 | } | |
23297 | ||
23298 | ||
c32bde28 | 23299 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23300 | PyObject *resultobj; |
23301 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23302 | long result; | |
23303 | PyObject * obj0 = 0 ; | |
23304 | char *kwnames[] = { | |
23305 | (char *) "self", NULL | |
23306 | }; | |
23307 | ||
23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23311 | result = (long) ((arg1)->m_itemIndex); |
23312 | ||
093d3ff1 RD |
23313 | { |
23314 | resultobj = SWIG_From_long((long)(result)); | |
23315 | } | |
d14a1e28 RD |
23316 | return resultobj; |
23317 | fail: | |
23318 | return NULL; | |
23319 | } | |
23320 | ||
23321 | ||
c32bde28 | 23322 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23323 | PyObject *resultobj; |
23324 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23325 | int arg2 ; | |
23326 | PyObject * obj0 = 0 ; | |
994141e6 | 23327 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23328 | char *kwnames[] = { |
23329 | (char *) "self",(char *) "m_col", NULL | |
23330 | }; | |
23331 | ||
994141e6 | 23332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23333 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23335 | { | |
23336 | arg2 = (int)(SWIG_As_int(obj1)); | |
23337 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23338 | } | |
d14a1e28 RD |
23339 | if (arg1) (arg1)->m_col = arg2; |
23340 | ||
23341 | Py_INCREF(Py_None); resultobj = Py_None; | |
23342 | return resultobj; | |
23343 | fail: | |
23344 | return NULL; | |
23345 | } | |
23346 | ||
23347 | ||
c32bde28 | 23348 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23349 | PyObject *resultobj; |
23350 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23351 | int result; | |
23352 | PyObject * obj0 = 0 ; | |
23353 | char *kwnames[] = { | |
23354 | (char *) "self", NULL | |
23355 | }; | |
23356 | ||
23357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23358 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23359 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23360 | result = (int) ((arg1)->m_col); |
23361 | ||
093d3ff1 RD |
23362 | { |
23363 | resultobj = SWIG_From_int((int)(result)); | |
23364 | } | |
d14a1e28 RD |
23365 | return resultobj; |
23366 | fail: | |
23367 | return NULL; | |
23368 | } | |
23369 | ||
23370 | ||
c32bde28 | 23371 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23372 | PyObject *resultobj; |
23373 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23374 | wxPoint *arg2 = (wxPoint *) 0 ; | |
23375 | PyObject * obj0 = 0 ; | |
23376 | PyObject * obj1 = 0 ; | |
23377 | char *kwnames[] = { | |
23378 | (char *) "self",(char *) "m_pointDrag", NULL | |
23379 | }; | |
23380 | ||
23381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23384 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); | |
23385 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23386 | if (arg1) (arg1)->m_pointDrag = *arg2; |
23387 | ||
23388 | Py_INCREF(Py_None); resultobj = Py_None; | |
23389 | return resultobj; | |
23390 | fail: | |
23391 | return NULL; | |
23392 | } | |
23393 | ||
23394 | ||
c32bde28 | 23395 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23396 | PyObject *resultobj; |
23397 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23398 | wxPoint *result; | |
23399 | PyObject * obj0 = 0 ; | |
23400 | char *kwnames[] = { | |
23401 | (char *) "self", NULL | |
23402 | }; | |
23403 | ||
23404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23405 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23406 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23407 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
23408 | ||
15afbcd0 | 23409 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
23410 | return resultobj; |
23411 | fail: | |
23412 | return NULL; | |
23413 | } | |
23414 | ||
23415 | ||
c32bde28 | 23416 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23417 | PyObject *resultobj; |
23418 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23419 | wxListItem *result; | |
23420 | PyObject * obj0 = 0 ; | |
23421 | char *kwnames[] = { | |
23422 | (char *) "self", NULL | |
23423 | }; | |
23424 | ||
23425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23428 | result = (wxListItem *)& ((arg1)->m_item); |
23429 | ||
23430 | { | |
412d302d | 23431 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
23432 | } |
23433 | return resultobj; | |
23434 | fail: | |
23435 | return NULL; | |
23436 | } | |
23437 | ||
23438 | ||
c32bde28 | 23439 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23440 | PyObject *resultobj; |
23441 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23442 | int result; | |
23443 | PyObject * obj0 = 0 ; | |
23444 | char *kwnames[] = { | |
23445 | (char *) "self", NULL | |
23446 | }; | |
23447 | ||
23448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23451 | { |
23452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23453 | result = (int)(arg1)->GetKeyCode(); | |
23454 | ||
23455 | wxPyEndAllowThreads(__tstate); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
23457 | } | |
093d3ff1 RD |
23458 | { |
23459 | resultobj = SWIG_From_int((int)(result)); | |
23460 | } | |
d14a1e28 RD |
23461 | return resultobj; |
23462 | fail: | |
23463 | return NULL; | |
23464 | } | |
23465 | ||
23466 | ||
c32bde28 | 23467 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23468 | PyObject *resultobj; |
23469 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23470 | long result; | |
23471 | PyObject * obj0 = 0 ; | |
23472 | char *kwnames[] = { | |
23473 | (char *) "self", NULL | |
23474 | }; | |
23475 | ||
23476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23479 | { |
23480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23481 | result = (long)(arg1)->GetIndex(); | |
23482 | ||
23483 | wxPyEndAllowThreads(__tstate); | |
23484 | if (PyErr_Occurred()) SWIG_fail; | |
23485 | } | |
093d3ff1 RD |
23486 | { |
23487 | resultobj = SWIG_From_long((long)(result)); | |
23488 | } | |
d14a1e28 RD |
23489 | return resultobj; |
23490 | fail: | |
23491 | return NULL; | |
23492 | } | |
23493 | ||
23494 | ||
c32bde28 | 23495 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23496 | PyObject *resultobj; |
23497 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23498 | int result; | |
23499 | PyObject * obj0 = 0 ; | |
23500 | char *kwnames[] = { | |
23501 | (char *) "self", NULL | |
23502 | }; | |
23503 | ||
23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23507 | { |
23508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23509 | result = (int)(arg1)->GetColumn(); | |
23510 | ||
23511 | wxPyEndAllowThreads(__tstate); | |
23512 | if (PyErr_Occurred()) SWIG_fail; | |
23513 | } | |
093d3ff1 RD |
23514 | { |
23515 | resultobj = SWIG_From_int((int)(result)); | |
23516 | } | |
d14a1e28 RD |
23517 | return resultobj; |
23518 | fail: | |
23519 | return NULL; | |
23520 | } | |
23521 | ||
23522 | ||
c32bde28 | 23523 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23524 | PyObject *resultobj; |
23525 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23526 | wxPoint result; | |
23527 | PyObject * obj0 = 0 ; | |
23528 | char *kwnames[] = { | |
23529 | (char *) "self", NULL | |
23530 | }; | |
23531 | ||
23532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23535 | { |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | result = (arg1)->GetPoint(); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | { | |
23543 | wxPoint * resultptr; | |
093d3ff1 | 23544 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 23545 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
23546 | } |
23547 | return resultobj; | |
23548 | fail: | |
23549 | return NULL; | |
23550 | } | |
23551 | ||
23552 | ||
c32bde28 | 23553 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23554 | PyObject *resultobj; |
23555 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23556 | wxString *result; | |
23557 | PyObject * obj0 = 0 ; | |
23558 | char *kwnames[] = { | |
23559 | (char *) "self", NULL | |
23560 | }; | |
23561 | ||
23562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23565 | { |
23566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23567 | { | |
23568 | wxString const &_result_ref = (arg1)->GetLabel(); | |
23569 | result = (wxString *) &_result_ref; | |
23570 | } | |
23571 | ||
23572 | wxPyEndAllowThreads(__tstate); | |
23573 | if (PyErr_Occurred()) SWIG_fail; | |
23574 | } | |
cc6dd355 RD |
23575 | { |
23576 | #if wxUSE_UNICODE | |
23577 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23578 | #else | |
23579 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23580 | #endif | |
23581 | } | |
d14a1e28 RD |
23582 | return resultobj; |
23583 | fail: | |
23584 | return NULL; | |
23585 | } | |
23586 | ||
23587 | ||
c32bde28 | 23588 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23589 | PyObject *resultobj; |
23590 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23591 | wxString *result; | |
23592 | PyObject * obj0 = 0 ; | |
23593 | char *kwnames[] = { | |
23594 | (char *) "self", NULL | |
23595 | }; | |
23596 | ||
23597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23600 | { |
23601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23602 | { | |
23603 | wxString const &_result_ref = (arg1)->GetText(); | |
23604 | result = (wxString *) &_result_ref; | |
23605 | } | |
23606 | ||
23607 | wxPyEndAllowThreads(__tstate); | |
23608 | if (PyErr_Occurred()) SWIG_fail; | |
23609 | } | |
cc6dd355 RD |
23610 | { |
23611 | #if wxUSE_UNICODE | |
23612 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23613 | #else | |
23614 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23615 | #endif | |
23616 | } | |
d14a1e28 RD |
23617 | return resultobj; |
23618 | fail: | |
23619 | return NULL; | |
23620 | } | |
23621 | ||
23622 | ||
c32bde28 | 23623 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23624 | PyObject *resultobj; |
23625 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23626 | int result; | |
23627 | PyObject * obj0 = 0 ; | |
23628 | char *kwnames[] = { | |
23629 | (char *) "self", NULL | |
23630 | }; | |
23631 | ||
23632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23635 | { |
23636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23637 | result = (int)(arg1)->GetImage(); | |
23638 | ||
23639 | wxPyEndAllowThreads(__tstate); | |
23640 | if (PyErr_Occurred()) SWIG_fail; | |
23641 | } | |
093d3ff1 RD |
23642 | { |
23643 | resultobj = SWIG_From_int((int)(result)); | |
23644 | } | |
d14a1e28 RD |
23645 | return resultobj; |
23646 | fail: | |
23647 | return NULL; | |
23648 | } | |
23649 | ||
23650 | ||
c32bde28 | 23651 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23652 | PyObject *resultobj; |
23653 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23654 | long result; | |
23655 | PyObject * obj0 = 0 ; | |
23656 | char *kwnames[] = { | |
23657 | (char *) "self", NULL | |
23658 | }; | |
23659 | ||
23660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23663 | { |
23664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23665 | result = (long)(arg1)->GetData(); | |
23666 | ||
23667 | wxPyEndAllowThreads(__tstate); | |
23668 | if (PyErr_Occurred()) SWIG_fail; | |
23669 | } | |
093d3ff1 RD |
23670 | { |
23671 | resultobj = SWIG_From_long((long)(result)); | |
23672 | } | |
d14a1e28 RD |
23673 | return resultobj; |
23674 | fail: | |
23675 | return NULL; | |
23676 | } | |
23677 | ||
23678 | ||
c32bde28 | 23679 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23680 | PyObject *resultobj; |
23681 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23682 | long result; | |
23683 | PyObject * obj0 = 0 ; | |
23684 | char *kwnames[] = { | |
23685 | (char *) "self", NULL | |
23686 | }; | |
23687 | ||
23688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23691 | { |
23692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23693 | result = (long)(arg1)->GetMask(); | |
23694 | ||
23695 | wxPyEndAllowThreads(__tstate); | |
23696 | if (PyErr_Occurred()) SWIG_fail; | |
23697 | } | |
093d3ff1 RD |
23698 | { |
23699 | resultobj = SWIG_From_long((long)(result)); | |
23700 | } | |
d14a1e28 RD |
23701 | return resultobj; |
23702 | fail: | |
23703 | return NULL; | |
23704 | } | |
23705 | ||
23706 | ||
c32bde28 | 23707 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23708 | PyObject *resultobj; |
23709 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23710 | wxListItem *result; | |
23711 | PyObject * obj0 = 0 ; | |
23712 | char *kwnames[] = { | |
23713 | (char *) "self", NULL | |
23714 | }; | |
23715 | ||
23716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23719 | { |
23720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23721 | { | |
23722 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
23723 | result = (wxListItem *) &_result_ref; | |
23724 | } | |
23725 | ||
23726 | wxPyEndAllowThreads(__tstate); | |
23727 | if (PyErr_Occurred()) SWIG_fail; | |
23728 | } | |
15afbcd0 | 23729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
23730 | return resultobj; |
23731 | fail: | |
23732 | return NULL; | |
23733 | } | |
23734 | ||
23735 | ||
c32bde28 | 23736 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23737 | PyObject *resultobj; |
23738 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23739 | long result; | |
23740 | PyObject * obj0 = 0 ; | |
23741 | char *kwnames[] = { | |
23742 | (char *) "self", NULL | |
23743 | }; | |
23744 | ||
23745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23748 | { |
23749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23750 | result = (long)(arg1)->GetCacheFrom(); | |
23751 | ||
23752 | wxPyEndAllowThreads(__tstate); | |
23753 | if (PyErr_Occurred()) SWIG_fail; | |
23754 | } | |
093d3ff1 RD |
23755 | { |
23756 | resultobj = SWIG_From_long((long)(result)); | |
23757 | } | |
d14a1e28 RD |
23758 | return resultobj; |
23759 | fail: | |
23760 | return NULL; | |
23761 | } | |
23762 | ||
23763 | ||
c32bde28 | 23764 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23765 | PyObject *resultobj; |
23766 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23767 | long result; | |
23768 | PyObject * obj0 = 0 ; | |
23769 | char *kwnames[] = { | |
23770 | (char *) "self", NULL | |
23771 | }; | |
23772 | ||
23773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23774 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23775 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23776 | { |
23777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23778 | result = (long)(arg1)->GetCacheTo(); | |
23779 | ||
23780 | wxPyEndAllowThreads(__tstate); | |
23781 | if (PyErr_Occurred()) SWIG_fail; | |
23782 | } | |
093d3ff1 RD |
23783 | { |
23784 | resultobj = SWIG_From_long((long)(result)); | |
23785 | } | |
d14a1e28 RD |
23786 | return resultobj; |
23787 | fail: | |
23788 | return NULL; | |
23789 | } | |
23790 | ||
23791 | ||
c32bde28 | 23792 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23793 | PyObject *resultobj; |
23794 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23795 | bool result; | |
23796 | PyObject * obj0 = 0 ; | |
23797 | char *kwnames[] = { | |
23798 | (char *) "self", NULL | |
23799 | }; | |
23800 | ||
23801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23804 | { |
23805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23806 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
23807 | ||
23808 | wxPyEndAllowThreads(__tstate); | |
23809 | if (PyErr_Occurred()) SWIG_fail; | |
23810 | } | |
4f89f6a3 RD |
23811 | { |
23812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23813 | } | |
d14a1e28 RD |
23814 | return resultobj; |
23815 | fail: | |
23816 | return NULL; | |
23817 | } | |
23818 | ||
23819 | ||
c32bde28 | 23820 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23821 | PyObject *resultobj; |
23822 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23823 | bool arg2 ; | |
23824 | PyObject * obj0 = 0 ; | |
23825 | PyObject * obj1 = 0 ; | |
23826 | char *kwnames[] = { | |
23827 | (char *) "self",(char *) "editCancelled", NULL | |
23828 | }; | |
23829 | ||
23830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23833 | { | |
23834 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23835 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23836 | } | |
d14a1e28 RD |
23837 | { |
23838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23839 | (arg1)->SetEditCanceled(arg2); | |
23840 | ||
23841 | wxPyEndAllowThreads(__tstate); | |
23842 | if (PyErr_Occurred()) SWIG_fail; | |
23843 | } | |
23844 | Py_INCREF(Py_None); resultobj = Py_None; | |
23845 | return resultobj; | |
23846 | fail: | |
23847 | return NULL; | |
23848 | } | |
23849 | ||
23850 | ||
c32bde28 | 23851 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23852 | PyObject *obj; |
23853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23854 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
23855 | Py_INCREF(obj); | |
23856 | return Py_BuildValue((char *)""); | |
23857 | } | |
c32bde28 | 23858 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23859 | PyObject *resultobj; |
23860 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23861 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23862 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23863 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23864 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23865 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23866 | long arg5 = (long) wxLC_ICON ; | |
23867 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23868 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23869 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23870 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23871 | wxPyListCtrl *result; | |
23872 | wxPoint temp3 ; | |
23873 | wxSize temp4 ; | |
ae8162c8 | 23874 | bool temp7 = false ; |
d14a1e28 | 23875 | PyObject * obj0 = 0 ; |
994141e6 | 23876 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23877 | PyObject * obj2 = 0 ; |
23878 | PyObject * obj3 = 0 ; | |
994141e6 | 23879 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23880 | PyObject * obj5 = 0 ; |
23881 | PyObject * obj6 = 0 ; | |
23882 | char *kwnames[] = { | |
23883 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23884 | }; | |
23885 | ||
994141e6 | 23886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
23887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
23888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 23889 | if (obj1) { |
093d3ff1 RD |
23890 | { |
23891 | arg2 = (int)(SWIG_As_int(obj1)); | |
23892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23893 | } | |
994141e6 | 23894 | } |
d14a1e28 RD |
23895 | if (obj2) { |
23896 | { | |
23897 | arg3 = &temp3; | |
23898 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23899 | } | |
23900 | } | |
23901 | if (obj3) { | |
23902 | { | |
23903 | arg4 = &temp4; | |
23904 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23905 | } | |
23906 | } | |
994141e6 | 23907 | if (obj4) { |
093d3ff1 RD |
23908 | { |
23909 | arg5 = (long)(SWIG_As_long(obj4)); | |
23910 | if (SWIG_arg_fail(5)) SWIG_fail; | |
23911 | } | |
994141e6 | 23912 | } |
d14a1e28 | 23913 | if (obj5) { |
093d3ff1 RD |
23914 | { |
23915 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23916 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23917 | if (arg6 == NULL) { | |
23918 | SWIG_null_ref("wxValidator"); | |
23919 | } | |
23920 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
23921 | } |
23922 | } | |
23923 | if (obj6) { | |
23924 | { | |
23925 | arg7 = wxString_in_helper(obj6); | |
23926 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 23927 | temp7 = true; |
d14a1e28 RD |
23928 | } |
23929 | } | |
23930 | { | |
e3b71cb8 | 23931 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23933 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23934 | ||
23935 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23936 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23937 | } |
15afbcd0 | 23938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
23939 | { |
23940 | if (temp7) | |
23941 | delete arg7; | |
23942 | } | |
23943 | return resultobj; | |
23944 | fail: | |
23945 | { | |
23946 | if (temp7) | |
23947 | delete arg7; | |
23948 | } | |
23949 | return NULL; | |
23950 | } | |
23951 | ||
23952 | ||
c32bde28 | 23953 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23954 | PyObject *resultobj; |
23955 | wxPyListCtrl *result; | |
23956 | char *kwnames[] = { | |
23957 | NULL | |
23958 | }; | |
23959 | ||
23960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
23961 | { | |
e3b71cb8 | 23962 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23964 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
23965 | ||
23966 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23967 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23968 | } |
15afbcd0 | 23969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
23970 | return resultobj; |
23971 | fail: | |
23972 | return NULL; | |
23973 | } | |
23974 | ||
23975 | ||
c32bde28 | 23976 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23977 | PyObject *resultobj; |
23978 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23979 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23980 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23981 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23982 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23983 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23984 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23985 | long arg6 = (long) wxLC_ICON ; | |
23986 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23987 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23988 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23989 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23990 | bool result; | |
23991 | wxPoint temp4 ; | |
23992 | wxSize temp5 ; | |
ae8162c8 | 23993 | bool temp8 = false ; |
d14a1e28 RD |
23994 | PyObject * obj0 = 0 ; |
23995 | PyObject * obj1 = 0 ; | |
994141e6 | 23996 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23997 | PyObject * obj3 = 0 ; |
23998 | PyObject * obj4 = 0 ; | |
994141e6 | 23999 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
24000 | PyObject * obj6 = 0 ; |
24001 | PyObject * obj7 = 0 ; | |
24002 | char *kwnames[] = { | |
24003 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24004 | }; | |
24005 | ||
994141e6 | 24006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
24007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24009 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
24010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 24011 | if (obj2) { |
093d3ff1 RD |
24012 | { |
24013 | arg3 = (int)(SWIG_As_int(obj2)); | |
24014 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24015 | } | |
994141e6 | 24016 | } |
d14a1e28 RD |
24017 | if (obj3) { |
24018 | { | |
24019 | arg4 = &temp4; | |
24020 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24021 | } | |
24022 | } | |
24023 | if (obj4) { | |
24024 | { | |
24025 | arg5 = &temp5; | |
24026 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24027 | } | |
24028 | } | |
994141e6 | 24029 | if (obj5) { |
093d3ff1 RD |
24030 | { |
24031 | arg6 = (long)(SWIG_As_long(obj5)); | |
24032 | if (SWIG_arg_fail(6)) SWIG_fail; | |
24033 | } | |
994141e6 | 24034 | } |
d14a1e28 | 24035 | if (obj6) { |
093d3ff1 RD |
24036 | { |
24037 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
24038 | if (SWIG_arg_fail(7)) SWIG_fail; | |
24039 | if (arg7 == NULL) { | |
24040 | SWIG_null_ref("wxValidator"); | |
24041 | } | |
24042 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
24043 | } |
24044 | } | |
24045 | if (obj7) { | |
24046 | { | |
24047 | arg8 = wxString_in_helper(obj7); | |
24048 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 24049 | temp8 = true; |
d14a1e28 RD |
24050 | } |
24051 | } | |
24052 | { | |
24053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24054 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24055 | ||
24056 | wxPyEndAllowThreads(__tstate); | |
24057 | if (PyErr_Occurred()) SWIG_fail; | |
24058 | } | |
4f89f6a3 RD |
24059 | { |
24060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24061 | } | |
d14a1e28 RD |
24062 | { |
24063 | if (temp8) | |
24064 | delete arg8; | |
24065 | } | |
24066 | return resultobj; | |
24067 | fail: | |
24068 | { | |
24069 | if (temp8) | |
24070 | delete arg8; | |
24071 | } | |
24072 | return NULL; | |
24073 | } | |
24074 | ||
24075 | ||
c32bde28 | 24076 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24077 | PyObject *resultobj; |
24078 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24079 | PyObject *arg2 = (PyObject *) 0 ; | |
24080 | PyObject *arg3 = (PyObject *) 0 ; | |
24081 | PyObject * obj0 = 0 ; | |
24082 | PyObject * obj1 = 0 ; | |
24083 | PyObject * obj2 = 0 ; | |
24084 | char *kwnames[] = { | |
24085 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24086 | }; | |
24087 | ||
24088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24091 | arg2 = obj1; |
24092 | arg3 = obj2; | |
24093 | { | |
24094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24095 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24096 | ||
24097 | wxPyEndAllowThreads(__tstate); | |
24098 | if (PyErr_Occurred()) SWIG_fail; | |
24099 | } | |
24100 | Py_INCREF(Py_None); resultobj = Py_None; | |
24101 | return resultobj; | |
24102 | fail: | |
24103 | return NULL; | |
24104 | } | |
24105 | ||
24106 | ||
c32bde28 | 24107 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24108 | PyObject *resultobj; |
24109 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24110 | wxColour *arg2 = 0 ; | |
24111 | bool result; | |
24112 | wxColour temp2 ; | |
24113 | PyObject * obj0 = 0 ; | |
24114 | PyObject * obj1 = 0 ; | |
24115 | char *kwnames[] = { | |
24116 | (char *) "self",(char *) "col", NULL | |
24117 | }; | |
24118 | ||
24119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24122 | { |
24123 | arg2 = &temp2; | |
24124 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24125 | } | |
24126 | { | |
24127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24128 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24129 | ||
24130 | wxPyEndAllowThreads(__tstate); | |
24131 | if (PyErr_Occurred()) SWIG_fail; | |
24132 | } | |
4f89f6a3 RD |
24133 | { |
24134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24135 | } | |
d14a1e28 RD |
24136 | return resultobj; |
24137 | fail: | |
24138 | return NULL; | |
24139 | } | |
24140 | ||
24141 | ||
c32bde28 | 24142 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24143 | PyObject *resultobj; |
24144 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24145 | wxColour *arg2 = 0 ; | |
24146 | bool result; | |
24147 | wxColour temp2 ; | |
24148 | PyObject * obj0 = 0 ; | |
24149 | PyObject * obj1 = 0 ; | |
24150 | char *kwnames[] = { | |
24151 | (char *) "self",(char *) "col", NULL | |
24152 | }; | |
24153 | ||
24154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24157 | { |
24158 | arg2 = &temp2; | |
24159 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24160 | } | |
24161 | { | |
24162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24163 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24164 | ||
24165 | wxPyEndAllowThreads(__tstate); | |
24166 | if (PyErr_Occurred()) SWIG_fail; | |
24167 | } | |
4f89f6a3 RD |
24168 | { |
24169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24170 | } | |
d14a1e28 RD |
24171 | return resultobj; |
24172 | fail: | |
24173 | return NULL; | |
24174 | } | |
24175 | ||
24176 | ||
c32bde28 | 24177 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24178 | PyObject *resultobj; |
24179 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24180 | int arg2 ; | |
24181 | wxListItem *result; | |
24182 | PyObject * obj0 = 0 ; | |
994141e6 | 24183 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24184 | char *kwnames[] = { |
24185 | (char *) "self",(char *) "col", NULL | |
24186 | }; | |
24187 | ||
994141e6 | 24188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24191 | { | |
24192 | arg2 = (int)(SWIG_As_int(obj1)); | |
24193 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24194 | } | |
d14a1e28 RD |
24195 | { |
24196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24197 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
24198 | ||
24199 | wxPyEndAllowThreads(__tstate); | |
24200 | if (PyErr_Occurred()) SWIG_fail; | |
24201 | } | |
24202 | { | |
412d302d | 24203 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24204 | } |
24205 | return resultobj; | |
24206 | fail: | |
24207 | return NULL; | |
24208 | } | |
24209 | ||
24210 | ||
c32bde28 | 24211 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24212 | PyObject *resultobj; |
24213 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24214 | int arg2 ; | |
24215 | wxListItem *arg3 = 0 ; | |
24216 | bool result; | |
24217 | PyObject * obj0 = 0 ; | |
994141e6 | 24218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24219 | PyObject * obj2 = 0 ; |
24220 | char *kwnames[] = { | |
24221 | (char *) "self",(char *) "col",(char *) "item", NULL | |
24222 | }; | |
24223 | ||
994141e6 | 24224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24227 | { | |
24228 | arg2 = (int)(SWIG_As_int(obj1)); | |
24229 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24230 | } | |
24231 | { | |
24232 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24233 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24234 | if (arg3 == NULL) { | |
24235 | SWIG_null_ref("wxListItem"); | |
24236 | } | |
24237 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
24238 | } |
24239 | { | |
24240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24241 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
24242 | ||
24243 | wxPyEndAllowThreads(__tstate); | |
24244 | if (PyErr_Occurred()) SWIG_fail; | |
24245 | } | |
4f89f6a3 RD |
24246 | { |
24247 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24248 | } | |
d14a1e28 RD |
24249 | return resultobj; |
24250 | fail: | |
24251 | return NULL; | |
24252 | } | |
24253 | ||
24254 | ||
c32bde28 | 24255 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24256 | PyObject *resultobj; |
24257 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24258 | int arg2 ; | |
24259 | int result; | |
24260 | PyObject * obj0 = 0 ; | |
994141e6 | 24261 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24262 | char *kwnames[] = { |
24263 | (char *) "self",(char *) "col", NULL | |
24264 | }; | |
24265 | ||
994141e6 | 24266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24267 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24268 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24269 | { | |
24270 | arg2 = (int)(SWIG_As_int(obj1)); | |
24271 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24272 | } | |
d14a1e28 RD |
24273 | { |
24274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24275 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
24276 | ||
24277 | wxPyEndAllowThreads(__tstate); | |
24278 | if (PyErr_Occurred()) SWIG_fail; | |
24279 | } | |
093d3ff1 RD |
24280 | { |
24281 | resultobj = SWIG_From_int((int)(result)); | |
24282 | } | |
d14a1e28 RD |
24283 | return resultobj; |
24284 | fail: | |
24285 | return NULL; | |
24286 | } | |
24287 | ||
24288 | ||
c32bde28 | 24289 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24290 | PyObject *resultobj; |
24291 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24292 | int arg2 ; | |
24293 | int arg3 ; | |
24294 | bool result; | |
24295 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24296 | PyObject * obj1 = 0 ; |
24297 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24298 | char *kwnames[] = { |
24299 | (char *) "self",(char *) "col",(char *) "width", NULL | |
24300 | }; | |
24301 | ||
994141e6 | 24302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) 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 | arg2 = (int)(SWIG_As_int(obj1)); | |
24307 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24308 | } | |
24309 | { | |
24310 | arg3 = (int)(SWIG_As_int(obj2)); | |
24311 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24312 | } | |
d14a1e28 RD |
24313 | { |
24314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24315 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
24316 | ||
24317 | wxPyEndAllowThreads(__tstate); | |
24318 | if (PyErr_Occurred()) SWIG_fail; | |
24319 | } | |
4f89f6a3 RD |
24320 | { |
24321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24322 | } | |
d14a1e28 RD |
24323 | return resultobj; |
24324 | fail: | |
24325 | return NULL; | |
24326 | } | |
24327 | ||
24328 | ||
c32bde28 | 24329 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24330 | PyObject *resultobj; |
24331 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24332 | int result; | |
24333 | PyObject * obj0 = 0 ; | |
24334 | char *kwnames[] = { | |
24335 | (char *) "self", NULL | |
24336 | }; | |
24337 | ||
24338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24341 | { |
24342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24343 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
24344 | ||
24345 | wxPyEndAllowThreads(__tstate); | |
24346 | if (PyErr_Occurred()) SWIG_fail; | |
24347 | } | |
093d3ff1 RD |
24348 | { |
24349 | resultobj = SWIG_From_int((int)(result)); | |
24350 | } | |
d14a1e28 RD |
24351 | return resultobj; |
24352 | fail: | |
24353 | return NULL; | |
24354 | } | |
24355 | ||
24356 | ||
c32bde28 | 24357 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24358 | PyObject *resultobj; |
24359 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24360 | wxRect result; | |
24361 | PyObject * obj0 = 0 ; | |
24362 | char *kwnames[] = { | |
24363 | (char *) "self", NULL | |
24364 | }; | |
24365 | ||
24366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24369 | { |
24370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24371 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
24372 | ||
24373 | wxPyEndAllowThreads(__tstate); | |
24374 | if (PyErr_Occurred()) SWIG_fail; | |
24375 | } | |
24376 | { | |
24377 | wxRect * resultptr; | |
093d3ff1 | 24378 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 24379 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
24380 | } |
24381 | return resultobj; | |
24382 | fail: | |
24383 | return NULL; | |
24384 | } | |
24385 | ||
24386 | ||
c32bde28 | 24387 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24388 | PyObject *resultobj; |
24389 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24390 | long arg2 ; | |
24391 | int arg3 = (int) 0 ; | |
24392 | wxListItem *result; | |
24393 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24394 | PyObject * obj1 = 0 ; |
24395 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24396 | char *kwnames[] = { |
24397 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
24398 | }; | |
24399 | ||
994141e6 | 24400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24401 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24402 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24403 | { | |
24404 | arg2 = (long)(SWIG_As_long(obj1)); | |
24405 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24406 | } | |
994141e6 | 24407 | if (obj2) { |
093d3ff1 RD |
24408 | { |
24409 | arg3 = (int)(SWIG_As_int(obj2)); | |
24410 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24411 | } | |
994141e6 | 24412 | } |
d14a1e28 RD |
24413 | { |
24414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24415 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
24416 | ||
24417 | wxPyEndAllowThreads(__tstate); | |
24418 | if (PyErr_Occurred()) SWIG_fail; | |
24419 | } | |
24420 | { | |
412d302d | 24421 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24422 | } |
24423 | return resultobj; | |
24424 | fail: | |
24425 | return NULL; | |
24426 | } | |
24427 | ||
24428 | ||
c32bde28 | 24429 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24430 | PyObject *resultobj; |
24431 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24432 | wxListItem *arg2 = 0 ; | |
24433 | bool result; | |
24434 | PyObject * obj0 = 0 ; | |
24435 | PyObject * obj1 = 0 ; | |
24436 | char *kwnames[] = { | |
24437 | (char *) "self",(char *) "info", NULL | |
24438 | }; | |
24439 | ||
24440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24443 | { | |
24444 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24445 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24446 | if (arg2 == NULL) { | |
24447 | SWIG_null_ref("wxListItem"); | |
24448 | } | |
24449 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24450 | } |
24451 | { | |
24452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24453 | result = (bool)(arg1)->SetItem(*arg2); | |
24454 | ||
24455 | wxPyEndAllowThreads(__tstate); | |
24456 | if (PyErr_Occurred()) SWIG_fail; | |
24457 | } | |
4f89f6a3 RD |
24458 | { |
24459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24460 | } | |
d14a1e28 RD |
24461 | return resultobj; |
24462 | fail: | |
24463 | return NULL; | |
24464 | } | |
24465 | ||
24466 | ||
c32bde28 | 24467 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24468 | PyObject *resultobj; |
24469 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24470 | long arg2 ; | |
24471 | int arg3 ; | |
24472 | wxString *arg4 = 0 ; | |
24473 | int arg5 = (int) -1 ; | |
24474 | long result; | |
ae8162c8 | 24475 | bool temp4 = false ; |
d14a1e28 | 24476 | PyObject * obj0 = 0 ; |
994141e6 RD |
24477 | PyObject * obj1 = 0 ; |
24478 | PyObject * obj2 = 0 ; | |
d14a1e28 | 24479 | PyObject * obj3 = 0 ; |
994141e6 | 24480 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24481 | char *kwnames[] = { |
24482 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
24483 | }; | |
24484 | ||
994141e6 | 24485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
24486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24488 | { | |
24489 | arg2 = (long)(SWIG_As_long(obj1)); | |
24490 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24491 | } | |
24492 | { | |
24493 | arg3 = (int)(SWIG_As_int(obj2)); | |
24494 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24495 | } | |
d14a1e28 RD |
24496 | { |
24497 | arg4 = wxString_in_helper(obj3); | |
24498 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 24499 | temp4 = true; |
d14a1e28 | 24500 | } |
994141e6 | 24501 | if (obj4) { |
093d3ff1 RD |
24502 | { |
24503 | arg5 = (int)(SWIG_As_int(obj4)); | |
24504 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24505 | } | |
994141e6 | 24506 | } |
d14a1e28 RD |
24507 | { |
24508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24509 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
24510 | ||
24511 | wxPyEndAllowThreads(__tstate); | |
24512 | if (PyErr_Occurred()) SWIG_fail; | |
24513 | } | |
093d3ff1 RD |
24514 | { |
24515 | resultobj = SWIG_From_long((long)(result)); | |
24516 | } | |
d14a1e28 RD |
24517 | { |
24518 | if (temp4) | |
24519 | delete arg4; | |
24520 | } | |
24521 | return resultobj; | |
24522 | fail: | |
24523 | { | |
24524 | if (temp4) | |
24525 | delete arg4; | |
24526 | } | |
24527 | return NULL; | |
24528 | } | |
24529 | ||
24530 | ||
c32bde28 | 24531 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24532 | PyObject *resultobj; |
24533 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24534 | long arg2 ; | |
24535 | long arg3 ; | |
24536 | int result; | |
24537 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24538 | PyObject * obj1 = 0 ; |
24539 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24540 | char *kwnames[] = { |
24541 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
24542 | }; | |
24543 | ||
994141e6 | 24544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24547 | { | |
24548 | arg2 = (long)(SWIG_As_long(obj1)); | |
24549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24550 | } | |
24551 | { | |
24552 | arg3 = (long)(SWIG_As_long(obj2)); | |
24553 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24554 | } | |
d14a1e28 RD |
24555 | { |
24556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24557 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
24558 | ||
24559 | wxPyEndAllowThreads(__tstate); | |
24560 | if (PyErr_Occurred()) SWIG_fail; | |
24561 | } | |
093d3ff1 RD |
24562 | { |
24563 | resultobj = SWIG_From_int((int)(result)); | |
24564 | } | |
d14a1e28 RD |
24565 | return resultobj; |
24566 | fail: | |
24567 | return NULL; | |
24568 | } | |
24569 | ||
24570 | ||
c32bde28 | 24571 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24572 | PyObject *resultobj; |
24573 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24574 | long arg2 ; | |
24575 | long arg3 ; | |
24576 | long arg4 ; | |
24577 | bool result; | |
24578 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24579 | PyObject * obj1 = 0 ; |
24580 | PyObject * obj2 = 0 ; | |
24581 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24582 | char *kwnames[] = { |
24583 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
24584 | }; | |
24585 | ||
994141e6 | 24586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24589 | { | |
24590 | arg2 = (long)(SWIG_As_long(obj1)); | |
24591 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24592 | } | |
24593 | { | |
24594 | arg3 = (long)(SWIG_As_long(obj2)); | |
24595 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24596 | } | |
24597 | { | |
24598 | arg4 = (long)(SWIG_As_long(obj3)); | |
24599 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24600 | } | |
d14a1e28 RD |
24601 | { |
24602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24603 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
24604 | ||
24605 | wxPyEndAllowThreads(__tstate); | |
24606 | if (PyErr_Occurred()) SWIG_fail; | |
24607 | } | |
4f89f6a3 RD |
24608 | { |
24609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24610 | } | |
d14a1e28 RD |
24611 | return resultobj; |
24612 | fail: | |
24613 | return NULL; | |
24614 | } | |
24615 | ||
24616 | ||
c32bde28 | 24617 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24618 | PyObject *resultobj; |
24619 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24620 | long arg2 ; | |
24621 | int arg3 ; | |
1fc3b23a | 24622 | int arg4 = (int) -1 ; |
d14a1e28 RD |
24623 | bool result; |
24624 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24625 | PyObject * obj1 = 0 ; |
24626 | PyObject * obj2 = 0 ; | |
24627 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24628 | char *kwnames[] = { |
24629 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
24630 | }; | |
24631 | ||
1fc3b23a | 24632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24635 | { | |
24636 | arg2 = (long)(SWIG_As_long(obj1)); | |
24637 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24638 | } | |
24639 | { | |
24640 | arg3 = (int)(SWIG_As_int(obj2)); | |
24641 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24642 | } | |
1fc3b23a | 24643 | if (obj3) { |
093d3ff1 RD |
24644 | { |
24645 | arg4 = (int)(SWIG_As_int(obj3)); | |
24646 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24647 | } | |
1fc3b23a | 24648 | } |
d14a1e28 RD |
24649 | { |
24650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24651 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
24652 | ||
24653 | wxPyEndAllowThreads(__tstate); | |
24654 | if (PyErr_Occurred()) SWIG_fail; | |
24655 | } | |
4f89f6a3 RD |
24656 | { |
24657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24658 | } | |
d14a1e28 RD |
24659 | return resultobj; |
24660 | fail: | |
24661 | return NULL; | |
24662 | } | |
24663 | ||
24664 | ||
c32bde28 | 24665 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24666 | PyObject *resultobj; |
24667 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24668 | long arg2 ; | |
24669 | wxString result; | |
24670 | PyObject * obj0 = 0 ; | |
994141e6 | 24671 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24672 | char *kwnames[] = { |
24673 | (char *) "self",(char *) "item", NULL | |
24674 | }; | |
24675 | ||
994141e6 | 24676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24679 | { | |
24680 | arg2 = (long)(SWIG_As_long(obj1)); | |
24681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24682 | } | |
d14a1e28 RD |
24683 | { |
24684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24685 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
24686 | ||
24687 | wxPyEndAllowThreads(__tstate); | |
24688 | if (PyErr_Occurred()) SWIG_fail; | |
24689 | } | |
24690 | { | |
24691 | #if wxUSE_UNICODE | |
24692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24693 | #else | |
24694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24695 | #endif | |
24696 | } | |
24697 | return resultobj; | |
24698 | fail: | |
24699 | return NULL; | |
24700 | } | |
24701 | ||
24702 | ||
c32bde28 | 24703 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24704 | PyObject *resultobj; |
24705 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24706 | long arg2 ; | |
24707 | wxString *arg3 = 0 ; | |
ae8162c8 | 24708 | bool temp3 = false ; |
d14a1e28 | 24709 | PyObject * obj0 = 0 ; |
994141e6 | 24710 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24711 | PyObject * obj2 = 0 ; |
24712 | char *kwnames[] = { | |
24713 | (char *) "self",(char *) "item",(char *) "str", NULL | |
24714 | }; | |
24715 | ||
994141e6 | 24716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24719 | { | |
24720 | arg2 = (long)(SWIG_As_long(obj1)); | |
24721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24722 | } | |
d14a1e28 RD |
24723 | { |
24724 | arg3 = wxString_in_helper(obj2); | |
24725 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24726 | temp3 = true; |
d14a1e28 RD |
24727 | } |
24728 | { | |
24729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24730 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
24731 | ||
24732 | wxPyEndAllowThreads(__tstate); | |
24733 | if (PyErr_Occurred()) SWIG_fail; | |
24734 | } | |
24735 | Py_INCREF(Py_None); resultobj = Py_None; | |
24736 | { | |
24737 | if (temp3) | |
24738 | delete arg3; | |
24739 | } | |
24740 | return resultobj; | |
24741 | fail: | |
24742 | { | |
24743 | if (temp3) | |
24744 | delete arg3; | |
24745 | } | |
24746 | return NULL; | |
24747 | } | |
24748 | ||
24749 | ||
c32bde28 | 24750 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24751 | PyObject *resultobj; |
24752 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24753 | long arg2 ; | |
24754 | long result; | |
24755 | PyObject * obj0 = 0 ; | |
994141e6 | 24756 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24757 | char *kwnames[] = { |
24758 | (char *) "self",(char *) "item", NULL | |
24759 | }; | |
24760 | ||
994141e6 | 24761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24764 | { | |
24765 | arg2 = (long)(SWIG_As_long(obj1)); | |
24766 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24767 | } | |
d14a1e28 RD |
24768 | { |
24769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24770 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
24771 | ||
24772 | wxPyEndAllowThreads(__tstate); | |
24773 | if (PyErr_Occurred()) SWIG_fail; | |
24774 | } | |
093d3ff1 RD |
24775 | { |
24776 | resultobj = SWIG_From_long((long)(result)); | |
24777 | } | |
d14a1e28 RD |
24778 | return resultobj; |
24779 | fail: | |
24780 | return NULL; | |
24781 | } | |
24782 | ||
24783 | ||
c32bde28 | 24784 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24785 | PyObject *resultobj; |
24786 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24787 | long arg2 ; | |
24788 | long arg3 ; | |
24789 | bool result; | |
24790 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24791 | PyObject * obj1 = 0 ; |
24792 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24793 | char *kwnames[] = { |
24794 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24795 | }; | |
24796 | ||
994141e6 | 24797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24800 | { | |
24801 | arg2 = (long)(SWIG_As_long(obj1)); | |
24802 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24803 | } | |
24804 | { | |
24805 | arg3 = (long)(SWIG_As_long(obj2)); | |
24806 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24807 | } | |
d14a1e28 RD |
24808 | { |
24809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24810 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
24811 | ||
24812 | wxPyEndAllowThreads(__tstate); | |
24813 | if (PyErr_Occurred()) SWIG_fail; | |
24814 | } | |
4f89f6a3 RD |
24815 | { |
24816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24817 | } | |
d14a1e28 RD |
24818 | return resultobj; |
24819 | fail: | |
24820 | return NULL; | |
24821 | } | |
24822 | ||
24823 | ||
c32bde28 | 24824 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24825 | PyObject *resultobj; |
24826 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24827 | long arg2 ; | |
24828 | wxPoint result; | |
24829 | PyObject * obj0 = 0 ; | |
994141e6 | 24830 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24831 | char *kwnames[] = { |
24832 | (char *) "self",(char *) "item", NULL | |
24833 | }; | |
24834 | ||
994141e6 | 24835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24838 | { | |
24839 | arg2 = (long)(SWIG_As_long(obj1)); | |
24840 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24841 | } | |
d14a1e28 RD |
24842 | { |
24843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24844 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
24845 | ||
24846 | wxPyEndAllowThreads(__tstate); | |
24847 | if (PyErr_Occurred()) SWIG_fail; | |
24848 | } | |
24849 | { | |
24850 | wxPoint * resultptr; | |
093d3ff1 | 24851 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 24852 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24853 | } |
24854 | return resultobj; | |
24855 | fail: | |
24856 | return NULL; | |
24857 | } | |
24858 | ||
24859 | ||
c32bde28 | 24860 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24861 | PyObject *resultobj; |
24862 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24863 | long arg2 ; | |
24864 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
24865 | wxRect result; | |
24866 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24867 | PyObject * obj1 = 0 ; |
24868 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24869 | char *kwnames[] = { |
24870 | (char *) "self",(char *) "item",(char *) "code", NULL | |
24871 | }; | |
24872 | ||
994141e6 | 24873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24874 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24876 | { | |
24877 | arg2 = (long)(SWIG_As_long(obj1)); | |
24878 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24879 | } | |
994141e6 | 24880 | if (obj2) { |
093d3ff1 RD |
24881 | { |
24882 | arg3 = (int)(SWIG_As_int(obj2)); | |
24883 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24884 | } | |
994141e6 | 24885 | } |
d14a1e28 RD |
24886 | { |
24887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24888 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
24889 | ||
24890 | wxPyEndAllowThreads(__tstate); | |
24891 | if (PyErr_Occurred()) SWIG_fail; | |
24892 | } | |
24893 | { | |
24894 | wxRect * resultptr; | |
093d3ff1 | 24895 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 24896 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
24897 | } |
24898 | return resultobj; | |
24899 | fail: | |
24900 | return NULL; | |
24901 | } | |
24902 | ||
24903 | ||
c32bde28 | 24904 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24905 | PyObject *resultobj; |
24906 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24907 | long arg2 ; | |
24908 | wxPoint *arg3 = 0 ; | |
24909 | bool result; | |
24910 | wxPoint temp3 ; | |
24911 | PyObject * obj0 = 0 ; | |
994141e6 | 24912 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24913 | PyObject * obj2 = 0 ; |
24914 | char *kwnames[] = { | |
24915 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
24916 | }; | |
24917 | ||
994141e6 | 24918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24921 | { | |
24922 | arg2 = (long)(SWIG_As_long(obj1)); | |
24923 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24924 | } | |
d14a1e28 RD |
24925 | { |
24926 | arg3 = &temp3; | |
24927 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24928 | } | |
24929 | { | |
24930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24931 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
24932 | ||
24933 | wxPyEndAllowThreads(__tstate); | |
24934 | if (PyErr_Occurred()) SWIG_fail; | |
24935 | } | |
4f89f6a3 RD |
24936 | { |
24937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24938 | } | |
d14a1e28 RD |
24939 | return resultobj; |
24940 | fail: | |
24941 | return NULL; | |
24942 | } | |
24943 | ||
24944 | ||
c32bde28 | 24945 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24946 | PyObject *resultobj; |
24947 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24948 | int result; | |
24949 | PyObject * obj0 = 0 ; | |
24950 | char *kwnames[] = { | |
24951 | (char *) "self", NULL | |
24952 | }; | |
24953 | ||
24954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24957 | { |
24958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24959 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
24960 | ||
24961 | wxPyEndAllowThreads(__tstate); | |
24962 | if (PyErr_Occurred()) SWIG_fail; | |
24963 | } | |
093d3ff1 RD |
24964 | { |
24965 | resultobj = SWIG_From_int((int)(result)); | |
24966 | } | |
d14a1e28 RD |
24967 | return resultobj; |
24968 | fail: | |
24969 | return NULL; | |
24970 | } | |
24971 | ||
24972 | ||
c32bde28 | 24973 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24974 | PyObject *resultobj; |
24975 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24976 | int result; | |
24977 | PyObject * obj0 = 0 ; | |
24978 | char *kwnames[] = { | |
24979 | (char *) "self", NULL | |
24980 | }; | |
24981 | ||
24982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24985 | { |
24986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24987 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
24988 | ||
24989 | wxPyEndAllowThreads(__tstate); | |
24990 | if (PyErr_Occurred()) SWIG_fail; | |
24991 | } | |
093d3ff1 RD |
24992 | { |
24993 | resultobj = SWIG_From_int((int)(result)); | |
24994 | } | |
d14a1e28 RD |
24995 | return resultobj; |
24996 | fail: | |
24997 | return NULL; | |
24998 | } | |
24999 | ||
25000 | ||
c32bde28 | 25001 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25002 | PyObject *resultobj; |
25003 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25004 | wxSize result; | |
25005 | PyObject * obj0 = 0 ; | |
25006 | char *kwnames[] = { | |
25007 | (char *) "self", NULL | |
25008 | }; | |
25009 | ||
25010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25013 | { |
25014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25015 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
25016 | ||
25017 | wxPyEndAllowThreads(__tstate); | |
25018 | if (PyErr_Occurred()) SWIG_fail; | |
25019 | } | |
25020 | { | |
25021 | wxSize * resultptr; | |
093d3ff1 | 25022 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 25023 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25024 | } |
25025 | return resultobj; | |
25026 | fail: | |
25027 | return NULL; | |
25028 | } | |
25029 | ||
25030 | ||
c32bde28 | 25031 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25032 | PyObject *resultobj; |
25033 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25034 | int arg2 ; | |
ae8162c8 | 25035 | bool arg3 = (bool) false ; |
d14a1e28 | 25036 | PyObject * obj0 = 0 ; |
994141e6 | 25037 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25038 | PyObject * obj2 = 0 ; |
25039 | char *kwnames[] = { | |
25040 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
25041 | }; | |
25042 | ||
994141e6 | 25043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25044 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25045 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25046 | { | |
25047 | arg2 = (int)(SWIG_As_int(obj1)); | |
25048 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25049 | } | |
d14a1e28 | 25050 | if (obj2) { |
093d3ff1 RD |
25051 | { |
25052 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
25053 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25054 | } | |
d14a1e28 RD |
25055 | } |
25056 | { | |
25057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25058 | (arg1)->SetItemSpacing(arg2,arg3); | |
25059 | ||
25060 | wxPyEndAllowThreads(__tstate); | |
25061 | if (PyErr_Occurred()) SWIG_fail; | |
25062 | } | |
25063 | Py_INCREF(Py_None); resultobj = Py_None; | |
25064 | return resultobj; | |
25065 | fail: | |
25066 | return NULL; | |
25067 | } | |
25068 | ||
25069 | ||
c32bde28 | 25070 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25071 | PyObject *resultobj; |
25072 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25073 | int result; | |
25074 | PyObject * obj0 = 0 ; | |
25075 | char *kwnames[] = { | |
25076 | (char *) "self", NULL | |
25077 | }; | |
25078 | ||
25079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25082 | { |
25083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25084 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
25085 | ||
25086 | wxPyEndAllowThreads(__tstate); | |
25087 | if (PyErr_Occurred()) SWIG_fail; | |
25088 | } | |
093d3ff1 RD |
25089 | { |
25090 | resultobj = SWIG_From_int((int)(result)); | |
25091 | } | |
d14a1e28 RD |
25092 | return resultobj; |
25093 | fail: | |
25094 | return NULL; | |
25095 | } | |
25096 | ||
25097 | ||
c32bde28 | 25098 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25099 | PyObject *resultobj; |
25100 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25101 | wxColour result; | |
25102 | PyObject * obj0 = 0 ; | |
25103 | char *kwnames[] = { | |
25104 | (char *) "self", NULL | |
25105 | }; | |
25106 | ||
25107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25110 | { |
25111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25112 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
25113 | ||
25114 | wxPyEndAllowThreads(__tstate); | |
25115 | if (PyErr_Occurred()) SWIG_fail; | |
25116 | } | |
25117 | { | |
25118 | wxColour * resultptr; | |
093d3ff1 | 25119 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 25120 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25121 | } |
25122 | return resultobj; | |
25123 | fail: | |
25124 | return NULL; | |
25125 | } | |
25126 | ||
25127 | ||
c32bde28 | 25128 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25129 | PyObject *resultobj; |
25130 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25131 | wxColour *arg2 = 0 ; | |
25132 | wxColour temp2 ; | |
25133 | PyObject * obj0 = 0 ; | |
25134 | PyObject * obj1 = 0 ; | |
25135 | char *kwnames[] = { | |
25136 | (char *) "self",(char *) "col", NULL | |
25137 | }; | |
25138 | ||
25139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25142 | { |
25143 | arg2 = &temp2; | |
25144 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25145 | } | |
25146 | { | |
25147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25148 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
25149 | ||
25150 | wxPyEndAllowThreads(__tstate); | |
25151 | if (PyErr_Occurred()) SWIG_fail; | |
25152 | } | |
25153 | Py_INCREF(Py_None); resultobj = Py_None; | |
25154 | return resultobj; | |
25155 | fail: | |
25156 | return NULL; | |
25157 | } | |
25158 | ||
25159 | ||
c32bde28 | 25160 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25161 | PyObject *resultobj; |
25162 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25163 | long result; | |
25164 | PyObject * obj0 = 0 ; | |
25165 | char *kwnames[] = { | |
25166 | (char *) "self", NULL | |
25167 | }; | |
25168 | ||
25169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25172 | { |
25173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25174 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
25175 | ||
25176 | wxPyEndAllowThreads(__tstate); | |
25177 | if (PyErr_Occurred()) SWIG_fail; | |
25178 | } | |
093d3ff1 RD |
25179 | { |
25180 | resultobj = SWIG_From_long((long)(result)); | |
25181 | } | |
d14a1e28 RD |
25182 | return resultobj; |
25183 | fail: | |
25184 | return NULL; | |
25185 | } | |
25186 | ||
25187 | ||
c32bde28 | 25188 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25189 | PyObject *resultobj; |
25190 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25191 | long arg2 ; | |
ae8162c8 | 25192 | bool arg3 = (bool) true ; |
d14a1e28 | 25193 | PyObject * obj0 = 0 ; |
994141e6 | 25194 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25195 | PyObject * obj2 = 0 ; |
25196 | char *kwnames[] = { | |
25197 | (char *) "self",(char *) "style",(char *) "add", NULL | |
25198 | }; | |
25199 | ||
994141e6 | 25200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25203 | { | |
25204 | arg2 = (long)(SWIG_As_long(obj1)); | |
25205 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25206 | } | |
d14a1e28 | 25207 | if (obj2) { |
093d3ff1 RD |
25208 | { |
25209 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
25210 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25211 | } | |
d14a1e28 RD |
25212 | } |
25213 | { | |
25214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25215 | (arg1)->SetSingleStyle(arg2,arg3); | |
25216 | ||
25217 | wxPyEndAllowThreads(__tstate); | |
25218 | if (PyErr_Occurred()) SWIG_fail; | |
25219 | } | |
25220 | Py_INCREF(Py_None); resultobj = Py_None; | |
25221 | return resultobj; | |
25222 | fail: | |
25223 | return NULL; | |
25224 | } | |
25225 | ||
25226 | ||
c32bde28 | 25227 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25228 | PyObject *resultobj; |
25229 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25230 | long arg2 ; | |
25231 | PyObject * obj0 = 0 ; | |
994141e6 | 25232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25233 | char *kwnames[] = { |
25234 | (char *) "self",(char *) "style", NULL | |
25235 | }; | |
25236 | ||
994141e6 | 25237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25240 | { | |
25241 | arg2 = (long)(SWIG_As_long(obj1)); | |
25242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25243 | } | |
d14a1e28 RD |
25244 | { |
25245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25246 | (arg1)->SetWindowStyleFlag(arg2); | |
25247 | ||
25248 | wxPyEndAllowThreads(__tstate); | |
25249 | if (PyErr_Occurred()) SWIG_fail; | |
25250 | } | |
25251 | Py_INCREF(Py_None); resultobj = Py_None; | |
25252 | return resultobj; | |
25253 | fail: | |
25254 | return NULL; | |
25255 | } | |
25256 | ||
25257 | ||
c32bde28 | 25258 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25259 | PyObject *resultobj; |
25260 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25261 | long arg2 ; | |
25262 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
25263 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
25264 | long result; | |
25265 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25266 | PyObject * obj1 = 0 ; |
25267 | PyObject * obj2 = 0 ; | |
25268 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25269 | char *kwnames[] = { |
25270 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
25271 | }; | |
25272 | ||
994141e6 | 25273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25276 | { | |
25277 | arg2 = (long)(SWIG_As_long(obj1)); | |
25278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25279 | } | |
994141e6 | 25280 | if (obj2) { |
093d3ff1 RD |
25281 | { |
25282 | arg3 = (int)(SWIG_As_int(obj2)); | |
25283 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25284 | } | |
994141e6 RD |
25285 | } |
25286 | if (obj3) { | |
093d3ff1 RD |
25287 | { |
25288 | arg4 = (int)(SWIG_As_int(obj3)); | |
25289 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25290 | } | |
994141e6 | 25291 | } |
d14a1e28 RD |
25292 | { |
25293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25294 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
25295 | ||
25296 | wxPyEndAllowThreads(__tstate); | |
25297 | if (PyErr_Occurred()) SWIG_fail; | |
25298 | } | |
093d3ff1 RD |
25299 | { |
25300 | resultobj = SWIG_From_long((long)(result)); | |
25301 | } | |
d14a1e28 RD |
25302 | return resultobj; |
25303 | fail: | |
25304 | return NULL; | |
25305 | } | |
25306 | ||
25307 | ||
c32bde28 | 25308 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25309 | PyObject *resultobj; |
25310 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25311 | int arg2 ; | |
25312 | wxImageList *result; | |
25313 | PyObject * obj0 = 0 ; | |
994141e6 | 25314 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25315 | char *kwnames[] = { |
25316 | (char *) "self",(char *) "which", NULL | |
25317 | }; | |
25318 | ||
994141e6 | 25319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25322 | { | |
25323 | arg2 = (int)(SWIG_As_int(obj1)); | |
25324 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25325 | } | |
d14a1e28 RD |
25326 | { |
25327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25328 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
25329 | ||
25330 | wxPyEndAllowThreads(__tstate); | |
25331 | if (PyErr_Occurred()) SWIG_fail; | |
25332 | } | |
25333 | { | |
412d302d | 25334 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25335 | } |
25336 | return resultobj; | |
25337 | fail: | |
25338 | return NULL; | |
25339 | } | |
25340 | ||
25341 | ||
c32bde28 | 25342 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25343 | PyObject *resultobj; |
25344 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25345 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25346 | int arg3 ; | |
25347 | PyObject * obj0 = 0 ; | |
25348 | PyObject * obj1 = 0 ; | |
994141e6 | 25349 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25350 | char *kwnames[] = { |
25351 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25352 | }; | |
25353 | ||
994141e6 | 25354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25357 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
25358 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25359 | { | |
25360 | arg3 = (int)(SWIG_As_int(obj2)); | |
25361 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25362 | } | |
d14a1e28 RD |
25363 | { |
25364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25365 | (arg1)->SetImageList(arg2,arg3); | |
25366 | ||
25367 | wxPyEndAllowThreads(__tstate); | |
25368 | if (PyErr_Occurred()) SWIG_fail; | |
25369 | } | |
25370 | Py_INCREF(Py_None); resultobj = Py_None; | |
25371 | return resultobj; | |
25372 | fail: | |
25373 | return NULL; | |
25374 | } | |
25375 | ||
25376 | ||
c32bde28 | 25377 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25378 | PyObject *resultobj; |
25379 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25380 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25381 | int arg3 ; | |
25382 | PyObject * obj0 = 0 ; | |
25383 | PyObject * obj1 = 0 ; | |
994141e6 | 25384 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25385 | char *kwnames[] = { |
25386 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25387 | }; | |
25388 | ||
994141e6 | 25389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25392 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
25393 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25394 | { | |
25395 | arg3 = (int)(SWIG_As_int(obj2)); | |
25396 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25397 | } | |
d14a1e28 RD |
25398 | { |
25399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25400 | (arg1)->AssignImageList(arg2,arg3); | |
25401 | ||
25402 | wxPyEndAllowThreads(__tstate); | |
25403 | if (PyErr_Occurred()) SWIG_fail; | |
25404 | } | |
25405 | Py_INCREF(Py_None); resultobj = Py_None; | |
25406 | return resultobj; | |
25407 | fail: | |
25408 | return NULL; | |
25409 | } | |
25410 | ||
25411 | ||
c32bde28 | 25412 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
25413 | PyObject *resultobj; |
25414 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25415 | bool result; | |
25416 | PyObject * obj0 = 0 ; | |
25417 | char *kwnames[] = { | |
25418 | (char *) "self", NULL | |
25419 | }; | |
25420 | ||
25421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25422 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25423 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
25424 | { |
25425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25426 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
25427 | ||
25428 | wxPyEndAllowThreads(__tstate); | |
25429 | if (PyErr_Occurred()) SWIG_fail; | |
25430 | } | |
4f89f6a3 RD |
25431 | { |
25432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25433 | } | |
4276dc52 RD |
25434 | return resultobj; |
25435 | fail: | |
25436 | return NULL; | |
25437 | } | |
25438 | ||
25439 | ||
c32bde28 | 25440 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25441 | PyObject *resultobj; |
25442 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25443 | bool result; | |
25444 | PyObject * obj0 = 0 ; | |
25445 | char *kwnames[] = { | |
25446 | (char *) "self", NULL | |
25447 | }; | |
25448 | ||
25449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25452 | { |
25453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25454 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
25455 | ||
25456 | wxPyEndAllowThreads(__tstate); | |
25457 | if (PyErr_Occurred()) SWIG_fail; | |
25458 | } | |
4f89f6a3 RD |
25459 | { |
25460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25461 | } | |
d14a1e28 RD |
25462 | return resultobj; |
25463 | fail: | |
25464 | return NULL; | |
25465 | } | |
25466 | ||
25467 | ||
c32bde28 | 25468 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25469 | PyObject *resultobj; |
25470 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25471 | long arg2 ; | |
25472 | PyObject * obj0 = 0 ; | |
994141e6 | 25473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25474 | char *kwnames[] = { |
25475 | (char *) "self",(char *) "item", NULL | |
25476 | }; | |
25477 | ||
994141e6 | 25478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25481 | { | |
25482 | arg2 = (long)(SWIG_As_long(obj1)); | |
25483 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25484 | } | |
d14a1e28 RD |
25485 | { |
25486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25487 | (arg1)->RefreshItem(arg2); | |
25488 | ||
25489 | wxPyEndAllowThreads(__tstate); | |
25490 | if (PyErr_Occurred()) SWIG_fail; | |
25491 | } | |
25492 | Py_INCREF(Py_None); resultobj = Py_None; | |
25493 | return resultobj; | |
25494 | fail: | |
25495 | return NULL; | |
25496 | } | |
25497 | ||
25498 | ||
c32bde28 | 25499 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25500 | PyObject *resultobj; |
25501 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25502 | long arg2 ; | |
25503 | long arg3 ; | |
25504 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25505 | PyObject * obj1 = 0 ; |
25506 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25507 | char *kwnames[] = { |
25508 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
25509 | }; | |
25510 | ||
994141e6 | 25511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25514 | { | |
25515 | arg2 = (long)(SWIG_As_long(obj1)); | |
25516 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25517 | } | |
25518 | { | |
25519 | arg3 = (long)(SWIG_As_long(obj2)); | |
25520 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25521 | } | |
d14a1e28 RD |
25522 | { |
25523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25524 | (arg1)->RefreshItems(arg2,arg3); | |
25525 | ||
25526 | wxPyEndAllowThreads(__tstate); | |
25527 | if (PyErr_Occurred()) SWIG_fail; | |
25528 | } | |
25529 | Py_INCREF(Py_None); resultobj = Py_None; | |
25530 | return resultobj; | |
25531 | fail: | |
25532 | return NULL; | |
25533 | } | |
25534 | ||
25535 | ||
c32bde28 | 25536 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25537 | PyObject *resultobj; |
25538 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25539 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
25540 | bool result; | |
25541 | PyObject * obj0 = 0 ; | |
994141e6 | 25542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25543 | char *kwnames[] = { |
25544 | (char *) "self",(char *) "flag", NULL | |
25545 | }; | |
25546 | ||
994141e6 | 25547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 25550 | if (obj1) { |
093d3ff1 RD |
25551 | { |
25552 | arg2 = (int)(SWIG_As_int(obj1)); | |
25553 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25554 | } | |
994141e6 | 25555 | } |
d14a1e28 RD |
25556 | { |
25557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25558 | result = (bool)(arg1)->Arrange(arg2); | |
25559 | ||
25560 | wxPyEndAllowThreads(__tstate); | |
25561 | if (PyErr_Occurred()) SWIG_fail; | |
25562 | } | |
4f89f6a3 RD |
25563 | { |
25564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25565 | } | |
d14a1e28 RD |
25566 | return resultobj; |
25567 | fail: | |
25568 | return NULL; | |
25569 | } | |
25570 | ||
25571 | ||
c32bde28 | 25572 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25573 | PyObject *resultobj; |
25574 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25575 | long arg2 ; | |
25576 | bool result; | |
25577 | PyObject * obj0 = 0 ; | |
994141e6 | 25578 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25579 | char *kwnames[] = { |
25580 | (char *) "self",(char *) "item", NULL | |
25581 | }; | |
25582 | ||
994141e6 | 25583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25584 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25585 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25586 | { | |
25587 | arg2 = (long)(SWIG_As_long(obj1)); | |
25588 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25589 | } | |
d14a1e28 RD |
25590 | { |
25591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25592 | result = (bool)(arg1)->DeleteItem(arg2); | |
25593 | ||
25594 | wxPyEndAllowThreads(__tstate); | |
25595 | if (PyErr_Occurred()) SWIG_fail; | |
25596 | } | |
4f89f6a3 RD |
25597 | { |
25598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25599 | } | |
d14a1e28 RD |
25600 | return resultobj; |
25601 | fail: | |
25602 | return NULL; | |
25603 | } | |
25604 | ||
25605 | ||
c32bde28 | 25606 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25607 | PyObject *resultobj; |
25608 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25609 | bool result; | |
25610 | PyObject * obj0 = 0 ; | |
25611 | char *kwnames[] = { | |
25612 | (char *) "self", NULL | |
25613 | }; | |
25614 | ||
25615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25618 | { |
25619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25620 | result = (bool)(arg1)->DeleteAllItems(); | |
25621 | ||
25622 | wxPyEndAllowThreads(__tstate); | |
25623 | if (PyErr_Occurred()) SWIG_fail; | |
25624 | } | |
4f89f6a3 RD |
25625 | { |
25626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25627 | } | |
d14a1e28 RD |
25628 | return resultobj; |
25629 | fail: | |
25630 | return NULL; | |
25631 | } | |
25632 | ||
25633 | ||
c32bde28 | 25634 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25635 | PyObject *resultobj; |
25636 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25637 | int arg2 ; | |
25638 | bool result; | |
25639 | PyObject * obj0 = 0 ; | |
994141e6 | 25640 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25641 | char *kwnames[] = { |
25642 | (char *) "self",(char *) "col", NULL | |
25643 | }; | |
25644 | ||
994141e6 | 25645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25648 | { | |
25649 | arg2 = (int)(SWIG_As_int(obj1)); | |
25650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25651 | } | |
d14a1e28 RD |
25652 | { |
25653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25654 | result = (bool)(arg1)->DeleteColumn(arg2); | |
25655 | ||
25656 | wxPyEndAllowThreads(__tstate); | |
25657 | if (PyErr_Occurred()) SWIG_fail; | |
25658 | } | |
4f89f6a3 RD |
25659 | { |
25660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25661 | } | |
d14a1e28 RD |
25662 | return resultobj; |
25663 | fail: | |
25664 | return NULL; | |
25665 | } | |
25666 | ||
25667 | ||
c32bde28 | 25668 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25669 | PyObject *resultobj; |
25670 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25671 | bool result; | |
25672 | PyObject * obj0 = 0 ; | |
25673 | char *kwnames[] = { | |
25674 | (char *) "self", NULL | |
25675 | }; | |
25676 | ||
25677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25680 | { |
25681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25682 | result = (bool)(arg1)->DeleteAllColumns(); | |
25683 | ||
25684 | wxPyEndAllowThreads(__tstate); | |
25685 | if (PyErr_Occurred()) SWIG_fail; | |
25686 | } | |
4f89f6a3 RD |
25687 | { |
25688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25689 | } | |
d14a1e28 RD |
25690 | return resultobj; |
25691 | fail: | |
25692 | return NULL; | |
25693 | } | |
25694 | ||
25695 | ||
c32bde28 | 25696 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25697 | PyObject *resultobj; |
25698 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25699 | PyObject * obj0 = 0 ; | |
25700 | char *kwnames[] = { | |
25701 | (char *) "self", NULL | |
25702 | }; | |
25703 | ||
25704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25705 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25706 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25707 | { |
25708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25709 | (arg1)->ClearAll(); | |
25710 | ||
25711 | wxPyEndAllowThreads(__tstate); | |
25712 | if (PyErr_Occurred()) SWIG_fail; | |
25713 | } | |
25714 | Py_INCREF(Py_None); resultobj = Py_None; | |
25715 | return resultobj; | |
25716 | fail: | |
25717 | return NULL; | |
25718 | } | |
25719 | ||
25720 | ||
c32bde28 | 25721 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25722 | PyObject *resultobj; |
25723 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25724 | long arg2 ; | |
25725 | PyObject * obj0 = 0 ; | |
994141e6 | 25726 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25727 | char *kwnames[] = { |
25728 | (char *) "self",(char *) "item", NULL | |
25729 | }; | |
25730 | ||
994141e6 | 25731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25734 | { | |
25735 | arg2 = (long)(SWIG_As_long(obj1)); | |
25736 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25737 | } | |
d14a1e28 RD |
25738 | { |
25739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25740 | (arg1)->EditLabel(arg2); | |
25741 | ||
25742 | wxPyEndAllowThreads(__tstate); | |
25743 | if (PyErr_Occurred()) SWIG_fail; | |
25744 | } | |
25745 | Py_INCREF(Py_None); resultobj = Py_None; | |
25746 | return resultobj; | |
25747 | fail: | |
25748 | return NULL; | |
25749 | } | |
25750 | ||
25751 | ||
c32bde28 | 25752 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25753 | PyObject *resultobj; |
25754 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25755 | long arg2 ; | |
25756 | bool result; | |
25757 | PyObject * obj0 = 0 ; | |
994141e6 | 25758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25759 | char *kwnames[] = { |
25760 | (char *) "self",(char *) "item", NULL | |
25761 | }; | |
25762 | ||
994141e6 | 25763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25766 | { | |
25767 | arg2 = (long)(SWIG_As_long(obj1)); | |
25768 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25769 | } | |
d14a1e28 RD |
25770 | { |
25771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25772 | result = (bool)(arg1)->EnsureVisible(arg2); | |
25773 | ||
25774 | wxPyEndAllowThreads(__tstate); | |
25775 | if (PyErr_Occurred()) SWIG_fail; | |
25776 | } | |
4f89f6a3 RD |
25777 | { |
25778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25779 | } | |
d14a1e28 RD |
25780 | return resultobj; |
25781 | fail: | |
25782 | return NULL; | |
25783 | } | |
25784 | ||
25785 | ||
c32bde28 | 25786 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25787 | PyObject *resultobj; |
25788 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25789 | long arg2 ; | |
25790 | wxString *arg3 = 0 ; | |
ae8162c8 | 25791 | bool arg4 = (bool) false ; |
d14a1e28 | 25792 | long result; |
ae8162c8 | 25793 | bool temp3 = false ; |
d14a1e28 | 25794 | PyObject * obj0 = 0 ; |
994141e6 | 25795 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25796 | PyObject * obj2 = 0 ; |
25797 | PyObject * obj3 = 0 ; | |
25798 | char *kwnames[] = { | |
25799 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
25800 | }; | |
25801 | ||
994141e6 | 25802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25805 | { | |
25806 | arg2 = (long)(SWIG_As_long(obj1)); | |
25807 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25808 | } | |
d14a1e28 RD |
25809 | { |
25810 | arg3 = wxString_in_helper(obj2); | |
25811 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25812 | temp3 = true; |
d14a1e28 RD |
25813 | } |
25814 | if (obj3) { | |
093d3ff1 RD |
25815 | { |
25816 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
25817 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25818 | } | |
d14a1e28 RD |
25819 | } |
25820 | { | |
25821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25822 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
25823 | ||
25824 | wxPyEndAllowThreads(__tstate); | |
25825 | if (PyErr_Occurred()) SWIG_fail; | |
25826 | } | |
093d3ff1 RD |
25827 | { |
25828 | resultobj = SWIG_From_long((long)(result)); | |
25829 | } | |
d14a1e28 RD |
25830 | { |
25831 | if (temp3) | |
25832 | delete arg3; | |
25833 | } | |
25834 | return resultobj; | |
25835 | fail: | |
25836 | { | |
25837 | if (temp3) | |
25838 | delete arg3; | |
25839 | } | |
25840 | return NULL; | |
25841 | } | |
25842 | ||
25843 | ||
c32bde28 | 25844 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25845 | PyObject *resultobj; |
25846 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25847 | long arg2 ; | |
25848 | long arg3 ; | |
25849 | long result; | |
25850 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25851 | PyObject * obj1 = 0 ; |
25852 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25853 | char *kwnames[] = { |
25854 | (char *) "self",(char *) "start",(char *) "data", NULL | |
25855 | }; | |
25856 | ||
994141e6 | 25857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25860 | { | |
25861 | arg2 = (long)(SWIG_As_long(obj1)); | |
25862 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25863 | } | |
25864 | { | |
25865 | arg3 = (long)(SWIG_As_long(obj2)); | |
25866 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25867 | } | |
d14a1e28 RD |
25868 | { |
25869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25870 | result = (long)(arg1)->FindItem(arg2,arg3); | |
25871 | ||
25872 | wxPyEndAllowThreads(__tstate); | |
25873 | if (PyErr_Occurred()) SWIG_fail; | |
25874 | } | |
093d3ff1 RD |
25875 | { |
25876 | resultobj = SWIG_From_long((long)(result)); | |
25877 | } | |
d14a1e28 RD |
25878 | return resultobj; |
25879 | fail: | |
25880 | return NULL; | |
25881 | } | |
25882 | ||
25883 | ||
c32bde28 | 25884 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25885 | PyObject *resultobj; |
25886 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25887 | long arg2 ; | |
25888 | wxPoint *arg3 = 0 ; | |
25889 | int arg4 ; | |
25890 | long result; | |
25891 | wxPoint temp3 ; | |
25892 | PyObject * obj0 = 0 ; | |
994141e6 | 25893 | PyObject * obj1 = 0 ; |
d14a1e28 | 25894 | PyObject * obj2 = 0 ; |
994141e6 | 25895 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25896 | char *kwnames[] = { |
25897 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
25898 | }; | |
25899 | ||
994141e6 | 25900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25901 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25903 | { | |
25904 | arg2 = (long)(SWIG_As_long(obj1)); | |
25905 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25906 | } | |
d14a1e28 RD |
25907 | { |
25908 | arg3 = &temp3; | |
25909 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25910 | } | |
093d3ff1 RD |
25911 | { |
25912 | arg4 = (int)(SWIG_As_int(obj3)); | |
25913 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25914 | } | |
d14a1e28 RD |
25915 | { |
25916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25917 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
25918 | ||
25919 | wxPyEndAllowThreads(__tstate); | |
25920 | if (PyErr_Occurred()) SWIG_fail; | |
25921 | } | |
093d3ff1 RD |
25922 | { |
25923 | resultobj = SWIG_From_long((long)(result)); | |
25924 | } | |
d14a1e28 RD |
25925 | return resultobj; |
25926 | fail: | |
25927 | return NULL; | |
25928 | } | |
25929 | ||
25930 | ||
c32bde28 | 25931 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25932 | PyObject *resultobj; |
25933 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25934 | wxPoint *arg2 = 0 ; | |
25935 | int *arg3 = 0 ; | |
25936 | long result; | |
25937 | wxPoint temp2 ; | |
25938 | int temp3 ; | |
c32bde28 | 25939 | int res3 = 0 ; |
d14a1e28 RD |
25940 | PyObject * obj0 = 0 ; |
25941 | PyObject * obj1 = 0 ; | |
25942 | char *kwnames[] = { | |
25943 | (char *) "self",(char *) "point", NULL | |
25944 | }; | |
25945 | ||
c32bde28 | 25946 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 25947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25948 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25949 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25950 | { |
25951 | arg2 = &temp2; | |
25952 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25953 | } | |
25954 | { | |
25955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25956 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25957 | ||
25958 | wxPyEndAllowThreads(__tstate); | |
25959 | if (PyErr_Occurred()) SWIG_fail; | |
25960 | } | |
093d3ff1 RD |
25961 | { |
25962 | resultobj = SWIG_From_long((long)(result)); | |
25963 | } | |
c32bde28 RD |
25964 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
25965 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
25966 | return resultobj; |
25967 | fail: | |
25968 | return NULL; | |
25969 | } | |
25970 | ||
25971 | ||
c32bde28 | 25972 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25973 | PyObject *resultobj; |
25974 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25975 | wxListItem *arg2 = 0 ; | |
25976 | long result; | |
25977 | PyObject * obj0 = 0 ; | |
25978 | PyObject * obj1 = 0 ; | |
25979 | char *kwnames[] = { | |
25980 | (char *) "self",(char *) "info", NULL | |
25981 | }; | |
25982 | ||
25983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25986 | { | |
25987 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25988 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25989 | if (arg2 == NULL) { | |
25990 | SWIG_null_ref("wxListItem"); | |
25991 | } | |
25992 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25993 | } |
25994 | { | |
25995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25996 | result = (long)(arg1)->InsertItem(*arg2); | |
25997 | ||
25998 | wxPyEndAllowThreads(__tstate); | |
25999 | if (PyErr_Occurred()) SWIG_fail; | |
26000 | } | |
093d3ff1 RD |
26001 | { |
26002 | resultobj = SWIG_From_long((long)(result)); | |
26003 | } | |
d14a1e28 RD |
26004 | return resultobj; |
26005 | fail: | |
26006 | return NULL; | |
26007 | } | |
26008 | ||
26009 | ||
c32bde28 | 26010 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26011 | PyObject *resultobj; |
26012 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26013 | long arg2 ; | |
26014 | wxString *arg3 = 0 ; | |
26015 | long result; | |
ae8162c8 | 26016 | bool temp3 = false ; |
d14a1e28 | 26017 | PyObject * obj0 = 0 ; |
994141e6 | 26018 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26019 | PyObject * obj2 = 0 ; |
26020 | char *kwnames[] = { | |
26021 | (char *) "self",(char *) "index",(char *) "label", NULL | |
26022 | }; | |
26023 | ||
994141e6 | 26024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26027 | { | |
26028 | arg2 = (long)(SWIG_As_long(obj1)); | |
26029 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26030 | } | |
d14a1e28 RD |
26031 | { |
26032 | arg3 = wxString_in_helper(obj2); | |
26033 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26034 | temp3 = true; |
d14a1e28 RD |
26035 | } |
26036 | { | |
26037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26038 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
26039 | ||
26040 | wxPyEndAllowThreads(__tstate); | |
26041 | if (PyErr_Occurred()) SWIG_fail; | |
26042 | } | |
093d3ff1 RD |
26043 | { |
26044 | resultobj = SWIG_From_long((long)(result)); | |
26045 | } | |
d14a1e28 RD |
26046 | { |
26047 | if (temp3) | |
26048 | delete arg3; | |
26049 | } | |
26050 | return resultobj; | |
26051 | fail: | |
26052 | { | |
26053 | if (temp3) | |
26054 | delete arg3; | |
26055 | } | |
26056 | return NULL; | |
26057 | } | |
26058 | ||
26059 | ||
c32bde28 | 26060 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26061 | PyObject *resultobj; |
26062 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26063 | long arg2 ; | |
26064 | int arg3 ; | |
26065 | long result; | |
26066 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26067 | PyObject * obj1 = 0 ; |
26068 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26069 | char *kwnames[] = { |
26070 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
26071 | }; | |
26072 | ||
994141e6 | 26073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26076 | { | |
26077 | arg2 = (long)(SWIG_As_long(obj1)); | |
26078 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26079 | } | |
26080 | { | |
26081 | arg3 = (int)(SWIG_As_int(obj2)); | |
26082 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26083 | } | |
d14a1e28 RD |
26084 | { |
26085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26086 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
26087 | ||
26088 | wxPyEndAllowThreads(__tstate); | |
26089 | if (PyErr_Occurred()) SWIG_fail; | |
26090 | } | |
093d3ff1 RD |
26091 | { |
26092 | resultobj = SWIG_From_long((long)(result)); | |
26093 | } | |
d14a1e28 RD |
26094 | return resultobj; |
26095 | fail: | |
26096 | return NULL; | |
26097 | } | |
26098 | ||
26099 | ||
c32bde28 | 26100 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26101 | PyObject *resultobj; |
26102 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26103 | long arg2 ; | |
26104 | wxString *arg3 = 0 ; | |
26105 | int arg4 ; | |
26106 | long result; | |
ae8162c8 | 26107 | bool temp3 = false ; |
d14a1e28 | 26108 | PyObject * obj0 = 0 ; |
994141e6 | 26109 | PyObject * obj1 = 0 ; |
d14a1e28 | 26110 | PyObject * obj2 = 0 ; |
994141e6 | 26111 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
26112 | char *kwnames[] = { |
26113 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
26114 | }; | |
26115 | ||
994141e6 | 26116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
26117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26119 | { | |
26120 | arg2 = (long)(SWIG_As_long(obj1)); | |
26121 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26122 | } | |
d14a1e28 RD |
26123 | { |
26124 | arg3 = wxString_in_helper(obj2); | |
26125 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26126 | temp3 = true; |
d14a1e28 | 26127 | } |
093d3ff1 RD |
26128 | { |
26129 | arg4 = (int)(SWIG_As_int(obj3)); | |
26130 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26131 | } | |
d14a1e28 RD |
26132 | { |
26133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26134 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
26135 | ||
26136 | wxPyEndAllowThreads(__tstate); | |
26137 | if (PyErr_Occurred()) SWIG_fail; | |
26138 | } | |
093d3ff1 RD |
26139 | { |
26140 | resultobj = SWIG_From_long((long)(result)); | |
26141 | } | |
d14a1e28 RD |
26142 | { |
26143 | if (temp3) | |
26144 | delete arg3; | |
26145 | } | |
26146 | return resultobj; | |
26147 | fail: | |
26148 | { | |
26149 | if (temp3) | |
26150 | delete arg3; | |
26151 | } | |
26152 | return NULL; | |
26153 | } | |
26154 | ||
26155 | ||
c32bde28 | 26156 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26157 | PyObject *resultobj; |
26158 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26159 | long arg2 ; | |
26160 | wxListItem *arg3 = 0 ; | |
26161 | long result; | |
26162 | PyObject * obj0 = 0 ; | |
994141e6 | 26163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26164 | PyObject * obj2 = 0 ; |
26165 | char *kwnames[] = { | |
26166 | (char *) "self",(char *) "col",(char *) "info", NULL | |
26167 | }; | |
26168 | ||
994141e6 | 26169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26172 | { | |
26173 | arg2 = (long)(SWIG_As_long(obj1)); | |
26174 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26175 | } | |
26176 | { | |
26177 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
26178 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26179 | if (arg3 == NULL) { | |
26180 | SWIG_null_ref("wxListItem"); | |
26181 | } | |
26182 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
26183 | } |
26184 | { | |
26185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26186 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
26187 | ||
26188 | wxPyEndAllowThreads(__tstate); | |
26189 | if (PyErr_Occurred()) SWIG_fail; | |
26190 | } | |
093d3ff1 RD |
26191 | { |
26192 | resultobj = SWIG_From_long((long)(result)); | |
26193 | } | |
d14a1e28 RD |
26194 | return resultobj; |
26195 | fail: | |
26196 | return NULL; | |
26197 | } | |
26198 | ||
26199 | ||
c32bde28 | 26200 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26201 | PyObject *resultobj; |
26202 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26203 | long arg2 ; | |
26204 | wxString *arg3 = 0 ; | |
26205 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
26206 | int arg5 = (int) -1 ; | |
26207 | long result; | |
ae8162c8 | 26208 | bool temp3 = false ; |
d14a1e28 | 26209 | PyObject * obj0 = 0 ; |
994141e6 | 26210 | PyObject * obj1 = 0 ; |
d14a1e28 | 26211 | PyObject * obj2 = 0 ; |
994141e6 RD |
26212 | PyObject * obj3 = 0 ; |
26213 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26214 | char *kwnames[] = { |
26215 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
26216 | }; | |
26217 | ||
994141e6 | 26218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
26219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26221 | { | |
26222 | arg2 = (long)(SWIG_As_long(obj1)); | |
26223 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26224 | } | |
d14a1e28 RD |
26225 | { |
26226 | arg3 = wxString_in_helper(obj2); | |
26227 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26228 | temp3 = true; |
d14a1e28 | 26229 | } |
994141e6 | 26230 | if (obj3) { |
093d3ff1 RD |
26231 | { |
26232 | arg4 = (int)(SWIG_As_int(obj3)); | |
26233 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26234 | } | |
994141e6 RD |
26235 | } |
26236 | if (obj4) { | |
093d3ff1 RD |
26237 | { |
26238 | arg5 = (int)(SWIG_As_int(obj4)); | |
26239 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26240 | } | |
994141e6 | 26241 | } |
d14a1e28 RD |
26242 | { |
26243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26244 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
26245 | ||
26246 | wxPyEndAllowThreads(__tstate); | |
26247 | if (PyErr_Occurred()) SWIG_fail; | |
26248 | } | |
093d3ff1 RD |
26249 | { |
26250 | resultobj = SWIG_From_long((long)(result)); | |
26251 | } | |
d14a1e28 RD |
26252 | { |
26253 | if (temp3) | |
26254 | delete arg3; | |
26255 | } | |
26256 | return resultobj; | |
26257 | fail: | |
26258 | { | |
26259 | if (temp3) | |
26260 | delete arg3; | |
26261 | } | |
26262 | return NULL; | |
26263 | } | |
26264 | ||
26265 | ||
c32bde28 | 26266 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26267 | PyObject *resultobj; |
26268 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26269 | long arg2 ; | |
26270 | PyObject * obj0 = 0 ; | |
994141e6 | 26271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26272 | char *kwnames[] = { |
26273 | (char *) "self",(char *) "count", NULL | |
26274 | }; | |
26275 | ||
994141e6 | 26276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26279 | { | |
26280 | arg2 = (long)(SWIG_As_long(obj1)); | |
26281 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26282 | } | |
d14a1e28 RD |
26283 | { |
26284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26285 | (arg1)->SetItemCount(arg2); | |
26286 | ||
26287 | wxPyEndAllowThreads(__tstate); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | } | |
26290 | Py_INCREF(Py_None); resultobj = Py_None; | |
26291 | return resultobj; | |
26292 | fail: | |
26293 | return NULL; | |
26294 | } | |
26295 | ||
26296 | ||
c32bde28 | 26297 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26298 | PyObject *resultobj; |
26299 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26300 | int arg2 ; | |
26301 | int arg3 ; | |
26302 | bool result; | |
26303 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26304 | PyObject * obj1 = 0 ; |
26305 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26306 | char *kwnames[] = { |
26307 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26308 | }; | |
26309 | ||
994141e6 | 26310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26313 | { | |
26314 | arg2 = (int)(SWIG_As_int(obj1)); | |
26315 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26316 | } | |
26317 | { | |
26318 | arg3 = (int)(SWIG_As_int(obj2)); | |
26319 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26320 | } | |
d14a1e28 RD |
26321 | { |
26322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26323 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
26324 | ||
26325 | wxPyEndAllowThreads(__tstate); | |
26326 | if (PyErr_Occurred()) SWIG_fail; | |
26327 | } | |
4f89f6a3 RD |
26328 | { |
26329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26330 | } | |
d14a1e28 RD |
26331 | return resultobj; |
26332 | fail: | |
26333 | return NULL; | |
26334 | } | |
26335 | ||
26336 | ||
c32bde28 | 26337 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26338 | PyObject *resultobj; |
26339 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26340 | long arg2 ; | |
26341 | wxColour *arg3 = 0 ; | |
26342 | wxColour temp3 ; | |
26343 | PyObject * obj0 = 0 ; | |
994141e6 | 26344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26345 | PyObject * obj2 = 0 ; |
26346 | char *kwnames[] = { | |
26347 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26348 | }; | |
26349 | ||
994141e6 | 26350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26353 | { | |
26354 | arg2 = (long)(SWIG_As_long(obj1)); | |
26355 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26356 | } | |
d14a1e28 RD |
26357 | { |
26358 | arg3 = &temp3; | |
26359 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26360 | } | |
26361 | { | |
26362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26363 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
26364 | ||
26365 | wxPyEndAllowThreads(__tstate); | |
26366 | if (PyErr_Occurred()) SWIG_fail; | |
26367 | } | |
26368 | Py_INCREF(Py_None); resultobj = Py_None; | |
26369 | return resultobj; | |
26370 | fail: | |
26371 | return NULL; | |
26372 | } | |
26373 | ||
26374 | ||
c32bde28 | 26375 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26376 | PyObject *resultobj; |
26377 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26378 | long arg2 ; | |
26379 | wxColour result; | |
26380 | PyObject * obj0 = 0 ; | |
994141e6 | 26381 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26382 | char *kwnames[] = { |
26383 | (char *) "self",(char *) "item", NULL | |
26384 | }; | |
26385 | ||
994141e6 | 26386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26389 | { | |
26390 | arg2 = (long)(SWIG_As_long(obj1)); | |
26391 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26392 | } | |
d14a1e28 RD |
26393 | { |
26394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26395 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
26396 | ||
26397 | wxPyEndAllowThreads(__tstate); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
26400 | { | |
26401 | wxColour * resultptr; | |
093d3ff1 | 26402 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 26403 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26404 | } |
26405 | return resultobj; | |
26406 | fail: | |
26407 | return NULL; | |
26408 | } | |
26409 | ||
26410 | ||
c32bde28 | 26411 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26412 | PyObject *resultobj; |
26413 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26414 | long arg2 ; | |
26415 | wxColour *arg3 = 0 ; | |
26416 | wxColour temp3 ; | |
26417 | PyObject * obj0 = 0 ; | |
994141e6 | 26418 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26419 | PyObject * obj2 = 0 ; |
26420 | char *kwnames[] = { | |
26421 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26422 | }; | |
26423 | ||
994141e6 | 26424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26427 | { | |
26428 | arg2 = (long)(SWIG_As_long(obj1)); | |
26429 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26430 | } | |
d14a1e28 RD |
26431 | { |
26432 | arg3 = &temp3; | |
26433 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26434 | } | |
26435 | { | |
26436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26437 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
26438 | ||
26439 | wxPyEndAllowThreads(__tstate); | |
26440 | if (PyErr_Occurred()) SWIG_fail; | |
26441 | } | |
26442 | Py_INCREF(Py_None); resultobj = Py_None; | |
26443 | return resultobj; | |
26444 | fail: | |
26445 | return NULL; | |
26446 | } | |
26447 | ||
26448 | ||
c32bde28 | 26449 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26450 | PyObject *resultobj; |
26451 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26452 | long arg2 ; | |
26453 | wxColour result; | |
26454 | PyObject * obj0 = 0 ; | |
994141e6 | 26455 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26456 | char *kwnames[] = { |
26457 | (char *) "self",(char *) "item", NULL | |
26458 | }; | |
26459 | ||
994141e6 | 26460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26463 | { | |
26464 | arg2 = (long)(SWIG_As_long(obj1)); | |
26465 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26466 | } | |
d14a1e28 RD |
26467 | { |
26468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26469 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
26470 | ||
26471 | wxPyEndAllowThreads(__tstate); | |
26472 | if (PyErr_Occurred()) SWIG_fail; | |
26473 | } | |
26474 | { | |
26475 | wxColour * resultptr; | |
093d3ff1 | 26476 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 26477 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26478 | } |
26479 | return resultobj; | |
26480 | fail: | |
26481 | return NULL; | |
26482 | } | |
26483 | ||
26484 | ||
c32bde28 | 26485 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26486 | PyObject *resultobj; |
26487 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26488 | PyObject *arg2 = (PyObject *) 0 ; | |
26489 | bool result; | |
26490 | PyObject * obj0 = 0 ; | |
26491 | PyObject * obj1 = 0 ; | |
26492 | char *kwnames[] = { | |
26493 | (char *) "self",(char *) "func", NULL | |
26494 | }; | |
26495 | ||
26496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26499 | arg2 = obj1; |
26500 | { | |
26501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26502 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
26503 | ||
26504 | wxPyEndAllowThreads(__tstate); | |
26505 | if (PyErr_Occurred()) SWIG_fail; | |
26506 | } | |
4f89f6a3 RD |
26507 | { |
26508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26509 | } | |
d14a1e28 RD |
26510 | return resultobj; |
26511 | fail: | |
26512 | return NULL; | |
26513 | } | |
26514 | ||
26515 | ||
c32bde28 | 26516 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26517 | PyObject *resultobj; |
26518 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26519 | wxWindow *result; | |
26520 | PyObject * obj0 = 0 ; | |
26521 | char *kwnames[] = { | |
26522 | (char *) "self", NULL | |
26523 | }; | |
26524 | ||
26525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26528 | { |
26529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26530 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
26531 | ||
26532 | wxPyEndAllowThreads(__tstate); | |
26533 | if (PyErr_Occurred()) SWIG_fail; | |
26534 | } | |
26535 | { | |
412d302d | 26536 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
26537 | } |
26538 | return resultobj; | |
26539 | fail: | |
26540 | return NULL; | |
26541 | } | |
26542 | ||
26543 | ||
c32bde28 | 26544 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd | 26545 | PyObject *resultobj; |
093d3ff1 | 26546 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
26547 | wxVisualAttributes result; |
26548 | PyObject * obj0 = 0 ; | |
26549 | char *kwnames[] = { | |
26550 | (char *) "variant", NULL | |
26551 | }; | |
26552 | ||
26553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26554 | if (obj0) { | |
093d3ff1 RD |
26555 | { |
26556 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
26557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26558 | } | |
74a57fcd RD |
26559 | } |
26560 | { | |
110da5b0 | 26561 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
26562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26563 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26564 | ||
26565 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 26566 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
26567 | } |
26568 | { | |
26569 | wxVisualAttributes * resultptr; | |
093d3ff1 | 26570 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
26571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
26572 | } | |
26573 | return resultobj; | |
26574 | fail: | |
26575 | return NULL; | |
26576 | } | |
26577 | ||
26578 | ||
c32bde28 | 26579 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
26580 | PyObject *obj; |
26581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26582 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
26583 | Py_INCREF(obj); | |
26584 | return Py_BuildValue((char *)""); | |
26585 | } | |
c32bde28 | 26586 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26587 | PyObject *resultobj; |
26588 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 26589 | int arg2 = (int) -1 ; |
d14a1e28 RD |
26590 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
26591 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26592 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26593 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26594 | long arg5 = (long) wxLC_REPORT ; | |
26595 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
26596 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
26597 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
26598 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26599 | wxListView *result; | |
26600 | wxPoint temp3 ; | |
26601 | wxSize temp4 ; | |
ae8162c8 | 26602 | bool temp7 = false ; |
d14a1e28 | 26603 | PyObject * obj0 = 0 ; |
994141e6 | 26604 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26605 | PyObject * obj2 = 0 ; |
26606 | PyObject * obj3 = 0 ; | |
994141e6 | 26607 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
26608 | PyObject * obj5 = 0 ; |
26609 | PyObject * obj6 = 0 ; | |
26610 | char *kwnames[] = { | |
26611 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26612 | }; | |
26613 | ||
994141e6 | 26614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
26615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 26617 | if (obj1) { |
093d3ff1 RD |
26618 | { |
26619 | arg2 = (int)(SWIG_As_int(obj1)); | |
26620 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26621 | } | |
994141e6 | 26622 | } |
d14a1e28 RD |
26623 | if (obj2) { |
26624 | { | |
26625 | arg3 = &temp3; | |
26626 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26627 | } | |
26628 | } | |
26629 | if (obj3) { | |
26630 | { | |
26631 | arg4 = &temp4; | |
26632 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26633 | } | |
26634 | } | |
994141e6 | 26635 | if (obj4) { |
093d3ff1 RD |
26636 | { |
26637 | arg5 = (long)(SWIG_As_long(obj4)); | |
26638 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26639 | } | |
994141e6 | 26640 | } |
d14a1e28 | 26641 | if (obj5) { |
093d3ff1 RD |
26642 | { |
26643 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26644 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26645 | if (arg6 == NULL) { | |
26646 | SWIG_null_ref("wxValidator"); | |
26647 | } | |
26648 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
26649 | } |
26650 | } | |
26651 | if (obj6) { | |
26652 | { | |
26653 | arg7 = wxString_in_helper(obj6); | |
26654 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 26655 | temp7 = true; |
d14a1e28 RD |
26656 | } |
26657 | } | |
26658 | { | |
e3b71cb8 | 26659 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
26660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26661 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
26662 | ||
26663 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26664 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 26665 | } |
15afbcd0 | 26666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
26667 | { |
26668 | if (temp7) | |
26669 | delete arg7; | |
26670 | } | |
26671 | return resultobj; | |
26672 | fail: | |
26673 | { | |
26674 | if (temp7) | |
26675 | delete arg7; | |
26676 | } | |
26677 | return NULL; | |
26678 | } | |
26679 | ||
26680 | ||
c32bde28 | 26681 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26682 | PyObject *resultobj; |
26683 | wxListView *result; | |
26684 | char *kwnames[] = { | |
26685 | NULL | |
26686 | }; | |
26687 | ||
26688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
26689 | { | |
e3b71cb8 | 26690 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
26691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26692 | result = (wxListView *)new wxListView(); | |
26693 | ||
26694 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26695 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 26696 | } |
15afbcd0 | 26697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
26698 | return resultobj; |
26699 | fail: | |
26700 | return NULL; | |
26701 | } | |
26702 | ||
26703 | ||
c32bde28 | 26704 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26705 | PyObject *resultobj; |
26706 | wxListView *arg1 = (wxListView *) 0 ; | |
26707 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 26708 | int arg3 = (int) -1 ; |
d14a1e28 RD |
26709 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
26710 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26711 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26712 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26713 | long arg6 = (long) wxLC_REPORT ; | |
26714 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
26715 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
26716 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
26717 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26718 | bool result; | |
26719 | wxPoint temp4 ; | |
26720 | wxSize temp5 ; | |
ae8162c8 | 26721 | bool temp8 = false ; |
d14a1e28 RD |
26722 | PyObject * obj0 = 0 ; |
26723 | PyObject * obj1 = 0 ; | |
994141e6 | 26724 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26725 | PyObject * obj3 = 0 ; |
26726 | PyObject * obj4 = 0 ; | |
994141e6 | 26727 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
26728 | PyObject * obj6 = 0 ; |
26729 | PyObject * obj7 = 0 ; | |
26730 | char *kwnames[] = { | |
26731 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26732 | }; | |
26733 | ||
994141e6 | 26734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
26735 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26736 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26737 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
26738 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 26739 | if (obj2) { |
093d3ff1 RD |
26740 | { |
26741 | arg3 = (int)(SWIG_As_int(obj2)); | |
26742 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26743 | } | |
994141e6 | 26744 | } |
d14a1e28 RD |
26745 | if (obj3) { |
26746 | { | |
26747 | arg4 = &temp4; | |
26748 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26749 | } | |
26750 | } | |
26751 | if (obj4) { | |
26752 | { | |
26753 | arg5 = &temp5; | |
26754 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26755 | } | |
26756 | } | |
994141e6 | 26757 | if (obj5) { |
093d3ff1 RD |
26758 | { |
26759 | arg6 = (long)(SWIG_As_long(obj5)); | |
26760 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26761 | } | |
994141e6 | 26762 | } |
d14a1e28 | 26763 | if (obj6) { |
093d3ff1 RD |
26764 | { |
26765 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26766 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26767 | if (arg7 == NULL) { | |
26768 | SWIG_null_ref("wxValidator"); | |
26769 | } | |
26770 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
26771 | } |
26772 | } | |
26773 | if (obj7) { | |
26774 | { | |
26775 | arg8 = wxString_in_helper(obj7); | |
26776 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 26777 | temp8 = true; |
d14a1e28 RD |
26778 | } |
26779 | } | |
26780 | { | |
26781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26782 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
26783 | ||
26784 | wxPyEndAllowThreads(__tstate); | |
26785 | if (PyErr_Occurred()) SWIG_fail; | |
26786 | } | |
4f89f6a3 RD |
26787 | { |
26788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26789 | } | |
d14a1e28 RD |
26790 | { |
26791 | if (temp8) | |
26792 | delete arg8; | |
26793 | } | |
26794 | return resultobj; | |
26795 | fail: | |
26796 | { | |
26797 | if (temp8) | |
26798 | delete arg8; | |
26799 | } | |
26800 | return NULL; | |
26801 | } | |
26802 | ||
26803 | ||
c32bde28 | 26804 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26805 | PyObject *resultobj; |
26806 | wxListView *arg1 = (wxListView *) 0 ; | |
26807 | long arg2 ; | |
ae8162c8 | 26808 | bool arg3 = (bool) true ; |
d14a1e28 | 26809 | PyObject * obj0 = 0 ; |
994141e6 | 26810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26811 | PyObject * obj2 = 0 ; |
26812 | char *kwnames[] = { | |
26813 | (char *) "self",(char *) "n",(char *) "on", NULL | |
26814 | }; | |
26815 | ||
15afbcd0 | 26816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26819 | { | |
26820 | arg2 = (long)(SWIG_As_long(obj1)); | |
26821 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26822 | } | |
d14a1e28 | 26823 | if (obj2) { |
093d3ff1 RD |
26824 | { |
26825 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
26826 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26827 | } | |
d14a1e28 RD |
26828 | } |
26829 | { | |
26830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26831 | (arg1)->Select(arg2,arg3); | |
26832 | ||
26833 | wxPyEndAllowThreads(__tstate); | |
26834 | if (PyErr_Occurred()) SWIG_fail; | |
26835 | } | |
26836 | Py_INCREF(Py_None); resultobj = Py_None; | |
26837 | return resultobj; | |
26838 | fail: | |
26839 | return NULL; | |
26840 | } | |
26841 | ||
26842 | ||
c32bde28 | 26843 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26844 | PyObject *resultobj; |
26845 | wxListView *arg1 = (wxListView *) 0 ; | |
26846 | long arg2 ; | |
26847 | PyObject * obj0 = 0 ; | |
994141e6 | 26848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26849 | char *kwnames[] = { |
26850 | (char *) "self",(char *) "index", NULL | |
26851 | }; | |
26852 | ||
994141e6 | 26853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26856 | { | |
26857 | arg2 = (long)(SWIG_As_long(obj1)); | |
26858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26859 | } | |
d14a1e28 RD |
26860 | { |
26861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26862 | (arg1)->Focus(arg2); | |
26863 | ||
26864 | wxPyEndAllowThreads(__tstate); | |
26865 | if (PyErr_Occurred()) SWIG_fail; | |
26866 | } | |
26867 | Py_INCREF(Py_None); resultobj = Py_None; | |
26868 | return resultobj; | |
26869 | fail: | |
26870 | return NULL; | |
26871 | } | |
26872 | ||
26873 | ||
c32bde28 | 26874 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26875 | PyObject *resultobj; |
26876 | wxListView *arg1 = (wxListView *) 0 ; | |
26877 | long result; | |
26878 | PyObject * obj0 = 0 ; | |
26879 | char *kwnames[] = { | |
26880 | (char *) "self", NULL | |
26881 | }; | |
26882 | ||
26883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26886 | { |
26887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26888 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
26889 | ||
26890 | wxPyEndAllowThreads(__tstate); | |
26891 | if (PyErr_Occurred()) SWIG_fail; | |
26892 | } | |
093d3ff1 RD |
26893 | { |
26894 | resultobj = SWIG_From_long((long)(result)); | |
26895 | } | |
d14a1e28 RD |
26896 | return resultobj; |
26897 | fail: | |
26898 | return NULL; | |
26899 | } | |
26900 | ||
26901 | ||
c32bde28 | 26902 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26903 | PyObject *resultobj; |
26904 | wxListView *arg1 = (wxListView *) 0 ; | |
26905 | long arg2 ; | |
26906 | long result; | |
26907 | PyObject * obj0 = 0 ; | |
994141e6 | 26908 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26909 | char *kwnames[] = { |
26910 | (char *) "self",(char *) "item", NULL | |
26911 | }; | |
26912 | ||
994141e6 | 26913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26916 | { | |
26917 | arg2 = (long)(SWIG_As_long(obj1)); | |
26918 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26919 | } | |
d14a1e28 RD |
26920 | { |
26921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26922 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
26923 | ||
26924 | wxPyEndAllowThreads(__tstate); | |
26925 | if (PyErr_Occurred()) SWIG_fail; | |
26926 | } | |
093d3ff1 RD |
26927 | { |
26928 | resultobj = SWIG_From_long((long)(result)); | |
26929 | } | |
d14a1e28 RD |
26930 | return resultobj; |
26931 | fail: | |
26932 | return NULL; | |
26933 | } | |
26934 | ||
26935 | ||
c32bde28 | 26936 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26937 | PyObject *resultobj; |
26938 | wxListView *arg1 = (wxListView *) 0 ; | |
26939 | long result; | |
26940 | PyObject * obj0 = 0 ; | |
26941 | char *kwnames[] = { | |
26942 | (char *) "self", NULL | |
26943 | }; | |
26944 | ||
26945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26946 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26947 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26948 | { |
26949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26950 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
26951 | ||
26952 | wxPyEndAllowThreads(__tstate); | |
26953 | if (PyErr_Occurred()) SWIG_fail; | |
26954 | } | |
093d3ff1 RD |
26955 | { |
26956 | resultobj = SWIG_From_long((long)(result)); | |
26957 | } | |
d14a1e28 RD |
26958 | return resultobj; |
26959 | fail: | |
26960 | return NULL; | |
26961 | } | |
26962 | ||
26963 | ||
c32bde28 | 26964 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26965 | PyObject *resultobj; |
26966 | wxListView *arg1 = (wxListView *) 0 ; | |
26967 | long arg2 ; | |
26968 | bool result; | |
26969 | PyObject * obj0 = 0 ; | |
994141e6 | 26970 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26971 | char *kwnames[] = { |
26972 | (char *) "self",(char *) "index", NULL | |
26973 | }; | |
26974 | ||
994141e6 | 26975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26978 | { | |
26979 | arg2 = (long)(SWIG_As_long(obj1)); | |
26980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26981 | } | |
d14a1e28 RD |
26982 | { |
26983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26984 | result = (bool)(arg1)->IsSelected(arg2); | |
26985 | ||
26986 | wxPyEndAllowThreads(__tstate); | |
26987 | if (PyErr_Occurred()) SWIG_fail; | |
26988 | } | |
4f89f6a3 RD |
26989 | { |
26990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26991 | } | |
d14a1e28 RD |
26992 | return resultobj; |
26993 | fail: | |
26994 | return NULL; | |
26995 | } | |
26996 | ||
26997 | ||
c32bde28 | 26998 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26999 | PyObject *resultobj; |
27000 | wxListView *arg1 = (wxListView *) 0 ; | |
27001 | int arg2 ; | |
27002 | int arg3 ; | |
27003 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27004 | PyObject * obj1 = 0 ; |
27005 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27006 | char *kwnames[] = { |
27007 | (char *) "self",(char *) "col",(char *) "image", NULL | |
27008 | }; | |
27009 | ||
994141e6 | 27010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
27012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27013 | { | |
27014 | arg2 = (int)(SWIG_As_int(obj1)); | |
27015 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27016 | } | |
27017 | { | |
27018 | arg3 = (int)(SWIG_As_int(obj2)); | |
27019 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27020 | } | |
d14a1e28 RD |
27021 | { |
27022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27023 | (arg1)->SetColumnImage(arg2,arg3); | |
27024 | ||
27025 | wxPyEndAllowThreads(__tstate); | |
27026 | if (PyErr_Occurred()) SWIG_fail; | |
27027 | } | |
27028 | Py_INCREF(Py_None); resultobj = Py_None; | |
27029 | return resultobj; | |
27030 | fail: | |
27031 | return NULL; | |
27032 | } | |
27033 | ||
27034 | ||
c32bde28 | 27035 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27036 | PyObject *resultobj; |
27037 | wxListView *arg1 = (wxListView *) 0 ; | |
27038 | int arg2 ; | |
27039 | PyObject * obj0 = 0 ; | |
994141e6 | 27040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27041 | char *kwnames[] = { |
27042 | (char *) "self",(char *) "col", NULL | |
27043 | }; | |
27044 | ||
994141e6 | 27045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27046 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
27047 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27048 | { | |
27049 | arg2 = (int)(SWIG_As_int(obj1)); | |
27050 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27051 | } | |
d14a1e28 RD |
27052 | { |
27053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27054 | (arg1)->ClearColumnImage(arg2); | |
27055 | ||
27056 | wxPyEndAllowThreads(__tstate); | |
27057 | if (PyErr_Occurred()) SWIG_fail; | |
27058 | } | |
27059 | Py_INCREF(Py_None); resultobj = Py_None; | |
27060 | return resultobj; | |
27061 | fail: | |
27062 | return NULL; | |
27063 | } | |
27064 | ||
27065 | ||
c32bde28 | 27066 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27067 | PyObject *obj; |
27068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27069 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
27070 | Py_INCREF(obj); | |
27071 | return Py_BuildValue((char *)""); | |
27072 | } | |
c32bde28 | 27073 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
27074 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
27075 | return 1; | |
27076 | } | |
27077 | ||
27078 | ||
093d3ff1 | 27079 | static PyObject *_wrap_TreeCtrlNameStr_get(void) { |
b2dc1044 RD |
27080 | PyObject *pyobj; |
27081 | ||
27082 | { | |
27083 | #if wxUSE_UNICODE | |
27084 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
27085 | #else | |
27086 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
27087 | #endif | |
27088 | } | |
27089 | return pyobj; | |
27090 | } | |
27091 | ||
27092 | ||
c32bde28 | 27093 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27094 | PyObject *resultobj; |
27095 | wxTreeItemId *result; | |
27096 | char *kwnames[] = { | |
27097 | NULL | |
27098 | }; | |
27099 | ||
27100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
27101 | { | |
27102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27103 | result = (wxTreeItemId *)new wxTreeItemId(); | |
27104 | ||
27105 | wxPyEndAllowThreads(__tstate); | |
27106 | if (PyErr_Occurred()) SWIG_fail; | |
27107 | } | |
15afbcd0 | 27108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27109 | return resultobj; |
27110 | fail: | |
27111 | return NULL; | |
27112 | } | |
27113 | ||
27114 | ||
c32bde28 | 27115 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27116 | PyObject *resultobj; |
27117 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27118 | PyObject * obj0 = 0 ; | |
27119 | char *kwnames[] = { | |
27120 | (char *) "self", NULL | |
27121 | }; | |
27122 | ||
27123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27124 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27125 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27126 | { |
27127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27128 | delete arg1; | |
27129 | ||
27130 | wxPyEndAllowThreads(__tstate); | |
27131 | if (PyErr_Occurred()) SWIG_fail; | |
27132 | } | |
27133 | Py_INCREF(Py_None); resultobj = Py_None; | |
27134 | return resultobj; | |
27135 | fail: | |
27136 | return NULL; | |
27137 | } | |
27138 | ||
27139 | ||
c32bde28 | 27140 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27141 | PyObject *resultobj; |
27142 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27143 | bool result; | |
27144 | PyObject * obj0 = 0 ; | |
27145 | char *kwnames[] = { | |
27146 | (char *) "self", NULL | |
27147 | }; | |
27148 | ||
27149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27150 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27152 | { |
27153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27154 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
27155 | ||
27156 | wxPyEndAllowThreads(__tstate); | |
27157 | if (PyErr_Occurred()) SWIG_fail; | |
27158 | } | |
4f89f6a3 RD |
27159 | { |
27160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27161 | } | |
d14a1e28 RD |
27162 | return resultobj; |
27163 | fail: | |
27164 | return NULL; | |
27165 | } | |
27166 | ||
27167 | ||
c32bde28 | 27168 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27169 | PyObject *resultobj; |
27170 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27171 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27172 | bool result; | |
27173 | PyObject * obj0 = 0 ; | |
27174 | PyObject * obj1 = 0 ; | |
27175 | char *kwnames[] = { | |
27176 | (char *) "self",(char *) "other", NULL | |
27177 | }; | |
27178 | ||
27179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",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 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27183 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27184 | { |
27185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 27186 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
27187 | |
27188 | wxPyEndAllowThreads(__tstate); | |
27189 | if (PyErr_Occurred()) SWIG_fail; | |
27190 | } | |
4f89f6a3 RD |
27191 | { |
27192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27193 | } | |
d14a1e28 RD |
27194 | return resultobj; |
27195 | fail: | |
27196 | return NULL; | |
27197 | } | |
27198 | ||
27199 | ||
c32bde28 | 27200 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27201 | PyObject *resultobj; |
27202 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27203 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27204 | bool result; | |
27205 | PyObject * obj0 = 0 ; | |
27206 | PyObject * obj1 = 0 ; | |
27207 | char *kwnames[] = { | |
27208 | (char *) "self",(char *) "other", NULL | |
27209 | }; | |
27210 | ||
27211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27212 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27213 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27214 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27215 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27216 | { |
27217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 27218 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
27219 | |
27220 | wxPyEndAllowThreads(__tstate); | |
27221 | if (PyErr_Occurred()) SWIG_fail; | |
27222 | } | |
4f89f6a3 RD |
27223 | { |
27224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27225 | } | |
d14a1e28 RD |
27226 | return resultobj; |
27227 | fail: | |
27228 | return NULL; | |
27229 | } | |
27230 | ||
27231 | ||
c32bde28 | 27232 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27233 | PyObject *resultobj; |
27234 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 27235 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
27236 | PyObject * obj0 = 0 ; |
27237 | PyObject * obj1 = 0 ; | |
27238 | char *kwnames[] = { | |
27239 | (char *) "self",(char *) "m_pItem", NULL | |
27240 | }; | |
27241 | ||
27242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27245 | { | |
27246 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),0,SWIG_POINTER_EXCEPTION|SWIG_POINTER_DISOWN))== -1) { | |
27247 | SWIG_arg_fail(2);SWIG_fail; | |
27248 | } | |
27249 | } | |
d14a1e28 RD |
27250 | if (arg1) (arg1)->m_pItem = arg2; |
27251 | ||
27252 | Py_INCREF(Py_None); resultobj = Py_None; | |
27253 | return resultobj; | |
27254 | fail: | |
27255 | return NULL; | |
27256 | } | |
27257 | ||
27258 | ||
c32bde28 | 27259 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27260 | PyObject *resultobj; |
27261 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 27262 | void *result; |
d14a1e28 RD |
27263 | PyObject * obj0 = 0 ; |
27264 | char *kwnames[] = { | |
27265 | (char *) "self", NULL | |
27266 | }; | |
27267 | ||
27268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
58203fa6 | 27271 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 27272 | |
15afbcd0 | 27273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
27274 | return resultobj; |
27275 | fail: | |
27276 | return NULL; | |
27277 | } | |
27278 | ||
27279 | ||
c32bde28 | 27280 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27281 | PyObject *obj; |
27282 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27283 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
27284 | Py_INCREF(obj); | |
27285 | return Py_BuildValue((char *)""); | |
27286 | } | |
c32bde28 | 27287 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27288 | PyObject *resultobj; |
27289 | PyObject *arg1 = (PyObject *) NULL ; | |
27290 | wxPyTreeItemData *result; | |
27291 | PyObject * obj0 = 0 ; | |
27292 | char *kwnames[] = { | |
27293 | (char *) "obj", NULL | |
27294 | }; | |
27295 | ||
27296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
27297 | if (obj0) { | |
27298 | arg1 = obj0; | |
27299 | } | |
27300 | { | |
27301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27302 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
27303 | ||
27304 | wxPyEndAllowThreads(__tstate); | |
27305 | if (PyErr_Occurred()) SWIG_fail; | |
27306 | } | |
15afbcd0 | 27307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
27308 | return resultobj; |
27309 | fail: | |
27310 | return NULL; | |
27311 | } | |
27312 | ||
27313 | ||
c32bde28 | 27314 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27315 | PyObject *resultobj; |
27316 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27317 | PyObject *result; | |
27318 | PyObject * obj0 = 0 ; | |
27319 | char *kwnames[] = { | |
27320 | (char *) "self", NULL | |
27321 | }; | |
27322 | ||
27323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27326 | { |
27327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27328 | result = (PyObject *)(arg1)->GetData(); | |
27329 | ||
27330 | wxPyEndAllowThreads(__tstate); | |
27331 | if (PyErr_Occurred()) SWIG_fail; | |
27332 | } | |
27333 | resultobj = result; | |
27334 | return resultobj; | |
27335 | fail: | |
27336 | return NULL; | |
27337 | } | |
27338 | ||
27339 | ||
c32bde28 | 27340 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27341 | PyObject *resultobj; |
27342 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27343 | PyObject *arg2 = (PyObject *) 0 ; | |
27344 | PyObject * obj0 = 0 ; | |
27345 | PyObject * obj1 = 0 ; | |
27346 | char *kwnames[] = { | |
27347 | (char *) "self",(char *) "obj", NULL | |
27348 | }; | |
27349 | ||
27350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27353 | arg2 = obj1; |
27354 | { | |
27355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27356 | (arg1)->SetData(arg2); | |
27357 | ||
27358 | wxPyEndAllowThreads(__tstate); | |
27359 | if (PyErr_Occurred()) SWIG_fail; | |
27360 | } | |
27361 | Py_INCREF(Py_None); resultobj = Py_None; | |
27362 | return resultobj; | |
27363 | fail: | |
27364 | return NULL; | |
27365 | } | |
27366 | ||
27367 | ||
c32bde28 | 27368 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27369 | PyObject *resultobj; |
27370 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27371 | wxTreeItemId *result; | |
27372 | PyObject * obj0 = 0 ; | |
27373 | char *kwnames[] = { | |
27374 | (char *) "self", NULL | |
27375 | }; | |
27376 | ||
27377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",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; | |
d14a1e28 RD |
27380 | { |
27381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27382 | { | |
27383 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
27384 | result = (wxTreeItemId *) &_result_ref; | |
27385 | } | |
27386 | ||
27387 | wxPyEndAllowThreads(__tstate); | |
27388 | if (PyErr_Occurred()) SWIG_fail; | |
27389 | } | |
15afbcd0 | 27390 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
27391 | return resultobj; |
27392 | fail: | |
27393 | return NULL; | |
27394 | } | |
27395 | ||
27396 | ||
c32bde28 | 27397 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27398 | PyObject *resultobj; |
27399 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27400 | wxTreeItemId *arg2 = 0 ; | |
27401 | PyObject * obj0 = 0 ; | |
27402 | PyObject * obj1 = 0 ; | |
27403 | char *kwnames[] = { | |
27404 | (char *) "self",(char *) "id", NULL | |
27405 | }; | |
27406 | ||
27407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27410 | { | |
27411 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27412 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27413 | if (arg2 == NULL) { | |
27414 | SWIG_null_ref("wxTreeItemId"); | |
27415 | } | |
27416 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27417 | } |
27418 | { | |
27419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27420 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
27421 | ||
27422 | wxPyEndAllowThreads(__tstate); | |
27423 | if (PyErr_Occurred()) SWIG_fail; | |
27424 | } | |
27425 | Py_INCREF(Py_None); resultobj = Py_None; | |
27426 | return resultobj; | |
27427 | fail: | |
27428 | return NULL; | |
27429 | } | |
27430 | ||
27431 | ||
c32bde28 | 27432 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27433 | PyObject *resultobj; |
27434 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27435 | PyObject * obj0 = 0 ; | |
27436 | char *kwnames[] = { | |
27437 | (char *) "self", NULL | |
27438 | }; | |
27439 | ||
27440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27441 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27442 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27443 | { |
27444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27445 | wxPyTreeItemData_Destroy(arg1); | |
27446 | ||
27447 | wxPyEndAllowThreads(__tstate); | |
27448 | if (PyErr_Occurred()) SWIG_fail; | |
27449 | } | |
27450 | Py_INCREF(Py_None); resultobj = Py_None; | |
27451 | return resultobj; | |
27452 | fail: | |
27453 | return NULL; | |
27454 | } | |
27455 | ||
27456 | ||
c32bde28 | 27457 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27458 | PyObject *obj; |
27459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27460 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
27461 | Py_INCREF(obj); | |
27462 | return Py_BuildValue((char *)""); | |
27463 | } | |
c32bde28 | 27464 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27465 | PyObject *resultobj; |
27466 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
27467 | int arg2 = (int) 0 ; | |
27468 | wxTreeEvent *result; | |
994141e6 RD |
27469 | PyObject * obj0 = 0 ; |
27470 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
27471 | char *kwnames[] = { |
27472 | (char *) "commandType",(char *) "id", NULL | |
27473 | }; | |
27474 | ||
994141e6 RD |
27475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
27476 | if (obj0) { | |
093d3ff1 RD |
27477 | { |
27478 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
27479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27480 | } | |
994141e6 RD |
27481 | } |
27482 | if (obj1) { | |
093d3ff1 RD |
27483 | { |
27484 | arg2 = (int)(SWIG_As_int(obj1)); | |
27485 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27486 | } | |
994141e6 | 27487 | } |
d14a1e28 RD |
27488 | { |
27489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27490 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
27491 | ||
27492 | wxPyEndAllowThreads(__tstate); | |
27493 | if (PyErr_Occurred()) SWIG_fail; | |
27494 | } | |
15afbcd0 | 27495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
27496 | return resultobj; |
27497 | fail: | |
27498 | return NULL; | |
27499 | } | |
27500 | ||
27501 | ||
c32bde28 | 27502 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27503 | PyObject *resultobj; |
27504 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27505 | wxTreeItemId result; | |
27506 | PyObject * obj0 = 0 ; | |
27507 | char *kwnames[] = { | |
27508 | (char *) "self", NULL | |
27509 | }; | |
27510 | ||
27511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27514 | { |
27515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27516 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
27517 | ||
27518 | wxPyEndAllowThreads(__tstate); | |
27519 | if (PyErr_Occurred()) SWIG_fail; | |
27520 | } | |
27521 | { | |
27522 | wxTreeItemId * resultptr; | |
093d3ff1 | 27523 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 27524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27525 | } |
27526 | return resultobj; | |
27527 | fail: | |
27528 | return NULL; | |
27529 | } | |
27530 | ||
27531 | ||
c32bde28 | 27532 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27533 | PyObject *resultobj; |
27534 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27535 | wxTreeItemId *arg2 = 0 ; | |
27536 | PyObject * obj0 = 0 ; | |
27537 | PyObject * obj1 = 0 ; | |
27538 | char *kwnames[] = { | |
27539 | (char *) "self",(char *) "item", NULL | |
27540 | }; | |
27541 | ||
27542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27545 | { | |
27546 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27547 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27548 | if (arg2 == NULL) { | |
27549 | SWIG_null_ref("wxTreeItemId"); | |
27550 | } | |
27551 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27552 | } |
27553 | { | |
27554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27555 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
27556 | ||
27557 | wxPyEndAllowThreads(__tstate); | |
27558 | if (PyErr_Occurred()) SWIG_fail; | |
27559 | } | |
27560 | Py_INCREF(Py_None); resultobj = Py_None; | |
27561 | return resultobj; | |
27562 | fail: | |
27563 | return NULL; | |
27564 | } | |
27565 | ||
27566 | ||
c32bde28 | 27567 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27568 | PyObject *resultobj; |
27569 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27570 | wxTreeItemId result; | |
27571 | PyObject * obj0 = 0 ; | |
27572 | char *kwnames[] = { | |
27573 | (char *) "self", NULL | |
27574 | }; | |
27575 | ||
27576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27579 | { |
27580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27581 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
27582 | ||
27583 | wxPyEndAllowThreads(__tstate); | |
27584 | if (PyErr_Occurred()) SWIG_fail; | |
27585 | } | |
27586 | { | |
27587 | wxTreeItemId * resultptr; | |
093d3ff1 | 27588 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 27589 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27590 | } |
27591 | return resultobj; | |
27592 | fail: | |
27593 | return NULL; | |
27594 | } | |
27595 | ||
27596 | ||
c32bde28 | 27597 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27598 | PyObject *resultobj; |
27599 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27600 | wxTreeItemId *arg2 = 0 ; | |
27601 | PyObject * obj0 = 0 ; | |
27602 | PyObject * obj1 = 0 ; | |
27603 | char *kwnames[] = { | |
27604 | (char *) "self",(char *) "item", NULL | |
27605 | }; | |
27606 | ||
27607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27610 | { | |
27611 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27612 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27613 | if (arg2 == NULL) { | |
27614 | SWIG_null_ref("wxTreeItemId"); | |
27615 | } | |
27616 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27617 | } |
27618 | { | |
27619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27620 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
27621 | ||
27622 | wxPyEndAllowThreads(__tstate); | |
27623 | if (PyErr_Occurred()) SWIG_fail; | |
27624 | } | |
27625 | Py_INCREF(Py_None); resultobj = Py_None; | |
27626 | return resultobj; | |
27627 | fail: | |
27628 | return NULL; | |
27629 | } | |
27630 | ||
27631 | ||
c32bde28 | 27632 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27633 | PyObject *resultobj; |
27634 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27635 | wxPoint result; | |
27636 | PyObject * obj0 = 0 ; | |
27637 | char *kwnames[] = { | |
27638 | (char *) "self", NULL | |
27639 | }; | |
27640 | ||
27641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27644 | { |
27645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27646 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
27647 | ||
27648 | wxPyEndAllowThreads(__tstate); | |
27649 | if (PyErr_Occurred()) SWIG_fail; | |
27650 | } | |
27651 | { | |
27652 | wxPoint * resultptr; | |
093d3ff1 | 27653 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 27654 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
27655 | } |
27656 | return resultobj; | |
27657 | fail: | |
27658 | return NULL; | |
27659 | } | |
27660 | ||
27661 | ||
c32bde28 | 27662 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27663 | PyObject *resultobj; |
27664 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27665 | wxPoint *arg2 = 0 ; | |
27666 | wxPoint temp2 ; | |
27667 | PyObject * obj0 = 0 ; | |
27668 | PyObject * obj1 = 0 ; | |
27669 | char *kwnames[] = { | |
27670 | (char *) "self",(char *) "pt", NULL | |
27671 | }; | |
27672 | ||
27673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27676 | { |
27677 | arg2 = &temp2; | |
27678 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27679 | } | |
27680 | { | |
27681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27682 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
27683 | ||
27684 | wxPyEndAllowThreads(__tstate); | |
27685 | if (PyErr_Occurred()) SWIG_fail; | |
27686 | } | |
27687 | Py_INCREF(Py_None); resultobj = Py_None; | |
27688 | return resultobj; | |
27689 | fail: | |
27690 | return NULL; | |
27691 | } | |
27692 | ||
27693 | ||
c32bde28 | 27694 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27695 | PyObject *resultobj; |
27696 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27697 | wxKeyEvent *result; | |
27698 | PyObject * obj0 = 0 ; | |
27699 | char *kwnames[] = { | |
27700 | (char *) "self", NULL | |
27701 | }; | |
27702 | ||
27703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27706 | { |
27707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27708 | { | |
27709 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
27710 | result = (wxKeyEvent *) &_result_ref; | |
27711 | } | |
27712 | ||
27713 | wxPyEndAllowThreads(__tstate); | |
27714 | if (PyErr_Occurred()) SWIG_fail; | |
27715 | } | |
15afbcd0 | 27716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
27717 | return resultobj; |
27718 | fail: | |
27719 | return NULL; | |
27720 | } | |
27721 | ||
27722 | ||
c32bde28 | 27723 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27724 | PyObject *resultobj; |
27725 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27726 | int result; | |
27727 | PyObject * obj0 = 0 ; | |
27728 | char *kwnames[] = { | |
27729 | (char *) "self", NULL | |
27730 | }; | |
27731 | ||
27732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",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; | |
d14a1e28 RD |
27735 | { |
27736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27737 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
27738 | ||
27739 | wxPyEndAllowThreads(__tstate); | |
27740 | if (PyErr_Occurred()) SWIG_fail; | |
27741 | } | |
093d3ff1 RD |
27742 | { |
27743 | resultobj = SWIG_From_int((int)(result)); | |
27744 | } | |
d14a1e28 RD |
27745 | return resultobj; |
27746 | fail: | |
27747 | return NULL; | |
27748 | } | |
27749 | ||
27750 | ||
c32bde28 | 27751 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27752 | PyObject *resultobj; |
27753 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27754 | wxKeyEvent *arg2 = 0 ; | |
27755 | PyObject * obj0 = 0 ; | |
27756 | PyObject * obj1 = 0 ; | |
27757 | char *kwnames[] = { | |
27758 | (char *) "self",(char *) "evt", NULL | |
27759 | }; | |
27760 | ||
27761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27764 | { | |
27765 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
27766 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27767 | if (arg2 == NULL) { | |
27768 | SWIG_null_ref("wxKeyEvent"); | |
27769 | } | |
27770 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27771 | } |
27772 | { | |
27773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27774 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
27775 | ||
27776 | wxPyEndAllowThreads(__tstate); | |
27777 | if (PyErr_Occurred()) SWIG_fail; | |
27778 | } | |
27779 | Py_INCREF(Py_None); resultobj = Py_None; | |
27780 | return resultobj; | |
27781 | fail: | |
27782 | return NULL; | |
27783 | } | |
27784 | ||
27785 | ||
c32bde28 | 27786 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27787 | PyObject *resultobj; |
27788 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27789 | wxString *result; | |
27790 | PyObject * obj0 = 0 ; | |
27791 | char *kwnames[] = { | |
27792 | (char *) "self", NULL | |
27793 | }; | |
27794 | ||
27795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27798 | { |
27799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27800 | { | |
27801 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
27802 | result = (wxString *) &_result_ref; | |
27803 | } | |
27804 | ||
27805 | wxPyEndAllowThreads(__tstate); | |
27806 | if (PyErr_Occurred()) SWIG_fail; | |
27807 | } | |
cc6dd355 RD |
27808 | { |
27809 | #if wxUSE_UNICODE | |
27810 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27811 | #else | |
27812 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27813 | #endif | |
27814 | } | |
d14a1e28 RD |
27815 | return resultobj; |
27816 | fail: | |
27817 | return NULL; | |
27818 | } | |
27819 | ||
27820 | ||
c32bde28 | 27821 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27822 | PyObject *resultobj; |
27823 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27824 | wxString *arg2 = 0 ; | |
ae8162c8 | 27825 | bool temp2 = false ; |
d14a1e28 RD |
27826 | PyObject * obj0 = 0 ; |
27827 | PyObject * obj1 = 0 ; | |
27828 | char *kwnames[] = { | |
27829 | (char *) "self",(char *) "label", NULL | |
27830 | }; | |
27831 | ||
27832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27835 | { |
27836 | arg2 = wxString_in_helper(obj1); | |
27837 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27838 | temp2 = true; |
d14a1e28 RD |
27839 | } |
27840 | { | |
27841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27842 | (arg1)->SetLabel((wxString const &)*arg2); | |
27843 | ||
27844 | wxPyEndAllowThreads(__tstate); | |
27845 | if (PyErr_Occurred()) SWIG_fail; | |
27846 | } | |
27847 | Py_INCREF(Py_None); resultobj = Py_None; | |
27848 | { | |
27849 | if (temp2) | |
27850 | delete arg2; | |
27851 | } | |
27852 | return resultobj; | |
27853 | fail: | |
27854 | { | |
27855 | if (temp2) | |
27856 | delete arg2; | |
27857 | } | |
27858 | return NULL; | |
27859 | } | |
27860 | ||
27861 | ||
c32bde28 | 27862 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27863 | PyObject *resultobj; |
27864 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27865 | bool result; | |
27866 | PyObject * obj0 = 0 ; | |
27867 | char *kwnames[] = { | |
27868 | (char *) "self", NULL | |
27869 | }; | |
27870 | ||
27871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27874 | { |
27875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27876 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
27877 | ||
27878 | wxPyEndAllowThreads(__tstate); | |
27879 | if (PyErr_Occurred()) SWIG_fail; | |
27880 | } | |
4f89f6a3 RD |
27881 | { |
27882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27883 | } | |
d14a1e28 RD |
27884 | return resultobj; |
27885 | fail: | |
27886 | return NULL; | |
27887 | } | |
27888 | ||
27889 | ||
c32bde28 | 27890 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27891 | PyObject *resultobj; |
27892 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27893 | bool arg2 ; | |
27894 | PyObject * obj0 = 0 ; | |
27895 | PyObject * obj1 = 0 ; | |
27896 | char *kwnames[] = { | |
27897 | (char *) "self",(char *) "editCancelled", NULL | |
27898 | }; | |
27899 | ||
27900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27901 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27903 | { | |
27904 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27905 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27906 | } | |
d14a1e28 RD |
27907 | { |
27908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27909 | (arg1)->SetEditCanceled(arg2); | |
27910 | ||
27911 | wxPyEndAllowThreads(__tstate); | |
27912 | if (PyErr_Occurred()) SWIG_fail; | |
27913 | } | |
27914 | Py_INCREF(Py_None); resultobj = Py_None; | |
27915 | return resultobj; | |
27916 | fail: | |
27917 | return NULL; | |
27918 | } | |
27919 | ||
27920 | ||
c32bde28 | 27921 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
27922 | PyObject *resultobj; |
27923 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27924 | wxString *arg2 = 0 ; | |
ae8162c8 | 27925 | bool temp2 = false ; |
c9c7117a RD |
27926 | PyObject * obj0 = 0 ; |
27927 | PyObject * obj1 = 0 ; | |
27928 | char *kwnames[] = { | |
27929 | (char *) "self",(char *) "toolTip", NULL | |
27930 | }; | |
27931 | ||
27932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
27935 | { |
27936 | arg2 = wxString_in_helper(obj1); | |
27937 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27938 | temp2 = true; |
c9c7117a RD |
27939 | } |
27940 | { | |
27941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27942 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27943 | ||
27944 | wxPyEndAllowThreads(__tstate); | |
27945 | if (PyErr_Occurred()) SWIG_fail; | |
27946 | } | |
27947 | Py_INCREF(Py_None); resultobj = Py_None; | |
27948 | { | |
27949 | if (temp2) | |
27950 | delete arg2; | |
27951 | } | |
27952 | return resultobj; | |
27953 | fail: | |
27954 | { | |
27955 | if (temp2) | |
27956 | delete arg2; | |
27957 | } | |
27958 | return NULL; | |
27959 | } | |
27960 | ||
27961 | ||
c32bde28 | 27962 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27963 | PyObject *obj; |
27964 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27965 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
27966 | Py_INCREF(obj); | |
27967 | return Py_BuildValue((char *)""); | |
27968 | } | |
c32bde28 | 27969 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27970 | PyObject *resultobj; |
27971 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 27972 | int arg2 = (int) -1 ; |
d14a1e28 RD |
27973 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27974 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27975 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27976 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27977 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
27978 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27979 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 27980 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27981 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
27982 | wxPyTreeCtrl *result; | |
27983 | wxPoint temp3 ; | |
27984 | wxSize temp4 ; | |
ae8162c8 | 27985 | bool temp7 = false ; |
d14a1e28 | 27986 | PyObject * obj0 = 0 ; |
994141e6 | 27987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27988 | PyObject * obj2 = 0 ; |
27989 | PyObject * obj3 = 0 ; | |
994141e6 | 27990 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27991 | PyObject * obj5 = 0 ; |
27992 | PyObject * obj6 = 0 ; | |
27993 | char *kwnames[] = { | |
27994 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27995 | }; | |
27996 | ||
994141e6 | 27997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
27998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 28000 | if (obj1) { |
093d3ff1 RD |
28001 | { |
28002 | arg2 = (int)(SWIG_As_int(obj1)); | |
28003 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28004 | } | |
994141e6 | 28005 | } |
d14a1e28 RD |
28006 | if (obj2) { |
28007 | { | |
28008 | arg3 = &temp3; | |
28009 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28010 | } | |
28011 | } | |
28012 | if (obj3) { | |
28013 | { | |
994141e6 RD |
28014 | arg4 = &temp4; |
28015 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28016 | } | |
28017 | } | |
28018 | if (obj4) { | |
093d3ff1 RD |
28019 | { |
28020 | arg5 = (long)(SWIG_As_long(obj4)); | |
28021 | if (SWIG_arg_fail(5)) SWIG_fail; | |
28022 | } | |
d14a1e28 RD |
28023 | } |
28024 | if (obj5) { | |
093d3ff1 RD |
28025 | { |
28026 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28027 | if (SWIG_arg_fail(6)) SWIG_fail; | |
28028 | if (arg6 == NULL) { | |
28029 | SWIG_null_ref("wxValidator"); | |
28030 | } | |
28031 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
28032 | } |
28033 | } | |
28034 | if (obj6) { | |
28035 | { | |
28036 | arg7 = wxString_in_helper(obj6); | |
28037 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 28038 | temp7 = true; |
d14a1e28 RD |
28039 | } |
28040 | } | |
28041 | { | |
e3b71cb8 | 28042 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28044 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28045 | ||
28046 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28047 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28048 | } |
b0f7404b | 28049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
28050 | { |
28051 | if (temp7) | |
28052 | delete arg7; | |
28053 | } | |
28054 | return resultobj; | |
28055 | fail: | |
28056 | { | |
28057 | if (temp7) | |
28058 | delete arg7; | |
28059 | } | |
28060 | return NULL; | |
28061 | } | |
28062 | ||
28063 | ||
c32bde28 | 28064 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28065 | PyObject *resultobj; |
28066 | wxPyTreeCtrl *result; | |
28067 | char *kwnames[] = { | |
28068 | NULL | |
28069 | }; | |
28070 | ||
28071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
28072 | { | |
e3b71cb8 | 28073 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28075 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
28076 | ||
28077 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28078 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28079 | } |
b0f7404b | 28080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
28081 | return resultobj; |
28082 | fail: | |
28083 | return NULL; | |
28084 | } | |
28085 | ||
28086 | ||
c32bde28 | 28087 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28088 | PyObject *resultobj; |
28089 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28090 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 28091 | int arg3 = (int) -1 ; |
d14a1e28 RD |
28092 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28093 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28094 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28095 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28096 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
28097 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28098 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 28099 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28100 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
28101 | bool result; | |
28102 | wxPoint temp4 ; | |
28103 | wxSize temp5 ; | |
ae8162c8 | 28104 | bool temp8 = false ; |
d14a1e28 RD |
28105 | PyObject * obj0 = 0 ; |
28106 | PyObject * obj1 = 0 ; | |
994141e6 | 28107 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28108 | PyObject * obj3 = 0 ; |
28109 | PyObject * obj4 = 0 ; | |
994141e6 | 28110 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28111 | PyObject * obj6 = 0 ; |
28112 | PyObject * obj7 = 0 ; | |
28113 | char *kwnames[] = { | |
28114 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28115 | }; | |
28116 | ||
994141e6 | 28117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
28118 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28119 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28120 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28121 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 28122 | if (obj2) { |
093d3ff1 RD |
28123 | { |
28124 | arg3 = (int)(SWIG_As_int(obj2)); | |
28125 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28126 | } | |
994141e6 | 28127 | } |
d14a1e28 RD |
28128 | if (obj3) { |
28129 | { | |
28130 | arg4 = &temp4; | |
28131 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28132 | } | |
28133 | } | |
28134 | if (obj4) { | |
28135 | { | |
28136 | arg5 = &temp5; | |
28137 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28138 | } | |
28139 | } | |
994141e6 | 28140 | if (obj5) { |
093d3ff1 RD |
28141 | { |
28142 | arg6 = (long)(SWIG_As_long(obj5)); | |
28143 | if (SWIG_arg_fail(6)) SWIG_fail; | |
28144 | } | |
994141e6 | 28145 | } |
d14a1e28 | 28146 | if (obj6) { |
093d3ff1 RD |
28147 | { |
28148 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28149 | if (SWIG_arg_fail(7)) SWIG_fail; | |
28150 | if (arg7 == NULL) { | |
28151 | SWIG_null_ref("wxValidator"); | |
28152 | } | |
28153 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
28154 | } |
28155 | } | |
28156 | if (obj7) { | |
28157 | { | |
28158 | arg8 = wxString_in_helper(obj7); | |
28159 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 28160 | temp8 = true; |
d14a1e28 RD |
28161 | } |
28162 | } | |
28163 | { | |
28164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28165 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28166 | ||
28167 | wxPyEndAllowThreads(__tstate); | |
28168 | if (PyErr_Occurred()) SWIG_fail; | |
28169 | } | |
4f89f6a3 RD |
28170 | { |
28171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28172 | } | |
d14a1e28 RD |
28173 | { |
28174 | if (temp8) | |
28175 | delete arg8; | |
28176 | } | |
28177 | return resultobj; | |
28178 | fail: | |
28179 | { | |
28180 | if (temp8) | |
28181 | delete arg8; | |
28182 | } | |
28183 | return NULL; | |
28184 | } | |
28185 | ||
28186 | ||
c32bde28 | 28187 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28188 | PyObject *resultobj; |
28189 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28190 | PyObject *arg2 = (PyObject *) 0 ; | |
28191 | PyObject *arg3 = (PyObject *) 0 ; | |
28192 | PyObject * obj0 = 0 ; | |
28193 | PyObject * obj1 = 0 ; | |
28194 | PyObject * obj2 = 0 ; | |
28195 | char *kwnames[] = { | |
28196 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28197 | }; | |
28198 | ||
28199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28202 | arg2 = obj1; |
28203 | arg3 = obj2; | |
28204 | { | |
28205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28206 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28207 | ||
28208 | wxPyEndAllowThreads(__tstate); | |
28209 | if (PyErr_Occurred()) SWIG_fail; | |
28210 | } | |
28211 | Py_INCREF(Py_None); resultobj = Py_None; | |
28212 | return resultobj; | |
28213 | fail: | |
28214 | return NULL; | |
28215 | } | |
28216 | ||
28217 | ||
c32bde28 | 28218 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28219 | PyObject *resultobj; |
28220 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28221 | size_t result; | |
28222 | PyObject * obj0 = 0 ; | |
28223 | char *kwnames[] = { | |
28224 | (char *) "self", NULL | |
28225 | }; | |
28226 | ||
28227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28228 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28229 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28230 | { |
28231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28232 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
28233 | ||
28234 | wxPyEndAllowThreads(__tstate); | |
28235 | if (PyErr_Occurred()) SWIG_fail; | |
28236 | } | |
093d3ff1 RD |
28237 | { |
28238 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
28239 | } | |
d14a1e28 RD |
28240 | return resultobj; |
28241 | fail: | |
28242 | return NULL; | |
28243 | } | |
28244 | ||
28245 | ||
c32bde28 | 28246 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28247 | PyObject *resultobj; |
28248 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28249 | unsigned int result; | |
28250 | PyObject * obj0 = 0 ; | |
28251 | char *kwnames[] = { | |
28252 | (char *) "self", NULL | |
28253 | }; | |
28254 | ||
28255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28258 | { |
28259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28260 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
28261 | ||
28262 | wxPyEndAllowThreads(__tstate); | |
28263 | if (PyErr_Occurred()) SWIG_fail; | |
28264 | } | |
093d3ff1 RD |
28265 | { |
28266 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28267 | } | |
d14a1e28 RD |
28268 | return resultobj; |
28269 | fail: | |
28270 | return NULL; | |
28271 | } | |
28272 | ||
28273 | ||
c32bde28 | 28274 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28275 | PyObject *resultobj; |
28276 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28277 | unsigned int arg2 ; | |
28278 | PyObject * obj0 = 0 ; | |
28279 | PyObject * obj1 = 0 ; | |
28280 | char *kwnames[] = { | |
28281 | (char *) "self",(char *) "indent", NULL | |
28282 | }; | |
28283 | ||
28284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28287 | { | |
28288 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28289 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28290 | } | |
d14a1e28 RD |
28291 | { |
28292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28293 | (arg1)->SetIndent(arg2); | |
28294 | ||
28295 | wxPyEndAllowThreads(__tstate); | |
28296 | if (PyErr_Occurred()) SWIG_fail; | |
28297 | } | |
28298 | Py_INCREF(Py_None); resultobj = Py_None; | |
28299 | return resultobj; | |
28300 | fail: | |
28301 | return NULL; | |
28302 | } | |
28303 | ||
28304 | ||
c32bde28 | 28305 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28306 | PyObject *resultobj; |
28307 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28308 | unsigned int result; | |
28309 | PyObject * obj0 = 0 ; | |
28310 | char *kwnames[] = { | |
28311 | (char *) "self", NULL | |
28312 | }; | |
28313 | ||
28314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28317 | { |
28318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28319 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
28320 | ||
28321 | wxPyEndAllowThreads(__tstate); | |
28322 | if (PyErr_Occurred()) SWIG_fail; | |
28323 | } | |
093d3ff1 RD |
28324 | { |
28325 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28326 | } | |
d14a1e28 RD |
28327 | return resultobj; |
28328 | fail: | |
28329 | return NULL; | |
28330 | } | |
28331 | ||
28332 | ||
c32bde28 | 28333 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28334 | PyObject *resultobj; |
28335 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28336 | unsigned int arg2 ; | |
28337 | PyObject * obj0 = 0 ; | |
28338 | PyObject * obj1 = 0 ; | |
28339 | char *kwnames[] = { | |
28340 | (char *) "self",(char *) "spacing", NULL | |
28341 | }; | |
28342 | ||
28343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28344 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28345 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28346 | { | |
28347 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28348 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28349 | } | |
d14a1e28 RD |
28350 | { |
28351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28352 | (arg1)->SetSpacing(arg2); | |
28353 | ||
28354 | wxPyEndAllowThreads(__tstate); | |
28355 | if (PyErr_Occurred()) SWIG_fail; | |
28356 | } | |
28357 | Py_INCREF(Py_None); resultobj = Py_None; | |
28358 | return resultobj; | |
28359 | fail: | |
28360 | return NULL; | |
28361 | } | |
28362 | ||
28363 | ||
c32bde28 | 28364 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28365 | PyObject *resultobj; |
28366 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28367 | wxImageList *result; | |
28368 | PyObject * obj0 = 0 ; | |
28369 | char *kwnames[] = { | |
28370 | (char *) "self", NULL | |
28371 | }; | |
28372 | ||
28373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28376 | { |
28377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28378 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
28379 | ||
28380 | wxPyEndAllowThreads(__tstate); | |
28381 | if (PyErr_Occurred()) SWIG_fail; | |
28382 | } | |
28383 | { | |
412d302d | 28384 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28385 | } |
28386 | return resultobj; | |
28387 | fail: | |
28388 | return NULL; | |
28389 | } | |
28390 | ||
28391 | ||
c32bde28 | 28392 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28393 | PyObject *resultobj; |
28394 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28395 | wxImageList *result; | |
28396 | PyObject * obj0 = 0 ; | |
28397 | char *kwnames[] = { | |
28398 | (char *) "self", NULL | |
28399 | }; | |
28400 | ||
28401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28404 | { |
28405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28406 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
28407 | ||
28408 | wxPyEndAllowThreads(__tstate); | |
28409 | if (PyErr_Occurred()) SWIG_fail; | |
28410 | } | |
28411 | { | |
412d302d | 28412 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28413 | } |
28414 | return resultobj; | |
28415 | fail: | |
28416 | return NULL; | |
28417 | } | |
28418 | ||
28419 | ||
c32bde28 | 28420 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28421 | PyObject *resultobj; |
28422 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28423 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28424 | PyObject * obj0 = 0 ; | |
28425 | PyObject * obj1 = 0 ; | |
28426 | char *kwnames[] = { | |
28427 | (char *) "self",(char *) "imageList", NULL | |
28428 | }; | |
28429 | ||
28430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28431 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28433 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28434 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28435 | { |
28436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28437 | (arg1)->SetImageList(arg2); | |
28438 | ||
28439 | wxPyEndAllowThreads(__tstate); | |
28440 | if (PyErr_Occurred()) SWIG_fail; | |
28441 | } | |
28442 | Py_INCREF(Py_None); resultobj = Py_None; | |
28443 | return resultobj; | |
28444 | fail: | |
28445 | return NULL; | |
28446 | } | |
28447 | ||
28448 | ||
c32bde28 | 28449 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28450 | PyObject *resultobj; |
28451 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28452 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28453 | PyObject * obj0 = 0 ; | |
28454 | PyObject * obj1 = 0 ; | |
28455 | char *kwnames[] = { | |
28456 | (char *) "self",(char *) "imageList", NULL | |
28457 | }; | |
28458 | ||
28459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28462 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28463 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28464 | { |
28465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28466 | (arg1)->SetStateImageList(arg2); | |
28467 | ||
28468 | wxPyEndAllowThreads(__tstate); | |
28469 | if (PyErr_Occurred()) SWIG_fail; | |
28470 | } | |
28471 | Py_INCREF(Py_None); resultobj = Py_None; | |
28472 | return resultobj; | |
28473 | fail: | |
28474 | return NULL; | |
28475 | } | |
28476 | ||
28477 | ||
c32bde28 | 28478 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28479 | PyObject *resultobj; |
28480 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28481 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28482 | PyObject * obj0 = 0 ; | |
28483 | PyObject * obj1 = 0 ; | |
28484 | char *kwnames[] = { | |
28485 | (char *) "self",(char *) "imageList", NULL | |
28486 | }; | |
28487 | ||
28488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28491 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28492 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28493 | { |
28494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28495 | (arg1)->AssignImageList(arg2); | |
28496 | ||
28497 | wxPyEndAllowThreads(__tstate); | |
28498 | if (PyErr_Occurred()) SWIG_fail; | |
28499 | } | |
28500 | Py_INCREF(Py_None); resultobj = Py_None; | |
28501 | return resultobj; | |
28502 | fail: | |
28503 | return NULL; | |
28504 | } | |
28505 | ||
28506 | ||
c32bde28 | 28507 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28508 | PyObject *resultobj; |
28509 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28510 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28511 | PyObject * obj0 = 0 ; | |
28512 | PyObject * obj1 = 0 ; | |
28513 | char *kwnames[] = { | |
28514 | (char *) "self",(char *) "imageList", NULL | |
28515 | }; | |
28516 | ||
28517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28520 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28521 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28522 | { |
28523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28524 | (arg1)->AssignStateImageList(arg2); | |
28525 | ||
28526 | wxPyEndAllowThreads(__tstate); | |
28527 | if (PyErr_Occurred()) SWIG_fail; | |
28528 | } | |
28529 | Py_INCREF(Py_None); resultobj = Py_None; | |
28530 | return resultobj; | |
28531 | fail: | |
28532 | return NULL; | |
28533 | } | |
28534 | ||
28535 | ||
c32bde28 | 28536 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28537 | PyObject *resultobj; |
28538 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28539 | wxTreeItemId *arg2 = 0 ; | |
28540 | wxString result; | |
28541 | PyObject * obj0 = 0 ; | |
28542 | PyObject * obj1 = 0 ; | |
28543 | char *kwnames[] = { | |
28544 | (char *) "self",(char *) "item", NULL | |
28545 | }; | |
28546 | ||
28547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28550 | { | |
28551 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28552 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28553 | if (arg2 == NULL) { | |
28554 | SWIG_null_ref("wxTreeItemId"); | |
28555 | } | |
28556 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28557 | } |
28558 | { | |
28559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28560 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
28561 | ||
28562 | wxPyEndAllowThreads(__tstate); | |
28563 | if (PyErr_Occurred()) SWIG_fail; | |
28564 | } | |
28565 | { | |
28566 | #if wxUSE_UNICODE | |
28567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28568 | #else | |
28569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28570 | #endif | |
28571 | } | |
28572 | return resultobj; | |
28573 | fail: | |
28574 | return NULL; | |
28575 | } | |
28576 | ||
28577 | ||
c32bde28 | 28578 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28579 | PyObject *resultobj; |
28580 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28581 | wxTreeItemId *arg2 = 0 ; | |
093d3ff1 | 28582 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d14a1e28 RD |
28583 | int result; |
28584 | PyObject * obj0 = 0 ; | |
28585 | PyObject * obj1 = 0 ; | |
994141e6 | 28586 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28587 | char *kwnames[] = { |
28588 | (char *) "self",(char *) "item",(char *) "which", NULL | |
28589 | }; | |
28590 | ||
994141e6 | 28591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28594 | { | |
28595 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28596 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28597 | if (arg2 == NULL) { | |
28598 | SWIG_null_ref("wxTreeItemId"); | |
28599 | } | |
28600 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 28601 | } |
994141e6 | 28602 | if (obj2) { |
093d3ff1 RD |
28603 | { |
28604 | arg3 = (wxTreeItemIcon)(SWIG_As_int(obj2)); | |
28605 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28606 | } | |
994141e6 | 28607 | } |
d14a1e28 RD |
28608 | { |
28609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28610 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
28611 | ||
28612 | wxPyEndAllowThreads(__tstate); | |
28613 | if (PyErr_Occurred()) SWIG_fail; | |
28614 | } | |
093d3ff1 RD |
28615 | { |
28616 | resultobj = SWIG_From_int((int)(result)); | |
28617 | } | |
d14a1e28 RD |
28618 | return resultobj; |
28619 | fail: | |
28620 | return NULL; | |
28621 | } | |
28622 | ||
28623 | ||
c32bde28 | 28624 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28625 | PyObject *resultobj; |
28626 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28627 | wxTreeItemId *arg2 = 0 ; | |
28628 | wxPyTreeItemData *result; | |
28629 | PyObject * obj0 = 0 ; | |
28630 | PyObject * obj1 = 0 ; | |
28631 | char *kwnames[] = { | |
28632 | (char *) "self",(char *) "item", NULL | |
28633 | }; | |
28634 | ||
28635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28638 | { | |
28639 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28640 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28641 | if (arg2 == NULL) { | |
28642 | SWIG_null_ref("wxTreeItemId"); | |
28643 | } | |
28644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28645 | } |
28646 | { | |
28647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28648 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
28649 | ||
28650 | wxPyEndAllowThreads(__tstate); | |
28651 | if (PyErr_Occurred()) SWIG_fail; | |
28652 | } | |
15afbcd0 | 28653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
28654 | return resultobj; |
28655 | fail: | |
28656 | return NULL; | |
28657 | } | |
28658 | ||
28659 | ||
c32bde28 | 28660 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28661 | PyObject *resultobj; |
28662 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28663 | wxTreeItemId *arg2 = 0 ; | |
28664 | PyObject *result; | |
28665 | PyObject * obj0 = 0 ; | |
28666 | PyObject * obj1 = 0 ; | |
28667 | char *kwnames[] = { | |
28668 | (char *) "self",(char *) "item", NULL | |
28669 | }; | |
28670 | ||
28671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28674 | { | |
28675 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28676 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28677 | if (arg2 == NULL) { | |
28678 | SWIG_null_ref("wxTreeItemId"); | |
28679 | } | |
28680 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28681 | } |
28682 | { | |
28683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28684 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
28685 | ||
28686 | wxPyEndAllowThreads(__tstate); | |
28687 | if (PyErr_Occurred()) SWIG_fail; | |
28688 | } | |
28689 | resultobj = result; | |
28690 | return resultobj; | |
28691 | fail: | |
28692 | return NULL; | |
28693 | } | |
28694 | ||
28695 | ||
c32bde28 | 28696 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28697 | PyObject *resultobj; |
28698 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28699 | wxTreeItemId *arg2 = 0 ; | |
28700 | wxColour result; | |
28701 | PyObject * obj0 = 0 ; | |
28702 | PyObject * obj1 = 0 ; | |
28703 | char *kwnames[] = { | |
28704 | (char *) "self",(char *) "item", NULL | |
28705 | }; | |
28706 | ||
28707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28710 | { | |
28711 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28712 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28713 | if (arg2 == NULL) { | |
28714 | SWIG_null_ref("wxTreeItemId"); | |
28715 | } | |
28716 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28717 | } |
28718 | { | |
28719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28720 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
28721 | ||
28722 | wxPyEndAllowThreads(__tstate); | |
28723 | if (PyErr_Occurred()) SWIG_fail; | |
28724 | } | |
28725 | { | |
28726 | wxColour * resultptr; | |
093d3ff1 | 28727 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 28728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
28729 | } |
28730 | return resultobj; | |
28731 | fail: | |
28732 | return NULL; | |
28733 | } | |
28734 | ||
28735 | ||
c32bde28 | 28736 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28737 | PyObject *resultobj; |
28738 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28739 | wxTreeItemId *arg2 = 0 ; | |
28740 | wxColour result; | |
28741 | PyObject * obj0 = 0 ; | |
28742 | PyObject * obj1 = 0 ; | |
28743 | char *kwnames[] = { | |
28744 | (char *) "self",(char *) "item", NULL | |
28745 | }; | |
28746 | ||
28747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28750 | { | |
28751 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28753 | if (arg2 == NULL) { | |
28754 | SWIG_null_ref("wxTreeItemId"); | |
28755 | } | |
28756 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28757 | } |
28758 | { | |
28759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28760 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
28761 | ||
28762 | wxPyEndAllowThreads(__tstate); | |
28763 | if (PyErr_Occurred()) SWIG_fail; | |
28764 | } | |
28765 | { | |
28766 | wxColour * resultptr; | |
093d3ff1 | 28767 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 28768 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
28769 | } |
28770 | return resultobj; | |
28771 | fail: | |
28772 | return NULL; | |
28773 | } | |
28774 | ||
28775 | ||
c32bde28 | 28776 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28777 | PyObject *resultobj; |
28778 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28779 | wxTreeItemId *arg2 = 0 ; | |
28780 | wxFont result; | |
28781 | PyObject * obj0 = 0 ; | |
28782 | PyObject * obj1 = 0 ; | |
28783 | char *kwnames[] = { | |
28784 | (char *) "self",(char *) "item", NULL | |
28785 | }; | |
28786 | ||
28787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28790 | { | |
28791 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28792 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28793 | if (arg2 == NULL) { | |
28794 | SWIG_null_ref("wxTreeItemId"); | |
28795 | } | |
28796 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28797 | } |
28798 | { | |
28799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28800 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
28801 | ||
28802 | wxPyEndAllowThreads(__tstate); | |
28803 | if (PyErr_Occurred()) SWIG_fail; | |
28804 | } | |
28805 | { | |
28806 | wxFont * resultptr; | |
093d3ff1 | 28807 | resultptr = new wxFont((wxFont &)(result)); |
15afbcd0 | 28808 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
28809 | } |
28810 | return resultobj; | |
28811 | fail: | |
28812 | return NULL; | |
28813 | } | |
28814 | ||
28815 | ||
c32bde28 | 28816 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28817 | PyObject *resultobj; |
28818 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28819 | wxTreeItemId *arg2 = 0 ; | |
28820 | wxString *arg3 = 0 ; | |
ae8162c8 | 28821 | bool temp3 = false ; |
d14a1e28 RD |
28822 | PyObject * obj0 = 0 ; |
28823 | PyObject * obj1 = 0 ; | |
28824 | PyObject * obj2 = 0 ; | |
28825 | char *kwnames[] = { | |
28826 | (char *) "self",(char *) "item",(char *) "text", NULL | |
28827 | }; | |
28828 | ||
28829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28832 | { | |
28833 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28834 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28835 | if (arg2 == NULL) { | |
28836 | SWIG_null_ref("wxTreeItemId"); | |
28837 | } | |
28838 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28839 | } |
28840 | { | |
28841 | arg3 = wxString_in_helper(obj2); | |
28842 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 28843 | temp3 = true; |
d14a1e28 RD |
28844 | } |
28845 | { | |
28846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28847 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
28848 | ||
28849 | wxPyEndAllowThreads(__tstate); | |
28850 | if (PyErr_Occurred()) SWIG_fail; | |
28851 | } | |
28852 | Py_INCREF(Py_None); resultobj = Py_None; | |
28853 | { | |
28854 | if (temp3) | |
28855 | delete arg3; | |
28856 | } | |
28857 | return resultobj; | |
28858 | fail: | |
28859 | { | |
28860 | if (temp3) | |
28861 | delete arg3; | |
28862 | } | |
28863 | return NULL; | |
28864 | } | |
28865 | ||
28866 | ||
c32bde28 | 28867 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28868 | PyObject *resultobj; |
28869 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28870 | wxTreeItemId *arg2 = 0 ; | |
28871 | int arg3 ; | |
093d3ff1 | 28872 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d14a1e28 RD |
28873 | PyObject * obj0 = 0 ; |
28874 | PyObject * obj1 = 0 ; | |
994141e6 RD |
28875 | PyObject * obj2 = 0 ; |
28876 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
28877 | char *kwnames[] = { |
28878 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
28879 | }; | |
28880 | ||
994141e6 | 28881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
28882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28884 | { | |
28885 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28886 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28887 | if (arg2 == NULL) { | |
28888 | SWIG_null_ref("wxTreeItemId"); | |
28889 | } | |
28890 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28891 | } | |
28892 | { | |
28893 | arg3 = (int)(SWIG_As_int(obj2)); | |
28894 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28895 | } | |
994141e6 | 28896 | if (obj3) { |
093d3ff1 RD |
28897 | { |
28898 | arg4 = (wxTreeItemIcon)(SWIG_As_int(obj3)); | |
28899 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28900 | } | |
994141e6 | 28901 | } |
d14a1e28 RD |
28902 | { |
28903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28904 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
28905 | ||
28906 | wxPyEndAllowThreads(__tstate); | |
28907 | if (PyErr_Occurred()) SWIG_fail; | |
28908 | } | |
28909 | Py_INCREF(Py_None); resultobj = Py_None; | |
28910 | return resultobj; | |
28911 | fail: | |
28912 | return NULL; | |
28913 | } | |
28914 | ||
28915 | ||
c32bde28 | 28916 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28917 | PyObject *resultobj; |
28918 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28919 | wxTreeItemId *arg2 = 0 ; | |
28920 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
28921 | PyObject * obj0 = 0 ; | |
28922 | PyObject * obj1 = 0 ; | |
28923 | PyObject * obj2 = 0 ; | |
28924 | char *kwnames[] = { | |
28925 | (char *) "self",(char *) "item",(char *) "data", NULL | |
28926 | }; | |
28927 | ||
28928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28931 | { | |
28932 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28933 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28934 | if (arg2 == NULL) { | |
28935 | SWIG_null_ref("wxTreeItemId"); | |
28936 | } | |
28937 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 28938 | } |
093d3ff1 RD |
28939 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28940 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
28941 | { |
28942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28943 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28944 | ||
28945 | wxPyEndAllowThreads(__tstate); | |
28946 | if (PyErr_Occurred()) SWIG_fail; | |
28947 | } | |
28948 | Py_INCREF(Py_None); resultobj = Py_None; | |
28949 | return resultobj; | |
28950 | fail: | |
28951 | return NULL; | |
28952 | } | |
28953 | ||
28954 | ||
c32bde28 | 28955 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28956 | PyObject *resultobj; |
28957 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28958 | wxTreeItemId *arg2 = 0 ; | |
28959 | PyObject *arg3 = (PyObject *) 0 ; | |
28960 | PyObject * obj0 = 0 ; | |
28961 | PyObject * obj1 = 0 ; | |
28962 | PyObject * obj2 = 0 ; | |
28963 | char *kwnames[] = { | |
28964 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
28965 | }; | |
28966 | ||
28967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28970 | { | |
28971 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28972 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28973 | if (arg2 == NULL) { | |
28974 | SWIG_null_ref("wxTreeItemId"); | |
28975 | } | |
28976 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28977 | } |
28978 | arg3 = obj2; | |
28979 | { | |
28980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28981 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28982 | ||
28983 | wxPyEndAllowThreads(__tstate); | |
28984 | if (PyErr_Occurred()) SWIG_fail; | |
28985 | } | |
28986 | Py_INCREF(Py_None); resultobj = Py_None; | |
28987 | return resultobj; | |
28988 | fail: | |
28989 | return NULL; | |
28990 | } | |
28991 | ||
28992 | ||
c32bde28 | 28993 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28994 | PyObject *resultobj; |
28995 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28996 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28997 | bool arg3 = (bool) true ; |
d14a1e28 RD |
28998 | PyObject * obj0 = 0 ; |
28999 | PyObject * obj1 = 0 ; | |
29000 | PyObject * obj2 = 0 ; | |
29001 | char *kwnames[] = { | |
29002 | (char *) "self",(char *) "item",(char *) "has", NULL | |
29003 | }; | |
29004 | ||
29005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29008 | { | |
29009 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29011 | if (arg2 == NULL) { | |
29012 | SWIG_null_ref("wxTreeItemId"); | |
29013 | } | |
29014 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29015 | } |
29016 | if (obj2) { | |
093d3ff1 RD |
29017 | { |
29018 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29019 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29020 | } | |
d14a1e28 RD |
29021 | } |
29022 | { | |
29023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29024 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
29025 | ||
29026 | wxPyEndAllowThreads(__tstate); | |
29027 | if (PyErr_Occurred()) SWIG_fail; | |
29028 | } | |
29029 | Py_INCREF(Py_None); resultobj = Py_None; | |
29030 | return resultobj; | |
29031 | fail: | |
29032 | return NULL; | |
29033 | } | |
29034 | ||
29035 | ||
c32bde28 | 29036 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29037 | PyObject *resultobj; |
29038 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29039 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29040 | bool arg3 = (bool) true ; |
d14a1e28 RD |
29041 | PyObject * obj0 = 0 ; |
29042 | PyObject * obj1 = 0 ; | |
29043 | PyObject * obj2 = 0 ; | |
29044 | char *kwnames[] = { | |
29045 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
29046 | }; | |
29047 | ||
29048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29049 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29050 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29051 | { | |
29052 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29053 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29054 | if (arg2 == NULL) { | |
29055 | SWIG_null_ref("wxTreeItemId"); | |
29056 | } | |
29057 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29058 | } |
29059 | if (obj2) { | |
093d3ff1 RD |
29060 | { |
29061 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29062 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29063 | } | |
d14a1e28 RD |
29064 | } |
29065 | { | |
29066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29067 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
29068 | ||
29069 | wxPyEndAllowThreads(__tstate); | |
29070 | if (PyErr_Occurred()) SWIG_fail; | |
29071 | } | |
29072 | Py_INCREF(Py_None); resultobj = Py_None; | |
29073 | return resultobj; | |
29074 | fail: | |
29075 | return NULL; | |
29076 | } | |
29077 | ||
29078 | ||
fef4c27a RD |
29079 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
29080 | PyObject *resultobj; | |
29081 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29082 | wxTreeItemId *arg2 = 0 ; | |
29083 | bool arg3 = (bool) true ; | |
29084 | PyObject * obj0 = 0 ; | |
29085 | PyObject * obj1 = 0 ; | |
29086 | PyObject * obj2 = 0 ; | |
29087 | char *kwnames[] = { | |
29088 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
29089 | }; | |
29090 | ||
29091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29094 | { | |
29095 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29096 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29097 | if (arg2 == NULL) { | |
29098 | SWIG_null_ref("wxTreeItemId"); | |
29099 | } | |
29100 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29101 | } | |
29102 | if (obj2) { | |
29103 | { | |
29104 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29105 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29106 | } | |
29107 | } | |
29108 | { | |
29109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29110 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
29111 | ||
29112 | wxPyEndAllowThreads(__tstate); | |
29113 | if (PyErr_Occurred()) SWIG_fail; | |
29114 | } | |
29115 | Py_INCREF(Py_None); resultobj = Py_None; | |
29116 | return resultobj; | |
29117 | fail: | |
29118 | return NULL; | |
29119 | } | |
29120 | ||
29121 | ||
c32bde28 | 29122 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29123 | PyObject *resultobj; |
29124 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29125 | wxTreeItemId *arg2 = 0 ; | |
29126 | wxColour *arg3 = 0 ; | |
29127 | wxColour temp3 ; | |
29128 | PyObject * obj0 = 0 ; | |
29129 | PyObject * obj1 = 0 ; | |
29130 | PyObject * obj2 = 0 ; | |
29131 | char *kwnames[] = { | |
29132 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29133 | }; | |
29134 | ||
29135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29138 | { | |
29139 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29140 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29141 | if (arg2 == NULL) { | |
29142 | SWIG_null_ref("wxTreeItemId"); | |
29143 | } | |
29144 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29145 | } |
29146 | { | |
29147 | arg3 = &temp3; | |
29148 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29149 | } | |
29150 | { | |
29151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29152 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29153 | ||
29154 | wxPyEndAllowThreads(__tstate); | |
29155 | if (PyErr_Occurred()) SWIG_fail; | |
29156 | } | |
29157 | Py_INCREF(Py_None); resultobj = Py_None; | |
29158 | return resultobj; | |
29159 | fail: | |
29160 | return NULL; | |
29161 | } | |
29162 | ||
29163 | ||
c32bde28 | 29164 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29165 | PyObject *resultobj; |
29166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29167 | wxTreeItemId *arg2 = 0 ; | |
29168 | wxColour *arg3 = 0 ; | |
29169 | wxColour temp3 ; | |
29170 | PyObject * obj0 = 0 ; | |
29171 | PyObject * obj1 = 0 ; | |
29172 | PyObject * obj2 = 0 ; | |
29173 | char *kwnames[] = { | |
29174 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29175 | }; | |
29176 | ||
29177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29180 | { | |
29181 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29182 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29183 | if (arg2 == NULL) { | |
29184 | SWIG_null_ref("wxTreeItemId"); | |
29185 | } | |
29186 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29187 | } |
29188 | { | |
29189 | arg3 = &temp3; | |
29190 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29191 | } | |
29192 | { | |
29193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29194 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29195 | ||
29196 | wxPyEndAllowThreads(__tstate); | |
29197 | if (PyErr_Occurred()) SWIG_fail; | |
29198 | } | |
29199 | Py_INCREF(Py_None); resultobj = Py_None; | |
29200 | return resultobj; | |
29201 | fail: | |
29202 | return NULL; | |
29203 | } | |
29204 | ||
29205 | ||
c32bde28 | 29206 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29207 | PyObject *resultobj; |
29208 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29209 | wxTreeItemId *arg2 = 0 ; | |
29210 | wxFont *arg3 = 0 ; | |
29211 | PyObject * obj0 = 0 ; | |
29212 | PyObject * obj1 = 0 ; | |
29213 | PyObject * obj2 = 0 ; | |
29214 | char *kwnames[] = { | |
29215 | (char *) "self",(char *) "item",(char *) "font", NULL | |
29216 | }; | |
29217 | ||
29218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29219 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29220 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29221 | { | |
29222 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29223 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29224 | if (arg2 == NULL) { | |
29225 | SWIG_null_ref("wxTreeItemId"); | |
29226 | } | |
29227 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 29228 | } |
093d3ff1 RD |
29229 | { |
29230 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
29231 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29232 | if (arg3 == NULL) { | |
29233 | SWIG_null_ref("wxFont"); | |
29234 | } | |
29235 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
29236 | } |
29237 | { | |
29238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29239 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
29240 | ||
29241 | wxPyEndAllowThreads(__tstate); | |
29242 | if (PyErr_Occurred()) SWIG_fail; | |
29243 | } | |
29244 | Py_INCREF(Py_None); resultobj = Py_None; | |
29245 | return resultobj; | |
29246 | fail: | |
29247 | return NULL; | |
29248 | } | |
29249 | ||
29250 | ||
c32bde28 | 29251 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29252 | PyObject *resultobj; |
29253 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29254 | wxTreeItemId *arg2 = 0 ; | |
29255 | bool result; | |
29256 | PyObject * obj0 = 0 ; | |
29257 | PyObject * obj1 = 0 ; | |
29258 | char *kwnames[] = { | |
29259 | (char *) "self",(char *) "item", NULL | |
29260 | }; | |
29261 | ||
29262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29263 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29264 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29265 | { | |
29266 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29267 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29268 | if (arg2 == NULL) { | |
29269 | SWIG_null_ref("wxTreeItemId"); | |
29270 | } | |
29271 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29272 | } |
29273 | { | |
29274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29275 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
29276 | ||
29277 | wxPyEndAllowThreads(__tstate); | |
29278 | if (PyErr_Occurred()) SWIG_fail; | |
29279 | } | |
4f89f6a3 RD |
29280 | { |
29281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29282 | } | |
d14a1e28 RD |
29283 | return resultobj; |
29284 | fail: | |
29285 | return NULL; | |
29286 | } | |
29287 | ||
29288 | ||
c32bde28 | 29289 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29290 | PyObject *resultobj; |
29291 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29292 | wxTreeItemId *arg2 = 0 ; | |
29293 | bool result; | |
29294 | PyObject * obj0 = 0 ; | |
29295 | PyObject * obj1 = 0 ; | |
29296 | char *kwnames[] = { | |
29297 | (char *) "self",(char *) "item", NULL | |
29298 | }; | |
29299 | ||
29300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29303 | { | |
29304 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29305 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29306 | if (arg2 == NULL) { | |
29307 | SWIG_null_ref("wxTreeItemId"); | |
29308 | } | |
29309 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29310 | } |
29311 | { | |
29312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29313 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
29314 | ||
29315 | wxPyEndAllowThreads(__tstate); | |
29316 | if (PyErr_Occurred()) SWIG_fail; | |
29317 | } | |
4f89f6a3 RD |
29318 | { |
29319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29320 | } | |
d14a1e28 RD |
29321 | return resultobj; |
29322 | fail: | |
29323 | return NULL; | |
29324 | } | |
29325 | ||
29326 | ||
c32bde28 | 29327 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29328 | PyObject *resultobj; |
29329 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29330 | wxTreeItemId *arg2 = 0 ; | |
29331 | bool result; | |
29332 | PyObject * obj0 = 0 ; | |
29333 | PyObject * obj1 = 0 ; | |
29334 | char *kwnames[] = { | |
29335 | (char *) "self",(char *) "item", NULL | |
29336 | }; | |
29337 | ||
29338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29341 | { | |
29342 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29343 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29344 | if (arg2 == NULL) { | |
29345 | SWIG_null_ref("wxTreeItemId"); | |
29346 | } | |
29347 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29348 | } |
29349 | { | |
29350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29351 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
29352 | ||
29353 | wxPyEndAllowThreads(__tstate); | |
29354 | if (PyErr_Occurred()) SWIG_fail; | |
29355 | } | |
4f89f6a3 RD |
29356 | { |
29357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29358 | } | |
d14a1e28 RD |
29359 | return resultobj; |
29360 | fail: | |
29361 | return NULL; | |
29362 | } | |
29363 | ||
29364 | ||
c32bde28 | 29365 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29366 | PyObject *resultobj; |
29367 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29368 | wxTreeItemId *arg2 = 0 ; | |
29369 | bool result; | |
29370 | PyObject * obj0 = 0 ; | |
29371 | PyObject * obj1 = 0 ; | |
29372 | char *kwnames[] = { | |
29373 | (char *) "self",(char *) "item", NULL | |
29374 | }; | |
29375 | ||
29376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29379 | { | |
29380 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29381 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29382 | if (arg2 == NULL) { | |
29383 | SWIG_null_ref("wxTreeItemId"); | |
29384 | } | |
29385 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29386 | } |
29387 | { | |
29388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29389 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
29390 | ||
29391 | wxPyEndAllowThreads(__tstate); | |
29392 | if (PyErr_Occurred()) SWIG_fail; | |
29393 | } | |
4f89f6a3 RD |
29394 | { |
29395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29396 | } | |
d14a1e28 RD |
29397 | return resultobj; |
29398 | fail: | |
29399 | return NULL; | |
29400 | } | |
29401 | ||
29402 | ||
c32bde28 | 29403 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29404 | PyObject *resultobj; |
29405 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29406 | wxTreeItemId *arg2 = 0 ; | |
29407 | bool result; | |
29408 | PyObject * obj0 = 0 ; | |
29409 | PyObject * obj1 = 0 ; | |
29410 | char *kwnames[] = { | |
29411 | (char *) "self",(char *) "item", NULL | |
29412 | }; | |
29413 | ||
29414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29417 | { | |
29418 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29420 | if (arg2 == NULL) { | |
29421 | SWIG_null_ref("wxTreeItemId"); | |
29422 | } | |
29423 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29424 | } |
29425 | { | |
29426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29427 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
29428 | ||
29429 | wxPyEndAllowThreads(__tstate); | |
29430 | if (PyErr_Occurred()) SWIG_fail; | |
29431 | } | |
4f89f6a3 RD |
29432 | { |
29433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29434 | } | |
d14a1e28 RD |
29435 | return resultobj; |
29436 | fail: | |
29437 | return NULL; | |
29438 | } | |
29439 | ||
29440 | ||
c32bde28 | 29441 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29442 | PyObject *resultobj; |
29443 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29444 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29445 | bool arg3 = (bool) true ; |
d14a1e28 RD |
29446 | size_t result; |
29447 | PyObject * obj0 = 0 ; | |
29448 | PyObject * obj1 = 0 ; | |
29449 | PyObject * obj2 = 0 ; | |
29450 | char *kwnames[] = { | |
29451 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
29452 | }; | |
29453 | ||
29454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29457 | { | |
29458 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29459 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29460 | if (arg2 == NULL) { | |
29461 | SWIG_null_ref("wxTreeItemId"); | |
29462 | } | |
29463 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29464 | } |
29465 | if (obj2) { | |
093d3ff1 RD |
29466 | { |
29467 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29468 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29469 | } | |
d14a1e28 RD |
29470 | } |
29471 | { | |
29472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29473 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
29474 | ||
29475 | wxPyEndAllowThreads(__tstate); | |
29476 | if (PyErr_Occurred()) SWIG_fail; | |
29477 | } | |
093d3ff1 RD |
29478 | { |
29479 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
29480 | } | |
d14a1e28 RD |
29481 | return resultobj; |
29482 | fail: | |
29483 | return NULL; | |
29484 | } | |
29485 | ||
29486 | ||
c32bde28 | 29487 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29488 | PyObject *resultobj; |
29489 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29490 | wxTreeItemId result; | |
29491 | PyObject * obj0 = 0 ; | |
29492 | char *kwnames[] = { | |
29493 | (char *) "self", NULL | |
29494 | }; | |
29495 | ||
29496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29497 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29498 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29499 | { |
29500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29501 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
29502 | ||
29503 | wxPyEndAllowThreads(__tstate); | |
29504 | if (PyErr_Occurred()) SWIG_fail; | |
29505 | } | |
29506 | { | |
29507 | wxTreeItemId * resultptr; | |
093d3ff1 | 29508 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29509 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29510 | } |
29511 | return resultobj; | |
29512 | fail: | |
29513 | return NULL; | |
29514 | } | |
29515 | ||
29516 | ||
c32bde28 | 29517 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29518 | PyObject *resultobj; |
29519 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29520 | wxTreeItemId result; | |
29521 | PyObject * obj0 = 0 ; | |
29522 | char *kwnames[] = { | |
29523 | (char *) "self", NULL | |
29524 | }; | |
29525 | ||
29526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29529 | { |
29530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29531 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
29532 | ||
29533 | wxPyEndAllowThreads(__tstate); | |
29534 | if (PyErr_Occurred()) SWIG_fail; | |
29535 | } | |
29536 | { | |
29537 | wxTreeItemId * resultptr; | |
093d3ff1 | 29538 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29539 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29540 | } |
29541 | return resultobj; | |
29542 | fail: | |
29543 | return NULL; | |
29544 | } | |
29545 | ||
29546 | ||
c32bde28 | 29547 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29548 | PyObject *resultobj; |
29549 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29550 | PyObject *result; | |
29551 | PyObject * obj0 = 0 ; | |
29552 | char *kwnames[] = { | |
29553 | (char *) "self", NULL | |
29554 | }; | |
29555 | ||
29556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29559 | { |
29560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29561 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
29562 | ||
29563 | wxPyEndAllowThreads(__tstate); | |
29564 | if (PyErr_Occurred()) SWIG_fail; | |
29565 | } | |
29566 | resultobj = result; | |
29567 | return resultobj; | |
29568 | fail: | |
29569 | return NULL; | |
29570 | } | |
29571 | ||
29572 | ||
c32bde28 | 29573 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29574 | PyObject *resultobj; |
29575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29576 | wxTreeItemId *arg2 = 0 ; | |
29577 | wxTreeItemId result; | |
29578 | PyObject * obj0 = 0 ; | |
29579 | PyObject * obj1 = 0 ; | |
29580 | char *kwnames[] = { | |
29581 | (char *) "self",(char *) "item", NULL | |
29582 | }; | |
29583 | ||
29584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29585 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29587 | { | |
29588 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29589 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29590 | if (arg2 == NULL) { | |
29591 | SWIG_null_ref("wxTreeItemId"); | |
29592 | } | |
29593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29594 | } |
29595 | { | |
29596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29597 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
29598 | ||
29599 | wxPyEndAllowThreads(__tstate); | |
29600 | if (PyErr_Occurred()) SWIG_fail; | |
29601 | } | |
29602 | { | |
29603 | wxTreeItemId * resultptr; | |
093d3ff1 | 29604 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29605 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29606 | } |
29607 | return resultobj; | |
29608 | fail: | |
29609 | return NULL; | |
29610 | } | |
29611 | ||
29612 | ||
c32bde28 | 29613 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29614 | PyObject *resultobj; |
29615 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29616 | wxTreeItemId *arg2 = 0 ; | |
29617 | PyObject *result; | |
29618 | PyObject * obj0 = 0 ; | |
29619 | PyObject * obj1 = 0 ; | |
29620 | char *kwnames[] = { | |
29621 | (char *) "self",(char *) "item", NULL | |
29622 | }; | |
29623 | ||
29624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29627 | { | |
29628 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29629 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29630 | if (arg2 == NULL) { | |
29631 | SWIG_null_ref("wxTreeItemId"); | |
29632 | } | |
29633 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29634 | } |
29635 | { | |
29636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29637 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
29638 | ||
29639 | wxPyEndAllowThreads(__tstate); | |
29640 | if (PyErr_Occurred()) SWIG_fail; | |
29641 | } | |
29642 | resultobj = result; | |
29643 | return resultobj; | |
29644 | fail: | |
29645 | return NULL; | |
29646 | } | |
29647 | ||
29648 | ||
c32bde28 | 29649 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29650 | PyObject *resultobj; |
29651 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29652 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 29653 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
29654 | PyObject *result; |
29655 | PyObject * obj0 = 0 ; | |
29656 | PyObject * obj1 = 0 ; | |
29657 | PyObject * obj2 = 0 ; | |
29658 | char *kwnames[] = { | |
29659 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
29660 | }; | |
29661 | ||
29662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29665 | { | |
29666 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29667 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29668 | if (arg2 == NULL) { | |
29669 | SWIG_null_ref("wxTreeItemId"); | |
29670 | } | |
29671 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29672 | } | |
29673 | { | |
29674 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),0,SWIG_POINTER_EXCEPTION|0))== -1) { | |
29675 | SWIG_arg_fail(3);SWIG_fail; | |
29676 | } | |
d14a1e28 | 29677 | } |
d14a1e28 RD |
29678 | { |
29679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 29680 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
29681 | |
29682 | wxPyEndAllowThreads(__tstate); | |
29683 | if (PyErr_Occurred()) SWIG_fail; | |
29684 | } | |
29685 | resultobj = result; | |
29686 | return resultobj; | |
29687 | fail: | |
29688 | return NULL; | |
29689 | } | |
29690 | ||
29691 | ||
c32bde28 | 29692 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29693 | PyObject *resultobj; |
29694 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29695 | wxTreeItemId *arg2 = 0 ; | |
29696 | wxTreeItemId result; | |
29697 | PyObject * obj0 = 0 ; | |
29698 | PyObject * obj1 = 0 ; | |
29699 | char *kwnames[] = { | |
29700 | (char *) "self",(char *) "item", NULL | |
29701 | }; | |
29702 | ||
29703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29706 | { | |
29707 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29708 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29709 | if (arg2 == NULL) { | |
29710 | SWIG_null_ref("wxTreeItemId"); | |
29711 | } | |
29712 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29713 | } |
29714 | { | |
29715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29716 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
29717 | ||
29718 | wxPyEndAllowThreads(__tstate); | |
29719 | if (PyErr_Occurred()) SWIG_fail; | |
29720 | } | |
29721 | { | |
29722 | wxTreeItemId * resultptr; | |
093d3ff1 | 29723 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29725 | } |
29726 | return resultobj; | |
29727 | fail: | |
29728 | return NULL; | |
29729 | } | |
29730 | ||
29731 | ||
c32bde28 | 29732 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29733 | PyObject *resultobj; |
29734 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29735 | wxTreeItemId *arg2 = 0 ; | |
29736 | wxTreeItemId result; | |
29737 | PyObject * obj0 = 0 ; | |
29738 | PyObject * obj1 = 0 ; | |
29739 | char *kwnames[] = { | |
29740 | (char *) "self",(char *) "item", NULL | |
29741 | }; | |
29742 | ||
29743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29746 | { | |
29747 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29748 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29749 | if (arg2 == NULL) { | |
29750 | SWIG_null_ref("wxTreeItemId"); | |
29751 | } | |
29752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29753 | } |
29754 | { | |
29755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29756 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
29757 | ||
29758 | wxPyEndAllowThreads(__tstate); | |
29759 | if (PyErr_Occurred()) SWIG_fail; | |
29760 | } | |
29761 | { | |
29762 | wxTreeItemId * resultptr; | |
093d3ff1 | 29763 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29765 | } |
29766 | return resultobj; | |
29767 | fail: | |
29768 | return NULL; | |
29769 | } | |
29770 | ||
29771 | ||
c32bde28 | 29772 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29773 | PyObject *resultobj; |
29774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29775 | wxTreeItemId *arg2 = 0 ; | |
29776 | wxTreeItemId result; | |
29777 | PyObject * obj0 = 0 ; | |
29778 | PyObject * obj1 = 0 ; | |
29779 | char *kwnames[] = { | |
29780 | (char *) "self",(char *) "item", NULL | |
29781 | }; | |
29782 | ||
29783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29786 | { | |
29787 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29789 | if (arg2 == NULL) { | |
29790 | SWIG_null_ref("wxTreeItemId"); | |
29791 | } | |
29792 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29793 | } |
29794 | { | |
29795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29796 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
29797 | ||
29798 | wxPyEndAllowThreads(__tstate); | |
29799 | if (PyErr_Occurred()) SWIG_fail; | |
29800 | } | |
29801 | { | |
29802 | wxTreeItemId * resultptr; | |
093d3ff1 | 29803 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29804 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29805 | } |
29806 | return resultobj; | |
29807 | fail: | |
29808 | return NULL; | |
29809 | } | |
29810 | ||
29811 | ||
c32bde28 | 29812 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29813 | PyObject *resultobj; |
29814 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29815 | wxTreeItemId result; | |
29816 | PyObject * obj0 = 0 ; | |
29817 | char *kwnames[] = { | |
29818 | (char *) "self", NULL | |
29819 | }; | |
29820 | ||
29821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29824 | { |
29825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29826 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
29827 | ||
29828 | wxPyEndAllowThreads(__tstate); | |
29829 | if (PyErr_Occurred()) SWIG_fail; | |
29830 | } | |
29831 | { | |
29832 | wxTreeItemId * resultptr; | |
093d3ff1 | 29833 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29834 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29835 | } |
29836 | return resultobj; | |
29837 | fail: | |
29838 | return NULL; | |
29839 | } | |
29840 | ||
29841 | ||
c32bde28 | 29842 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29843 | PyObject *resultobj; |
29844 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29845 | wxTreeItemId *arg2 = 0 ; | |
29846 | wxTreeItemId result; | |
29847 | PyObject * obj0 = 0 ; | |
29848 | PyObject * obj1 = 0 ; | |
29849 | char *kwnames[] = { | |
29850 | (char *) "self",(char *) "item", NULL | |
29851 | }; | |
29852 | ||
29853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29856 | { | |
29857 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29859 | if (arg2 == NULL) { | |
29860 | SWIG_null_ref("wxTreeItemId"); | |
29861 | } | |
29862 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29863 | } |
29864 | { | |
29865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29866 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
29867 | ||
29868 | wxPyEndAllowThreads(__tstate); | |
29869 | if (PyErr_Occurred()) SWIG_fail; | |
29870 | } | |
29871 | { | |
29872 | wxTreeItemId * resultptr; | |
093d3ff1 | 29873 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29874 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29875 | } |
29876 | return resultobj; | |
29877 | fail: | |
29878 | return NULL; | |
29879 | } | |
29880 | ||
29881 | ||
c32bde28 | 29882 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29883 | PyObject *resultobj; |
29884 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29885 | wxTreeItemId *arg2 = 0 ; | |
29886 | wxTreeItemId result; | |
29887 | PyObject * obj0 = 0 ; | |
29888 | PyObject * obj1 = 0 ; | |
29889 | char *kwnames[] = { | |
29890 | (char *) "self",(char *) "item", NULL | |
29891 | }; | |
29892 | ||
29893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29896 | { | |
29897 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29898 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29899 | if (arg2 == NULL) { | |
29900 | SWIG_null_ref("wxTreeItemId"); | |
29901 | } | |
29902 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29903 | } |
29904 | { | |
29905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29906 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
29907 | ||
29908 | wxPyEndAllowThreads(__tstate); | |
29909 | if (PyErr_Occurred()) SWIG_fail; | |
29910 | } | |
29911 | { | |
29912 | wxTreeItemId * resultptr; | |
093d3ff1 | 29913 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29914 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29915 | } |
29916 | return resultobj; | |
29917 | fail: | |
29918 | return NULL; | |
29919 | } | |
29920 | ||
29921 | ||
c32bde28 | 29922 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29923 | PyObject *resultobj; |
29924 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29925 | wxString *arg2 = 0 ; | |
29926 | int arg3 = (int) -1 ; | |
29927 | int arg4 = (int) -1 ; | |
29928 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
29929 | wxTreeItemId result; | |
ae8162c8 | 29930 | bool temp2 = false ; |
d14a1e28 RD |
29931 | PyObject * obj0 = 0 ; |
29932 | PyObject * obj1 = 0 ; | |
994141e6 RD |
29933 | PyObject * obj2 = 0 ; |
29934 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29935 | PyObject * obj4 = 0 ; |
29936 | char *kwnames[] = { | |
29937 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29938 | }; | |
29939 | ||
994141e6 | 29940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
29941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29943 | { |
29944 | arg2 = wxString_in_helper(obj1); | |
29945 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29946 | temp2 = true; |
d14a1e28 | 29947 | } |
994141e6 | 29948 | if (obj2) { |
093d3ff1 RD |
29949 | { |
29950 | arg3 = (int)(SWIG_As_int(obj2)); | |
29951 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29952 | } | |
994141e6 RD |
29953 | } |
29954 | if (obj3) { | |
093d3ff1 RD |
29955 | { |
29956 | arg4 = (int)(SWIG_As_int(obj3)); | |
29957 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29958 | } | |
994141e6 | 29959 | } |
d14a1e28 | 29960 | if (obj4) { |
093d3ff1 RD |
29961 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
29962 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
29963 | } |
29964 | { | |
29965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29966 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
29967 | ||
29968 | wxPyEndAllowThreads(__tstate); | |
29969 | if (PyErr_Occurred()) SWIG_fail; | |
29970 | } | |
29971 | { | |
29972 | wxTreeItemId * resultptr; | |
093d3ff1 | 29973 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29974 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29975 | } |
29976 | { | |
29977 | if (temp2) | |
29978 | delete arg2; | |
29979 | } | |
29980 | return resultobj; | |
29981 | fail: | |
29982 | { | |
29983 | if (temp2) | |
29984 | delete arg2; | |
29985 | } | |
29986 | return NULL; | |
29987 | } | |
29988 | ||
29989 | ||
c32bde28 | 29990 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29991 | PyObject *resultobj; |
29992 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29993 | wxTreeItemId *arg2 = 0 ; | |
29994 | wxString *arg3 = 0 ; | |
29995 | int arg4 = (int) -1 ; | |
29996 | int arg5 = (int) -1 ; | |
29997 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
29998 | wxTreeItemId result; | |
ae8162c8 | 29999 | bool temp3 = false ; |
d14a1e28 RD |
30000 | PyObject * obj0 = 0 ; |
30001 | PyObject * obj1 = 0 ; | |
30002 | PyObject * obj2 = 0 ; | |
994141e6 RD |
30003 | PyObject * obj3 = 0 ; |
30004 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
30005 | PyObject * obj5 = 0 ; |
30006 | char *kwnames[] = { | |
30007 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30008 | }; | |
30009 | ||
994141e6 | 30010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
30011 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30012 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30013 | { | |
30014 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30015 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30016 | if (arg2 == NULL) { | |
30017 | SWIG_null_ref("wxTreeItemId"); | |
30018 | } | |
30019 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30020 | } |
30021 | { | |
30022 | arg3 = wxString_in_helper(obj2); | |
30023 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30024 | temp3 = true; |
d14a1e28 | 30025 | } |
994141e6 | 30026 | if (obj3) { |
093d3ff1 RD |
30027 | { |
30028 | arg4 = (int)(SWIG_As_int(obj3)); | |
30029 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30030 | } | |
994141e6 RD |
30031 | } |
30032 | if (obj4) { | |
093d3ff1 RD |
30033 | { |
30034 | arg5 = (int)(SWIG_As_int(obj4)); | |
30035 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30036 | } | |
994141e6 | 30037 | } |
d14a1e28 | 30038 | if (obj5) { |
093d3ff1 RD |
30039 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30040 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
30041 | } |
30042 | { | |
30043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30044 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30045 | ||
30046 | wxPyEndAllowThreads(__tstate); | |
30047 | if (PyErr_Occurred()) SWIG_fail; | |
30048 | } | |
30049 | { | |
30050 | wxTreeItemId * resultptr; | |
093d3ff1 | 30051 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30052 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30053 | } |
30054 | { | |
30055 | if (temp3) | |
30056 | delete arg3; | |
30057 | } | |
30058 | return resultobj; | |
30059 | fail: | |
30060 | { | |
30061 | if (temp3) | |
30062 | delete arg3; | |
30063 | } | |
30064 | return NULL; | |
30065 | } | |
30066 | ||
30067 | ||
c32bde28 | 30068 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30069 | PyObject *resultobj; |
30070 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30071 | wxTreeItemId *arg2 = 0 ; | |
30072 | wxTreeItemId *arg3 = 0 ; | |
30073 | wxString *arg4 = 0 ; | |
30074 | int arg5 = (int) -1 ; | |
30075 | int arg6 = (int) -1 ; | |
30076 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30077 | wxTreeItemId result; | |
ae8162c8 | 30078 | bool temp4 = false ; |
d14a1e28 RD |
30079 | PyObject * obj0 = 0 ; |
30080 | PyObject * obj1 = 0 ; | |
30081 | PyObject * obj2 = 0 ; | |
30082 | PyObject * obj3 = 0 ; | |
994141e6 RD |
30083 | PyObject * obj4 = 0 ; |
30084 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
30085 | PyObject * obj6 = 0 ; |
30086 | char *kwnames[] = { | |
30087 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30088 | }; | |
30089 | ||
994141e6 | 30090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
30091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30093 | { | |
30094 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30095 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30096 | if (arg2 == NULL) { | |
30097 | SWIG_null_ref("wxTreeItemId"); | |
30098 | } | |
30099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30100 | } | |
30101 | { | |
30102 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30103 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30104 | if (arg3 == NULL) { | |
30105 | SWIG_null_ref("wxTreeItemId"); | |
30106 | } | |
30107 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
30108 | } |
30109 | { | |
30110 | arg4 = wxString_in_helper(obj3); | |
30111 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30112 | temp4 = true; |
d14a1e28 | 30113 | } |
994141e6 | 30114 | if (obj4) { |
093d3ff1 RD |
30115 | { |
30116 | arg5 = (int)(SWIG_As_int(obj4)); | |
30117 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30118 | } | |
994141e6 RD |
30119 | } |
30120 | if (obj5) { | |
093d3ff1 RD |
30121 | { |
30122 | arg6 = (int)(SWIG_As_int(obj5)); | |
30123 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30124 | } | |
994141e6 | 30125 | } |
d14a1e28 | 30126 | if (obj6) { |
093d3ff1 RD |
30127 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30128 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
30129 | } |
30130 | { | |
30131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30132 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30133 | ||
30134 | wxPyEndAllowThreads(__tstate); | |
30135 | if (PyErr_Occurred()) SWIG_fail; | |
30136 | } | |
30137 | { | |
30138 | wxTreeItemId * resultptr; | |
093d3ff1 | 30139 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30140 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30141 | } |
30142 | { | |
30143 | if (temp4) | |
30144 | delete arg4; | |
30145 | } | |
30146 | return resultobj; | |
30147 | fail: | |
30148 | { | |
30149 | if (temp4) | |
30150 | delete arg4; | |
30151 | } | |
30152 | return NULL; | |
30153 | } | |
30154 | ||
30155 | ||
c32bde28 | 30156 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30157 | PyObject *resultobj; |
30158 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30159 | wxTreeItemId *arg2 = 0 ; | |
30160 | size_t arg3 ; | |
30161 | wxString *arg4 = 0 ; | |
30162 | int arg5 = (int) -1 ; | |
30163 | int arg6 = (int) -1 ; | |
30164 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30165 | wxTreeItemId result; | |
ae8162c8 | 30166 | bool temp4 = false ; |
d14a1e28 RD |
30167 | PyObject * obj0 = 0 ; |
30168 | PyObject * obj1 = 0 ; | |
30169 | PyObject * obj2 = 0 ; | |
30170 | PyObject * obj3 = 0 ; | |
994141e6 RD |
30171 | PyObject * obj4 = 0 ; |
30172 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
30173 | PyObject * obj6 = 0 ; |
30174 | char *kwnames[] = { | |
30175 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30176 | }; | |
30177 | ||
994141e6 | 30178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
30179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30181 | { | |
30182 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30183 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30184 | if (arg2 == NULL) { | |
30185 | SWIG_null_ref("wxTreeItemId"); | |
30186 | } | |
30187 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30188 | } | |
30189 | { | |
30190 | arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2)); | |
30191 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30192 | } | |
d14a1e28 RD |
30193 | { |
30194 | arg4 = wxString_in_helper(obj3); | |
30195 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30196 | temp4 = true; |
d14a1e28 | 30197 | } |
994141e6 | 30198 | if (obj4) { |
093d3ff1 RD |
30199 | { |
30200 | arg5 = (int)(SWIG_As_int(obj4)); | |
30201 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30202 | } | |
994141e6 RD |
30203 | } |
30204 | if (obj5) { | |
093d3ff1 RD |
30205 | { |
30206 | arg6 = (int)(SWIG_As_int(obj5)); | |
30207 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30208 | } | |
994141e6 | 30209 | } |
d14a1e28 | 30210 | if (obj6) { |
093d3ff1 RD |
30211 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30212 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
30213 | } |
30214 | { | |
30215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30216 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30217 | ||
30218 | wxPyEndAllowThreads(__tstate); | |
30219 | if (PyErr_Occurred()) SWIG_fail; | |
30220 | } | |
30221 | { | |
30222 | wxTreeItemId * resultptr; | |
093d3ff1 | 30223 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30224 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30225 | } |
30226 | { | |
30227 | if (temp4) | |
30228 | delete arg4; | |
30229 | } | |
30230 | return resultobj; | |
30231 | fail: | |
30232 | { | |
30233 | if (temp4) | |
30234 | delete arg4; | |
30235 | } | |
30236 | return NULL; | |
30237 | } | |
30238 | ||
30239 | ||
c32bde28 | 30240 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30241 | PyObject *resultobj; |
30242 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30243 | wxTreeItemId *arg2 = 0 ; | |
30244 | wxString *arg3 = 0 ; | |
30245 | int arg4 = (int) -1 ; | |
30246 | int arg5 = (int) -1 ; | |
30247 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
30248 | wxTreeItemId result; | |
ae8162c8 | 30249 | bool temp3 = false ; |
d14a1e28 RD |
30250 | PyObject * obj0 = 0 ; |
30251 | PyObject * obj1 = 0 ; | |
30252 | PyObject * obj2 = 0 ; | |
994141e6 RD |
30253 | PyObject * obj3 = 0 ; |
30254 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
30255 | PyObject * obj5 = 0 ; |
30256 | char *kwnames[] = { | |
30257 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30258 | }; | |
30259 | ||
994141e6 | 30260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
30261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30263 | { | |
30264 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30265 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30266 | if (arg2 == NULL) { | |
30267 | SWIG_null_ref("wxTreeItemId"); | |
30268 | } | |
30269 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30270 | } |
30271 | { | |
30272 | arg3 = wxString_in_helper(obj2); | |
30273 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30274 | temp3 = true; |
d14a1e28 | 30275 | } |
994141e6 | 30276 | if (obj3) { |
093d3ff1 RD |
30277 | { |
30278 | arg4 = (int)(SWIG_As_int(obj3)); | |
30279 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30280 | } | |
994141e6 RD |
30281 | } |
30282 | if (obj4) { | |
093d3ff1 RD |
30283 | { |
30284 | arg5 = (int)(SWIG_As_int(obj4)); | |
30285 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30286 | } | |
994141e6 | 30287 | } |
d14a1e28 | 30288 | if (obj5) { |
093d3ff1 RD |
30289 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30290 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
30291 | } |
30292 | { | |
30293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30294 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30295 | ||
30296 | wxPyEndAllowThreads(__tstate); | |
30297 | if (PyErr_Occurred()) SWIG_fail; | |
30298 | } | |
30299 | { | |
30300 | wxTreeItemId * resultptr; | |
093d3ff1 | 30301 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30302 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30303 | } |
30304 | { | |
30305 | if (temp3) | |
30306 | delete arg3; | |
30307 | } | |
30308 | return resultobj; | |
30309 | fail: | |
30310 | { | |
30311 | if (temp3) | |
30312 | delete arg3; | |
30313 | } | |
30314 | return NULL; | |
30315 | } | |
30316 | ||
30317 | ||
c32bde28 | 30318 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30319 | PyObject *resultobj; |
30320 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30321 | wxTreeItemId *arg2 = 0 ; | |
30322 | PyObject * obj0 = 0 ; | |
30323 | PyObject * obj1 = 0 ; | |
30324 | char *kwnames[] = { | |
30325 | (char *) "self",(char *) "item", NULL | |
30326 | }; | |
30327 | ||
30328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30331 | { | |
30332 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30333 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30334 | if (arg2 == NULL) { | |
30335 | SWIG_null_ref("wxTreeItemId"); | |
30336 | } | |
30337 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30338 | } |
30339 | { | |
30340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30341 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
30342 | ||
30343 | wxPyEndAllowThreads(__tstate); | |
30344 | if (PyErr_Occurred()) SWIG_fail; | |
30345 | } | |
30346 | Py_INCREF(Py_None); resultobj = Py_None; | |
30347 | return resultobj; | |
30348 | fail: | |
30349 | return NULL; | |
30350 | } | |
30351 | ||
30352 | ||
c32bde28 | 30353 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30354 | PyObject *resultobj; |
30355 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30356 | wxTreeItemId *arg2 = 0 ; | |
30357 | PyObject * obj0 = 0 ; | |
30358 | PyObject * obj1 = 0 ; | |
30359 | char *kwnames[] = { | |
30360 | (char *) "self",(char *) "item", NULL | |
30361 | }; | |
30362 | ||
30363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30366 | { | |
30367 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30369 | if (arg2 == NULL) { | |
30370 | SWIG_null_ref("wxTreeItemId"); | |
30371 | } | |
30372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30373 | } |
30374 | { | |
30375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30376 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
30377 | ||
30378 | wxPyEndAllowThreads(__tstate); | |
30379 | if (PyErr_Occurred()) SWIG_fail; | |
30380 | } | |
30381 | Py_INCREF(Py_None); resultobj = Py_None; | |
30382 | return resultobj; | |
30383 | fail: | |
30384 | return NULL; | |
30385 | } | |
30386 | ||
30387 | ||
c32bde28 | 30388 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30389 | PyObject *resultobj; |
30390 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30391 | PyObject * obj0 = 0 ; | |
30392 | char *kwnames[] = { | |
30393 | (char *) "self", NULL | |
30394 | }; | |
30395 | ||
30396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30399 | { |
30400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30401 | (arg1)->DeleteAllItems(); | |
30402 | ||
30403 | wxPyEndAllowThreads(__tstate); | |
30404 | if (PyErr_Occurred()) SWIG_fail; | |
30405 | } | |
30406 | Py_INCREF(Py_None); resultobj = Py_None; | |
30407 | return resultobj; | |
30408 | fail: | |
30409 | return NULL; | |
30410 | } | |
30411 | ||
30412 | ||
c32bde28 | 30413 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30414 | PyObject *resultobj; |
30415 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30416 | wxTreeItemId *arg2 = 0 ; | |
30417 | PyObject * obj0 = 0 ; | |
30418 | PyObject * obj1 = 0 ; | |
30419 | char *kwnames[] = { | |
30420 | (char *) "self",(char *) "item", NULL | |
30421 | }; | |
30422 | ||
30423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30426 | { | |
30427 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30428 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30429 | if (arg2 == NULL) { | |
30430 | SWIG_null_ref("wxTreeItemId"); | |
30431 | } | |
30432 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30433 | } |
30434 | { | |
30435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30436 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
30437 | ||
30438 | wxPyEndAllowThreads(__tstate); | |
30439 | if (PyErr_Occurred()) SWIG_fail; | |
30440 | } | |
30441 | Py_INCREF(Py_None); resultobj = Py_None; | |
30442 | return resultobj; | |
30443 | fail: | |
30444 | return NULL; | |
30445 | } | |
30446 | ||
30447 | ||
c32bde28 | 30448 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30449 | PyObject *resultobj; |
30450 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30451 | wxTreeItemId *arg2 = 0 ; | |
30452 | PyObject * obj0 = 0 ; | |
30453 | PyObject * obj1 = 0 ; | |
30454 | char *kwnames[] = { | |
30455 | (char *) "self",(char *) "item", NULL | |
30456 | }; | |
30457 | ||
30458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30461 | { | |
30462 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30463 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30464 | if (arg2 == NULL) { | |
30465 | SWIG_null_ref("wxTreeItemId"); | |
30466 | } | |
30467 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30468 | } |
30469 | { | |
30470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30471 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
30472 | ||
30473 | wxPyEndAllowThreads(__tstate); | |
30474 | if (PyErr_Occurred()) SWIG_fail; | |
30475 | } | |
30476 | Py_INCREF(Py_None); resultobj = Py_None; | |
30477 | return resultobj; | |
30478 | fail: | |
30479 | return NULL; | |
30480 | } | |
30481 | ||
30482 | ||
c32bde28 | 30483 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30484 | PyObject *resultobj; |
30485 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30486 | wxTreeItemId *arg2 = 0 ; | |
30487 | PyObject * obj0 = 0 ; | |
30488 | PyObject * obj1 = 0 ; | |
30489 | char *kwnames[] = { | |
30490 | (char *) "self",(char *) "item", NULL | |
30491 | }; | |
30492 | ||
30493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30494 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30495 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30496 | { | |
30497 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30498 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30499 | if (arg2 == NULL) { | |
30500 | SWIG_null_ref("wxTreeItemId"); | |
30501 | } | |
30502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30503 | } |
30504 | { | |
30505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30506 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
30507 | ||
30508 | wxPyEndAllowThreads(__tstate); | |
30509 | if (PyErr_Occurred()) SWIG_fail; | |
30510 | } | |
30511 | Py_INCREF(Py_None); resultobj = Py_None; | |
30512 | return resultobj; | |
30513 | fail: | |
30514 | return NULL; | |
30515 | } | |
30516 | ||
30517 | ||
c32bde28 | 30518 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30519 | PyObject *resultobj; |
30520 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30521 | wxTreeItemId *arg2 = 0 ; | |
30522 | PyObject * obj0 = 0 ; | |
30523 | PyObject * obj1 = 0 ; | |
30524 | char *kwnames[] = { | |
30525 | (char *) "self",(char *) "item", NULL | |
30526 | }; | |
30527 | ||
30528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30531 | { | |
30532 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30533 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30534 | if (arg2 == NULL) { | |
30535 | SWIG_null_ref("wxTreeItemId"); | |
30536 | } | |
30537 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30538 | } |
30539 | { | |
30540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30541 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
30542 | ||
30543 | wxPyEndAllowThreads(__tstate); | |
30544 | if (PyErr_Occurred()) SWIG_fail; | |
30545 | } | |
30546 | Py_INCREF(Py_None); resultobj = Py_None; | |
30547 | return resultobj; | |
30548 | fail: | |
30549 | return NULL; | |
30550 | } | |
30551 | ||
30552 | ||
c32bde28 | 30553 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30554 | PyObject *resultobj; |
30555 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30556 | PyObject * obj0 = 0 ; | |
30557 | char *kwnames[] = { | |
30558 | (char *) "self", NULL | |
30559 | }; | |
30560 | ||
30561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30564 | { |
30565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30566 | (arg1)->Unselect(); | |
30567 | ||
30568 | wxPyEndAllowThreads(__tstate); | |
30569 | if (PyErr_Occurred()) SWIG_fail; | |
30570 | } | |
30571 | Py_INCREF(Py_None); resultobj = Py_None; | |
30572 | return resultobj; | |
30573 | fail: | |
30574 | return NULL; | |
30575 | } | |
30576 | ||
30577 | ||
c32bde28 | 30578 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
30579 | PyObject *resultobj; |
30580 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30581 | wxTreeItemId *arg2 = 0 ; | |
30582 | PyObject * obj0 = 0 ; | |
30583 | PyObject * obj1 = 0 ; | |
30584 | char *kwnames[] = { | |
30585 | (char *) "self",(char *) "item", NULL | |
30586 | }; | |
30587 | ||
30588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30591 | { | |
30592 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30594 | if (arg2 == NULL) { | |
30595 | SWIG_null_ref("wxTreeItemId"); | |
30596 | } | |
30597 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3adfb63b RD |
30598 | } |
30599 | { | |
30600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30601 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
30602 | ||
30603 | wxPyEndAllowThreads(__tstate); | |
30604 | if (PyErr_Occurred()) SWIG_fail; | |
30605 | } | |
30606 | Py_INCREF(Py_None); resultobj = Py_None; | |
30607 | return resultobj; | |
30608 | fail: | |
30609 | return NULL; | |
30610 | } | |
30611 | ||
30612 | ||
c32bde28 | 30613 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30614 | PyObject *resultobj; |
30615 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30616 | PyObject * obj0 = 0 ; | |
30617 | char *kwnames[] = { | |
30618 | (char *) "self", NULL | |
30619 | }; | |
30620 | ||
30621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30624 | { |
30625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30626 | (arg1)->UnselectAll(); | |
30627 | ||
30628 | wxPyEndAllowThreads(__tstate); | |
30629 | if (PyErr_Occurred()) SWIG_fail; | |
30630 | } | |
30631 | Py_INCREF(Py_None); resultobj = Py_None; | |
30632 | return resultobj; | |
30633 | fail: | |
30634 | return NULL; | |
30635 | } | |
30636 | ||
30637 | ||
c32bde28 | 30638 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
30639 | PyObject *resultobj; |
30640 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30641 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30642 | bool arg3 = (bool) true ; |
3adfb63b RD |
30643 | PyObject * obj0 = 0 ; |
30644 | PyObject * obj1 = 0 ; | |
30645 | PyObject * obj2 = 0 ; | |
30646 | char *kwnames[] = { | |
30647 | (char *) "self",(char *) "item",(char *) "select", NULL | |
30648 | }; | |
30649 | ||
30650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30653 | { | |
30654 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30655 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30656 | if (arg2 == NULL) { | |
30657 | SWIG_null_ref("wxTreeItemId"); | |
30658 | } | |
30659 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3adfb63b RD |
30660 | } |
30661 | if (obj2) { | |
093d3ff1 RD |
30662 | { |
30663 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30664 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30665 | } | |
3adfb63b RD |
30666 | } |
30667 | { | |
30668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30669 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
30670 | ||
30671 | wxPyEndAllowThreads(__tstate); | |
30672 | if (PyErr_Occurred()) SWIG_fail; | |
30673 | } | |
30674 | Py_INCREF(Py_None); resultobj = Py_None; | |
30675 | return resultobj; | |
30676 | fail: | |
30677 | return NULL; | |
30678 | } | |
30679 | ||
30680 | ||
c32bde28 | 30681 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30682 | PyObject *resultobj; |
30683 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30684 | wxTreeItemId *arg2 = 0 ; | |
30685 | PyObject * obj0 = 0 ; | |
30686 | PyObject * obj1 = 0 ; | |
30687 | char *kwnames[] = { | |
30688 | (char *) "self",(char *) "item", NULL | |
30689 | }; | |
30690 | ||
3adfb63b | 30691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30694 | { | |
30695 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30697 | if (arg2 == NULL) { | |
30698 | SWIG_null_ref("wxTreeItemId"); | |
30699 | } | |
30700 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30701 | } |
30702 | { | |
30703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 30704 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
30705 | |
30706 | wxPyEndAllowThreads(__tstate); | |
30707 | if (PyErr_Occurred()) SWIG_fail; | |
30708 | } | |
30709 | Py_INCREF(Py_None); resultobj = Py_None; | |
30710 | return resultobj; | |
30711 | fail: | |
30712 | return NULL; | |
30713 | } | |
30714 | ||
30715 | ||
c32bde28 | 30716 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30717 | PyObject *resultobj; |
30718 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30719 | wxTreeItemId *arg2 = 0 ; | |
30720 | PyObject * obj0 = 0 ; | |
30721 | PyObject * obj1 = 0 ; | |
30722 | char *kwnames[] = { | |
30723 | (char *) "self",(char *) "item", NULL | |
30724 | }; | |
30725 | ||
30726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30729 | { | |
30730 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30732 | if (arg2 == NULL) { | |
30733 | SWIG_null_ref("wxTreeItemId"); | |
30734 | } | |
30735 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30736 | } |
30737 | { | |
30738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30739 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
30740 | ||
30741 | wxPyEndAllowThreads(__tstate); | |
30742 | if (PyErr_Occurred()) SWIG_fail; | |
30743 | } | |
30744 | Py_INCREF(Py_None); resultobj = Py_None; | |
30745 | return resultobj; | |
30746 | fail: | |
30747 | return NULL; | |
30748 | } | |
30749 | ||
30750 | ||
c32bde28 | 30751 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30752 | PyObject *resultobj; |
30753 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30754 | wxTreeItemId *arg2 = 0 ; | |
30755 | PyObject * obj0 = 0 ; | |
30756 | PyObject * obj1 = 0 ; | |
30757 | char *kwnames[] = { | |
30758 | (char *) "self",(char *) "item", NULL | |
30759 | }; | |
30760 | ||
30761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30764 | { | |
30765 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30766 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30767 | if (arg2 == NULL) { | |
30768 | SWIG_null_ref("wxTreeItemId"); | |
30769 | } | |
30770 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30771 | } |
30772 | { | |
30773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30774 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
30775 | ||
30776 | wxPyEndAllowThreads(__tstate); | |
30777 | if (PyErr_Occurred()) SWIG_fail; | |
30778 | } | |
30779 | Py_INCREF(Py_None); resultobj = Py_None; | |
30780 | return resultobj; | |
30781 | fail: | |
30782 | return NULL; | |
30783 | } | |
30784 | ||
30785 | ||
c32bde28 | 30786 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30787 | PyObject *resultobj; |
30788 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30789 | wxTreeItemId *arg2 = 0 ; | |
30790 | PyObject * obj0 = 0 ; | |
30791 | PyObject * obj1 = 0 ; | |
30792 | char *kwnames[] = { | |
30793 | (char *) "self",(char *) "item", NULL | |
30794 | }; | |
30795 | ||
30796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30799 | { | |
30800 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30801 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30802 | if (arg2 == NULL) { | |
30803 | SWIG_null_ref("wxTreeItemId"); | |
30804 | } | |
30805 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30806 | } |
30807 | { | |
30808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30809 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
30810 | ||
30811 | wxPyEndAllowThreads(__tstate); | |
30812 | if (PyErr_Occurred()) SWIG_fail; | |
30813 | } | |
30814 | Py_INCREF(Py_None); resultobj = Py_None; | |
30815 | return resultobj; | |
30816 | fail: | |
30817 | return NULL; | |
30818 | } | |
30819 | ||
30820 | ||
c32bde28 | 30821 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30822 | PyObject *resultobj; |
30823 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30824 | wxTextCtrl *result; | |
30825 | PyObject * obj0 = 0 ; | |
30826 | char *kwnames[] = { | |
30827 | (char *) "self", NULL | |
30828 | }; | |
30829 | ||
30830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) 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; | |
d14a1e28 RD |
30833 | { |
30834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30835 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
30836 | ||
30837 | wxPyEndAllowThreads(__tstate); | |
30838 | if (PyErr_Occurred()) SWIG_fail; | |
30839 | } | |
30840 | { | |
412d302d | 30841 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30842 | } |
30843 | return resultobj; | |
30844 | fail: | |
30845 | return NULL; | |
30846 | } | |
30847 | ||
30848 | ||
c32bde28 | 30849 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30850 | PyObject *resultobj; |
30851 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30852 | wxTreeItemId *arg2 = 0 ; | |
30853 | PyObject * obj0 = 0 ; | |
30854 | PyObject * obj1 = 0 ; | |
30855 | char *kwnames[] = { | |
30856 | (char *) "self",(char *) "item", NULL | |
30857 | }; | |
30858 | ||
30859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30862 | { | |
30863 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30865 | if (arg2 == NULL) { | |
30866 | SWIG_null_ref("wxTreeItemId"); | |
30867 | } | |
30868 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30869 | } |
30870 | { | |
30871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30872 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
30873 | ||
30874 | wxPyEndAllowThreads(__tstate); | |
30875 | if (PyErr_Occurred()) SWIG_fail; | |
30876 | } | |
30877 | Py_INCREF(Py_None); resultobj = Py_None; | |
30878 | return resultobj; | |
30879 | fail: | |
30880 | return NULL; | |
30881 | } | |
30882 | ||
30883 | ||
c32bde28 | 30884 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30885 | PyObject *resultobj; |
30886 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30887 | wxPoint *arg2 = 0 ; | |
30888 | int *arg3 = 0 ; | |
30889 | wxTreeItemId result; | |
30890 | wxPoint temp2 ; | |
30891 | int temp3 ; | |
c32bde28 | 30892 | int res3 = 0 ; |
d14a1e28 RD |
30893 | PyObject * obj0 = 0 ; |
30894 | PyObject * obj1 = 0 ; | |
30895 | char *kwnames[] = { | |
30896 | (char *) "self",(char *) "point", NULL | |
30897 | }; | |
30898 | ||
c32bde28 | 30899 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 30900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30901 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30902 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30903 | { |
30904 | arg2 = &temp2; | |
30905 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30906 | } | |
30907 | { | |
30908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30909 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
30910 | ||
30911 | wxPyEndAllowThreads(__tstate); | |
30912 | if (PyErr_Occurred()) SWIG_fail; | |
30913 | } | |
30914 | { | |
30915 | wxTreeItemId * resultptr; | |
093d3ff1 | 30916 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30917 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 30918 | } |
c32bde28 RD |
30919 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30920 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30921 | return resultobj; |
30922 | fail: | |
30923 | return NULL; | |
30924 | } | |
30925 | ||
30926 | ||
c32bde28 | 30927 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30928 | PyObject *resultobj; |
30929 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30930 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30931 | bool arg3 = (bool) false ; |
d14a1e28 RD |
30932 | PyObject *result; |
30933 | PyObject * obj0 = 0 ; | |
30934 | PyObject * obj1 = 0 ; | |
30935 | PyObject * obj2 = 0 ; | |
30936 | char *kwnames[] = { | |
30937 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
30938 | }; | |
30939 | ||
30940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30943 | { | |
30944 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30946 | if (arg2 == NULL) { | |
30947 | SWIG_null_ref("wxTreeItemId"); | |
30948 | } | |
30949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30950 | } |
30951 | if (obj2) { | |
093d3ff1 RD |
30952 | { |
30953 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30954 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30955 | } | |
d14a1e28 RD |
30956 | } |
30957 | { | |
30958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30959 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
30960 | ||
30961 | wxPyEndAllowThreads(__tstate); | |
30962 | if (PyErr_Occurred()) SWIG_fail; | |
30963 | } | |
30964 | resultobj = result; | |
30965 | return resultobj; | |
30966 | fail: | |
30967 | return NULL; | |
30968 | } | |
30969 | ||
30970 | ||
c32bde28 | 30971 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd | 30972 | PyObject *resultobj; |
093d3ff1 | 30973 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
30974 | wxVisualAttributes result; |
30975 | PyObject * obj0 = 0 ; | |
30976 | char *kwnames[] = { | |
30977 | (char *) "variant", NULL | |
30978 | }; | |
30979 | ||
30980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
30981 | if (obj0) { | |
093d3ff1 RD |
30982 | { |
30983 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
30984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30985 | } | |
74a57fcd RD |
30986 | } |
30987 | { | |
110da5b0 | 30988 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
30989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30990 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
30991 | ||
30992 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 30993 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
30994 | } |
30995 | { | |
30996 | wxVisualAttributes * resultptr; | |
093d3ff1 | 30997 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
30998 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
30999 | } | |
31000 | return resultobj; | |
31001 | fail: | |
31002 | return NULL; | |
31003 | } | |
31004 | ||
31005 | ||
c32bde28 | 31006 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31007 | PyObject *obj; |
31008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31009 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
31010 | Py_INCREF(obj); | |
31011 | return Py_BuildValue((char *)""); | |
31012 | } | |
c32bde28 | 31013 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
b2dc1044 RD |
31014 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
31015 | return 1; | |
31016 | } | |
31017 | ||
31018 | ||
093d3ff1 | 31019 | static PyObject *_wrap_DirDialogDefaultFolderStr_get(void) { |
b2dc1044 RD |
31020 | PyObject *pyobj; |
31021 | ||
31022 | { | |
31023 | #if wxUSE_UNICODE | |
31024 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
31025 | #else | |
31026 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
31027 | #endif | |
31028 | } | |
31029 | return pyobj; | |
31030 | } | |
31031 | ||
31032 | ||
c32bde28 | 31033 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31034 | PyObject *resultobj; |
31035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 31036 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
31037 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
31038 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31039 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31040 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31041 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31042 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31043 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31044 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
31045 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31046 | int arg8 = (int) 0 ; | |
b2dc1044 | 31047 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
31048 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
31049 | wxGenericDirCtrl *result; | |
ae8162c8 | 31050 | bool temp3 = false ; |
d14a1e28 RD |
31051 | wxPoint temp4 ; |
31052 | wxSize temp5 ; | |
ae8162c8 RD |
31053 | bool temp7 = false ; |
31054 | bool temp9 = false ; | |
d14a1e28 | 31055 | PyObject * obj0 = 0 ; |
994141e6 | 31056 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31057 | PyObject * obj2 = 0 ; |
31058 | PyObject * obj3 = 0 ; | |
31059 | PyObject * obj4 = 0 ; | |
994141e6 | 31060 | PyObject * obj5 = 0 ; |
d14a1e28 | 31061 | PyObject * obj6 = 0 ; |
994141e6 | 31062 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
31063 | PyObject * obj8 = 0 ; |
31064 | char *kwnames[] = { | |
31065 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31066 | }; | |
31067 | ||
994141e6 | 31068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
31069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 31071 | if (obj1) { |
093d3ff1 RD |
31072 | { |
31073 | arg2 = (int const)(SWIG_As_int(obj1)); | |
31074 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31075 | } | |
994141e6 | 31076 | } |
d14a1e28 RD |
31077 | if (obj2) { |
31078 | { | |
31079 | arg3 = wxString_in_helper(obj2); | |
31080 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31081 | temp3 = true; |
d14a1e28 RD |
31082 | } |
31083 | } | |
31084 | if (obj3) { | |
31085 | { | |
31086 | arg4 = &temp4; | |
31087 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31088 | } | |
31089 | } | |
31090 | if (obj4) { | |
31091 | { | |
31092 | arg5 = &temp5; | |
31093 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31094 | } | |
31095 | } | |
994141e6 | 31096 | if (obj5) { |
093d3ff1 RD |
31097 | { |
31098 | arg6 = (long)(SWIG_As_long(obj5)); | |
31099 | if (SWIG_arg_fail(6)) SWIG_fail; | |
31100 | } | |
994141e6 | 31101 | } |
d14a1e28 RD |
31102 | if (obj6) { |
31103 | { | |
31104 | arg7 = wxString_in_helper(obj6); | |
31105 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 31106 | temp7 = true; |
d14a1e28 RD |
31107 | } |
31108 | } | |
994141e6 | 31109 | if (obj7) { |
093d3ff1 RD |
31110 | { |
31111 | arg8 = (int)(SWIG_As_int(obj7)); | |
31112 | if (SWIG_arg_fail(8)) SWIG_fail; | |
31113 | } | |
994141e6 | 31114 | } |
d14a1e28 RD |
31115 | if (obj8) { |
31116 | { | |
31117 | arg9 = wxString_in_helper(obj8); | |
31118 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 31119 | temp9 = true; |
d14a1e28 RD |
31120 | } |
31121 | } | |
31122 | { | |
e3b71cb8 | 31123 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31125 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
31126 | ||
31127 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31128 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31129 | } |
15afbcd0 | 31130 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
31131 | { |
31132 | if (temp3) | |
31133 | delete arg3; | |
31134 | } | |
31135 | { | |
31136 | if (temp7) | |
31137 | delete arg7; | |
31138 | } | |
31139 | { | |
31140 | if (temp9) | |
31141 | delete arg9; | |
31142 | } | |
31143 | return resultobj; | |
31144 | fail: | |
31145 | { | |
31146 | if (temp3) | |
31147 | delete arg3; | |
31148 | } | |
31149 | { | |
31150 | if (temp7) | |
31151 | delete arg7; | |
31152 | } | |
31153 | { | |
31154 | if (temp9) | |
31155 | delete arg9; | |
31156 | } | |
31157 | return NULL; | |
31158 | } | |
31159 | ||
31160 | ||
c32bde28 | 31161 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31162 | PyObject *resultobj; |
31163 | wxGenericDirCtrl *result; | |
31164 | char *kwnames[] = { | |
31165 | NULL | |
31166 | }; | |
31167 | ||
31168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
31169 | { | |
e3b71cb8 | 31170 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31172 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
31173 | ||
31174 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31175 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31176 | } |
15afbcd0 | 31177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
31178 | return resultobj; |
31179 | fail: | |
31180 | return NULL; | |
31181 | } | |
31182 | ||
31183 | ||
c32bde28 | 31184 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31185 | PyObject *resultobj; |
31186 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31187 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 31188 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
31189 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
31190 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31191 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
31192 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
31193 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
31194 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
31195 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31196 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
31197 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31198 | int arg9 = (int) 0 ; | |
b2dc1044 | 31199 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
31200 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
31201 | bool result; | |
ae8162c8 | 31202 | bool temp4 = false ; |
d14a1e28 RD |
31203 | wxPoint temp5 ; |
31204 | wxSize temp6 ; | |
ae8162c8 RD |
31205 | bool temp8 = false ; |
31206 | bool temp10 = false ; | |
d14a1e28 RD |
31207 | PyObject * obj0 = 0 ; |
31208 | PyObject * obj1 = 0 ; | |
994141e6 | 31209 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31210 | PyObject * obj3 = 0 ; |
31211 | PyObject * obj4 = 0 ; | |
31212 | PyObject * obj5 = 0 ; | |
994141e6 | 31213 | PyObject * obj6 = 0 ; |
d14a1e28 | 31214 | PyObject * obj7 = 0 ; |
994141e6 | 31215 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
31216 | PyObject * obj9 = 0 ; |
31217 | char *kwnames[] = { | |
31218 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31219 | }; | |
31220 | ||
994141e6 | 31221 | 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 |
31222 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31223 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31224 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
31225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 31226 | if (obj2) { |
093d3ff1 RD |
31227 | { |
31228 | arg3 = (int const)(SWIG_As_int(obj2)); | |
31229 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31230 | } | |
994141e6 | 31231 | } |
d14a1e28 RD |
31232 | if (obj3) { |
31233 | { | |
31234 | arg4 = wxString_in_helper(obj3); | |
31235 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31236 | temp4 = true; |
d14a1e28 RD |
31237 | } |
31238 | } | |
31239 | if (obj4) { | |
31240 | { | |
31241 | arg5 = &temp5; | |
31242 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
31243 | } | |
31244 | } | |
31245 | if (obj5) { | |
31246 | { | |
31247 | arg6 = &temp6; | |
31248 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
31249 | } | |
31250 | } | |
994141e6 | 31251 | if (obj6) { |
093d3ff1 RD |
31252 | { |
31253 | arg7 = (long)(SWIG_As_long(obj6)); | |
31254 | if (SWIG_arg_fail(7)) SWIG_fail; | |
31255 | } | |
994141e6 | 31256 | } |
d14a1e28 RD |
31257 | if (obj7) { |
31258 | { | |
31259 | arg8 = wxString_in_helper(obj7); | |
31260 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 31261 | temp8 = true; |
d14a1e28 RD |
31262 | } |
31263 | } | |
994141e6 | 31264 | if (obj8) { |
093d3ff1 RD |
31265 | { |
31266 | arg9 = (int)(SWIG_As_int(obj8)); | |
31267 | if (SWIG_arg_fail(9)) SWIG_fail; | |
31268 | } | |
994141e6 | 31269 | } |
d14a1e28 RD |
31270 | if (obj9) { |
31271 | { | |
31272 | arg10 = wxString_in_helper(obj9); | |
31273 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 31274 | temp10 = true; |
d14a1e28 RD |
31275 | } |
31276 | } | |
31277 | { | |
31278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31279 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
31280 | ||
31281 | wxPyEndAllowThreads(__tstate); | |
31282 | if (PyErr_Occurred()) SWIG_fail; | |
31283 | } | |
4f89f6a3 RD |
31284 | { |
31285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31286 | } | |
d14a1e28 RD |
31287 | { |
31288 | if (temp4) | |
31289 | delete arg4; | |
31290 | } | |
31291 | { | |
31292 | if (temp8) | |
31293 | delete arg8; | |
31294 | } | |
31295 | { | |
31296 | if (temp10) | |
31297 | delete arg10; | |
31298 | } | |
31299 | return resultobj; | |
31300 | fail: | |
31301 | { | |
31302 | if (temp4) | |
31303 | delete arg4; | |
31304 | } | |
31305 | { | |
31306 | if (temp8) | |
31307 | delete arg8; | |
31308 | } | |
31309 | { | |
31310 | if (temp10) | |
31311 | delete arg10; | |
31312 | } | |
31313 | return NULL; | |
31314 | } | |
31315 | ||
31316 | ||
c32bde28 | 31317 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31318 | PyObject *resultobj; |
31319 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31320 | wxString *arg2 = 0 ; | |
31321 | bool result; | |
ae8162c8 | 31322 | bool temp2 = false ; |
d14a1e28 RD |
31323 | PyObject * obj0 = 0 ; |
31324 | PyObject * obj1 = 0 ; | |
31325 | char *kwnames[] = { | |
31326 | (char *) "self",(char *) "path", NULL | |
31327 | }; | |
31328 | ||
31329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31332 | { |
31333 | arg2 = wxString_in_helper(obj1); | |
31334 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31335 | temp2 = true; |
d14a1e28 RD |
31336 | } |
31337 | { | |
31338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31339 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
31340 | ||
31341 | wxPyEndAllowThreads(__tstate); | |
31342 | if (PyErr_Occurred()) SWIG_fail; | |
31343 | } | |
4f89f6a3 RD |
31344 | { |
31345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31346 | } | |
d14a1e28 RD |
31347 | { |
31348 | if (temp2) | |
31349 | delete arg2; | |
31350 | } | |
31351 | return resultobj; | |
31352 | fail: | |
31353 | { | |
31354 | if (temp2) | |
31355 | delete arg2; | |
31356 | } | |
31357 | return NULL; | |
31358 | } | |
31359 | ||
31360 | ||
c32bde28 | 31361 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31362 | PyObject *resultobj; |
31363 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31364 | wxString result; | |
31365 | PyObject * obj0 = 0 ; | |
31366 | char *kwnames[] = { | |
31367 | (char *) "self", NULL | |
31368 | }; | |
31369 | ||
31370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31373 | { |
31374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31375 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
31376 | ||
31377 | wxPyEndAllowThreads(__tstate); | |
31378 | if (PyErr_Occurred()) SWIG_fail; | |
31379 | } | |
31380 | { | |
31381 | #if wxUSE_UNICODE | |
31382 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31383 | #else | |
31384 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31385 | #endif | |
31386 | } | |
31387 | return resultobj; | |
31388 | fail: | |
31389 | return NULL; | |
31390 | } | |
31391 | ||
31392 | ||
c32bde28 | 31393 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31394 | PyObject *resultobj; |
31395 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31396 | wxString *arg2 = 0 ; | |
ae8162c8 | 31397 | bool temp2 = false ; |
d14a1e28 RD |
31398 | PyObject * obj0 = 0 ; |
31399 | PyObject * obj1 = 0 ; | |
31400 | char *kwnames[] = { | |
31401 | (char *) "self",(char *) "path", NULL | |
31402 | }; | |
31403 | ||
31404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31405 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31406 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31407 | { |
31408 | arg2 = wxString_in_helper(obj1); | |
31409 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31410 | temp2 = true; |
d14a1e28 RD |
31411 | } |
31412 | { | |
31413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31414 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
31415 | ||
31416 | wxPyEndAllowThreads(__tstate); | |
31417 | if (PyErr_Occurred()) SWIG_fail; | |
31418 | } | |
31419 | Py_INCREF(Py_None); resultobj = Py_None; | |
31420 | { | |
31421 | if (temp2) | |
31422 | delete arg2; | |
31423 | } | |
31424 | return resultobj; | |
31425 | fail: | |
31426 | { | |
31427 | if (temp2) | |
31428 | delete arg2; | |
31429 | } | |
31430 | return NULL; | |
31431 | } | |
31432 | ||
31433 | ||
c32bde28 | 31434 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31435 | PyObject *resultobj; |
31436 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31437 | wxString result; | |
31438 | PyObject * obj0 = 0 ; | |
31439 | char *kwnames[] = { | |
31440 | (char *) "self", NULL | |
31441 | }; | |
31442 | ||
31443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31446 | { |
31447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31448 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
31449 | ||
31450 | wxPyEndAllowThreads(__tstate); | |
31451 | if (PyErr_Occurred()) SWIG_fail; | |
31452 | } | |
31453 | { | |
31454 | #if wxUSE_UNICODE | |
31455 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31456 | #else | |
31457 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31458 | #endif | |
31459 | } | |
31460 | return resultobj; | |
31461 | fail: | |
31462 | return NULL; | |
31463 | } | |
31464 | ||
31465 | ||
c32bde28 | 31466 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31467 | PyObject *resultobj; |
31468 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31469 | wxString result; | |
31470 | PyObject * obj0 = 0 ; | |
31471 | char *kwnames[] = { | |
31472 | (char *) "self", NULL | |
31473 | }; | |
31474 | ||
31475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31478 | { |
31479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31480 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
31481 | ||
31482 | wxPyEndAllowThreads(__tstate); | |
31483 | if (PyErr_Occurred()) SWIG_fail; | |
31484 | } | |
31485 | { | |
31486 | #if wxUSE_UNICODE | |
31487 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31488 | #else | |
31489 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31490 | #endif | |
31491 | } | |
31492 | return resultobj; | |
31493 | fail: | |
31494 | return NULL; | |
31495 | } | |
31496 | ||
31497 | ||
c32bde28 | 31498 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31499 | PyObject *resultobj; |
31500 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31501 | wxString *arg2 = 0 ; | |
ae8162c8 | 31502 | bool temp2 = false ; |
d14a1e28 RD |
31503 | PyObject * obj0 = 0 ; |
31504 | PyObject * obj1 = 0 ; | |
31505 | char *kwnames[] = { | |
31506 | (char *) "self",(char *) "path", NULL | |
31507 | }; | |
31508 | ||
31509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31510 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31511 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31512 | { |
31513 | arg2 = wxString_in_helper(obj1); | |
31514 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31515 | temp2 = true; |
d14a1e28 RD |
31516 | } |
31517 | { | |
31518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31519 | (arg1)->SetPath((wxString const &)*arg2); | |
31520 | ||
31521 | wxPyEndAllowThreads(__tstate); | |
31522 | if (PyErr_Occurred()) SWIG_fail; | |
31523 | } | |
31524 | Py_INCREF(Py_None); resultobj = Py_None; | |
31525 | { | |
31526 | if (temp2) | |
31527 | delete arg2; | |
31528 | } | |
31529 | return resultobj; | |
31530 | fail: | |
31531 | { | |
31532 | if (temp2) | |
31533 | delete arg2; | |
31534 | } | |
31535 | return NULL; | |
31536 | } | |
31537 | ||
31538 | ||
c32bde28 | 31539 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31540 | PyObject *resultobj; |
31541 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31542 | bool arg2 ; | |
31543 | PyObject * obj0 = 0 ; | |
31544 | PyObject * obj1 = 0 ; | |
31545 | char *kwnames[] = { | |
31546 | (char *) "self",(char *) "show", NULL | |
31547 | }; | |
31548 | ||
31549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31550 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31551 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31552 | { | |
31553 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
31554 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31555 | } | |
d14a1e28 RD |
31556 | { |
31557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31558 | (arg1)->ShowHidden(arg2); | |
31559 | ||
31560 | wxPyEndAllowThreads(__tstate); | |
31561 | if (PyErr_Occurred()) SWIG_fail; | |
31562 | } | |
31563 | Py_INCREF(Py_None); resultobj = Py_None; | |
31564 | return resultobj; | |
31565 | fail: | |
31566 | return NULL; | |
31567 | } | |
31568 | ||
31569 | ||
c32bde28 | 31570 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31571 | PyObject *resultobj; |
31572 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31573 | bool result; | |
31574 | PyObject * obj0 = 0 ; | |
31575 | char *kwnames[] = { | |
31576 | (char *) "self", NULL | |
31577 | }; | |
31578 | ||
31579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31582 | { |
31583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31584 | result = (bool)(arg1)->GetShowHidden(); | |
31585 | ||
31586 | wxPyEndAllowThreads(__tstate); | |
31587 | if (PyErr_Occurred()) SWIG_fail; | |
31588 | } | |
4f89f6a3 RD |
31589 | { |
31590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31591 | } | |
d14a1e28 RD |
31592 | return resultobj; |
31593 | fail: | |
31594 | return NULL; | |
31595 | } | |
31596 | ||
31597 | ||
c32bde28 | 31598 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31599 | PyObject *resultobj; |
31600 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31601 | wxString result; | |
31602 | PyObject * obj0 = 0 ; | |
31603 | char *kwnames[] = { | |
31604 | (char *) "self", NULL | |
31605 | }; | |
31606 | ||
31607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31610 | { |
31611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31612 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
31613 | ||
31614 | wxPyEndAllowThreads(__tstate); | |
31615 | if (PyErr_Occurred()) SWIG_fail; | |
31616 | } | |
31617 | { | |
31618 | #if wxUSE_UNICODE | |
31619 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31620 | #else | |
31621 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31622 | #endif | |
31623 | } | |
31624 | return resultobj; | |
31625 | fail: | |
31626 | return NULL; | |
31627 | } | |
31628 | ||
31629 | ||
c32bde28 | 31630 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31631 | PyObject *resultobj; |
31632 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31633 | wxString *arg2 = 0 ; | |
ae8162c8 | 31634 | bool temp2 = false ; |
d14a1e28 RD |
31635 | PyObject * obj0 = 0 ; |
31636 | PyObject * obj1 = 0 ; | |
31637 | char *kwnames[] = { | |
31638 | (char *) "self",(char *) "filter", NULL | |
31639 | }; | |
31640 | ||
31641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31644 | { |
31645 | arg2 = wxString_in_helper(obj1); | |
31646 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31647 | temp2 = true; |
d14a1e28 RD |
31648 | } |
31649 | { | |
31650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31651 | (arg1)->SetFilter((wxString const &)*arg2); | |
31652 | ||
31653 | wxPyEndAllowThreads(__tstate); | |
31654 | if (PyErr_Occurred()) SWIG_fail; | |
31655 | } | |
31656 | Py_INCREF(Py_None); resultobj = Py_None; | |
31657 | { | |
31658 | if (temp2) | |
31659 | delete arg2; | |
31660 | } | |
31661 | return resultobj; | |
31662 | fail: | |
31663 | { | |
31664 | if (temp2) | |
31665 | delete arg2; | |
31666 | } | |
31667 | return NULL; | |
31668 | } | |
31669 | ||
31670 | ||
c32bde28 | 31671 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31672 | PyObject *resultobj; |
31673 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31674 | int result; | |
31675 | PyObject * obj0 = 0 ; | |
31676 | char *kwnames[] = { | |
31677 | (char *) "self", NULL | |
31678 | }; | |
31679 | ||
31680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31683 | { |
31684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31685 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
31686 | ||
31687 | wxPyEndAllowThreads(__tstate); | |
31688 | if (PyErr_Occurred()) SWIG_fail; | |
31689 | } | |
093d3ff1 RD |
31690 | { |
31691 | resultobj = SWIG_From_int((int)(result)); | |
31692 | } | |
d14a1e28 RD |
31693 | return resultobj; |
31694 | fail: | |
31695 | return NULL; | |
31696 | } | |
31697 | ||
31698 | ||
c32bde28 | 31699 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31700 | PyObject *resultobj; |
31701 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31702 | int arg2 ; | |
31703 | PyObject * obj0 = 0 ; | |
994141e6 | 31704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31705 | char *kwnames[] = { |
31706 | (char *) "self",(char *) "n", NULL | |
31707 | }; | |
31708 | ||
994141e6 | 31709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31712 | { | |
31713 | arg2 = (int)(SWIG_As_int(obj1)); | |
31714 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31715 | } | |
d14a1e28 RD |
31716 | { |
31717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31718 | (arg1)->SetFilterIndex(arg2); | |
31719 | ||
31720 | wxPyEndAllowThreads(__tstate); | |
31721 | if (PyErr_Occurred()) SWIG_fail; | |
31722 | } | |
31723 | Py_INCREF(Py_None); resultobj = Py_None; | |
31724 | return resultobj; | |
31725 | fail: | |
31726 | return NULL; | |
31727 | } | |
31728 | ||
31729 | ||
c32bde28 | 31730 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31731 | PyObject *resultobj; |
31732 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31733 | wxTreeItemId result; | |
31734 | PyObject * obj0 = 0 ; | |
31735 | char *kwnames[] = { | |
31736 | (char *) "self", NULL | |
31737 | }; | |
31738 | ||
31739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31742 | { |
31743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31744 | result = (arg1)->GetRootId(); | |
31745 | ||
31746 | wxPyEndAllowThreads(__tstate); | |
31747 | if (PyErr_Occurred()) SWIG_fail; | |
31748 | } | |
31749 | { | |
31750 | wxTreeItemId * resultptr; | |
093d3ff1 | 31751 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 31752 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31753 | } |
31754 | return resultobj; | |
31755 | fail: | |
31756 | return NULL; | |
31757 | } | |
31758 | ||
31759 | ||
c32bde28 | 31760 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31761 | PyObject *resultobj; |
31762 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 31763 | wxPyTreeCtrl *result; |
d14a1e28 RD |
31764 | PyObject * obj0 = 0 ; |
31765 | char *kwnames[] = { | |
31766 | (char *) "self", NULL | |
31767 | }; | |
31768 | ||
31769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31772 | { |
31773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 31774 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
31775 | |
31776 | wxPyEndAllowThreads(__tstate); | |
31777 | if (PyErr_Occurred()) SWIG_fail; | |
31778 | } | |
31779 | { | |
412d302d | 31780 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31781 | } |
31782 | return resultobj; | |
31783 | fail: | |
31784 | return NULL; | |
31785 | } | |
31786 | ||
31787 | ||
c32bde28 | 31788 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31789 | PyObject *resultobj; |
31790 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31791 | wxDirFilterListCtrl *result; | |
31792 | PyObject * obj0 = 0 ; | |
31793 | char *kwnames[] = { | |
31794 | (char *) "self", NULL | |
31795 | }; | |
31796 | ||
31797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31800 | { |
31801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31802 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
31803 | ||
31804 | wxPyEndAllowThreads(__tstate); | |
31805 | if (PyErr_Occurred()) SWIG_fail; | |
31806 | } | |
15afbcd0 | 31807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
31808 | return resultobj; |
31809 | fail: | |
31810 | return NULL; | |
31811 | } | |
31812 | ||
31813 | ||
c32bde28 | 31814 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31815 | PyObject *resultobj; |
31816 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31817 | wxTreeItemId arg2 ; | |
31818 | wxString *arg3 = 0 ; | |
31819 | bool *arg4 = 0 ; | |
31820 | wxTreeItemId result; | |
ae8162c8 | 31821 | bool temp3 = false ; |
d14a1e28 | 31822 | bool temp4 ; |
c32bde28 | 31823 | int res4 = 0 ; |
d14a1e28 RD |
31824 | PyObject * obj0 = 0 ; |
31825 | PyObject * obj1 = 0 ; | |
31826 | PyObject * obj2 = 0 ; | |
31827 | char *kwnames[] = { | |
31828 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
31829 | }; | |
31830 | ||
c32bde28 | 31831 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d14a1e28 | 31832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
31833 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31834 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31835 | { | |
31836 | wxTreeItemId * argp; | |
31837 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION); | |
31838 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31839 | if (argp == NULL) { | |
31840 | SWIG_null_ref("wxTreeItemId"); | |
31841 | } | |
31842 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31843 | arg2 = *argp; | |
31844 | } | |
d14a1e28 RD |
31845 | { |
31846 | arg3 = wxString_in_helper(obj2); | |
31847 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31848 | temp3 = true; |
d14a1e28 RD |
31849 | } |
31850 | { | |
31851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31852 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
31853 | ||
31854 | wxPyEndAllowThreads(__tstate); | |
31855 | if (PyErr_Occurred()) SWIG_fail; | |
31856 | } | |
31857 | { | |
31858 | wxTreeItemId * resultptr; | |
093d3ff1 | 31859 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 31860 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 31861 | } |
c32bde28 RD |
31862 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
31863 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d14a1e28 RD |
31864 | { |
31865 | if (temp3) | |
31866 | delete arg3; | |
31867 | } | |
31868 | return resultobj; | |
31869 | fail: | |
31870 | { | |
31871 | if (temp3) | |
31872 | delete arg3; | |
31873 | } | |
31874 | return NULL; | |
31875 | } | |
31876 | ||
31877 | ||
c32bde28 | 31878 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31879 | PyObject *resultobj; |
31880 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31881 | PyObject * obj0 = 0 ; | |
31882 | char *kwnames[] = { | |
31883 | (char *) "self", NULL | |
31884 | }; | |
31885 | ||
31886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31889 | { |
31890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31891 | (arg1)->DoResize(); | |
31892 | ||
31893 | wxPyEndAllowThreads(__tstate); | |
31894 | if (PyErr_Occurred()) SWIG_fail; | |
31895 | } | |
31896 | Py_INCREF(Py_None); resultobj = Py_None; | |
31897 | return resultobj; | |
31898 | fail: | |
31899 | return NULL; | |
31900 | } | |
31901 | ||
31902 | ||
c32bde28 | 31903 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31904 | PyObject *resultobj; |
31905 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31906 | PyObject * obj0 = 0 ; | |
31907 | char *kwnames[] = { | |
31908 | (char *) "self", NULL | |
31909 | }; | |
31910 | ||
31911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31914 | { |
31915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31916 | (arg1)->ReCreateTree(); | |
31917 | ||
31918 | wxPyEndAllowThreads(__tstate); | |
31919 | if (PyErr_Occurred()) SWIG_fail; | |
31920 | } | |
31921 | Py_INCREF(Py_None); resultobj = Py_None; | |
31922 | return resultobj; | |
31923 | fail: | |
31924 | return NULL; | |
31925 | } | |
31926 | ||
31927 | ||
c32bde28 | 31928 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31929 | PyObject *obj; |
31930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31931 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
31932 | Py_INCREF(obj); | |
31933 | return Py_BuildValue((char *)""); | |
31934 | } | |
c32bde28 | 31935 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31936 | PyObject *resultobj; |
31937 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 31938 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
31939 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
31940 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31941 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31942 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31943 | long arg5 = (long) 0 ; | |
31944 | wxDirFilterListCtrl *result; | |
31945 | wxPoint temp3 ; | |
31946 | wxSize temp4 ; | |
31947 | PyObject * obj0 = 0 ; | |
994141e6 | 31948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31949 | PyObject * obj2 = 0 ; |
31950 | PyObject * obj3 = 0 ; | |
994141e6 | 31951 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31952 | char *kwnames[] = { |
31953 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
31954 | }; | |
31955 | ||
994141e6 | 31956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
31957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 31959 | if (obj1) { |
093d3ff1 RD |
31960 | { |
31961 | arg2 = (int const)(SWIG_As_int(obj1)); | |
31962 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31963 | } | |
994141e6 | 31964 | } |
d14a1e28 RD |
31965 | if (obj2) { |
31966 | { | |
31967 | arg3 = &temp3; | |
31968 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31969 | } | |
31970 | } | |
31971 | if (obj3) { | |
31972 | { | |
31973 | arg4 = &temp4; | |
31974 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31975 | } | |
31976 | } | |
994141e6 | 31977 | if (obj4) { |
093d3ff1 RD |
31978 | { |
31979 | arg5 = (long)(SWIG_As_long(obj4)); | |
31980 | if (SWIG_arg_fail(5)) SWIG_fail; | |
31981 | } | |
994141e6 | 31982 | } |
d14a1e28 | 31983 | { |
e3b71cb8 | 31984 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31986 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
31987 | ||
31988 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31989 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31990 | } |
15afbcd0 | 31991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
31992 | return resultobj; |
31993 | fail: | |
31994 | return NULL; | |
31995 | } | |
31996 | ||
31997 | ||
c32bde28 | 31998 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31999 | PyObject *resultobj; |
32000 | wxDirFilterListCtrl *result; | |
32001 | char *kwnames[] = { | |
32002 | NULL | |
32003 | }; | |
32004 | ||
32005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
32006 | { | |
e3b71cb8 | 32007 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32009 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
32010 | ||
32011 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32012 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32013 | } |
15afbcd0 | 32014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
32015 | return resultobj; |
32016 | fail: | |
32017 | return NULL; | |
32018 | } | |
32019 | ||
32020 | ||
c32bde28 | 32021 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32022 | PyObject *resultobj; |
32023 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
32024 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 32025 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
32026 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
32027 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32028 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32029 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32030 | long arg6 = (long) 0 ; | |
32031 | bool result; | |
32032 | wxPoint temp4 ; | |
32033 | wxSize temp5 ; | |
32034 | PyObject * obj0 = 0 ; | |
32035 | PyObject * obj1 = 0 ; | |
994141e6 | 32036 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32037 | PyObject * obj3 = 0 ; |
32038 | PyObject * obj4 = 0 ; | |
994141e6 | 32039 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
32040 | char *kwnames[] = { |
32041 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
32042 | }; | |
32043 | ||
994141e6 | 32044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
32045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
32046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32047 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
32048 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 32049 | if (obj2) { |
093d3ff1 RD |
32050 | { |
32051 | arg3 = (int const)(SWIG_As_int(obj2)); | |
32052 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32053 | } | |
994141e6 | 32054 | } |
d14a1e28 RD |
32055 | if (obj3) { |
32056 | { | |
32057 | arg4 = &temp4; | |
32058 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32059 | } | |
32060 | } | |
32061 | if (obj4) { | |
32062 | { | |
32063 | arg5 = &temp5; | |
32064 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32065 | } | |
32066 | } | |
994141e6 | 32067 | if (obj5) { |
093d3ff1 RD |
32068 | { |
32069 | arg6 = (long)(SWIG_As_long(obj5)); | |
32070 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32071 | } | |
994141e6 | 32072 | } |
d14a1e28 RD |
32073 | { |
32074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32075 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
32076 | ||
32077 | wxPyEndAllowThreads(__tstate); | |
32078 | if (PyErr_Occurred()) SWIG_fail; | |
32079 | } | |
4f89f6a3 RD |
32080 | { |
32081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32082 | } | |
d14a1e28 RD |
32083 | return resultobj; |
32084 | fail: | |
32085 | return NULL; | |
32086 | } | |
32087 | ||
32088 | ||
c32bde28 | 32089 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32090 | PyObject *resultobj; |
32091 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
32092 | wxString *arg2 = 0 ; | |
32093 | int arg3 ; | |
ae8162c8 | 32094 | bool temp2 = false ; |
d14a1e28 RD |
32095 | PyObject * obj0 = 0 ; |
32096 | PyObject * obj1 = 0 ; | |
994141e6 | 32097 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32098 | char *kwnames[] = { |
32099 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
32100 | }; | |
32101 | ||
994141e6 | 32102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
32104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32105 | { |
32106 | arg2 = wxString_in_helper(obj1); | |
32107 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32108 | temp2 = true; |
d14a1e28 | 32109 | } |
093d3ff1 RD |
32110 | { |
32111 | arg3 = (int)(SWIG_As_int(obj2)); | |
32112 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32113 | } | |
d14a1e28 RD |
32114 | { |
32115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32116 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
32117 | ||
32118 | wxPyEndAllowThreads(__tstate); | |
32119 | if (PyErr_Occurred()) SWIG_fail; | |
32120 | } | |
32121 | Py_INCREF(Py_None); resultobj = Py_None; | |
32122 | { | |
32123 | if (temp2) | |
32124 | delete arg2; | |
32125 | } | |
32126 | return resultobj; | |
32127 | fail: | |
32128 | { | |
32129 | if (temp2) | |
32130 | delete arg2; | |
32131 | } | |
32132 | return NULL; | |
32133 | } | |
32134 | ||
32135 | ||
c32bde28 | 32136 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32137 | PyObject *obj; |
32138 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32139 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
32140 | Py_INCREF(obj); | |
32141 | return Py_BuildValue((char *)""); | |
32142 | } | |
c32bde28 | 32143 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32144 | PyObject *resultobj; |
32145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 32146 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
32147 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32148 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32149 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32150 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32151 | long arg5 = (long) 0 ; | |
32152 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32153 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32154 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32155 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32156 | wxPyControl *result; | |
32157 | wxPoint temp3 ; | |
32158 | wxSize temp4 ; | |
ae8162c8 | 32159 | bool temp7 = false ; |
d14a1e28 | 32160 | PyObject * obj0 = 0 ; |
994141e6 | 32161 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32162 | PyObject * obj2 = 0 ; |
32163 | PyObject * obj3 = 0 ; | |
994141e6 | 32164 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32165 | PyObject * obj5 = 0 ; |
32166 | PyObject * obj6 = 0 ; | |
32167 | char *kwnames[] = { | |
32168 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32169 | }; | |
32170 | ||
248ed943 | 32171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
32172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 32174 | if (obj1) { |
093d3ff1 RD |
32175 | { |
32176 | arg2 = (int const)(SWIG_As_int(obj1)); | |
32177 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32178 | } | |
248ed943 | 32179 | } |
d14a1e28 RD |
32180 | if (obj2) { |
32181 | { | |
32182 | arg3 = &temp3; | |
32183 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32184 | } | |
32185 | } | |
32186 | if (obj3) { | |
32187 | { | |
32188 | arg4 = &temp4; | |
32189 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32190 | } | |
32191 | } | |
994141e6 | 32192 | if (obj4) { |
093d3ff1 RD |
32193 | { |
32194 | arg5 = (long)(SWIG_As_long(obj4)); | |
32195 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32196 | } | |
994141e6 | 32197 | } |
d14a1e28 | 32198 | if (obj5) { |
093d3ff1 RD |
32199 | { |
32200 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
32201 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32202 | if (arg6 == NULL) { | |
32203 | SWIG_null_ref("wxValidator"); | |
32204 | } | |
32205 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
32206 | } |
32207 | } | |
32208 | if (obj6) { | |
32209 | { | |
32210 | arg7 = wxString_in_helper(obj6); | |
32211 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 32212 | temp7 = true; |
d14a1e28 RD |
32213 | } |
32214 | } | |
32215 | { | |
e3b71cb8 | 32216 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32218 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32219 | ||
32220 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32221 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32222 | } |
15afbcd0 | 32223 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
32224 | { |
32225 | if (temp7) | |
32226 | delete arg7; | |
32227 | } | |
32228 | return resultobj; | |
32229 | fail: | |
32230 | { | |
32231 | if (temp7) | |
32232 | delete arg7; | |
32233 | } | |
32234 | return NULL; | |
32235 | } | |
32236 | ||
32237 | ||
c32bde28 | 32238 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
32239 | PyObject *resultobj; |
32240 | wxPyControl *result; | |
32241 | char *kwnames[] = { | |
32242 | NULL | |
32243 | }; | |
32244 | ||
32245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
32246 | { | |
e3b71cb8 | 32247 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
32248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32249 | result = (wxPyControl *)new wxPyControl(); | |
32250 | ||
32251 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32252 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
32253 | } |
32254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32255 | return resultobj; | |
32256 | fail: | |
32257 | return NULL; | |
32258 | } | |
32259 | ||
32260 | ||
c32bde28 | 32261 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32262 | PyObject *resultobj; |
32263 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32264 | PyObject *arg2 = (PyObject *) 0 ; | |
32265 | PyObject *arg3 = (PyObject *) 0 ; | |
32266 | PyObject * obj0 = 0 ; | |
32267 | PyObject * obj1 = 0 ; | |
32268 | PyObject * obj2 = 0 ; | |
32269 | char *kwnames[] = { | |
32270 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
32271 | }; | |
32272 | ||
32273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32276 | arg2 = obj1; |
32277 | arg3 = obj2; | |
32278 | { | |
32279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32280 | (arg1)->_setCallbackInfo(arg2,arg3); | |
32281 | ||
32282 | wxPyEndAllowThreads(__tstate); | |
32283 | if (PyErr_Occurred()) SWIG_fail; | |
32284 | } | |
32285 | Py_INCREF(Py_None); resultobj = Py_None; | |
32286 | return resultobj; | |
32287 | fail: | |
32288 | return NULL; | |
32289 | } | |
32290 | ||
32291 | ||
c32bde28 | 32292 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
32293 | PyObject *resultobj; |
32294 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32295 | wxSize *arg2 = 0 ; | |
32296 | wxSize temp2 ; | |
32297 | PyObject * obj0 = 0 ; | |
32298 | PyObject * obj1 = 0 ; | |
32299 | char *kwnames[] = { | |
32300 | (char *) "self",(char *) "size", NULL | |
32301 | }; | |
32302 | ||
32303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db3e571a RD |
32306 | { |
32307 | arg2 = &temp2; | |
32308 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
32309 | } | |
32310 | { | |
32311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32312 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
32313 | ||
32314 | wxPyEndAllowThreads(__tstate); | |
32315 | if (PyErr_Occurred()) SWIG_fail; | |
32316 | } | |
32317 | Py_INCREF(Py_None); resultobj = Py_None; | |
32318 | return resultobj; | |
32319 | fail: | |
32320 | return NULL; | |
32321 | } | |
32322 | ||
32323 | ||
c32bde28 | 32324 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32325 | PyObject *resultobj; |
32326 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32327 | int arg2 ; | |
32328 | int arg3 ; | |
32329 | int arg4 ; | |
32330 | int arg5 ; | |
32331 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32332 | PyObject * obj1 = 0 ; |
32333 | PyObject * obj2 = 0 ; | |
32334 | PyObject * obj3 = 0 ; | |
32335 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32336 | char *kwnames[] = { |
32337 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
32338 | }; | |
32339 | ||
994141e6 | 32340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
32341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32343 | { | |
32344 | arg2 = (int)(SWIG_As_int(obj1)); | |
32345 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32346 | } | |
32347 | { | |
32348 | arg3 = (int)(SWIG_As_int(obj2)); | |
32349 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32350 | } | |
32351 | { | |
32352 | arg4 = (int)(SWIG_As_int(obj3)); | |
32353 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32354 | } | |
32355 | { | |
32356 | arg5 = (int)(SWIG_As_int(obj4)); | |
32357 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32358 | } | |
d14a1e28 RD |
32359 | { |
32360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32361 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
32362 | ||
32363 | wxPyEndAllowThreads(__tstate); | |
32364 | if (PyErr_Occurred()) SWIG_fail; | |
32365 | } | |
32366 | Py_INCREF(Py_None); resultobj = Py_None; | |
32367 | return resultobj; | |
32368 | fail: | |
32369 | return NULL; | |
32370 | } | |
32371 | ||
32372 | ||
c32bde28 | 32373 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32374 | PyObject *resultobj; |
32375 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32376 | int arg2 ; | |
32377 | int arg3 ; | |
32378 | int arg4 ; | |
32379 | int arg5 ; | |
32380 | int arg6 = (int) wxSIZE_AUTO ; | |
32381 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32382 | PyObject * obj1 = 0 ; |
32383 | PyObject * obj2 = 0 ; | |
32384 | PyObject * obj3 = 0 ; | |
32385 | PyObject * obj4 = 0 ; | |
32386 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
32387 | char *kwnames[] = { |
32388 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
32389 | }; | |
32390 | ||
994141e6 | 32391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
32392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32394 | { | |
32395 | arg2 = (int)(SWIG_As_int(obj1)); | |
32396 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32397 | } | |
32398 | { | |
32399 | arg3 = (int)(SWIG_As_int(obj2)); | |
32400 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32401 | } | |
32402 | { | |
32403 | arg4 = (int)(SWIG_As_int(obj3)); | |
32404 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32405 | } | |
32406 | { | |
32407 | arg5 = (int)(SWIG_As_int(obj4)); | |
32408 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32409 | } | |
994141e6 | 32410 | if (obj5) { |
093d3ff1 RD |
32411 | { |
32412 | arg6 = (int)(SWIG_As_int(obj5)); | |
32413 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32414 | } | |
994141e6 | 32415 | } |
d14a1e28 RD |
32416 | { |
32417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32418 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
32419 | ||
32420 | wxPyEndAllowThreads(__tstate); | |
32421 | if (PyErr_Occurred()) SWIG_fail; | |
32422 | } | |
32423 | Py_INCREF(Py_None); resultobj = Py_None; | |
32424 | return resultobj; | |
32425 | fail: | |
32426 | return NULL; | |
32427 | } | |
32428 | ||
32429 | ||
c32bde28 | 32430 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32431 | PyObject *resultobj; |
32432 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32433 | int arg2 ; | |
32434 | int arg3 ; | |
32435 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32436 | PyObject * obj1 = 0 ; |
32437 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32438 | char *kwnames[] = { |
32439 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32440 | }; | |
32441 | ||
994141e6 | 32442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32443 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32445 | { | |
32446 | arg2 = (int)(SWIG_As_int(obj1)); | |
32447 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32448 | } | |
32449 | { | |
32450 | arg3 = (int)(SWIG_As_int(obj2)); | |
32451 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32452 | } | |
d14a1e28 RD |
32453 | { |
32454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32455 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
32456 | ||
32457 | wxPyEndAllowThreads(__tstate); | |
32458 | if (PyErr_Occurred()) SWIG_fail; | |
32459 | } | |
32460 | Py_INCREF(Py_None); resultobj = Py_None; | |
32461 | return resultobj; | |
32462 | fail: | |
32463 | return NULL; | |
32464 | } | |
32465 | ||
32466 | ||
c32bde28 | 32467 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32468 | PyObject *resultobj; |
32469 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32470 | int arg2 ; | |
32471 | int arg3 ; | |
32472 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32473 | PyObject * obj1 = 0 ; |
32474 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32475 | char *kwnames[] = { |
32476 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32477 | }; | |
32478 | ||
994141e6 | 32479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32482 | { | |
32483 | arg2 = (int)(SWIG_As_int(obj1)); | |
32484 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32485 | } | |
32486 | { | |
32487 | arg3 = (int)(SWIG_As_int(obj2)); | |
32488 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32489 | } | |
d14a1e28 RD |
32490 | { |
32491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32492 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
32493 | ||
32494 | wxPyEndAllowThreads(__tstate); | |
32495 | if (PyErr_Occurred()) SWIG_fail; | |
32496 | } | |
32497 | Py_INCREF(Py_None); resultobj = Py_None; | |
32498 | return resultobj; | |
32499 | fail: | |
32500 | return NULL; | |
32501 | } | |
32502 | ||
32503 | ||
c32bde28 | 32504 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32505 | PyObject *resultobj; |
32506 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32507 | int *arg2 = (int *) 0 ; | |
32508 | int *arg3 = (int *) 0 ; | |
32509 | int temp2 ; | |
c32bde28 | 32510 | int res2 = 0 ; |
d14a1e28 | 32511 | int temp3 ; |
c32bde28 | 32512 | int res3 = 0 ; |
d14a1e28 RD |
32513 | PyObject * obj0 = 0 ; |
32514 | char *kwnames[] = { | |
32515 | (char *) "self", NULL | |
32516 | }; | |
32517 | ||
c32bde28 RD |
32518 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32519 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32523 | { |
32524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32525 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
32526 | ||
32527 | wxPyEndAllowThreads(__tstate); | |
32528 | if (PyErr_Occurred()) SWIG_fail; | |
32529 | } | |
32530 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32531 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32532 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32533 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32534 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32535 | return resultobj; |
32536 | fail: | |
32537 | return NULL; | |
32538 | } | |
32539 | ||
32540 | ||
c32bde28 | 32541 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32542 | PyObject *resultobj; |
32543 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32544 | int *arg2 = (int *) 0 ; | |
32545 | int *arg3 = (int *) 0 ; | |
32546 | int temp2 ; | |
c32bde28 | 32547 | int res2 = 0 ; |
d14a1e28 | 32548 | int temp3 ; |
c32bde28 | 32549 | int res3 = 0 ; |
d14a1e28 RD |
32550 | PyObject * obj0 = 0 ; |
32551 | char *kwnames[] = { | |
32552 | (char *) "self", NULL | |
32553 | }; | |
32554 | ||
c32bde28 RD |
32555 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32556 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32560 | { |
32561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32562 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
32563 | ||
32564 | wxPyEndAllowThreads(__tstate); | |
32565 | if (PyErr_Occurred()) SWIG_fail; | |
32566 | } | |
32567 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32568 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32569 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32570 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32571 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32572 | return resultobj; |
32573 | fail: | |
32574 | return NULL; | |
32575 | } | |
32576 | ||
32577 | ||
c32bde28 | 32578 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32579 | PyObject *resultobj; |
32580 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32581 | int *arg2 = (int *) 0 ; | |
32582 | int *arg3 = (int *) 0 ; | |
32583 | int temp2 ; | |
c32bde28 | 32584 | int res2 = 0 ; |
d14a1e28 | 32585 | int temp3 ; |
c32bde28 | 32586 | int res3 = 0 ; |
d14a1e28 RD |
32587 | PyObject * obj0 = 0 ; |
32588 | char *kwnames[] = { | |
32589 | (char *) "self", NULL | |
32590 | }; | |
32591 | ||
c32bde28 RD |
32592 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32593 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32597 | { |
32598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32599 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
32600 | ||
32601 | wxPyEndAllowThreads(__tstate); | |
32602 | if (PyErr_Occurred()) SWIG_fail; | |
32603 | } | |
32604 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32605 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32606 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32607 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32608 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32609 | return resultobj; |
32610 | fail: | |
32611 | return NULL; | |
32612 | } | |
32613 | ||
32614 | ||
c32bde28 | 32615 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32616 | PyObject *resultobj; |
32617 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32618 | wxSize result; | |
32619 | PyObject * obj0 = 0 ; | |
32620 | char *kwnames[] = { | |
32621 | (char *) "self", NULL | |
32622 | }; | |
32623 | ||
32624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32627 | { |
32628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32629 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
32630 | ||
32631 | wxPyEndAllowThreads(__tstate); | |
32632 | if (PyErr_Occurred()) SWIG_fail; | |
32633 | } | |
32634 | { | |
32635 | wxSize * resultptr; | |
093d3ff1 | 32636 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 32637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32638 | } |
32639 | return resultobj; | |
32640 | fail: | |
32641 | return NULL; | |
32642 | } | |
32643 | ||
32644 | ||
c32bde28 | 32645 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32646 | PyObject *resultobj; |
32647 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32648 | wxSize result; | |
32649 | PyObject * obj0 = 0 ; | |
32650 | char *kwnames[] = { | |
32651 | (char *) "self", NULL | |
32652 | }; | |
32653 | ||
32654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32657 | { |
32658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32659 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
32660 | ||
32661 | wxPyEndAllowThreads(__tstate); | |
32662 | if (PyErr_Occurred()) SWIG_fail; | |
32663 | } | |
32664 | { | |
32665 | wxSize * resultptr; | |
093d3ff1 | 32666 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 32667 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32668 | } |
32669 | return resultobj; | |
32670 | fail: | |
32671 | return NULL; | |
32672 | } | |
32673 | ||
32674 | ||
c32bde28 | 32675 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32676 | PyObject *resultobj; |
32677 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32678 | PyObject * obj0 = 0 ; | |
32679 | char *kwnames[] = { | |
32680 | (char *) "self", NULL | |
32681 | }; | |
32682 | ||
32683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32684 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32685 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32686 | { |
32687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32688 | (arg1)->base_InitDialog(); | |
32689 | ||
32690 | wxPyEndAllowThreads(__tstate); | |
32691 | if (PyErr_Occurred()) SWIG_fail; | |
32692 | } | |
32693 | Py_INCREF(Py_None); resultobj = Py_None; | |
32694 | return resultobj; | |
32695 | fail: | |
32696 | return NULL; | |
32697 | } | |
32698 | ||
32699 | ||
c32bde28 | 32700 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32701 | PyObject *resultobj; |
32702 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32703 | bool result; | |
32704 | PyObject * obj0 = 0 ; | |
32705 | char *kwnames[] = { | |
32706 | (char *) "self", NULL | |
32707 | }; | |
32708 | ||
32709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32712 | { |
32713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32714 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
32715 | ||
32716 | wxPyEndAllowThreads(__tstate); | |
32717 | if (PyErr_Occurred()) SWIG_fail; | |
32718 | } | |
4f89f6a3 RD |
32719 | { |
32720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32721 | } | |
d14a1e28 RD |
32722 | return resultobj; |
32723 | fail: | |
32724 | return NULL; | |
32725 | } | |
32726 | ||
32727 | ||
c32bde28 | 32728 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32729 | PyObject *resultobj; |
32730 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32731 | bool result; | |
32732 | PyObject * obj0 = 0 ; | |
32733 | char *kwnames[] = { | |
32734 | (char *) "self", NULL | |
32735 | }; | |
32736 | ||
32737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32740 | { |
32741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32742 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
32743 | ||
32744 | wxPyEndAllowThreads(__tstate); | |
32745 | if (PyErr_Occurred()) SWIG_fail; | |
32746 | } | |
4f89f6a3 RD |
32747 | { |
32748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32749 | } | |
d14a1e28 RD |
32750 | return resultobj; |
32751 | fail: | |
32752 | return NULL; | |
32753 | } | |
32754 | ||
32755 | ||
c32bde28 | 32756 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32757 | PyObject *resultobj; |
32758 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32759 | bool result; | |
32760 | PyObject * obj0 = 0 ; | |
32761 | char *kwnames[] = { | |
32762 | (char *) "self", NULL | |
32763 | }; | |
32764 | ||
32765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32768 | { |
32769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32770 | result = (bool)(arg1)->base_Validate(); | |
32771 | ||
32772 | wxPyEndAllowThreads(__tstate); | |
32773 | if (PyErr_Occurred()) SWIG_fail; | |
32774 | } | |
4f89f6a3 RD |
32775 | { |
32776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32777 | } | |
d14a1e28 RD |
32778 | return resultobj; |
32779 | fail: | |
32780 | return NULL; | |
32781 | } | |
32782 | ||
32783 | ||
c32bde28 | 32784 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32785 | PyObject *resultobj; |
32786 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32787 | bool result; | |
32788 | PyObject * obj0 = 0 ; | |
32789 | char *kwnames[] = { | |
32790 | (char *) "self", NULL | |
32791 | }; | |
32792 | ||
32793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32796 | { |
32797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32798 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
32799 | ||
32800 | wxPyEndAllowThreads(__tstate); | |
32801 | if (PyErr_Occurred()) SWIG_fail; | |
32802 | } | |
4f89f6a3 RD |
32803 | { |
32804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32805 | } | |
d14a1e28 RD |
32806 | return resultobj; |
32807 | fail: | |
32808 | return NULL; | |
32809 | } | |
32810 | ||
32811 | ||
c32bde28 | 32812 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32813 | PyObject *resultobj; |
32814 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32815 | bool result; | |
32816 | PyObject * obj0 = 0 ; | |
32817 | char *kwnames[] = { | |
32818 | (char *) "self", NULL | |
32819 | }; | |
32820 | ||
32821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32822 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32823 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32824 | { |
32825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32826 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
32827 | ||
32828 | wxPyEndAllowThreads(__tstate); | |
32829 | if (PyErr_Occurred()) SWIG_fail; | |
32830 | } | |
4f89f6a3 RD |
32831 | { |
32832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32833 | } | |
d14a1e28 RD |
32834 | return resultobj; |
32835 | fail: | |
32836 | return NULL; | |
32837 | } | |
32838 | ||
32839 | ||
c32bde28 | 32840 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32841 | PyObject *resultobj; |
32842 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32843 | wxSize result; | |
32844 | PyObject * obj0 = 0 ; | |
32845 | char *kwnames[] = { | |
32846 | (char *) "self", NULL | |
32847 | }; | |
32848 | ||
32849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32850 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32851 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32852 | { |
32853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32854 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
32855 | ||
32856 | wxPyEndAllowThreads(__tstate); | |
32857 | if (PyErr_Occurred()) SWIG_fail; | |
32858 | } | |
32859 | { | |
32860 | wxSize * resultptr; | |
093d3ff1 | 32861 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 32862 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32863 | } |
32864 | return resultobj; | |
32865 | fail: | |
32866 | return NULL; | |
32867 | } | |
32868 | ||
32869 | ||
c32bde28 | 32870 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32871 | PyObject *resultobj; |
32872 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32873 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32874 | PyObject * obj0 = 0 ; | |
32875 | PyObject * obj1 = 0 ; | |
32876 | char *kwnames[] = { | |
32877 | (char *) "self",(char *) "child", NULL | |
32878 | }; | |
32879 | ||
32880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32881 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32883 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32884 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32885 | { |
32886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32887 | (arg1)->base_AddChild(arg2); | |
32888 | ||
32889 | wxPyEndAllowThreads(__tstate); | |
32890 | if (PyErr_Occurred()) SWIG_fail; | |
32891 | } | |
32892 | Py_INCREF(Py_None); resultobj = Py_None; | |
32893 | return resultobj; | |
32894 | fail: | |
32895 | return NULL; | |
32896 | } | |
32897 | ||
32898 | ||
c32bde28 | 32899 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32900 | PyObject *resultobj; |
32901 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32902 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32903 | PyObject * obj0 = 0 ; | |
32904 | PyObject * obj1 = 0 ; | |
32905 | char *kwnames[] = { | |
32906 | (char *) "self",(char *) "child", NULL | |
32907 | }; | |
32908 | ||
32909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32912 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32914 | { |
32915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32916 | (arg1)->base_RemoveChild(arg2); | |
32917 | ||
32918 | wxPyEndAllowThreads(__tstate); | |
32919 | if (PyErr_Occurred()) SWIG_fail; | |
32920 | } | |
32921 | Py_INCREF(Py_None); resultobj = Py_None; | |
32922 | return resultobj; | |
32923 | fail: | |
32924 | return NULL; | |
32925 | } | |
32926 | ||
32927 | ||
c32bde28 | 32928 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
32929 | PyObject *resultobj; |
32930 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32931 | bool result; | |
32932 | PyObject * obj0 = 0 ; | |
32933 | char *kwnames[] = { | |
32934 | (char *) "self", NULL | |
32935 | }; | |
32936 | ||
32937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1cb4a8aa RD |
32940 | { |
32941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 32942 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
32943 | |
32944 | wxPyEndAllowThreads(__tstate); | |
32945 | if (PyErr_Occurred()) SWIG_fail; | |
32946 | } | |
32947 | { | |
32948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32949 | } | |
32950 | return resultobj; | |
32951 | fail: | |
32952 | return NULL; | |
32953 | } | |
32954 | ||
32955 | ||
c32bde28 | 32956 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
32957 | PyObject *resultobj; |
32958 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32959 | wxColour *arg2 = 0 ; | |
32960 | wxColour temp2 ; | |
32961 | PyObject * obj0 = 0 ; | |
32962 | PyObject * obj1 = 0 ; | |
32963 | char *kwnames[] = { | |
32964 | (char *) "self",(char *) "c", NULL | |
32965 | }; | |
32966 | ||
32967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1cb4a8aa RD |
32970 | { |
32971 | arg2 = &temp2; | |
32972 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32973 | } | |
32974 | { | |
32975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32976 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
32977 | ||
32978 | wxPyEndAllowThreads(__tstate); | |
32979 | if (PyErr_Occurred()) SWIG_fail; | |
32980 | } | |
32981 | Py_INCREF(Py_None); resultobj = Py_None; | |
32982 | return resultobj; | |
32983 | fail: | |
32984 | return NULL; | |
32985 | } | |
32986 | ||
32987 | ||
c32bde28 | 32988 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
32989 | PyObject *resultobj; |
32990 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32991 | wxVisualAttributes result; | |
32992 | PyObject * obj0 = 0 ; | |
32993 | char *kwnames[] = { | |
32994 | (char *) "self", NULL | |
32995 | }; | |
32996 | ||
32997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db3e571a RD |
33000 | { |
33001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33002 | result = (arg1)->base_GetDefaultAttributes(); | |
33003 | ||
33004 | wxPyEndAllowThreads(__tstate); | |
33005 | if (PyErr_Occurred()) SWIG_fail; | |
33006 | } | |
33007 | { | |
33008 | wxVisualAttributes * resultptr; | |
093d3ff1 | 33009 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
db3e571a RD |
33010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
33011 | } | |
33012 | return resultobj; | |
33013 | fail: | |
33014 | return NULL; | |
33015 | } | |
33016 | ||
33017 | ||
c32bde28 | 33018 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33019 | PyObject *obj; |
33020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33021 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
33022 | Py_INCREF(obj); | |
33023 | return Py_BuildValue((char *)""); | |
33024 | } | |
c32bde28 | 33025 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33026 | PyObject *resultobj; |
33027 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 33028 | int arg2 = (int) 0 ; |
d14a1e28 RD |
33029 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33030 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33031 | wxHelpEvent *result; | |
33032 | wxPoint temp3 ; | |
994141e6 RD |
33033 | PyObject * obj0 = 0 ; |
33034 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
33035 | PyObject * obj2 = 0 ; |
33036 | char *kwnames[] = { | |
33037 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
33038 | }; | |
33039 | ||
994141e6 RD |
33040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
33041 | if (obj0) { | |
093d3ff1 RD |
33042 | { |
33043 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
33044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33045 | } | |
994141e6 RD |
33046 | } |
33047 | if (obj1) { | |
093d3ff1 RD |
33048 | { |
33049 | arg2 = (int)(SWIG_As_int(obj1)); | |
33050 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33051 | } | |
994141e6 | 33052 | } |
d14a1e28 RD |
33053 | if (obj2) { |
33054 | { | |
33055 | arg3 = &temp3; | |
33056 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33057 | } | |
33058 | } | |
33059 | { | |
33060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33061 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
33062 | ||
33063 | wxPyEndAllowThreads(__tstate); | |
33064 | if (PyErr_Occurred()) SWIG_fail; | |
33065 | } | |
15afbcd0 | 33066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
33067 | return resultobj; |
33068 | fail: | |
33069 | return NULL; | |
33070 | } | |
33071 | ||
33072 | ||
c32bde28 | 33073 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33074 | PyObject *resultobj; |
33075 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 33076 | wxPoint result; |
d14a1e28 RD |
33077 | PyObject * obj0 = 0 ; |
33078 | char *kwnames[] = { | |
33079 | (char *) "self", NULL | |
33080 | }; | |
33081 | ||
33082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33085 | { |
33086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 33087 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
33088 | |
33089 | wxPyEndAllowThreads(__tstate); | |
33090 | if (PyErr_Occurred()) SWIG_fail; | |
33091 | } | |
15afbcd0 RD |
33092 | { |
33093 | wxPoint * resultptr; | |
093d3ff1 | 33094 | resultptr = new wxPoint((wxPoint const &)(result)); |
15afbcd0 RD |
33095 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
33096 | } | |
d14a1e28 RD |
33097 | return resultobj; |
33098 | fail: | |
33099 | return NULL; | |
33100 | } | |
33101 | ||
33102 | ||
c32bde28 | 33103 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33104 | PyObject *resultobj; |
33105 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33106 | wxPoint *arg2 = 0 ; | |
33107 | wxPoint temp2 ; | |
33108 | PyObject * obj0 = 0 ; | |
33109 | PyObject * obj1 = 0 ; | |
33110 | char *kwnames[] = { | |
33111 | (char *) "self",(char *) "pos", NULL | |
33112 | }; | |
33113 | ||
33114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33117 | { |
33118 | arg2 = &temp2; | |
33119 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33120 | } | |
33121 | { | |
33122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33123 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
33124 | ||
33125 | wxPyEndAllowThreads(__tstate); | |
33126 | if (PyErr_Occurred()) SWIG_fail; | |
33127 | } | |
33128 | Py_INCREF(Py_None); resultobj = Py_None; | |
33129 | return resultobj; | |
33130 | fail: | |
33131 | return NULL; | |
33132 | } | |
33133 | ||
33134 | ||
c32bde28 | 33135 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33136 | PyObject *resultobj; |
33137 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33138 | wxString *result; | |
33139 | PyObject * obj0 = 0 ; | |
33140 | char *kwnames[] = { | |
33141 | (char *) "self", NULL | |
33142 | }; | |
33143 | ||
33144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33147 | { |
33148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33149 | { | |
33150 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
33151 | result = (wxString *) &_result_ref; | |
33152 | } | |
33153 | ||
33154 | wxPyEndAllowThreads(__tstate); | |
33155 | if (PyErr_Occurred()) SWIG_fail; | |
33156 | } | |
cc6dd355 RD |
33157 | { |
33158 | #if wxUSE_UNICODE | |
33159 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33160 | #else | |
33161 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33162 | #endif | |
33163 | } | |
d14a1e28 RD |
33164 | return resultobj; |
33165 | fail: | |
33166 | return NULL; | |
33167 | } | |
33168 | ||
33169 | ||
c32bde28 | 33170 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33171 | PyObject *resultobj; |
33172 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33173 | wxString *arg2 = 0 ; | |
ae8162c8 | 33174 | bool temp2 = false ; |
d14a1e28 RD |
33175 | PyObject * obj0 = 0 ; |
33176 | PyObject * obj1 = 0 ; | |
33177 | char *kwnames[] = { | |
33178 | (char *) "self",(char *) "link", NULL | |
33179 | }; | |
33180 | ||
33181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33184 | { |
33185 | arg2 = wxString_in_helper(obj1); | |
33186 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33187 | temp2 = true; |
d14a1e28 RD |
33188 | } |
33189 | { | |
33190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33191 | (arg1)->SetLink((wxString const &)*arg2); | |
33192 | ||
33193 | wxPyEndAllowThreads(__tstate); | |
33194 | if (PyErr_Occurred()) SWIG_fail; | |
33195 | } | |
33196 | Py_INCREF(Py_None); resultobj = Py_None; | |
33197 | { | |
33198 | if (temp2) | |
33199 | delete arg2; | |
33200 | } | |
33201 | return resultobj; | |
33202 | fail: | |
33203 | { | |
33204 | if (temp2) | |
33205 | delete arg2; | |
33206 | } | |
33207 | return NULL; | |
33208 | } | |
33209 | ||
33210 | ||
c32bde28 | 33211 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33212 | PyObject *resultobj; |
33213 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33214 | wxString *result; | |
33215 | PyObject * obj0 = 0 ; | |
33216 | char *kwnames[] = { | |
33217 | (char *) "self", NULL | |
33218 | }; | |
33219 | ||
33220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33223 | { |
33224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33225 | { | |
33226 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
33227 | result = (wxString *) &_result_ref; | |
33228 | } | |
33229 | ||
33230 | wxPyEndAllowThreads(__tstate); | |
33231 | if (PyErr_Occurred()) SWIG_fail; | |
33232 | } | |
cc6dd355 RD |
33233 | { |
33234 | #if wxUSE_UNICODE | |
33235 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33236 | #else | |
33237 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33238 | #endif | |
33239 | } | |
d14a1e28 RD |
33240 | return resultobj; |
33241 | fail: | |
33242 | return NULL; | |
33243 | } | |
33244 | ||
33245 | ||
c32bde28 | 33246 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33247 | PyObject *resultobj; |
33248 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33249 | wxString *arg2 = 0 ; | |
ae8162c8 | 33250 | bool temp2 = false ; |
d14a1e28 RD |
33251 | PyObject * obj0 = 0 ; |
33252 | PyObject * obj1 = 0 ; | |
33253 | char *kwnames[] = { | |
33254 | (char *) "self",(char *) "target", NULL | |
33255 | }; | |
33256 | ||
33257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33258 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33259 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33260 | { |
33261 | arg2 = wxString_in_helper(obj1); | |
33262 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33263 | temp2 = true; |
d14a1e28 RD |
33264 | } |
33265 | { | |
33266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33267 | (arg1)->SetTarget((wxString const &)*arg2); | |
33268 | ||
33269 | wxPyEndAllowThreads(__tstate); | |
33270 | if (PyErr_Occurred()) SWIG_fail; | |
33271 | } | |
33272 | Py_INCREF(Py_None); resultobj = Py_None; | |
33273 | { | |
33274 | if (temp2) | |
33275 | delete arg2; | |
33276 | } | |
33277 | return resultobj; | |
33278 | fail: | |
33279 | { | |
33280 | if (temp2) | |
33281 | delete arg2; | |
33282 | } | |
33283 | return NULL; | |
33284 | } | |
33285 | ||
33286 | ||
c32bde28 | 33287 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33288 | PyObject *obj; |
33289 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33290 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
33291 | Py_INCREF(obj); | |
33292 | return Py_BuildValue((char *)""); | |
33293 | } | |
c32bde28 | 33294 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33295 | PyObject *resultobj; |
33296 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 33297 | bool arg2 = (bool) true ; |
d14a1e28 RD |
33298 | wxContextHelp *result; |
33299 | PyObject * obj0 = 0 ; | |
33300 | PyObject * obj1 = 0 ; | |
33301 | char *kwnames[] = { | |
33302 | (char *) "window",(char *) "doNow", NULL | |
33303 | }; | |
33304 | ||
33305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
33306 | if (obj0) { | |
093d3ff1 RD |
33307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33309 | } |
33310 | if (obj1) { | |
093d3ff1 RD |
33311 | { |
33312 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
33313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33314 | } | |
d14a1e28 RD |
33315 | } |
33316 | { | |
e3b71cb8 | 33317 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33319 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
33320 | ||
33321 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33322 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33323 | } |
15afbcd0 | 33324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
33325 | return resultobj; |
33326 | fail: | |
33327 | return NULL; | |
33328 | } | |
33329 | ||
33330 | ||
c32bde28 | 33331 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33332 | PyObject *resultobj; |
33333 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33334 | PyObject * obj0 = 0 ; | |
33335 | char *kwnames[] = { | |
33336 | (char *) "self", NULL | |
33337 | }; | |
33338 | ||
33339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33342 | { |
33343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33344 | delete arg1; | |
33345 | ||
33346 | wxPyEndAllowThreads(__tstate); | |
33347 | if (PyErr_Occurred()) SWIG_fail; | |
33348 | } | |
33349 | Py_INCREF(Py_None); resultobj = Py_None; | |
33350 | return resultobj; | |
33351 | fail: | |
33352 | return NULL; | |
33353 | } | |
33354 | ||
33355 | ||
c32bde28 | 33356 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33357 | PyObject *resultobj; |
33358 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33359 | wxWindow *arg2 = (wxWindow *) NULL ; | |
33360 | bool result; | |
33361 | PyObject * obj0 = 0 ; | |
33362 | PyObject * obj1 = 0 ; | |
33363 | char *kwnames[] = { | |
33364 | (char *) "self",(char *) "window", NULL | |
33365 | }; | |
33366 | ||
33367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 33370 | if (obj1) { |
093d3ff1 RD |
33371 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33373 | } |
33374 | { | |
33375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33376 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
33377 | ||
33378 | wxPyEndAllowThreads(__tstate); | |
33379 | if (PyErr_Occurred()) SWIG_fail; | |
33380 | } | |
4f89f6a3 RD |
33381 | { |
33382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33383 | } | |
d14a1e28 RD |
33384 | return resultobj; |
33385 | fail: | |
33386 | return NULL; | |
33387 | } | |
33388 | ||
33389 | ||
c32bde28 | 33390 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33391 | PyObject *resultobj; |
33392 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33393 | bool result; | |
33394 | PyObject * obj0 = 0 ; | |
33395 | char *kwnames[] = { | |
33396 | (char *) "self", NULL | |
33397 | }; | |
33398 | ||
33399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33402 | { |
33403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33404 | result = (bool)(arg1)->EndContextHelp(); | |
33405 | ||
33406 | wxPyEndAllowThreads(__tstate); | |
33407 | if (PyErr_Occurred()) SWIG_fail; | |
33408 | } | |
4f89f6a3 RD |
33409 | { |
33410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33411 | } | |
d14a1e28 RD |
33412 | return resultobj; |
33413 | fail: | |
33414 | return NULL; | |
33415 | } | |
33416 | ||
33417 | ||
c32bde28 | 33418 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33419 | PyObject *obj; |
33420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33421 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
33422 | Py_INCREF(obj); | |
33423 | return Py_BuildValue((char *)""); | |
33424 | } | |
c32bde28 | 33425 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33426 | PyObject *resultobj; |
33427 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 33428 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
33429 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33430 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33431 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33432 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33433 | long arg5 = (long) wxBU_AUTODRAW ; | |
33434 | wxContextHelpButton *result; | |
33435 | wxPoint temp3 ; | |
33436 | wxSize temp4 ; | |
33437 | PyObject * obj0 = 0 ; | |
994141e6 | 33438 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33439 | PyObject * obj2 = 0 ; |
33440 | PyObject * obj3 = 0 ; | |
994141e6 | 33441 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
33442 | char *kwnames[] = { |
33443 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
33444 | }; | |
33445 | ||
994141e6 | 33446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 33449 | if (obj1) { |
093d3ff1 RD |
33450 | { |
33451 | arg2 = (int)(SWIG_As_int(obj1)); | |
33452 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33453 | } | |
994141e6 | 33454 | } |
d14a1e28 RD |
33455 | if (obj2) { |
33456 | { | |
33457 | arg3 = &temp3; | |
33458 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33459 | } | |
33460 | } | |
33461 | if (obj3) { | |
33462 | { | |
33463 | arg4 = &temp4; | |
33464 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33465 | } | |
33466 | } | |
994141e6 | 33467 | if (obj4) { |
093d3ff1 RD |
33468 | { |
33469 | arg5 = (long)(SWIG_As_long(obj4)); | |
33470 | if (SWIG_arg_fail(5)) SWIG_fail; | |
33471 | } | |
994141e6 | 33472 | } |
d14a1e28 | 33473 | { |
e3b71cb8 | 33474 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33476 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
33477 | ||
33478 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33479 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33480 | } |
15afbcd0 | 33481 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
33482 | return resultobj; |
33483 | fail: | |
33484 | return NULL; | |
33485 | } | |
33486 | ||
33487 | ||
c32bde28 | 33488 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33489 | PyObject *obj; |
33490 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33491 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
33492 | Py_INCREF(obj); | |
33493 | return Py_BuildValue((char *)""); | |
33494 | } | |
c32bde28 | 33495 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33496 | PyObject *resultobj; |
33497 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33498 | wxHelpProvider *result; | |
33499 | PyObject * obj0 = 0 ; | |
33500 | char *kwnames[] = { | |
33501 | (char *) "helpProvider", NULL | |
33502 | }; | |
33503 | ||
33504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33507 | { |
33508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33509 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
33510 | ||
33511 | wxPyEndAllowThreads(__tstate); | |
33512 | if (PyErr_Occurred()) SWIG_fail; | |
33513 | } | |
15afbcd0 | 33514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
33515 | return resultobj; |
33516 | fail: | |
33517 | return NULL; | |
33518 | } | |
33519 | ||
33520 | ||
c32bde28 | 33521 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33522 | PyObject *resultobj; |
33523 | wxHelpProvider *result; | |
33524 | char *kwnames[] = { | |
33525 | NULL | |
33526 | }; | |
33527 | ||
33528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
33529 | { | |
33530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33531 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
33532 | ||
33533 | wxPyEndAllowThreads(__tstate); | |
33534 | if (PyErr_Occurred()) SWIG_fail; | |
33535 | } | |
15afbcd0 | 33536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
33537 | return resultobj; |
33538 | fail: | |
33539 | return NULL; | |
33540 | } | |
33541 | ||
33542 | ||
c32bde28 | 33543 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33544 | PyObject *resultobj; |
33545 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33546 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33547 | wxString result; | |
33548 | PyObject * obj0 = 0 ; | |
33549 | PyObject * obj1 = 0 ; | |
33550 | char *kwnames[] = { | |
33551 | (char *) "self",(char *) "window", NULL | |
33552 | }; | |
33553 | ||
33554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33555 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33556 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33557 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33558 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33559 | { |
33560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33561 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
33562 | ||
33563 | wxPyEndAllowThreads(__tstate); | |
33564 | if (PyErr_Occurred()) SWIG_fail; | |
33565 | } | |
33566 | { | |
33567 | #if wxUSE_UNICODE | |
33568 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33569 | #else | |
33570 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33571 | #endif | |
33572 | } | |
33573 | return resultobj; | |
33574 | fail: | |
33575 | return NULL; | |
33576 | } | |
33577 | ||
33578 | ||
c32bde28 | 33579 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33580 | PyObject *resultobj; |
33581 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33582 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33583 | bool result; | |
33584 | PyObject * obj0 = 0 ; | |
33585 | PyObject * obj1 = 0 ; | |
33586 | char *kwnames[] = { | |
33587 | (char *) "self",(char *) "window", NULL | |
33588 | }; | |
33589 | ||
33590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33591 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33592 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33593 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33594 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33595 | { |
33596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33597 | result = (bool)(arg1)->ShowHelp(arg2); | |
33598 | ||
33599 | wxPyEndAllowThreads(__tstate); | |
33600 | if (PyErr_Occurred()) SWIG_fail; | |
33601 | } | |
4f89f6a3 RD |
33602 | { |
33603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33604 | } | |
d14a1e28 RD |
33605 | return resultobj; |
33606 | fail: | |
33607 | return NULL; | |
33608 | } | |
33609 | ||
33610 | ||
c32bde28 | 33611 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33612 | PyObject *resultobj; |
33613 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33614 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33615 | wxString *arg3 = 0 ; | |
ae8162c8 | 33616 | bool temp3 = false ; |
d14a1e28 RD |
33617 | PyObject * obj0 = 0 ; |
33618 | PyObject * obj1 = 0 ; | |
33619 | PyObject * obj2 = 0 ; | |
33620 | char *kwnames[] = { | |
33621 | (char *) "self",(char *) "window",(char *) "text", NULL | |
33622 | }; | |
33623 | ||
33624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33627 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33629 | { |
33630 | arg3 = wxString_in_helper(obj2); | |
33631 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33632 | temp3 = true; |
d14a1e28 RD |
33633 | } |
33634 | { | |
33635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33636 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33637 | ||
33638 | wxPyEndAllowThreads(__tstate); | |
33639 | if (PyErr_Occurred()) SWIG_fail; | |
33640 | } | |
33641 | Py_INCREF(Py_None); resultobj = Py_None; | |
33642 | { | |
33643 | if (temp3) | |
33644 | delete arg3; | |
33645 | } | |
33646 | return resultobj; | |
33647 | fail: | |
33648 | { | |
33649 | if (temp3) | |
33650 | delete arg3; | |
33651 | } | |
33652 | return NULL; | |
33653 | } | |
33654 | ||
33655 | ||
c32bde28 | 33656 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33657 | PyObject *resultobj; |
33658 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 33659 | int arg2 ; |
d14a1e28 | 33660 | wxString *arg3 = 0 ; |
ae8162c8 | 33661 | bool temp3 = false ; |
d14a1e28 | 33662 | PyObject * obj0 = 0 ; |
994141e6 | 33663 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33664 | PyObject * obj2 = 0 ; |
33665 | char *kwnames[] = { | |
33666 | (char *) "self",(char *) "id",(char *) "text", NULL | |
33667 | }; | |
33668 | ||
994141e6 | 33669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
33670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33672 | { | |
33673 | arg2 = (int)(SWIG_As_int(obj1)); | |
33674 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33675 | } | |
d14a1e28 RD |
33676 | { |
33677 | arg3 = wxString_in_helper(obj2); | |
33678 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33679 | temp3 = true; |
d14a1e28 RD |
33680 | } |
33681 | { | |
33682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33683 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33684 | ||
33685 | wxPyEndAllowThreads(__tstate); | |
33686 | if (PyErr_Occurred()) SWIG_fail; | |
33687 | } | |
33688 | Py_INCREF(Py_None); resultobj = Py_None; | |
33689 | { | |
33690 | if (temp3) | |
33691 | delete arg3; | |
33692 | } | |
33693 | return resultobj; | |
33694 | fail: | |
33695 | { | |
33696 | if (temp3) | |
33697 | delete arg3; | |
33698 | } | |
33699 | return NULL; | |
33700 | } | |
33701 | ||
33702 | ||
c32bde28 | 33703 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
15afbcd0 RD |
33704 | PyObject *resultobj; |
33705 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33706 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33707 | PyObject * obj0 = 0 ; | |
33708 | PyObject * obj1 = 0 ; | |
33709 | char *kwnames[] = { | |
33710 | (char *) "self",(char *) "window", NULL | |
33711 | }; | |
33712 | ||
33713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33714 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33715 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33716 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33717 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15afbcd0 RD |
33718 | { |
33719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33720 | (arg1)->RemoveHelp(arg2); | |
33721 | ||
33722 | wxPyEndAllowThreads(__tstate); | |
33723 | if (PyErr_Occurred()) SWIG_fail; | |
33724 | } | |
33725 | Py_INCREF(Py_None); resultobj = Py_None; | |
33726 | return resultobj; | |
33727 | fail: | |
33728 | return NULL; | |
33729 | } | |
33730 | ||
33731 | ||
c32bde28 | 33732 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33733 | PyObject *resultobj; |
33734 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33735 | PyObject * obj0 = 0 ; | |
33736 | char *kwnames[] = { | |
33737 | (char *) "self", NULL | |
33738 | }; | |
33739 | ||
33740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) 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; | |
d14a1e28 RD |
33743 | { |
33744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33745 | wxHelpProvider_Destroy(arg1); | |
33746 | ||
33747 | wxPyEndAllowThreads(__tstate); | |
33748 | if (PyErr_Occurred()) SWIG_fail; | |
33749 | } | |
33750 | Py_INCREF(Py_None); resultobj = Py_None; | |
33751 | return resultobj; | |
33752 | fail: | |
33753 | return NULL; | |
33754 | } | |
33755 | ||
33756 | ||
c32bde28 | 33757 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33758 | PyObject *obj; |
33759 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33760 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
33761 | Py_INCREF(obj); | |
33762 | return Py_BuildValue((char *)""); | |
33763 | } | |
c32bde28 | 33764 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33765 | PyObject *resultobj; |
33766 | wxSimpleHelpProvider *result; | |
33767 | char *kwnames[] = { | |
33768 | NULL | |
33769 | }; | |
33770 | ||
33771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
33772 | { | |
33773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33774 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
33775 | ||
33776 | wxPyEndAllowThreads(__tstate); | |
33777 | if (PyErr_Occurred()) SWIG_fail; | |
33778 | } | |
15afbcd0 | 33779 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
33780 | return resultobj; |
33781 | fail: | |
33782 | return NULL; | |
33783 | } | |
33784 | ||
33785 | ||
c32bde28 | 33786 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33787 | PyObject *obj; |
33788 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33789 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
33790 | Py_INCREF(obj); | |
33791 | return Py_BuildValue((char *)""); | |
33792 | } | |
c32bde28 | 33793 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33794 | PyObject *resultobj; |
33795 | wxBitmap *arg1 = 0 ; | |
33796 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33797 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33798 | wxGenericDragImage *result; | |
33799 | PyObject * obj0 = 0 ; | |
33800 | PyObject * obj1 = 0 ; | |
33801 | char *kwnames[] = { | |
33802 | (char *) "image",(char *) "cursor", NULL | |
33803 | }; | |
33804 | ||
33805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33806 | { |
33807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
33808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33809 | if (arg1 == NULL) { | |
33810 | SWIG_null_ref("wxBitmap"); | |
33811 | } | |
33812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
33813 | } |
33814 | if (obj1) { | |
093d3ff1 RD |
33815 | { |
33816 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33817 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33818 | if (arg2 == NULL) { | |
33819 | SWIG_null_ref("wxCursor"); | |
33820 | } | |
33821 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33822 | } |
33823 | } | |
33824 | { | |
e3b71cb8 | 33825 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33827 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
33828 | ||
33829 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33830 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33831 | } |
15afbcd0 | 33832 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33833 | return resultobj; |
33834 | fail: | |
33835 | return NULL; | |
33836 | } | |
33837 | ||
33838 | ||
c32bde28 | 33839 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33840 | PyObject *resultobj; |
33841 | wxIcon *arg1 = 0 ; | |
33842 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33843 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33844 | wxGenericDragImage *result; | |
33845 | PyObject * obj0 = 0 ; | |
33846 | PyObject * obj1 = 0 ; | |
33847 | char *kwnames[] = { | |
33848 | (char *) "image",(char *) "cursor", NULL | |
33849 | }; | |
33850 | ||
33851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33852 | { |
33853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
33854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33855 | if (arg1 == NULL) { | |
33856 | SWIG_null_ref("wxIcon"); | |
33857 | } | |
33858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
33859 | } |
33860 | if (obj1) { | |
093d3ff1 RD |
33861 | { |
33862 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33863 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33864 | if (arg2 == NULL) { | |
33865 | SWIG_null_ref("wxCursor"); | |
33866 | } | |
33867 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33868 | } |
33869 | } | |
33870 | { | |
e3b71cb8 | 33871 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33873 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
33874 | ||
33875 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33876 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33877 | } |
15afbcd0 | 33878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33879 | return resultobj; |
33880 | fail: | |
33881 | return NULL; | |
33882 | } | |
33883 | ||
33884 | ||
c32bde28 | 33885 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33886 | PyObject *resultobj; |
33887 | wxString *arg1 = 0 ; | |
33888 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33889 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33890 | wxGenericDragImage *result; | |
ae8162c8 | 33891 | bool temp1 = false ; |
e811c8ce RD |
33892 | PyObject * obj0 = 0 ; |
33893 | PyObject * obj1 = 0 ; | |
33894 | char *kwnames[] = { | |
33895 | (char *) "str",(char *) "cursor", NULL | |
33896 | }; | |
33897 | ||
33898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
33899 | { | |
33900 | arg1 = wxString_in_helper(obj0); | |
33901 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 33902 | temp1 = true; |
e811c8ce RD |
33903 | } |
33904 | if (obj1) { | |
093d3ff1 RD |
33905 | { |
33906 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33907 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33908 | if (arg2 == NULL) { | |
33909 | SWIG_null_ref("wxCursor"); | |
33910 | } | |
33911 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33912 | } |
33913 | } | |
33914 | { | |
e3b71cb8 | 33915 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33917 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
33918 | ||
33919 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33920 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33921 | } |
15afbcd0 | 33922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33923 | { |
33924 | if (temp1) | |
33925 | delete arg1; | |
33926 | } | |
33927 | return resultobj; | |
33928 | fail: | |
33929 | { | |
33930 | if (temp1) | |
33931 | delete arg1; | |
33932 | } | |
33933 | return NULL; | |
33934 | } | |
33935 | ||
33936 | ||
c32bde28 | 33937 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33938 | PyObject *resultobj; |
33939 | wxPyTreeCtrl *arg1 = 0 ; | |
33940 | wxTreeItemId *arg2 = 0 ; | |
33941 | wxGenericDragImage *result; | |
33942 | PyObject * obj0 = 0 ; | |
33943 | PyObject * obj1 = 0 ; | |
33944 | char *kwnames[] = { | |
33945 | (char *) "treeCtrl",(char *) "id", NULL | |
33946 | }; | |
33947 | ||
33948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33949 | { |
33950 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33952 | if (arg1 == NULL) { | |
33953 | SWIG_null_ref("wxPyTreeCtrl"); | |
33954 | } | |
33955 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 33956 | } |
093d3ff1 RD |
33957 | { |
33958 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
33959 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33960 | if (arg2 == NULL) { | |
33961 | SWIG_null_ref("wxTreeItemId"); | |
33962 | } | |
33963 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33964 | } |
33965 | { | |
e3b71cb8 | 33966 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33968 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
33969 | ||
33970 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33971 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33972 | } |
15afbcd0 | 33973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33974 | return resultobj; |
33975 | fail: | |
33976 | return NULL; | |
33977 | } | |
33978 | ||
33979 | ||
c32bde28 | 33980 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33981 | PyObject *resultobj; |
33982 | wxPyListCtrl *arg1 = 0 ; | |
33983 | long arg2 ; | |
33984 | wxGenericDragImage *result; | |
33985 | PyObject * obj0 = 0 ; | |
994141e6 | 33986 | PyObject * obj1 = 0 ; |
e811c8ce RD |
33987 | char *kwnames[] = { |
33988 | (char *) "listCtrl",(char *) "id", NULL | |
33989 | }; | |
33990 | ||
994141e6 | 33991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
33992 | { |
33993 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33994 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33995 | if (arg1 == NULL) { | |
33996 | SWIG_null_ref("wxPyListCtrl"); | |
33997 | } | |
33998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33999 | } | |
34000 | { | |
34001 | arg2 = (long)(SWIG_As_long(obj1)); | |
34002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 34003 | } |
e811c8ce | 34004 | { |
e3b71cb8 | 34005 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
34006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34007 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
34008 | ||
34009 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34010 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 34011 | } |
15afbcd0 | 34012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
34013 | return resultobj; |
34014 | fail: | |
34015 | return NULL; | |
34016 | } | |
34017 | ||
34018 | ||
c32bde28 | 34019 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34020 | PyObject *resultobj; |
34021 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34022 | PyObject * obj0 = 0 ; | |
34023 | char *kwnames[] = { | |
34024 | (char *) "self", NULL | |
34025 | }; | |
34026 | ||
34027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34030 | { |
34031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34032 | delete arg1; | |
34033 | ||
34034 | wxPyEndAllowThreads(__tstate); | |
34035 | if (PyErr_Occurred()) SWIG_fail; | |
34036 | } | |
34037 | Py_INCREF(Py_None); resultobj = Py_None; | |
34038 | return resultobj; | |
34039 | fail: | |
34040 | return NULL; | |
34041 | } | |
34042 | ||
34043 | ||
c32bde28 | 34044 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34045 | PyObject *resultobj; |
34046 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34047 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34048 | PyObject * obj0 = 0 ; | |
34049 | PyObject * obj1 = 0 ; | |
34050 | char *kwnames[] = { | |
34051 | (char *) "self",(char *) "bitmap", NULL | |
34052 | }; | |
34053 | ||
34054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34055 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34056 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34057 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
34058 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
34059 | { |
34060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34061 | (arg1)->SetBackingBitmap(arg2); | |
34062 | ||
34063 | wxPyEndAllowThreads(__tstate); | |
34064 | if (PyErr_Occurred()) SWIG_fail; | |
34065 | } | |
34066 | Py_INCREF(Py_None); resultobj = Py_None; | |
34067 | return resultobj; | |
34068 | fail: | |
34069 | return NULL; | |
34070 | } | |
34071 | ||
34072 | ||
c32bde28 | 34073 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34074 | PyObject *resultobj; |
34075 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34076 | wxPoint *arg2 = 0 ; | |
34077 | wxWindow *arg3 = (wxWindow *) 0 ; | |
ae8162c8 | 34078 | bool arg4 = (bool) false ; |
e811c8ce RD |
34079 | wxRect *arg5 = (wxRect *) NULL ; |
34080 | bool result; | |
34081 | wxPoint temp2 ; | |
34082 | PyObject * obj0 = 0 ; | |
34083 | PyObject * obj1 = 0 ; | |
34084 | PyObject * obj2 = 0 ; | |
34085 | PyObject * obj3 = 0 ; | |
34086 | PyObject * obj4 = 0 ; | |
34087 | char *kwnames[] = { | |
34088 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
34089 | }; | |
34090 | ||
34091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34092 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34093 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34094 | { |
34095 | arg2 = &temp2; | |
34096 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34097 | } | |
093d3ff1 RD |
34098 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34099 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e811c8ce | 34100 | if (obj3) { |
093d3ff1 RD |
34101 | { |
34102 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
34103 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34104 | } | |
e811c8ce RD |
34105 | } |
34106 | if (obj4) { | |
093d3ff1 RD |
34107 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
34108 | if (SWIG_arg_fail(5)) SWIG_fail; | |
e811c8ce RD |
34109 | } |
34110 | { | |
34111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34112 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
34113 | ||
34114 | wxPyEndAllowThreads(__tstate); | |
34115 | if (PyErr_Occurred()) SWIG_fail; | |
34116 | } | |
4f89f6a3 RD |
34117 | { |
34118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34119 | } | |
e811c8ce RD |
34120 | return resultobj; |
34121 | fail: | |
34122 | return NULL; | |
34123 | } | |
34124 | ||
34125 | ||
c32bde28 | 34126 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34127 | PyObject *resultobj; |
34128 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34129 | wxPoint *arg2 = 0 ; | |
34130 | wxWindow *arg3 = (wxWindow *) 0 ; | |
34131 | wxWindow *arg4 = (wxWindow *) 0 ; | |
34132 | bool result; | |
34133 | wxPoint temp2 ; | |
34134 | PyObject * obj0 = 0 ; | |
34135 | PyObject * obj1 = 0 ; | |
34136 | PyObject * obj2 = 0 ; | |
34137 | PyObject * obj3 = 0 ; | |
34138 | char *kwnames[] = { | |
34139 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
34140 | }; | |
34141 | ||
34142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
34143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34145 | { |
34146 | arg2 = &temp2; | |
34147 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34148 | } | |
093d3ff1 RD |
34149 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34150 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34151 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34152 | if (SWIG_arg_fail(4)) SWIG_fail; | |
e811c8ce RD |
34153 | { |
34154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34155 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
34156 | ||
34157 | wxPyEndAllowThreads(__tstate); | |
34158 | if (PyErr_Occurred()) SWIG_fail; | |
34159 | } | |
4f89f6a3 RD |
34160 | { |
34161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34162 | } | |
e811c8ce RD |
34163 | return resultobj; |
34164 | fail: | |
34165 | return NULL; | |
34166 | } | |
34167 | ||
34168 | ||
c32bde28 | 34169 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34170 | PyObject *resultobj; |
34171 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34172 | bool result; | |
34173 | PyObject * obj0 = 0 ; | |
34174 | char *kwnames[] = { | |
34175 | (char *) "self", NULL | |
34176 | }; | |
34177 | ||
34178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34181 | { |
34182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34183 | result = (bool)(arg1)->EndDrag(); | |
34184 | ||
34185 | wxPyEndAllowThreads(__tstate); | |
34186 | if (PyErr_Occurred()) SWIG_fail; | |
34187 | } | |
4f89f6a3 RD |
34188 | { |
34189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34190 | } | |
e811c8ce RD |
34191 | return resultobj; |
34192 | fail: | |
34193 | return NULL; | |
34194 | } | |
34195 | ||
34196 | ||
c32bde28 | 34197 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34198 | PyObject *resultobj; |
34199 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34200 | wxPoint *arg2 = 0 ; | |
34201 | bool result; | |
34202 | wxPoint temp2 ; | |
34203 | PyObject * obj0 = 0 ; | |
34204 | PyObject * obj1 = 0 ; | |
34205 | char *kwnames[] = { | |
34206 | (char *) "self",(char *) "pt", NULL | |
34207 | }; | |
34208 | ||
34209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34212 | { |
34213 | arg2 = &temp2; | |
34214 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34215 | } | |
34216 | { | |
34217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34218 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
34219 | ||
34220 | wxPyEndAllowThreads(__tstate); | |
34221 | if (PyErr_Occurred()) SWIG_fail; | |
34222 | } | |
4f89f6a3 RD |
34223 | { |
34224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34225 | } | |
e811c8ce RD |
34226 | return resultobj; |
34227 | fail: | |
34228 | return NULL; | |
34229 | } | |
34230 | ||
34231 | ||
c32bde28 | 34232 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34233 | PyObject *resultobj; |
34234 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34235 | bool result; | |
34236 | PyObject * obj0 = 0 ; | |
34237 | char *kwnames[] = { | |
34238 | (char *) "self", NULL | |
34239 | }; | |
34240 | ||
34241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34244 | { |
34245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34246 | result = (bool)(arg1)->Show(); | |
34247 | ||
34248 | wxPyEndAllowThreads(__tstate); | |
34249 | if (PyErr_Occurred()) SWIG_fail; | |
34250 | } | |
4f89f6a3 RD |
34251 | { |
34252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34253 | } | |
e811c8ce RD |
34254 | return resultobj; |
34255 | fail: | |
34256 | return NULL; | |
34257 | } | |
34258 | ||
34259 | ||
c32bde28 | 34260 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34261 | PyObject *resultobj; |
34262 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34263 | bool result; | |
34264 | PyObject * obj0 = 0 ; | |
34265 | char *kwnames[] = { | |
34266 | (char *) "self", NULL | |
34267 | }; | |
34268 | ||
34269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34272 | { |
34273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34274 | result = (bool)(arg1)->Hide(); | |
34275 | ||
34276 | wxPyEndAllowThreads(__tstate); | |
34277 | if (PyErr_Occurred()) SWIG_fail; | |
34278 | } | |
4f89f6a3 RD |
34279 | { |
34280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34281 | } | |
e811c8ce RD |
34282 | return resultobj; |
34283 | fail: | |
34284 | return NULL; | |
34285 | } | |
34286 | ||
34287 | ||
c32bde28 | 34288 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34289 | PyObject *resultobj; |
34290 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34291 | wxPoint *arg2 = 0 ; | |
34292 | wxRect result; | |
34293 | wxPoint temp2 ; | |
34294 | PyObject * obj0 = 0 ; | |
34295 | PyObject * obj1 = 0 ; | |
34296 | char *kwnames[] = { | |
34297 | (char *) "self",(char *) "pos", NULL | |
34298 | }; | |
34299 | ||
34300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34301 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34303 | { |
34304 | arg2 = &temp2; | |
34305 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34306 | } | |
34307 | { | |
34308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34309 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
34310 | ||
34311 | wxPyEndAllowThreads(__tstate); | |
34312 | if (PyErr_Occurred()) SWIG_fail; | |
34313 | } | |
34314 | { | |
34315 | wxRect * resultptr; | |
093d3ff1 | 34316 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 34317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
34318 | } |
34319 | return resultobj; | |
34320 | fail: | |
34321 | return NULL; | |
34322 | } | |
34323 | ||
34324 | ||
c32bde28 | 34325 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34326 | PyObject *resultobj; |
34327 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34328 | wxDC *arg2 = 0 ; | |
34329 | wxPoint *arg3 = 0 ; | |
34330 | bool result; | |
34331 | wxPoint temp3 ; | |
34332 | PyObject * obj0 = 0 ; | |
34333 | PyObject * obj1 = 0 ; | |
34334 | PyObject * obj2 = 0 ; | |
34335 | char *kwnames[] = { | |
34336 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
34337 | }; | |
34338 | ||
34339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34342 | { | |
34343 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34344 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34345 | if (arg2 == NULL) { | |
34346 | SWIG_null_ref("wxDC"); | |
34347 | } | |
34348 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
34349 | } |
34350 | { | |
34351 | arg3 = &temp3; | |
34352 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34353 | } | |
34354 | { | |
34355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34356 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
34357 | ||
34358 | wxPyEndAllowThreads(__tstate); | |
34359 | if (PyErr_Occurred()) SWIG_fail; | |
34360 | } | |
4f89f6a3 RD |
34361 | { |
34362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34363 | } | |
e811c8ce RD |
34364 | return resultobj; |
34365 | fail: | |
34366 | return NULL; | |
34367 | } | |
34368 | ||
34369 | ||
c32bde28 | 34370 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34371 | PyObject *resultobj; |
34372 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34373 | wxDC *arg2 = 0 ; | |
34374 | wxMemoryDC *arg3 = 0 ; | |
34375 | wxRect *arg4 = 0 ; | |
34376 | wxRect *arg5 = 0 ; | |
34377 | bool result; | |
34378 | wxRect temp4 ; | |
34379 | wxRect temp5 ; | |
34380 | PyObject * obj0 = 0 ; | |
34381 | PyObject * obj1 = 0 ; | |
34382 | PyObject * obj2 = 0 ; | |
34383 | PyObject * obj3 = 0 ; | |
34384 | PyObject * obj4 = 0 ; | |
34385 | char *kwnames[] = { | |
34386 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
34387 | }; | |
34388 | ||
34389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34392 | { | |
34393 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34394 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34395 | if (arg2 == NULL) { | |
34396 | SWIG_null_ref("wxDC"); | |
34397 | } | |
34398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34399 | } | |
34400 | { | |
34401 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
34402 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34403 | if (arg3 == NULL) { | |
34404 | SWIG_null_ref("wxMemoryDC"); | |
34405 | } | |
34406 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e811c8ce RD |
34407 | } |
34408 | { | |
34409 | arg4 = &temp4; | |
34410 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34411 | } | |
34412 | { | |
34413 | arg5 = &temp5; | |
34414 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
34415 | } | |
34416 | { | |
34417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34418 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
34419 | ||
34420 | wxPyEndAllowThreads(__tstate); | |
34421 | if (PyErr_Occurred()) SWIG_fail; | |
34422 | } | |
4f89f6a3 RD |
34423 | { |
34424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34425 | } | |
e811c8ce RD |
34426 | return resultobj; |
34427 | fail: | |
34428 | return NULL; | |
34429 | } | |
34430 | ||
34431 | ||
c32bde28 | 34432 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34433 | PyObject *resultobj; |
34434 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34435 | wxPoint *arg2 = 0 ; | |
34436 | wxPoint *arg3 = 0 ; | |
34437 | bool arg4 ; | |
34438 | bool arg5 ; | |
34439 | bool result; | |
34440 | wxPoint temp2 ; | |
34441 | wxPoint temp3 ; | |
34442 | PyObject * obj0 = 0 ; | |
34443 | PyObject * obj1 = 0 ; | |
34444 | PyObject * obj2 = 0 ; | |
34445 | PyObject * obj3 = 0 ; | |
34446 | PyObject * obj4 = 0 ; | |
34447 | char *kwnames[] = { | |
34448 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
34449 | }; | |
34450 | ||
34451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34452 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34453 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34454 | { |
34455 | arg2 = &temp2; | |
34456 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34457 | } | |
34458 | { | |
34459 | arg3 = &temp3; | |
34460 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34461 | } | |
093d3ff1 RD |
34462 | { |
34463 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
34464 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34465 | } | |
34466 | { | |
34467 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
34468 | if (SWIG_arg_fail(5)) SWIG_fail; | |
34469 | } | |
e811c8ce RD |
34470 | { |
34471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34472 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
34473 | ||
34474 | wxPyEndAllowThreads(__tstate); | |
34475 | if (PyErr_Occurred()) SWIG_fail; | |
34476 | } | |
4f89f6a3 RD |
34477 | { |
34478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34479 | } | |
e811c8ce RD |
34480 | return resultobj; |
34481 | fail: | |
34482 | return NULL; | |
34483 | } | |
34484 | ||
34485 | ||
c32bde28 | 34486 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
e811c8ce RD |
34487 | PyObject *obj; |
34488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34489 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
34490 | Py_INCREF(obj); | |
34491 | return Py_BuildValue((char *)""); | |
34492 | } | |
34493 | static PyMethodDef SwigMethods[] = { | |
093d3ff1 RD |
34494 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, |
34495 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34496 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34497 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34498 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34499 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34500 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
34501 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34502 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34503 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34504 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34505 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34506 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34507 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34508 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34509 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34510 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34511 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34512 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34513 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34514 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34515 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
34516 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34517 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34518 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34519 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34520 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34521 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34522 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34523 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34524 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34525 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34526 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34527 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
34528 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34529 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34530 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34531 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34532 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34533 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34534 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34535 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
34536 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34537 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34538 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34539 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34540 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34541 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34542 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34543 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34544 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34545 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34546 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34547 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34548 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34549 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34550 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34551 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34552 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34553 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34554 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34555 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34556 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34557 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34558 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34559 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34560 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34561 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34562 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34563 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34564 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34565 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
34566 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34567 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34568 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34569 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34570 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34571 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34572 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34573 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34574 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34575 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34576 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34577 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34578 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34579 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
34580 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34581 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34582 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34583 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34584 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
34585 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34586 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34587 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34588 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34589 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34590 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34591 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
34592 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34593 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34594 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34595 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34596 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
34597 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34598 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34599 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34600 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34601 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34602 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34603 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34604 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
34605 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34606 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34607 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34608 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34609 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34610 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34611 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34612 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34613 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34614 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34615 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34616 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34617 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34618 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34619 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34620 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34621 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34622 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34623 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34624 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34625 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34626 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34627 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
34628 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34629 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34630 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34631 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34632 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34633 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34634 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34635 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34636 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
34637 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34638 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34639 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34640 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34641 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34642 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34643 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34644 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34645 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34646 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34647 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34648 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34649 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34650 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34651 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34652 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34653 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34654 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34655 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34656 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34657 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34658 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34659 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34660 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34661 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34662 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34663 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34664 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34665 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34666 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34667 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
34668 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34669 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34670 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34671 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34672 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34673 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34674 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34675 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34676 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34677 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34678 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34679 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34680 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34681 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34682 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34683 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34684 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34685 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34686 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34687 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34688 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34689 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34690 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34691 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34692 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34693 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34694 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34695 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34696 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34697 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34698 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34699 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34700 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34701 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34702 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34703 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34704 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34705 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34706 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34707 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34708 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34709 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34710 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34711 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34712 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34713 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34714 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34715 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34716 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34717 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34718 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34719 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34720 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34721 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34722 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34723 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
34724 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34725 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34726 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34727 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34728 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
34729 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34730 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34731 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34732 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34733 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34734 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34735 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34736 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34737 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34738 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34739 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34740 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
34741 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34742 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34743 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34744 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34745 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34746 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34747 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34748 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34749 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34750 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34751 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34752 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34753 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
34754 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34755 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34756 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34757 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34758 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34759 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34760 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34761 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34762 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34763 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34764 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34765 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
34766 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34767 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34768 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34769 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
34770 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34771 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34772 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34773 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34774 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34775 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34776 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34777 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34778 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34779 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34780 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34781 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34782 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34783 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34784 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34785 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34786 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34787 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
34788 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34789 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34790 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34791 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34792 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34793 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34794 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
34795 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34796 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34797 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34798 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34799 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34800 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34801 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34802 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34803 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34804 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34805 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34806 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34807 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34808 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34809 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34810 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34811 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34812 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34813 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34814 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34815 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34816 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34817 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34818 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34819 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34820 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
34821 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34822 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34823 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34824 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34825 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34826 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34827 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34828 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
34829 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34830 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34831 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34832 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34833 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34834 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34835 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34836 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34837 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34838 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34839 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34840 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34841 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34842 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34843 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34844 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34845 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34846 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34847 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34848 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34849 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34850 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
34851 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34852 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34853 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34854 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34855 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34856 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
34857 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34858 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34859 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34860 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34861 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34862 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34863 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34864 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8e738329 | 34865 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction) _wrap_Notebook_GetThemeBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
34866 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
34867 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
34868 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34869 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
34870 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34871 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34872 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34873 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34874 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34875 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
34876 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34877 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
34878 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34879 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34880 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34881 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34882 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34883 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
34884 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34885 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
34886 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34887 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34888 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34889 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34890 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL}, | |
34891 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34892 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34893 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34894 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34895 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL}, | |
34896 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34897 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34898 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34899 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34900 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34901 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34902 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34903 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34904 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34905 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34906 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34907 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34908 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34909 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34910 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34911 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34912 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34913 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34914 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34915 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34916 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34917 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34918 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34919 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34920 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34921 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34922 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34923 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34924 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34925 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
34926 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34927 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34928 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34929 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34930 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34931 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34932 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34933 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34934 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34935 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34936 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34937 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34938 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34939 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34940 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34941 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34942 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34943 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34944 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34945 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34946 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34947 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34948 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34949 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34950 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34951 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34952 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34953 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34954 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34955 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34956 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34957 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34958 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34959 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34960 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34961 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34962 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34963 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34964 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34965 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34966 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34967 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34968 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34969 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34970 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
34971 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34972 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34973 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34974 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34975 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34976 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
34977 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34978 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34979 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34980 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34981 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34982 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34983 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34984 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34985 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34986 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34987 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34988 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
34989 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34990 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34991 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34992 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34993 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34994 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34995 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34996 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34997 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34998 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34999 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35000 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35001 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35002 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35003 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35004 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35005 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35006 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35007 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35008 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35009 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35010 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35011 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35012 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35013 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35014 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35015 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35016 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35017 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35018 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35019 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35020 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35021 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35022 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35023 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35024 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35025 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35026 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35027 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35028 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35029 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35030 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35031 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35032 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35033 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35034 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35035 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35036 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35037 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35038 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35039 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35040 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
35041 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35042 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35043 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35044 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35045 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35046 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35047 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35048 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35049 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35050 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35051 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35052 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35053 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35054 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35055 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35056 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35057 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35058 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35059 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35060 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35061 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35062 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35063 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35064 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35065 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35066 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35067 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
35068 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35069 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35070 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35071 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35072 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35073 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35074 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35075 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35076 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35077 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35078 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35079 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35080 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35081 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35082 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35083 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35084 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35085 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35086 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35087 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35088 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35089 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35090 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35091 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35092 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35093 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35094 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35095 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35096 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35097 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35098 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35099 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35100 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35101 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35102 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35103 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35104 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35105 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35106 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35107 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35108 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35109 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35110 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35111 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35112 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35113 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35114 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35115 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35116 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35117 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35118 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35119 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35120 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35121 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35122 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35123 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35124 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35125 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35126 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35127 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35128 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35129 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35130 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35131 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35132 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35133 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35134 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35135 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35136 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35137 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35138 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
35139 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35140 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35141 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35142 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35143 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35144 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35145 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35146 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35147 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35148 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35149 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35150 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
35151 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35152 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35153 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35154 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35155 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35156 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35157 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35158 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
35159 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35160 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35161 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35162 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35163 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35164 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35165 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
35166 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35167 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35168 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35169 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35170 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35171 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35172 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35173 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35174 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35175 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35176 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35177 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35178 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35179 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35180 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35181 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, | |
35182 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35183 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35184 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35185 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35186 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35187 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35188 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35189 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35190 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35191 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35192 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35193 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35194 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35195 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35196 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35197 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35198 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35199 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35200 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35201 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35202 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35203 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35204 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35205 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35206 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35207 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35208 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35209 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fef4c27a | 35210 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35211 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
35212 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35213 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35214 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35215 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35216 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35217 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35218 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35219 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35220 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35221 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35222 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35223 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35224 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35225 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35226 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35227 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35228 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35229 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35230 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35231 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35232 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35233 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35234 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35235 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35236 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35237 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35238 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35239 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35240 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35241 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35242 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35243 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35244 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35245 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35246 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35247 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35248 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35249 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35250 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35251 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35252 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35253 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35254 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35255 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35256 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35257 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
35258 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35259 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35260 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35261 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35262 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35263 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35264 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35265 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35266 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35267 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35268 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35269 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35270 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35271 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35272 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35273 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35274 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35275 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35276 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35277 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35278 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35279 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
35280 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35281 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35282 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35283 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35284 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
35285 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35286 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35287 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35288 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35289 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35290 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35291 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35292 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35293 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35294 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35295 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35296 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35297 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35298 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35299 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35300 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35301 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35302 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35303 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35304 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35305 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35306 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35307 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35308 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35309 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35310 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
35311 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35312 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35313 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35314 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35315 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35316 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35317 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35318 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
35319 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35320 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35321 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35322 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35323 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
35324 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35325 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
35326 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35327 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35328 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35329 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35330 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35331 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35332 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35333 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35334 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
35335 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35336 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
35337 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35338 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35339 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35340 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35341 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35342 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35343 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35344 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35345 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35346 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35347 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35348 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35349 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35350 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35351 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35352 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35353 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35354 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 35355 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
35356 | }; |
35357 | ||
35358 | ||
35359 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
35360 | ||
d14a1e28 RD |
35361 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { |
35362 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
35363 | } | |
35364 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
35365 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
35366 | } | |
e505d15e RD |
35367 | static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) { |
35368 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
35369 | } | |
d14a1e28 RD |
35370 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { |
35371 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
35372 | } | |
35373 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
35374 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
35375 | } | |
35376 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
35377 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
35378 | } | |
35379 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
35380 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
35381 | } | |
35382 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
35383 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
35384 | } | |
35385 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
35386 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
35387 | } | |
35388 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
35389 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
35390 | } | |
35391 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
35392 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
35393 | } | |
35394 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
35395 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
35396 | } | |
35397 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
35398 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
35399 | } | |
35400 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
35401 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
35402 | } | |
8ac8dba0 RD |
35403 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { |
35404 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35405 | } | |
d14a1e28 RD |
35406 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { |
35407 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35408 | } | |
35409 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
35410 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
35411 | } | |
35412 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
35413 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
35414 | } | |
35415 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
35416 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
35417 | } | |
35418 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
35419 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
35420 | } | |
d14a1e28 RD |
35421 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
35422 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
35423 | } | |
35424 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
35425 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
35426 | } | |
35427 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
35428 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
35429 | } | |
35430 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 35431 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
35432 | } |
35433 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 35434 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 35435 | } |
2ef75293 | 35436 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
8ac8dba0 | 35437 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 35438 | } |
d14a1e28 RD |
35439 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
35440 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
35441 | } | |
35442 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
35443 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
35444 | } | |
35445 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
35446 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
35447 | } | |
35448 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
35449 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
35450 | } | |
35451 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
35452 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
35453 | } | |
35454 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
35455 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
35456 | } | |
35457 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
35458 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
35459 | } | |
35460 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
35461 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
35462 | } | |
35463 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
35464 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
35465 | } | |
35466 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
35467 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
35468 | } | |
35469 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
35470 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
35471 | } | |
35472 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
35473 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
35474 | } | |
35475 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
35476 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
35477 | } | |
35478 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
35479 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
35480 | } | |
35481 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
35482 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
35483 | } | |
35484 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
35485 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
35486 | } | |
35487 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
35488 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
35489 | } | |
35490 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
35491 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
35492 | } | |
35493 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
35494 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
35495 | } | |
35496 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
35497 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
35498 | } | |
35499 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
35500 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
35501 | } | |
35502 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
35503 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
35504 | } | |
35505 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
35506 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
35507 | } | |
35508 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
35509 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
35510 | } | |
35511 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
35512 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
35513 | } | |
35514 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
35515 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
35516 | } | |
d1e20054 RD |
35517 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
35518 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
35519 | } | |
d14a1e28 RD |
35520 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
35521 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
35522 | } | |
35523 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
35524 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35525 | } | |
35526 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
35527 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
35528 | } | |
35529 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
35530 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
35531 | } | |
35532 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
35533 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
35534 | } | |
35535 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
35536 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
35537 | } | |
35538 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
35539 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
35540 | } | |
8ac8dba0 RD |
35541 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
35542 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
d14a1e28 RD |
35543 | } |
35544 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
35545 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
35546 | } | |
2ef75293 RD |
35547 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
35548 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d14a1e28 | 35549 | } |
2ef75293 RD |
35550 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
35551 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d14a1e28 | 35552 | } |
2ef75293 RD |
35553 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
35554 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
d14a1e28 | 35555 | } |
2ef75293 RD |
35556 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
35557 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
35558 | } | |
35559 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
35560 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d14a1e28 RD |
35561 | } |
35562 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
35563 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
35564 | } | |
2ef75293 RD |
35565 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
35566 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
d14a1e28 | 35567 | } |
2ef75293 RD |
35568 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
35569 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d14a1e28 RD |
35570 | } |
35571 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
35572 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
35573 | } | |
2ef75293 RD |
35574 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
35575 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d14a1e28 RD |
35576 | } |
35577 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
35578 | return (void *)((wxControl *) ((wxGauge *) x)); | |
35579 | } | |
2ef75293 RD |
35580 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
35581 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d14a1e28 | 35582 | } |
2ef75293 | 35583 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
8ac8dba0 | 35584 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); |
d14a1e28 | 35585 | } |
2ef75293 | 35586 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
8ac8dba0 | 35587 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 | 35588 | } |
2ef75293 RD |
35589 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
35590 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d14a1e28 | 35591 | } |
2ef75293 RD |
35592 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
35593 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d14a1e28 RD |
35594 | } |
35595 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
35596 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
35597 | } | |
2ef75293 RD |
35598 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
35599 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
35600 | } | |
35601 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
35602 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
35603 | } | |
35604 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
35605 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
35606 | } | |
35607 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
35608 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
35609 | } | |
d14a1e28 | 35610 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
8ac8dba0 | 35611 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 | 35612 | } |
2ef75293 RD |
35613 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
35614 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d14a1e28 | 35615 | } |
2ef75293 RD |
35616 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
35617 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d14a1e28 | 35618 | } |
2ef75293 RD |
35619 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
35620 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d14a1e28 | 35621 | } |
2ef75293 RD |
35622 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
35623 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d14a1e28 RD |
35624 | } |
35625 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
35626 | return (void *)((wxControl *) ((wxSlider *) x)); | |
35627 | } | |
2ef75293 RD |
35628 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
35629 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
d14a1e28 | 35630 | } |
2ef75293 RD |
35631 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
35632 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d14a1e28 | 35633 | } |
2ef75293 RD |
35634 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
35635 | return (void *)((wxControl *) ((wxButton *) x)); | |
d14a1e28 | 35636 | } |
2ef75293 RD |
35637 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
35638 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
35639 | } | |
35640 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
35641 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d14a1e28 RD |
35642 | } |
35643 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
35644 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
35645 | } | |
35646 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
35647 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35648 | } | |
8ac8dba0 RD |
35649 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
35650 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35651 | } | |
d14a1e28 RD |
35652 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { |
35653 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35654 | } | |
d14a1e28 RD |
35655 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { |
35656 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
35657 | } | |
d1e20054 RD |
35658 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
35659 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
35660 | } | |
d14a1e28 | 35661 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 | 35662 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
35663 | } |
35664 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 35665 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 35666 | } |
2ef75293 | 35667 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 RD |
35668 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
35669 | } | |
35670 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
35671 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
35672 | } | |
35673 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
35674 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
2ef75293 | 35675 | } |
8ac8dba0 RD |
35676 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { |
35677 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
d14a1e28 RD |
35678 | } |
35679 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
35680 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
35681 | } | |
8ac8dba0 RD |
35682 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { |
35683 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
35684 | } | |
d14a1e28 RD |
35685 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
35686 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
35687 | } | |
35688 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
35689 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
35690 | } | |
35691 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
35692 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
35693 | } | |
35694 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
35695 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
35696 | } | |
35697 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
35698 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
35699 | } | |
35700 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
35701 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
35702 | } | |
35703 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
35704 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
35705 | } | |
35706 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
35707 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
35708 | } | |
35709 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
35710 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
35711 | } | |
d14a1e28 RD |
35712 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
35713 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
35714 | } | |
2ef75293 RD |
35715 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
35716 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
35717 | } | |
d14a1e28 RD |
35718 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
35719 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35720 | } | |
35721 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
35722 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
35723 | } | |
35724 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
35725 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
35726 | } | |
35727 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
35728 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
35729 | } | |
35730 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
35731 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
35732 | } | |
35733 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
35734 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
35735 | } | |
35736 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
35737 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
35738 | } | |
35739 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
35740 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
35741 | } | |
2ef75293 | 35742 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 35743 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 35744 | } |
d14a1e28 | 35745 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 35746 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
35747 | } |
35748 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
35749 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
35750 | } | |
35751 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
35752 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
35753 | } | |
35754 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
35755 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
35756 | } | |
35757 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
35758 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
35759 | } | |
35760 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
35761 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
35762 | } | |
35763 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
35764 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
35765 | } | |
35766 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
8ac8dba0 | 35767 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
35768 | } |
35769 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
35770 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
35771 | } | |
35772 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
35773 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
35774 | } | |
35775 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
35776 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
35777 | } | |
35778 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
35779 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
35780 | } | |
35781 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
35782 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
35783 | } | |
35784 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
35785 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
35786 | } | |
35787 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
35788 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
35789 | } | |
35790 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
35791 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
35792 | } | |
35793 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
35794 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
35795 | } | |
35796 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
35797 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
35798 | } | |
35799 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
35800 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
35801 | } | |
35802 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
35803 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
35804 | } | |
d14a1e28 RD |
35805 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { |
35806 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
35807 | } | |
35808 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
35809 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
35810 | } | |
35811 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
35812 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
35813 | } | |
35814 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
35815 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
35816 | } | |
35817 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
35818 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
35819 | } | |
35820 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
35821 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
35822 | } | |
35823 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
35824 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
35825 | } | |
35826 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
35827 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
35828 | } | |
35829 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
35830 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
35831 | } | |
35832 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
35833 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
35834 | } | |
d14a1e28 RD |
35835 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
35836 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
35837 | } | |
35838 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
35839 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
35840 | } | |
35841 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
35842 | return (void *)((wxObject *) ((wxSizer *) x)); | |
35843 | } | |
35844 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
35845 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
35846 | } | |
35847 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
35848 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
35849 | } | |
35850 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
35851 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
35852 | } | |
35853 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
35854 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
35855 | } | |
35856 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
35857 | return (void *)((wxObject *) ((wxEvent *) x)); | |
35858 | } | |
35859 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
35860 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
35861 | } | |
35862 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
35863 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
35864 | } | |
35865 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
35866 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
35867 | } | |
35868 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
35869 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
35870 | } | |
35871 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
35872 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
35873 | } | |
35874 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
35875 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35876 | } | |
35877 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
35878 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
35879 | } | |
35880 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
35881 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
35882 | } | |
35883 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
35884 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
35885 | } | |
35886 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
35887 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
35888 | } | |
35889 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
35890 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
35891 | } | |
35892 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
35893 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
35894 | } | |
35895 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
35896 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
35897 | } | |
35898 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
35899 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
35900 | } | |
35901 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
35902 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
35903 | } | |
35904 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
35905 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
35906 | } | |
35907 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
35908 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
35909 | } | |
35910 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
35911 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
35912 | } | |
35913 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
35914 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
35915 | } | |
35916 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
35917 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
35918 | } | |
35919 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
35920 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
35921 | } | |
35922 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
35923 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
35924 | } | |
35925 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
35926 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
35927 | } | |
35928 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
35929 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
35930 | } | |
35931 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
35932 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
35933 | } | |
35934 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
8ac8dba0 | 35935 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
35936 | } |
35937 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
35938 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
35939 | } | |
35940 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
35941 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
35942 | } | |
2ef75293 | 35943 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
8ac8dba0 | 35944 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 35945 | } |
d14a1e28 | 35946 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
8ac8dba0 | 35947 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
35948 | } |
35949 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
35950 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
35951 | } | |
35952 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
35953 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
35954 | } | |
35955 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
35956 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
35957 | } | |
35958 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
35959 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
35960 | } | |
35961 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
35962 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
35963 | } | |
35964 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
35965 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
35966 | } | |
35967 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
35968 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
35969 | } | |
35970 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
35971 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
35972 | } | |
35973 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
35974 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
35975 | } | |
35976 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
35977 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
35978 | } | |
35979 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
35980 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
35981 | } | |
35982 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
35983 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
35984 | } | |
35985 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
35986 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
35987 | } | |
35988 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
35989 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
35990 | } | |
8ac8dba0 RD |
35991 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
35992 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
35993 | } | |
d14a1e28 RD |
35994 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
35995 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
35996 | } | |
35997 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
35998 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
35999 | } | |
36000 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
36001 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
36002 | } | |
36003 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
36004 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
36005 | } | |
36006 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
36007 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
36008 | } | |
36009 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
36010 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
36011 | } | |
36012 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
36013 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36014 | } | |
36015 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
36016 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36017 | } | |
36018 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
36019 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
36020 | } | |
36021 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
36022 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
36023 | } | |
36024 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
36025 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
36026 | } | |
36027 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
36028 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
36029 | } | |
36030 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
36031 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
36032 | } | |
36033 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
36034 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
36035 | } | |
36036 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
36037 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36038 | } | |
36039 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
36040 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36041 | } | |
d14a1e28 RD |
36042 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
36043 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
36044 | } | |
1e0c8722 RD |
36045 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
36046 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36047 | } | |
d14a1e28 RD |
36048 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
36049 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36050 | } | |
36051 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
36052 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36053 | } | |
e505d15e RD |
36054 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
36055 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
36056 | } | |
1e0c8722 RD |
36057 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
36058 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
36059 | } | |
d14a1e28 RD |
36060 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
36061 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36062 | } | |
36063 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
36064 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36065 | } | |
36066 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
36067 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
36068 | } | |
36069 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
36070 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
36071 | } | |
36072 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
36073 | return (void *)((wxObject *) ((wxListItem *) x)); | |
36074 | } | |
36075 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36076 | return (void *)((wxObject *) ((wxImage *) x)); | |
36077 | } | |
36078 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
36079 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
36080 | } | |
36081 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
36082 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
36083 | } | |
d1e20054 RD |
36084 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
36085 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36086 | } | |
e811c8ce RD |
36087 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
36088 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
36089 | } | |
d14a1e28 RD |
36090 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
36091 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36092 | } | |
36093 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 36094 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
36095 | } |
36096 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 36097 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 36098 | } |
2ef75293 | 36099 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
8ac8dba0 | 36100 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 36101 | } |
d14a1e28 RD |
36102 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
36103 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36104 | } | |
36105 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
36106 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36107 | } | |
36108 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
36109 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
36110 | } | |
36111 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36112 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36113 | } | |
36114 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36115 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36116 | } | |
36117 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36118 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36119 | } | |
36120 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
36121 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
36122 | } | |
36123 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36124 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36125 | } | |
36126 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36127 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36128 | } | |
36129 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36130 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36131 | } | |
36132 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36133 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36134 | } | |
36135 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36136 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36137 | } | |
36138 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36139 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36140 | } | |
8ac8dba0 RD |
36141 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { |
36142 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36143 | } | |
d14a1e28 RD |
36144 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { |
36145 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36146 | } | |
36147 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
36148 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36149 | } | |
36150 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
36151 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
36152 | } | |
36153 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
36154 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36155 | } | |
36156 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
36157 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
36158 | } | |
36159 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
36160 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
36161 | } | |
36162 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
36163 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36164 | } | |
36165 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
36166 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36167 | } | |
36168 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
36169 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
36170 | } | |
36171 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
36172 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36173 | } | |
36174 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
36175 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36176 | } | |
36177 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36178 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36179 | } | |
36180 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
36181 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
36182 | } | |
d14a1e28 RD |
36183 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
36184 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
36185 | } | |
8ac8dba0 RD |
36186 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { |
36187 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
36188 | } | |
d14a1e28 RD |
36189 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { |
36190 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36191 | } | |
36192 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
36193 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
36194 | } | |
36195 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
36196 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
36197 | } | |
d14a1e28 RD |
36198 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
36199 | return (void *)((wxWindow *) ((wxControl *) x)); | |
36200 | } | |
36201 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
36202 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
36203 | } | |
36204 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
36205 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36206 | } | |
36207 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
36208 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
36209 | } | |
36210 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
36211 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
36212 | } | |
2ef75293 RD |
36213 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
36214 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
36215 | } | |
d14a1e28 RD |
36216 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
36217 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
36218 | } | |
36219 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
36220 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
36221 | } | |
36222 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
36223 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
36224 | } | |
36225 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
36226 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
36227 | } | |
36228 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
36229 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
36230 | } | |
2ef75293 | 36231 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
8ac8dba0 | 36232 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 36233 | } |
d14a1e28 | 36234 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
8ac8dba0 | 36235 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
36236 | } |
36237 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
36238 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
36239 | } | |
36240 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
36241 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
36242 | } | |
36243 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
36244 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
36245 | } | |
36246 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
36247 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36248 | } | |
36249 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
36250 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36251 | } | |
36252 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
36253 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36254 | } | |
36255 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
36256 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36257 | } | |
36258 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
8ac8dba0 | 36259 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
36260 | } |
36261 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
36262 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
36263 | } | |
36264 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
36265 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
36266 | } | |
36267 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
36268 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
36269 | } | |
36270 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
36271 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
36272 | } | |
36273 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
36274 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
36275 | } | |
36276 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
36277 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
36278 | } | |
36279 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
36280 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
36281 | } | |
36282 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
36283 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36284 | } | |
36285 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
36286 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36287 | } | |
36288 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
36289 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
36290 | } | |
8ac8dba0 RD |
36291 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
36292 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36293 | } | |
36294 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36295 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36296 | } | |
36297 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36298 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36299 | } | |
d14a1e28 RD |
36300 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
36301 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36302 | } | |
d14a1e28 RD |
36303 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
36304 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36305 | } | |
36306 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
36307 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
36308 | } | |
36309 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
36310 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36311 | } | |
36312 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
36313 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36314 | } | |
36315 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
36316 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36317 | } | |
2ef75293 | 36318 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
8ac8dba0 | 36319 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 36320 | } |
d14a1e28 | 36321 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { |
8ac8dba0 | 36322 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 RD |
36323 | } |
36324 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 36325 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 | 36326 | } |
d14a1e28 RD |
36327 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
36328 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36329 | } | |
2ef75293 RD |
36330 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
36331 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
36332 | } | |
8ac8dba0 RD |
36333 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
36334 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36335 | } | |
d14a1e28 RD |
36336 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
36337 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36338 | } | |
d1e20054 RD |
36339 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
36340 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36341 | } | |
d14a1e28 RD |
36342 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
36343 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
36344 | } | |
36345 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
36346 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36347 | } | |
36348 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
36349 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36350 | } | |
36351 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
36352 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36353 | } | |
36354 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
36355 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
36356 | } | |
36357 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
36358 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
36359 | } | |
36360 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
36361 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
36362 | } | |
36363 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
36364 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
36365 | } | |
15afbcd0 | 36366 | 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}}; |
e505d15e | 36367 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
36368 | 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}}; |
36369 | 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}}; | |
8ac8dba0 | 36370 | 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_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_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_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}}; |
15afbcd0 RD |
36371 | 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}}; |
36372 | 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}}; | |
15afbcd0 | 36373 | 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}}; |
15afbcd0 | 36374 | 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 | 36375 | 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}}; |
74a57fcd | 36376 | 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}}; |
15afbcd0 | 36377 | 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}}; |
8ac8dba0 | 36378 | 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_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
36379 | 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}}; |
36380 | 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}}; | |
36381 | 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}}; | |
36382 | 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}}; | |
36383 | 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}}; | |
36384 | 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}}; | |
36385 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36386 | 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 |
36387 | 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}}; |
36388 | 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}}; | |
15afbcd0 RD |
36389 | 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}}; |
36390 | 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}}; | |
36391 | 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}}; | |
36392 | 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}}; | |
36393 | 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}}; | |
36394 | 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}}; | |
36395 | 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}}; | |
74a57fcd | 36396 | 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}}; |
15afbcd0 RD |
36397 | 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}}; |
36398 | 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}}; | |
2ef75293 | 36399 | 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 | 36400 | 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}}; |
15afbcd0 | 36401 | 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 | 36402 | 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}}; |
15afbcd0 RD |
36403 | 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}}; |
36404 | 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}}; | |
36405 | 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}}; | |
36406 | 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}}; | |
36407 | 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}}; | |
36408 | 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}}; | |
36409 | 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 | 36410 | 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 RD |
36411 | 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}}; |
36412 | 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_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
15afbcd0 | 36413 | 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}}; |
15afbcd0 | 36414 | 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}}; |
74a57fcd | 36415 | 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}}; |
15afbcd0 RD |
36416 | 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}}; |
36417 | 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}}; | |
36418 | 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}}; | |
36419 | 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}}; | |
36420 | 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}}; | |
36421 | 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}}; | |
36422 | 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}}; | |
36423 | 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}}; | |
15afbcd0 | 36424 | 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 | 36425 | 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}}; |
15afbcd0 RD |
36426 | 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}}; |
36427 | 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}}; | |
36428 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0, 0, 0, 0},{"_p_wxNotebookSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36429 | 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}}; | |
36430 | 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}}; | |
36431 | 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 | 36432 | 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}}; |
15afbcd0 RD |
36433 | 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}}; |
36434 | 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}}; | |
36435 | 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}}; | |
36436 | 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}}; | |
2ef75293 | 36437 | 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}}; |
15afbcd0 RD |
36438 | 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}}; |
36439 | 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 | 36440 | 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}}; |
e505d15e | 36441 | 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_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_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_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
36442 | 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}}; |
36443 | 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 | 36444 | 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}}; |
8ac8dba0 | 36445 | 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_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
36446 | 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}}; |
36447 | 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 |
36448 | 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}}; |
36449 | 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}}; | |
36450 | 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}}; | |
15afbcd0 | 36451 | 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 | 36452 | 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 | 36453 | 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}}; |
8ac8dba0 | 36454 | 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_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_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}}; |
15afbcd0 RD |
36455 | 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}}; |
36456 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36457 | 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}}; | |
36458 | 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}}; | |
36459 | 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}}; | |
36460 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0, 0, 0, 0},{"_p_wxBookCtrlSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
36461 | 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}}; | |
d14a1e28 RD |
36462 | |
36463 | static swig_type_info *swig_types_initial[] = { | |
36464 | _swigt__p_wxTextUrlEvent, | |
d14a1e28 | 36465 | _swigt__p_wxSizer, |
d14a1e28 RD |
36466 | _swigt__p_wxCheckBox, |
36467 | _swigt__p_wxPyTreeCtrl, | |
36468 | _swigt__p_wxEvent, | |
36469 | _swigt__p_wxGenericDirCtrl, | |
36470 | _swigt__p_bool, | |
d14a1e28 | 36471 | _swigt__p_wxItemContainer, |
d14a1e28 | 36472 | _swigt__p_wxPyListCtrl, |
093d3ff1 | 36473 | _swigt__p_wxPyTreeItemData, |
74a57fcd | 36474 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
36475 | _swigt__p_wxStaticLine, |
36476 | _swigt__p_wxControl, | |
36477 | _swigt__p_wxPyControl, | |
36478 | _swigt__p_wxGauge, | |
36479 | _swigt__p_wxToolBarBase, | |
36480 | _swigt__p_wxFont, | |
36481 | _swigt__p_wxToggleButton, | |
36482 | _swigt__p_wxRadioButton, | |
36483 | _swigt__p_wxChoice, | |
e811c8ce | 36484 | _swigt__p_wxMemoryDC, |
093d3ff1 RD |
36485 | _swigt__ptrdiff_t, |
36486 | _swigt__std__ptrdiff_t, | |
d14a1e28 | 36487 | _swigt__p_wxListItemAttr, |
58203fa6 | 36488 | _swigt__p_void, |
d14a1e28 RD |
36489 | _swigt__p_int, |
36490 | _swigt__p_wxSize, | |
e811c8ce | 36491 | _swigt__p_wxDC, |
d14a1e28 RD |
36492 | _swigt__p_wxListView, |
36493 | _swigt__p_wxIcon, | |
74a57fcd | 36494 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
36495 | _swigt__p_wxTextCtrl, |
36496 | _swigt__p_wxNotebook, | |
2ef75293 | 36497 | _swigt__p_wxChoicebook, |
d14a1e28 RD |
36498 | _swigt__p_wxNotifyEvent, |
36499 | _swigt__p_wxArrayString, | |
093d3ff1 | 36500 | _swigt__p_form_ops_t, |
d14a1e28 RD |
36501 | _swigt__p_wxListbook, |
36502 | _swigt__p_wxStaticBitmap, | |
36503 | _swigt__p_wxSlider, | |
36504 | _swigt__p_wxStaticBox, | |
36505 | _swigt__p_wxArrayInt, | |
36506 | _swigt__p_wxContextHelp, | |
36507 | _swigt__p_long, | |
093d3ff1 | 36508 | _swigt__p_wxDuplexMode, |
8ac8dba0 | 36509 | _swigt__p_wxBookCtrlBase, |
d14a1e28 RD |
36510 | _swigt__p_wxEvtHandler, |
36511 | _swigt__p_wxListEvent, | |
d14a1e28 | 36512 | _swigt__p_wxCheckListBox, |
74a57fcd | 36513 | _swigt__p_wxListBox, |
d14a1e28 RD |
36514 | _swigt__p_wxSpinButton, |
36515 | _swigt__p_wxButton, | |
36516 | _swigt__p_wxBitmapButton, | |
36517 | _swigt__p_wxRect, | |
36518 | _swigt__p_wxContextHelpButton, | |
36519 | _swigt__p_wxRadioBox, | |
36520 | _swigt__p_wxScrollBar, | |
994141e6 | 36521 | _swigt__p_char, |
d14a1e28 | 36522 | _swigt__p_wxComboBox, |
093d3ff1 | 36523 | _swigt__p_wxTreeItemId, |
d14a1e28 RD |
36524 | _swigt__p_wxHelpEvent, |
36525 | _swigt__p_wxListItem, | |
36526 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 36527 | _swigt__p_wxSpinEvent, |
e811c8ce | 36528 | _swigt__p_wxGenericDragImage, |
d14a1e28 | 36529 | _swigt__p_wxSpinCtrl, |
093d3ff1 | 36530 | _swigt__p_wxPaperSize, |
d14a1e28 RD |
36531 | _swigt__p_wxImageList, |
36532 | _swigt__p_wxHelpProvider, | |
36533 | _swigt__p_wxTextAttr, | |
36534 | _swigt__p_wxSimpleHelpProvider, | |
2ef75293 | 36535 | _swigt__p_wxChoicebookEvent, |
d14a1e28 RD |
36536 | _swigt__p_wxListbookEvent, |
36537 | _swigt__p_wxNotebookEvent, | |
093d3ff1 | 36538 | _swigt__p_wxPoint, |
d14a1e28 | 36539 | _swigt__p_wxObject, |
e811c8ce | 36540 | _swigt__p_wxCursor, |
d14a1e28 | 36541 | _swigt__p_wxKeyEvent, |
093d3ff1 | 36542 | _swigt__p_unsigned_long, |
d14a1e28 RD |
36543 | _swigt__p_wxWindow, |
36544 | _swigt__p_wxString, | |
36545 | _swigt__p_wxBitmap, | |
093d3ff1 RD |
36546 | _swigt__unsigned_int, |
36547 | _swigt__p_unsigned_int, | |
36548 | _swigt__p_unsigned_char, | |
d14a1e28 | 36549 | _swigt__p_wxMouseEvent, |
8ac8dba0 | 36550 | _swigt__p_wxBookCtrlBaseEvent, |
093d3ff1 | 36551 | _swigt__p_wxTreeEvent, |
d14a1e28 RD |
36552 | _swigt__p_wxCommandEvent, |
36553 | _swigt__p_wxStaticText, | |
36554 | _swigt__p_wxControlWithItems, | |
36555 | _swigt__p_wxToolBarToolBase, | |
36556 | _swigt__p_wxColour, | |
36557 | _swigt__p_wxToolBar, | |
36558 | _swigt__p_wxBookCtrlSizer, | |
36559 | _swigt__p_wxValidator, | |
36560 | 0 | |
36561 | }; | |
36562 | ||
36563 | ||
36564 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
36565 | ||
36566 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 36567 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
36568 | |
36569 | #ifdef __cplusplus | |
36570 | } | |
36571 | #endif | |
36572 | ||
093d3ff1 RD |
36573 | |
36574 | #ifdef __cplusplus | |
36575 | extern "C" { | |
36576 | #endif | |
36577 | ||
36578 | /* Python-specific SWIG API */ | |
36579 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
36580 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
36581 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
36582 | ||
36583 | /* ----------------------------------------------------------------------------- | |
36584 | * global variable support code. | |
36585 | * ----------------------------------------------------------------------------- */ | |
36586 | ||
36587 | typedef struct swig_globalvar { | |
36588 | char *name; /* Name of global variable */ | |
36589 | PyObject *(*get_attr)(); /* Return the current value */ | |
36590 | int (*set_attr)(PyObject *); /* Set the value */ | |
36591 | struct swig_globalvar *next; | |
36592 | } swig_globalvar; | |
36593 | ||
36594 | typedef struct swig_varlinkobject { | |
36595 | PyObject_HEAD | |
36596 | swig_globalvar *vars; | |
36597 | } swig_varlinkobject; | |
36598 | ||
36599 | static PyObject * | |
36600 | swig_varlink_repr(swig_varlinkobject *v) { | |
36601 | v = v; | |
36602 | return PyString_FromString("<Swig global variables>"); | |
36603 | } | |
36604 | ||
36605 | static int | |
36606 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
36607 | swig_globalvar *var; | |
36608 | flags = flags; | |
36609 | fprintf(fp,"Swig global variables { "); | |
36610 | for (var = v->vars; var; var=var->next) { | |
36611 | fprintf(fp,"%s", var->name); | |
36612 | if (var->next) fprintf(fp,", "); | |
36613 | } | |
36614 | fprintf(fp," }\n"); | |
36615 | return 0; | |
36616 | } | |
36617 | ||
36618 | static PyObject * | |
36619 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
36620 | swig_globalvar *var = v->vars; | |
36621 | while (var) { | |
36622 | if (strcmp(var->name,n) == 0) { | |
36623 | return (*var->get_attr)(); | |
36624 | } | |
36625 | var = var->next; | |
36626 | } | |
36627 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36628 | return NULL; | |
36629 | } | |
36630 | ||
36631 | static int | |
36632 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
36633 | swig_globalvar *var = v->vars; | |
36634 | while (var) { | |
36635 | if (strcmp(var->name,n) == 0) { | |
36636 | return (*var->set_attr)(p); | |
36637 | } | |
36638 | var = var->next; | |
36639 | } | |
36640 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36641 | return 1; | |
36642 | } | |
36643 | ||
36644 | static PyTypeObject varlinktype = { | |
36645 | PyObject_HEAD_INIT(0) | |
36646 | 0, /* Number of items in variable part (ob_size) */ | |
36647 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
36648 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
36649 | 0, /* Itemsize (tp_itemsize) */ | |
36650 | 0, /* Deallocator (tp_dealloc) */ | |
36651 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
36652 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
36653 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
36654 | 0, /* tp_compare */ | |
36655 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
36656 | 0, /* tp_as_number */ | |
36657 | 0, /* tp_as_sequence */ | |
36658 | 0, /* tp_as_mapping */ | |
36659 | 0, /* tp_hash */ | |
36660 | 0, /* tp_call */ | |
36661 | 0, /* tp_str */ | |
36662 | 0, /* tp_getattro */ | |
36663 | 0, /* tp_setattro */ | |
36664 | 0, /* tp_as_buffer */ | |
36665 | 0, /* tp_flags */ | |
36666 | 0, /* tp_doc */ | |
36667 | #if PY_VERSION_HEX >= 0x02000000 | |
36668 | 0, /* tp_traverse */ | |
36669 | 0, /* tp_clear */ | |
36670 | #endif | |
36671 | #if PY_VERSION_HEX >= 0x02010000 | |
36672 | 0, /* tp_richcompare */ | |
36673 | 0, /* tp_weaklistoffset */ | |
36674 | #endif | |
36675 | #if PY_VERSION_HEX >= 0x02020000 | |
36676 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
36677 | #endif | |
36678 | #if PY_VERSION_HEX >= 0x02030000 | |
36679 | 0, /* tp_del */ | |
36680 | #endif | |
36681 | #ifdef COUNT_ALLOCS | |
36682 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
36683 | #endif | |
36684 | }; | |
36685 | ||
36686 | /* Create a variable linking object for use later */ | |
36687 | static PyObject * | |
36688 | SWIG_Python_newvarlink(void) { | |
36689 | swig_varlinkobject *result = 0; | |
36690 | result = PyMem_NEW(swig_varlinkobject,1); | |
36691 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
36692 | result->ob_type = &varlinktype; | |
36693 | result->vars = 0; | |
36694 | result->ob_refcnt = 0; | |
36695 | Py_XINCREF((PyObject *) result); | |
36696 | return ((PyObject*) result); | |
36697 | } | |
36698 | ||
36699 | static void | |
36700 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
36701 | swig_varlinkobject *v; | |
36702 | swig_globalvar *gv; | |
36703 | v= (swig_varlinkobject *) p; | |
36704 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
36705 | gv->name = (char *) malloc(strlen(name)+1); | |
36706 | strcpy(gv->name,name); | |
36707 | gv->get_attr = get_attr; | |
36708 | gv->set_attr = set_attr; | |
36709 | gv->next = v->vars; | |
36710 | v->vars = gv; | |
36711 | } | |
36712 | ||
36713 | /* ----------------------------------------------------------------------------- | |
36714 | * constants/methods manipulation | |
36715 | * ----------------------------------------------------------------------------- */ | |
36716 | ||
36717 | /* Install Constants */ | |
36718 | static void | |
36719 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
36720 | PyObject *obj = 0; | |
36721 | size_t i; | |
36722 | for (i = 0; constants[i].type; i++) { | |
36723 | switch(constants[i].type) { | |
36724 | case SWIG_PY_INT: | |
36725 | obj = PyInt_FromLong(constants[i].lvalue); | |
36726 | break; | |
36727 | case SWIG_PY_FLOAT: | |
36728 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
36729 | break; | |
36730 | case SWIG_PY_STRING: | |
36731 | if (constants[i].pvalue) { | |
36732 | obj = PyString_FromString((char *) constants[i].pvalue); | |
36733 | } else { | |
36734 | Py_INCREF(Py_None); | |
36735 | obj = Py_None; | |
36736 | } | |
36737 | break; | |
36738 | case SWIG_PY_POINTER: | |
36739 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
36740 | break; | |
36741 | case SWIG_PY_BINARY: | |
36742 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
36743 | break; | |
36744 | default: | |
36745 | obj = 0; | |
36746 | break; | |
36747 | } | |
36748 | if (obj) { | |
36749 | PyDict_SetItemString(d,constants[i].name,obj); | |
36750 | Py_DECREF(obj); | |
36751 | } | |
36752 | } | |
36753 | } | |
36754 | ||
36755 | /* -----------------------------------------------------------------------------*/ | |
36756 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
36757 | /* -----------------------------------------------------------------------------*/ | |
36758 | ||
36759 | static void | |
36760 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
36761 | swig_const_info *const_table, | |
36762 | swig_type_info **types, | |
36763 | swig_type_info **types_initial) { | |
36764 | size_t i; | |
36765 | for (i = 0; methods[i].ml_name; ++i) { | |
36766 | char *c = methods[i].ml_doc; | |
36767 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
36768 | int j; | |
36769 | swig_const_info *ci = 0; | |
36770 | char *name = c + 10; | |
36771 | for (j = 0; const_table[j].type; j++) { | |
36772 | if (strncmp(const_table[j].name, name, | |
36773 | strlen(const_table[j].name)) == 0) { | |
36774 | ci = &(const_table[j]); | |
36775 | break; | |
36776 | } | |
36777 | } | |
36778 | if (ci) { | |
36779 | size_t shift = (ci->ptype) - types; | |
36780 | swig_type_info *ty = types_initial[shift]; | |
36781 | size_t ldoc = (c - methods[i].ml_doc); | |
36782 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
36783 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
36784 | char *buff = ndoc; | |
36785 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
36786 | strncpy(buff, methods[i].ml_doc, ldoc); | |
36787 | buff += ldoc; | |
36788 | strncpy(buff, "swig_ptr: ", 10); | |
36789 | buff += 10; | |
36790 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
36791 | methods[i].ml_doc = ndoc; | |
36792 | } | |
36793 | } | |
36794 | } | |
36795 | } | |
36796 | ||
36797 | /* -----------------------------------------------------------------------------* | |
36798 | * Initialize type list | |
36799 | * -----------------------------------------------------------------------------*/ | |
36800 | ||
36801 | #if PY_MAJOR_VERSION < 2 | |
36802 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
36803 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
36804 | static int | |
36805 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
36806 | { | |
36807 | PyObject *dict; | |
36808 | if (!PyModule_Check(m)) { | |
36809 | PyErr_SetString(PyExc_TypeError, | |
36810 | "PyModule_AddObject() needs module as first arg"); | |
36811 | return -1; | |
36812 | } | |
36813 | if (!o) { | |
36814 | PyErr_SetString(PyExc_TypeError, | |
36815 | "PyModule_AddObject() needs non-NULL value"); | |
36816 | return -1; | |
36817 | } | |
36818 | ||
36819 | dict = PyModule_GetDict(m); | |
36820 | if (dict == NULL) { | |
36821 | /* Internal error -- modules must have a dict! */ | |
36822 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
36823 | PyModule_GetName(m)); | |
36824 | return -1; | |
36825 | } | |
36826 | if (PyDict_SetItemString(dict, name, o)) | |
36827 | return -1; | |
36828 | Py_DECREF(o); | |
36829 | return 0; | |
36830 | } | |
36831 | #endif | |
36832 | ||
36833 | static swig_type_info ** | |
36834 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
36835 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
36836 | { | |
36837 | NULL, NULL, 0, NULL | |
36838 | } | |
36839 | };/* Sentinel */ | |
36840 | ||
36841 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
36842 | swig_empty_runtime_method_table); | |
36843 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
36844 | if (pointer && module) { | |
36845 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
36846 | } | |
36847 | return type_list_handle; | |
36848 | } | |
36849 | ||
36850 | static swig_type_info ** | |
36851 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
36852 | swig_type_info **type_pointer; | |
36853 | ||
36854 | /* first check if module already created */ | |
36855 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
36856 | if (type_pointer) { | |
36857 | return type_pointer; | |
36858 | } else { | |
36859 | /* create a new module and variable */ | |
36860 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
36861 | } | |
36862 | } | |
36863 | ||
36864 | #ifdef __cplusplus | |
36865 | } | |
36866 | #endif | |
36867 | ||
36868 | /* -----------------------------------------------------------------------------* | |
36869 | * Partial Init method | |
36870 | * -----------------------------------------------------------------------------*/ | |
36871 | ||
36872 | #ifdef SWIG_LINK_RUNTIME | |
36873 | #ifdef __cplusplus | |
36874 | extern "C" | |
36875 | #endif | |
36876 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
36877 | #endif | |
36878 | ||
d14a1e28 RD |
36879 | #ifdef __cplusplus |
36880 | extern "C" | |
36881 | #endif | |
36882 | SWIGEXPORT(void) SWIG_init(void) { | |
36883 | static PyObject *SWIG_globals = 0; | |
36884 | static int typeinit = 0; | |
36885 | PyObject *m, *d; | |
36886 | int i; | |
36887 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
36888 | |
36889 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
36890 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
36891 | ||
d14a1e28 RD |
36892 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
36893 | d = PyModule_GetDict(m); | |
36894 | ||
36895 | if (!typeinit) { | |
093d3ff1 RD |
36896 | #ifdef SWIG_LINK_RUNTIME |
36897 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
36898 | #else | |
36899 | # ifndef SWIG_STATIC_RUNTIME | |
36900 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
36901 | # endif | |
36902 | #endif | |
d14a1e28 RD |
36903 | for (i = 0; swig_types_initial[i]; i++) { |
36904 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
36905 | } | |
36906 | typeinit = 1; | |
36907 | } | |
36908 | SWIG_InstallConstants(d,swig_const_table); | |
36909 | ||
b2dc1044 RD |
36910 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
36911 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
093d3ff1 RD |
36912 | { |
36913 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)(wxBU_LEFT))); | |
36914 | } | |
36915 | { | |
36916 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)(wxBU_TOP))); | |
36917 | } | |
36918 | { | |
36919 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)(wxBU_RIGHT))); | |
36920 | } | |
36921 | { | |
36922 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)(wxBU_BOTTOM))); | |
36923 | } | |
36924 | { | |
36925 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)(wxBU_ALIGN_MASK))); | |
36926 | } | |
36927 | { | |
36928 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)(wxBU_EXACTFIT))); | |
36929 | } | |
36930 | { | |
36931 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)(wxBU_AUTODRAW))); | |
36932 | } | |
b2dc1044 | 36933 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
093d3ff1 RD |
36934 | { |
36935 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)(wxCHK_2STATE))); | |
36936 | } | |
36937 | { | |
36938 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)(wxCHK_3STATE))); | |
36939 | } | |
36940 | { | |
36941 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
36942 | } | |
36943 | { | |
36944 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)(wxCHK_UNCHECKED))); | |
36945 | } | |
36946 | { | |
36947 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)(wxCHK_CHECKED))); | |
36948 | } | |
36949 | { | |
36950 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)(wxCHK_UNDETERMINED))); | |
36951 | } | |
b2dc1044 RD |
36952 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
36953 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
36954 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
093d3ff1 RD |
36955 | { |
36956 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)(wxGA_HORIZONTAL))); | |
36957 | } | |
36958 | { | |
36959 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)(wxGA_VERTICAL))); | |
36960 | } | |
36961 | { | |
36962 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)(wxGA_SMOOTH))); | |
36963 | } | |
36964 | { | |
36965 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)(wxGA_PROGRESSBAR))); | |
36966 | } | |
b2dc1044 RD |
36967 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
36968 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
36969 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
36970 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
36971 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
093d3ff1 RD |
36972 | { |
36973 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)(wxTE_NO_VSCROLL))); | |
36974 | } | |
36975 | { | |
36976 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)(wxTE_AUTO_SCROLL))); | |
36977 | } | |
36978 | { | |
36979 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)(wxTE_READONLY))); | |
36980 | } | |
36981 | { | |
36982 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)(wxTE_MULTILINE))); | |
36983 | } | |
36984 | { | |
36985 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)(wxTE_PROCESS_TAB))); | |
36986 | } | |
36987 | { | |
36988 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)(wxTE_LEFT))); | |
36989 | } | |
36990 | { | |
36991 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)(wxTE_CENTER))); | |
36992 | } | |
36993 | { | |
36994 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)(wxTE_RIGHT))); | |
36995 | } | |
36996 | { | |
36997 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)(wxTE_CENTRE))); | |
36998 | } | |
36999 | { | |
37000 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)(wxTE_RICH))); | |
37001 | } | |
37002 | { | |
37003 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)(wxTE_PROCESS_ENTER))); | |
37004 | } | |
37005 | { | |
37006 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)(wxTE_PASSWORD))); | |
37007 | } | |
37008 | { | |
37009 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)(wxTE_AUTO_URL))); | |
37010 | } | |
37011 | { | |
37012 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)(wxTE_NOHIDESEL))); | |
37013 | } | |
37014 | { | |
37015 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)(wxTE_DONTWRAP))); | |
37016 | } | |
37017 | { | |
37018 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)(wxTE_LINEWRAP))); | |
37019 | } | |
37020 | { | |
37021 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)(wxTE_WORDWRAP))); | |
37022 | } | |
37023 | { | |
37024 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)(wxTE_RICH2))); | |
37025 | } | |
37026 | { | |
37027 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_DEFAULT))); | |
37028 | } | |
37029 | { | |
37030 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_LEFT))); | |
37031 | } | |
37032 | { | |
37033 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTRE))); | |
37034 | } | |
37035 | { | |
37036 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTER))); | |
37037 | } | |
37038 | { | |
37039 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_RIGHT))); | |
37040 | } | |
37041 | { | |
37042 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
37043 | } | |
37044 | { | |
37045 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_TEXT_COLOUR))); | |
37046 | } | |
37047 | { | |
37048 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
37049 | } | |
37050 | { | |
37051 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_FACE))); | |
37052 | } | |
37053 | { | |
37054 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_SIZE))); | |
37055 | } | |
37056 | { | |
37057 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)(wxTEXT_ATTR_FONT_WEIGHT))); | |
37058 | } | |
37059 | { | |
37060 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)(wxTEXT_ATTR_FONT_ITALIC))); | |
37061 | } | |
37062 | { | |
37063 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_UNDERLINE))); | |
37064 | } | |
37065 | { | |
37066 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)(wxTEXT_ATTR_FONT))); | |
37067 | } | |
37068 | { | |
37069 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)(wxTEXT_ATTR_ALIGNMENT))); | |
37070 | } | |
37071 | { | |
37072 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_LEFT_INDENT))); | |
37073 | } | |
37074 | { | |
37075 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_RIGHT_INDENT))); | |
37076 | } | |
37077 | { | |
37078 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)(wxTEXT_ATTR_TABS))); | |
37079 | } | |
37080 | { | |
37081 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)(wxTE_HT_UNKNOWN))); | |
37082 | } | |
37083 | { | |
37084 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)(wxTE_HT_BEFORE))); | |
37085 | } | |
37086 | { | |
37087 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)(wxTE_HT_ON_TEXT))); | |
37088 | } | |
37089 | { | |
37090 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)(wxTE_HT_BELOW))); | |
37091 | } | |
37092 | { | |
37093 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)(wxTE_HT_BEYOND))); | |
37094 | } | |
7557b9b5 RD |
37095 | { |
37096 | PyDict_SetItemString(d,"OutOfRangeTextCoord", SWIG_From_int((int)(wxOutOfRangeTextCoord))); | |
37097 | } | |
37098 | { | |
37099 | PyDict_SetItemString(d,"InvalidTextCoord", SWIG_From_int((int)(wxInvalidTextCoord))); | |
37100 | } | |
d14a1e28 RD |
37101 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
37102 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
37103 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
37104 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
37105 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
37106 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
37107 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
093d3ff1 RD |
37108 | { |
37109 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)(wxSP_HORIZONTAL))); | |
37110 | } | |
37111 | { | |
37112 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)(wxSP_VERTICAL))); | |
37113 | } | |
37114 | { | |
37115 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)(wxSP_ARROW_KEYS))); | |
37116 | } | |
37117 | { | |
37118 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)(wxSP_WRAP))); | |
37119 | } | |
d14a1e28 | 37120 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
37121 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
37122 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
37123 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
7557b9b5 RD |
37124 | { |
37125 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)(wxSL_HORIZONTAL))); | |
37126 | } | |
37127 | { | |
37128 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)(wxSL_VERTICAL))); | |
37129 | } | |
37130 | { | |
37131 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)(wxSL_AUTOTICKS))); | |
37132 | } | |
37133 | { | |
37134 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)(wxSL_LABELS))); | |
37135 | } | |
37136 | { | |
37137 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)(wxSL_LEFT))); | |
37138 | } | |
37139 | { | |
37140 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)(wxSL_TOP))); | |
37141 | } | |
37142 | { | |
37143 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)(wxSL_RIGHT))); | |
37144 | } | |
37145 | { | |
37146 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)(wxSL_BOTTOM))); | |
37147 | } | |
37148 | { | |
37149 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)(wxSL_BOTH))); | |
37150 | } | |
37151 | { | |
37152 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)(wxSL_SELRANGE))); | |
37153 | } | |
37154 | { | |
37155 | PyDict_SetItemString(d,"SL_INVERSE", SWIG_From_int((int)(wxSL_INVERSE))); | |
37156 | } | |
b2dc1044 | 37157 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); |
d14a1e28 | 37158 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
51b83b37 | 37159 | SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set); |
093d3ff1 RD |
37160 | { |
37161 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)(wxNB_FIXEDWIDTH))); | |
37162 | } | |
37163 | { | |
37164 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)(wxNB_TOP))); | |
37165 | } | |
37166 | { | |
37167 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)(wxNB_LEFT))); | |
37168 | } | |
37169 | { | |
37170 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)(wxNB_RIGHT))); | |
37171 | } | |
37172 | { | |
37173 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)(wxNB_BOTTOM))); | |
37174 | } | |
37175 | { | |
37176 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)(wxNB_MULTILINE))); | |
37177 | } | |
8e738329 RD |
37178 | { |
37179 | PyDict_SetItemString(d,"NB_NOPAGETHEME", SWIG_From_int((int)(wxNB_NOPAGETHEME))); | |
37180 | } | |
093d3ff1 RD |
37181 | { |
37182 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)(wxNB_HITTEST_NOWHERE))); | |
37183 | } | |
37184 | { | |
37185 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)(wxNB_HITTEST_ONICON))); | |
37186 | } | |
37187 | { | |
37188 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)(wxNB_HITTEST_ONLABEL))); | |
37189 | } | |
37190 | { | |
37191 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)(wxNB_HITTEST_ONITEM))); | |
37192 | } | |
d14a1e28 RD |
37193 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
37194 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37195 | { |
37196 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)(wxLB_DEFAULT))); | |
37197 | } | |
37198 | { | |
37199 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)(wxLB_TOP))); | |
37200 | } | |
37201 | { | |
37202 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)(wxLB_BOTTOM))); | |
37203 | } | |
37204 | { | |
37205 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)(wxLB_LEFT))); | |
37206 | } | |
37207 | { | |
37208 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)(wxLB_RIGHT))); | |
37209 | } | |
37210 | { | |
37211 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)(wxLB_ALIGN_MASK))); | |
37212 | } | |
d14a1e28 RD |
37213 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
37214 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37215 | { |
37216 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)(wxCHB_DEFAULT))); | |
37217 | } | |
37218 | { | |
37219 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)(wxCHB_TOP))); | |
37220 | } | |
37221 | { | |
37222 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)(wxCHB_BOTTOM))); | |
37223 | } | |
37224 | { | |
37225 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)(wxCHB_LEFT))); | |
37226 | } | |
37227 | { | |
37228 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)(wxCHB_RIGHT))); | |
37229 | } | |
37230 | { | |
37231 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)(wxCHB_ALIGN_MASK))); | |
37232 | } | |
2ef75293 RD |
37233 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); |
37234 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37235 | { |
37236 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)(wxTOOL_STYLE_BUTTON))); | |
37237 | } | |
37238 | { | |
37239 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)(wxTOOL_STYLE_SEPARATOR))); | |
37240 | } | |
37241 | { | |
37242 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)(wxTOOL_STYLE_CONTROL))); | |
37243 | } | |
37244 | { | |
37245 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)(wxTB_HORIZONTAL))); | |
37246 | } | |
37247 | { | |
37248 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)(wxTB_VERTICAL))); | |
37249 | } | |
37250 | { | |
37251 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)(wxTB_3DBUTTONS))); | |
37252 | } | |
37253 | { | |
37254 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)(wxTB_FLAT))); | |
37255 | } | |
37256 | { | |
37257 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)(wxTB_DOCKABLE))); | |
37258 | } | |
37259 | { | |
37260 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)(wxTB_NOICONS))); | |
37261 | } | |
37262 | { | |
37263 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)(wxTB_TEXT))); | |
37264 | } | |
37265 | { | |
37266 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)(wxTB_NODIVIDER))); | |
37267 | } | |
37268 | { | |
37269 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)(wxTB_NOALIGN))); | |
37270 | } | |
37271 | { | |
37272 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)(wxTB_HORZ_LAYOUT))); | |
37273 | } | |
37274 | { | |
37275 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)(wxTB_HORZ_TEXT))); | |
37276 | } | |
b2dc1044 | 37277 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
093d3ff1 RD |
37278 | { |
37279 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)(wxLC_VRULES))); | |
37280 | } | |
37281 | { | |
37282 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)(wxLC_HRULES))); | |
37283 | } | |
37284 | { | |
37285 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)(wxLC_ICON))); | |
37286 | } | |
37287 | { | |
37288 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)(wxLC_SMALL_ICON))); | |
37289 | } | |
37290 | { | |
37291 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)(wxLC_LIST))); | |
37292 | } | |
37293 | { | |
37294 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)(wxLC_REPORT))); | |
37295 | } | |
37296 | { | |
37297 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)(wxLC_ALIGN_TOP))); | |
37298 | } | |
37299 | { | |
37300 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)(wxLC_ALIGN_LEFT))); | |
37301 | } | |
37302 | { | |
37303 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)(wxLC_AUTOARRANGE))); | |
37304 | } | |
37305 | { | |
37306 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)(wxLC_VIRTUAL))); | |
37307 | } | |
37308 | { | |
37309 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)(wxLC_EDIT_LABELS))); | |
37310 | } | |
37311 | { | |
37312 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)(wxLC_NO_HEADER))); | |
37313 | } | |
37314 | { | |
37315 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)(wxLC_NO_SORT_HEADER))); | |
37316 | } | |
37317 | { | |
37318 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)(wxLC_SINGLE_SEL))); | |
37319 | } | |
37320 | { | |
37321 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)(wxLC_SORT_ASCENDING))); | |
37322 | } | |
37323 | { | |
37324 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)(wxLC_SORT_DESCENDING))); | |
37325 | } | |
37326 | { | |
37327 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)(wxLC_MASK_TYPE))); | |
37328 | } | |
37329 | { | |
37330 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)(wxLC_MASK_ALIGN))); | |
37331 | } | |
37332 | { | |
37333 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)(wxLC_MASK_SORT))); | |
37334 | } | |
37335 | { | |
37336 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)(wxLIST_MASK_STATE))); | |
37337 | } | |
37338 | { | |
37339 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)(wxLIST_MASK_TEXT))); | |
37340 | } | |
37341 | { | |
37342 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)(wxLIST_MASK_IMAGE))); | |
37343 | } | |
37344 | { | |
37345 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)(wxLIST_MASK_DATA))); | |
37346 | } | |
37347 | { | |
37348 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)(wxLIST_SET_ITEM))); | |
37349 | } | |
37350 | { | |
37351 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)(wxLIST_MASK_WIDTH))); | |
37352 | } | |
37353 | { | |
37354 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)(wxLIST_MASK_FORMAT))); | |
37355 | } | |
37356 | { | |
37357 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)(wxLIST_STATE_DONTCARE))); | |
37358 | } | |
37359 | { | |
37360 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)(wxLIST_STATE_DROPHILITED))); | |
37361 | } | |
37362 | { | |
37363 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)(wxLIST_STATE_FOCUSED))); | |
37364 | } | |
37365 | { | |
37366 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)(wxLIST_STATE_SELECTED))); | |
37367 | } | |
37368 | { | |
37369 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)(wxLIST_STATE_CUT))); | |
37370 | } | |
37371 | { | |
37372 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)(wxLIST_STATE_DISABLED))); | |
37373 | } | |
37374 | { | |
37375 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)(wxLIST_STATE_FILTERED))); | |
37376 | } | |
37377 | { | |
37378 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)(wxLIST_STATE_INUSE))); | |
37379 | } | |
37380 | { | |
37381 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)(wxLIST_STATE_PICKED))); | |
37382 | } | |
37383 | { | |
37384 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)(wxLIST_STATE_SOURCE))); | |
37385 | } | |
37386 | { | |
37387 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)(wxLIST_HITTEST_ABOVE))); | |
37388 | } | |
37389 | { | |
37390 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)(wxLIST_HITTEST_BELOW))); | |
37391 | } | |
37392 | { | |
37393 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)(wxLIST_HITTEST_NOWHERE))); | |
37394 | } | |
37395 | { | |
37396 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMICON))); | |
37397 | } | |
37398 | { | |
37399 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMLABEL))); | |
37400 | } | |
37401 | { | |
37402 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMRIGHT))); | |
37403 | } | |
37404 | { | |
37405 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMSTATEICON))); | |
37406 | } | |
37407 | { | |
37408 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)(wxLIST_HITTEST_TOLEFT))); | |
37409 | } | |
37410 | { | |
37411 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)(wxLIST_HITTEST_TORIGHT))); | |
37412 | } | |
37413 | { | |
37414 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)(wxLIST_HITTEST_ONITEM))); | |
37415 | } | |
37416 | { | |
37417 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)(wxLIST_NEXT_ABOVE))); | |
37418 | } | |
37419 | { | |
37420 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)(wxLIST_NEXT_ALL))); | |
37421 | } | |
37422 | { | |
37423 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)(wxLIST_NEXT_BELOW))); | |
37424 | } | |
37425 | { | |
37426 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)(wxLIST_NEXT_LEFT))); | |
37427 | } | |
37428 | { | |
37429 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)(wxLIST_NEXT_RIGHT))); | |
37430 | } | |
37431 | { | |
37432 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)(wxLIST_ALIGN_DEFAULT))); | |
37433 | } | |
37434 | { | |
37435 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)(wxLIST_ALIGN_LEFT))); | |
37436 | } | |
37437 | { | |
37438 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)(wxLIST_ALIGN_TOP))); | |
37439 | } | |
37440 | { | |
37441 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)(wxLIST_ALIGN_SNAP_TO_GRID))); | |
37442 | } | |
37443 | { | |
37444 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)(wxLIST_FORMAT_LEFT))); | |
37445 | } | |
37446 | { | |
37447 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)(wxLIST_FORMAT_RIGHT))); | |
37448 | } | |
37449 | { | |
37450 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)(wxLIST_FORMAT_CENTRE))); | |
37451 | } | |
37452 | { | |
37453 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)(wxLIST_FORMAT_CENTER))); | |
37454 | } | |
37455 | { | |
37456 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)(wxLIST_AUTOSIZE))); | |
37457 | } | |
37458 | { | |
37459 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)(wxLIST_AUTOSIZE_USEHEADER))); | |
37460 | } | |
37461 | { | |
37462 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)(wxLIST_RECT_BOUNDS))); | |
37463 | } | |
37464 | { | |
37465 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)(wxLIST_RECT_ICON))); | |
37466 | } | |
37467 | { | |
37468 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)(wxLIST_RECT_LABEL))); | |
37469 | } | |
37470 | { | |
37471 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)(wxLIST_FIND_UP))); | |
37472 | } | |
37473 | { | |
37474 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)(wxLIST_FIND_DOWN))); | |
37475 | } | |
37476 | { | |
37477 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)(wxLIST_FIND_LEFT))); | |
37478 | } | |
37479 | { | |
37480 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)(wxLIST_FIND_RIGHT))); | |
37481 | } | |
d14a1e28 RD |
37482 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
37483 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
37484 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
37485 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
37486 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
37487 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
d14a1e28 RD |
37488 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); |
37489 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
37490 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
37491 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
37492 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
37493 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
37494 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
37495 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
37496 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
37497 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
37498 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
37499 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
37500 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
37501 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
7557b9b5 RD |
37502 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); |
37503 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
d14a1e28 RD |
37504 | |
37505 | // Map renamed classes back to their common name for OOR | |
37506 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
37507 | ||
b2dc1044 | 37508 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
093d3ff1 RD |
37509 | { |
37510 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)(wxTR_NO_BUTTONS))); | |
37511 | } | |
37512 | { | |
37513 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)(wxTR_HAS_BUTTONS))); | |
37514 | } | |
37515 | { | |
37516 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)(wxTR_NO_LINES))); | |
37517 | } | |
37518 | { | |
37519 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)(wxTR_LINES_AT_ROOT))); | |
37520 | } | |
37521 | { | |
37522 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)(wxTR_SINGLE))); | |
37523 | } | |
37524 | { | |
37525 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)(wxTR_MULTIPLE))); | |
37526 | } | |
37527 | { | |
37528 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)(wxTR_EXTENDED))); | |
37529 | } | |
37530 | { | |
37531 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
37532 | } | |
37533 | { | |
37534 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)(wxTR_EDIT_LABELS))); | |
37535 | } | |
37536 | { | |
37537 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)(wxTR_HIDE_ROOT))); | |
37538 | } | |
37539 | { | |
37540 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)(wxTR_ROW_LINES))); | |
37541 | } | |
37542 | { | |
37543 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)(wxTR_FULL_ROW_HIGHLIGHT))); | |
37544 | } | |
37545 | { | |
37546 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)(wxTR_DEFAULT_STYLE))); | |
37547 | } | |
37548 | { | |
37549 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)(wxTR_TWIST_BUTTONS))); | |
37550 | } | |
37551 | { | |
37552 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)(wxTR_MAC_BUTTONS))); | |
37553 | } | |
37554 | { | |
37555 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)(wxTR_AQUA_BUTTONS))); | |
37556 | } | |
37557 | { | |
37558 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)(wxTreeItemIcon_Normal))); | |
37559 | } | |
37560 | { | |
37561 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)(wxTreeItemIcon_Selected))); | |
37562 | } | |
37563 | { | |
37564 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)(wxTreeItemIcon_Expanded))); | |
37565 | } | |
37566 | { | |
37567 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)(wxTreeItemIcon_SelectedExpanded))); | |
37568 | } | |
37569 | { | |
37570 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)(wxTreeItemIcon_Max))); | |
37571 | } | |
37572 | { | |
37573 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)(wxTREE_HITTEST_ABOVE))); | |
37574 | } | |
37575 | { | |
37576 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)(wxTREE_HITTEST_BELOW))); | |
37577 | } | |
37578 | { | |
37579 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)(wxTREE_HITTEST_NOWHERE))); | |
37580 | } | |
37581 | { | |
37582 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMBUTTON))); | |
37583 | } | |
37584 | { | |
37585 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMICON))); | |
37586 | } | |
37587 | { | |
37588 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMINDENT))); | |
37589 | } | |
37590 | { | |
37591 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLABEL))); | |
37592 | } | |
37593 | { | |
37594 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMRIGHT))); | |
37595 | } | |
37596 | { | |
37597 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMSTATEICON))); | |
37598 | } | |
37599 | { | |
37600 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)(wxTREE_HITTEST_TOLEFT))); | |
37601 | } | |
37602 | { | |
37603 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)(wxTREE_HITTEST_TORIGHT))); | |
37604 | } | |
37605 | { | |
37606 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMUPPERPART))); | |
37607 | } | |
37608 | { | |
37609 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLOWERPART))); | |
37610 | } | |
37611 | { | |
37612 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)(wxTREE_HITTEST_ONITEM))); | |
37613 | } | |
d14a1e28 RD |
37614 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
37615 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
37616 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
37617 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
37618 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
37619 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
37620 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
37621 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
37622 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
37623 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
37624 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
37625 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
37626 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
37627 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
37628 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
37629 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
37630 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
37631 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
37632 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 37633 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
e505d15e | 37634 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); |
d14a1e28 RD |
37635 | |
37636 | // Map renamed classes back to their common name for OOR | |
37637 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
37638 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
37639 | ||
b2dc1044 | 37640 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
093d3ff1 RD |
37641 | { |
37642 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)(wxDIRCTRL_DIR_ONLY))); | |
37643 | } | |
37644 | { | |
37645 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)(wxDIRCTRL_SELECT_FIRST))); | |
37646 | } | |
37647 | { | |
37648 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)(wxDIRCTRL_SHOW_FILTERS))); | |
37649 | } | |
37650 | { | |
37651 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)(wxDIRCTRL_3D_INTERNAL))); | |
37652 | } | |
37653 | { | |
37654 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)(wxDIRCTRL_EDIT_LABELS))); | |
37655 | } | |
37656 | { | |
37657 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)(wxFRAME_EX_CONTEXTHELP))); | |
37658 | } | |
37659 | { | |
37660 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)(wxDIALOG_EX_CONTEXTHELP))); | |
37661 | } | |
d14a1e28 RD |
37662 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
37663 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
37664 | |
37665 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
37666 | ||
d14a1e28 RD |
37667 | } |
37668 |