]>
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 | } | |
02b455f2 RD |
1040 | if (str) |
1041 | Py_DECREF(str); | |
093d3ff1 RD |
1042 | return; |
1043 | } | |
1044 | } | |
1045 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1046 | } else { | |
1047 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1048 | } | |
1049 | } | |
1050 | ||
1051 | SWIGRUNTIMEINLINE void | |
1052 | SWIG_Python_NullRef(const char *type) | |
1053 | { | |
1054 | if (type) { | |
1055 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1056 | } else { | |
1057 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1058 | } | |
1059 | } | |
1060 | ||
1061 | SWIGRUNTIME int | |
1062 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1063 | { | |
1064 | if (PyErr_Occurred()) { | |
1065 | PyObject *type = 0; | |
1066 | PyObject *value = 0; | |
1067 | PyObject *traceback = 0; | |
1068 | PyErr_Fetch(&type, &value, &traceback); | |
1069 | if (value) { | |
1070 | PyObject *old_str = PyObject_Str(value); | |
1071 | Py_XINCREF(type); | |
1072 | PyErr_Clear(); | |
1073 | if (infront) { | |
1074 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1075 | } else { | |
1076 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1077 | } | |
1078 | Py_DECREF(old_str); | |
1079 | } | |
1080 | return 1; | |
1081 | } else { | |
1082 | return 0; | |
1083 | } | |
1084 | } | |
1085 | ||
1086 | SWIGRUNTIME int | |
1087 | SWIG_Python_ArgFail(int argnum) | |
1088 | { | |
1089 | if (PyErr_Occurred()) { | |
1090 | /* add information about failing argument */ | |
1091 | char mesg[256]; | |
1092 | sprintf(mesg, "argument number %d:", argnum); | |
1093 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1094 | } else { | |
1095 | return 0; | |
1096 | } | |
1097 | } | |
1098 | ||
1099 | ||
1100 | /* ----------------------------------------------------------------------------- | |
1101 | * pointers/data manipulation | |
1102 | * ----------------------------------------------------------------------------- */ | |
1103 | ||
1104 | /* Convert a pointer value */ | |
1105 | SWIGRUNTIME int | |
1106 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1107 | swig_type_info *tc; | |
1108 | const char *c = 0; | |
1109 | static PyObject *SWIG_this = 0; | |
1110 | int newref = 0; | |
1111 | PyObject *pyobj = 0; | |
1112 | void *vptr; | |
1113 | ||
1114 | if (!obj) return 0; | |
1115 | if (obj == Py_None) { | |
1116 | *ptr = 0; | |
1117 | return 0; | |
1118 | } | |
1119 | ||
1120 | #ifdef SWIG_COBJECT_TYPES | |
1121 | if (!(PySwigObject_Check(obj))) { | |
1122 | if (!SWIG_this) | |
1123 | SWIG_this = PyString_FromString("this"); | |
1124 | pyobj = obj; | |
1125 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1126 | newref = 1; | |
1127 | if (!obj) goto type_error; | |
1128 | if (!PySwigObject_Check(obj)) { | |
1129 | Py_DECREF(obj); | |
1130 | goto type_error; | |
1131 | } | |
1132 | } | |
1133 | vptr = PySwigObject_AsVoidPtr(obj); | |
1134 | c = (const char *) PySwigObject_GetDesc(obj); | |
1135 | if (newref) { Py_DECREF(obj); } | |
1136 | goto type_check; | |
1137 | #else | |
1138 | if (!(PyString_Check(obj))) { | |
1139 | if (!SWIG_this) | |
1140 | SWIG_this = PyString_FromString("this"); | |
1141 | pyobj = obj; | |
1142 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1143 | newref = 1; | |
1144 | if (!obj) goto type_error; | |
1145 | if (!PyString_Check(obj)) { | |
1146 | Py_DECREF(obj); | |
1147 | goto type_error; | |
1148 | } | |
1149 | } | |
1150 | c = PyString_AS_STRING(obj); | |
1151 | /* Pointer values must start with leading underscore */ | |
1152 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1153 | if (newref) { Py_DECREF(obj); } | |
1154 | if (!c) goto type_error; | |
1155 | #endif | |
1156 | ||
1157 | type_check: | |
1158 | ||
1159 | if (ty) { | |
1160 | tc = SWIG_TypeCheck(c,ty); | |
1161 | if (!tc) goto type_error; | |
1162 | *ptr = SWIG_TypeCast(tc,vptr); | |
1163 | } else { | |
1164 | *ptr = vptr; | |
1165 | } | |
1166 | ||
1167 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1168 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1169 | } | |
1170 | return 0; | |
1171 | ||
1172 | type_error: | |
1173 | PyErr_Clear(); | |
1174 | if (pyobj && !obj) { | |
1175 | obj = pyobj; | |
1176 | if (PyCFunction_Check(obj)) { | |
1177 | /* here we get the method pointer for callbacks */ | |
1178 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1179 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1180 | if (c) { | |
1181 | c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name); | |
1182 | if (!c) goto type_error; | |
1183 | goto type_check; | |
1184 | } | |
1185 | } | |
1186 | } | |
1187 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1188 | if (ty) { | |
1189 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1190 | } else { | |
1191 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1192 | } | |
1193 | } | |
1194 | return -1; | |
1195 | } | |
1196 | ||
1197 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1198 | SWIGRUNTIME void * | |
1199 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1200 | void *result; | |
1201 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1202 | PyErr_Clear(); | |
1203 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1204 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1205 | SWIG_Python_ArgFail(argnum); | |
1206 | } | |
1207 | } | |
1208 | return result; | |
1209 | } | |
1210 | ||
1211 | /* Convert a packed value value */ | |
1212 | SWIGRUNTIME int | |
1213 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1214 | swig_type_info *tc; | |
1215 | const char *c = 0; | |
1216 | ||
1217 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1218 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1219 | #else | |
1220 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1221 | c = PyString_AS_STRING(obj); | |
1222 | /* Pointer values must start with leading underscore */ | |
1223 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1224 | #endif | |
1225 | if (!c) goto type_error; | |
1226 | if (ty) { | |
1227 | tc = SWIG_TypeCheck(c,ty); | |
1228 | if (!tc) goto type_error; | |
1229 | } | |
1230 | return 0; | |
1231 | ||
1232 | type_error: | |
1233 | PyErr_Clear(); | |
1234 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1235 | if (ty) { | |
1236 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1237 | } else { | |
1238 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1239 | } | |
1240 | } | |
1241 | return -1; | |
1242 | } | |
1243 | ||
1244 | /* Create a new array object */ | |
1245 | SWIGRUNTIME PyObject * | |
1246 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1247 | PyObject *robj = 0; | |
1248 | if (!ptr) { | |
1249 | Py_INCREF(Py_None); | |
1250 | return Py_None; | |
1251 | } | |
1252 | #ifdef SWIG_COBJECT_TYPES | |
1253 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1254 | #else | |
1255 | { | |
1256 | char result[SWIG_BUFFER_SIZE]; | |
1257 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1258 | PyString_FromString(result) : 0; | |
1259 | } | |
1260 | #endif | |
1261 | if (!robj || (robj == Py_None)) return robj; | |
1262 | if (type->clientdata) { | |
1263 | PyObject *inst; | |
1264 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1265 | Py_DECREF(robj); | |
1266 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1267 | Py_DECREF(args); | |
1268 | if (inst) { | |
1269 | if (own) { | |
1270 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1271 | } | |
1272 | robj = inst; | |
1273 | } | |
1274 | } | |
1275 | return robj; | |
1276 | } | |
1277 | ||
1278 | SWIGRUNTIME PyObject * | |
1279 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1280 | PyObject *robj = 0; | |
1281 | if (!ptr) { | |
1282 | Py_INCREF(Py_None); | |
1283 | return Py_None; | |
1284 | } | |
1285 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1286 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1287 | #else | |
1288 | { | |
1289 | char result[SWIG_BUFFER_SIZE]; | |
1290 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1291 | PyString_FromString(result) : 0; | |
1292 | } | |
1293 | #endif | |
1294 | return robj; | |
1295 | } | |
1296 | ||
1297 | /* -----------------------------------------------------------------------------* | |
1298 | * Get type list | |
1299 | * -----------------------------------------------------------------------------*/ | |
1300 | ||
1301 | #ifdef SWIG_LINK_RUNTIME | |
1302 | void *SWIG_ReturnGlobalTypeList(void *); | |
1303 | #endif | |
1304 | ||
1305 | SWIGRUNTIME swig_type_info ** | |
1306 | SWIG_Python_GetTypeListHandle() { | |
1307 | static void *type_pointer = (void *)0; | |
1308 | /* first check if module already created */ | |
1309 | if (!type_pointer) { | |
1310 | #ifdef SWIG_LINK_RUNTIME | |
1311 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1312 | #else | |
1313 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1314 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1315 | if (PyErr_Occurred()) { | |
1316 | PyErr_Clear(); | |
1317 | type_pointer = (void *)0; | |
1318 | } | |
1319 | } | |
1320 | #endif | |
1321 | return (swig_type_info **) type_pointer; | |
1322 | } | |
1323 | ||
1324 | /* | |
1325 | Search for a swig_type_info structure | |
1326 | */ | |
1327 | SWIGRUNTIMEINLINE swig_type_info * | |
1328 | SWIG_Python_GetTypeList() { | |
1329 | swig_type_info **tlh = SWIG_Python_GetTypeListHandle(); | |
1330 | return tlh ? *tlh : (swig_type_info*)0; | |
1331 | } | |
1332 | ||
1333 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList | |
1334 | ||
1335 | #ifdef __cplusplus | |
1336 | } | |
1337 | #endif | |
1338 | ||
1339 | ||
1340 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1341 | ||
1342 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
1343 | #define SWIGTYPE_p_wxSizer swig_types[1] | |
1344 | #define SWIGTYPE_p_wxCheckBox swig_types[2] | |
1345 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[3] | |
1346 | #define SWIGTYPE_p_wxEvent swig_types[4] | |
1347 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[5] | |
1348 | #define SWIGTYPE_p_bool swig_types[6] | |
1349 | #define SWIGTYPE_p_wxItemContainer swig_types[7] | |
1350 | #define SWIGTYPE_p_wxPyListCtrl swig_types[8] | |
1351 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[9] | |
1352 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
1353 | #define SWIGTYPE_p_wxStaticLine swig_types[11] | |
1354 | #define SWIGTYPE_p_wxControl swig_types[12] | |
1355 | #define SWIGTYPE_p_wxPyControl swig_types[13] | |
1356 | #define SWIGTYPE_p_wxGauge swig_types[14] | |
1357 | #define SWIGTYPE_p_wxToolBarBase swig_types[15] | |
1358 | #define SWIGTYPE_p_wxFont swig_types[16] | |
1359 | #define SWIGTYPE_p_wxToggleButton swig_types[17] | |
1360 | #define SWIGTYPE_p_wxRadioButton swig_types[18] | |
1361 | #define SWIGTYPE_p_wxChoice swig_types[19] | |
1362 | #define SWIGTYPE_p_wxMemoryDC swig_types[20] | |
1363 | #define SWIGTYPE_ptrdiff_t swig_types[21] | |
1364 | #define SWIGTYPE_std__ptrdiff_t swig_types[22] | |
1365 | #define SWIGTYPE_p_wxListItemAttr swig_types[23] | |
1366 | #define SWIGTYPE_p_void swig_types[24] | |
1367 | #define SWIGTYPE_p_int swig_types[25] | |
1368 | #define SWIGTYPE_p_wxSize swig_types[26] | |
1369 | #define SWIGTYPE_p_wxDC swig_types[27] | |
1370 | #define SWIGTYPE_p_wxListView swig_types[28] | |
1371 | #define SWIGTYPE_p_wxIcon swig_types[29] | |
1372 | #define SWIGTYPE_p_wxVisualAttributes swig_types[30] | |
1373 | #define SWIGTYPE_p_wxTextCtrl swig_types[31] | |
1374 | #define SWIGTYPE_p_wxNotebook swig_types[32] | |
1375 | #define SWIGTYPE_p_wxChoicebook swig_types[33] | |
1376 | #define SWIGTYPE_p_wxNotifyEvent swig_types[34] | |
1377 | #define SWIGTYPE_p_wxArrayString swig_types[35] | |
1378 | #define SWIGTYPE_p_form_ops_t swig_types[36] | |
1379 | #define SWIGTYPE_p_wxListbook swig_types[37] | |
1380 | #define SWIGTYPE_p_wxStaticBitmap swig_types[38] | |
1381 | #define SWIGTYPE_p_wxSlider swig_types[39] | |
1382 | #define SWIGTYPE_p_wxStaticBox swig_types[40] | |
1383 | #define SWIGTYPE_p_wxArrayInt swig_types[41] | |
1384 | #define SWIGTYPE_p_wxContextHelp swig_types[42] | |
1385 | #define SWIGTYPE_p_long swig_types[43] | |
1386 | #define SWIGTYPE_p_wxDuplexMode swig_types[44] | |
1387 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[45] | |
1388 | #define SWIGTYPE_p_wxEvtHandler swig_types[46] | |
1389 | #define SWIGTYPE_p_wxListEvent swig_types[47] | |
1390 | #define SWIGTYPE_p_wxCheckListBox swig_types[48] | |
1391 | #define SWIGTYPE_p_wxListBox swig_types[49] | |
1392 | #define SWIGTYPE_p_wxSpinButton swig_types[50] | |
1393 | #define SWIGTYPE_p_wxButton swig_types[51] | |
1394 | #define SWIGTYPE_p_wxBitmapButton swig_types[52] | |
1395 | #define SWIGTYPE_p_wxRect swig_types[53] | |
1396 | #define SWIGTYPE_p_wxContextHelpButton swig_types[54] | |
1397 | #define SWIGTYPE_p_wxRadioBox swig_types[55] | |
1398 | #define SWIGTYPE_p_wxScrollBar swig_types[56] | |
1399 | #define SWIGTYPE_p_char swig_types[57] | |
1400 | #define SWIGTYPE_p_wxComboBox swig_types[58] | |
1401 | #define SWIGTYPE_p_wxTreeItemId swig_types[59] | |
1402 | #define SWIGTYPE_p_wxHelpEvent swig_types[60] | |
1403 | #define SWIGTYPE_p_wxListItem swig_types[61] | |
1404 | #define SWIGTYPE_p_wxNotebookSizer swig_types[62] | |
1405 | #define SWIGTYPE_p_wxSpinEvent swig_types[63] | |
1406 | #define SWIGTYPE_p_wxGenericDragImage swig_types[64] | |
1407 | #define SWIGTYPE_p_wxSpinCtrl swig_types[65] | |
1408 | #define SWIGTYPE_p_wxPaperSize swig_types[66] | |
1409 | #define SWIGTYPE_p_wxImageList swig_types[67] | |
1410 | #define SWIGTYPE_p_wxHelpProvider swig_types[68] | |
1411 | #define SWIGTYPE_p_wxTextAttr swig_types[69] | |
1412 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[70] | |
1413 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[71] | |
1414 | #define SWIGTYPE_p_wxListbookEvent swig_types[72] | |
1415 | #define SWIGTYPE_p_wxNotebookEvent swig_types[73] | |
1416 | #define SWIGTYPE_p_wxPoint swig_types[74] | |
1417 | #define SWIGTYPE_p_wxObject swig_types[75] | |
1418 | #define SWIGTYPE_p_wxCursor swig_types[76] | |
53aa7709 RD |
1419 | #define SWIGTYPE_p_wxDateTime swig_types[77] |
1420 | #define SWIGTYPE_p_wxKeyEvent swig_types[78] | |
1421 | #define SWIGTYPE_p_unsigned_long swig_types[79] | |
1422 | #define SWIGTYPE_p_wxWindow swig_types[80] | |
1423 | #define SWIGTYPE_p_wxString swig_types[81] | |
1424 | #define SWIGTYPE_p_wxBitmap swig_types[82] | |
1425 | #define SWIGTYPE_unsigned_int swig_types[83] | |
1426 | #define SWIGTYPE_p_unsigned_int swig_types[84] | |
1427 | #define SWIGTYPE_p_unsigned_char swig_types[85] | |
1428 | #define SWIGTYPE_p_wxMouseEvent swig_types[86] | |
1429 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[87] | |
1430 | #define SWIGTYPE_p_wxTreeEvent swig_types[88] | |
1431 | #define SWIGTYPE_p_wxCommandEvent swig_types[89] | |
1432 | #define SWIGTYPE_p_wxStaticText swig_types[90] | |
1433 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[91] | |
1434 | #define SWIGTYPE_p_wxControlWithItems swig_types[92] | |
1435 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[93] | |
1436 | #define SWIGTYPE_p_wxColour swig_types[94] | |
1437 | #define SWIGTYPE_p_wxToolBar swig_types[95] | |
1438 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[96] | |
1439 | #define SWIGTYPE_p_wxValidator swig_types[97] | |
1440 | static swig_type_info *swig_types[99]; | |
093d3ff1 RD |
1441 | |
1442 | /* -------- TYPES TABLE (END) -------- */ | |
1443 | ||
1444 | ||
1445 | /*----------------------------------------------- | |
1446 | @(target):= _controls_.so | |
1447 | ------------------------------------------------*/ | |
1448 | #define SWIG_init init_controls_ | |
1449 | ||
1450 | #define SWIG_name "_controls_" | |
1451 | ||
1452 | #include "wx/wxPython/wxPython.h" | |
1453 | #include "wx/wxPython/pyclasses.h" | |
1454 | ||
1455 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1456 | static const wxString wxPyEmptyString(wxEmptyString); | |
1457 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1458 | ||
1459 | const wxArrayString wxPyEmptyStringArray; | |
1460 | ||
1461 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
1462 | ||
1463 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1464 | #define SWIG_From_int PyInt_FromLong | |
1465 | /*@@*/ | |
1466 | ||
1467 | ||
1468 | #include <limits.h> | |
1469 | ||
1470 | ||
1471 | SWIGINTERN int | |
1472 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1473 | const char *errmsg) | |
1474 | { | |
1475 | if (value < min_value) { | |
1476 | if (errmsg) { | |
1477 | PyErr_Format(PyExc_OverflowError, | |
1478 | "value %ld is less than '%s' minimum %ld", | |
1479 | value, errmsg, min_value); | |
1480 | } | |
1481 | return 0; | |
1482 | } else if (value > max_value) { | |
1483 | if (errmsg) { | |
1484 | PyErr_Format(PyExc_OverflowError, | |
1485 | "value %ld is greater than '%s' maximum %ld", | |
1486 | value, errmsg, max_value); | |
1487 | } | |
1488 | return 0; | |
1489 | } | |
1490 | return 1; | |
1491 | } | |
1492 | ||
1493 | ||
1494 | SWIGINTERN int | |
1495 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1496 | { | |
1497 | if (PyNumber_Check(obj)) { | |
1498 | if (val) *val = PyInt_AsLong(obj); | |
1499 | return 1; | |
1500 | } | |
1501 | else { | |
1502 | SWIG_type_error("number", obj); | |
1503 | } | |
1504 | return 0; | |
1505 | } | |
1506 | ||
1507 | ||
1508 | #if INT_MAX != LONG_MAX | |
1509 | SWIGINTERN int | |
1510 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1511 | { | |
1512 | const char* errmsg = val ? "int" : (char*)0; | |
1513 | long v; | |
1514 | if (SWIG_AsVal_long(obj, &v)) { | |
1515 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1516 | if (val) *val = (int)(v); | |
1517 | return 1; | |
1518 | } else { | |
1519 | return 0; | |
1520 | } | |
1521 | } else { | |
1522 | PyErr_Clear(); | |
1523 | } | |
1524 | if (val) { | |
1525 | SWIG_type_error(errmsg, obj); | |
1526 | } | |
1527 | return 0; | |
1528 | } | |
1529 | #else | |
1530 | SWIGINTERNSHORT int | |
1531 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1532 | { | |
1533 | return SWIG_AsVal_long(obj,(long*)val); | |
1534 | } | |
1535 | #endif | |
1536 | ||
1537 | ||
1538 | SWIGINTERNSHORT int | |
c32bde28 | 1539 | SWIG_As_int(PyObject* obj) |
994141e6 | 1540 | { |
c32bde28 RD |
1541 | int v; |
1542 | if (!SWIG_AsVal_int(obj, &v)) { | |
1543 | /* | |
093d3ff1 | 1544 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1545 | */ |
1546 | memset((void*)&v, 0, sizeof(int)); | |
15afbcd0 | 1547 | } |
c32bde28 | 1548 | return v; |
15afbcd0 RD |
1549 | } |
1550 | ||
1551 | ||
093d3ff1 | 1552 | SWIGINTERNSHORT long |
c32bde28 | 1553 | SWIG_As_long(PyObject* obj) |
15afbcd0 | 1554 | { |
c32bde28 RD |
1555 | long v; |
1556 | if (!SWIG_AsVal_long(obj, &v)) { | |
1557 | /* | |
093d3ff1 | 1558 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1559 | */ |
1560 | memset((void*)&v, 0, sizeof(long)); | |
15afbcd0 | 1561 | } |
c32bde28 | 1562 | return v; |
994141e6 RD |
1563 | } |
1564 | ||
c32bde28 | 1565 | |
093d3ff1 | 1566 | SWIGINTERNSHORT int |
c32bde28 RD |
1567 | SWIG_Check_int(PyObject* obj) |
1568 | { | |
1569 | return SWIG_AsVal_int(obj, (int*)0); | |
1570 | } | |
994141e6 | 1571 | |
c32bde28 | 1572 | |
093d3ff1 | 1573 | SWIGINTERNSHORT int |
c32bde28 | 1574 | SWIG_Check_long(PyObject* obj) |
994141e6 | 1575 | { |
c32bde28 | 1576 | return SWIG_AsVal_long(obj, (long*)0); |
994141e6 RD |
1577 | } |
1578 | ||
c32bde28 | 1579 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 | 1580 | |
093d3ff1 | 1581 | SWIGINTERN int |
c32bde28 | 1582 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
15afbcd0 | 1583 | { |
c32bde28 RD |
1584 | if (obj == Py_True) { |
1585 | if (val) *val = true; | |
1586 | return 1; | |
1587 | } | |
1588 | if (obj == Py_False) { | |
1589 | if (val) *val = false; | |
15afbcd0 RD |
1590 | return 1; |
1591 | } | |
c32bde28 RD |
1592 | int res = 0; |
1593 | if (SWIG_AsVal_int(obj, &res)) { | |
093d3ff1 | 1594 | if (val) *val = res ? true : false; |
c32bde28 | 1595 | return 1; |
093d3ff1 RD |
1596 | } else { |
1597 | PyErr_Clear(); | |
1598 | } | |
c32bde28 | 1599 | if (val) { |
093d3ff1 | 1600 | SWIG_type_error("bool", obj); |
c32bde28 RD |
1601 | } |
1602 | return 0; | |
1603 | } | |
1604 | ||
1605 | ||
093d3ff1 | 1606 | SWIGINTERNSHORT bool |
c32bde28 RD |
1607 | SWIG_As_bool(PyObject* obj) |
1608 | { | |
1609 | bool v; | |
1610 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1611 | /* | |
093d3ff1 | 1612 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1613 | */ |
1614 | memset((void*)&v, 0, sizeof(bool)); | |
1615 | } | |
1616 | return v; | |
1617 | } | |
1618 | ||
1619 | ||
093d3ff1 | 1620 | SWIGINTERNSHORT int |
c32bde28 RD |
1621 | SWIG_Check_bool(PyObject* obj) |
1622 | { | |
1623 | return SWIG_AsVal_bool(obj, (bool*)0); | |
15afbcd0 RD |
1624 | } |
1625 | ||
b2dc1044 RD |
1626 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
1627 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
093d3ff1 RD |
1628 | |
1629 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1630 | #define SWIG_From_long PyInt_FromLong | |
1631 | /*@@*/ | |
1632 | ||
b9d6a5f3 RD |
1633 | |
1634 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
1635 | PyObject* o2; | |
1636 | PyObject* o3; | |
1637 | ||
1638 | if (!target) { | |
1639 | target = o; | |
1640 | } else if (target == Py_None) { | |
1641 | Py_DECREF(Py_None); | |
1642 | target = o; | |
1643 | } else { | |
1644 | if (!PyTuple_Check(target)) { | |
1645 | o2 = target; | |
1646 | target = PyTuple_New(1); | |
1647 | PyTuple_SetItem(target, 0, o2); | |
1648 | } | |
1649 | o3 = PyTuple_New(1); | |
1650 | PyTuple_SetItem(o3, 0, o); | |
1651 | ||
1652 | o2 = target; | |
1653 | target = PySequence_Concat(o2, o3); | |
1654 | Py_DECREF(o2); | |
1655 | Py_DECREF(o3); | |
1656 | } | |
1657 | return target; | |
1658 | } | |
1659 | ||
1660 | ||
b2dc1044 RD |
1661 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); |
1662 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
1663 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
1664 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
1665 | |
1666 | #include <wx/checklst.h> | |
1667 | ||
d14a1e28 | 1668 | |
b2dc1044 | 1669 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
093d3ff1 | 1670 | static void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d14a1e28 RD |
1671 | if (clientData) { |
1672 | wxPyClientData* data = new wxPyClientData(clientData); | |
1673 | self->Insert(item, pos, data); | |
1674 | } else | |
1675 | self->Insert(item, pos); | |
1676 | } | |
093d3ff1 | 1677 | static PyObject *wxListBox_GetSelections(wxListBox *self){ |
d14a1e28 RD |
1678 | wxArrayInt lst; |
1679 | self->GetSelections(lst); | |
1680 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
1681 | for(size_t i=0; i<lst.GetCount(); i++) { | |
1682 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
1683 | } | |
1684 | return tup; | |
1685 | } | |
093d3ff1 | 1686 | static void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
1687 | #ifdef __WXMSW__ |
1688 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1689 | self->GetItem(item)->SetTextColour(c); | |
1690 | #endif | |
1691 | } | |
093d3ff1 | 1692 | static void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
1693 | #ifdef __WXMSW__ |
1694 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1695 | self->GetItem(item)->SetBackgroundColour(c); | |
1696 | #endif | |
1697 | } | |
093d3ff1 | 1698 | static void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
c3eb6258 RD |
1699 | #ifdef __WXMSW__ |
1700 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1701 | self->GetItem(item)->SetFont(f); | |
1702 | #endif | |
1703 | } | |
b2dc1044 | 1704 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 | 1705 | |
093d3ff1 | 1706 | SWIGINTERN int |
c32bde28 | 1707 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
15afbcd0 | 1708 | { |
c32bde28 RD |
1709 | long v = 0; |
1710 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
093d3ff1 | 1711 | SWIG_type_error("unsigned number", obj); |
15afbcd0 | 1712 | } |
c32bde28 RD |
1713 | else if (val) |
1714 | *val = (unsigned long)v; | |
1715 | return 1; | |
15afbcd0 RD |
1716 | } |
1717 | ||
1718 | ||
093d3ff1 | 1719 | SWIGINTERNSHORT unsigned long |
c32bde28 | 1720 | SWIG_As_unsigned_SS_long(PyObject* obj) |
15afbcd0 | 1721 | { |
c32bde28 RD |
1722 | unsigned long v; |
1723 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1724 | /* | |
093d3ff1 | 1725 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1726 | */ |
1727 | memset((void*)&v, 0, sizeof(unsigned long)); | |
15afbcd0 | 1728 | } |
c32bde28 RD |
1729 | return v; |
1730 | } | |
1731 | ||
1732 | ||
093d3ff1 | 1733 | SWIGINTERNSHORT int |
c32bde28 RD |
1734 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1735 | { | |
1736 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
15afbcd0 RD |
1737 | } |
1738 | ||
093d3ff1 | 1739 | static void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d14a1e28 RD |
1740 | self->AppendText(text); |
1741 | } | |
093d3ff1 | 1742 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d14a1e28 RD |
1743 | return self->GetValue().Mid(from, to - from); |
1744 | } | |
b2dc1044 RD |
1745 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
1746 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 1747 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
1748 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
1749 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
093d3ff1 RD |
1750 | static int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
1751 | static int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
1752 | static int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
d14a1e28 RD |
1753 | |
1754 | #include <wx/slider.h> | |
1755 | ||
d14a1e28 | 1756 | |
b2dc1044 | 1757 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 1758 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 1759 | |
15afbcd0 RD |
1760 | #if !wxUSE_TOGGLEBTN |
1761 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
1762 | |
1763 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
1764 | ||
1765 | class wxToggleButton : public wxControl | |
1766 | { | |
1767 | public: | |
1768 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
1769 | const wxPoint&, const wxSize&, long, | |
1770 | const wxValidator&, const wxString&) | |
39f61e25 | 1771 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1772 | |
1773 | wxToggleButton() | |
39f61e25 | 1774 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1775 | }; |
1776 | #endif | |
1777 | ||
51b83b37 | 1778 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
994141e6 | 1779 | |
093d3ff1 | 1780 | SWIGINTERNSHORT PyObject* |
c32bde28 | 1781 | SWIG_From_unsigned_SS_long(unsigned long value) |
994141e6 | 1782 | { |
15afbcd0 RD |
1783 | return (value > LONG_MAX) ? |
1784 | PyLong_FromUnsignedLong(value) | |
093d3ff1 | 1785 | : PyInt_FromLong((long)(value)); |
994141e6 RD |
1786 | } |
1787 | ||
b2dc1044 | 1788 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
093d3ff1 | 1789 | static PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d14a1e28 RD |
1790 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
1791 | if (udata) { | |
1792 | Py_INCREF(udata->m_obj); | |
1793 | return udata->m_obj; | |
1794 | } else { | |
1795 | Py_INCREF(Py_None); | |
1796 | return Py_None; | |
1797 | } | |
1798 | } | |
093d3ff1 | 1799 | static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d14a1e28 RD |
1800 | self->SetClientData(new wxPyUserData(clientData)); |
1801 | } | |
093d3ff1 | 1802 | 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 |
1803 | wxPyUserData* udata = NULL; |
1804 | if (clientData && clientData != Py_None) | |
1805 | udata = new wxPyUserData(clientData); | |
1806 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
1807 | shortHelp, longHelp, udata); | |
1808 | } | |
093d3ff1 | 1809 | 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 |
1810 | wxPyUserData* udata = NULL; |
1811 | if (clientData && clientData != Py_None) | |
1812 | udata = new wxPyUserData(clientData); | |
1813 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
1814 | shortHelp, longHelp, udata); | |
1815 | } | |
093d3ff1 | 1816 | static PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d14a1e28 RD |
1817 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
1818 | if (udata) { | |
1819 | Py_INCREF(udata->m_obj); | |
1820 | return udata->m_obj; | |
1821 | } else { | |
1822 | Py_INCREF(Py_None); | |
1823 | return Py_None; | |
1824 | } | |
1825 | } | |
093d3ff1 | 1826 | static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d14a1e28 RD |
1827 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
1828 | } | |
1829 | ||
1830 | #include <wx/listctrl.h> | |
1831 | ||
7557b9b5 | 1832 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
093d3ff1 | 1833 | static void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d14a1e28 RD |
1834 | // Python aware sorting function for wxPyListCtrl |
1835 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
1836 | int retval = 0; | |
1837 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 1838 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1839 | |
1840 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
1841 | PyObject* result = PyEval_CallObject(func, args); | |
1842 | Py_DECREF(args); | |
1843 | if (result) { | |
1844 | retval = PyInt_AsLong(result); | |
1845 | Py_DECREF(result); | |
1846 | } | |
1847 | ||
4f89f6a3 | 1848 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1849 | return retval; |
1850 | } | |
1851 | ||
1852 | // C++ Version of a Python aware class | |
1853 | class wxPyListCtrl : public wxListCtrl { | |
1854 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
1855 | public: | |
1856 | wxPyListCtrl() : wxListCtrl() {} | |
1857 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
1858 | const wxPoint& pos, | |
1859 | const wxSize& size, | |
1860 | long style, | |
1861 | const wxValidator& validator, | |
1862 | const wxString& name) : | |
1863 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
1864 | ||
1865 | bool Create(wxWindow* parent, wxWindowID id, | |
1866 | const wxPoint& pos, | |
1867 | const wxSize& size, | |
1868 | long style, | |
1869 | const wxValidator& validator, | |
1870 | const wxString& name) { | |
1871 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
1872 | } | |
1873 | ||
1874 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d14a1e28 RD |
1875 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
1876 | ||
84f85550 RD |
1877 | // use the virtual version to avoid a confusing assert in the base class |
1878 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
1879 | ||
d14a1e28 RD |
1880 | PYPRIVATE; |
1881 | }; | |
1882 | ||
1883 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
1884 | ||
1885 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d14a1e28 | 1886 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 RD |
1887 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
1888 | ||
d14a1e28 | 1889 | |
093d3ff1 | 1890 | static wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d14a1e28 RD |
1891 | wxListItem item; |
1892 | item.SetMask( wxLIST_MASK_STATE | | |
1893 | wxLIST_MASK_TEXT | | |
1894 | wxLIST_MASK_IMAGE | | |
1895 | wxLIST_MASK_DATA | | |
1896 | wxLIST_SET_ITEM | | |
1897 | wxLIST_MASK_WIDTH | | |
1898 | wxLIST_MASK_FORMAT | |
1899 | ); | |
1900 | if (self->GetColumn(col, item)) | |
1901 | return new wxListItem(item); | |
1902 | else | |
1903 | return NULL; | |
1904 | } | |
093d3ff1 | 1905 | static wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d14a1e28 RD |
1906 | wxListItem* info = new wxListItem; |
1907 | info->m_itemId = itemId; | |
1908 | info->m_col = col; | |
1909 | info->m_mask = 0xFFFF; | |
1910 | self->GetItem(*info); | |
1911 | return info; | |
1912 | } | |
093d3ff1 | 1913 | static wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d14a1e28 RD |
1914 | wxPoint pos; |
1915 | self->GetItemPosition(item, pos); | |
1916 | return pos; | |
1917 | } | |
093d3ff1 | 1918 | static wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d14a1e28 RD |
1919 | wxRect rect; |
1920 | self->GetItemRect(item, rect, code); | |
1921 | return rect; | |
1922 | } | |
c32bde28 | 1923 | |
093d3ff1 | 1924 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d14a1e28 | 1925 | if (!PyCallable_Check(func)) |
ae8162c8 | 1926 | return false; |
d14a1e28 RD |
1927 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
1928 | } | |
093d3ff1 | 1929 | static wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d14a1e28 RD |
1930 | |
1931 | ||
1932 | ||
1933 | return (wxWindow*)self->m_mainWin; | |
1934 | ||
1935 | } | |
1936 | ||
1937 | #include <wx/treectrl.h> | |
1938 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 1939 | |
33b885b9 | 1940 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
093d3ff1 RD |
1941 | static bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
1942 | static bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
1943 | static void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
d14a1e28 RD |
1944 | // C++ version of Python aware wxTreeCtrl |
1945 | class wxPyTreeCtrl : public wxTreeCtrl { | |
1946 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
1947 | public: | |
1948 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
1949 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
1950 | const wxPoint& pos, | |
1951 | const wxSize& size, | |
1952 | long style, | |
1953 | const wxValidator& validator, | |
1954 | const wxString& name) : | |
1955 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
1956 | ||
1957 | bool Create(wxWindow *parent, wxWindowID id, | |
1958 | const wxPoint& pos, | |
1959 | const wxSize& size, | |
1960 | long style, | |
1961 | const wxValidator& validator, | |
1962 | const wxString& name) { | |
1963 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
1964 | } | |
1965 | ||
1966 | ||
1967 | int OnCompareItems(const wxTreeItemId& item1, | |
1968 | const wxTreeItemId& item2) { | |
1969 | int rval = 0; | |
1970 | bool found; | |
5a446332 | 1971 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 1972 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
1973 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
1974 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
1975 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
1976 | Py_DECREF(o1); | |
1977 | Py_DECREF(o2); | |
1978 | } | |
4f89f6a3 | 1979 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1980 | if (! found) |
1981 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
1982 | return rval; | |
1983 | } | |
1984 | PYPRIVATE; | |
1985 | }; | |
1986 | ||
1987 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
1988 | ||
1989 | ||
994141e6 | 1990 | |
15afbcd0 | 1991 | #if UINT_MAX < LONG_MAX |
093d3ff1 | 1992 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
1993 | #define SWIG_From_unsigned_SS_int SWIG_From_long |
1994 | /*@@*/ | |
15afbcd0 | 1995 | #else |
093d3ff1 | 1996 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ |
c32bde28 RD |
1997 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long |
1998 | /*@@*/ | |
15afbcd0 RD |
1999 | #endif |
2000 | ||
2001 | ||
093d3ff1 | 2002 | SWIGINTERNSHORT int |
c32bde28 RD |
2003 | SWIG_CheckUnsignedLongInRange(unsigned long value, |
2004 | unsigned long max_value, | |
2005 | const char *errmsg) | |
15afbcd0 | 2006 | { |
c32bde28 RD |
2007 | if (value > max_value) { |
2008 | if (errmsg) { | |
2009 | PyErr_Format(PyExc_OverflowError, | |
093d3ff1 | 2010 | "value %lu is greater than '%s' minimum %lu", |
c32bde28 | 2011 | value, errmsg, max_value); |
15afbcd0 | 2012 | } |
c32bde28 | 2013 | return 0; |
15afbcd0 | 2014 | } |
c32bde28 RD |
2015 | return 1; |
2016 | } | |
994141e6 RD |
2017 | |
2018 | ||
15afbcd0 | 2019 | #if UINT_MAX != ULONG_MAX |
093d3ff1 | 2020 | SWIGINTERN int |
c32bde28 | 2021 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
994141e6 | 2022 | { |
093d3ff1 | 2023 | const char* errmsg = val ? "unsigned int" : (char*)0; |
c32bde28 RD |
2024 | unsigned long v; |
2025 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2026 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
093d3ff1 | 2027 | if (val) *val = (unsigned int)(v); |
c32bde28 RD |
2028 | return 1; |
2029 | } | |
2030 | } else { | |
2031 | PyErr_Clear(); | |
2032 | } | |
2033 | if (val) { | |
093d3ff1 | 2034 | SWIG_type_error(errmsg, obj); |
c32bde28 RD |
2035 | } |
2036 | return 0; | |
15afbcd0 RD |
2037 | } |
2038 | #else | |
093d3ff1 | 2039 | SWIGINTERNSHORT unsigned int |
c32bde28 RD |
2040 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) |
2041 | { | |
2042 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2043 | } | |
15afbcd0 RD |
2044 | #endif |
2045 | ||
2046 | ||
093d3ff1 | 2047 | SWIGINTERNSHORT unsigned int |
c32bde28 | 2048 | SWIG_As_unsigned_SS_int(PyObject* obj) |
15afbcd0 | 2049 | { |
c32bde28 RD |
2050 | unsigned int v; |
2051 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2052 | /* | |
093d3ff1 | 2053 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
2054 | */ |
2055 | memset((void*)&v, 0, sizeof(unsigned int)); | |
15afbcd0 | 2056 | } |
c32bde28 RD |
2057 | return v; |
2058 | } | |
2059 | ||
2060 | ||
093d3ff1 | 2061 | SWIGINTERNSHORT int |
c32bde28 RD |
2062 | SWIG_Check_unsigned_SS_int(PyObject* obj) |
2063 | { | |
2064 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
994141e6 RD |
2065 | } |
2066 | ||
093d3ff1 | 2067 | static wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
2068 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2069 | if (data == NULL) { | |
2070 | data = new wxPyTreeItemData(); | |
2071 | data->SetId(item); // set the id | |
2072 | self->SetItemData(item, data); | |
2073 | } | |
2074 | return data; | |
2075 | } | |
093d3ff1 | 2076 | static PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
2077 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2078 | if (data == NULL) { | |
2079 | data = new wxPyTreeItemData(); | |
2080 | data->SetId(item); // set the id | |
2081 | self->SetItemData(item, data); | |
2082 | } | |
2083 | return data->GetData(); | |
2084 | } | |
093d3ff1 | 2085 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d14a1e28 RD |
2086 | data->SetId(item); // set the id |
2087 | self->SetItemData(item, data); | |
2088 | } | |
093d3ff1 | 2089 | static void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d14a1e28 RD |
2090 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2091 | if (data == NULL) { | |
2092 | data = new wxPyTreeItemData(obj); | |
2093 | data->SetId(item); // set the id | |
2094 | self->SetItemData(item, data); | |
2095 | } else | |
2096 | data->SetData(obj); | |
2097 | } | |
093d3ff1 | 2098 | static PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 2099 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2100 | PyObject* rval = PyList_New(0); |
2101 | wxArrayTreeItemIds array; | |
2102 | size_t num, x; | |
2103 | num = self->GetSelections(array); | |
2104 | for (x=0; x < num; x++) { | |
2105 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 2106 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 2107 | PyList_Append(rval, item); |
1a10c483 | 2108 | Py_DECREF(item); |
d14a1e28 | 2109 | } |
4f89f6a3 | 2110 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2111 | return rval; |
2112 | } | |
093d3ff1 | 2113 | static PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
58203fa6 RD |
2114 | void* cookie = 0; |
2115 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 2116 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2117 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 2118 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 2119 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 2120 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2121 | return tup; |
2122 | } | |
093d3ff1 | 2123 | static PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
58203fa6 | 2124 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 2125 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2126 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 2127 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 2128 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 2129 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2130 | return tup; |
2131 | } | |
093d3ff1 | 2132 | static PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d14a1e28 RD |
2133 | wxRect rect; |
2134 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 2135 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2136 | wxRect* r = new wxRect(rect); |
ae8162c8 | 2137 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 2138 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2139 | return val; |
2140 | } | |
2141 | else | |
2142 | RETURN_NONE(); | |
2143 | } | |
b2dc1044 | 2144 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 | 2145 | |
093d3ff1 | 2146 | SWIGINTERNSHORT PyObject* |
c32bde28 RD |
2147 | SWIG_From_bool(bool value) |
2148 | { | |
2149 | PyObject *obj = value ? Py_True : Py_False; | |
2150 | Py_INCREF(obj); | |
2151 | return obj; | |
2152 | } | |
2153 | ||
2154 | ||
d14a1e28 RD |
2155 | // C++ version of Python aware wxControl |
2156 | class wxPyControl : public wxControl | |
2157 | { | |
2158 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
2159 | public: | |
2160 | wxPyControl() : wxControl() {} | |
2161 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
2162 | const wxPoint& pos = wxDefaultPosition, | |
2163 | const wxSize& size = wxDefaultSize, | |
2164 | long style = 0, | |
2165 | const wxValidator& validator=wxDefaultValidator, | |
2166 | const wxString& name = wxPyControlNameStr) | |
2167 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
2168 | ||
db3e571a | 2169 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 RD |
2170 | |
2171 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
2172 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
2173 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
2174 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
2175 | ||
2176 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
2177 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
2178 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
2179 | ||
2180 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
2181 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
2182 | ||
2183 | DEC_PYCALLBACK__(InitDialog); | |
2184 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
2185 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
2186 | DEC_PYCALLBACK_BOOL_(Validate); | |
2187 | ||
2188 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
2189 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
2190 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
2191 | ||
2192 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
2193 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
2194 | ||
db3e571a | 2195 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 2196 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 2197 | |
51b83b37 RD |
2198 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
2199 | ||
d14a1e28 RD |
2200 | PYPRIVATE; |
2201 | }; | |
2202 | ||
2203 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
2204 | ||
2205 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
2206 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
2207 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
2208 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
2209 | ||
2210 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
2211 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
2212 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
2213 | ||
2214 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
2215 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
2216 | ||
2217 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
2218 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
2219 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
2220 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
2221 | ||
2222 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
2223 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
2224 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
2225 | ||
2226 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
2227 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
2228 | ||
db3e571a | 2229 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
db3e571a | 2230 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 | 2231 | |
51b83b37 RD |
2232 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
2233 | ||
d14a1e28 RD |
2234 | |
2235 | ||
093d3ff1 | 2236 | static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
e811c8ce RD |
2237 | |
2238 | #include <wx/generic/dragimgg.h> | |
2239 | ||
53aa7709 RD |
2240 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
2241 | static wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ | |
2242 | wxDateTime rv; | |
2243 | self->GetRange(&rv, NULL); | |
2244 | return rv; | |
2245 | } | |
2246 | static wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ | |
2247 | wxDateTime rv; | |
2248 | self->GetRange(NULL, &rv); | |
2249 | return rv; | |
2250 | } | |
d14a1e28 RD |
2251 | #ifdef __cplusplus |
2252 | extern "C" { | |
2253 | #endif | |
c32bde28 | 2254 | static int _wrap_ButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
2255 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
2256 | return 1; | |
2257 | } | |
2258 | ||
2259 | ||
093d3ff1 | 2260 | static PyObject *_wrap_ButtonNameStr_get(void) { |
b2dc1044 RD |
2261 | PyObject *pyobj; |
2262 | ||
2263 | { | |
2264 | #if wxUSE_UNICODE | |
2265 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2266 | #else | |
2267 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2268 | #endif | |
2269 | } | |
2270 | return pyobj; | |
2271 | } | |
2272 | ||
2273 | ||
c32bde28 | 2274 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2275 | PyObject *resultobj; |
2276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
2277 | int arg2 = (int) -1 ; |
2278 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2279 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
2280 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2281 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2282 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2283 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2284 | long arg6 = (long) 0 ; | |
2285 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2286 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2287 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2288 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2289 | wxButton *result; | |
ae8162c8 | 2290 | bool temp3 = false ; |
d14a1e28 RD |
2291 | wxPoint temp4 ; |
2292 | wxSize temp5 ; | |
ae8162c8 | 2293 | bool temp8 = false ; |
d14a1e28 | 2294 | PyObject * obj0 = 0 ; |
994141e6 | 2295 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2296 | PyObject * obj2 = 0 ; |
2297 | PyObject * obj3 = 0 ; | |
2298 | PyObject * obj4 = 0 ; | |
994141e6 | 2299 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2300 | PyObject * obj6 = 0 ; |
2301 | PyObject * obj7 = 0 ; | |
2302 | char *kwnames[] = { | |
2303 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2304 | }; | |
2305 | ||
248ed943 | 2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2309 | if (obj1) { |
093d3ff1 RD |
2310 | { |
2311 | arg2 = (int)(SWIG_As_int(obj1)); | |
2312 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2313 | } | |
248ed943 RD |
2314 | } |
2315 | if (obj2) { | |
2316 | { | |
2317 | arg3 = wxString_in_helper(obj2); | |
2318 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2319 | temp3 = true; |
248ed943 | 2320 | } |
d14a1e28 RD |
2321 | } |
2322 | if (obj3) { | |
2323 | { | |
2324 | arg4 = &temp4; | |
2325 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2326 | } | |
2327 | } | |
2328 | if (obj4) { | |
2329 | { | |
2330 | arg5 = &temp5; | |
2331 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2332 | } | |
2333 | } | |
994141e6 | 2334 | if (obj5) { |
093d3ff1 RD |
2335 | { |
2336 | arg6 = (long)(SWIG_As_long(obj5)); | |
2337 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2338 | } | |
994141e6 | 2339 | } |
d14a1e28 | 2340 | if (obj6) { |
093d3ff1 RD |
2341 | { |
2342 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2343 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2344 | if (arg7 == NULL) { | |
2345 | SWIG_null_ref("wxValidator"); | |
2346 | } | |
2347 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
2348 | } |
2349 | } | |
2350 | if (obj7) { | |
2351 | { | |
2352 | arg8 = wxString_in_helper(obj7); | |
2353 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2354 | temp8 = true; |
d14a1e28 RD |
2355 | } |
2356 | } | |
2357 | { | |
e3b71cb8 | 2358 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2360 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2361 | ||
2362 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2363 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2364 | } |
b0f7404b | 2365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
2366 | { |
2367 | if (temp3) | |
2368 | delete arg3; | |
2369 | } | |
2370 | { | |
2371 | if (temp8) | |
2372 | delete arg8; | |
2373 | } | |
2374 | return resultobj; | |
2375 | fail: | |
2376 | { | |
2377 | if (temp3) | |
2378 | delete arg3; | |
2379 | } | |
2380 | { | |
2381 | if (temp8) | |
2382 | delete arg8; | |
2383 | } | |
2384 | return NULL; | |
2385 | } | |
2386 | ||
2387 | ||
c32bde28 | 2388 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2389 | PyObject *resultobj; |
2390 | wxButton *result; | |
2391 | char *kwnames[] = { | |
2392 | NULL | |
2393 | }; | |
2394 | ||
2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
2396 | { | |
e3b71cb8 | 2397 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2399 | result = (wxButton *)new wxButton(); | |
2400 | ||
2401 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2402 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2403 | } |
b0f7404b | 2404 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
2405 | return resultobj; |
2406 | fail: | |
2407 | return NULL; | |
2408 | } | |
2409 | ||
2410 | ||
c32bde28 | 2411 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2412 | PyObject *resultobj; |
2413 | wxButton *arg1 = (wxButton *) 0 ; | |
2414 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2415 | int arg3 = (int) -1 ; |
2416 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2417 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2418 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2419 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2420 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2421 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2422 | long arg7 = (long) 0 ; | |
2423 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2424 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2425 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2426 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2427 | bool result; | |
ae8162c8 | 2428 | bool temp4 = false ; |
d14a1e28 RD |
2429 | wxPoint temp5 ; |
2430 | wxSize temp6 ; | |
ae8162c8 | 2431 | bool temp9 = false ; |
d14a1e28 RD |
2432 | PyObject * obj0 = 0 ; |
2433 | PyObject * obj1 = 0 ; | |
994141e6 | 2434 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2435 | PyObject * obj3 = 0 ; |
2436 | PyObject * obj4 = 0 ; | |
2437 | PyObject * obj5 = 0 ; | |
994141e6 | 2438 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2439 | PyObject * obj7 = 0 ; |
2440 | PyObject * obj8 = 0 ; | |
2441 | char *kwnames[] = { | |
2442 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2443 | }; | |
2444 | ||
248ed943 | 2445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
2446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2448 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2449 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 2450 | if (obj2) { |
093d3ff1 RD |
2451 | { |
2452 | arg3 = (int)(SWIG_As_int(obj2)); | |
2453 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2454 | } | |
248ed943 RD |
2455 | } |
2456 | if (obj3) { | |
2457 | { | |
2458 | arg4 = wxString_in_helper(obj3); | |
2459 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2460 | temp4 = true; |
248ed943 | 2461 | } |
d14a1e28 RD |
2462 | } |
2463 | if (obj4) { | |
2464 | { | |
2465 | arg5 = &temp5; | |
2466 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2467 | } | |
2468 | } | |
2469 | if (obj5) { | |
2470 | { | |
2471 | arg6 = &temp6; | |
2472 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2473 | } | |
2474 | } | |
994141e6 | 2475 | if (obj6) { |
093d3ff1 RD |
2476 | { |
2477 | arg7 = (long)(SWIG_As_long(obj6)); | |
2478 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2479 | } | |
994141e6 | 2480 | } |
d14a1e28 | 2481 | if (obj7) { |
093d3ff1 RD |
2482 | { |
2483 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2484 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2485 | if (arg8 == NULL) { | |
2486 | SWIG_null_ref("wxValidator"); | |
2487 | } | |
2488 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
2489 | } |
2490 | } | |
2491 | if (obj8) { | |
2492 | { | |
2493 | arg9 = wxString_in_helper(obj8); | |
2494 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2495 | temp9 = true; |
d14a1e28 RD |
2496 | } |
2497 | } | |
2498 | { | |
2499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2500 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2501 | ||
2502 | wxPyEndAllowThreads(__tstate); | |
2503 | if (PyErr_Occurred()) SWIG_fail; | |
2504 | } | |
4f89f6a3 RD |
2505 | { |
2506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2507 | } | |
d14a1e28 RD |
2508 | { |
2509 | if (temp4) | |
2510 | delete arg4; | |
2511 | } | |
2512 | { | |
2513 | if (temp9) | |
2514 | delete arg9; | |
2515 | } | |
2516 | return resultobj; | |
2517 | fail: | |
2518 | { | |
2519 | if (temp4) | |
2520 | delete arg4; | |
2521 | } | |
2522 | { | |
2523 | if (temp9) | |
2524 | delete arg9; | |
2525 | } | |
2526 | return NULL; | |
2527 | } | |
2528 | ||
2529 | ||
c32bde28 | 2530 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2531 | PyObject *resultobj; |
2532 | wxButton *arg1 = (wxButton *) 0 ; | |
2533 | PyObject * obj0 = 0 ; | |
2534 | char *kwnames[] = { | |
2535 | (char *) "self", NULL | |
2536 | }; | |
2537 | ||
2538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2541 | { |
2542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2543 | (arg1)->SetDefault(); | |
2544 | ||
2545 | wxPyEndAllowThreads(__tstate); | |
2546 | if (PyErr_Occurred()) SWIG_fail; | |
2547 | } | |
2548 | Py_INCREF(Py_None); resultobj = Py_None; | |
2549 | return resultobj; | |
2550 | fail: | |
2551 | return NULL; | |
2552 | } | |
2553 | ||
2554 | ||
c32bde28 | 2555 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2556 | PyObject *resultobj; |
2557 | wxSize result; | |
2558 | char *kwnames[] = { | |
2559 | NULL | |
2560 | }; | |
2561 | ||
2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
2563 | { | |
2564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2565 | result = wxButton::GetDefaultSize(); | |
2566 | ||
2567 | wxPyEndAllowThreads(__tstate); | |
2568 | if (PyErr_Occurred()) SWIG_fail; | |
2569 | } | |
2570 | { | |
2571 | wxSize * resultptr; | |
093d3ff1 | 2572 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 2573 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2574 | } |
2575 | return resultobj; | |
2576 | fail: | |
2577 | return NULL; | |
2578 | } | |
2579 | ||
2580 | ||
c32bde28 | 2581 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 2582 | PyObject *resultobj; |
093d3ff1 | 2583 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
2584 | wxVisualAttributes result; |
2585 | PyObject * obj0 = 0 ; | |
2586 | char *kwnames[] = { | |
2587 | (char *) "variant", NULL | |
2588 | }; | |
2589 | ||
2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2591 | if (obj0) { | |
093d3ff1 RD |
2592 | { |
2593 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
2594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2595 | } | |
22bfe96c RD |
2596 | } |
2597 | { | |
110da5b0 | 2598 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2600 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2601 | ||
2602 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2603 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2604 | } |
2605 | { | |
2606 | wxVisualAttributes * resultptr; | |
093d3ff1 | 2607 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
2608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
2609 | } | |
2610 | return resultobj; | |
2611 | fail: | |
2612 | return NULL; | |
2613 | } | |
2614 | ||
2615 | ||
c32bde28 | 2616 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2617 | PyObject *obj; |
2618 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2619 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
2620 | Py_INCREF(obj); | |
2621 | return Py_BuildValue((char *)""); | |
2622 | } | |
c32bde28 | 2623 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2624 | PyObject *resultobj; |
2625 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
2626 | int arg2 = (int) -1 ; |
2627 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
2628 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
2629 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2630 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2631 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2632 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2633 | long arg6 = (long) wxBU_AUTODRAW ; | |
2634 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2635 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2636 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2637 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2638 | wxBitmapButton *result; | |
2639 | wxPoint temp4 ; | |
2640 | wxSize temp5 ; | |
ae8162c8 | 2641 | bool temp8 = false ; |
d14a1e28 | 2642 | PyObject * obj0 = 0 ; |
994141e6 | 2643 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2644 | PyObject * obj2 = 0 ; |
2645 | PyObject * obj3 = 0 ; | |
2646 | PyObject * obj4 = 0 ; | |
994141e6 | 2647 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2648 | PyObject * obj6 = 0 ; |
2649 | PyObject * obj7 = 0 ; | |
2650 | char *kwnames[] = { | |
2651 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2652 | }; | |
2653 | ||
248ed943 | 2654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2655 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2656 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2657 | if (obj1) { |
093d3ff1 RD |
2658 | { |
2659 | arg2 = (int)(SWIG_As_int(obj1)); | |
2660 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2661 | } | |
248ed943 RD |
2662 | } |
2663 | if (obj2) { | |
093d3ff1 RD |
2664 | { |
2665 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2666 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2667 | if (arg3 == NULL) { | |
2668 | SWIG_null_ref("wxBitmap"); | |
2669 | } | |
2670 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 2671 | } |
d14a1e28 RD |
2672 | } |
2673 | if (obj3) { | |
2674 | { | |
2675 | arg4 = &temp4; | |
2676 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2677 | } | |
2678 | } | |
2679 | if (obj4) { | |
2680 | { | |
2681 | arg5 = &temp5; | |
2682 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2683 | } | |
2684 | } | |
994141e6 | 2685 | if (obj5) { |
093d3ff1 RD |
2686 | { |
2687 | arg6 = (long)(SWIG_As_long(obj5)); | |
2688 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2689 | } | |
994141e6 | 2690 | } |
d14a1e28 | 2691 | if (obj6) { |
093d3ff1 RD |
2692 | { |
2693 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2694 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2695 | if (arg7 == NULL) { | |
2696 | SWIG_null_ref("wxValidator"); | |
2697 | } | |
2698 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
2699 | } |
2700 | } | |
2701 | if (obj7) { | |
2702 | { | |
2703 | arg8 = wxString_in_helper(obj7); | |
2704 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2705 | temp8 = true; |
d14a1e28 RD |
2706 | } |
2707 | } | |
2708 | { | |
e3b71cb8 | 2709 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2711 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2712 | ||
2713 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2714 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2715 | } |
b0f7404b | 2716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
2717 | { |
2718 | if (temp8) | |
2719 | delete arg8; | |
2720 | } | |
2721 | return resultobj; | |
2722 | fail: | |
2723 | { | |
2724 | if (temp8) | |
2725 | delete arg8; | |
2726 | } | |
2727 | return NULL; | |
2728 | } | |
2729 | ||
2730 | ||
c32bde28 | 2731 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2732 | PyObject *resultobj; |
2733 | wxBitmapButton *result; | |
2734 | char *kwnames[] = { | |
2735 | NULL | |
2736 | }; | |
2737 | ||
2738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
2739 | { | |
e3b71cb8 | 2740 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2742 | result = (wxBitmapButton *)new wxBitmapButton(); | |
2743 | ||
2744 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2745 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2746 | } |
b0f7404b | 2747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
2748 | return resultobj; |
2749 | fail: | |
2750 | return NULL; | |
2751 | } | |
2752 | ||
2753 | ||
c32bde28 | 2754 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2755 | PyObject *resultobj; |
2756 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2757 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2758 | int arg3 = (int) -1 ; |
2759 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
2760 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
2761 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2762 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2763 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2764 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2765 | long arg7 = (long) wxBU_AUTODRAW ; | |
2766 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2767 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2768 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2769 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2770 | bool result; | |
2771 | wxPoint temp5 ; | |
2772 | wxSize temp6 ; | |
ae8162c8 | 2773 | bool temp9 = false ; |
d14a1e28 RD |
2774 | PyObject * obj0 = 0 ; |
2775 | PyObject * obj1 = 0 ; | |
994141e6 | 2776 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2777 | PyObject * obj3 = 0 ; |
2778 | PyObject * obj4 = 0 ; | |
2779 | PyObject * obj5 = 0 ; | |
994141e6 | 2780 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2781 | PyObject * obj7 = 0 ; |
2782 | PyObject * obj8 = 0 ; | |
2783 | char *kwnames[] = { | |
2784 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2785 | }; | |
2786 | ||
248ed943 | 2787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
2788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2790 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2791 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 2792 | if (obj2) { |
093d3ff1 RD |
2793 | { |
2794 | arg3 = (int)(SWIG_As_int(obj2)); | |
2795 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2796 | } | |
248ed943 RD |
2797 | } |
2798 | if (obj3) { | |
093d3ff1 RD |
2799 | { |
2800 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2801 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2802 | if (arg4 == NULL) { | |
2803 | SWIG_null_ref("wxBitmap"); | |
2804 | } | |
2805 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 2806 | } |
d14a1e28 RD |
2807 | } |
2808 | if (obj4) { | |
2809 | { | |
2810 | arg5 = &temp5; | |
2811 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2812 | } | |
2813 | } | |
2814 | if (obj5) { | |
2815 | { | |
2816 | arg6 = &temp6; | |
2817 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2818 | } | |
2819 | } | |
994141e6 | 2820 | if (obj6) { |
093d3ff1 RD |
2821 | { |
2822 | arg7 = (long)(SWIG_As_long(obj6)); | |
2823 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2824 | } | |
994141e6 | 2825 | } |
d14a1e28 | 2826 | if (obj7) { |
093d3ff1 RD |
2827 | { |
2828 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2829 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2830 | if (arg8 == NULL) { | |
2831 | SWIG_null_ref("wxValidator"); | |
2832 | } | |
2833 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
2834 | } |
2835 | } | |
2836 | if (obj8) { | |
2837 | { | |
2838 | arg9 = wxString_in_helper(obj8); | |
2839 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2840 | temp9 = true; |
d14a1e28 RD |
2841 | } |
2842 | } | |
2843 | { | |
2844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2845 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2846 | ||
2847 | wxPyEndAllowThreads(__tstate); | |
2848 | if (PyErr_Occurred()) SWIG_fail; | |
2849 | } | |
4f89f6a3 RD |
2850 | { |
2851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2852 | } | |
d14a1e28 RD |
2853 | { |
2854 | if (temp9) | |
2855 | delete arg9; | |
2856 | } | |
2857 | return resultobj; | |
2858 | fail: | |
2859 | { | |
2860 | if (temp9) | |
2861 | delete arg9; | |
2862 | } | |
2863 | return NULL; | |
2864 | } | |
2865 | ||
2866 | ||
c32bde28 | 2867 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2868 | PyObject *resultobj; |
2869 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2870 | wxBitmap result; | |
2871 | PyObject * obj0 = 0 ; | |
2872 | char *kwnames[] = { | |
2873 | (char *) "self", NULL | |
2874 | }; | |
2875 | ||
2876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2879 | { |
2880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2881 | result = (arg1)->GetBitmapLabel(); | |
2882 | ||
2883 | wxPyEndAllowThreads(__tstate); | |
2884 | if (PyErr_Occurred()) SWIG_fail; | |
2885 | } | |
2886 | { | |
2887 | wxBitmap * resultptr; | |
093d3ff1 | 2888 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 2889 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2890 | } |
2891 | return resultobj; | |
2892 | fail: | |
2893 | return NULL; | |
2894 | } | |
2895 | ||
2896 | ||
c32bde28 | 2897 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2898 | PyObject *resultobj; |
2899 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2900 | wxBitmap result; | |
2901 | PyObject * obj0 = 0 ; | |
2902 | char *kwnames[] = { | |
2903 | (char *) "self", NULL | |
2904 | }; | |
2905 | ||
2906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2909 | { |
2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2911 | result = (arg1)->GetBitmapDisabled(); | |
2912 | ||
2913 | wxPyEndAllowThreads(__tstate); | |
2914 | if (PyErr_Occurred()) SWIG_fail; | |
2915 | } | |
2916 | { | |
2917 | wxBitmap * resultptr; | |
093d3ff1 | 2918 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 2919 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2920 | } |
2921 | return resultobj; | |
2922 | fail: | |
2923 | return NULL; | |
2924 | } | |
2925 | ||
2926 | ||
c32bde28 | 2927 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2928 | PyObject *resultobj; |
2929 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2930 | wxBitmap result; | |
2931 | PyObject * obj0 = 0 ; | |
2932 | char *kwnames[] = { | |
2933 | (char *) "self", NULL | |
2934 | }; | |
2935 | ||
2936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2939 | { |
2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2941 | result = (arg1)->GetBitmapFocus(); | |
2942 | ||
2943 | wxPyEndAllowThreads(__tstate); | |
2944 | if (PyErr_Occurred()) SWIG_fail; | |
2945 | } | |
2946 | { | |
2947 | wxBitmap * resultptr; | |
093d3ff1 | 2948 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 2949 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2950 | } |
2951 | return resultobj; | |
2952 | fail: | |
2953 | return NULL; | |
2954 | } | |
2955 | ||
2956 | ||
c32bde28 | 2957 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2958 | PyObject *resultobj; |
2959 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2960 | wxBitmap result; | |
2961 | PyObject * obj0 = 0 ; | |
2962 | char *kwnames[] = { | |
2963 | (char *) "self", NULL | |
2964 | }; | |
2965 | ||
2966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2969 | { |
2970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2971 | result = (arg1)->GetBitmapSelected(); | |
2972 | ||
2973 | wxPyEndAllowThreads(__tstate); | |
2974 | if (PyErr_Occurred()) SWIG_fail; | |
2975 | } | |
2976 | { | |
2977 | wxBitmap * resultptr; | |
093d3ff1 | 2978 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 2979 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2980 | } |
2981 | return resultobj; | |
2982 | fail: | |
2983 | return NULL; | |
2984 | } | |
2985 | ||
2986 | ||
c32bde28 | 2987 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2988 | PyObject *resultobj; |
2989 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2990 | wxBitmap *arg2 = 0 ; | |
2991 | PyObject * obj0 = 0 ; | |
2992 | PyObject * obj1 = 0 ; | |
2993 | char *kwnames[] = { | |
2994 | (char *) "self",(char *) "bitmap", NULL | |
2995 | }; | |
2996 | ||
2997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
2998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3000 | { | |
3001 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3003 | if (arg2 == NULL) { | |
3004 | SWIG_null_ref("wxBitmap"); | |
3005 | } | |
3006 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3007 | } |
3008 | { | |
3009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3010 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
3011 | ||
3012 | wxPyEndAllowThreads(__tstate); | |
3013 | if (PyErr_Occurred()) SWIG_fail; | |
3014 | } | |
3015 | Py_INCREF(Py_None); resultobj = Py_None; | |
3016 | return resultobj; | |
3017 | fail: | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | ||
c32bde28 | 3022 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3023 | PyObject *resultobj; |
3024 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3025 | wxBitmap *arg2 = 0 ; | |
3026 | PyObject * obj0 = 0 ; | |
3027 | PyObject * obj1 = 0 ; | |
3028 | char *kwnames[] = { | |
3029 | (char *) "self",(char *) "bitmap", NULL | |
3030 | }; | |
3031 | ||
3032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3035 | { | |
3036 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3038 | if (arg2 == NULL) { | |
3039 | SWIG_null_ref("wxBitmap"); | |
3040 | } | |
3041 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3042 | } |
3043 | { | |
3044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3045 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
3046 | ||
3047 | wxPyEndAllowThreads(__tstate); | |
3048 | if (PyErr_Occurred()) SWIG_fail; | |
3049 | } | |
3050 | Py_INCREF(Py_None); resultobj = Py_None; | |
3051 | return resultobj; | |
3052 | fail: | |
3053 | return NULL; | |
3054 | } | |
3055 | ||
3056 | ||
c32bde28 | 3057 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3058 | PyObject *resultobj; |
3059 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3060 | wxBitmap *arg2 = 0 ; | |
3061 | PyObject * obj0 = 0 ; | |
3062 | PyObject * obj1 = 0 ; | |
3063 | char *kwnames[] = { | |
3064 | (char *) "self",(char *) "bitmap", NULL | |
3065 | }; | |
3066 | ||
3067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3070 | { | |
3071 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3072 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3073 | if (arg2 == NULL) { | |
3074 | SWIG_null_ref("wxBitmap"); | |
3075 | } | |
3076 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3077 | } |
3078 | { | |
3079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3080 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
3081 | ||
3082 | wxPyEndAllowThreads(__tstate); | |
3083 | if (PyErr_Occurred()) SWIG_fail; | |
3084 | } | |
3085 | Py_INCREF(Py_None); resultobj = Py_None; | |
3086 | return resultobj; | |
3087 | fail: | |
3088 | return NULL; | |
3089 | } | |
3090 | ||
3091 | ||
c32bde28 | 3092 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3093 | PyObject *resultobj; |
3094 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3095 | wxBitmap *arg2 = 0 ; | |
3096 | PyObject * obj0 = 0 ; | |
3097 | PyObject * obj1 = 0 ; | |
3098 | char *kwnames[] = { | |
3099 | (char *) "self",(char *) "bitmap", NULL | |
3100 | }; | |
3101 | ||
3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3105 | { | |
3106 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3107 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3108 | if (arg2 == NULL) { | |
3109 | SWIG_null_ref("wxBitmap"); | |
3110 | } | |
3111 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3112 | } |
3113 | { | |
3114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3115 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
3116 | ||
3117 | wxPyEndAllowThreads(__tstate); | |
3118 | if (PyErr_Occurred()) SWIG_fail; | |
3119 | } | |
3120 | Py_INCREF(Py_None); resultobj = Py_None; | |
3121 | return resultobj; | |
3122 | fail: | |
3123 | return NULL; | |
3124 | } | |
3125 | ||
3126 | ||
c32bde28 | 3127 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3128 | PyObject *resultobj; |
3129 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3130 | int arg2 ; | |
3131 | int arg3 ; | |
3132 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3133 | PyObject * obj1 = 0 ; |
3134 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3135 | char *kwnames[] = { |
3136 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3137 | }; | |
3138 | ||
994141e6 | 3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
3140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3142 | { | |
3143 | arg2 = (int)(SWIG_As_int(obj1)); | |
3144 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3145 | } | |
3146 | { | |
3147 | arg3 = (int)(SWIG_As_int(obj2)); | |
3148 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3149 | } | |
d14a1e28 RD |
3150 | { |
3151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3152 | (arg1)->SetMargins(arg2,arg3); | |
3153 | ||
3154 | wxPyEndAllowThreads(__tstate); | |
3155 | if (PyErr_Occurred()) SWIG_fail; | |
3156 | } | |
3157 | Py_INCREF(Py_None); resultobj = Py_None; | |
3158 | return resultobj; | |
3159 | fail: | |
3160 | return NULL; | |
3161 | } | |
3162 | ||
3163 | ||
c32bde28 | 3164 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3165 | PyObject *resultobj; |
3166 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3167 | int result; | |
3168 | PyObject * obj0 = 0 ; | |
3169 | char *kwnames[] = { | |
3170 | (char *) "self", NULL | |
3171 | }; | |
3172 | ||
3173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3176 | { |
3177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3178 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
3179 | ||
3180 | wxPyEndAllowThreads(__tstate); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
093d3ff1 RD |
3183 | { |
3184 | resultobj = SWIG_From_int((int)(result)); | |
3185 | } | |
d14a1e28 RD |
3186 | return resultobj; |
3187 | fail: | |
3188 | return NULL; | |
3189 | } | |
3190 | ||
3191 | ||
c32bde28 | 3192 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3193 | PyObject *resultobj; |
3194 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3195 | int result; | |
3196 | PyObject * obj0 = 0 ; | |
3197 | char *kwnames[] = { | |
3198 | (char *) "self", NULL | |
3199 | }; | |
3200 | ||
3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3202 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3203 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3204 | { |
3205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3206 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
3207 | ||
3208 | wxPyEndAllowThreads(__tstate); | |
3209 | if (PyErr_Occurred()) SWIG_fail; | |
3210 | } | |
093d3ff1 RD |
3211 | { |
3212 | resultobj = SWIG_From_int((int)(result)); | |
3213 | } | |
d14a1e28 RD |
3214 | return resultobj; |
3215 | fail: | |
3216 | return NULL; | |
3217 | } | |
3218 | ||
3219 | ||
c32bde28 | 3220 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3221 | PyObject *obj; |
3222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3223 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
3224 | Py_INCREF(obj); | |
3225 | return Py_BuildValue((char *)""); | |
3226 | } | |
c32bde28 | 3227 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
3228 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
3229 | return 1; | |
3230 | } | |
3231 | ||
3232 | ||
093d3ff1 | 3233 | static PyObject *_wrap_CheckBoxNameStr_get(void) { |
b2dc1044 RD |
3234 | PyObject *pyobj; |
3235 | ||
3236 | { | |
3237 | #if wxUSE_UNICODE | |
3238 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3239 | #else | |
3240 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3241 | #endif | |
3242 | } | |
3243 | return pyobj; | |
3244 | } | |
3245 | ||
3246 | ||
c32bde28 | 3247 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3248 | PyObject *resultobj; |
3249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3250 | int arg2 = (int) -1 ; |
3251 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3252 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
3253 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3254 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3255 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3256 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3257 | long arg6 = (long) 0 ; | |
3258 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3259 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3260 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
3261 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3262 | wxCheckBox *result; | |
ae8162c8 | 3263 | bool temp3 = false ; |
d14a1e28 RD |
3264 | wxPoint temp4 ; |
3265 | wxSize temp5 ; | |
ae8162c8 | 3266 | bool temp8 = false ; |
d14a1e28 | 3267 | PyObject * obj0 = 0 ; |
994141e6 | 3268 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3269 | PyObject * obj2 = 0 ; |
3270 | PyObject * obj3 = 0 ; | |
3271 | PyObject * obj4 = 0 ; | |
994141e6 | 3272 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3273 | PyObject * obj6 = 0 ; |
3274 | PyObject * obj7 = 0 ; | |
3275 | char *kwnames[] = { | |
3276 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3277 | }; | |
3278 | ||
248ed943 | 3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 3282 | if (obj1) { |
093d3ff1 RD |
3283 | { |
3284 | arg2 = (int)(SWIG_As_int(obj1)); | |
3285 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3286 | } | |
248ed943 RD |
3287 | } |
3288 | if (obj2) { | |
3289 | { | |
3290 | arg3 = wxString_in_helper(obj2); | |
3291 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3292 | temp3 = true; |
248ed943 | 3293 | } |
d14a1e28 RD |
3294 | } |
3295 | if (obj3) { | |
3296 | { | |
3297 | arg4 = &temp4; | |
3298 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3299 | } | |
3300 | } | |
3301 | if (obj4) { | |
3302 | { | |
3303 | arg5 = &temp5; | |
3304 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3305 | } | |
3306 | } | |
994141e6 | 3307 | if (obj5) { |
093d3ff1 RD |
3308 | { |
3309 | arg6 = (long)(SWIG_As_long(obj5)); | |
3310 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3311 | } | |
994141e6 | 3312 | } |
d14a1e28 | 3313 | if (obj6) { |
093d3ff1 RD |
3314 | { |
3315 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3316 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3317 | if (arg7 == NULL) { | |
3318 | SWIG_null_ref("wxValidator"); | |
3319 | } | |
3320 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
3321 | } |
3322 | } | |
3323 | if (obj7) { | |
3324 | { | |
3325 | arg8 = wxString_in_helper(obj7); | |
3326 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 3327 | temp8 = true; |
d14a1e28 RD |
3328 | } |
3329 | } | |
3330 | { | |
e3b71cb8 | 3331 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3333 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3334 | ||
3335 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3336 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3337 | } |
15afbcd0 | 3338 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
3339 | { |
3340 | if (temp3) | |
3341 | delete arg3; | |
3342 | } | |
3343 | { | |
3344 | if (temp8) | |
3345 | delete arg8; | |
3346 | } | |
3347 | return resultobj; | |
3348 | fail: | |
3349 | { | |
3350 | if (temp3) | |
3351 | delete arg3; | |
3352 | } | |
3353 | { | |
3354 | if (temp8) | |
3355 | delete arg8; | |
3356 | } | |
3357 | return NULL; | |
3358 | } | |
3359 | ||
3360 | ||
c32bde28 | 3361 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3362 | PyObject *resultobj; |
3363 | wxCheckBox *result; | |
3364 | char *kwnames[] = { | |
3365 | NULL | |
3366 | }; | |
3367 | ||
3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
3369 | { | |
e3b71cb8 | 3370 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3372 | result = (wxCheckBox *)new wxCheckBox(); | |
3373 | ||
3374 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3375 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3376 | } |
15afbcd0 | 3377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
3378 | return resultobj; |
3379 | fail: | |
3380 | return NULL; | |
3381 | } | |
3382 | ||
3383 | ||
c32bde28 | 3384 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3385 | PyObject *resultobj; |
3386 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3387 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3388 | int arg3 = (int) -1 ; |
3389 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3390 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
3391 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3392 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3393 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3394 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3395 | long arg7 = (long) 0 ; | |
3396 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3397 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3398 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
3399 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3400 | bool result; | |
ae8162c8 | 3401 | bool temp4 = false ; |
d14a1e28 RD |
3402 | wxPoint temp5 ; |
3403 | wxSize temp6 ; | |
ae8162c8 | 3404 | bool temp9 = false ; |
d14a1e28 RD |
3405 | PyObject * obj0 = 0 ; |
3406 | PyObject * obj1 = 0 ; | |
994141e6 | 3407 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3408 | PyObject * obj3 = 0 ; |
3409 | PyObject * obj4 = 0 ; | |
3410 | PyObject * obj5 = 0 ; | |
994141e6 | 3411 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3412 | PyObject * obj7 = 0 ; |
3413 | PyObject * obj8 = 0 ; | |
3414 | char *kwnames[] = { | |
3415 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3416 | }; | |
3417 | ||
248ed943 | 3418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
3419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3421 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3422 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 3423 | if (obj2) { |
093d3ff1 RD |
3424 | { |
3425 | arg3 = (int)(SWIG_As_int(obj2)); | |
3426 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3427 | } | |
248ed943 RD |
3428 | } |
3429 | if (obj3) { | |
3430 | { | |
3431 | arg4 = wxString_in_helper(obj3); | |
3432 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3433 | temp4 = true; |
248ed943 | 3434 | } |
d14a1e28 RD |
3435 | } |
3436 | if (obj4) { | |
3437 | { | |
3438 | arg5 = &temp5; | |
3439 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3440 | } | |
3441 | } | |
3442 | if (obj5) { | |
3443 | { | |
3444 | arg6 = &temp6; | |
3445 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3446 | } | |
3447 | } | |
994141e6 | 3448 | if (obj6) { |
093d3ff1 RD |
3449 | { |
3450 | arg7 = (long)(SWIG_As_long(obj6)); | |
3451 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3452 | } | |
994141e6 | 3453 | } |
d14a1e28 | 3454 | if (obj7) { |
093d3ff1 RD |
3455 | { |
3456 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3457 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3458 | if (arg8 == NULL) { | |
3459 | SWIG_null_ref("wxValidator"); | |
3460 | } | |
3461 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
3462 | } |
3463 | } | |
3464 | if (obj8) { | |
3465 | { | |
3466 | arg9 = wxString_in_helper(obj8); | |
3467 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3468 | temp9 = true; |
d14a1e28 RD |
3469 | } |
3470 | } | |
3471 | { | |
3472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3473 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3474 | ||
3475 | wxPyEndAllowThreads(__tstate); | |
3476 | if (PyErr_Occurred()) SWIG_fail; | |
3477 | } | |
4f89f6a3 RD |
3478 | { |
3479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3480 | } | |
d14a1e28 RD |
3481 | { |
3482 | if (temp4) | |
3483 | delete arg4; | |
3484 | } | |
3485 | { | |
3486 | if (temp9) | |
3487 | delete arg9; | |
3488 | } | |
3489 | return resultobj; | |
3490 | fail: | |
3491 | { | |
3492 | if (temp4) | |
3493 | delete arg4; | |
3494 | } | |
3495 | { | |
3496 | if (temp9) | |
3497 | delete arg9; | |
3498 | } | |
3499 | return NULL; | |
3500 | } | |
3501 | ||
3502 | ||
c32bde28 | 3503 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3504 | PyObject *resultobj; |
3505 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3506 | bool result; | |
3507 | PyObject * obj0 = 0 ; | |
3508 | char *kwnames[] = { | |
3509 | (char *) "self", NULL | |
3510 | }; | |
3511 | ||
3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3513 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3514 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3515 | { |
3516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3517 | result = (bool)(arg1)->GetValue(); | |
3518 | ||
3519 | wxPyEndAllowThreads(__tstate); | |
3520 | if (PyErr_Occurred()) SWIG_fail; | |
3521 | } | |
4f89f6a3 RD |
3522 | { |
3523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3524 | } | |
d14a1e28 RD |
3525 | return resultobj; |
3526 | fail: | |
3527 | return NULL; | |
3528 | } | |
3529 | ||
3530 | ||
c32bde28 | 3531 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3532 | PyObject *resultobj; |
3533 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3534 | bool result; | |
3535 | PyObject * obj0 = 0 ; | |
3536 | char *kwnames[] = { | |
3537 | (char *) "self", NULL | |
3538 | }; | |
3539 | ||
3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3543 | { |
3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3545 | result = (bool)(arg1)->IsChecked(); | |
3546 | ||
3547 | wxPyEndAllowThreads(__tstate); | |
3548 | if (PyErr_Occurred()) SWIG_fail; | |
3549 | } | |
4f89f6a3 RD |
3550 | { |
3551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3552 | } | |
d14a1e28 RD |
3553 | return resultobj; |
3554 | fail: | |
3555 | return NULL; | |
3556 | } | |
3557 | ||
3558 | ||
c32bde28 | 3559 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3560 | PyObject *resultobj; |
3561 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3562 | bool arg2 ; | |
3563 | PyObject * obj0 = 0 ; | |
3564 | PyObject * obj1 = 0 ; | |
3565 | char *kwnames[] = { | |
3566 | (char *) "self",(char *) "state", NULL | |
3567 | }; | |
3568 | ||
3569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3572 | { | |
3573 | arg2 = (bool const)(SWIG_As_bool(obj1)); | |
3574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3575 | } | |
d14a1e28 RD |
3576 | { |
3577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3578 | (arg1)->SetValue(arg2); | |
3579 | ||
3580 | wxPyEndAllowThreads(__tstate); | |
3581 | if (PyErr_Occurred()) SWIG_fail; | |
3582 | } | |
3583 | Py_INCREF(Py_None); resultobj = Py_None; | |
3584 | return resultobj; | |
3585 | fail: | |
3586 | return NULL; | |
3587 | } | |
3588 | ||
3589 | ||
c32bde28 | 3590 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3591 | PyObject *resultobj; |
3592 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
093d3ff1 | 3593 | wxCheckBoxState result; |
d14a1e28 RD |
3594 | PyObject * obj0 = 0 ; |
3595 | char *kwnames[] = { | |
3596 | (char *) "self", NULL | |
3597 | }; | |
3598 | ||
3599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3602 | { |
3603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3604 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); |
d14a1e28 RD |
3605 | |
3606 | wxPyEndAllowThreads(__tstate); | |
3607 | if (PyErr_Occurred()) SWIG_fail; | |
3608 | } | |
093d3ff1 | 3609 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
3610 | return resultobj; |
3611 | fail: | |
3612 | return NULL; | |
3613 | } | |
3614 | ||
3615 | ||
c32bde28 | 3616 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3617 | PyObject *resultobj; |
3618 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
093d3ff1 | 3619 | wxCheckBoxState arg2 ; |
d14a1e28 | 3620 | PyObject * obj0 = 0 ; |
994141e6 | 3621 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3622 | char *kwnames[] = { |
3623 | (char *) "self",(char *) "state", NULL | |
3624 | }; | |
3625 | ||
994141e6 | 3626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3629 | { | |
3630 | arg2 = (wxCheckBoxState)(SWIG_As_int(obj1)); | |
3631 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3632 | } | |
d14a1e28 RD |
3633 | { |
3634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3635 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
3636 | ||
3637 | wxPyEndAllowThreads(__tstate); | |
3638 | if (PyErr_Occurred()) SWIG_fail; | |
3639 | } | |
3640 | Py_INCREF(Py_None); resultobj = Py_None; | |
3641 | return resultobj; | |
3642 | fail: | |
3643 | return NULL; | |
3644 | } | |
3645 | ||
3646 | ||
c32bde28 | 3647 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3648 | PyObject *resultobj; |
3649 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3650 | bool result; | |
3651 | PyObject * obj0 = 0 ; | |
3652 | char *kwnames[] = { | |
3653 | (char *) "self", NULL | |
3654 | }; | |
3655 | ||
3656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3659 | { |
3660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3661 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
3662 | ||
3663 | wxPyEndAllowThreads(__tstate); | |
3664 | if (PyErr_Occurred()) SWIG_fail; | |
3665 | } | |
4f89f6a3 RD |
3666 | { |
3667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3668 | } | |
d14a1e28 RD |
3669 | return resultobj; |
3670 | fail: | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
c32bde28 | 3675 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3676 | PyObject *resultobj; |
3677 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3678 | bool result; | |
3679 | PyObject * obj0 = 0 ; | |
3680 | char *kwnames[] = { | |
3681 | (char *) "self", NULL | |
3682 | }; | |
3683 | ||
3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3687 | { |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
4f89f6a3 RD |
3694 | { |
3695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3696 | } | |
d14a1e28 RD |
3697 | return resultobj; |
3698 | fail: | |
3699 | return NULL; | |
3700 | } | |
3701 | ||
3702 | ||
c32bde28 | 3703 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 3704 | PyObject *resultobj; |
093d3ff1 | 3705 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
3706 | wxVisualAttributes result; |
3707 | PyObject * obj0 = 0 ; | |
3708 | char *kwnames[] = { | |
3709 | (char *) "variant", NULL | |
3710 | }; | |
3711 | ||
3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3713 | if (obj0) { | |
093d3ff1 RD |
3714 | { |
3715 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
3716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3717 | } | |
22bfe96c RD |
3718 | } |
3719 | { | |
110da5b0 | 3720 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3722 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3723 | ||
3724 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3725 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3726 | } |
3727 | { | |
3728 | wxVisualAttributes * resultptr; | |
093d3ff1 | 3729 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
3730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
3731 | } | |
3732 | return resultobj; | |
3733 | fail: | |
3734 | return NULL; | |
3735 | } | |
3736 | ||
3737 | ||
c32bde28 | 3738 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3739 | PyObject *obj; |
3740 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3741 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
3742 | Py_INCREF(obj); | |
3743 | return Py_BuildValue((char *)""); | |
3744 | } | |
c32bde28 | 3745 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
b2dc1044 RD |
3746 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
3747 | return 1; | |
3748 | } | |
3749 | ||
3750 | ||
093d3ff1 | 3751 | static PyObject *_wrap_ChoiceNameStr_get(void) { |
b2dc1044 RD |
3752 | PyObject *pyobj; |
3753 | ||
3754 | { | |
3755 | #if wxUSE_UNICODE | |
3756 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3757 | #else | |
3758 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3759 | #endif | |
3760 | } | |
3761 | return pyobj; | |
3762 | } | |
3763 | ||
3764 | ||
c32bde28 | 3765 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3766 | PyObject *resultobj; |
3767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 3768 | int arg2 = (int) -1 ; |
d14a1e28 RD |
3769 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3770 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3771 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3772 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
3773 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
3774 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
3775 | long arg6 = (long) 0 ; | |
3776 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3777 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3778 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
3779 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
3780 | wxChoice *result; |
3781 | wxPoint temp3 ; | |
3782 | wxSize temp4 ; | |
ae8162c8 RD |
3783 | bool temp5 = false ; |
3784 | bool temp8 = false ; | |
d14a1e28 | 3785 | PyObject * obj0 = 0 ; |
994141e6 | 3786 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3787 | PyObject * obj2 = 0 ; |
3788 | PyObject * obj3 = 0 ; | |
3789 | PyObject * obj4 = 0 ; | |
994141e6 | 3790 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3791 | PyObject * obj6 = 0 ; |
3792 | PyObject * obj7 = 0 ; | |
3793 | char *kwnames[] = { | |
3794 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3795 | }; | |
3796 | ||
a95a7133 | 3797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 3800 | if (obj1) { |
093d3ff1 RD |
3801 | { |
3802 | arg2 = (int)(SWIG_As_int(obj1)); | |
3803 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3804 | } | |
a95a7133 | 3805 | } |
d14a1e28 RD |
3806 | if (obj2) { |
3807 | { | |
3808 | arg3 = &temp3; | |
3809 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3810 | } | |
3811 | } | |
3812 | if (obj3) { | |
3813 | { | |
3814 | arg4 = &temp4; | |
3815 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3816 | } | |
3817 | } | |
3818 | if (obj4) { | |
3819 | { | |
4d5c3d91 RD |
3820 | if (! PySequence_Check(obj4)) { |
3821 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3822 | SWIG_fail; | |
3823 | } | |
3824 | arg5 = new wxArrayString; | |
ae8162c8 | 3825 | temp5 = true; |
4d5c3d91 RD |
3826 | int i, len=PySequence_Length(obj4); |
3827 | for (i=0; i<len; i++) { | |
3828 | PyObject* item = PySequence_GetItem(obj4, i); | |
3829 | #if wxUSE_UNICODE | |
3830 | PyObject* str = PyObject_Unicode(item); | |
3831 | #else | |
3832 | PyObject* str = PyObject_Str(item); | |
3833 | #endif | |
74a57fcd | 3834 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3835 | arg5->Add(Py2wxString(str)); |
3836 | Py_DECREF(item); | |
3837 | Py_DECREF(str); | |
3838 | } | |
d14a1e28 RD |
3839 | } |
3840 | } | |
994141e6 | 3841 | if (obj5) { |
093d3ff1 RD |
3842 | { |
3843 | arg6 = (long)(SWIG_As_long(obj5)); | |
3844 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3845 | } | |
994141e6 | 3846 | } |
d14a1e28 | 3847 | if (obj6) { |
093d3ff1 RD |
3848 | { |
3849 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3850 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3851 | if (arg7 == NULL) { | |
3852 | SWIG_null_ref("wxValidator"); | |
3853 | } | |
3854 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
3855 | } |
3856 | } | |
3857 | if (obj7) { | |
3858 | { | |
4d5c3d91 RD |
3859 | arg8 = wxString_in_helper(obj7); |
3860 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 3861 | temp8 = true; |
d14a1e28 RD |
3862 | } |
3863 | } | |
3864 | { | |
e3b71cb8 | 3865 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 3867 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
3868 | |
3869 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3870 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3871 | } |
15afbcd0 | 3872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 3873 | { |
3adfb63b | 3874 | if (temp5) delete arg5; |
d14a1e28 RD |
3875 | } |
3876 | { | |
3877 | if (temp8) | |
4d5c3d91 | 3878 | delete arg8; |
d14a1e28 RD |
3879 | } |
3880 | return resultobj; | |
3881 | fail: | |
3882 | { | |
3adfb63b | 3883 | if (temp5) delete arg5; |
d14a1e28 RD |
3884 | } |
3885 | { | |
3886 | if (temp8) | |
4d5c3d91 | 3887 | delete arg8; |
d14a1e28 RD |
3888 | } |
3889 | return NULL; | |
3890 | } | |
3891 | ||
3892 | ||
c32bde28 | 3893 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3894 | PyObject *resultobj; |
3895 | wxChoice *result; | |
3896 | char *kwnames[] = { | |
3897 | NULL | |
3898 | }; | |
3899 | ||
3900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
3901 | { | |
e3b71cb8 | 3902 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3904 | result = (wxChoice *)new wxChoice(); | |
3905 | ||
3906 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3907 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3908 | } |
15afbcd0 | 3909 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
3910 | return resultobj; |
3911 | fail: | |
3912 | return NULL; | |
3913 | } | |
3914 | ||
3915 | ||
c32bde28 | 3916 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3917 | PyObject *resultobj; |
3918 | wxChoice *arg1 = (wxChoice *) 0 ; | |
3919 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3920 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3921 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3922 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3923 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3924 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
3925 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
3926 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3927 | long arg7 = (long) 0 ; | |
3928 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3929 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3930 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
3931 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
3932 | bool result; |
3933 | wxPoint temp4 ; | |
3934 | wxSize temp5 ; | |
ae8162c8 RD |
3935 | bool temp6 = false ; |
3936 | bool temp9 = false ; | |
d14a1e28 RD |
3937 | PyObject * obj0 = 0 ; |
3938 | PyObject * obj1 = 0 ; | |
994141e6 | 3939 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3940 | PyObject * obj3 = 0 ; |
3941 | PyObject * obj4 = 0 ; | |
3942 | PyObject * obj5 = 0 ; | |
994141e6 | 3943 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3944 | PyObject * obj7 = 0 ; |
3945 | PyObject * obj8 = 0 ; | |
3946 | char *kwnames[] = { | |
3947 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3948 | }; | |
3949 | ||
a95a7133 | 3950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
3951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); |
3952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3953 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3954 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a95a7133 | 3955 | if (obj2) { |
093d3ff1 RD |
3956 | { |
3957 | arg3 = (int)(SWIG_As_int(obj2)); | |
3958 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3959 | } | |
a95a7133 | 3960 | } |
d14a1e28 RD |
3961 | if (obj3) { |
3962 | { | |
3963 | arg4 = &temp4; | |
3964 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3965 | } | |
3966 | } | |
3967 | if (obj4) { | |
3968 | { | |
3969 | arg5 = &temp5; | |
3970 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3971 | } | |
3972 | } | |
3973 | if (obj5) { | |
3974 | { | |
4d5c3d91 RD |
3975 | if (! PySequence_Check(obj5)) { |
3976 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3977 | SWIG_fail; | |
3978 | } | |
3979 | arg6 = new wxArrayString; | |
ae8162c8 | 3980 | temp6 = true; |
4d5c3d91 RD |
3981 | int i, len=PySequence_Length(obj5); |
3982 | for (i=0; i<len; i++) { | |
3983 | PyObject* item = PySequence_GetItem(obj5, i); | |
3984 | #if wxUSE_UNICODE | |
3985 | PyObject* str = PyObject_Unicode(item); | |
3986 | #else | |
3987 | PyObject* str = PyObject_Str(item); | |
3988 | #endif | |
74a57fcd | 3989 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3990 | arg6->Add(Py2wxString(str)); |
3991 | Py_DECREF(item); | |
3992 | Py_DECREF(str); | |
3993 | } | |
d14a1e28 RD |
3994 | } |
3995 | } | |
994141e6 | 3996 | if (obj6) { |
093d3ff1 RD |
3997 | { |
3998 | arg7 = (long)(SWIG_As_long(obj6)); | |
3999 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4000 | } | |
994141e6 | 4001 | } |
d14a1e28 | 4002 | if (obj7) { |
093d3ff1 RD |
4003 | { |
4004 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4005 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4006 | if (arg8 == NULL) { | |
4007 | SWIG_null_ref("wxValidator"); | |
4008 | } | |
4009 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
4010 | } |
4011 | } | |
4012 | if (obj8) { | |
4013 | { | |
4d5c3d91 RD |
4014 | arg9 = wxString_in_helper(obj8); |
4015 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4016 | temp9 = true; |
d14a1e28 RD |
4017 | } |
4018 | } | |
4019 | { | |
4020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4021 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
4022 | |
4023 | wxPyEndAllowThreads(__tstate); | |
4024 | if (PyErr_Occurred()) SWIG_fail; | |
4025 | } | |
4f89f6a3 RD |
4026 | { |
4027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4028 | } | |
d14a1e28 | 4029 | { |
3adfb63b | 4030 | if (temp6) delete arg6; |
d14a1e28 RD |
4031 | } |
4032 | { | |
4033 | if (temp9) | |
4d5c3d91 | 4034 | delete arg9; |
d14a1e28 RD |
4035 | } |
4036 | return resultobj; | |
4037 | fail: | |
4038 | { | |
3adfb63b | 4039 | if (temp6) delete arg6; |
d14a1e28 RD |
4040 | } |
4041 | { | |
4042 | if (temp9) | |
4d5c3d91 | 4043 | delete arg9; |
d14a1e28 RD |
4044 | } |
4045 | return NULL; | |
4046 | } | |
4047 | ||
4048 | ||
c32bde28 | 4049 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 4050 | PyObject *resultobj; |
093d3ff1 | 4051 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
4052 | wxVisualAttributes result; |
4053 | PyObject * obj0 = 0 ; | |
4054 | char *kwnames[] = { | |
4055 | (char *) "variant", NULL | |
4056 | }; | |
4057 | ||
4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4059 | if (obj0) { | |
093d3ff1 RD |
4060 | { |
4061 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
4062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4063 | } | |
22bfe96c RD |
4064 | } |
4065 | { | |
110da5b0 | 4066 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4068 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4071 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4072 | } |
4073 | { | |
4074 | wxVisualAttributes * resultptr; | |
093d3ff1 | 4075 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
4076 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4077 | } | |
4078 | return resultobj; | |
4079 | fail: | |
4080 | return NULL; | |
4081 | } | |
4082 | ||
4083 | ||
c32bde28 | 4084 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4085 | PyObject *obj; |
4086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4087 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
4088 | Py_INCREF(obj); | |
4089 | return Py_BuildValue((char *)""); | |
4090 | } | |
c32bde28 | 4091 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
4092 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
4093 | return 1; | |
4094 | } | |
4095 | ||
4096 | ||
093d3ff1 | 4097 | static PyObject *_wrap_ComboBoxNameStr_get(void) { |
b2dc1044 RD |
4098 | PyObject *pyobj; |
4099 | ||
4100 | { | |
4101 | #if wxUSE_UNICODE | |
4102 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4103 | #else | |
4104 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4105 | #endif | |
4106 | } | |
4107 | return pyobj; | |
4108 | } | |
4109 | ||
4110 | ||
c32bde28 | 4111 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4112 | PyObject *resultobj; |
4113 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 4114 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4115 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4116 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4117 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4118 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4119 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4120 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
4121 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
4122 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
4123 | long arg7 = (long) 0 ; | |
4124 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4125 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4126 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
4127 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 4128 | wxComboBox *result; |
ae8162c8 | 4129 | bool temp3 = false ; |
d14a1e28 RD |
4130 | wxPoint temp4 ; |
4131 | wxSize temp5 ; | |
ae8162c8 RD |
4132 | bool temp6 = false ; |
4133 | bool temp9 = false ; | |
d14a1e28 | 4134 | PyObject * obj0 = 0 ; |
994141e6 | 4135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4136 | PyObject * obj2 = 0 ; |
4137 | PyObject * obj3 = 0 ; | |
4138 | PyObject * obj4 = 0 ; | |
4139 | PyObject * obj5 = 0 ; | |
994141e6 | 4140 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4141 | PyObject * obj7 = 0 ; |
4142 | PyObject * obj8 = 0 ; | |
4143 | char *kwnames[] = { | |
4144 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4145 | }; | |
4146 | ||
a95a7133 | 4147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
4148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 4150 | if (obj1) { |
093d3ff1 RD |
4151 | { |
4152 | arg2 = (int)(SWIG_As_int(obj1)); | |
4153 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4154 | } | |
a95a7133 | 4155 | } |
d14a1e28 RD |
4156 | if (obj2) { |
4157 | { | |
4158 | arg3 = wxString_in_helper(obj2); | |
4159 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4160 | temp3 = true; |
d14a1e28 RD |
4161 | } |
4162 | } | |
4163 | if (obj3) { | |
4164 | { | |
4165 | arg4 = &temp4; | |
4166 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4167 | } | |
4168 | } | |
4169 | if (obj4) { | |
4170 | { | |
4171 | arg5 = &temp5; | |
4172 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4173 | } | |
4174 | } | |
4175 | if (obj5) { | |
4176 | { | |
4d5c3d91 RD |
4177 | if (! PySequence_Check(obj5)) { |
4178 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4179 | SWIG_fail; | |
4180 | } | |
4181 | arg6 = new wxArrayString; | |
ae8162c8 | 4182 | temp6 = true; |
4d5c3d91 RD |
4183 | int i, len=PySequence_Length(obj5); |
4184 | for (i=0; i<len; i++) { | |
4185 | PyObject* item = PySequence_GetItem(obj5, i); | |
4186 | #if wxUSE_UNICODE | |
4187 | PyObject* str = PyObject_Unicode(item); | |
4188 | #else | |
4189 | PyObject* str = PyObject_Str(item); | |
4190 | #endif | |
74a57fcd | 4191 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
4192 | arg6->Add(Py2wxString(str)); |
4193 | Py_DECREF(item); | |
4194 | Py_DECREF(str); | |
4195 | } | |
d14a1e28 RD |
4196 | } |
4197 | } | |
994141e6 | 4198 | if (obj6) { |
093d3ff1 RD |
4199 | { |
4200 | arg7 = (long)(SWIG_As_long(obj6)); | |
4201 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4202 | } | |
994141e6 | 4203 | } |
d14a1e28 | 4204 | if (obj7) { |
093d3ff1 RD |
4205 | { |
4206 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4207 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4208 | if (arg8 == NULL) { | |
4209 | SWIG_null_ref("wxValidator"); | |
4210 | } | |
4211 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
4212 | } |
4213 | } | |
4214 | if (obj8) { | |
4215 | { | |
4d5c3d91 RD |
4216 | arg9 = wxString_in_helper(obj8); |
4217 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4218 | temp9 = true; |
d14a1e28 RD |
4219 | } |
4220 | } | |
4221 | { | |
e3b71cb8 | 4222 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 4224 | 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 |
4225 | |
4226 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4227 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4228 | } |
15afbcd0 | 4229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
4230 | { |
4231 | if (temp3) | |
4232 | delete arg3; | |
4233 | } | |
4234 | { | |
3adfb63b | 4235 | if (temp6) delete arg6; |
d14a1e28 RD |
4236 | } |
4237 | { | |
4238 | if (temp9) | |
4d5c3d91 | 4239 | delete arg9; |
d14a1e28 RD |
4240 | } |
4241 | return resultobj; | |
4242 | fail: | |
4243 | { | |
4244 | if (temp3) | |
4245 | delete arg3; | |
4246 | } | |
4247 | { | |
3adfb63b | 4248 | if (temp6) delete arg6; |
d14a1e28 RD |
4249 | } |
4250 | { | |
4251 | if (temp9) | |
4d5c3d91 | 4252 | delete arg9; |
d14a1e28 RD |
4253 | } |
4254 | return NULL; | |
4255 | } | |
4256 | ||
4257 | ||
c32bde28 | 4258 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4259 | PyObject *resultobj; |
4260 | wxComboBox *result; | |
4261 | char *kwnames[] = { | |
4262 | NULL | |
4263 | }; | |
4264 | ||
4265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
4266 | { | |
e3b71cb8 | 4267 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4269 | result = (wxComboBox *)new wxComboBox(); | |
4270 | ||
4271 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4272 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4273 | } |
15afbcd0 | 4274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
4275 | return resultobj; |
4276 | fail: | |
4277 | return NULL; | |
4278 | } | |
4279 | ||
4280 | ||
c32bde28 | 4281 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4282 | PyObject *resultobj; |
4283 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4284 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 4285 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4286 | wxString const &arg4_defvalue = wxPyEmptyString ; |
4287 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4288 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4289 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4290 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4291 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
4292 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
4293 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
4294 | long arg8 = (long) 0 ; | |
4295 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4296 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 4297 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 4298 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 4299 | bool result; |
ae8162c8 | 4300 | bool temp4 = false ; |
d14a1e28 RD |
4301 | wxPoint temp5 ; |
4302 | wxSize temp6 ; | |
ae8162c8 RD |
4303 | bool temp7 = false ; |
4304 | bool temp10 = false ; | |
d14a1e28 RD |
4305 | PyObject * obj0 = 0 ; |
4306 | PyObject * obj1 = 0 ; | |
994141e6 | 4307 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4308 | PyObject * obj3 = 0 ; |
4309 | PyObject * obj4 = 0 ; | |
4310 | PyObject * obj5 = 0 ; | |
4311 | PyObject * obj6 = 0 ; | |
994141e6 | 4312 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
4313 | PyObject * obj8 = 0 ; |
4314 | PyObject * obj9 = 0 ; | |
4315 | char *kwnames[] = { | |
4316 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4317 | }; | |
4318 | ||
a95a7133 | 4319 | 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 |
4320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4322 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4323 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a95a7133 | 4324 | if (obj2) { |
093d3ff1 RD |
4325 | { |
4326 | arg3 = (int)(SWIG_As_int(obj2)); | |
4327 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4328 | } | |
a95a7133 | 4329 | } |
d14a1e28 RD |
4330 | if (obj3) { |
4331 | { | |
4332 | arg4 = wxString_in_helper(obj3); | |
4333 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4334 | temp4 = true; |
d14a1e28 RD |
4335 | } |
4336 | } | |
4337 | if (obj4) { | |
4338 | { | |
4339 | arg5 = &temp5; | |
4340 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4341 | } | |
4342 | } | |
4343 | if (obj5) { | |
4344 | { | |
4345 | arg6 = &temp6; | |
4346 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4347 | } | |
4348 | } | |
4349 | if (obj6) { | |
4350 | { | |
4d5c3d91 RD |
4351 | if (! PySequence_Check(obj6)) { |
4352 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4353 | SWIG_fail; | |
4354 | } | |
4355 | arg7 = new wxArrayString; | |
ae8162c8 | 4356 | temp7 = true; |
4d5c3d91 RD |
4357 | int i, len=PySequence_Length(obj6); |
4358 | for (i=0; i<len; i++) { | |
4359 | PyObject* item = PySequence_GetItem(obj6, i); | |
4360 | #if wxUSE_UNICODE | |
4361 | PyObject* str = PyObject_Unicode(item); | |
4362 | #else | |
4363 | PyObject* str = PyObject_Str(item); | |
4364 | #endif | |
74a57fcd | 4365 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
4366 | arg7->Add(Py2wxString(str)); |
4367 | Py_DECREF(item); | |
4368 | Py_DECREF(str); | |
4369 | } | |
d14a1e28 RD |
4370 | } |
4371 | } | |
994141e6 | 4372 | if (obj7) { |
093d3ff1 RD |
4373 | { |
4374 | arg8 = (long)(SWIG_As_long(obj7)); | |
4375 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4376 | } | |
994141e6 | 4377 | } |
d14a1e28 | 4378 | if (obj8) { |
093d3ff1 RD |
4379 | { |
4380 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4381 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4382 | if (arg9 == NULL) { | |
4383 | SWIG_null_ref("wxValidator"); | |
4384 | } | |
4385 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
4386 | } |
4387 | } | |
4388 | if (obj9) { | |
4389 | { | |
4d5c3d91 RD |
4390 | arg10 = wxString_in_helper(obj9); |
4391 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 4392 | temp10 = true; |
d14a1e28 RD |
4393 | } |
4394 | } | |
4395 | { | |
4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4397 | 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 |
4398 | |
4399 | wxPyEndAllowThreads(__tstate); | |
4400 | if (PyErr_Occurred()) SWIG_fail; | |
4401 | } | |
4f89f6a3 RD |
4402 | { |
4403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4404 | } | |
d14a1e28 RD |
4405 | { |
4406 | if (temp4) | |
4407 | delete arg4; | |
4408 | } | |
4409 | { | |
3adfb63b | 4410 | if (temp7) delete arg7; |
d14a1e28 RD |
4411 | } |
4412 | { | |
4413 | if (temp10) | |
4d5c3d91 | 4414 | delete arg10; |
d14a1e28 RD |
4415 | } |
4416 | return resultobj; | |
4417 | fail: | |
4418 | { | |
4419 | if (temp4) | |
4420 | delete arg4; | |
4421 | } | |
4422 | { | |
3adfb63b | 4423 | if (temp7) delete arg7; |
d14a1e28 RD |
4424 | } |
4425 | { | |
4426 | if (temp10) | |
4d5c3d91 | 4427 | delete arg10; |
d14a1e28 RD |
4428 | } |
4429 | return NULL; | |
4430 | } | |
4431 | ||
4432 | ||
c32bde28 | 4433 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4434 | PyObject *resultobj; |
4435 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4436 | wxString result; | |
4437 | PyObject * obj0 = 0 ; | |
4438 | char *kwnames[] = { | |
4439 | (char *) "self", NULL | |
4440 | }; | |
4441 | ||
4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4443 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4445 | { |
4446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4447 | result = ((wxComboBox const *)arg1)->GetValue(); | |
4448 | ||
4449 | wxPyEndAllowThreads(__tstate); | |
4450 | if (PyErr_Occurred()) SWIG_fail; | |
4451 | } | |
4452 | { | |
4453 | #if wxUSE_UNICODE | |
4454 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4455 | #else | |
4456 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4457 | #endif | |
4458 | } | |
4459 | return resultobj; | |
4460 | fail: | |
4461 | return NULL; | |
4462 | } | |
4463 | ||
4464 | ||
c32bde28 | 4465 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4466 | PyObject *resultobj; |
4467 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4468 | wxString *arg2 = 0 ; | |
ae8162c8 | 4469 | bool temp2 = false ; |
d14a1e28 RD |
4470 | PyObject * obj0 = 0 ; |
4471 | PyObject * obj1 = 0 ; | |
4472 | char *kwnames[] = { | |
4473 | (char *) "self",(char *) "value", NULL | |
4474 | }; | |
4475 | ||
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4479 | { |
4480 | arg2 = wxString_in_helper(obj1); | |
4481 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4482 | temp2 = true; |
d14a1e28 RD |
4483 | } |
4484 | { | |
4485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4486 | (arg1)->SetValue((wxString const &)*arg2); | |
4487 | ||
4488 | wxPyEndAllowThreads(__tstate); | |
4489 | if (PyErr_Occurred()) SWIG_fail; | |
4490 | } | |
4491 | Py_INCREF(Py_None); resultobj = Py_None; | |
4492 | { | |
4493 | if (temp2) | |
4494 | delete arg2; | |
4495 | } | |
4496 | return resultobj; | |
4497 | fail: | |
4498 | { | |
4499 | if (temp2) | |
4500 | delete arg2; | |
4501 | } | |
4502 | return NULL; | |
4503 | } | |
4504 | ||
4505 | ||
c32bde28 | 4506 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4507 | PyObject *resultobj; |
4508 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4509 | PyObject * obj0 = 0 ; | |
4510 | char *kwnames[] = { | |
4511 | (char *) "self", NULL | |
4512 | }; | |
4513 | ||
4514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4515 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4516 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4517 | { |
4518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4519 | (arg1)->Copy(); | |
4520 | ||
4521 | wxPyEndAllowThreads(__tstate); | |
4522 | if (PyErr_Occurred()) SWIG_fail; | |
4523 | } | |
4524 | Py_INCREF(Py_None); resultobj = Py_None; | |
4525 | return resultobj; | |
4526 | fail: | |
4527 | return NULL; | |
4528 | } | |
4529 | ||
4530 | ||
c32bde28 | 4531 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4532 | PyObject *resultobj; |
4533 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4534 | PyObject * obj0 = 0 ; | |
4535 | char *kwnames[] = { | |
4536 | (char *) "self", NULL | |
4537 | }; | |
4538 | ||
4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4542 | { |
4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4544 | (arg1)->Cut(); | |
4545 | ||
4546 | wxPyEndAllowThreads(__tstate); | |
4547 | if (PyErr_Occurred()) SWIG_fail; | |
4548 | } | |
4549 | Py_INCREF(Py_None); resultobj = Py_None; | |
4550 | return resultobj; | |
4551 | fail: | |
4552 | return NULL; | |
4553 | } | |
4554 | ||
4555 | ||
c32bde28 | 4556 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4557 | PyObject *resultobj; |
4558 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4559 | PyObject * obj0 = 0 ; | |
4560 | char *kwnames[] = { | |
4561 | (char *) "self", NULL | |
4562 | }; | |
4563 | ||
4564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4567 | { |
4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4569 | (arg1)->Paste(); | |
4570 | ||
4571 | wxPyEndAllowThreads(__tstate); | |
4572 | if (PyErr_Occurred()) SWIG_fail; | |
4573 | } | |
4574 | Py_INCREF(Py_None); resultobj = Py_None; | |
4575 | return resultobj; | |
4576 | fail: | |
4577 | return NULL; | |
4578 | } | |
4579 | ||
4580 | ||
c32bde28 | 4581 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4582 | PyObject *resultobj; |
4583 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4584 | long arg2 ; | |
4585 | PyObject * obj0 = 0 ; | |
994141e6 | 4586 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4587 | char *kwnames[] = { |
4588 | (char *) "self",(char *) "pos", NULL | |
4589 | }; | |
4590 | ||
994141e6 | 4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4594 | { | |
4595 | arg2 = (long)(SWIG_As_long(obj1)); | |
4596 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4597 | } | |
d14a1e28 RD |
4598 | { |
4599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4600 | (arg1)->SetInsertionPoint(arg2); | |
4601 | ||
4602 | wxPyEndAllowThreads(__tstate); | |
4603 | if (PyErr_Occurred()) SWIG_fail; | |
4604 | } | |
4605 | Py_INCREF(Py_None); resultobj = Py_None; | |
4606 | return resultobj; | |
4607 | fail: | |
4608 | return NULL; | |
4609 | } | |
4610 | ||
4611 | ||
c32bde28 | 4612 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4613 | PyObject *resultobj; |
4614 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4615 | long result; | |
4616 | PyObject * obj0 = 0 ; | |
4617 | char *kwnames[] = { | |
4618 | (char *) "self", NULL | |
4619 | }; | |
4620 | ||
4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4622 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4623 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4624 | { |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4626 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
4627 | ||
4628 | wxPyEndAllowThreads(__tstate); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
093d3ff1 RD |
4631 | { |
4632 | resultobj = SWIG_From_long((long)(result)); | |
4633 | } | |
d14a1e28 RD |
4634 | return resultobj; |
4635 | fail: | |
4636 | return NULL; | |
4637 | } | |
4638 | ||
4639 | ||
c32bde28 | 4640 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4641 | PyObject *resultobj; |
4642 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4643 | long result; | |
4644 | PyObject * obj0 = 0 ; | |
4645 | char *kwnames[] = { | |
4646 | (char *) "self", NULL | |
4647 | }; | |
4648 | ||
4649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",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 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
4655 | ||
4656 | wxPyEndAllowThreads(__tstate); | |
4657 | if (PyErr_Occurred()) SWIG_fail; | |
4658 | } | |
093d3ff1 RD |
4659 | { |
4660 | resultobj = SWIG_From_long((long)(result)); | |
4661 | } | |
d14a1e28 RD |
4662 | return resultobj; |
4663 | fail: | |
4664 | return NULL; | |
4665 | } | |
4666 | ||
4667 | ||
c32bde28 | 4668 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4669 | PyObject *resultobj; |
4670 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4671 | long arg2 ; | |
4672 | long arg3 ; | |
4673 | wxString *arg4 = 0 ; | |
ae8162c8 | 4674 | bool temp4 = false ; |
d14a1e28 | 4675 | PyObject * obj0 = 0 ; |
994141e6 RD |
4676 | PyObject * obj1 = 0 ; |
4677 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4678 | PyObject * obj3 = 0 ; |
4679 | char *kwnames[] = { | |
4680 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
4681 | }; | |
4682 | ||
994141e6 | 4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
4684 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4685 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4686 | { | |
4687 | arg2 = (long)(SWIG_As_long(obj1)); | |
4688 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4689 | } | |
4690 | { | |
4691 | arg3 = (long)(SWIG_As_long(obj2)); | |
4692 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4693 | } | |
d14a1e28 RD |
4694 | { |
4695 | arg4 = wxString_in_helper(obj3); | |
4696 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4697 | temp4 = true; |
d14a1e28 RD |
4698 | } |
4699 | { | |
4700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4701 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
4702 | ||
4703 | wxPyEndAllowThreads(__tstate); | |
4704 | if (PyErr_Occurred()) SWIG_fail; | |
4705 | } | |
4706 | Py_INCREF(Py_None); resultobj = Py_None; | |
4707 | { | |
4708 | if (temp4) | |
4709 | delete arg4; | |
4710 | } | |
4711 | return resultobj; | |
4712 | fail: | |
4713 | { | |
4714 | if (temp4) | |
4715 | delete arg4; | |
4716 | } | |
4717 | return NULL; | |
4718 | } | |
4719 | ||
4720 | ||
c32bde28 | 4721 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
fd3f2efe RD |
4722 | PyObject *resultobj; |
4723 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4724 | int arg2 ; | |
4725 | PyObject * obj0 = 0 ; | |
994141e6 | 4726 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
4727 | char *kwnames[] = { |
4728 | (char *) "self",(char *) "n", NULL | |
4729 | }; | |
4730 | ||
994141e6 | 4731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) 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; | |
4734 | { | |
4735 | arg2 = (int)(SWIG_As_int(obj1)); | |
4736 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4737 | } | |
fd3f2efe RD |
4738 | { |
4739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4740 | (arg1)->SetSelection(arg2); | |
4741 | ||
4742 | wxPyEndAllowThreads(__tstate); | |
4743 | if (PyErr_Occurred()) SWIG_fail; | |
4744 | } | |
4745 | Py_INCREF(Py_None); resultobj = Py_None; | |
4746 | return resultobj; | |
4747 | fail: | |
4748 | return NULL; | |
4749 | } | |
4750 | ||
4751 | ||
c32bde28 | 4752 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4753 | PyObject *resultobj; |
4754 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4755 | long arg2 ; | |
4756 | long arg3 ; | |
4757 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4758 | PyObject * obj1 = 0 ; |
4759 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4760 | char *kwnames[] = { |
4761 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4762 | }; | |
4763 | ||
994141e6 | 4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
4765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4767 | { | |
4768 | arg2 = (long)(SWIG_As_long(obj1)); | |
4769 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4770 | } | |
4771 | { | |
4772 | arg3 = (long)(SWIG_As_long(obj2)); | |
4773 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4774 | } | |
d14a1e28 RD |
4775 | { |
4776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4777 | (arg1)->SetSelection(arg2,arg3); | |
4778 | ||
4779 | wxPyEndAllowThreads(__tstate); | |
4780 | if (PyErr_Occurred()) SWIG_fail; | |
4781 | } | |
4782 | Py_INCREF(Py_None); resultobj = Py_None; | |
4783 | return resultobj; | |
4784 | fail: | |
4785 | return NULL; | |
4786 | } | |
4787 | ||
4788 | ||
b9d6a5f3 RD |
4789 | static PyObject *_wrap_ComboBox_GetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
4790 | PyObject *resultobj; | |
4791 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4792 | long *arg2 = (long *) 0 ; | |
4793 | long *arg3 = (long *) 0 ; | |
4794 | long temp2 ; | |
4795 | int res2 = 0 ; | |
4796 | long temp3 ; | |
4797 | int res3 = 0 ; | |
4798 | PyObject * obj0 = 0 ; | |
4799 | char *kwnames[] = { | |
4800 | (char *) "self", NULL | |
4801 | }; | |
4802 | ||
4803 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4804 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetMark",kwnames,&obj0)) goto fail; | |
4806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4808 | { | |
4809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4810 | (arg1)->GetSelection(arg2,arg3); | |
4811 | ||
4812 | wxPyEndAllowThreads(__tstate); | |
4813 | if (PyErr_Occurred()) SWIG_fail; | |
4814 | } | |
4815 | Py_INCREF(Py_None); resultobj = Py_None; | |
4816 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
4817 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
4818 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
4819 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4820 | return resultobj; | |
4821 | fail: | |
4822 | return NULL; | |
4823 | } | |
4824 | ||
4825 | ||
c32bde28 | 4826 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
4827 | PyObject *resultobj; |
4828 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4829 | wxString *arg2 = 0 ; | |
4830 | bool result; | |
ae8162c8 | 4831 | bool temp2 = false ; |
121b9a67 RD |
4832 | PyObject * obj0 = 0 ; |
4833 | PyObject * obj1 = 0 ; | |
4834 | char *kwnames[] = { | |
4835 | (char *) "self",(char *) "string", NULL | |
4836 | }; | |
4837 | ||
4838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
121b9a67 RD |
4841 | { |
4842 | arg2 = wxString_in_helper(obj1); | |
4843 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4844 | temp2 = true; |
121b9a67 RD |
4845 | } |
4846 | { | |
4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4848 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
4849 | ||
4850 | wxPyEndAllowThreads(__tstate); | |
4851 | if (PyErr_Occurred()) SWIG_fail; | |
4852 | } | |
4853 | { | |
4854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4855 | } | |
4856 | { | |
4857 | if (temp2) | |
4858 | delete arg2; | |
4859 | } | |
4860 | return resultobj; | |
4861 | fail: | |
4862 | { | |
4863 | if (temp2) | |
4864 | delete arg2; | |
4865 | } | |
4866 | return NULL; | |
4867 | } | |
4868 | ||
4869 | ||
c32bde28 | 4870 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
121b9a67 RD |
4871 | PyObject *resultobj; |
4872 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4873 | int arg2 ; | |
4874 | wxString *arg3 = 0 ; | |
ae8162c8 | 4875 | bool temp3 = false ; |
121b9a67 RD |
4876 | PyObject * obj0 = 0 ; |
4877 | PyObject * obj1 = 0 ; | |
4878 | PyObject * obj2 = 0 ; | |
4879 | char *kwnames[] = { | |
4880 | (char *) "self",(char *) "n",(char *) "string", NULL | |
4881 | }; | |
4882 | ||
4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
4884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4886 | { | |
4887 | arg2 = (int)(SWIG_As_int(obj1)); | |
4888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4889 | } | |
121b9a67 RD |
4890 | { |
4891 | arg3 = wxString_in_helper(obj2); | |
4892 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4893 | temp3 = true; |
121b9a67 RD |
4894 | } |
4895 | { | |
4896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4897 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
4898 | ||
4899 | wxPyEndAllowThreads(__tstate); | |
4900 | if (PyErr_Occurred()) SWIG_fail; | |
4901 | } | |
4902 | Py_INCREF(Py_None); resultobj = Py_None; | |
4903 | { | |
4904 | if (temp3) | |
4905 | delete arg3; | |
4906 | } | |
4907 | return resultobj; | |
4908 | fail: | |
4909 | { | |
4910 | if (temp3) | |
4911 | delete arg3; | |
4912 | } | |
4913 | return NULL; | |
4914 | } | |
4915 | ||
4916 | ||
c32bde28 | 4917 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4918 | PyObject *resultobj; |
4919 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4920 | bool arg2 ; | |
4921 | PyObject * obj0 = 0 ; | |
4922 | PyObject * obj1 = 0 ; | |
4923 | char *kwnames[] = { | |
4924 | (char *) "self",(char *) "editable", NULL | |
4925 | }; | |
4926 | ||
4927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4930 | { | |
4931 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
4932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4933 | } | |
d14a1e28 RD |
4934 | { |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | (arg1)->SetEditable(arg2); | |
4937 | ||
4938 | wxPyEndAllowThreads(__tstate); | |
4939 | if (PyErr_Occurred()) SWIG_fail; | |
4940 | } | |
4941 | Py_INCREF(Py_None); resultobj = Py_None; | |
4942 | return resultobj; | |
4943 | fail: | |
4944 | return NULL; | |
4945 | } | |
4946 | ||
4947 | ||
c32bde28 | 4948 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4949 | PyObject *resultobj; |
4950 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4951 | PyObject * obj0 = 0 ; | |
4952 | char *kwnames[] = { | |
4953 | (char *) "self", NULL | |
4954 | }; | |
4955 | ||
4956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) 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; | |
d14a1e28 RD |
4959 | { |
4960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4961 | (arg1)->SetInsertionPointEnd(); | |
4962 | ||
4963 | wxPyEndAllowThreads(__tstate); | |
4964 | if (PyErr_Occurred()) SWIG_fail; | |
4965 | } | |
4966 | Py_INCREF(Py_None); resultobj = Py_None; | |
4967 | return resultobj; | |
4968 | fail: | |
4969 | return NULL; | |
4970 | } | |
4971 | ||
4972 | ||
c32bde28 | 4973 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4974 | PyObject *resultobj; |
4975 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4976 | long arg2 ; | |
4977 | long arg3 ; | |
4978 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4979 | PyObject * obj1 = 0 ; |
4980 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4981 | char *kwnames[] = { |
4982 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4983 | }; | |
4984 | ||
994141e6 | 4985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
4986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4988 | { | |
4989 | arg2 = (long)(SWIG_As_long(obj1)); | |
4990 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4991 | } | |
4992 | { | |
4993 | arg3 = (long)(SWIG_As_long(obj2)); | |
4994 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4995 | } | |
d14a1e28 RD |
4996 | { |
4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4998 | (arg1)->Remove(arg2,arg3); | |
4999 | ||
5000 | wxPyEndAllowThreads(__tstate); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
5002 | } | |
5003 | Py_INCREF(Py_None); resultobj = Py_None; | |
5004 | return resultobj; | |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
5cbf236d RD |
5010 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
5011 | PyObject *resultobj; | |
5012 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5013 | bool result; | |
5014 | PyObject * obj0 = 0 ; | |
5015 | char *kwnames[] = { | |
5016 | (char *) "self", NULL | |
5017 | }; | |
5018 | ||
5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5020 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5021 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5022 | { |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
5029 | { | |
5030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5031 | } | |
5032 | return resultobj; | |
5033 | fail: | |
5034 | return NULL; | |
5035 | } | |
5036 | ||
5037 | ||
5038 | static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5039 | PyObject *resultobj; | |
5040 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5041 | PyObject * obj0 = 0 ; | |
5042 | char *kwnames[] = { | |
5043 | (char *) "self", NULL | |
5044 | }; | |
5045 | ||
5046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5049 | { |
5050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5051 | (arg1)->Undo(); | |
5052 | ||
5053 | wxPyEndAllowThreads(__tstate); | |
5054 | if (PyErr_Occurred()) SWIG_fail; | |
5055 | } | |
5056 | Py_INCREF(Py_None); resultobj = Py_None; | |
5057 | return resultobj; | |
5058 | fail: | |
5059 | return NULL; | |
5060 | } | |
5061 | ||
5062 | ||
5063 | static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5064 | PyObject *resultobj; | |
5065 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5066 | PyObject * obj0 = 0 ; | |
5067 | char *kwnames[] = { | |
5068 | (char *) "self", NULL | |
5069 | }; | |
5070 | ||
5071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5074 | { |
5075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5076 | (arg1)->Redo(); | |
5077 | ||
5078 | wxPyEndAllowThreads(__tstate); | |
5079 | if (PyErr_Occurred()) SWIG_fail; | |
5080 | } | |
5081 | Py_INCREF(Py_None); resultobj = Py_None; | |
5082 | return resultobj; | |
5083 | fail: | |
5084 | return NULL; | |
5085 | } | |
5086 | ||
5087 | ||
5088 | static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
5089 | PyObject *resultobj; | |
5090 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5091 | PyObject * obj0 = 0 ; | |
5092 | char *kwnames[] = { | |
5093 | (char *) "self", NULL | |
5094 | }; | |
5095 | ||
5096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5099 | { |
5100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5101 | (arg1)->SelectAll(); | |
5102 | ||
5103 | wxPyEndAllowThreads(__tstate); | |
5104 | if (PyErr_Occurred()) SWIG_fail; | |
5105 | } | |
5106 | Py_INCREF(Py_None); resultobj = Py_None; | |
5107 | return resultobj; | |
5108 | fail: | |
5109 | return NULL; | |
5110 | } | |
5111 | ||
5112 | ||
5113 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
5114 | PyObject *resultobj; | |
5115 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5116 | bool result; | |
5117 | PyObject * obj0 = 0 ; | |
5118 | char *kwnames[] = { | |
5119 | (char *) "self", NULL | |
5120 | }; | |
5121 | ||
5122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5125 | { |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
5128 | ||
5129 | wxPyEndAllowThreads(__tstate); | |
5130 | if (PyErr_Occurred()) SWIG_fail; | |
5131 | } | |
5132 | { | |
5133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5134 | } | |
5135 | return resultobj; | |
5136 | fail: | |
5137 | return NULL; | |
5138 | } | |
5139 | ||
5140 | ||
5141 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
5142 | PyObject *resultobj; | |
5143 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5144 | bool result; | |
5145 | PyObject * obj0 = 0 ; | |
5146 | char *kwnames[] = { | |
5147 | (char *) "self", NULL | |
5148 | }; | |
5149 | ||
5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5153 | { |
5154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5155 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
5156 | ||
5157 | wxPyEndAllowThreads(__tstate); | |
5158 | if (PyErr_Occurred()) SWIG_fail; | |
5159 | } | |
5160 | { | |
5161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5162 | } | |
5163 | return resultobj; | |
5164 | fail: | |
5165 | return NULL; | |
5166 | } | |
5167 | ||
5168 | ||
5169 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
5170 | PyObject *resultobj; | |
5171 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5172 | bool result; | |
5173 | PyObject * obj0 = 0 ; | |
5174 | char *kwnames[] = { | |
5175 | (char *) "self", NULL | |
5176 | }; | |
5177 | ||
5178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5181 | { |
5182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5183 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
5184 | ||
5185 | wxPyEndAllowThreads(__tstate); | |
5186 | if (PyErr_Occurred()) SWIG_fail; | |
5187 | } | |
5188 | { | |
5189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5190 | } | |
5191 | return resultobj; | |
5192 | fail: | |
5193 | return NULL; | |
5194 | } | |
5195 | ||
5196 | ||
5197 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5198 | PyObject *resultobj; | |
5199 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5200 | bool result; | |
5201 | PyObject * obj0 = 0 ; | |
5202 | char *kwnames[] = { | |
5203 | (char *) "self", NULL | |
5204 | }; | |
5205 | ||
5206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5209 | { |
5210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5211 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
5212 | ||
5213 | wxPyEndAllowThreads(__tstate); | |
5214 | if (PyErr_Occurred()) SWIG_fail; | |
5215 | } | |
5216 | { | |
5217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5218 | } | |
5219 | return resultobj; | |
5220 | fail: | |
5221 | return NULL; | |
5222 | } | |
5223 | ||
5224 | ||
5225 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5226 | PyObject *resultobj; | |
5227 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5228 | bool result; | |
5229 | PyObject * obj0 = 0 ; | |
5230 | char *kwnames[] = { | |
5231 | (char *) "self", NULL | |
5232 | }; | |
5233 | ||
5234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5237 | { |
5238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5239 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
5240 | ||
5241 | wxPyEndAllowThreads(__tstate); | |
5242 | if (PyErr_Occurred()) SWIG_fail; | |
5243 | } | |
5244 | { | |
5245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5246 | } | |
5247 | return resultobj; | |
5248 | fail: | |
5249 | return NULL; | |
5250 | } | |
5251 | ||
5252 | ||
c32bde28 | 5253 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 5254 | PyObject *resultobj; |
093d3ff1 | 5255 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
5256 | wxVisualAttributes result; |
5257 | PyObject * obj0 = 0 ; | |
5258 | char *kwnames[] = { | |
5259 | (char *) "variant", NULL | |
5260 | }; | |
5261 | ||
5262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5263 | if (obj0) { | |
093d3ff1 RD |
5264 | { |
5265 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5266 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5267 | } | |
22bfe96c RD |
5268 | } |
5269 | { | |
110da5b0 | 5270 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5272 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5273 | ||
5274 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5275 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5276 | } |
5277 | { | |
5278 | wxVisualAttributes * resultptr; | |
093d3ff1 | 5279 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
5280 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5281 | } | |
5282 | return resultobj; | |
5283 | fail: | |
5284 | return NULL; | |
5285 | } | |
5286 | ||
5287 | ||
c32bde28 | 5288 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5289 | PyObject *obj; |
5290 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5291 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
5292 | Py_INCREF(obj); | |
5293 | return Py_BuildValue((char *)""); | |
5294 | } | |
c32bde28 | 5295 | static int _wrap_GaugeNameStr_set(PyObject *) { |
b2dc1044 RD |
5296 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
5297 | return 1; | |
5298 | } | |
5299 | ||
5300 | ||
093d3ff1 | 5301 | static PyObject *_wrap_GaugeNameStr_get(void) { |
b2dc1044 RD |
5302 | PyObject *pyobj; |
5303 | ||
5304 | { | |
5305 | #if wxUSE_UNICODE | |
5306 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5307 | #else | |
5308 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5309 | #endif | |
5310 | } | |
5311 | return pyobj; | |
5312 | } | |
5313 | ||
5314 | ||
c32bde28 | 5315 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5316 | PyObject *resultobj; |
5317 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5318 | int arg2 = (int) -1 ; |
5319 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
5320 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5321 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5322 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5323 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5324 | long arg6 = (long) wxGA_HORIZONTAL ; | |
5325 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5326 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5327 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
5328 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5329 | wxGauge *result; | |
5330 | wxPoint temp4 ; | |
5331 | wxSize temp5 ; | |
ae8162c8 | 5332 | bool temp8 = false ; |
d14a1e28 | 5333 | PyObject * obj0 = 0 ; |
994141e6 RD |
5334 | PyObject * obj1 = 0 ; |
5335 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5336 | PyObject * obj3 = 0 ; |
5337 | PyObject * obj4 = 0 ; | |
994141e6 | 5338 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5339 | PyObject * obj6 = 0 ; |
5340 | PyObject * obj7 = 0 ; | |
5341 | char *kwnames[] = { | |
5342 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5343 | }; | |
5344 | ||
248ed943 | 5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
5346 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5347 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 5348 | if (obj1) { |
093d3ff1 RD |
5349 | { |
5350 | arg2 = (int)(SWIG_As_int(obj1)); | |
5351 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5352 | } | |
248ed943 RD |
5353 | } |
5354 | if (obj2) { | |
093d3ff1 RD |
5355 | { |
5356 | arg3 = (int)(SWIG_As_int(obj2)); | |
5357 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5358 | } | |
248ed943 | 5359 | } |
d14a1e28 RD |
5360 | if (obj3) { |
5361 | { | |
5362 | arg4 = &temp4; | |
5363 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5364 | } | |
5365 | } | |
5366 | if (obj4) { | |
5367 | { | |
5368 | arg5 = &temp5; | |
5369 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5370 | } | |
5371 | } | |
994141e6 | 5372 | if (obj5) { |
093d3ff1 RD |
5373 | { |
5374 | arg6 = (long)(SWIG_As_long(obj5)); | |
5375 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5376 | } | |
994141e6 | 5377 | } |
d14a1e28 | 5378 | if (obj6) { |
093d3ff1 RD |
5379 | { |
5380 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5381 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5382 | if (arg7 == NULL) { | |
5383 | SWIG_null_ref("wxValidator"); | |
5384 | } | |
5385 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
5386 | } |
5387 | } | |
5388 | if (obj7) { | |
5389 | { | |
5390 | arg8 = wxString_in_helper(obj7); | |
5391 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5392 | temp8 = true; |
d14a1e28 RD |
5393 | } |
5394 | } | |
5395 | { | |
e3b71cb8 | 5396 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5398 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5399 | ||
5400 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5401 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5402 | } |
15afbcd0 | 5403 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
5404 | { |
5405 | if (temp8) | |
5406 | delete arg8; | |
5407 | } | |
5408 | return resultobj; | |
5409 | fail: | |
5410 | { | |
5411 | if (temp8) | |
5412 | delete arg8; | |
5413 | } | |
5414 | return NULL; | |
5415 | } | |
5416 | ||
5417 | ||
c32bde28 | 5418 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5419 | PyObject *resultobj; |
5420 | wxGauge *result; | |
5421 | char *kwnames[] = { | |
5422 | NULL | |
5423 | }; | |
5424 | ||
5425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
5426 | { | |
e3b71cb8 | 5427 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5429 | result = (wxGauge *)new wxGauge(); | |
5430 | ||
5431 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5432 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5433 | } |
15afbcd0 | 5434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
5435 | return resultobj; |
5436 | fail: | |
5437 | return NULL; | |
5438 | } | |
5439 | ||
5440 | ||
c32bde28 | 5441 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5442 | PyObject *resultobj; |
5443 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5444 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5445 | int arg3 = (int) -1 ; |
5446 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
5447 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5448 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5449 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5450 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5451 | long arg7 = (long) wxGA_HORIZONTAL ; | |
5452 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5453 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5454 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
5455 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5456 | bool result; | |
5457 | wxPoint temp5 ; | |
5458 | wxSize temp6 ; | |
ae8162c8 | 5459 | bool temp9 = false ; |
d14a1e28 RD |
5460 | PyObject * obj0 = 0 ; |
5461 | PyObject * obj1 = 0 ; | |
994141e6 RD |
5462 | PyObject * obj2 = 0 ; |
5463 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5464 | PyObject * obj4 = 0 ; |
5465 | PyObject * obj5 = 0 ; | |
994141e6 | 5466 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5467 | PyObject * obj7 = 0 ; |
5468 | PyObject * obj8 = 0 ; | |
5469 | char *kwnames[] = { | |
5470 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5471 | }; | |
5472 | ||
248ed943 | 5473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
5474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5476 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5477 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 5478 | if (obj2) { |
093d3ff1 RD |
5479 | { |
5480 | arg3 = (int)(SWIG_As_int(obj2)); | |
5481 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5482 | } | |
248ed943 RD |
5483 | } |
5484 | if (obj3) { | |
093d3ff1 RD |
5485 | { |
5486 | arg4 = (int)(SWIG_As_int(obj3)); | |
5487 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5488 | } | |
248ed943 | 5489 | } |
d14a1e28 RD |
5490 | if (obj4) { |
5491 | { | |
5492 | arg5 = &temp5; | |
5493 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5494 | } | |
5495 | } | |
5496 | if (obj5) { | |
5497 | { | |
5498 | arg6 = &temp6; | |
5499 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5500 | } | |
5501 | } | |
994141e6 | 5502 | if (obj6) { |
093d3ff1 RD |
5503 | { |
5504 | arg7 = (long)(SWIG_As_long(obj6)); | |
5505 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5506 | } | |
994141e6 | 5507 | } |
d14a1e28 | 5508 | if (obj7) { |
093d3ff1 RD |
5509 | { |
5510 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5511 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5512 | if (arg8 == NULL) { | |
5513 | SWIG_null_ref("wxValidator"); | |
5514 | } | |
5515 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
5516 | } |
5517 | } | |
5518 | if (obj8) { | |
5519 | { | |
5520 | arg9 = wxString_in_helper(obj8); | |
5521 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 5522 | temp9 = true; |
d14a1e28 RD |
5523 | } |
5524 | } | |
5525 | { | |
5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5527 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5528 | ||
5529 | wxPyEndAllowThreads(__tstate); | |
5530 | if (PyErr_Occurred()) SWIG_fail; | |
5531 | } | |
4f89f6a3 RD |
5532 | { |
5533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5534 | } | |
d14a1e28 RD |
5535 | { |
5536 | if (temp9) | |
5537 | delete arg9; | |
5538 | } | |
5539 | return resultobj; | |
5540 | fail: | |
5541 | { | |
5542 | if (temp9) | |
5543 | delete arg9; | |
5544 | } | |
5545 | return NULL; | |
5546 | } | |
5547 | ||
5548 | ||
c32bde28 | 5549 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5550 | PyObject *resultobj; |
5551 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5552 | int arg2 ; | |
5553 | PyObject * obj0 = 0 ; | |
994141e6 | 5554 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5555 | char *kwnames[] = { |
5556 | (char *) "self",(char *) "range", NULL | |
5557 | }; | |
5558 | ||
994141e6 | 5559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5562 | { | |
5563 | arg2 = (int)(SWIG_As_int(obj1)); | |
5564 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5565 | } | |
d14a1e28 RD |
5566 | { |
5567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5568 | (arg1)->SetRange(arg2); | |
5569 | ||
5570 | wxPyEndAllowThreads(__tstate); | |
5571 | if (PyErr_Occurred()) SWIG_fail; | |
5572 | } | |
5573 | Py_INCREF(Py_None); resultobj = Py_None; | |
5574 | return resultobj; | |
5575 | fail: | |
5576 | return NULL; | |
5577 | } | |
5578 | ||
5579 | ||
c32bde28 | 5580 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5581 | PyObject *resultobj; |
5582 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5583 | int result; | |
5584 | PyObject * obj0 = 0 ; | |
5585 | char *kwnames[] = { | |
5586 | (char *) "self", NULL | |
5587 | }; | |
5588 | ||
5589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5592 | { |
5593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5594 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
5595 | ||
5596 | wxPyEndAllowThreads(__tstate); | |
5597 | if (PyErr_Occurred()) SWIG_fail; | |
5598 | } | |
093d3ff1 RD |
5599 | { |
5600 | resultobj = SWIG_From_int((int)(result)); | |
5601 | } | |
d14a1e28 RD |
5602 | return resultobj; |
5603 | fail: | |
5604 | return NULL; | |
5605 | } | |
5606 | ||
5607 | ||
c32bde28 | 5608 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5609 | PyObject *resultobj; |
5610 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5611 | int arg2 ; | |
5612 | PyObject * obj0 = 0 ; | |
994141e6 | 5613 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5614 | char *kwnames[] = { |
5615 | (char *) "self",(char *) "pos", NULL | |
5616 | }; | |
5617 | ||
994141e6 | 5618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5621 | { | |
5622 | arg2 = (int)(SWIG_As_int(obj1)); | |
5623 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5624 | } | |
d14a1e28 RD |
5625 | { |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | (arg1)->SetValue(arg2); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
5632 | Py_INCREF(Py_None); resultobj = Py_None; | |
5633 | return resultobj; | |
5634 | fail: | |
5635 | return NULL; | |
5636 | } | |
5637 | ||
5638 | ||
c32bde28 | 5639 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5640 | PyObject *resultobj; |
5641 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5642 | int result; | |
5643 | PyObject * obj0 = 0 ; | |
5644 | char *kwnames[] = { | |
5645 | (char *) "self", NULL | |
5646 | }; | |
5647 | ||
5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5651 | { |
5652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5653 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
5654 | ||
5655 | wxPyEndAllowThreads(__tstate); | |
5656 | if (PyErr_Occurred()) SWIG_fail; | |
5657 | } | |
093d3ff1 RD |
5658 | { |
5659 | resultobj = SWIG_From_int((int)(result)); | |
5660 | } | |
d14a1e28 RD |
5661 | return resultobj; |
5662 | fail: | |
5663 | return NULL; | |
5664 | } | |
5665 | ||
5666 | ||
c32bde28 | 5667 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5668 | PyObject *resultobj; |
5669 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5670 | bool result; | |
5671 | PyObject * obj0 = 0 ; | |
5672 | char *kwnames[] = { | |
5673 | (char *) "self", NULL | |
5674 | }; | |
5675 | ||
5676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5679 | { |
5680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5681 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
5682 | ||
5683 | wxPyEndAllowThreads(__tstate); | |
5684 | if (PyErr_Occurred()) SWIG_fail; | |
5685 | } | |
4f89f6a3 RD |
5686 | { |
5687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5688 | } | |
d14a1e28 RD |
5689 | return resultobj; |
5690 | fail: | |
5691 | return NULL; | |
5692 | } | |
5693 | ||
5694 | ||
c32bde28 | 5695 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5696 | PyObject *resultobj; |
5697 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5698 | int arg2 ; | |
5699 | PyObject * obj0 = 0 ; | |
994141e6 | 5700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5701 | char *kwnames[] = { |
5702 | (char *) "self",(char *) "w", NULL | |
5703 | }; | |
5704 | ||
994141e6 | 5705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5708 | { | |
5709 | arg2 = (int)(SWIG_As_int(obj1)); | |
5710 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5711 | } | |
d14a1e28 RD |
5712 | { |
5713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5714 | (arg1)->SetShadowWidth(arg2); | |
5715 | ||
5716 | wxPyEndAllowThreads(__tstate); | |
5717 | if (PyErr_Occurred()) SWIG_fail; | |
5718 | } | |
5719 | Py_INCREF(Py_None); resultobj = Py_None; | |
5720 | return resultobj; | |
5721 | fail: | |
5722 | return NULL; | |
5723 | } | |
5724 | ||
5725 | ||
c32bde28 | 5726 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5727 | PyObject *resultobj; |
5728 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5729 | int result; | |
5730 | PyObject * obj0 = 0 ; | |
5731 | char *kwnames[] = { | |
5732 | (char *) "self", NULL | |
5733 | }; | |
5734 | ||
5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5738 | { |
5739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5740 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
5741 | ||
5742 | wxPyEndAllowThreads(__tstate); | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | } | |
093d3ff1 RD |
5745 | { |
5746 | resultobj = SWIG_From_int((int)(result)); | |
5747 | } | |
d14a1e28 RD |
5748 | return resultobj; |
5749 | fail: | |
5750 | return NULL; | |
5751 | } | |
5752 | ||
5753 | ||
c32bde28 | 5754 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5755 | PyObject *resultobj; |
5756 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5757 | int arg2 ; | |
5758 | PyObject * obj0 = 0 ; | |
994141e6 | 5759 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5760 | char *kwnames[] = { |
5761 | (char *) "self",(char *) "w", NULL | |
5762 | }; | |
5763 | ||
994141e6 | 5764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5767 | { | |
5768 | arg2 = (int)(SWIG_As_int(obj1)); | |
5769 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5770 | } | |
d14a1e28 RD |
5771 | { |
5772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5773 | (arg1)->SetBezelFace(arg2); | |
5774 | ||
5775 | wxPyEndAllowThreads(__tstate); | |
5776 | if (PyErr_Occurred()) SWIG_fail; | |
5777 | } | |
5778 | Py_INCREF(Py_None); resultobj = Py_None; | |
5779 | return resultobj; | |
5780 | fail: | |
5781 | return NULL; | |
5782 | } | |
5783 | ||
5784 | ||
c32bde28 | 5785 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5786 | PyObject *resultobj; |
5787 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5788 | int result; | |
5789 | PyObject * obj0 = 0 ; | |
5790 | char *kwnames[] = { | |
5791 | (char *) "self", NULL | |
5792 | }; | |
5793 | ||
5794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5797 | { |
5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5799 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
5800 | ||
5801 | wxPyEndAllowThreads(__tstate); | |
5802 | if (PyErr_Occurred()) SWIG_fail; | |
5803 | } | |
093d3ff1 RD |
5804 | { |
5805 | resultobj = SWIG_From_int((int)(result)); | |
5806 | } | |
d14a1e28 RD |
5807 | return resultobj; |
5808 | fail: | |
5809 | return NULL; | |
5810 | } | |
5811 | ||
5812 | ||
c32bde28 | 5813 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 5814 | PyObject *resultobj; |
093d3ff1 | 5815 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
5816 | wxVisualAttributes result; |
5817 | PyObject * obj0 = 0 ; | |
5818 | char *kwnames[] = { | |
5819 | (char *) "variant", NULL | |
5820 | }; | |
5821 | ||
5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5823 | if (obj0) { | |
093d3ff1 RD |
5824 | { |
5825 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5827 | } | |
22bfe96c RD |
5828 | } |
5829 | { | |
110da5b0 | 5830 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5832 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5833 | ||
5834 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5835 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5836 | } |
5837 | { | |
5838 | wxVisualAttributes * resultptr; | |
093d3ff1 | 5839 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
5840 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5841 | } | |
5842 | return resultobj; | |
5843 | fail: | |
5844 | return NULL; | |
5845 | } | |
5846 | ||
5847 | ||
c32bde28 | 5848 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5849 | PyObject *obj; |
5850 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5851 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
5852 | Py_INCREF(obj); | |
5853 | return Py_BuildValue((char *)""); | |
5854 | } | |
c32bde28 | 5855 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
b2dc1044 RD |
5856 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
5857 | return 1; | |
5858 | } | |
5859 | ||
5860 | ||
093d3ff1 | 5861 | static PyObject *_wrap_StaticBitmapNameStr_get(void) { |
b2dc1044 RD |
5862 | PyObject *pyobj; |
5863 | ||
5864 | { | |
5865 | #if wxUSE_UNICODE | |
5866 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5867 | #else | |
5868 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5869 | #endif | |
5870 | } | |
5871 | return pyobj; | |
5872 | } | |
5873 | ||
5874 | ||
c32bde28 | 5875 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
5876 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
5877 | return 1; | |
5878 | } | |
5879 | ||
5880 | ||
093d3ff1 | 5881 | static PyObject *_wrap_StaticBoxNameStr_get(void) { |
b2dc1044 RD |
5882 | PyObject *pyobj; |
5883 | ||
5884 | { | |
5885 | #if wxUSE_UNICODE | |
5886 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5887 | #else | |
5888 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5889 | #endif | |
5890 | } | |
5891 | return pyobj; | |
5892 | } | |
5893 | ||
5894 | ||
c32bde28 | 5895 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
b2dc1044 RD |
5896 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
5897 | return 1; | |
5898 | } | |
5899 | ||
5900 | ||
093d3ff1 | 5901 | static PyObject *_wrap_StaticTextNameStr_get(void) { |
b2dc1044 RD |
5902 | PyObject *pyobj; |
5903 | ||
5904 | { | |
5905 | #if wxUSE_UNICODE | |
5906 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5907 | #else | |
5908 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5909 | #endif | |
5910 | } | |
5911 | return pyobj; | |
5912 | } | |
5913 | ||
5914 | ||
c32bde28 | 5915 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5916 | PyObject *resultobj; |
5917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5918 | int arg2 = (int) -1 ; |
5919 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5920 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
5921 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5922 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5923 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5924 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5925 | long arg6 = (long) 0 ; | |
5926 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
5927 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5928 | wxStaticBox *result; | |
ae8162c8 | 5929 | bool temp3 = false ; |
d14a1e28 RD |
5930 | wxPoint temp4 ; |
5931 | wxSize temp5 ; | |
ae8162c8 | 5932 | bool temp7 = false ; |
d14a1e28 | 5933 | PyObject * obj0 = 0 ; |
994141e6 | 5934 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5935 | PyObject * obj2 = 0 ; |
5936 | PyObject * obj3 = 0 ; | |
5937 | PyObject * obj4 = 0 ; | |
994141e6 | 5938 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5939 | PyObject * obj6 = 0 ; |
5940 | char *kwnames[] = { | |
5941 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5942 | }; | |
5943 | ||
248ed943 | 5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
5945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 5947 | if (obj1) { |
093d3ff1 RD |
5948 | { |
5949 | arg2 = (int)(SWIG_As_int(obj1)); | |
5950 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5951 | } | |
248ed943 RD |
5952 | } |
5953 | if (obj2) { | |
5954 | { | |
5955 | arg3 = wxString_in_helper(obj2); | |
5956 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 5957 | temp3 = true; |
248ed943 | 5958 | } |
d14a1e28 RD |
5959 | } |
5960 | if (obj3) { | |
5961 | { | |
5962 | arg4 = &temp4; | |
5963 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5964 | } | |
5965 | } | |
5966 | if (obj4) { | |
5967 | { | |
5968 | arg5 = &temp5; | |
5969 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5970 | } | |
5971 | } | |
994141e6 | 5972 | if (obj5) { |
093d3ff1 RD |
5973 | { |
5974 | arg6 = (long)(SWIG_As_long(obj5)); | |
5975 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5976 | } | |
994141e6 | 5977 | } |
d14a1e28 RD |
5978 | if (obj6) { |
5979 | { | |
5980 | arg7 = wxString_in_helper(obj6); | |
5981 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 5982 | temp7 = true; |
d14a1e28 RD |
5983 | } |
5984 | } | |
5985 | { | |
e3b71cb8 | 5986 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5988 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5989 | ||
5990 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5991 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5992 | } |
b0f7404b | 5993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
5994 | { |
5995 | if (temp3) | |
5996 | delete arg3; | |
5997 | } | |
5998 | { | |
5999 | if (temp7) | |
6000 | delete arg7; | |
6001 | } | |
6002 | return resultobj; | |
6003 | fail: | |
6004 | { | |
6005 | if (temp3) | |
6006 | delete arg3; | |
6007 | } | |
6008 | { | |
6009 | if (temp7) | |
6010 | delete arg7; | |
6011 | } | |
6012 | return NULL; | |
6013 | } | |
6014 | ||
6015 | ||
c32bde28 | 6016 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6017 | PyObject *resultobj; |
6018 | wxStaticBox *result; | |
6019 | char *kwnames[] = { | |
6020 | NULL | |
6021 | }; | |
6022 | ||
6023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
6024 | { | |
e3b71cb8 | 6025 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6027 | result = (wxStaticBox *)new wxStaticBox(); | |
6028 | ||
6029 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6030 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6031 | } |
b0f7404b | 6032 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
6033 | return resultobj; |
6034 | fail: | |
6035 | return NULL; | |
6036 | } | |
6037 | ||
6038 | ||
c32bde28 | 6039 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6040 | PyObject *resultobj; |
6041 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
6042 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6043 | int arg3 = (int) -1 ; |
6044 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6045 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
6046 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6047 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6048 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6049 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6050 | long arg7 = (long) 0 ; | |
6051 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
6052 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6053 | bool result; | |
ae8162c8 | 6054 | bool temp4 = false ; |
d14a1e28 RD |
6055 | wxPoint temp5 ; |
6056 | wxSize temp6 ; | |
ae8162c8 | 6057 | bool temp8 = false ; |
d14a1e28 RD |
6058 | PyObject * obj0 = 0 ; |
6059 | PyObject * obj1 = 0 ; | |
994141e6 | 6060 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6061 | PyObject * obj3 = 0 ; |
6062 | PyObject * obj4 = 0 ; | |
6063 | PyObject * obj5 = 0 ; | |
994141e6 | 6064 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6065 | PyObject * obj7 = 0 ; |
6066 | char *kwnames[] = { | |
6067 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6068 | }; | |
6069 | ||
248ed943 | 6070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6071 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
6072 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6073 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6074 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6075 | if (obj2) { |
093d3ff1 RD |
6076 | { |
6077 | arg3 = (int)(SWIG_As_int(obj2)); | |
6078 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6079 | } | |
248ed943 RD |
6080 | } |
6081 | if (obj3) { | |
6082 | { | |
6083 | arg4 = wxString_in_helper(obj3); | |
6084 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6085 | temp4 = true; |
248ed943 | 6086 | } |
d14a1e28 RD |
6087 | } |
6088 | if (obj4) { | |
6089 | { | |
6090 | arg5 = &temp5; | |
6091 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6092 | } | |
6093 | } | |
6094 | if (obj5) { | |
6095 | { | |
6096 | arg6 = &temp6; | |
6097 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6098 | } | |
6099 | } | |
994141e6 | 6100 | if (obj6) { |
093d3ff1 RD |
6101 | { |
6102 | arg7 = (long)(SWIG_As_long(obj6)); | |
6103 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6104 | } | |
994141e6 | 6105 | } |
d14a1e28 RD |
6106 | if (obj7) { |
6107 | { | |
6108 | arg8 = wxString_in_helper(obj7); | |
6109 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6110 | temp8 = true; |
d14a1e28 RD |
6111 | } |
6112 | } | |
6113 | { | |
6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6115 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6116 | ||
6117 | wxPyEndAllowThreads(__tstate); | |
6118 | if (PyErr_Occurred()) SWIG_fail; | |
6119 | } | |
4f89f6a3 RD |
6120 | { |
6121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6122 | } | |
d14a1e28 RD |
6123 | { |
6124 | if (temp4) | |
6125 | delete arg4; | |
6126 | } | |
6127 | { | |
6128 | if (temp8) | |
6129 | delete arg8; | |
6130 | } | |
6131 | return resultobj; | |
6132 | fail: | |
6133 | { | |
6134 | if (temp4) | |
6135 | delete arg4; | |
6136 | } | |
6137 | { | |
6138 | if (temp8) | |
6139 | delete arg8; | |
6140 | } | |
6141 | return NULL; | |
6142 | } | |
6143 | ||
6144 | ||
c32bde28 | 6145 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 6146 | PyObject *resultobj; |
093d3ff1 | 6147 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6148 | wxVisualAttributes result; |
6149 | PyObject * obj0 = 0 ; | |
6150 | char *kwnames[] = { | |
6151 | (char *) "variant", NULL | |
6152 | }; | |
6153 | ||
6154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6155 | if (obj0) { | |
093d3ff1 RD |
6156 | { |
6157 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6159 | } | |
22bfe96c RD |
6160 | } |
6161 | { | |
110da5b0 | 6162 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
6163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6164 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6165 | ||
6166 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6167 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6168 | } |
6169 | { | |
6170 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6171 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
6172 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6173 | } | |
6174 | return resultobj; | |
6175 | fail: | |
6176 | return NULL; | |
6177 | } | |
6178 | ||
6179 | ||
c32bde28 | 6180 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6181 | PyObject *obj; |
6182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6183 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
6184 | Py_INCREF(obj); | |
6185 | return Py_BuildValue((char *)""); | |
6186 | } | |
c32bde28 | 6187 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6188 | PyObject *resultobj; |
6189 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6190 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6191 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6192 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6193 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6194 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6195 | long arg5 = (long) wxLI_HORIZONTAL ; | |
6196 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
6197 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6198 | wxStaticLine *result; | |
6199 | wxPoint temp3 ; | |
6200 | wxSize temp4 ; | |
ae8162c8 | 6201 | bool temp6 = false ; |
d14a1e28 | 6202 | PyObject * obj0 = 0 ; |
994141e6 | 6203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6204 | PyObject * obj2 = 0 ; |
6205 | PyObject * obj3 = 0 ; | |
994141e6 | 6206 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
6207 | PyObject * obj5 = 0 ; |
6208 | char *kwnames[] = { | |
6209 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6210 | }; | |
6211 | ||
248ed943 | 6212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
6213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6215 | if (obj1) { |
093d3ff1 RD |
6216 | { |
6217 | arg2 = (int)(SWIG_As_int(obj1)); | |
6218 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6219 | } | |
248ed943 | 6220 | } |
d14a1e28 RD |
6221 | if (obj2) { |
6222 | { | |
6223 | arg3 = &temp3; | |
6224 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6225 | } | |
6226 | } | |
6227 | if (obj3) { | |
6228 | { | |
6229 | arg4 = &temp4; | |
6230 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6231 | } | |
6232 | } | |
994141e6 | 6233 | if (obj4) { |
093d3ff1 RD |
6234 | { |
6235 | arg5 = (long)(SWIG_As_long(obj4)); | |
6236 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6237 | } | |
994141e6 | 6238 | } |
d14a1e28 RD |
6239 | if (obj5) { |
6240 | { | |
6241 | arg6 = wxString_in_helper(obj5); | |
6242 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 6243 | temp6 = true; |
d14a1e28 RD |
6244 | } |
6245 | } | |
6246 | { | |
e3b71cb8 | 6247 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6249 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6250 | ||
6251 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6252 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6253 | } |
15afbcd0 | 6254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
6255 | { |
6256 | if (temp6) | |
6257 | delete arg6; | |
6258 | } | |
6259 | return resultobj; | |
6260 | fail: | |
6261 | { | |
6262 | if (temp6) | |
6263 | delete arg6; | |
6264 | } | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
c32bde28 | 6269 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6270 | PyObject *resultobj; |
6271 | wxStaticLine *result; | |
6272 | char *kwnames[] = { | |
6273 | NULL | |
6274 | }; | |
6275 | ||
6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
6277 | { | |
e3b71cb8 | 6278 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6280 | result = (wxStaticLine *)new wxStaticLine(); | |
6281 | ||
6282 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6283 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6284 | } |
15afbcd0 | 6285 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
6286 | return resultobj; |
6287 | fail: | |
6288 | return NULL; | |
6289 | } | |
6290 | ||
6291 | ||
c32bde28 | 6292 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6293 | PyObject *resultobj; |
6294 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6295 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6296 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6297 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6298 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6299 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6300 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6301 | long arg6 = (long) wxLI_HORIZONTAL ; | |
6302 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6303 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6304 | bool result; | |
6305 | wxPoint temp4 ; | |
6306 | wxSize temp5 ; | |
ae8162c8 | 6307 | bool temp7 = false ; |
d14a1e28 RD |
6308 | PyObject * obj0 = 0 ; |
6309 | PyObject * obj1 = 0 ; | |
994141e6 | 6310 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6311 | PyObject * obj3 = 0 ; |
6312 | PyObject * obj4 = 0 ; | |
994141e6 | 6313 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6314 | PyObject * obj6 = 0 ; |
6315 | char *kwnames[] = { | |
6316 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6317 | }; | |
6318 | ||
248ed943 | 6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6322 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6323 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6324 | if (obj2) { |
093d3ff1 RD |
6325 | { |
6326 | arg3 = (int)(SWIG_As_int(obj2)); | |
6327 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6328 | } | |
248ed943 | 6329 | } |
d14a1e28 RD |
6330 | if (obj3) { |
6331 | { | |
6332 | arg4 = &temp4; | |
6333 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6334 | } | |
6335 | } | |
6336 | if (obj4) { | |
6337 | { | |
6338 | arg5 = &temp5; | |
6339 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6340 | } | |
6341 | } | |
994141e6 | 6342 | if (obj5) { |
093d3ff1 RD |
6343 | { |
6344 | arg6 = (long)(SWIG_As_long(obj5)); | |
6345 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6346 | } | |
994141e6 | 6347 | } |
d14a1e28 RD |
6348 | if (obj6) { |
6349 | { | |
6350 | arg7 = wxString_in_helper(obj6); | |
6351 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6352 | temp7 = true; |
d14a1e28 RD |
6353 | } |
6354 | } | |
6355 | { | |
6356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6357 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6358 | ||
6359 | wxPyEndAllowThreads(__tstate); | |
6360 | if (PyErr_Occurred()) SWIG_fail; | |
6361 | } | |
4f89f6a3 RD |
6362 | { |
6363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6364 | } | |
d14a1e28 RD |
6365 | { |
6366 | if (temp7) | |
6367 | delete arg7; | |
6368 | } | |
6369 | return resultobj; | |
6370 | fail: | |
6371 | { | |
6372 | if (temp7) | |
6373 | delete arg7; | |
6374 | } | |
6375 | return NULL; | |
6376 | } | |
6377 | ||
6378 | ||
c32bde28 | 6379 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6380 | PyObject *resultobj; |
6381 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6382 | bool result; | |
6383 | PyObject * obj0 = 0 ; | |
6384 | char *kwnames[] = { | |
6385 | (char *) "self", NULL | |
6386 | }; | |
6387 | ||
6388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6391 | { |
6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6393 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
6394 | ||
6395 | wxPyEndAllowThreads(__tstate); | |
6396 | if (PyErr_Occurred()) SWIG_fail; | |
6397 | } | |
4f89f6a3 RD |
6398 | { |
6399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6400 | } | |
d14a1e28 RD |
6401 | return resultobj; |
6402 | fail: | |
6403 | return NULL; | |
6404 | } | |
6405 | ||
6406 | ||
c32bde28 | 6407 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6408 | PyObject *resultobj; |
6409 | int result; | |
6410 | char *kwnames[] = { | |
6411 | NULL | |
6412 | }; | |
6413 | ||
6414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
6415 | { | |
6416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6417 | result = (int)wxStaticLine::GetDefaultSize(); | |
6418 | ||
6419 | wxPyEndAllowThreads(__tstate); | |
6420 | if (PyErr_Occurred()) SWIG_fail; | |
6421 | } | |
093d3ff1 RD |
6422 | { |
6423 | resultobj = SWIG_From_int((int)(result)); | |
6424 | } | |
d14a1e28 RD |
6425 | return resultobj; |
6426 | fail: | |
6427 | return NULL; | |
6428 | } | |
6429 | ||
6430 | ||
c32bde28 | 6431 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 6432 | PyObject *resultobj; |
093d3ff1 | 6433 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6434 | wxVisualAttributes result; |
6435 | PyObject * obj0 = 0 ; | |
6436 | char *kwnames[] = { | |
6437 | (char *) "variant", NULL | |
6438 | }; | |
6439 | ||
6440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6441 | if (obj0) { | |
093d3ff1 RD |
6442 | { |
6443 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6445 | } | |
22bfe96c RD |
6446 | } |
6447 | { | |
110da5b0 | 6448 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
6449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6450 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6451 | ||
6452 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6453 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6454 | } |
6455 | { | |
6456 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6457 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
6458 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6459 | } | |
6460 | return resultobj; | |
6461 | fail: | |
6462 | return NULL; | |
6463 | } | |
6464 | ||
6465 | ||
c32bde28 | 6466 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6467 | PyObject *obj; |
6468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6469 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
6470 | Py_INCREF(obj); | |
6471 | return Py_BuildValue((char *)""); | |
6472 | } | |
c32bde28 | 6473 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6474 | PyObject *resultobj; |
6475 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
6476 | int arg2 = (int) -1 ; |
6477 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6478 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
6479 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6480 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6481 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6482 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6483 | long arg6 = (long) 0 ; | |
6484 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6485 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6486 | wxStaticText *result; | |
ae8162c8 | 6487 | bool temp3 = false ; |
d14a1e28 RD |
6488 | wxPoint temp4 ; |
6489 | wxSize temp5 ; | |
ae8162c8 | 6490 | bool temp7 = false ; |
d14a1e28 | 6491 | PyObject * obj0 = 0 ; |
994141e6 | 6492 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6493 | PyObject * obj2 = 0 ; |
6494 | PyObject * obj3 = 0 ; | |
6495 | PyObject * obj4 = 0 ; | |
994141e6 | 6496 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6497 | PyObject * obj6 = 0 ; |
6498 | char *kwnames[] = { | |
6499 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6500 | }; | |
6501 | ||
248ed943 | 6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6505 | if (obj1) { |
093d3ff1 RD |
6506 | { |
6507 | arg2 = (int)(SWIG_As_int(obj1)); | |
6508 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6509 | } | |
248ed943 RD |
6510 | } |
6511 | if (obj2) { | |
6512 | { | |
6513 | arg3 = wxString_in_helper(obj2); | |
6514 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6515 | temp3 = true; |
248ed943 | 6516 | } |
d14a1e28 RD |
6517 | } |
6518 | if (obj3) { | |
6519 | { | |
6520 | arg4 = &temp4; | |
6521 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6522 | } | |
6523 | } | |
6524 | if (obj4) { | |
6525 | { | |
6526 | arg5 = &temp5; | |
6527 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6528 | } | |
6529 | } | |
994141e6 | 6530 | if (obj5) { |
093d3ff1 RD |
6531 | { |
6532 | arg6 = (long)(SWIG_As_long(obj5)); | |
6533 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6534 | } | |
994141e6 | 6535 | } |
d14a1e28 RD |
6536 | if (obj6) { |
6537 | { | |
6538 | arg7 = wxString_in_helper(obj6); | |
6539 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6540 | temp7 = true; |
d14a1e28 RD |
6541 | } |
6542 | } | |
6543 | { | |
e3b71cb8 | 6544 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6546 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6547 | ||
6548 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6549 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6550 | } |
15afbcd0 | 6551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
6552 | { |
6553 | if (temp3) | |
6554 | delete arg3; | |
6555 | } | |
6556 | { | |
6557 | if (temp7) | |
6558 | delete arg7; | |
6559 | } | |
6560 | return resultobj; | |
6561 | fail: | |
6562 | { | |
6563 | if (temp3) | |
6564 | delete arg3; | |
6565 | } | |
6566 | { | |
6567 | if (temp7) | |
6568 | delete arg7; | |
6569 | } | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
c32bde28 | 6574 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6575 | PyObject *resultobj; |
6576 | wxStaticText *result; | |
6577 | char *kwnames[] = { | |
6578 | NULL | |
6579 | }; | |
6580 | ||
6581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
6582 | { | |
e3b71cb8 | 6583 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6585 | result = (wxStaticText *)new wxStaticText(); | |
6586 | ||
6587 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6588 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6589 | } |
15afbcd0 | 6590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
6591 | return resultobj; |
6592 | fail: | |
6593 | return NULL; | |
6594 | } | |
6595 | ||
6596 | ||
c32bde28 | 6597 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6598 | PyObject *resultobj; |
6599 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
6600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6601 | int arg3 = (int) -1 ; |
6602 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6603 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
6604 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6605 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6606 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6607 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6608 | long arg7 = (long) 0 ; | |
6609 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
6610 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6611 | bool result; | |
ae8162c8 | 6612 | bool temp4 = false ; |
d14a1e28 RD |
6613 | wxPoint temp5 ; |
6614 | wxSize temp6 ; | |
ae8162c8 | 6615 | bool temp8 = false ; |
d14a1e28 RD |
6616 | PyObject * obj0 = 0 ; |
6617 | PyObject * obj1 = 0 ; | |
994141e6 | 6618 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6619 | PyObject * obj3 = 0 ; |
6620 | PyObject * obj4 = 0 ; | |
6621 | PyObject * obj5 = 0 ; | |
994141e6 | 6622 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6623 | PyObject * obj7 = 0 ; |
6624 | char *kwnames[] = { | |
6625 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6626 | }; | |
6627 | ||
248ed943 | 6628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); |
6630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6631 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6632 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6633 | if (obj2) { |
093d3ff1 RD |
6634 | { |
6635 | arg3 = (int)(SWIG_As_int(obj2)); | |
6636 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6637 | } | |
248ed943 RD |
6638 | } |
6639 | if (obj3) { | |
6640 | { | |
6641 | arg4 = wxString_in_helper(obj3); | |
6642 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6643 | temp4 = true; |
248ed943 | 6644 | } |
d14a1e28 RD |
6645 | } |
6646 | if (obj4) { | |
6647 | { | |
6648 | arg5 = &temp5; | |
6649 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6650 | } | |
6651 | } | |
6652 | if (obj5) { | |
6653 | { | |
6654 | arg6 = &temp6; | |
6655 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6656 | } | |
6657 | } | |
994141e6 | 6658 | if (obj6) { |
093d3ff1 RD |
6659 | { |
6660 | arg7 = (long)(SWIG_As_long(obj6)); | |
6661 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6662 | } | |
994141e6 | 6663 | } |
d14a1e28 RD |
6664 | if (obj7) { |
6665 | { | |
6666 | arg8 = wxString_in_helper(obj7); | |
6667 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6668 | temp8 = true; |
d14a1e28 RD |
6669 | } |
6670 | } | |
6671 | { | |
6672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6673 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6674 | ||
6675 | wxPyEndAllowThreads(__tstate); | |
6676 | if (PyErr_Occurred()) SWIG_fail; | |
6677 | } | |
4f89f6a3 RD |
6678 | { |
6679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6680 | } | |
d14a1e28 RD |
6681 | { |
6682 | if (temp4) | |
6683 | delete arg4; | |
6684 | } | |
6685 | { | |
6686 | if (temp8) | |
6687 | delete arg8; | |
6688 | } | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | { | |
6692 | if (temp4) | |
6693 | delete arg4; | |
6694 | } | |
6695 | { | |
6696 | if (temp8) | |
6697 | delete arg8; | |
6698 | } | |
6699 | return NULL; | |
6700 | } | |
6701 | ||
6702 | ||
c32bde28 | 6703 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 6704 | PyObject *resultobj; |
093d3ff1 | 6705 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6706 | wxVisualAttributes result; |
6707 | PyObject * obj0 = 0 ; | |
6708 | char *kwnames[] = { | |
6709 | (char *) "variant", NULL | |
6710 | }; | |
6711 | ||
6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6713 | if (obj0) { | |
093d3ff1 RD |
6714 | { |
6715 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6717 | } | |
22bfe96c RD |
6718 | } |
6719 | { | |
110da5b0 | 6720 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6722 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6723 | ||
6724 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6725 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6726 | } |
6727 | { | |
6728 | wxVisualAttributes * resultptr; | |
093d3ff1 | 6729 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
6730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6731 | } | |
6732 | return resultobj; | |
6733 | fail: | |
6734 | return NULL; | |
6735 | } | |
6736 | ||
6737 | ||
c32bde28 | 6738 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6739 | PyObject *obj; |
6740 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6741 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
6742 | Py_INCREF(obj); | |
6743 | return Py_BuildValue((char *)""); | |
6744 | } | |
c32bde28 | 6745 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6746 | PyObject *resultobj; |
6747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
6748 | int arg2 = (int) -1 ; |
6749 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
6750 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
6751 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6752 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6753 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6754 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6755 | long arg6 = (long) 0 ; | |
6756 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
6757 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6758 | wxStaticBitmap *result; | |
6759 | wxPoint temp4 ; | |
6760 | wxSize temp5 ; | |
ae8162c8 | 6761 | bool temp7 = false ; |
d14a1e28 | 6762 | PyObject * obj0 = 0 ; |
994141e6 | 6763 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6764 | PyObject * obj2 = 0 ; |
6765 | PyObject * obj3 = 0 ; | |
6766 | PyObject * obj4 = 0 ; | |
994141e6 | 6767 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6768 | PyObject * obj6 = 0 ; |
6769 | char *kwnames[] = { | |
6770 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6771 | }; | |
6772 | ||
248ed943 | 6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6774 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6775 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6776 | if (obj1) { |
093d3ff1 RD |
6777 | { |
6778 | arg2 = (int)(SWIG_As_int(obj1)); | |
6779 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6780 | } | |
248ed943 RD |
6781 | } |
6782 | if (obj2) { | |
093d3ff1 RD |
6783 | { |
6784 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6785 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6786 | if (arg3 == NULL) { | |
6787 | SWIG_null_ref("wxBitmap"); | |
6788 | } | |
6789 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 6790 | } |
d14a1e28 RD |
6791 | } |
6792 | if (obj3) { | |
6793 | { | |
6794 | arg4 = &temp4; | |
6795 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6796 | } | |
6797 | } | |
6798 | if (obj4) { | |
6799 | { | |
6800 | arg5 = &temp5; | |
6801 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6802 | } | |
6803 | } | |
994141e6 | 6804 | if (obj5) { |
093d3ff1 RD |
6805 | { |
6806 | arg6 = (long)(SWIG_As_long(obj5)); | |
6807 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6808 | } | |
994141e6 | 6809 | } |
d14a1e28 RD |
6810 | if (obj6) { |
6811 | { | |
6812 | arg7 = wxString_in_helper(obj6); | |
6813 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6814 | temp7 = true; |
d14a1e28 RD |
6815 | } |
6816 | } | |
6817 | { | |
e3b71cb8 | 6818 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6820 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6821 | ||
6822 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6823 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6824 | } |
15afbcd0 | 6825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
6826 | { |
6827 | if (temp7) | |
6828 | delete arg7; | |
6829 | } | |
6830 | return resultobj; | |
6831 | fail: | |
6832 | { | |
6833 | if (temp7) | |
6834 | delete arg7; | |
6835 | } | |
6836 | return NULL; | |
6837 | } | |
6838 | ||
6839 | ||
c32bde28 | 6840 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6841 | PyObject *resultobj; |
6842 | wxStaticBitmap *result; | |
6843 | char *kwnames[] = { | |
6844 | NULL | |
6845 | }; | |
6846 | ||
6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
6848 | { | |
e3b71cb8 | 6849 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6851 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
6852 | ||
6853 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6854 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6855 | } |
15afbcd0 | 6856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
6857 | return resultobj; |
6858 | fail: | |
6859 | return NULL; | |
6860 | } | |
6861 | ||
6862 | ||
c32bde28 | 6863 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6864 | PyObject *resultobj; |
6865 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6866 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6867 | int arg3 = (int) -1 ; |
6868 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
6869 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
6870 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6871 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6872 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6873 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6874 | long arg7 = (long) 0 ; | |
6875 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
6876 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6877 | bool result; | |
6878 | wxPoint temp5 ; | |
6879 | wxSize temp6 ; | |
ae8162c8 | 6880 | bool temp8 = false ; |
d14a1e28 RD |
6881 | PyObject * obj0 = 0 ; |
6882 | PyObject * obj1 = 0 ; | |
994141e6 | 6883 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6884 | PyObject * obj3 = 0 ; |
6885 | PyObject * obj4 = 0 ; | |
6886 | PyObject * obj5 = 0 ; | |
994141e6 | 6887 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6888 | PyObject * obj7 = 0 ; |
6889 | char *kwnames[] = { | |
6890 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6891 | }; | |
6892 | ||
248ed943 | 6893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
6895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6896 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6897 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6898 | if (obj2) { |
093d3ff1 RD |
6899 | { |
6900 | arg3 = (int)(SWIG_As_int(obj2)); | |
6901 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6902 | } | |
248ed943 RD |
6903 | } |
6904 | if (obj3) { | |
093d3ff1 RD |
6905 | { |
6906 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6907 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6908 | if (arg4 == NULL) { | |
6909 | SWIG_null_ref("wxBitmap"); | |
6910 | } | |
6911 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 6912 | } |
d14a1e28 RD |
6913 | } |
6914 | if (obj4) { | |
6915 | { | |
6916 | arg5 = &temp5; | |
6917 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6918 | } | |
6919 | } | |
6920 | if (obj5) { | |
6921 | { | |
6922 | arg6 = &temp6; | |
6923 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6924 | } | |
6925 | } | |
994141e6 | 6926 | if (obj6) { |
093d3ff1 RD |
6927 | { |
6928 | arg7 = (long)(SWIG_As_long(obj6)); | |
6929 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6930 | } | |
994141e6 | 6931 | } |
d14a1e28 RD |
6932 | if (obj7) { |
6933 | { | |
6934 | arg8 = wxString_in_helper(obj7); | |
6935 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6936 | temp8 = true; |
d14a1e28 RD |
6937 | } |
6938 | } | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6942 | ||
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
4f89f6a3 RD |
6946 | { |
6947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6948 | } | |
d14a1e28 RD |
6949 | { |
6950 | if (temp8) | |
6951 | delete arg8; | |
6952 | } | |
6953 | return resultobj; | |
6954 | fail: | |
6955 | { | |
6956 | if (temp8) | |
6957 | delete arg8; | |
6958 | } | |
6959 | return NULL; | |
6960 | } | |
6961 | ||
6962 | ||
c32bde28 | 6963 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6964 | PyObject *resultobj; |
6965 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6966 | wxBitmap result; | |
6967 | PyObject * obj0 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "self", NULL | |
6970 | }; | |
6971 | ||
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
6974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6975 | { |
6976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6977 | result = (arg1)->GetBitmap(); | |
6978 | ||
6979 | wxPyEndAllowThreads(__tstate); | |
6980 | if (PyErr_Occurred()) SWIG_fail; | |
6981 | } | |
6982 | { | |
6983 | wxBitmap * resultptr; | |
093d3ff1 | 6984 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 6985 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
6986 | } |
6987 | return resultobj; | |
6988 | fail: | |
6989 | return NULL; | |
6990 | } | |
6991 | ||
6992 | ||
c32bde28 | 6993 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6994 | PyObject *resultobj; |
6995 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6996 | wxBitmap *arg2 = 0 ; | |
6997 | PyObject * obj0 = 0 ; | |
6998 | PyObject * obj1 = 0 ; | |
6999 | char *kwnames[] = { | |
7000 | (char *) "self",(char *) "bitmap", NULL | |
7001 | }; | |
7002 | ||
7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7006 | { | |
7007 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7008 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7009 | if (arg2 == NULL) { | |
7010 | SWIG_null_ref("wxBitmap"); | |
7011 | } | |
7012 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7013 | } |
7014 | { | |
7015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7016 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
7017 | ||
7018 | wxPyEndAllowThreads(__tstate); | |
7019 | if (PyErr_Occurred()) SWIG_fail; | |
7020 | } | |
7021 | Py_INCREF(Py_None); resultobj = Py_None; | |
7022 | return resultobj; | |
7023 | fail: | |
7024 | return NULL; | |
7025 | } | |
7026 | ||
7027 | ||
c32bde28 | 7028 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7029 | PyObject *resultobj; |
7030 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
7031 | wxIcon *arg2 = 0 ; | |
7032 | PyObject * obj0 = 0 ; | |
7033 | PyObject * obj1 = 0 ; | |
7034 | char *kwnames[] = { | |
7035 | (char *) "self",(char *) "icon", NULL | |
7036 | }; | |
7037 | ||
7038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7041 | { | |
7042 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
7043 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7044 | if (arg2 == NULL) { | |
7045 | SWIG_null_ref("wxIcon"); | |
7046 | } | |
7047 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7048 | } |
7049 | { | |
7050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7051 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
7052 | ||
7053 | wxPyEndAllowThreads(__tstate); | |
7054 | if (PyErr_Occurred()) SWIG_fail; | |
7055 | } | |
7056 | Py_INCREF(Py_None); resultobj = Py_None; | |
7057 | return resultobj; | |
7058 | fail: | |
7059 | return NULL; | |
7060 | } | |
7061 | ||
7062 | ||
c32bde28 | 7063 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 7064 | PyObject *resultobj; |
093d3ff1 | 7065 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
7066 | wxVisualAttributes result; |
7067 | PyObject * obj0 = 0 ; | |
7068 | char *kwnames[] = { | |
7069 | (char *) "variant", NULL | |
7070 | }; | |
7071 | ||
7072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
7073 | if (obj0) { | |
093d3ff1 RD |
7074 | { |
7075 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
7076 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7077 | } | |
22bfe96c RD |
7078 | } |
7079 | { | |
110da5b0 | 7080 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
7081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7082 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
7083 | ||
7084 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 7085 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
7086 | } |
7087 | { | |
7088 | wxVisualAttributes * resultptr; | |
093d3ff1 | 7089 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
7090 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
7091 | } | |
7092 | return resultobj; | |
7093 | fail: | |
7094 | return NULL; | |
7095 | } | |
7096 | ||
7097 | ||
c32bde28 | 7098 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7099 | PyObject *obj; |
7100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7101 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
7102 | Py_INCREF(obj); | |
7103 | return Py_BuildValue((char *)""); | |
7104 | } | |
c32bde28 | 7105 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
7106 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
7107 | return 1; | |
7108 | } | |
7109 | ||
7110 | ||
093d3ff1 | 7111 | static PyObject *_wrap_ListBoxNameStr_get(void) { |
b2dc1044 RD |
7112 | PyObject *pyobj; |
7113 | ||
7114 | { | |
7115 | #if wxUSE_UNICODE | |
7116 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7117 | #else | |
7118 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7119 | #endif | |
7120 | } | |
7121 | return pyobj; | |
7122 | } | |
7123 | ||
7124 | ||
c32bde28 | 7125 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7126 | PyObject *resultobj; |
7127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 7128 | int arg2 = (int) -1 ; |
d14a1e28 RD |
7129 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7130 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7131 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7132 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
7133 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
7134 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
7135 | long arg6 = (long) 0 ; | |
7136 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7137 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7138 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
7139 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
7140 | wxListBox *result; |
7141 | wxPoint temp3 ; | |
7142 | wxSize temp4 ; | |
ae8162c8 RD |
7143 | bool temp5 = false ; |
7144 | bool temp8 = false ; | |
d14a1e28 | 7145 | PyObject * obj0 = 0 ; |
994141e6 | 7146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7147 | PyObject * obj2 = 0 ; |
7148 | PyObject * obj3 = 0 ; | |
7149 | PyObject * obj4 = 0 ; | |
994141e6 | 7150 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7151 | PyObject * obj6 = 0 ; |
7152 | PyObject * obj7 = 0 ; | |
7153 | char *kwnames[] = { | |
7154 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7155 | }; | |
7156 | ||
248ed943 | 7157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
7158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 7160 | if (obj1) { |
093d3ff1 RD |
7161 | { |
7162 | arg2 = (int)(SWIG_As_int(obj1)); | |
7163 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7164 | } | |
248ed943 | 7165 | } |
d14a1e28 RD |
7166 | if (obj2) { |
7167 | { | |
7168 | arg3 = &temp3; | |
7169 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7170 | } | |
7171 | } | |
7172 | if (obj3) { | |
7173 | { | |
7174 | arg4 = &temp4; | |
7175 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7176 | } | |
7177 | } | |
7178 | if (obj4) { | |
7179 | { | |
4d5c3d91 RD |
7180 | if (! PySequence_Check(obj4)) { |
7181 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7182 | SWIG_fail; | |
7183 | } | |
7184 | arg5 = new wxArrayString; | |
ae8162c8 | 7185 | temp5 = true; |
4d5c3d91 RD |
7186 | int i, len=PySequence_Length(obj4); |
7187 | for (i=0; i<len; i++) { | |
7188 | PyObject* item = PySequence_GetItem(obj4, i); | |
7189 | #if wxUSE_UNICODE | |
7190 | PyObject* str = PyObject_Unicode(item); | |
7191 | #else | |
7192 | PyObject* str = PyObject_Str(item); | |
7193 | #endif | |
74a57fcd | 7194 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
7195 | arg5->Add(Py2wxString(str)); |
7196 | Py_DECREF(item); | |
7197 | Py_DECREF(str); | |
7198 | } | |
d14a1e28 RD |
7199 | } |
7200 | } | |
994141e6 | 7201 | if (obj5) { |
093d3ff1 RD |
7202 | { |
7203 | arg6 = (long)(SWIG_As_long(obj5)); | |
7204 | if (SWIG_arg_fail(6)) SWIG_fail; | |
7205 | } | |
994141e6 | 7206 | } |
d14a1e28 | 7207 | if (obj6) { |
093d3ff1 RD |
7208 | { |
7209 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7210 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7211 | if (arg7 == NULL) { | |
7212 | SWIG_null_ref("wxValidator"); | |
7213 | } | |
7214 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
7215 | } |
7216 | } | |
7217 | if (obj7) { | |
7218 | { | |
4d5c3d91 RD |
7219 | arg8 = wxString_in_helper(obj7); |
7220 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7221 | temp8 = true; |
d14a1e28 RD |
7222 | } |
7223 | } | |
7224 | { | |
e3b71cb8 | 7225 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 7226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 7227 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
7228 | |
7229 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7230 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7231 | } |
15afbcd0 | 7232 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 7233 | { |
3adfb63b | 7234 | if (temp5) delete arg5; |
d14a1e28 RD |
7235 | } |
7236 | { | |
7237 | if (temp8) | |
4d5c3d91 | 7238 | delete arg8; |
d14a1e28 RD |
7239 | } |
7240 | return resultobj; | |
7241 | fail: | |
7242 | { | |
3adfb63b | 7243 | if (temp5) delete arg5; |
d14a1e28 RD |
7244 | } |
7245 | { | |
7246 | if (temp8) | |
4d5c3d91 | 7247 | delete arg8; |
d14a1e28 RD |
7248 | } |
7249 | return NULL; | |
7250 | } | |
7251 | ||
7252 | ||
c32bde28 | 7253 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7254 | PyObject *resultobj; |
7255 | wxListBox *result; | |
7256 | char *kwnames[] = { | |
7257 | NULL | |
7258 | }; | |
7259 | ||
7260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
7261 | { | |
e3b71cb8 | 7262 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7264 | result = (wxListBox *)new wxListBox(); | |
7265 | ||
7266 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7267 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7268 | } |
15afbcd0 | 7269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
7270 | return resultobj; |
7271 | fail: | |
7272 | return NULL; | |
7273 | } | |
7274 | ||
7275 | ||
c32bde28 | 7276 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7277 | PyObject *resultobj; |
7278 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7279 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 7280 | int arg3 = (int) -1 ; |
d14a1e28 RD |
7281 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7282 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7283 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7284 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
7285 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
7286 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7287 | long arg7 = (long) 0 ; | |
7288 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7289 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7290 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7291 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
7292 | bool result; |
7293 | wxPoint temp4 ; | |
7294 | wxSize temp5 ; | |
ae8162c8 RD |
7295 | bool temp6 = false ; |
7296 | bool temp9 = false ; | |
d14a1e28 RD |
7297 | PyObject * obj0 = 0 ; |
7298 | PyObject * obj1 = 0 ; | |
994141e6 | 7299 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7300 | PyObject * obj3 = 0 ; |
7301 | PyObject * obj4 = 0 ; | |
7302 | PyObject * obj5 = 0 ; | |
994141e6 | 7303 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7304 | PyObject * obj7 = 0 ; |
7305 | PyObject * obj8 = 0 ; | |
7306 | char *kwnames[] = { | |
7307 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7308 | }; | |
7309 | ||
248ed943 | 7310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
7311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7313 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7314 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 7315 | if (obj2) { |
093d3ff1 RD |
7316 | { |
7317 | arg3 = (int)(SWIG_As_int(obj2)); | |
7318 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7319 | } | |
248ed943 | 7320 | } |
d14a1e28 RD |
7321 | if (obj3) { |
7322 | { | |
7323 | arg4 = &temp4; | |
7324 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7325 | } | |
7326 | } | |
7327 | if (obj4) { | |
7328 | { | |
7329 | arg5 = &temp5; | |
7330 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7331 | } | |
7332 | } | |
7333 | if (obj5) { | |
7334 | { | |
4d5c3d91 RD |
7335 | if (! PySequence_Check(obj5)) { |
7336 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7337 | SWIG_fail; | |
7338 | } | |
7339 | arg6 = new wxArrayString; | |
ae8162c8 | 7340 | temp6 = true; |
4d5c3d91 RD |
7341 | int i, len=PySequence_Length(obj5); |
7342 | for (i=0; i<len; i++) { | |
7343 | PyObject* item = PySequence_GetItem(obj5, i); | |
7344 | #if wxUSE_UNICODE | |
7345 | PyObject* str = PyObject_Unicode(item); | |
7346 | #else | |
7347 | PyObject* str = PyObject_Str(item); | |
7348 | #endif | |
74a57fcd | 7349 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
7350 | arg6->Add(Py2wxString(str)); |
7351 | Py_DECREF(item); | |
7352 | Py_DECREF(str); | |
7353 | } | |
d14a1e28 RD |
7354 | } |
7355 | } | |
994141e6 | 7356 | if (obj6) { |
093d3ff1 RD |
7357 | { |
7358 | arg7 = (long)(SWIG_As_long(obj6)); | |
7359 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7360 | } | |
994141e6 | 7361 | } |
d14a1e28 | 7362 | if (obj7) { |
093d3ff1 RD |
7363 | { |
7364 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7365 | if (SWIG_arg_fail(8)) SWIG_fail; | |
7366 | if (arg8 == NULL) { | |
7367 | SWIG_null_ref("wxValidator"); | |
7368 | } | |
7369 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
7370 | } |
7371 | } | |
7372 | if (obj8) { | |
7373 | { | |
4d5c3d91 RD |
7374 | arg9 = wxString_in_helper(obj8); |
7375 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 7376 | temp9 = true; |
d14a1e28 RD |
7377 | } |
7378 | } | |
7379 | { | |
7380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 7381 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
7382 | |
7383 | wxPyEndAllowThreads(__tstate); | |
7384 | if (PyErr_Occurred()) SWIG_fail; | |
7385 | } | |
4f89f6a3 RD |
7386 | { |
7387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7388 | } | |
d14a1e28 | 7389 | { |
3adfb63b | 7390 | if (temp6) delete arg6; |
d14a1e28 RD |
7391 | } |
7392 | { | |
7393 | if (temp9) | |
4d5c3d91 | 7394 | delete arg9; |
d14a1e28 RD |
7395 | } |
7396 | return resultobj; | |
7397 | fail: | |
7398 | { | |
3adfb63b | 7399 | if (temp6) delete arg6; |
d14a1e28 RD |
7400 | } |
7401 | { | |
7402 | if (temp9) | |
4d5c3d91 | 7403 | delete arg9; |
d14a1e28 RD |
7404 | } |
7405 | return NULL; | |
7406 | } | |
7407 | ||
7408 | ||
c32bde28 | 7409 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7410 | PyObject *resultobj; |
7411 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7412 | wxString *arg2 = 0 ; | |
7413 | int arg3 ; | |
7414 | PyObject *arg4 = (PyObject *) NULL ; | |
ae8162c8 | 7415 | bool temp2 = false ; |
d14a1e28 RD |
7416 | PyObject * obj0 = 0 ; |
7417 | PyObject * obj1 = 0 ; | |
994141e6 | 7418 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7419 | PyObject * obj3 = 0 ; |
7420 | char *kwnames[] = { | |
7421 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
7422 | }; | |
7423 | ||
994141e6 | 7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
7425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7427 | { |
7428 | arg2 = wxString_in_helper(obj1); | |
7429 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7430 | temp2 = true; |
d14a1e28 | 7431 | } |
093d3ff1 RD |
7432 | { |
7433 | arg3 = (int)(SWIG_As_int(obj2)); | |
7434 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7435 | } | |
d14a1e28 RD |
7436 | if (obj3) { |
7437 | arg4 = obj3; | |
7438 | } | |
7439 | { | |
7440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7441 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
7442 | ||
7443 | wxPyEndAllowThreads(__tstate); | |
7444 | if (PyErr_Occurred()) SWIG_fail; | |
7445 | } | |
7446 | Py_INCREF(Py_None); resultobj = Py_None; | |
7447 | { | |
7448 | if (temp2) | |
7449 | delete arg2; | |
7450 | } | |
7451 | return resultobj; | |
7452 | fail: | |
7453 | { | |
7454 | if (temp2) | |
7455 | delete arg2; | |
7456 | } | |
7457 | return NULL; | |
7458 | } | |
7459 | ||
7460 | ||
c32bde28 | 7461 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7462 | PyObject *resultobj; |
7463 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7464 | wxArrayString *arg2 = 0 ; | |
7465 | int arg3 ; | |
ae8162c8 | 7466 | bool temp2 = false ; |
d14a1e28 RD |
7467 | PyObject * obj0 = 0 ; |
7468 | PyObject * obj1 = 0 ; | |
994141e6 | 7469 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7470 | char *kwnames[] = { |
7471 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
7472 | }; | |
7473 | ||
994141e6 | 7474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7477 | { |
7478 | if (! PySequence_Check(obj1)) { | |
7479 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7480 | SWIG_fail; | |
7481 | } | |
7482 | arg2 = new wxArrayString; | |
ae8162c8 | 7483 | temp2 = true; |
d14a1e28 RD |
7484 | int i, len=PySequence_Length(obj1); |
7485 | for (i=0; i<len; i++) { | |
7486 | PyObject* item = PySequence_GetItem(obj1, i); | |
7487 | #if wxUSE_UNICODE | |
7488 | PyObject* str = PyObject_Unicode(item); | |
7489 | #else | |
7490 | PyObject* str = PyObject_Str(item); | |
7491 | #endif | |
74a57fcd | 7492 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7493 | arg2->Add(Py2wxString(str)); |
7494 | Py_DECREF(item); | |
7495 | Py_DECREF(str); | |
7496 | } | |
7497 | } | |
093d3ff1 RD |
7498 | { |
7499 | arg3 = (int)(SWIG_As_int(obj2)); | |
7500 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7501 | } | |
d14a1e28 RD |
7502 | { |
7503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7504 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
7505 | ||
7506 | wxPyEndAllowThreads(__tstate); | |
7507 | if (PyErr_Occurred()) SWIG_fail; | |
7508 | } | |
7509 | Py_INCREF(Py_None); resultobj = Py_None; | |
7510 | { | |
3adfb63b | 7511 | if (temp2) delete arg2; |
d14a1e28 RD |
7512 | } |
7513 | return resultobj; | |
7514 | fail: | |
7515 | { | |
3adfb63b | 7516 | if (temp2) delete arg2; |
d14a1e28 RD |
7517 | } |
7518 | return NULL; | |
7519 | } | |
7520 | ||
7521 | ||
c32bde28 | 7522 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7523 | PyObject *resultobj; |
7524 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7525 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 7526 | bool temp2 = false ; |
d14a1e28 RD |
7527 | PyObject * obj0 = 0 ; |
7528 | PyObject * obj1 = 0 ; | |
7529 | char *kwnames[] = { | |
7530 | (char *) "self",(char *) "items", NULL | |
7531 | }; | |
7532 | ||
7533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7536 | { |
7537 | if (! PySequence_Check(obj1)) { | |
7538 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7539 | SWIG_fail; | |
7540 | } | |
7541 | arg2 = new wxArrayString; | |
ae8162c8 | 7542 | temp2 = true; |
d14a1e28 RD |
7543 | int i, len=PySequence_Length(obj1); |
7544 | for (i=0; i<len; i++) { | |
7545 | PyObject* item = PySequence_GetItem(obj1, i); | |
7546 | #if wxUSE_UNICODE | |
7547 | PyObject* str = PyObject_Unicode(item); | |
7548 | #else | |
7549 | PyObject* str = PyObject_Str(item); | |
7550 | #endif | |
74a57fcd | 7551 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
7552 | arg2->Add(Py2wxString(str)); |
7553 | Py_DECREF(item); | |
7554 | Py_DECREF(str); | |
7555 | } | |
7556 | } | |
7557 | { | |
7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7559 | (arg1)->Set((wxArrayString const &)*arg2); | |
7560 | ||
7561 | wxPyEndAllowThreads(__tstate); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
7564 | Py_INCREF(Py_None); resultobj = Py_None; | |
7565 | { | |
3adfb63b | 7566 | if (temp2) delete arg2; |
d14a1e28 RD |
7567 | } |
7568 | return resultobj; | |
7569 | fail: | |
7570 | { | |
3adfb63b | 7571 | if (temp2) delete arg2; |
d14a1e28 RD |
7572 | } |
7573 | return NULL; | |
7574 | } | |
7575 | ||
7576 | ||
c32bde28 | 7577 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7578 | PyObject *resultobj; |
7579 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7580 | int arg2 ; | |
7581 | bool result; | |
7582 | PyObject * obj0 = 0 ; | |
994141e6 | 7583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7584 | char *kwnames[] = { |
7585 | (char *) "self",(char *) "n", NULL | |
7586 | }; | |
7587 | ||
994141e6 | 7588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7591 | { | |
7592 | arg2 = (int)(SWIG_As_int(obj1)); | |
7593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7594 | } | |
d14a1e28 RD |
7595 | { |
7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7597 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
7598 | ||
7599 | wxPyEndAllowThreads(__tstate); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | } | |
4f89f6a3 RD |
7602 | { |
7603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7604 | } | |
d14a1e28 RD |
7605 | return resultobj; |
7606 | fail: | |
7607 | return NULL; | |
7608 | } | |
7609 | ||
7610 | ||
c32bde28 | 7611 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7612 | PyObject *resultobj; |
7613 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7614 | int arg2 ; | |
ae8162c8 | 7615 | bool arg3 = (bool) true ; |
d14a1e28 | 7616 | PyObject * obj0 = 0 ; |
994141e6 | 7617 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7618 | PyObject * obj2 = 0 ; |
7619 | char *kwnames[] = { | |
7620 | (char *) "self",(char *) "n",(char *) "select", NULL | |
7621 | }; | |
7622 | ||
994141e6 | 7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7626 | { | |
7627 | arg2 = (int)(SWIG_As_int(obj1)); | |
7628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7629 | } | |
d14a1e28 | 7630 | if (obj2) { |
093d3ff1 RD |
7631 | { |
7632 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7633 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7634 | } | |
d14a1e28 RD |
7635 | } |
7636 | { | |
7637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7638 | (arg1)->SetSelection(arg2,arg3); | |
7639 | ||
7640 | wxPyEndAllowThreads(__tstate); | |
7641 | if (PyErr_Occurred()) SWIG_fail; | |
7642 | } | |
7643 | Py_INCREF(Py_None); resultobj = Py_None; | |
7644 | return resultobj; | |
7645 | fail: | |
7646 | return NULL; | |
7647 | } | |
7648 | ||
7649 | ||
c32bde28 | 7650 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7651 | PyObject *resultobj; |
7652 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7653 | int arg2 ; | |
7654 | PyObject * obj0 = 0 ; | |
994141e6 | 7655 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7656 | char *kwnames[] = { |
7657 | (char *) "self",(char *) "n", NULL | |
7658 | }; | |
7659 | ||
994141e6 | 7660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7663 | { | |
7664 | arg2 = (int)(SWIG_As_int(obj1)); | |
7665 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7666 | } | |
d14a1e28 RD |
7667 | { |
7668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7669 | (arg1)->Select(arg2); | |
7670 | ||
7671 | wxPyEndAllowThreads(__tstate); | |
7672 | if (PyErr_Occurred()) SWIG_fail; | |
7673 | } | |
7674 | Py_INCREF(Py_None); resultobj = Py_None; | |
7675 | return resultobj; | |
7676 | fail: | |
7677 | return NULL; | |
7678 | } | |
7679 | ||
7680 | ||
c32bde28 | 7681 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7682 | PyObject *resultobj; |
7683 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7684 | int arg2 ; | |
7685 | PyObject * obj0 = 0 ; | |
994141e6 | 7686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7687 | char *kwnames[] = { |
7688 | (char *) "self",(char *) "n", NULL | |
7689 | }; | |
7690 | ||
994141e6 | 7691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7694 | { | |
7695 | arg2 = (int)(SWIG_As_int(obj1)); | |
7696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7697 | } | |
d14a1e28 RD |
7698 | { |
7699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7700 | (arg1)->Deselect(arg2); | |
7701 | ||
7702 | wxPyEndAllowThreads(__tstate); | |
7703 | if (PyErr_Occurred()) SWIG_fail; | |
7704 | } | |
7705 | Py_INCREF(Py_None); resultobj = Py_None; | |
7706 | return resultobj; | |
7707 | fail: | |
7708 | return NULL; | |
7709 | } | |
7710 | ||
7711 | ||
c32bde28 | 7712 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7713 | PyObject *resultobj; |
7714 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7715 | int arg2 = (int) -1 ; | |
7716 | PyObject * obj0 = 0 ; | |
994141e6 | 7717 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7718 | char *kwnames[] = { |
7719 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
7720 | }; | |
7721 | ||
994141e6 | 7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7725 | if (obj1) { |
093d3ff1 RD |
7726 | { |
7727 | arg2 = (int)(SWIG_As_int(obj1)); | |
7728 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7729 | } | |
994141e6 | 7730 | } |
d14a1e28 RD |
7731 | { |
7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7733 | (arg1)->DeselectAll(arg2); | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | Py_INCREF(Py_None); resultobj = Py_None; | |
7739 | return resultobj; | |
7740 | fail: | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
c32bde28 | 7745 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7746 | PyObject *resultobj; |
7747 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7748 | wxString *arg2 = 0 ; | |
ae8162c8 | 7749 | bool arg3 = (bool) true ; |
d14a1e28 | 7750 | bool result; |
ae8162c8 | 7751 | bool temp2 = false ; |
d14a1e28 RD |
7752 | PyObject * obj0 = 0 ; |
7753 | PyObject * obj1 = 0 ; | |
7754 | PyObject * obj2 = 0 ; | |
7755 | char *kwnames[] = { | |
7756 | (char *) "self",(char *) "s",(char *) "select", NULL | |
7757 | }; | |
7758 | ||
7759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7762 | { |
7763 | arg2 = wxString_in_helper(obj1); | |
7764 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7765 | temp2 = true; |
d14a1e28 RD |
7766 | } |
7767 | if (obj2) { | |
093d3ff1 RD |
7768 | { |
7769 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7770 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7771 | } | |
d14a1e28 RD |
7772 | } |
7773 | { | |
7774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7775 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
7776 | ||
7777 | wxPyEndAllowThreads(__tstate); | |
7778 | if (PyErr_Occurred()) SWIG_fail; | |
7779 | } | |
4f89f6a3 RD |
7780 | { |
7781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7782 | } | |
d14a1e28 RD |
7783 | { |
7784 | if (temp2) | |
7785 | delete arg2; | |
7786 | } | |
7787 | return resultobj; | |
7788 | fail: | |
7789 | { | |
7790 | if (temp2) | |
7791 | delete arg2; | |
7792 | } | |
7793 | return NULL; | |
7794 | } | |
7795 | ||
7796 | ||
c32bde28 | 7797 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7798 | PyObject *resultobj; |
7799 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7800 | PyObject *result; | |
7801 | PyObject * obj0 = 0 ; | |
7802 | char *kwnames[] = { | |
7803 | (char *) "self", NULL | |
7804 | }; | |
7805 | ||
7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7809 | { |
7810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7811 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
7812 | ||
7813 | wxPyEndAllowThreads(__tstate); | |
7814 | if (PyErr_Occurred()) SWIG_fail; | |
7815 | } | |
7816 | resultobj = result; | |
7817 | return resultobj; | |
7818 | fail: | |
7819 | return NULL; | |
7820 | } | |
7821 | ||
7822 | ||
c32bde28 | 7823 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7824 | PyObject *resultobj; |
7825 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7826 | int arg2 ; | |
7827 | PyObject * obj0 = 0 ; | |
994141e6 | 7828 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7829 | char *kwnames[] = { |
7830 | (char *) "self",(char *) "n", NULL | |
7831 | }; | |
7832 | ||
994141e6 | 7833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7836 | { | |
7837 | arg2 = (int)(SWIG_As_int(obj1)); | |
7838 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7839 | } | |
d14a1e28 RD |
7840 | { |
7841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7842 | (arg1)->SetFirstItem(arg2); | |
7843 | ||
7844 | wxPyEndAllowThreads(__tstate); | |
7845 | if (PyErr_Occurred()) SWIG_fail; | |
7846 | } | |
7847 | Py_INCREF(Py_None); resultobj = Py_None; | |
7848 | return resultobj; | |
7849 | fail: | |
7850 | return NULL; | |
7851 | } | |
7852 | ||
7853 | ||
c32bde28 | 7854 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7855 | PyObject *resultobj; |
7856 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7857 | wxString *arg2 = 0 ; | |
ae8162c8 | 7858 | bool temp2 = false ; |
d14a1e28 RD |
7859 | PyObject * obj0 = 0 ; |
7860 | PyObject * obj1 = 0 ; | |
7861 | char *kwnames[] = { | |
7862 | (char *) "self",(char *) "s", NULL | |
7863 | }; | |
7864 | ||
7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7868 | { |
7869 | arg2 = wxString_in_helper(obj1); | |
7870 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7871 | temp2 = true; |
d14a1e28 RD |
7872 | } |
7873 | { | |
7874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7875 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
7876 | ||
7877 | wxPyEndAllowThreads(__tstate); | |
7878 | if (PyErr_Occurred()) SWIG_fail; | |
7879 | } | |
7880 | Py_INCREF(Py_None); resultobj = Py_None; | |
7881 | { | |
7882 | if (temp2) | |
7883 | delete arg2; | |
7884 | } | |
7885 | return resultobj; | |
7886 | fail: | |
7887 | { | |
7888 | if (temp2) | |
7889 | delete arg2; | |
7890 | } | |
7891 | return NULL; | |
7892 | } | |
7893 | ||
7894 | ||
c32bde28 | 7895 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7896 | PyObject *resultobj; |
7897 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7898 | int arg2 ; | |
7899 | PyObject * obj0 = 0 ; | |
994141e6 | 7900 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7901 | char *kwnames[] = { |
7902 | (char *) "self",(char *) "n", NULL | |
7903 | }; | |
7904 | ||
994141e6 | 7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7906 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7907 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7908 | { | |
7909 | arg2 = (int)(SWIG_As_int(obj1)); | |
7910 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7911 | } | |
d14a1e28 RD |
7912 | { |
7913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7914 | (arg1)->EnsureVisible(arg2); | |
7915 | ||
7916 | wxPyEndAllowThreads(__tstate); | |
7917 | if (PyErr_Occurred()) SWIG_fail; | |
7918 | } | |
7919 | Py_INCREF(Py_None); resultobj = Py_None; | |
7920 | return resultobj; | |
7921 | fail: | |
7922 | return NULL; | |
7923 | } | |
7924 | ||
7925 | ||
c32bde28 | 7926 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7927 | PyObject *resultobj; |
7928 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7929 | wxString *arg2 = 0 ; | |
ae8162c8 | 7930 | bool temp2 = false ; |
d14a1e28 RD |
7931 | PyObject * obj0 = 0 ; |
7932 | PyObject * obj1 = 0 ; | |
7933 | char *kwnames[] = { | |
7934 | (char *) "self",(char *) "s", NULL | |
7935 | }; | |
7936 | ||
7937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7940 | { |
7941 | arg2 = wxString_in_helper(obj1); | |
7942 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7943 | temp2 = true; |
d14a1e28 RD |
7944 | } |
7945 | { | |
7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7947 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
7948 | ||
7949 | wxPyEndAllowThreads(__tstate); | |
7950 | if (PyErr_Occurred()) SWIG_fail; | |
7951 | } | |
7952 | Py_INCREF(Py_None); resultobj = Py_None; | |
7953 | { | |
7954 | if (temp2) | |
7955 | delete arg2; | |
7956 | } | |
7957 | return resultobj; | |
7958 | fail: | |
7959 | { | |
7960 | if (temp2) | |
7961 | delete arg2; | |
7962 | } | |
7963 | return NULL; | |
7964 | } | |
7965 | ||
7966 | ||
c32bde28 | 7967 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7968 | PyObject *resultobj; |
7969 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7970 | bool result; | |
7971 | PyObject * obj0 = 0 ; | |
7972 | char *kwnames[] = { | |
7973 | (char *) "self", NULL | |
7974 | }; | |
7975 | ||
7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7979 | { |
7980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7981 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
7982 | ||
7983 | wxPyEndAllowThreads(__tstate); | |
7984 | if (PyErr_Occurred()) SWIG_fail; | |
7985 | } | |
4f89f6a3 RD |
7986 | { |
7987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7988 | } | |
d14a1e28 RD |
7989 | return resultobj; |
7990 | fail: | |
7991 | return NULL; | |
7992 | } | |
7993 | ||
7994 | ||
c32bde28 | 7995 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
7996 | PyObject *resultobj; |
7997 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7998 | int arg2 ; | |
7999 | wxColour *arg3 = 0 ; | |
8000 | wxColour temp3 ; | |
8001 | PyObject * obj0 = 0 ; | |
8002 | PyObject * obj1 = 0 ; | |
8003 | PyObject * obj2 = 0 ; | |
8004 | char *kwnames[] = { | |
8005 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8006 | }; | |
8007 | ||
8008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8011 | { | |
8012 | arg2 = (int)(SWIG_As_int(obj1)); | |
8013 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8014 | } | |
c3eb6258 RD |
8015 | { |
8016 | arg3 = &temp3; | |
8017 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8018 | } | |
8019 | { | |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | Py_INCREF(Py_None); resultobj = Py_None; | |
8027 | return resultobj; | |
8028 | fail: | |
8029 | return NULL; | |
8030 | } | |
8031 | ||
8032 | ||
c32bde28 | 8033 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
8034 | PyObject *resultobj; |
8035 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8036 | int arg2 ; | |
8037 | wxColour *arg3 = 0 ; | |
8038 | wxColour temp3 ; | |
8039 | PyObject * obj0 = 0 ; | |
8040 | PyObject * obj1 = 0 ; | |
8041 | PyObject * obj2 = 0 ; | |
8042 | char *kwnames[] = { | |
8043 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8044 | }; | |
8045 | ||
8046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8047 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8048 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8049 | { | |
8050 | arg2 = (int)(SWIG_As_int(obj1)); | |
8051 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8052 | } | |
c3eb6258 RD |
8053 | { |
8054 | arg3 = &temp3; | |
8055 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8056 | } | |
8057 | { | |
8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8059 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8060 | ||
8061 | wxPyEndAllowThreads(__tstate); | |
8062 | if (PyErr_Occurred()) SWIG_fail; | |
8063 | } | |
8064 | Py_INCREF(Py_None); resultobj = Py_None; | |
8065 | return resultobj; | |
8066 | fail: | |
8067 | return NULL; | |
8068 | } | |
8069 | ||
8070 | ||
c32bde28 | 8071 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
c3eb6258 RD |
8072 | PyObject *resultobj; |
8073 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8074 | int arg2 ; | |
8075 | wxFont *arg3 = 0 ; | |
8076 | PyObject * obj0 = 0 ; | |
8077 | PyObject * obj1 = 0 ; | |
8078 | PyObject * obj2 = 0 ; | |
8079 | char *kwnames[] = { | |
8080 | (char *) "self",(char *) "item",(char *) "f", NULL | |
8081 | }; | |
8082 | ||
8083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8084 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8085 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8086 | { | |
8087 | arg2 = (int)(SWIG_As_int(obj1)); | |
8088 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8089 | } | |
8090 | { | |
8091 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8092 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8093 | if (arg3 == NULL) { | |
8094 | SWIG_null_ref("wxFont"); | |
8095 | } | |
8096 | if (SWIG_arg_fail(3)) SWIG_fail; | |
c3eb6258 RD |
8097 | } |
8098 | { | |
8099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8100 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
8101 | ||
8102 | wxPyEndAllowThreads(__tstate); | |
8103 | if (PyErr_Occurred()) SWIG_fail; | |
8104 | } | |
8105 | Py_INCREF(Py_None); resultobj = Py_None; | |
8106 | return resultobj; | |
8107 | fail: | |
8108 | return NULL; | |
8109 | } | |
8110 | ||
8111 | ||
c32bde28 | 8112 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd | 8113 | PyObject *resultobj; |
093d3ff1 | 8114 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
8115 | wxVisualAttributes result; |
8116 | PyObject * obj0 = 0 ; | |
8117 | char *kwnames[] = { | |
8118 | (char *) "variant", NULL | |
8119 | }; | |
8120 | ||
8121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
8122 | if (obj0) { | |
093d3ff1 RD |
8123 | { |
8124 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
8125 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8126 | } | |
74a57fcd RD |
8127 | } |
8128 | { | |
110da5b0 | 8129 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
8130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8131 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
8132 | ||
8133 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 8134 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
8135 | } |
8136 | { | |
8137 | wxVisualAttributes * resultptr; | |
093d3ff1 | 8138 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
8139 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
8140 | } | |
8141 | return resultobj; | |
8142 | fail: | |
8143 | return NULL; | |
8144 | } | |
8145 | ||
8146 | ||
c32bde28 | 8147 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8148 | PyObject *obj; |
8149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8150 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
8151 | Py_INCREF(obj); | |
8152 | return Py_BuildValue((char *)""); | |
8153 | } | |
c32bde28 | 8154 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8155 | PyObject *resultobj; |
8156 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8157 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8158 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8159 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8160 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8161 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
8162 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
8163 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8164 | long arg6 = (long) 0 ; | |
8165 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8166 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8167 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8168 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
8169 | wxCheckListBox *result; |
8170 | wxPoint temp3 ; | |
8171 | wxSize temp4 ; | |
ae8162c8 RD |
8172 | bool temp5 = false ; |
8173 | bool temp8 = false ; | |
d14a1e28 | 8174 | PyObject * obj0 = 0 ; |
994141e6 | 8175 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8176 | PyObject * obj2 = 0 ; |
8177 | PyObject * obj3 = 0 ; | |
8178 | PyObject * obj4 = 0 ; | |
994141e6 | 8179 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8180 | PyObject * obj6 = 0 ; |
8181 | PyObject * obj7 = 0 ; | |
8182 | char *kwnames[] = { | |
8183 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8184 | }; | |
8185 | ||
248ed943 | 8186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
8187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 8189 | if (obj1) { |
093d3ff1 RD |
8190 | { |
8191 | arg2 = (int)(SWIG_As_int(obj1)); | |
8192 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8193 | } | |
248ed943 | 8194 | } |
d14a1e28 RD |
8195 | if (obj2) { |
8196 | { | |
8197 | arg3 = &temp3; | |
8198 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8199 | } | |
8200 | } | |
8201 | if (obj3) { | |
8202 | { | |
8203 | arg4 = &temp4; | |
8204 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8205 | } | |
8206 | } | |
8207 | if (obj4) { | |
8208 | { | |
4d5c3d91 RD |
8209 | if (! PySequence_Check(obj4)) { |
8210 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8211 | SWIG_fail; | |
8212 | } | |
8213 | arg5 = new wxArrayString; | |
ae8162c8 | 8214 | temp5 = true; |
4d5c3d91 RD |
8215 | int i, len=PySequence_Length(obj4); |
8216 | for (i=0; i<len; i++) { | |
8217 | PyObject* item = PySequence_GetItem(obj4, i); | |
8218 | #if wxUSE_UNICODE | |
8219 | PyObject* str = PyObject_Unicode(item); | |
8220 | #else | |
8221 | PyObject* str = PyObject_Str(item); | |
8222 | #endif | |
74a57fcd | 8223 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
8224 | arg5->Add(Py2wxString(str)); |
8225 | Py_DECREF(item); | |
8226 | Py_DECREF(str); | |
8227 | } | |
d14a1e28 RD |
8228 | } |
8229 | } | |
994141e6 | 8230 | if (obj5) { |
093d3ff1 RD |
8231 | { |
8232 | arg6 = (long)(SWIG_As_long(obj5)); | |
8233 | if (SWIG_arg_fail(6)) SWIG_fail; | |
8234 | } | |
994141e6 | 8235 | } |
d14a1e28 | 8236 | if (obj6) { |
093d3ff1 RD |
8237 | { |
8238 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8239 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8240 | if (arg7 == NULL) { | |
8241 | SWIG_null_ref("wxValidator"); | |
8242 | } | |
8243 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
8244 | } |
8245 | } | |
8246 | if (obj7) { | |
8247 | { | |
4d5c3d91 RD |
8248 | arg8 = wxString_in_helper(obj7); |
8249 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 8250 | temp8 = true; |
d14a1e28 RD |
8251 | } |
8252 | } | |
8253 | { | |
e3b71cb8 | 8254 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 8255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 8256 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
8257 | |
8258 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8259 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8260 | } |
15afbcd0 | 8261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 8262 | { |
3adfb63b | 8263 | if (temp5) delete arg5; |
d14a1e28 RD |
8264 | } |
8265 | { | |
8266 | if (temp8) | |
4d5c3d91 | 8267 | delete arg8; |
d14a1e28 RD |
8268 | } |
8269 | return resultobj; | |
8270 | fail: | |
8271 | { | |
3adfb63b | 8272 | if (temp5) delete arg5; |
d14a1e28 RD |
8273 | } |
8274 | { | |
8275 | if (temp8) | |
4d5c3d91 | 8276 | delete arg8; |
d14a1e28 RD |
8277 | } |
8278 | return NULL; | |
8279 | } | |
8280 | ||
8281 | ||
c32bde28 | 8282 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8283 | PyObject *resultobj; |
8284 | wxCheckListBox *result; | |
8285 | char *kwnames[] = { | |
8286 | NULL | |
8287 | }; | |
8288 | ||
8289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
8290 | { | |
e3b71cb8 | 8291 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8293 | result = (wxCheckListBox *)new wxCheckListBox(); | |
8294 | ||
8295 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8296 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8297 | } |
15afbcd0 | 8298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
8299 | return resultobj; |
8300 | fail: | |
8301 | return NULL; | |
8302 | } | |
8303 | ||
8304 | ||
c32bde28 | 8305 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8306 | PyObject *resultobj; |
8307 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8308 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8309 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8310 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8311 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8312 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8313 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
8314 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
8315 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8316 | long arg7 = (long) 0 ; | |
8317 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8318 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8319 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8320 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
8321 | bool result; |
8322 | wxPoint temp4 ; | |
8323 | wxSize temp5 ; | |
ae8162c8 RD |
8324 | bool temp6 = false ; |
8325 | bool temp9 = false ; | |
d14a1e28 RD |
8326 | PyObject * obj0 = 0 ; |
8327 | PyObject * obj1 = 0 ; | |
994141e6 | 8328 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8329 | PyObject * obj3 = 0 ; |
8330 | PyObject * obj4 = 0 ; | |
8331 | PyObject * obj5 = 0 ; | |
994141e6 | 8332 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8333 | PyObject * obj7 = 0 ; |
8334 | PyObject * obj8 = 0 ; | |
8335 | char *kwnames[] = { | |
8336 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8337 | }; | |
8338 | ||
248ed943 | 8339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
8340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8342 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8343 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 8344 | if (obj2) { |
093d3ff1 RD |
8345 | { |
8346 | arg3 = (int)(SWIG_As_int(obj2)); | |
8347 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8348 | } | |
248ed943 | 8349 | } |
d14a1e28 RD |
8350 | if (obj3) { |
8351 | { | |
8352 | arg4 = &temp4; | |
8353 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8354 | } | |
8355 | } | |
8356 | if (obj4) { | |
8357 | { | |
8358 | arg5 = &temp5; | |
8359 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8360 | } | |
8361 | } | |
8362 | if (obj5) { | |
8363 | { | |
4d5c3d91 RD |
8364 | if (! PySequence_Check(obj5)) { |
8365 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8366 | SWIG_fail; | |
8367 | } | |
8368 | arg6 = new wxArrayString; | |
ae8162c8 | 8369 | temp6 = true; |
4d5c3d91 RD |
8370 | int i, len=PySequence_Length(obj5); |
8371 | for (i=0; i<len; i++) { | |
8372 | PyObject* item = PySequence_GetItem(obj5, i); | |
8373 | #if wxUSE_UNICODE | |
8374 | PyObject* str = PyObject_Unicode(item); | |
8375 | #else | |
8376 | PyObject* str = PyObject_Str(item); | |
8377 | #endif | |
74a57fcd | 8378 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
8379 | arg6->Add(Py2wxString(str)); |
8380 | Py_DECREF(item); | |
8381 | Py_DECREF(str); | |
8382 | } | |
d14a1e28 RD |
8383 | } |
8384 | } | |
994141e6 | 8385 | if (obj6) { |
093d3ff1 RD |
8386 | { |
8387 | arg7 = (long)(SWIG_As_long(obj6)); | |
8388 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8389 | } | |
994141e6 | 8390 | } |
d14a1e28 | 8391 | if (obj7) { |
093d3ff1 RD |
8392 | { |
8393 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8394 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8395 | if (arg8 == NULL) { | |
8396 | SWIG_null_ref("wxValidator"); | |
8397 | } | |
8398 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
8399 | } |
8400 | } | |
8401 | if (obj8) { | |
8402 | { | |
4d5c3d91 RD |
8403 | arg9 = wxString_in_helper(obj8); |
8404 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 8405 | temp9 = true; |
d14a1e28 RD |
8406 | } |
8407 | } | |
8408 | { | |
8409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 8410 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
8411 | |
8412 | wxPyEndAllowThreads(__tstate); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
4f89f6a3 RD |
8415 | { |
8416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8417 | } | |
d14a1e28 | 8418 | { |
3adfb63b | 8419 | if (temp6) delete arg6; |
d14a1e28 RD |
8420 | } |
8421 | { | |
8422 | if (temp9) | |
4d5c3d91 | 8423 | delete arg9; |
d14a1e28 RD |
8424 | } |
8425 | return resultobj; | |
8426 | fail: | |
8427 | { | |
3adfb63b | 8428 | if (temp6) delete arg6; |
d14a1e28 RD |
8429 | } |
8430 | { | |
8431 | if (temp9) | |
4d5c3d91 | 8432 | delete arg9; |
d14a1e28 RD |
8433 | } |
8434 | return NULL; | |
8435 | } | |
8436 | ||
8437 | ||
c32bde28 | 8438 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8439 | PyObject *resultobj; |
8440 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8441 | int arg2 ; | |
8442 | bool result; | |
8443 | PyObject * obj0 = 0 ; | |
994141e6 | 8444 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8445 | char *kwnames[] = { |
8446 | (char *) "self",(char *) "index", NULL | |
8447 | }; | |
8448 | ||
994141e6 | 8449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8452 | { | |
8453 | arg2 = (int)(SWIG_As_int(obj1)); | |
8454 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8455 | } | |
d14a1e28 RD |
8456 | { |
8457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8458 | result = (bool)(arg1)->IsChecked(arg2); | |
8459 | ||
8460 | wxPyEndAllowThreads(__tstate); | |
8461 | if (PyErr_Occurred()) SWIG_fail; | |
8462 | } | |
4f89f6a3 RD |
8463 | { |
8464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8465 | } | |
d14a1e28 RD |
8466 | return resultobj; |
8467 | fail: | |
8468 | return NULL; | |
8469 | } | |
8470 | ||
8471 | ||
c32bde28 | 8472 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8473 | PyObject *resultobj; |
8474 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8475 | int arg2 ; | |
ae8162c8 | 8476 | int arg3 = (int) true ; |
d14a1e28 | 8477 | PyObject * obj0 = 0 ; |
994141e6 RD |
8478 | PyObject * obj1 = 0 ; |
8479 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8480 | char *kwnames[] = { |
8481 | (char *) "self",(char *) "index",(char *) "check", NULL | |
8482 | }; | |
8483 | ||
994141e6 | 8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8487 | { | |
8488 | arg2 = (int)(SWIG_As_int(obj1)); | |
8489 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8490 | } | |
994141e6 | 8491 | if (obj2) { |
093d3ff1 RD |
8492 | { |
8493 | arg3 = (int)(SWIG_As_int(obj2)); | |
8494 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8495 | } | |
994141e6 | 8496 | } |
d14a1e28 RD |
8497 | { |
8498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8499 | (arg1)->Check(arg2,arg3); | |
8500 | ||
8501 | wxPyEndAllowThreads(__tstate); | |
8502 | if (PyErr_Occurred()) SWIG_fail; | |
8503 | } | |
8504 | Py_INCREF(Py_None); resultobj = Py_None; | |
8505 | return resultobj; | |
8506 | fail: | |
8507 | return NULL; | |
8508 | } | |
8509 | ||
8510 | ||
c32bde28 | 8511 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8512 | PyObject *resultobj; |
8513 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8514 | int result; | |
8515 | PyObject * obj0 = 0 ; | |
8516 | char *kwnames[] = { | |
8517 | (char *) "self", NULL | |
8518 | }; | |
8519 | ||
8520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8523 | { |
8524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8525 | result = (int)(arg1)->GetItemHeight(); | |
8526 | ||
8527 | wxPyEndAllowThreads(__tstate); | |
8528 | if (PyErr_Occurred()) SWIG_fail; | |
8529 | } | |
093d3ff1 RD |
8530 | { |
8531 | resultobj = SWIG_From_int((int)(result)); | |
8532 | } | |
d14a1e28 RD |
8533 | return resultobj; |
8534 | fail: | |
8535 | return NULL; | |
8536 | } | |
8537 | ||
8538 | ||
c32bde28 | 8539 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8540 | PyObject *resultobj; |
8541 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8542 | wxPoint *arg2 = 0 ; | |
8543 | int result; | |
8544 | wxPoint temp2 ; | |
8545 | PyObject * obj0 = 0 ; | |
8546 | PyObject * obj1 = 0 ; | |
8547 | char *kwnames[] = { | |
8548 | (char *) "self",(char *) "pt", NULL | |
8549 | }; | |
8550 | ||
8551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8554 | { |
8555 | arg2 = &temp2; | |
8556 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8557 | } | |
8558 | { | |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
093d3ff1 RD |
8565 | { |
8566 | resultobj = SWIG_From_int((int)(result)); | |
8567 | } | |
d14a1e28 RD |
8568 | return resultobj; |
8569 | fail: | |
8570 | return NULL; | |
8571 | } | |
8572 | ||
8573 | ||
c32bde28 | 8574 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8575 | PyObject *resultobj; |
8576 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
8577 | int arg2 ; |
8578 | int arg3 ; | |
d14a1e28 RD |
8579 | int result; |
8580 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8581 | PyObject * obj1 = 0 ; |
8582 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8583 | char *kwnames[] = { |
8584 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8585 | }; | |
8586 | ||
994141e6 | 8587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8590 | { | |
8591 | arg2 = (int)(SWIG_As_int(obj1)); | |
8592 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8593 | } | |
8594 | { | |
8595 | arg3 = (int)(SWIG_As_int(obj2)); | |
8596 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8597 | } | |
d14a1e28 RD |
8598 | { |
8599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8600 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
8601 | ||
8602 | wxPyEndAllowThreads(__tstate); | |
8603 | if (PyErr_Occurred()) SWIG_fail; | |
8604 | } | |
093d3ff1 RD |
8605 | { |
8606 | resultobj = SWIG_From_int((int)(result)); | |
8607 | } | |
d14a1e28 RD |
8608 | return resultobj; |
8609 | fail: | |
8610 | return NULL; | |
8611 | } | |
8612 | ||
8613 | ||
c32bde28 | 8614 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8615 | PyObject *obj; |
8616 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8617 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
8618 | Py_INCREF(obj); | |
8619 | return Py_BuildValue((char *)""); | |
8620 | } | |
c32bde28 | 8621 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
8622 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
8623 | return 1; | |
8624 | } | |
8625 | ||
8626 | ||
093d3ff1 | 8627 | static PyObject *_wrap_TextCtrlNameStr_get(void) { |
b2dc1044 RD |
8628 | PyObject *pyobj; |
8629 | ||
8630 | { | |
8631 | #if wxUSE_UNICODE | |
8632 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8633 | #else | |
8634 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8635 | #endif | |
8636 | } | |
8637 | return pyobj; | |
8638 | } | |
8639 | ||
8640 | ||
c32bde28 | 8641 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 8642 | PyObject *resultobj; |
908b74cd RD |
8643 | wxColour const &arg1_defvalue = wxNullColour ; |
8644 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
8645 | wxColour const &arg2_defvalue = wxNullColour ; |
8646 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8647 | wxFont const &arg3_defvalue = wxNullFont ; | |
8648 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
093d3ff1 | 8649 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; |
d14a1e28 RD |
8650 | wxTextAttr *result; |
8651 | wxColour temp1 ; | |
8652 | wxColour temp2 ; | |
8653 | PyObject * obj0 = 0 ; | |
8654 | PyObject * obj1 = 0 ; | |
8655 | PyObject * obj2 = 0 ; | |
994141e6 | 8656 | PyObject * obj3 = 0 ; |
908b74cd RD |
8657 | char *kwnames[] = { |
8658 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
8659 | }; | |
d14a1e28 | 8660 | |
908b74cd RD |
8661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8662 | if (obj0) { | |
8663 | { | |
8664 | arg1 = &temp1; | |
8665 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
8666 | } | |
d14a1e28 RD |
8667 | } |
8668 | if (obj1) { | |
8669 | { | |
8670 | arg2 = &temp2; | |
8671 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8672 | } | |
8673 | } | |
8674 | if (obj2) { | |
093d3ff1 RD |
8675 | { |
8676 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8677 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8678 | if (arg3 == NULL) { | |
8679 | SWIG_null_ref("wxFont"); | |
8680 | } | |
8681 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
8682 | } |
8683 | } | |
994141e6 | 8684 | if (obj3) { |
093d3ff1 RD |
8685 | { |
8686 | arg4 = (wxTextAttrAlignment)(SWIG_As_int(obj3)); | |
8687 | if (SWIG_arg_fail(4)) SWIG_fail; | |
8688 | } | |
994141e6 | 8689 | } |
d14a1e28 RD |
8690 | { |
8691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8692 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
8693 | ||
8694 | wxPyEndAllowThreads(__tstate); | |
8695 | if (PyErr_Occurred()) SWIG_fail; | |
8696 | } | |
15afbcd0 | 8697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
8698 | return resultobj; |
8699 | fail: | |
8700 | return NULL; | |
8701 | } | |
8702 | ||
8703 | ||
c32bde28 | 8704 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8705 | PyObject *resultobj; |
8706 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8707 | PyObject * obj0 = 0 ; | |
8708 | char *kwnames[] = { | |
8709 | (char *) "self", NULL | |
8710 | }; | |
8711 | ||
994141e6 | 8712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
8713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8715 | { |
8716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 8717 | delete arg1; |
d14a1e28 RD |
8718 | |
8719 | wxPyEndAllowThreads(__tstate); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
8722 | Py_INCREF(Py_None); resultobj = Py_None; | |
8723 | return resultobj; | |
8724 | fail: | |
8725 | return NULL; | |
8726 | } | |
8727 | ||
8728 | ||
c32bde28 | 8729 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
994141e6 RD |
8730 | PyObject *resultobj; |
8731 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8732 | PyObject * obj0 = 0 ; | |
8733 | char *kwnames[] = { | |
8734 | (char *) "self", NULL | |
8735 | }; | |
8736 | ||
8737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
8740 | { |
8741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8742 | (arg1)->Init(); | |
8743 | ||
8744 | wxPyEndAllowThreads(__tstate); | |
8745 | if (PyErr_Occurred()) SWIG_fail; | |
8746 | } | |
8747 | Py_INCREF(Py_None); resultobj = Py_None; | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | return NULL; | |
8751 | } | |
8752 | ||
8753 | ||
c32bde28 | 8754 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8755 | PyObject *resultobj; |
8756 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8757 | wxColour *arg2 = 0 ; | |
8758 | wxColour temp2 ; | |
8759 | PyObject * obj0 = 0 ; | |
8760 | PyObject * obj1 = 0 ; | |
8761 | char *kwnames[] = { | |
8762 | (char *) "self",(char *) "colText", NULL | |
8763 | }; | |
8764 | ||
8765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8768 | { |
8769 | arg2 = &temp2; | |
8770 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8771 | } | |
8772 | { | |
8773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8774 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
8775 | ||
8776 | wxPyEndAllowThreads(__tstate); | |
8777 | if (PyErr_Occurred()) SWIG_fail; | |
8778 | } | |
8779 | Py_INCREF(Py_None); resultobj = Py_None; | |
8780 | return resultobj; | |
8781 | fail: | |
8782 | return NULL; | |
8783 | } | |
8784 | ||
8785 | ||
c32bde28 | 8786 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8787 | PyObject *resultobj; |
8788 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8789 | wxColour *arg2 = 0 ; | |
8790 | wxColour temp2 ; | |
8791 | PyObject * obj0 = 0 ; | |
8792 | PyObject * obj1 = 0 ; | |
8793 | char *kwnames[] = { | |
8794 | (char *) "self",(char *) "colBack", NULL | |
8795 | }; | |
8796 | ||
8797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8800 | { |
8801 | arg2 = &temp2; | |
8802 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8803 | } | |
8804 | { | |
8805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8806 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
8807 | ||
8808 | wxPyEndAllowThreads(__tstate); | |
8809 | if (PyErr_Occurred()) SWIG_fail; | |
8810 | } | |
8811 | Py_INCREF(Py_None); resultobj = Py_None; | |
8812 | return resultobj; | |
8813 | fail: | |
8814 | return NULL; | |
8815 | } | |
8816 | ||
8817 | ||
c32bde28 | 8818 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8819 | PyObject *resultobj; |
8820 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8821 | wxFont *arg2 = 0 ; | |
8822 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
8823 | PyObject * obj0 = 0 ; | |
8824 | PyObject * obj1 = 0 ; | |
994141e6 | 8825 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8826 | char *kwnames[] = { |
8827 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
8828 | }; | |
8829 | ||
994141e6 | 8830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8833 | { | |
8834 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8835 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8836 | if (arg2 == NULL) { | |
8837 | SWIG_null_ref("wxFont"); | |
8838 | } | |
8839 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 8840 | } |
994141e6 | 8841 | if (obj2) { |
093d3ff1 RD |
8842 | { |
8843 | arg3 = (long)(SWIG_As_long(obj2)); | |
8844 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8845 | } | |
994141e6 | 8846 | } |
d14a1e28 RD |
8847 | { |
8848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8849 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
8850 | ||
8851 | wxPyEndAllowThreads(__tstate); | |
8852 | if (PyErr_Occurred()) SWIG_fail; | |
8853 | } | |
8854 | Py_INCREF(Py_None); resultobj = Py_None; | |
8855 | return resultobj; | |
8856 | fail: | |
8857 | return NULL; | |
8858 | } | |
8859 | ||
8860 | ||
c32bde28 | 8861 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8862 | PyObject *resultobj; |
8863 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
093d3ff1 | 8864 | wxTextAttrAlignment arg2 ; |
d14a1e28 | 8865 | PyObject * obj0 = 0 ; |
994141e6 | 8866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8867 | char *kwnames[] = { |
8868 | (char *) "self",(char *) "alignment", NULL | |
8869 | }; | |
8870 | ||
994141e6 | 8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8874 | { | |
8875 | arg2 = (wxTextAttrAlignment)(SWIG_As_int(obj1)); | |
8876 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8877 | } | |
d14a1e28 RD |
8878 | { |
8879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8880 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
8881 | ||
8882 | wxPyEndAllowThreads(__tstate); | |
8883 | if (PyErr_Occurred()) SWIG_fail; | |
8884 | } | |
8885 | Py_INCREF(Py_None); resultobj = Py_None; | |
8886 | return resultobj; | |
8887 | fail: | |
8888 | return NULL; | |
8889 | } | |
8890 | ||
8891 | ||
c32bde28 | 8892 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8893 | PyObject *resultobj; |
8894 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8895 | wxArrayInt *arg2 = 0 ; | |
ae8162c8 | 8896 | bool temp2 = false ; |
d14a1e28 RD |
8897 | PyObject * obj0 = 0 ; |
8898 | PyObject * obj1 = 0 ; | |
8899 | char *kwnames[] = { | |
8900 | (char *) "self",(char *) "tabs", NULL | |
8901 | }; | |
8902 | ||
8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) 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; | |
d14a1e28 RD |
8906 | { |
8907 | if (! PySequence_Check(obj1)) { | |
8908 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
8909 | SWIG_fail; | |
8910 | } | |
8911 | arg2 = new wxArrayInt; | |
ae8162c8 | 8912 | temp2 = true; |
d14a1e28 RD |
8913 | int i, len=PySequence_Length(obj1); |
8914 | for (i=0; i<len; i++) { | |
8915 | PyObject* item = PySequence_GetItem(obj1, i); | |
8916 | PyObject* number = PyNumber_Int(item); | |
8917 | arg2->Add(PyInt_AS_LONG(number)); | |
8918 | Py_DECREF(item); | |
8919 | Py_DECREF(number); | |
8920 | } | |
8921 | } | |
8922 | { | |
8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8924 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
8925 | ||
8926 | wxPyEndAllowThreads(__tstate); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | } | |
8929 | Py_INCREF(Py_None); resultobj = Py_None; | |
8930 | { | |
3adfb63b | 8931 | if (temp2) delete arg2; |
d14a1e28 RD |
8932 | } |
8933 | return resultobj; | |
8934 | fail: | |
8935 | { | |
3adfb63b | 8936 | if (temp2) delete arg2; |
d14a1e28 RD |
8937 | } |
8938 | return NULL; | |
8939 | } | |
8940 | ||
8941 | ||
c32bde28 | 8942 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8943 | PyObject *resultobj; |
8944 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8945 | int arg2 ; | |
5e4ca4a8 | 8946 | int arg3 = (int) 0 ; |
d14a1e28 | 8947 | PyObject * obj0 = 0 ; |
994141e6 | 8948 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 8949 | PyObject * obj2 = 0 ; |
d14a1e28 | 8950 | char *kwnames[] = { |
5e4ca4a8 | 8951 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
8952 | }; |
8953 | ||
5e4ca4a8 | 8954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8957 | { | |
8958 | arg2 = (int)(SWIG_As_int(obj1)); | |
8959 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8960 | } | |
5e4ca4a8 | 8961 | if (obj2) { |
093d3ff1 RD |
8962 | { |
8963 | arg3 = (int)(SWIG_As_int(obj2)); | |
8964 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8965 | } | |
5e4ca4a8 | 8966 | } |
d14a1e28 RD |
8967 | { |
8968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 8969 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
8970 | |
8971 | wxPyEndAllowThreads(__tstate); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | } | |
8974 | Py_INCREF(Py_None); resultobj = Py_None; | |
8975 | return resultobj; | |
8976 | fail: | |
8977 | return NULL; | |
8978 | } | |
8979 | ||
8980 | ||
c32bde28 | 8981 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8982 | PyObject *resultobj; |
8983 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8984 | int arg2 ; | |
8985 | PyObject * obj0 = 0 ; | |
994141e6 | 8986 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8987 | char *kwnames[] = { |
8988 | (char *) "self",(char *) "indent", NULL | |
8989 | }; | |
8990 | ||
994141e6 | 8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8994 | { | |
8995 | arg2 = (int)(SWIG_As_int(obj1)); | |
8996 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8997 | } | |
d14a1e28 RD |
8998 | { |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | (arg1)->SetRightIndent(arg2); | |
9001 | ||
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
9005 | Py_INCREF(Py_None); resultobj = Py_None; | |
9006 | return resultobj; | |
9007 | fail: | |
9008 | return NULL; | |
9009 | } | |
9010 | ||
9011 | ||
c32bde28 | 9012 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9013 | PyObject *resultobj; |
9014 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9015 | long arg2 ; | |
9016 | PyObject * obj0 = 0 ; | |
994141e6 | 9017 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9018 | char *kwnames[] = { |
9019 | (char *) "self",(char *) "flags", NULL | |
9020 | }; | |
9021 | ||
994141e6 | 9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9025 | { | |
9026 | arg2 = (long)(SWIG_As_long(obj1)); | |
9027 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9028 | } | |
d14a1e28 RD |
9029 | { |
9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9031 | (arg1)->SetFlags(arg2); | |
9032 | ||
9033 | wxPyEndAllowThreads(__tstate); | |
9034 | if (PyErr_Occurred()) SWIG_fail; | |
9035 | } | |
9036 | Py_INCREF(Py_None); resultobj = Py_None; | |
9037 | return resultobj; | |
9038 | fail: | |
9039 | return NULL; | |
9040 | } | |
9041 | ||
9042 | ||
c32bde28 | 9043 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9044 | PyObject *resultobj; |
9045 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9046 | bool result; | |
9047 | PyObject * obj0 = 0 ; | |
9048 | char *kwnames[] = { | |
9049 | (char *) "self", NULL | |
9050 | }; | |
9051 | ||
9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9055 | { |
9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9057 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
9058 | ||
9059 | wxPyEndAllowThreads(__tstate); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | } | |
4f89f6a3 RD |
9062 | { |
9063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9064 | } | |
d14a1e28 RD |
9065 | return resultobj; |
9066 | fail: | |
9067 | return NULL; | |
9068 | } | |
9069 | ||
9070 | ||
c32bde28 | 9071 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9072 | PyObject *resultobj; |
9073 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9074 | bool result; | |
9075 | PyObject * obj0 = 0 ; | |
9076 | char *kwnames[] = { | |
9077 | (char *) "self", NULL | |
9078 | }; | |
9079 | ||
9080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9083 | { |
9084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9085 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
9086 | ||
9087 | wxPyEndAllowThreads(__tstate); | |
9088 | if (PyErr_Occurred()) SWIG_fail; | |
9089 | } | |
4f89f6a3 RD |
9090 | { |
9091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9092 | } | |
d14a1e28 RD |
9093 | return resultobj; |
9094 | fail: | |
9095 | return NULL; | |
9096 | } | |
9097 | ||
9098 | ||
c32bde28 | 9099 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9100 | PyObject *resultobj; |
9101 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9102 | bool result; | |
9103 | PyObject * obj0 = 0 ; | |
9104 | char *kwnames[] = { | |
9105 | (char *) "self", NULL | |
9106 | }; | |
9107 | ||
9108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9111 | { |
9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9113 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
9114 | ||
9115 | wxPyEndAllowThreads(__tstate); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
4f89f6a3 RD |
9118 | { |
9119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9120 | } | |
d14a1e28 RD |
9121 | return resultobj; |
9122 | fail: | |
9123 | return NULL; | |
9124 | } | |
9125 | ||
9126 | ||
c32bde28 | 9127 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9128 | PyObject *resultobj; |
9129 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9130 | bool result; | |
9131 | PyObject * obj0 = 0 ; | |
9132 | char *kwnames[] = { | |
9133 | (char *) "self", NULL | |
9134 | }; | |
9135 | ||
9136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9139 | { |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
4f89f6a3 RD |
9146 | { |
9147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9148 | } | |
d14a1e28 RD |
9149 | return resultobj; |
9150 | fail: | |
9151 | return NULL; | |
9152 | } | |
9153 | ||
9154 | ||
c32bde28 | 9155 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9156 | PyObject *resultobj; |
9157 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9158 | bool result; | |
9159 | PyObject * obj0 = 0 ; | |
9160 | char *kwnames[] = { | |
9161 | (char *) "self", NULL | |
9162 | }; | |
9163 | ||
9164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9167 | { |
9168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9169 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
9170 | ||
9171 | wxPyEndAllowThreads(__tstate); | |
9172 | if (PyErr_Occurred()) SWIG_fail; | |
9173 | } | |
4f89f6a3 RD |
9174 | { |
9175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9176 | } | |
d14a1e28 RD |
9177 | return resultobj; |
9178 | fail: | |
9179 | return NULL; | |
9180 | } | |
9181 | ||
9182 | ||
c32bde28 | 9183 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9184 | PyObject *resultobj; |
9185 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9186 | bool result; | |
9187 | PyObject * obj0 = 0 ; | |
9188 | char *kwnames[] = { | |
9189 | (char *) "self", NULL | |
9190 | }; | |
9191 | ||
9192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9195 | { |
9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9197 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
9198 | ||
9199 | wxPyEndAllowThreads(__tstate); | |
9200 | if (PyErr_Occurred()) SWIG_fail; | |
9201 | } | |
4f89f6a3 RD |
9202 | { |
9203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9204 | } | |
d14a1e28 RD |
9205 | return resultobj; |
9206 | fail: | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
c32bde28 | 9211 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9212 | PyObject *resultobj; |
9213 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9214 | bool result; | |
9215 | PyObject * obj0 = 0 ; | |
9216 | char *kwnames[] = { | |
9217 | (char *) "self", NULL | |
9218 | }; | |
9219 | ||
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9223 | { |
9224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9225 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
9226 | ||
9227 | wxPyEndAllowThreads(__tstate); | |
9228 | if (PyErr_Occurred()) SWIG_fail; | |
9229 | } | |
4f89f6a3 RD |
9230 | { |
9231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9232 | } | |
d14a1e28 RD |
9233 | return resultobj; |
9234 | fail: | |
9235 | return NULL; | |
9236 | } | |
9237 | ||
9238 | ||
c32bde28 | 9239 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9240 | PyObject *resultobj; |
9241 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9242 | long arg2 ; | |
9243 | bool result; | |
9244 | PyObject * obj0 = 0 ; | |
994141e6 | 9245 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9246 | char *kwnames[] = { |
9247 | (char *) "self",(char *) "flag", NULL | |
9248 | }; | |
9249 | ||
994141e6 | 9250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9253 | { | |
9254 | arg2 = (long)(SWIG_As_long(obj1)); | |
9255 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9256 | } | |
d14a1e28 RD |
9257 | { |
9258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9259 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
9260 | ||
9261 | wxPyEndAllowThreads(__tstate); | |
9262 | if (PyErr_Occurred()) SWIG_fail; | |
9263 | } | |
4f89f6a3 RD |
9264 | { |
9265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9266 | } | |
d14a1e28 RD |
9267 | return resultobj; |
9268 | fail: | |
9269 | return NULL; | |
9270 | } | |
9271 | ||
9272 | ||
c32bde28 | 9273 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9274 | PyObject *resultobj; |
9275 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9276 | wxColour *result; | |
9277 | PyObject * obj0 = 0 ; | |
9278 | char *kwnames[] = { | |
9279 | (char *) "self", NULL | |
9280 | }; | |
9281 | ||
9282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9283 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9284 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9285 | { |
9286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9287 | { | |
9288 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
9289 | result = (wxColour *) &_result_ref; | |
9290 | } | |
9291 | ||
9292 | wxPyEndAllowThreads(__tstate); | |
9293 | if (PyErr_Occurred()) SWIG_fail; | |
9294 | } | |
15afbcd0 | 9295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
9296 | return resultobj; |
9297 | fail: | |
9298 | return NULL; | |
9299 | } | |
9300 | ||
9301 | ||
c32bde28 | 9302 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9303 | PyObject *resultobj; |
9304 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9305 | wxColour *result; | |
9306 | PyObject * obj0 = 0 ; | |
9307 | char *kwnames[] = { | |
9308 | (char *) "self", NULL | |
9309 | }; | |
9310 | ||
9311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9314 | { |
9315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9316 | { | |
9317 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
9318 | result = (wxColour *) &_result_ref; | |
9319 | } | |
9320 | ||
9321 | wxPyEndAllowThreads(__tstate); | |
9322 | if (PyErr_Occurred()) SWIG_fail; | |
9323 | } | |
15afbcd0 | 9324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
9325 | return resultobj; |
9326 | fail: | |
9327 | return NULL; | |
9328 | } | |
9329 | ||
9330 | ||
c32bde28 | 9331 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9332 | PyObject *resultobj; |
9333 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9334 | wxFont *result; | |
9335 | PyObject * obj0 = 0 ; | |
9336 | char *kwnames[] = { | |
9337 | (char *) "self", NULL | |
9338 | }; | |
9339 | ||
9340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9341 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9342 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9343 | { |
9344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9345 | { | |
9346 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
9347 | result = (wxFont *) &_result_ref; | |
9348 | } | |
9349 | ||
9350 | wxPyEndAllowThreads(__tstate); | |
9351 | if (PyErr_Occurred()) SWIG_fail; | |
9352 | } | |
4276dc52 RD |
9353 | { |
9354 | wxFont* resultptr = new wxFont(*result); | |
9355 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
9356 | } | |
d14a1e28 RD |
9357 | return resultobj; |
9358 | fail: | |
9359 | return NULL; | |
9360 | } | |
9361 | ||
9362 | ||
c32bde28 | 9363 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9364 | PyObject *resultobj; |
9365 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
093d3ff1 | 9366 | wxTextAttrAlignment result; |
d14a1e28 RD |
9367 | PyObject * obj0 = 0 ; |
9368 | char *kwnames[] = { | |
9369 | (char *) "self", NULL | |
9370 | }; | |
9371 | ||
9372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9373 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9374 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9375 | { |
9376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9377 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); |
d14a1e28 RD |
9378 | |
9379 | wxPyEndAllowThreads(__tstate); | |
9380 | if (PyErr_Occurred()) SWIG_fail; | |
9381 | } | |
093d3ff1 | 9382 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
9383 | return resultobj; |
9384 | fail: | |
9385 | return NULL; | |
9386 | } | |
9387 | ||
9388 | ||
c32bde28 | 9389 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9390 | PyObject *resultobj; |
9391 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9392 | wxArrayInt *result; | |
9393 | PyObject * obj0 = 0 ; | |
9394 | char *kwnames[] = { | |
9395 | (char *) "self", NULL | |
9396 | }; | |
9397 | ||
9398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9401 | { |
9402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9403 | { | |
9404 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
9405 | result = (wxArrayInt *) &_result_ref; | |
9406 | } | |
9407 | ||
9408 | wxPyEndAllowThreads(__tstate); | |
9409 | if (PyErr_Occurred()) SWIG_fail; | |
9410 | } | |
9411 | { | |
9412 | resultobj = PyList_New(0); | |
9413 | size_t idx; | |
9414 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
9415 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
9416 | PyList_Append(resultobj, val); | |
9417 | Py_DECREF(val); | |
9418 | } | |
9419 | } | |
9420 | return resultobj; | |
9421 | fail: | |
9422 | return NULL; | |
9423 | } | |
9424 | ||
9425 | ||
c32bde28 | 9426 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9427 | PyObject *resultobj; |
9428 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9429 | long result; | |
9430 | PyObject * obj0 = 0 ; | |
9431 | char *kwnames[] = { | |
9432 | (char *) "self", NULL | |
9433 | }; | |
9434 | ||
9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9438 | { |
9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9440 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
9441 | ||
9442 | wxPyEndAllowThreads(__tstate); | |
9443 | if (PyErr_Occurred()) SWIG_fail; | |
9444 | } | |
093d3ff1 RD |
9445 | { |
9446 | resultobj = SWIG_From_long((long)(result)); | |
9447 | } | |
d14a1e28 RD |
9448 | return resultobj; |
9449 | fail: | |
9450 | return NULL; | |
9451 | } | |
9452 | ||
9453 | ||
c32bde28 | 9454 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
5e4ca4a8 RD |
9455 | PyObject *resultobj; |
9456 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9457 | long result; | |
9458 | PyObject * obj0 = 0 ; | |
9459 | char *kwnames[] = { | |
9460 | (char *) "self", NULL | |
9461 | }; | |
9462 | ||
9463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5e4ca4a8 RD |
9466 | { |
9467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9468 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
9469 | ||
9470 | wxPyEndAllowThreads(__tstate); | |
9471 | if (PyErr_Occurred()) SWIG_fail; | |
9472 | } | |
093d3ff1 RD |
9473 | { |
9474 | resultobj = SWIG_From_long((long)(result)); | |
9475 | } | |
5e4ca4a8 RD |
9476 | return resultobj; |
9477 | fail: | |
9478 | return NULL; | |
9479 | } | |
9480 | ||
9481 | ||
c32bde28 | 9482 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9483 | PyObject *resultobj; |
9484 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9485 | long result; | |
9486 | PyObject * obj0 = 0 ; | |
9487 | char *kwnames[] = { | |
9488 | (char *) "self", NULL | |
9489 | }; | |
9490 | ||
9491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9494 | { |
9495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9496 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
9497 | ||
9498 | wxPyEndAllowThreads(__tstate); | |
9499 | if (PyErr_Occurred()) SWIG_fail; | |
9500 | } | |
093d3ff1 RD |
9501 | { |
9502 | resultobj = SWIG_From_long((long)(result)); | |
9503 | } | |
d14a1e28 RD |
9504 | return resultobj; |
9505 | fail: | |
9506 | return NULL; | |
9507 | } | |
9508 | ||
9509 | ||
c32bde28 | 9510 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9511 | PyObject *resultobj; |
9512 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9513 | long result; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "self", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9522 | { |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
093d3ff1 RD |
9529 | { |
9530 | resultobj = SWIG_From_long((long)(result)); | |
9531 | } | |
d14a1e28 RD |
9532 | return resultobj; |
9533 | fail: | |
9534 | return NULL; | |
9535 | } | |
9536 | ||
9537 | ||
c32bde28 | 9538 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9539 | PyObject *resultobj; |
9540 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9541 | bool result; | |
9542 | PyObject * obj0 = 0 ; | |
9543 | char *kwnames[] = { | |
9544 | (char *) "self", NULL | |
9545 | }; | |
9546 | ||
9547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9550 | { |
9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9552 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
9553 | ||
9554 | wxPyEndAllowThreads(__tstate); | |
9555 | if (PyErr_Occurred()) SWIG_fail; | |
9556 | } | |
4f89f6a3 RD |
9557 | { |
9558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9559 | } | |
d14a1e28 RD |
9560 | return resultobj; |
9561 | fail: | |
9562 | return NULL; | |
9563 | } | |
9564 | ||
9565 | ||
c32bde28 | 9566 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9567 | PyObject *resultobj; |
9568 | wxTextAttr *arg1 = 0 ; | |
9569 | wxTextAttr *arg2 = 0 ; | |
9570 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
9571 | wxTextAttr result; | |
9572 | PyObject * obj0 = 0 ; | |
9573 | PyObject * obj1 = 0 ; | |
9574 | PyObject * obj2 = 0 ; | |
9575 | char *kwnames[] = { | |
9576 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
9577 | }; | |
9578 | ||
9579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9580 | { |
9581 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9582 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9583 | if (arg1 == NULL) { | |
9584 | SWIG_null_ref("wxTextAttr"); | |
9585 | } | |
9586 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 9587 | } |
093d3ff1 RD |
9588 | { |
9589 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9590 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9591 | if (arg2 == NULL) { | |
9592 | SWIG_null_ref("wxTextAttr"); | |
9593 | } | |
9594 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 9595 | } |
093d3ff1 RD |
9596 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9597 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
9598 | { |
9599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9600 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
9601 | ||
9602 | wxPyEndAllowThreads(__tstate); | |
9603 | if (PyErr_Occurred()) SWIG_fail; | |
9604 | } | |
9605 | { | |
9606 | wxTextAttr * resultptr; | |
093d3ff1 | 9607 | resultptr = new wxTextAttr((wxTextAttr &)(result)); |
15afbcd0 | 9608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
9609 | } |
9610 | return resultobj; | |
9611 | fail: | |
9612 | return NULL; | |
9613 | } | |
9614 | ||
9615 | ||
c32bde28 | 9616 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9617 | PyObject *obj; |
9618 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9619 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
9620 | Py_INCREF(obj); | |
9621 | return Py_BuildValue((char *)""); | |
9622 | } | |
c32bde28 | 9623 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9624 | PyObject *resultobj; |
9625 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 9626 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9627 | wxString const &arg3_defvalue = wxPyEmptyString ; |
9628 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9629 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9630 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9631 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9632 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9633 | long arg6 = (long) 0 ; | |
9634 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9635 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9636 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
9637 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9638 | wxTextCtrl *result; | |
ae8162c8 | 9639 | bool temp3 = false ; |
d14a1e28 RD |
9640 | wxPoint temp4 ; |
9641 | wxSize temp5 ; | |
ae8162c8 | 9642 | bool temp8 = false ; |
d14a1e28 | 9643 | PyObject * obj0 = 0 ; |
994141e6 | 9644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9645 | PyObject * obj2 = 0 ; |
9646 | PyObject * obj3 = 0 ; | |
9647 | PyObject * obj4 = 0 ; | |
994141e6 | 9648 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9649 | PyObject * obj6 = 0 ; |
9650 | PyObject * obj7 = 0 ; | |
9651 | char *kwnames[] = { | |
9652 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9653 | }; | |
9654 | ||
248ed943 | 9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
9656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
9657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 9658 | if (obj1) { |
093d3ff1 RD |
9659 | { |
9660 | arg2 = (int)(SWIG_As_int(obj1)); | |
9661 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9662 | } | |
248ed943 | 9663 | } |
d14a1e28 RD |
9664 | if (obj2) { |
9665 | { | |
9666 | arg3 = wxString_in_helper(obj2); | |
9667 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9668 | temp3 = true; |
d14a1e28 RD |
9669 | } |
9670 | } | |
9671 | if (obj3) { | |
9672 | { | |
9673 | arg4 = &temp4; | |
9674 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9675 | } | |
9676 | } | |
9677 | if (obj4) { | |
9678 | { | |
9679 | arg5 = &temp5; | |
9680 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9681 | } | |
9682 | } | |
994141e6 | 9683 | if (obj5) { |
093d3ff1 RD |
9684 | { |
9685 | arg6 = (long)(SWIG_As_long(obj5)); | |
9686 | if (SWIG_arg_fail(6)) SWIG_fail; | |
9687 | } | |
994141e6 | 9688 | } |
d14a1e28 | 9689 | if (obj6) { |
093d3ff1 RD |
9690 | { |
9691 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9692 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9693 | if (arg7 == NULL) { | |
9694 | SWIG_null_ref("wxValidator"); | |
9695 | } | |
9696 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
9697 | } |
9698 | } | |
9699 | if (obj7) { | |
9700 | { | |
9701 | arg8 = wxString_in_helper(obj7); | |
9702 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 9703 | temp8 = true; |
d14a1e28 RD |
9704 | } |
9705 | } | |
9706 | { | |
e3b71cb8 | 9707 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9709 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9710 | ||
9711 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9712 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9713 | } |
b0f7404b | 9714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
9715 | { |
9716 | if (temp3) | |
9717 | delete arg3; | |
9718 | } | |
9719 | { | |
9720 | if (temp8) | |
9721 | delete arg8; | |
9722 | } | |
9723 | return resultobj; | |
9724 | fail: | |
9725 | { | |
9726 | if (temp3) | |
9727 | delete arg3; | |
9728 | } | |
9729 | { | |
9730 | if (temp8) | |
9731 | delete arg8; | |
9732 | } | |
9733 | return NULL; | |
9734 | } | |
9735 | ||
9736 | ||
c32bde28 | 9737 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9738 | PyObject *resultobj; |
9739 | wxTextCtrl *result; | |
9740 | char *kwnames[] = { | |
9741 | NULL | |
9742 | }; | |
9743 | ||
9744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
9745 | { | |
e3b71cb8 | 9746 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9748 | result = (wxTextCtrl *)new wxTextCtrl(); | |
9749 | ||
9750 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9751 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9752 | } |
b0f7404b | 9753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
9754 | return resultobj; |
9755 | fail: | |
9756 | return NULL; | |
9757 | } | |
9758 | ||
9759 | ||
c32bde28 | 9760 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9761 | PyObject *resultobj; |
9762 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9763 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 9764 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9765 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9766 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9767 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9768 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9769 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9770 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9771 | long arg7 = (long) 0 ; | |
9772 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9773 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9774 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
9775 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9776 | bool result; | |
ae8162c8 | 9777 | bool temp4 = false ; |
d14a1e28 RD |
9778 | wxPoint temp5 ; |
9779 | wxSize temp6 ; | |
ae8162c8 | 9780 | bool temp9 = false ; |
d14a1e28 RD |
9781 | PyObject * obj0 = 0 ; |
9782 | PyObject * obj1 = 0 ; | |
994141e6 | 9783 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9784 | PyObject * obj3 = 0 ; |
9785 | PyObject * obj4 = 0 ; | |
9786 | PyObject * obj5 = 0 ; | |
994141e6 | 9787 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
9788 | PyObject * obj7 = 0 ; |
9789 | PyObject * obj8 = 0 ; | |
9790 | char *kwnames[] = { | |
9791 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9792 | }; | |
9793 | ||
248ed943 | 9794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
9795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9797 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9798 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 9799 | if (obj2) { |
093d3ff1 RD |
9800 | { |
9801 | arg3 = (int)(SWIG_As_int(obj2)); | |
9802 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9803 | } | |
248ed943 | 9804 | } |
d14a1e28 RD |
9805 | if (obj3) { |
9806 | { | |
9807 | arg4 = wxString_in_helper(obj3); | |
9808 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 9809 | temp4 = true; |
d14a1e28 RD |
9810 | } |
9811 | } | |
9812 | if (obj4) { | |
9813 | { | |
9814 | arg5 = &temp5; | |
9815 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9816 | } | |
9817 | } | |
9818 | if (obj5) { | |
9819 | { | |
9820 | arg6 = &temp6; | |
9821 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9822 | } | |
9823 | } | |
994141e6 | 9824 | if (obj6) { |
093d3ff1 RD |
9825 | { |
9826 | arg7 = (long)(SWIG_As_long(obj6)); | |
9827 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9828 | } | |
994141e6 | 9829 | } |
d14a1e28 | 9830 | if (obj7) { |
093d3ff1 RD |
9831 | { |
9832 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9833 | if (SWIG_arg_fail(8)) SWIG_fail; | |
9834 | if (arg8 == NULL) { | |
9835 | SWIG_null_ref("wxValidator"); | |
9836 | } | |
9837 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
9838 | } |
9839 | } | |
9840 | if (obj8) { | |
9841 | { | |
9842 | arg9 = wxString_in_helper(obj8); | |
9843 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 9844 | temp9 = true; |
d14a1e28 RD |
9845 | } |
9846 | } | |
9847 | { | |
9848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9849 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9850 | ||
9851 | wxPyEndAllowThreads(__tstate); | |
9852 | if (PyErr_Occurred()) SWIG_fail; | |
9853 | } | |
4f89f6a3 RD |
9854 | { |
9855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9856 | } | |
d14a1e28 RD |
9857 | { |
9858 | if (temp4) | |
9859 | delete arg4; | |
9860 | } | |
9861 | { | |
9862 | if (temp9) | |
9863 | delete arg9; | |
9864 | } | |
9865 | return resultobj; | |
9866 | fail: | |
9867 | { | |
9868 | if (temp4) | |
9869 | delete arg4; | |
9870 | } | |
9871 | { | |
9872 | if (temp9) | |
9873 | delete arg9; | |
9874 | } | |
9875 | return NULL; | |
9876 | } | |
9877 | ||
9878 | ||
c32bde28 | 9879 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9880 | PyObject *resultobj; |
9881 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9882 | wxString result; | |
9883 | PyObject * obj0 = 0 ; | |
9884 | char *kwnames[] = { | |
9885 | (char *) "self", NULL | |
9886 | }; | |
9887 | ||
9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9889 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9890 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9891 | { |
9892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9893 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
9894 | ||
9895 | wxPyEndAllowThreads(__tstate); | |
9896 | if (PyErr_Occurred()) SWIG_fail; | |
9897 | } | |
9898 | { | |
9899 | #if wxUSE_UNICODE | |
9900 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9901 | #else | |
9902 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9903 | #endif | |
9904 | } | |
9905 | return resultobj; | |
9906 | fail: | |
9907 | return NULL; | |
9908 | } | |
9909 | ||
9910 | ||
c32bde28 | 9911 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9912 | PyObject *resultobj; |
9913 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9914 | wxString *arg2 = 0 ; | |
ae8162c8 | 9915 | bool temp2 = false ; |
d14a1e28 RD |
9916 | PyObject * obj0 = 0 ; |
9917 | PyObject * obj1 = 0 ; | |
9918 | char *kwnames[] = { | |
9919 | (char *) "self",(char *) "value", NULL | |
9920 | }; | |
9921 | ||
9922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9925 | { |
9926 | arg2 = wxString_in_helper(obj1); | |
9927 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 9928 | temp2 = true; |
d14a1e28 RD |
9929 | } |
9930 | { | |
9931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9932 | (arg1)->SetValue((wxString const &)*arg2); | |
9933 | ||
9934 | wxPyEndAllowThreads(__tstate); | |
9935 | if (PyErr_Occurred()) SWIG_fail; | |
9936 | } | |
9937 | Py_INCREF(Py_None); resultobj = Py_None; | |
9938 | { | |
9939 | if (temp2) | |
9940 | delete arg2; | |
9941 | } | |
9942 | return resultobj; | |
9943 | fail: | |
9944 | { | |
9945 | if (temp2) | |
9946 | delete arg2; | |
9947 | } | |
9948 | return NULL; | |
9949 | } | |
9950 | ||
9951 | ||
c32bde28 | 9952 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9953 | PyObject *resultobj; |
9954 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9955 | long arg2 ; | |
9956 | long arg3 ; | |
9957 | wxString result; | |
9958 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9959 | PyObject * obj1 = 0 ; |
9960 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9961 | char *kwnames[] = { |
9962 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9963 | }; | |
9964 | ||
994141e6 | 9965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9966 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9968 | { | |
9969 | arg2 = (long)(SWIG_As_long(obj1)); | |
9970 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9971 | } | |
9972 | { | |
9973 | arg3 = (long)(SWIG_As_long(obj2)); | |
9974 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9975 | } | |
d14a1e28 RD |
9976 | { |
9977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9978 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
9979 | ||
9980 | wxPyEndAllowThreads(__tstate); | |
9981 | if (PyErr_Occurred()) SWIG_fail; | |
9982 | } | |
9983 | { | |
9984 | #if wxUSE_UNICODE | |
9985 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9986 | #else | |
9987 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9988 | #endif | |
9989 | } | |
9990 | return resultobj; | |
9991 | fail: | |
9992 | return NULL; | |
9993 | } | |
9994 | ||
9995 | ||
c32bde28 | 9996 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9997 | PyObject *resultobj; |
9998 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9999 | long arg2 ; | |
10000 | int result; | |
10001 | PyObject * obj0 = 0 ; | |
994141e6 | 10002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10003 | char *kwnames[] = { |
10004 | (char *) "self",(char *) "lineNo", NULL | |
10005 | }; | |
10006 | ||
994141e6 | 10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10010 | { | |
10011 | arg2 = (long)(SWIG_As_long(obj1)); | |
10012 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10013 | } | |
d14a1e28 RD |
10014 | { |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
093d3ff1 RD |
10021 | { |
10022 | resultobj = SWIG_From_int((int)(result)); | |
10023 | } | |
d14a1e28 RD |
10024 | return resultobj; |
10025 | fail: | |
10026 | return NULL; | |
10027 | } | |
10028 | ||
10029 | ||
c32bde28 | 10030 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10031 | PyObject *resultobj; |
10032 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10033 | long arg2 ; | |
10034 | wxString result; | |
10035 | PyObject * obj0 = 0 ; | |
994141e6 | 10036 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10037 | char *kwnames[] = { |
10038 | (char *) "self",(char *) "lineNo", NULL | |
10039 | }; | |
10040 | ||
994141e6 | 10041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10044 | { | |
10045 | arg2 = (long)(SWIG_As_long(obj1)); | |
10046 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10047 | } | |
d14a1e28 RD |
10048 | { |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | #if wxUSE_UNICODE | |
10057 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10058 | #else | |
10059 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10060 | #endif | |
10061 | } | |
10062 | return resultobj; | |
10063 | fail: | |
10064 | return NULL; | |
10065 | } | |
10066 | ||
10067 | ||
c32bde28 | 10068 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10069 | PyObject *resultobj; |
10070 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10071 | int result; | |
10072 | PyObject * obj0 = 0 ; | |
10073 | char *kwnames[] = { | |
10074 | (char *) "self", NULL | |
10075 | }; | |
10076 | ||
10077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10080 | { |
10081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10082 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
10083 | ||
10084 | wxPyEndAllowThreads(__tstate); | |
10085 | if (PyErr_Occurred()) SWIG_fail; | |
10086 | } | |
093d3ff1 RD |
10087 | { |
10088 | resultobj = SWIG_From_int((int)(result)); | |
10089 | } | |
d14a1e28 RD |
10090 | return resultobj; |
10091 | fail: | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
c32bde28 | 10096 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10097 | PyObject *resultobj; |
10098 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10099 | bool result; | |
10100 | PyObject * obj0 = 0 ; | |
10101 | char *kwnames[] = { | |
10102 | (char *) "self", NULL | |
10103 | }; | |
10104 | ||
10105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10106 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10107 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10108 | { |
10109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10110 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
10111 | ||
10112 | wxPyEndAllowThreads(__tstate); | |
10113 | if (PyErr_Occurred()) SWIG_fail; | |
10114 | } | |
4f89f6a3 RD |
10115 | { |
10116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10117 | } | |
d14a1e28 RD |
10118 | return resultobj; |
10119 | fail: | |
10120 | return NULL; | |
10121 | } | |
10122 | ||
10123 | ||
c32bde28 | 10124 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10125 | PyObject *resultobj; |
10126 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10127 | bool result; | |
10128 | PyObject * obj0 = 0 ; | |
10129 | char *kwnames[] = { | |
10130 | (char *) "self", NULL | |
10131 | }; | |
10132 | ||
10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10134 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10135 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10136 | { |
10137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10138 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
10139 | ||
10140 | wxPyEndAllowThreads(__tstate); | |
10141 | if (PyErr_Occurred()) SWIG_fail; | |
10142 | } | |
4f89f6a3 RD |
10143 | { |
10144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10145 | } | |
d14a1e28 RD |
10146 | return resultobj; |
10147 | fail: | |
10148 | return NULL; | |
10149 | } | |
10150 | ||
10151 | ||
c32bde28 | 10152 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10153 | PyObject *resultobj; |
10154 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10155 | bool result; | |
10156 | PyObject * obj0 = 0 ; | |
10157 | char *kwnames[] = { | |
10158 | (char *) "self", NULL | |
10159 | }; | |
10160 | ||
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10164 | { |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10166 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
10167 | ||
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) SWIG_fail; | |
10170 | } | |
4f89f6a3 RD |
10171 | { |
10172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10173 | } | |
d14a1e28 RD |
10174 | return resultobj; |
10175 | fail: | |
10176 | return NULL; | |
10177 | } | |
10178 | ||
10179 | ||
c32bde28 | 10180 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10181 | PyObject *resultobj; |
10182 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10183 | bool result; | |
10184 | PyObject * obj0 = 0 ; | |
10185 | char *kwnames[] = { | |
10186 | (char *) "self", NULL | |
10187 | }; | |
10188 | ||
10189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10192 | { |
10193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10194 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
10195 | ||
10196 | wxPyEndAllowThreads(__tstate); | |
10197 | if (PyErr_Occurred()) SWIG_fail; | |
10198 | } | |
4f89f6a3 RD |
10199 | { |
10200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10201 | } | |
d14a1e28 RD |
10202 | return resultobj; |
10203 | fail: | |
10204 | return NULL; | |
10205 | } | |
10206 | ||
10207 | ||
c32bde28 | 10208 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10209 | PyObject *resultobj; |
10210 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10211 | long *arg2 = (long *) 0 ; | |
10212 | long *arg3 = (long *) 0 ; | |
10213 | long temp2 ; | |
c32bde28 | 10214 | int res2 = 0 ; |
d14a1e28 | 10215 | long temp3 ; |
c32bde28 | 10216 | int res3 = 0 ; |
d14a1e28 RD |
10217 | PyObject * obj0 = 0 ; |
10218 | char *kwnames[] = { | |
10219 | (char *) "self", NULL | |
10220 | }; | |
10221 | ||
c32bde28 RD |
10222 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10223 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 10224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
10225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10227 | { |
10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10229 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
10230 | ||
10231 | wxPyEndAllowThreads(__tstate); | |
10232 | if (PyErr_Occurred()) SWIG_fail; | |
10233 | } | |
10234 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
10235 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10236 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
10237 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10238 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
10239 | return resultobj; |
10240 | fail: | |
10241 | return NULL; | |
10242 | } | |
10243 | ||
10244 | ||
c32bde28 | 10245 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10246 | PyObject *resultobj; |
10247 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10248 | wxString result; | |
10249 | PyObject * obj0 = 0 ; | |
10250 | char *kwnames[] = { | |
10251 | (char *) "self", NULL | |
10252 | }; | |
10253 | ||
10254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10257 | { |
10258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10259 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
10260 | ||
10261 | wxPyEndAllowThreads(__tstate); | |
10262 | if (PyErr_Occurred()) SWIG_fail; | |
10263 | } | |
10264 | { | |
10265 | #if wxUSE_UNICODE | |
10266 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10267 | #else | |
10268 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10269 | #endif | |
10270 | } | |
10271 | return resultobj; | |
10272 | fail: | |
10273 | return NULL; | |
10274 | } | |
10275 | ||
10276 | ||
c32bde28 | 10277 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10278 | PyObject *resultobj; |
10279 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10280 | PyObject * obj0 = 0 ; | |
10281 | char *kwnames[] = { | |
10282 | (char *) "self", NULL | |
10283 | }; | |
10284 | ||
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10288 | { |
10289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10290 | (arg1)->Clear(); | |
10291 | ||
10292 | wxPyEndAllowThreads(__tstate); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | Py_INCREF(Py_None); resultobj = Py_None; | |
10296 | return resultobj; | |
10297 | fail: | |
10298 | return NULL; | |
10299 | } | |
10300 | ||
10301 | ||
c32bde28 | 10302 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10303 | PyObject *resultobj; |
10304 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10305 | long arg2 ; | |
10306 | long arg3 ; | |
10307 | wxString *arg4 = 0 ; | |
ae8162c8 | 10308 | bool temp4 = false ; |
d14a1e28 | 10309 | PyObject * obj0 = 0 ; |
994141e6 RD |
10310 | PyObject * obj1 = 0 ; |
10311 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10312 | PyObject * obj3 = 0 ; |
10313 | char *kwnames[] = { | |
10314 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
10315 | }; | |
10316 | ||
994141e6 | 10317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10320 | { | |
10321 | arg2 = (long)(SWIG_As_long(obj1)); | |
10322 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10323 | } | |
10324 | { | |
10325 | arg3 = (long)(SWIG_As_long(obj2)); | |
10326 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10327 | } | |
d14a1e28 RD |
10328 | { |
10329 | arg4 = wxString_in_helper(obj3); | |
10330 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 10331 | temp4 = true; |
d14a1e28 RD |
10332 | } |
10333 | { | |
10334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10335 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
10336 | ||
10337 | wxPyEndAllowThreads(__tstate); | |
10338 | if (PyErr_Occurred()) SWIG_fail; | |
10339 | } | |
10340 | Py_INCREF(Py_None); resultobj = Py_None; | |
10341 | { | |
10342 | if (temp4) | |
10343 | delete arg4; | |
10344 | } | |
10345 | return resultobj; | |
10346 | fail: | |
10347 | { | |
10348 | if (temp4) | |
10349 | delete arg4; | |
10350 | } | |
10351 | return NULL; | |
10352 | } | |
10353 | ||
10354 | ||
c32bde28 | 10355 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10356 | PyObject *resultobj; |
10357 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10358 | long arg2 ; | |
10359 | long arg3 ; | |
10360 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10361 | PyObject * obj1 = 0 ; |
10362 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10363 | char *kwnames[] = { |
10364 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10365 | }; | |
10366 | ||
994141e6 | 10367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10370 | { | |
10371 | arg2 = (long)(SWIG_As_long(obj1)); | |
10372 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10373 | } | |
10374 | { | |
10375 | arg3 = (long)(SWIG_As_long(obj2)); | |
10376 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10377 | } | |
d14a1e28 RD |
10378 | { |
10379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10380 | (arg1)->Remove(arg2,arg3); | |
10381 | ||
10382 | wxPyEndAllowThreads(__tstate); | |
10383 | if (PyErr_Occurred()) SWIG_fail; | |
10384 | } | |
10385 | Py_INCREF(Py_None); resultobj = Py_None; | |
10386 | return resultobj; | |
10387 | fail: | |
10388 | return NULL; | |
10389 | } | |
10390 | ||
10391 | ||
c32bde28 | 10392 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10393 | PyObject *resultobj; |
10394 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10395 | wxString *arg2 = 0 ; | |
10396 | bool result; | |
ae8162c8 | 10397 | bool temp2 = false ; |
d14a1e28 RD |
10398 | PyObject * obj0 = 0 ; |
10399 | PyObject * obj1 = 0 ; | |
10400 | char *kwnames[] = { | |
10401 | (char *) "self",(char *) "file", NULL | |
10402 | }; | |
10403 | ||
10404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10405 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10406 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10407 | { |
10408 | arg2 = wxString_in_helper(obj1); | |
10409 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10410 | temp2 = true; |
d14a1e28 RD |
10411 | } |
10412 | { | |
10413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10414 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
10415 | ||
10416 | wxPyEndAllowThreads(__tstate); | |
10417 | if (PyErr_Occurred()) SWIG_fail; | |
10418 | } | |
4f89f6a3 RD |
10419 | { |
10420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10421 | } | |
d14a1e28 RD |
10422 | { |
10423 | if (temp2) | |
10424 | delete arg2; | |
10425 | } | |
10426 | return resultobj; | |
10427 | fail: | |
10428 | { | |
10429 | if (temp2) | |
10430 | delete arg2; | |
10431 | } | |
10432 | return NULL; | |
10433 | } | |
10434 | ||
10435 | ||
c32bde28 | 10436 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10437 | PyObject *resultobj; |
10438 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10439 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10440 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10441 | bool result; | |
ae8162c8 | 10442 | bool temp2 = false ; |
d14a1e28 RD |
10443 | PyObject * obj0 = 0 ; |
10444 | PyObject * obj1 = 0 ; | |
10445 | char *kwnames[] = { | |
10446 | (char *) "self",(char *) "file", NULL | |
10447 | }; | |
10448 | ||
10449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10452 | if (obj1) { |
10453 | { | |
10454 | arg2 = wxString_in_helper(obj1); | |
10455 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10456 | temp2 = true; |
d14a1e28 RD |
10457 | } |
10458 | } | |
10459 | { | |
10460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10461 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
10462 | ||
10463 | wxPyEndAllowThreads(__tstate); | |
10464 | if (PyErr_Occurred()) SWIG_fail; | |
10465 | } | |
4f89f6a3 RD |
10466 | { |
10467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10468 | } | |
d14a1e28 RD |
10469 | { |
10470 | if (temp2) | |
10471 | delete arg2; | |
10472 | } | |
10473 | return resultobj; | |
10474 | fail: | |
10475 | { | |
10476 | if (temp2) | |
10477 | delete arg2; | |
10478 | } | |
10479 | return NULL; | |
10480 | } | |
10481 | ||
10482 | ||
c32bde28 | 10483 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10484 | PyObject *resultobj; |
10485 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10486 | PyObject * obj0 = 0 ; | |
10487 | char *kwnames[] = { | |
10488 | (char *) "self", NULL | |
10489 | }; | |
10490 | ||
10491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10494 | { |
10495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10496 | (arg1)->MarkDirty(); | |
10497 | ||
10498 | wxPyEndAllowThreads(__tstate); | |
10499 | if (PyErr_Occurred()) SWIG_fail; | |
10500 | } | |
10501 | Py_INCREF(Py_None); resultobj = Py_None; | |
10502 | return resultobj; | |
10503 | fail: | |
10504 | return NULL; | |
10505 | } | |
10506 | ||
10507 | ||
c32bde28 | 10508 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10509 | PyObject *resultobj; |
10510 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10511 | PyObject * obj0 = 0 ; | |
10512 | char *kwnames[] = { | |
10513 | (char *) "self", NULL | |
10514 | }; | |
10515 | ||
10516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10519 | { |
10520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10521 | (arg1)->DiscardEdits(); | |
10522 | ||
10523 | wxPyEndAllowThreads(__tstate); | |
10524 | if (PyErr_Occurred()) SWIG_fail; | |
10525 | } | |
10526 | Py_INCREF(Py_None); resultobj = Py_None; | |
10527 | return resultobj; | |
10528 | fail: | |
10529 | return NULL; | |
10530 | } | |
10531 | ||
10532 | ||
c32bde28 | 10533 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10534 | PyObject *resultobj; |
10535 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10536 | unsigned long arg2 ; | |
10537 | PyObject * obj0 = 0 ; | |
10538 | PyObject * obj1 = 0 ; | |
10539 | char *kwnames[] = { | |
10540 | (char *) "self",(char *) "len", NULL | |
10541 | }; | |
10542 | ||
10543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10546 | { | |
10547 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
10548 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10549 | } | |
d14a1e28 RD |
10550 | { |
10551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10552 | (arg1)->SetMaxLength(arg2); | |
10553 | ||
10554 | wxPyEndAllowThreads(__tstate); | |
10555 | if (PyErr_Occurred()) SWIG_fail; | |
10556 | } | |
10557 | Py_INCREF(Py_None); resultobj = Py_None; | |
10558 | return resultobj; | |
10559 | fail: | |
10560 | return NULL; | |
10561 | } | |
10562 | ||
10563 | ||
c32bde28 | 10564 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10565 | PyObject *resultobj; |
10566 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10567 | wxString *arg2 = 0 ; | |
ae8162c8 | 10568 | bool temp2 = false ; |
d14a1e28 RD |
10569 | PyObject * obj0 = 0 ; |
10570 | PyObject * obj1 = 0 ; | |
10571 | char *kwnames[] = { | |
10572 | (char *) "self",(char *) "text", NULL | |
10573 | }; | |
10574 | ||
10575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10578 | { |
10579 | arg2 = wxString_in_helper(obj1); | |
10580 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10581 | temp2 = true; |
d14a1e28 RD |
10582 | } |
10583 | { | |
10584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10585 | (arg1)->WriteText((wxString const &)*arg2); | |
10586 | ||
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | Py_INCREF(Py_None); resultobj = Py_None; | |
10591 | { | |
10592 | if (temp2) | |
10593 | delete arg2; | |
10594 | } | |
10595 | return resultobj; | |
10596 | fail: | |
10597 | { | |
10598 | if (temp2) | |
10599 | delete arg2; | |
10600 | } | |
10601 | return NULL; | |
10602 | } | |
10603 | ||
10604 | ||
c32bde28 | 10605 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10606 | PyObject *resultobj; |
10607 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10608 | wxString *arg2 = 0 ; | |
ae8162c8 | 10609 | bool temp2 = false ; |
d14a1e28 RD |
10610 | PyObject * obj0 = 0 ; |
10611 | PyObject * obj1 = 0 ; | |
10612 | char *kwnames[] = { | |
10613 | (char *) "self",(char *) "text", NULL | |
10614 | }; | |
10615 | ||
10616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",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; | |
d14a1e28 RD |
10619 | { |
10620 | arg2 = wxString_in_helper(obj1); | |
10621 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10622 | temp2 = true; |
d14a1e28 RD |
10623 | } |
10624 | { | |
10625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10626 | (arg1)->AppendText((wxString const &)*arg2); | |
10627 | ||
10628 | wxPyEndAllowThreads(__tstate); | |
10629 | if (PyErr_Occurred()) SWIG_fail; | |
10630 | } | |
10631 | Py_INCREF(Py_None); resultobj = Py_None; | |
10632 | { | |
10633 | if (temp2) | |
10634 | delete arg2; | |
10635 | } | |
10636 | return resultobj; | |
10637 | fail: | |
10638 | { | |
10639 | if (temp2) | |
10640 | delete arg2; | |
10641 | } | |
10642 | return NULL; | |
10643 | } | |
10644 | ||
10645 | ||
c32bde28 | 10646 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10647 | PyObject *resultobj; |
10648 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10649 | wxKeyEvent *arg2 = 0 ; | |
10650 | bool result; | |
10651 | PyObject * obj0 = 0 ; | |
10652 | PyObject * obj1 = 0 ; | |
10653 | char *kwnames[] = { | |
10654 | (char *) "self",(char *) "event", NULL | |
10655 | }; | |
10656 | ||
10657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10660 | { | |
10661 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
10662 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10663 | if (arg2 == NULL) { | |
10664 | SWIG_null_ref("wxKeyEvent"); | |
10665 | } | |
10666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10667 | } |
10668 | { | |
10669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10670 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
10671 | ||
10672 | wxPyEndAllowThreads(__tstate); | |
10673 | if (PyErr_Occurred()) SWIG_fail; | |
10674 | } | |
4f89f6a3 RD |
10675 | { |
10676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10677 | } | |
d14a1e28 RD |
10678 | return resultobj; |
10679 | fail: | |
10680 | return NULL; | |
10681 | } | |
10682 | ||
10683 | ||
c32bde28 | 10684 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10685 | PyObject *resultobj; |
10686 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10687 | long arg2 ; | |
10688 | long arg3 ; | |
10689 | wxTextAttr *arg4 = 0 ; | |
10690 | bool result; | |
10691 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10692 | PyObject * obj1 = 0 ; |
10693 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10694 | PyObject * obj3 = 0 ; |
10695 | char *kwnames[] = { | |
10696 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
10697 | }; | |
10698 | ||
994141e6 | 10699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10702 | { | |
10703 | arg2 = (long)(SWIG_As_long(obj1)); | |
10704 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10705 | } | |
10706 | { | |
10707 | arg3 = (long)(SWIG_As_long(obj2)); | |
10708 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10709 | } | |
10710 | { | |
10711 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10712 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10713 | if (arg4 == NULL) { | |
10714 | SWIG_null_ref("wxTextAttr"); | |
10715 | } | |
10716 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
10717 | } |
10718 | { | |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
10721 | ||
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
4f89f6a3 RD |
10725 | { |
10726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10727 | } | |
d14a1e28 RD |
10728 | return resultobj; |
10729 | fail: | |
10730 | return NULL; | |
10731 | } | |
10732 | ||
10733 | ||
c32bde28 | 10734 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10735 | PyObject *resultobj; |
10736 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10737 | long arg2 ; | |
10738 | wxTextAttr *arg3 = 0 ; | |
10739 | bool result; | |
10740 | PyObject * obj0 = 0 ; | |
994141e6 | 10741 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10742 | PyObject * obj2 = 0 ; |
10743 | char *kwnames[] = { | |
10744 | (char *) "self",(char *) "position",(char *) "style", NULL | |
10745 | }; | |
10746 | ||
994141e6 | 10747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10750 | { | |
10751 | arg2 = (long)(SWIG_As_long(obj1)); | |
10752 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10753 | } | |
10754 | { | |
10755 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10756 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10757 | if (arg3 == NULL) { | |
10758 | SWIG_null_ref("wxTextAttr"); | |
10759 | } | |
10760 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
10761 | } |
10762 | { | |
10763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10764 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
10765 | ||
10766 | wxPyEndAllowThreads(__tstate); | |
10767 | if (PyErr_Occurred()) SWIG_fail; | |
10768 | } | |
4f89f6a3 RD |
10769 | { |
10770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10771 | } | |
d14a1e28 RD |
10772 | return resultobj; |
10773 | fail: | |
10774 | return NULL; | |
10775 | } | |
10776 | ||
10777 | ||
c32bde28 | 10778 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10779 | PyObject *resultobj; |
10780 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10781 | wxTextAttr *arg2 = 0 ; | |
10782 | bool result; | |
10783 | PyObject * obj0 = 0 ; | |
10784 | PyObject * obj1 = 0 ; | |
10785 | char *kwnames[] = { | |
10786 | (char *) "self",(char *) "style", NULL | |
10787 | }; | |
10788 | ||
10789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10792 | { | |
10793 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10794 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10795 | if (arg2 == NULL) { | |
10796 | SWIG_null_ref("wxTextAttr"); | |
10797 | } | |
10798 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10799 | } |
10800 | { | |
10801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10802 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
10803 | ||
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
4f89f6a3 RD |
10807 | { |
10808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10809 | } | |
d14a1e28 RD |
10810 | return resultobj; |
10811 | fail: | |
10812 | return NULL; | |
10813 | } | |
10814 | ||
10815 | ||
c32bde28 | 10816 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10817 | PyObject *resultobj; |
10818 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10819 | wxTextAttr *result; | |
10820 | PyObject * obj0 = 0 ; | |
10821 | char *kwnames[] = { | |
10822 | (char *) "self", NULL | |
10823 | }; | |
10824 | ||
10825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10828 | { |
10829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10830 | { | |
10831 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
10832 | result = (wxTextAttr *) &_result_ref; | |
10833 | } | |
10834 | ||
10835 | wxPyEndAllowThreads(__tstate); | |
10836 | if (PyErr_Occurred()) SWIG_fail; | |
10837 | } | |
15afbcd0 | 10838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
10839 | return resultobj; |
10840 | fail: | |
10841 | return NULL; | |
10842 | } | |
10843 | ||
10844 | ||
c32bde28 | 10845 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10846 | PyObject *resultobj; |
10847 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10848 | long arg2 ; | |
10849 | long arg3 ; | |
10850 | long result; | |
10851 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10852 | PyObject * obj1 = 0 ; |
10853 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10854 | char *kwnames[] = { |
10855 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10856 | }; | |
10857 | ||
994141e6 | 10858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10861 | { | |
10862 | arg2 = (long)(SWIG_As_long(obj1)); | |
10863 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10864 | } | |
10865 | { | |
10866 | arg3 = (long)(SWIG_As_long(obj2)); | |
10867 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10868 | } | |
d14a1e28 RD |
10869 | { |
10870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10871 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
10872 | ||
10873 | wxPyEndAllowThreads(__tstate); | |
10874 | if (PyErr_Occurred()) SWIG_fail; | |
10875 | } | |
093d3ff1 RD |
10876 | { |
10877 | resultobj = SWIG_From_long((long)(result)); | |
10878 | } | |
d14a1e28 RD |
10879 | return resultobj; |
10880 | fail: | |
10881 | return NULL; | |
10882 | } | |
10883 | ||
10884 | ||
c32bde28 | 10885 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10886 | PyObject *resultobj; |
10887 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10888 | long arg2 ; | |
10889 | long *arg3 = (long *) 0 ; | |
10890 | long *arg4 = (long *) 0 ; | |
10891 | long temp3 ; | |
c32bde28 | 10892 | int res3 = 0 ; |
d14a1e28 | 10893 | long temp4 ; |
c32bde28 | 10894 | int res4 = 0 ; |
d14a1e28 | 10895 | PyObject * obj0 = 0 ; |
994141e6 | 10896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10897 | char *kwnames[] = { |
10898 | (char *) "self",(char *) "pos", NULL | |
10899 | }; | |
10900 | ||
c32bde28 RD |
10901 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
10902 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 10903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10906 | { | |
10907 | arg2 = (long)(SWIG_As_long(obj1)); | |
10908 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10909 | } | |
d14a1e28 RD |
10910 | { |
10911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10912 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
10913 | ||
10914 | wxPyEndAllowThreads(__tstate); | |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
10916 | } | |
10917 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
10918 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
10919 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10920 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10921 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
10922 | return resultobj; |
10923 | fail: | |
10924 | return NULL; | |
10925 | } | |
10926 | ||
10927 | ||
c32bde28 | 10928 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10929 | PyObject *resultobj; |
10930 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10931 | long arg2 ; | |
10932 | PyObject * obj0 = 0 ; | |
994141e6 | 10933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10934 | char *kwnames[] = { |
10935 | (char *) "self",(char *) "pos", NULL | |
10936 | }; | |
10937 | ||
994141e6 | 10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10941 | { | |
10942 | arg2 = (long)(SWIG_As_long(obj1)); | |
10943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10944 | } | |
d14a1e28 RD |
10945 | { |
10946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10947 | (arg1)->ShowPosition(arg2); | |
10948 | ||
10949 | wxPyEndAllowThreads(__tstate); | |
10950 | if (PyErr_Occurred()) SWIG_fail; | |
10951 | } | |
10952 | Py_INCREF(Py_None); resultobj = Py_None; | |
10953 | return resultobj; | |
10954 | fail: | |
10955 | return NULL; | |
10956 | } | |
10957 | ||
10958 | ||
c32bde28 | 10959 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
4d5c3d91 RD |
10960 | PyObject *resultobj; |
10961 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10962 | wxPoint *arg2 = 0 ; | |
10963 | long *arg3 = (long *) 0 ; | |
10964 | long *arg4 = (long *) 0 ; | |
093d3ff1 | 10965 | wxTextCtrlHitTestResult result; |
4d5c3d91 RD |
10966 | wxPoint temp2 ; |
10967 | long temp3 ; | |
c32bde28 | 10968 | int res3 = 0 ; |
4d5c3d91 | 10969 | long temp4 ; |
c32bde28 | 10970 | int res4 = 0 ; |
4d5c3d91 RD |
10971 | PyObject * obj0 = 0 ; |
10972 | PyObject * obj1 = 0 ; | |
10973 | char *kwnames[] = { | |
10974 | (char *) "self",(char *) "pt", NULL | |
10975 | }; | |
10976 | ||
c32bde28 RD |
10977 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
10978 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4d5c3d91 | 10979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10980 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10981 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4d5c3d91 RD |
10982 | { |
10983 | arg2 = &temp2; | |
10984 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10985 | } | |
10986 | { | |
10987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10988 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); |
4d5c3d91 RD |
10989 | |
10990 | wxPyEndAllowThreads(__tstate); | |
10991 | if (PyErr_Occurred()) SWIG_fail; | |
10992 | } | |
093d3ff1 | 10993 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
10994 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
10995 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10996 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10997 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
4d5c3d91 RD |
10998 | return resultobj; |
10999 | fail: | |
11000 | return NULL; | |
11001 | } | |
11002 | ||
11003 | ||
c32bde28 | 11004 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
4896ac9e RD |
11005 | PyObject *resultobj; |
11006 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11007 | wxPoint *arg2 = 0 ; | |
11008 | long *arg3 = (long *) 0 ; | |
093d3ff1 | 11009 | wxTextCtrlHitTestResult result; |
4896ac9e RD |
11010 | wxPoint temp2 ; |
11011 | long temp3 ; | |
c32bde28 | 11012 | int res3 = 0 ; |
4896ac9e RD |
11013 | PyObject * obj0 = 0 ; |
11014 | PyObject * obj1 = 0 ; | |
11015 | char *kwnames[] = { | |
11016 | (char *) "self",(char *) "pt", NULL | |
11017 | }; | |
11018 | ||
c32bde28 | 11019 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e | 11020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4896ac9e RD |
11023 | { |
11024 | arg2 = &temp2; | |
11025 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11026 | } | |
11027 | { | |
11028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11029 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); |
4896ac9e RD |
11030 | |
11031 | wxPyEndAllowThreads(__tstate); | |
11032 | if (PyErr_Occurred()) SWIG_fail; | |
11033 | } | |
093d3ff1 | 11034 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11035 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11036 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
11037 | return resultobj; |
11038 | fail: | |
11039 | return NULL; | |
11040 | } | |
11041 | ||
11042 | ||
c32bde28 | 11043 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11044 | PyObject *resultobj; |
11045 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11046 | PyObject * obj0 = 0 ; | |
11047 | char *kwnames[] = { | |
11048 | (char *) "self", NULL | |
11049 | }; | |
11050 | ||
11051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11054 | { |
11055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11056 | (arg1)->Copy(); | |
11057 | ||
11058 | wxPyEndAllowThreads(__tstate); | |
11059 | if (PyErr_Occurred()) SWIG_fail; | |
11060 | } | |
11061 | Py_INCREF(Py_None); resultobj = Py_None; | |
11062 | return resultobj; | |
11063 | fail: | |
11064 | return NULL; | |
11065 | } | |
11066 | ||
11067 | ||
c32bde28 | 11068 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11069 | PyObject *resultobj; |
11070 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11071 | PyObject * obj0 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "self", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11079 | { |
11080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11081 | (arg1)->Cut(); | |
11082 | ||
11083 | wxPyEndAllowThreads(__tstate); | |
11084 | if (PyErr_Occurred()) SWIG_fail; | |
11085 | } | |
11086 | Py_INCREF(Py_None); resultobj = Py_None; | |
11087 | return resultobj; | |
11088 | fail: | |
11089 | return NULL; | |
11090 | } | |
11091 | ||
11092 | ||
c32bde28 | 11093 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11094 | PyObject *resultobj; |
11095 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11096 | PyObject * obj0 = 0 ; | |
11097 | char *kwnames[] = { | |
11098 | (char *) "self", NULL | |
11099 | }; | |
11100 | ||
11101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11104 | { |
11105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11106 | (arg1)->Paste(); | |
11107 | ||
11108 | wxPyEndAllowThreads(__tstate); | |
11109 | if (PyErr_Occurred()) SWIG_fail; | |
11110 | } | |
11111 | Py_INCREF(Py_None); resultobj = Py_None; | |
11112 | return resultobj; | |
11113 | fail: | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
c32bde28 | 11118 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11119 | PyObject *resultobj; |
11120 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11121 | bool result; | |
11122 | PyObject * obj0 = 0 ; | |
11123 | char *kwnames[] = { | |
11124 | (char *) "self", NULL | |
11125 | }; | |
11126 | ||
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11130 | { |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11132 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
11133 | ||
11134 | wxPyEndAllowThreads(__tstate); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
11136 | } | |
4f89f6a3 RD |
11137 | { |
11138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11139 | } | |
d14a1e28 RD |
11140 | return resultobj; |
11141 | fail: | |
11142 | return NULL; | |
11143 | } | |
11144 | ||
11145 | ||
c32bde28 | 11146 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11147 | PyObject *resultobj; |
11148 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11149 | bool result; | |
11150 | PyObject * obj0 = 0 ; | |
11151 | char *kwnames[] = { | |
11152 | (char *) "self", NULL | |
11153 | }; | |
11154 | ||
11155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11156 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11157 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11158 | { |
11159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11160 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
11161 | ||
11162 | wxPyEndAllowThreads(__tstate); | |
11163 | if (PyErr_Occurred()) SWIG_fail; | |
11164 | } | |
4f89f6a3 RD |
11165 | { |
11166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11167 | } | |
d14a1e28 RD |
11168 | return resultobj; |
11169 | fail: | |
11170 | return NULL; | |
11171 | } | |
11172 | ||
11173 | ||
c32bde28 | 11174 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11175 | PyObject *resultobj; |
11176 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11177 | bool result; | |
11178 | PyObject * obj0 = 0 ; | |
11179 | char *kwnames[] = { | |
11180 | (char *) "self", NULL | |
11181 | }; | |
11182 | ||
11183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11184 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11185 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11186 | { |
11187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11188 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
11189 | ||
11190 | wxPyEndAllowThreads(__tstate); | |
11191 | if (PyErr_Occurred()) SWIG_fail; | |
11192 | } | |
4f89f6a3 RD |
11193 | { |
11194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11195 | } | |
d14a1e28 RD |
11196 | return resultobj; |
11197 | fail: | |
11198 | return NULL; | |
11199 | } | |
11200 | ||
11201 | ||
c32bde28 | 11202 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11203 | PyObject *resultobj; |
11204 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11205 | PyObject * obj0 = 0 ; | |
11206 | char *kwnames[] = { | |
11207 | (char *) "self", NULL | |
11208 | }; | |
11209 | ||
11210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11213 | { |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11215 | (arg1)->Undo(); | |
11216 | ||
11217 | wxPyEndAllowThreads(__tstate); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | Py_INCREF(Py_None); resultobj = Py_None; | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
c32bde28 | 11227 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11228 | PyObject *resultobj; |
11229 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11230 | PyObject * obj0 = 0 ; | |
11231 | char *kwnames[] = { | |
11232 | (char *) "self", NULL | |
11233 | }; | |
11234 | ||
11235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11238 | { |
11239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11240 | (arg1)->Redo(); | |
11241 | ||
11242 | wxPyEndAllowThreads(__tstate); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | } | |
11245 | Py_INCREF(Py_None); resultobj = Py_None; | |
11246 | return resultobj; | |
11247 | fail: | |
11248 | return NULL; | |
11249 | } | |
11250 | ||
11251 | ||
c32bde28 | 11252 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11253 | PyObject *resultobj; |
11254 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11255 | bool result; | |
11256 | PyObject * obj0 = 0 ; | |
11257 | char *kwnames[] = { | |
11258 | (char *) "self", NULL | |
11259 | }; | |
11260 | ||
11261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11264 | { |
11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11266 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
11267 | ||
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
4f89f6a3 RD |
11271 | { |
11272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11273 | } | |
d14a1e28 RD |
11274 | return resultobj; |
11275 | fail: | |
11276 | return NULL; | |
11277 | } | |
11278 | ||
11279 | ||
c32bde28 | 11280 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11281 | PyObject *resultobj; |
11282 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11283 | bool result; | |
11284 | PyObject * obj0 = 0 ; | |
11285 | char *kwnames[] = { | |
11286 | (char *) "self", NULL | |
11287 | }; | |
11288 | ||
11289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11292 | { |
11293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11294 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
11295 | ||
11296 | wxPyEndAllowThreads(__tstate); | |
11297 | if (PyErr_Occurred()) SWIG_fail; | |
11298 | } | |
4f89f6a3 RD |
11299 | { |
11300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11301 | } | |
d14a1e28 RD |
11302 | return resultobj; |
11303 | fail: | |
11304 | return NULL; | |
11305 | } | |
11306 | ||
11307 | ||
c32bde28 | 11308 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11309 | PyObject *resultobj; |
11310 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11311 | long arg2 ; | |
11312 | PyObject * obj0 = 0 ; | |
994141e6 | 11313 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11314 | char *kwnames[] = { |
11315 | (char *) "self",(char *) "pos", NULL | |
11316 | }; | |
11317 | ||
994141e6 | 11318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11321 | { | |
11322 | arg2 = (long)(SWIG_As_long(obj1)); | |
11323 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11324 | } | |
d14a1e28 RD |
11325 | { |
11326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11327 | (arg1)->SetInsertionPoint(arg2); | |
11328 | ||
11329 | wxPyEndAllowThreads(__tstate); | |
11330 | if (PyErr_Occurred()) SWIG_fail; | |
11331 | } | |
11332 | Py_INCREF(Py_None); resultobj = Py_None; | |
11333 | return resultobj; | |
11334 | fail: | |
11335 | return NULL; | |
11336 | } | |
11337 | ||
11338 | ||
c32bde28 | 11339 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11340 | PyObject *resultobj; |
11341 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11342 | PyObject * obj0 = 0 ; | |
11343 | char *kwnames[] = { | |
11344 | (char *) "self", NULL | |
11345 | }; | |
11346 | ||
11347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11350 | { |
11351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11352 | (arg1)->SetInsertionPointEnd(); | |
11353 | ||
11354 | wxPyEndAllowThreads(__tstate); | |
11355 | if (PyErr_Occurred()) SWIG_fail; | |
11356 | } | |
11357 | Py_INCREF(Py_None); resultobj = Py_None; | |
11358 | return resultobj; | |
11359 | fail: | |
11360 | return NULL; | |
11361 | } | |
11362 | ||
11363 | ||
c32bde28 | 11364 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11365 | PyObject *resultobj; |
11366 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11367 | long result; | |
11368 | PyObject * obj0 = 0 ; | |
11369 | char *kwnames[] = { | |
11370 | (char *) "self", NULL | |
11371 | }; | |
11372 | ||
11373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11376 | { |
11377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11378 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
11379 | ||
11380 | wxPyEndAllowThreads(__tstate); | |
11381 | if (PyErr_Occurred()) SWIG_fail; | |
11382 | } | |
093d3ff1 RD |
11383 | { |
11384 | resultobj = SWIG_From_long((long)(result)); | |
11385 | } | |
d14a1e28 RD |
11386 | return resultobj; |
11387 | fail: | |
11388 | return NULL; | |
11389 | } | |
11390 | ||
11391 | ||
c32bde28 | 11392 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11393 | PyObject *resultobj; |
11394 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11395 | long result; | |
11396 | PyObject * obj0 = 0 ; | |
11397 | char *kwnames[] = { | |
11398 | (char *) "self", NULL | |
11399 | }; | |
11400 | ||
11401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11404 | { |
11405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11406 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
11407 | ||
11408 | wxPyEndAllowThreads(__tstate); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
11410 | } | |
093d3ff1 RD |
11411 | { |
11412 | resultobj = SWIG_From_long((long)(result)); | |
11413 | } | |
d14a1e28 RD |
11414 | return resultobj; |
11415 | fail: | |
11416 | return NULL; | |
11417 | } | |
11418 | ||
11419 | ||
c32bde28 | 11420 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11421 | PyObject *resultobj; |
11422 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11423 | long arg2 ; | |
11424 | long arg3 ; | |
11425 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11426 | PyObject * obj1 = 0 ; |
11427 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11428 | char *kwnames[] = { |
11429 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11430 | }; | |
11431 | ||
994141e6 | 11432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11433 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11434 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11435 | { | |
11436 | arg2 = (long)(SWIG_As_long(obj1)); | |
11437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11438 | } | |
11439 | { | |
11440 | arg3 = (long)(SWIG_As_long(obj2)); | |
11441 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11442 | } | |
d14a1e28 RD |
11443 | { |
11444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11445 | (arg1)->SetSelection(arg2,arg3); | |
11446 | ||
11447 | wxPyEndAllowThreads(__tstate); | |
11448 | if (PyErr_Occurred()) SWIG_fail; | |
11449 | } | |
11450 | Py_INCREF(Py_None); resultobj = Py_None; | |
11451 | return resultobj; | |
11452 | fail: | |
11453 | return NULL; | |
11454 | } | |
11455 | ||
11456 | ||
c32bde28 | 11457 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11458 | PyObject *resultobj; |
11459 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11460 | PyObject * obj0 = 0 ; | |
11461 | char *kwnames[] = { | |
11462 | (char *) "self", NULL | |
11463 | }; | |
11464 | ||
11465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11468 | { |
11469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11470 | (arg1)->SelectAll(); | |
11471 | ||
11472 | wxPyEndAllowThreads(__tstate); | |
11473 | if (PyErr_Occurred()) SWIG_fail; | |
11474 | } | |
11475 | Py_INCREF(Py_None); resultobj = Py_None; | |
11476 | return resultobj; | |
11477 | fail: | |
11478 | return NULL; | |
11479 | } | |
11480 | ||
11481 | ||
c32bde28 | 11482 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11483 | PyObject *resultobj; |
11484 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11485 | bool arg2 ; | |
11486 | PyObject * obj0 = 0 ; | |
11487 | PyObject * obj1 = 0 ; | |
11488 | char *kwnames[] = { | |
11489 | (char *) "self",(char *) "editable", NULL | |
11490 | }; | |
11491 | ||
11492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11495 | { | |
11496 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
11497 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11498 | } | |
d14a1e28 RD |
11499 | { |
11500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11501 | (arg1)->SetEditable(arg2); | |
11502 | ||
11503 | wxPyEndAllowThreads(__tstate); | |
11504 | if (PyErr_Occurred()) SWIG_fail; | |
11505 | } | |
11506 | Py_INCREF(Py_None); resultobj = Py_None; | |
11507 | return resultobj; | |
11508 | fail: | |
11509 | return NULL; | |
11510 | } | |
11511 | ||
11512 | ||
c32bde28 | 11513 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11514 | PyObject *resultobj; |
11515 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11516 | wxString *arg2 = 0 ; | |
ae8162c8 | 11517 | bool temp2 = false ; |
d14a1e28 RD |
11518 | PyObject * obj0 = 0 ; |
11519 | PyObject * obj1 = 0 ; | |
11520 | char *kwnames[] = { | |
11521 | (char *) "self",(char *) "text", NULL | |
11522 | }; | |
11523 | ||
11524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11525 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11526 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11527 | { |
11528 | arg2 = wxString_in_helper(obj1); | |
11529 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11530 | temp2 = true; |
d14a1e28 RD |
11531 | } |
11532 | { | |
11533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11534 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
11535 | ||
11536 | wxPyEndAllowThreads(__tstate); | |
11537 | if (PyErr_Occurred()) SWIG_fail; | |
11538 | } | |
11539 | Py_INCREF(Py_None); resultobj = Py_None; | |
11540 | { | |
11541 | if (temp2) | |
11542 | delete arg2; | |
11543 | } | |
11544 | return resultobj; | |
11545 | fail: | |
11546 | { | |
11547 | if (temp2) | |
11548 | delete arg2; | |
11549 | } | |
11550 | return NULL; | |
11551 | } | |
11552 | ||
11553 | ||
c32bde28 | 11554 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11555 | PyObject *resultobj; |
11556 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11557 | long arg2 ; | |
11558 | long arg3 ; | |
11559 | wxString result; | |
11560 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11561 | PyObject * obj1 = 0 ; |
11562 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11563 | char *kwnames[] = { |
11564 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11565 | }; | |
11566 | ||
994141e6 | 11567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11570 | { | |
11571 | arg2 = (long)(SWIG_As_long(obj1)); | |
11572 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11573 | } | |
11574 | { | |
11575 | arg3 = (long)(SWIG_As_long(obj2)); | |
11576 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11577 | } | |
d14a1e28 RD |
11578 | { |
11579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11580 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
11581 | ||
11582 | wxPyEndAllowThreads(__tstate); | |
11583 | if (PyErr_Occurred()) SWIG_fail; | |
11584 | } | |
11585 | { | |
11586 | #if wxUSE_UNICODE | |
11587 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11588 | #else | |
11589 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11590 | #endif | |
11591 | } | |
11592 | return resultobj; | |
11593 | fail: | |
11594 | return NULL; | |
11595 | } | |
11596 | ||
11597 | ||
c32bde28 | 11598 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 11599 | PyObject *resultobj; |
093d3ff1 | 11600 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
11601 | wxVisualAttributes result; |
11602 | PyObject * obj0 = 0 ; | |
11603 | char *kwnames[] = { | |
11604 | (char *) "variant", NULL | |
11605 | }; | |
11606 | ||
11607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11608 | if (obj0) { | |
093d3ff1 RD |
11609 | { |
11610 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
11611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11612 | } | |
22bfe96c RD |
11613 | } |
11614 | { | |
110da5b0 | 11615 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
11616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11617 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11618 | ||
11619 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11620 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11621 | } |
11622 | { | |
11623 | wxVisualAttributes * resultptr; | |
093d3ff1 | 11624 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
11625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
11626 | } | |
11627 | return resultobj; | |
11628 | fail: | |
11629 | return NULL; | |
11630 | } | |
11631 | ||
11632 | ||
c32bde28 | 11633 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11634 | PyObject *obj; |
11635 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11636 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
11637 | Py_INCREF(obj); | |
11638 | return Py_BuildValue((char *)""); | |
11639 | } | |
c32bde28 | 11640 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11641 | PyObject *resultobj; |
11642 | int arg1 ; | |
11643 | wxMouseEvent *arg2 = 0 ; | |
11644 | long arg3 ; | |
11645 | long arg4 ; | |
11646 | wxTextUrlEvent *result; | |
994141e6 | 11647 | PyObject * obj0 = 0 ; |
d14a1e28 | 11648 | PyObject * obj1 = 0 ; |
994141e6 RD |
11649 | PyObject * obj2 = 0 ; |
11650 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11651 | char *kwnames[] = { |
11652 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
11653 | }; | |
11654 | ||
994141e6 | 11655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
11656 | { |
11657 | arg1 = (int)(SWIG_As_int(obj0)); | |
11658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11659 | } | |
11660 | { | |
11661 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); | |
11662 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11663 | if (arg2 == NULL) { | |
11664 | SWIG_null_ref("wxMouseEvent"); | |
11665 | } | |
11666 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11667 | } | |
11668 | { | |
11669 | arg3 = (long)(SWIG_As_long(obj2)); | |
11670 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11671 | } | |
11672 | { | |
11673 | arg4 = (long)(SWIG_As_long(obj3)); | |
11674 | if (SWIG_arg_fail(4)) SWIG_fail; | |
994141e6 | 11675 | } |
d14a1e28 RD |
11676 | { |
11677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11678 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
11679 | ||
11680 | wxPyEndAllowThreads(__tstate); | |
11681 | if (PyErr_Occurred()) SWIG_fail; | |
11682 | } | |
15afbcd0 | 11683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
11684 | return resultobj; |
11685 | fail: | |
11686 | return NULL; | |
11687 | } | |
11688 | ||
11689 | ||
c32bde28 | 11690 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11691 | PyObject *resultobj; |
11692 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11693 | wxMouseEvent *result; | |
11694 | PyObject * obj0 = 0 ; | |
11695 | char *kwnames[] = { | |
11696 | (char *) "self", NULL | |
11697 | }; | |
11698 | ||
11699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11702 | { |
11703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11704 | { | |
11705 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
11706 | result = (wxMouseEvent *) &_result_ref; | |
11707 | } | |
11708 | ||
11709 | wxPyEndAllowThreads(__tstate); | |
11710 | if (PyErr_Occurred()) SWIG_fail; | |
11711 | } | |
15afbcd0 | 11712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
11713 | return resultobj; |
11714 | fail: | |
11715 | return NULL; | |
11716 | } | |
11717 | ||
11718 | ||
c32bde28 | 11719 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11720 | PyObject *resultobj; |
11721 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11722 | long result; | |
11723 | PyObject * obj0 = 0 ; | |
11724 | char *kwnames[] = { | |
11725 | (char *) "self", NULL | |
11726 | }; | |
11727 | ||
11728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11731 | { |
11732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11733 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
11734 | ||
11735 | wxPyEndAllowThreads(__tstate); | |
11736 | if (PyErr_Occurred()) SWIG_fail; | |
11737 | } | |
093d3ff1 RD |
11738 | { |
11739 | resultobj = SWIG_From_long((long)(result)); | |
11740 | } | |
d14a1e28 RD |
11741 | return resultobj; |
11742 | fail: | |
11743 | return NULL; | |
11744 | } | |
11745 | ||
11746 | ||
c32bde28 | 11747 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11748 | PyObject *resultobj; |
11749 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11750 | long result; | |
11751 | PyObject * obj0 = 0 ; | |
11752 | char *kwnames[] = { | |
11753 | (char *) "self", NULL | |
11754 | }; | |
11755 | ||
11756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11759 | { |
11760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11761 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
11762 | ||
11763 | wxPyEndAllowThreads(__tstate); | |
11764 | if (PyErr_Occurred()) SWIG_fail; | |
11765 | } | |
093d3ff1 RD |
11766 | { |
11767 | resultobj = SWIG_From_long((long)(result)); | |
11768 | } | |
d14a1e28 RD |
11769 | return resultobj; |
11770 | fail: | |
11771 | return NULL; | |
11772 | } | |
11773 | ||
11774 | ||
c32bde28 | 11775 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11776 | PyObject *obj; |
11777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11778 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
11779 | Py_INCREF(obj); | |
11780 | return Py_BuildValue((char *)""); | |
11781 | } | |
c32bde28 | 11782 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
b2dc1044 RD |
11783 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
11784 | return 1; | |
11785 | } | |
11786 | ||
11787 | ||
093d3ff1 | 11788 | static PyObject *_wrap_ScrollBarNameStr_get(void) { |
b2dc1044 RD |
11789 | PyObject *pyobj; |
11790 | ||
11791 | { | |
11792 | #if wxUSE_UNICODE | |
11793 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11794 | #else | |
11795 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11796 | #endif | |
11797 | } | |
11798 | return pyobj; | |
11799 | } | |
11800 | ||
11801 | ||
c32bde28 | 11802 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11803 | PyObject *resultobj; |
11804 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11805 | int arg2 = (int) -1 ; |
d14a1e28 RD |
11806 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
11807 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11808 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11809 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11810 | long arg5 = (long) wxSB_HORIZONTAL ; | |
11811 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
11812 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
11813 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
11814 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11815 | wxScrollBar *result; | |
11816 | wxPoint temp3 ; | |
11817 | wxSize temp4 ; | |
ae8162c8 | 11818 | bool temp7 = false ; |
d14a1e28 | 11819 | PyObject * obj0 = 0 ; |
994141e6 | 11820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11821 | PyObject * obj2 = 0 ; |
11822 | PyObject * obj3 = 0 ; | |
994141e6 | 11823 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
11824 | PyObject * obj5 = 0 ; |
11825 | PyObject * obj6 = 0 ; | |
11826 | char *kwnames[] = { | |
11827 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11828 | }; | |
11829 | ||
994141e6 | 11830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
11831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
11832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 11833 | if (obj1) { |
093d3ff1 RD |
11834 | { |
11835 | arg2 = (int)(SWIG_As_int(obj1)); | |
11836 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11837 | } | |
994141e6 | 11838 | } |
d14a1e28 RD |
11839 | if (obj2) { |
11840 | { | |
11841 | arg3 = &temp3; | |
11842 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11843 | } | |
11844 | } | |
11845 | if (obj3) { | |
11846 | { | |
11847 | arg4 = &temp4; | |
11848 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11849 | } | |
11850 | } | |
994141e6 | 11851 | if (obj4) { |
093d3ff1 RD |
11852 | { |
11853 | arg5 = (long)(SWIG_As_long(obj4)); | |
11854 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11855 | } | |
994141e6 | 11856 | } |
d14a1e28 | 11857 | if (obj5) { |
093d3ff1 RD |
11858 | { |
11859 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
11860 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11861 | if (arg6 == NULL) { | |
11862 | SWIG_null_ref("wxValidator"); | |
11863 | } | |
11864 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
11865 | } |
11866 | } | |
11867 | if (obj6) { | |
11868 | { | |
11869 | arg7 = wxString_in_helper(obj6); | |
11870 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 11871 | temp7 = true; |
d14a1e28 RD |
11872 | } |
11873 | } | |
11874 | { | |
e3b71cb8 | 11875 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11877 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
11878 | ||
11879 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11880 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11881 | } |
15afbcd0 | 11882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
11883 | { |
11884 | if (temp7) | |
11885 | delete arg7; | |
11886 | } | |
11887 | return resultobj; | |
11888 | fail: | |
11889 | { | |
11890 | if (temp7) | |
11891 | delete arg7; | |
11892 | } | |
11893 | return NULL; | |
11894 | } | |
11895 | ||
11896 | ||
c32bde28 | 11897 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11898 | PyObject *resultobj; |
11899 | wxScrollBar *result; | |
11900 | char *kwnames[] = { | |
11901 | NULL | |
11902 | }; | |
11903 | ||
11904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
11905 | { | |
e3b71cb8 | 11906 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11908 | result = (wxScrollBar *)new wxScrollBar(); | |
11909 | ||
11910 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11911 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11912 | } |
15afbcd0 | 11913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
11914 | return resultobj; |
11915 | fail: | |
11916 | return NULL; | |
11917 | } | |
11918 | ||
11919 | ||
c32bde28 | 11920 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11921 | PyObject *resultobj; |
11922 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
11923 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11924 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11925 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11926 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11927 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11928 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11929 | long arg6 = (long) wxSB_HORIZONTAL ; | |
11930 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11931 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11932 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
11933 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11934 | bool result; | |
11935 | wxPoint temp4 ; | |
11936 | wxSize temp5 ; | |
ae8162c8 | 11937 | bool temp8 = false ; |
d14a1e28 RD |
11938 | PyObject * obj0 = 0 ; |
11939 | PyObject * obj1 = 0 ; | |
994141e6 | 11940 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11941 | PyObject * obj3 = 0 ; |
11942 | PyObject * obj4 = 0 ; | |
994141e6 | 11943 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11944 | PyObject * obj6 = 0 ; |
11945 | PyObject * obj7 = 0 ; | |
11946 | char *kwnames[] = { | |
11947 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11948 | }; | |
11949 | ||
994141e6 | 11950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
11951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
11952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11953 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
11954 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 11955 | if (obj2) { |
093d3ff1 RD |
11956 | { |
11957 | arg3 = (int)(SWIG_As_int(obj2)); | |
11958 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11959 | } | |
994141e6 | 11960 | } |
d14a1e28 RD |
11961 | if (obj3) { |
11962 | { | |
11963 | arg4 = &temp4; | |
11964 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11965 | } | |
11966 | } | |
11967 | if (obj4) { | |
11968 | { | |
11969 | arg5 = &temp5; | |
11970 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11971 | } | |
11972 | } | |
994141e6 | 11973 | if (obj5) { |
093d3ff1 RD |
11974 | { |
11975 | arg6 = (long)(SWIG_As_long(obj5)); | |
11976 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11977 | } | |
994141e6 | 11978 | } |
d14a1e28 | 11979 | if (obj6) { |
093d3ff1 RD |
11980 | { |
11981 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
11982 | if (SWIG_arg_fail(7)) SWIG_fail; | |
11983 | if (arg7 == NULL) { | |
11984 | SWIG_null_ref("wxValidator"); | |
11985 | } | |
11986 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
11987 | } |
11988 | } | |
11989 | if (obj7) { | |
11990 | { | |
11991 | arg8 = wxString_in_helper(obj7); | |
11992 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 11993 | temp8 = true; |
d14a1e28 RD |
11994 | } |
11995 | } | |
11996 | { | |
11997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11998 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11999 | ||
12000 | wxPyEndAllowThreads(__tstate); | |
12001 | if (PyErr_Occurred()) SWIG_fail; | |
12002 | } | |
4f89f6a3 RD |
12003 | { |
12004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12005 | } | |
d14a1e28 RD |
12006 | { |
12007 | if (temp8) | |
12008 | delete arg8; | |
12009 | } | |
12010 | return resultobj; | |
12011 | fail: | |
12012 | { | |
12013 | if (temp8) | |
12014 | delete arg8; | |
12015 | } | |
12016 | return NULL; | |
12017 | } | |
12018 | ||
12019 | ||
c32bde28 | 12020 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12021 | PyObject *resultobj; |
12022 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12023 | int result; | |
12024 | PyObject * obj0 = 0 ; | |
12025 | char *kwnames[] = { | |
12026 | (char *) "self", NULL | |
12027 | }; | |
12028 | ||
12029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12032 | { |
12033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12034 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
12035 | ||
12036 | wxPyEndAllowThreads(__tstate); | |
12037 | if (PyErr_Occurred()) SWIG_fail; | |
12038 | } | |
093d3ff1 RD |
12039 | { |
12040 | resultobj = SWIG_From_int((int)(result)); | |
12041 | } | |
d14a1e28 RD |
12042 | return resultobj; |
12043 | fail: | |
12044 | return NULL; | |
12045 | } | |
12046 | ||
12047 | ||
c32bde28 | 12048 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12049 | PyObject *resultobj; |
12050 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12051 | int result; | |
12052 | PyObject * obj0 = 0 ; | |
12053 | char *kwnames[] = { | |
12054 | (char *) "self", NULL | |
12055 | }; | |
12056 | ||
12057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12060 | { |
12061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12062 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
12063 | ||
12064 | wxPyEndAllowThreads(__tstate); | |
12065 | if (PyErr_Occurred()) SWIG_fail; | |
12066 | } | |
093d3ff1 RD |
12067 | { |
12068 | resultobj = SWIG_From_int((int)(result)); | |
12069 | } | |
d14a1e28 RD |
12070 | return resultobj; |
12071 | fail: | |
12072 | return NULL; | |
12073 | } | |
12074 | ||
12075 | ||
c32bde28 | 12076 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12077 | PyObject *resultobj; |
12078 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12079 | int result; | |
12080 | PyObject * obj0 = 0 ; | |
12081 | char *kwnames[] = { | |
12082 | (char *) "self", NULL | |
12083 | }; | |
12084 | ||
12085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12088 | { |
12089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12090 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
12091 | ||
12092 | wxPyEndAllowThreads(__tstate); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | } | |
093d3ff1 RD |
12095 | { |
12096 | resultobj = SWIG_From_int((int)(result)); | |
12097 | } | |
d14a1e28 RD |
12098 | return resultobj; |
12099 | fail: | |
12100 | return NULL; | |
12101 | } | |
12102 | ||
12103 | ||
c32bde28 | 12104 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12105 | PyObject *resultobj; |
12106 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12107 | int result; | |
12108 | PyObject * obj0 = 0 ; | |
12109 | char *kwnames[] = { | |
12110 | (char *) "self", NULL | |
12111 | }; | |
12112 | ||
12113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12114 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12115 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12116 | { |
12117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12118 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
12119 | ||
12120 | wxPyEndAllowThreads(__tstate); | |
12121 | if (PyErr_Occurred()) SWIG_fail; | |
12122 | } | |
093d3ff1 RD |
12123 | { |
12124 | resultobj = SWIG_From_int((int)(result)); | |
12125 | } | |
d14a1e28 RD |
12126 | return resultobj; |
12127 | fail: | |
12128 | return NULL; | |
12129 | } | |
12130 | ||
12131 | ||
c32bde28 | 12132 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12133 | PyObject *resultobj; |
12134 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12135 | bool result; | |
12136 | PyObject * obj0 = 0 ; | |
12137 | char *kwnames[] = { | |
12138 | (char *) "self", NULL | |
12139 | }; | |
12140 | ||
12141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12144 | { |
12145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12146 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
12147 | ||
12148 | wxPyEndAllowThreads(__tstate); | |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
12150 | } | |
4f89f6a3 RD |
12151 | { |
12152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12153 | } | |
d14a1e28 RD |
12154 | return resultobj; |
12155 | fail: | |
12156 | return NULL; | |
12157 | } | |
12158 | ||
12159 | ||
c32bde28 | 12160 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12161 | PyObject *resultobj; |
12162 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12163 | int arg2 ; | |
12164 | PyObject * obj0 = 0 ; | |
994141e6 | 12165 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12166 | char *kwnames[] = { |
12167 | (char *) "self",(char *) "viewStart", NULL | |
12168 | }; | |
12169 | ||
994141e6 | 12170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12173 | { | |
12174 | arg2 = (int)(SWIG_As_int(obj1)); | |
12175 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12176 | } | |
d14a1e28 RD |
12177 | { |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | (arg1)->SetThumbPosition(arg2); | |
12180 | ||
12181 | wxPyEndAllowThreads(__tstate); | |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
12183 | } | |
12184 | Py_INCREF(Py_None); resultobj = Py_None; | |
12185 | return resultobj; | |
12186 | fail: | |
12187 | return NULL; | |
12188 | } | |
12189 | ||
12190 | ||
c32bde28 | 12191 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12192 | PyObject *resultobj; |
12193 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12194 | int arg2 ; | |
12195 | int arg3 ; | |
12196 | int arg4 ; | |
12197 | int arg5 ; | |
ae8162c8 | 12198 | bool arg6 = (bool) true ; |
d14a1e28 | 12199 | PyObject * obj0 = 0 ; |
994141e6 RD |
12200 | PyObject * obj1 = 0 ; |
12201 | PyObject * obj2 = 0 ; | |
12202 | PyObject * obj3 = 0 ; | |
12203 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12204 | PyObject * obj5 = 0 ; |
12205 | char *kwnames[] = { | |
12206 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
12207 | }; | |
12208 | ||
994141e6 | 12209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
12210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12212 | { | |
12213 | arg2 = (int)(SWIG_As_int(obj1)); | |
12214 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12215 | } | |
12216 | { | |
12217 | arg3 = (int)(SWIG_As_int(obj2)); | |
12218 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12219 | } | |
12220 | { | |
12221 | arg4 = (int)(SWIG_As_int(obj3)); | |
12222 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12223 | } | |
12224 | { | |
12225 | arg5 = (int)(SWIG_As_int(obj4)); | |
12226 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12227 | } | |
d14a1e28 | 12228 | if (obj5) { |
093d3ff1 RD |
12229 | { |
12230 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
12231 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12232 | } | |
d14a1e28 RD |
12233 | } |
12234 | { | |
12235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12236 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
12237 | ||
12238 | wxPyEndAllowThreads(__tstate); | |
12239 | if (PyErr_Occurred()) SWIG_fail; | |
12240 | } | |
12241 | Py_INCREF(Py_None); resultobj = Py_None; | |
12242 | return resultobj; | |
12243 | fail: | |
12244 | return NULL; | |
12245 | } | |
12246 | ||
12247 | ||
c32bde28 | 12248 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 12249 | PyObject *resultobj; |
093d3ff1 | 12250 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
12251 | wxVisualAttributes result; |
12252 | PyObject * obj0 = 0 ; | |
12253 | char *kwnames[] = { | |
12254 | (char *) "variant", NULL | |
12255 | }; | |
12256 | ||
12257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12258 | if (obj0) { | |
093d3ff1 RD |
12259 | { |
12260 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12262 | } | |
22bfe96c RD |
12263 | } |
12264 | { | |
110da5b0 | 12265 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12267 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12268 | ||
12269 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12270 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12271 | } |
12272 | { | |
12273 | wxVisualAttributes * resultptr; | |
093d3ff1 | 12274 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
12275 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
12276 | } | |
12277 | return resultobj; | |
12278 | fail: | |
12279 | return NULL; | |
12280 | } | |
12281 | ||
12282 | ||
c32bde28 | 12283 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12284 | PyObject *obj; |
12285 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12286 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
12287 | Py_INCREF(obj); | |
12288 | return Py_BuildValue((char *)""); | |
12289 | } | |
c32bde28 | 12290 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
b2dc1044 RD |
12291 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
12292 | return 1; | |
12293 | } | |
12294 | ||
12295 | ||
093d3ff1 | 12296 | static PyObject *_wrap_SPIN_BUTTON_NAME_get(void) { |
b2dc1044 RD |
12297 | PyObject *pyobj; |
12298 | ||
12299 | { | |
12300 | #if wxUSE_UNICODE | |
12301 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12302 | #else | |
12303 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12304 | #endif | |
12305 | } | |
12306 | return pyobj; | |
12307 | } | |
12308 | ||
12309 | ||
c32bde28 | 12310 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
12311 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
12312 | return 1; | |
12313 | } | |
12314 | ||
12315 | ||
093d3ff1 | 12316 | static PyObject *_wrap_SpinCtrlNameStr_get(void) { |
b2dc1044 RD |
12317 | PyObject *pyobj; |
12318 | ||
12319 | { | |
12320 | #if wxUSE_UNICODE | |
12321 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12322 | #else | |
12323 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12324 | #endif | |
12325 | } | |
12326 | return pyobj; | |
12327 | } | |
12328 | ||
12329 | ||
c32bde28 | 12330 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12331 | PyObject *resultobj; |
12332 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12333 | int arg2 = (int) -1 ; |
d14a1e28 RD |
12334 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12335 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12336 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12337 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12338 | long arg5 = (long) wxSP_HORIZONTAL ; | |
12339 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
12340 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12341 | wxSpinButton *result; | |
12342 | wxPoint temp3 ; | |
12343 | wxSize temp4 ; | |
ae8162c8 | 12344 | bool temp6 = false ; |
d14a1e28 | 12345 | PyObject * obj0 = 0 ; |
994141e6 | 12346 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12347 | PyObject * obj2 = 0 ; |
12348 | PyObject * obj3 = 0 ; | |
994141e6 | 12349 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12350 | PyObject * obj5 = 0 ; |
12351 | char *kwnames[] = { | |
12352 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12353 | }; | |
12354 | ||
994141e6 | 12355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
12356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 12358 | if (obj1) { |
093d3ff1 RD |
12359 | { |
12360 | arg2 = (int)(SWIG_As_int(obj1)); | |
12361 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12362 | } | |
994141e6 | 12363 | } |
d14a1e28 RD |
12364 | if (obj2) { |
12365 | { | |
12366 | arg3 = &temp3; | |
12367 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12368 | } | |
12369 | } | |
12370 | if (obj3) { | |
12371 | { | |
12372 | arg4 = &temp4; | |
12373 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12374 | } | |
12375 | } | |
994141e6 | 12376 | if (obj4) { |
093d3ff1 RD |
12377 | { |
12378 | arg5 = (long)(SWIG_As_long(obj4)); | |
12379 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12380 | } | |
994141e6 | 12381 | } |
d14a1e28 RD |
12382 | if (obj5) { |
12383 | { | |
12384 | arg6 = wxString_in_helper(obj5); | |
12385 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 12386 | temp6 = true; |
d14a1e28 RD |
12387 | } |
12388 | } | |
12389 | { | |
e3b71cb8 | 12390 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12392 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12393 | ||
12394 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12395 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12396 | } |
15afbcd0 | 12397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
12398 | { |
12399 | if (temp6) | |
12400 | delete arg6; | |
12401 | } | |
12402 | return resultobj; | |
12403 | fail: | |
12404 | { | |
12405 | if (temp6) | |
12406 | delete arg6; | |
12407 | } | |
12408 | return NULL; | |
12409 | } | |
12410 | ||
12411 | ||
c32bde28 | 12412 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12413 | PyObject *resultobj; |
12414 | wxSpinButton *result; | |
12415 | char *kwnames[] = { | |
12416 | NULL | |
12417 | }; | |
12418 | ||
12419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
12420 | { | |
e3b71cb8 | 12421 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12423 | result = (wxSpinButton *)new wxSpinButton(); | |
12424 | ||
12425 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12426 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12427 | } |
15afbcd0 | 12428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
12429 | return resultobj; |
12430 | fail: | |
12431 | return NULL; | |
12432 | } | |
12433 | ||
12434 | ||
c32bde28 | 12435 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12436 | PyObject *resultobj; |
12437 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12438 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12439 | int arg3 = (int) -1 ; |
d14a1e28 RD |
12440 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12441 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12442 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12443 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12444 | long arg6 = (long) wxSP_HORIZONTAL ; | |
12445 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
12446 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12447 | bool result; | |
12448 | wxPoint temp4 ; | |
12449 | wxSize temp5 ; | |
ae8162c8 | 12450 | bool temp7 = false ; |
d14a1e28 RD |
12451 | PyObject * obj0 = 0 ; |
12452 | PyObject * obj1 = 0 ; | |
994141e6 | 12453 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12454 | PyObject * obj3 = 0 ; |
12455 | PyObject * obj4 = 0 ; | |
994141e6 | 12456 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12457 | PyObject * obj6 = 0 ; |
12458 | char *kwnames[] = { | |
12459 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12460 | }; | |
12461 | ||
994141e6 | 12462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
12463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12465 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12466 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12467 | if (obj2) { |
093d3ff1 RD |
12468 | { |
12469 | arg3 = (int)(SWIG_As_int(obj2)); | |
12470 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12471 | } | |
994141e6 | 12472 | } |
d14a1e28 RD |
12473 | if (obj3) { |
12474 | { | |
12475 | arg4 = &temp4; | |
12476 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12477 | } | |
12478 | } | |
12479 | if (obj4) { | |
12480 | { | |
12481 | arg5 = &temp5; | |
12482 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12483 | } | |
12484 | } | |
994141e6 | 12485 | if (obj5) { |
093d3ff1 RD |
12486 | { |
12487 | arg6 = (long)(SWIG_As_long(obj5)); | |
12488 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12489 | } | |
994141e6 | 12490 | } |
d14a1e28 RD |
12491 | if (obj6) { |
12492 | { | |
12493 | arg7 = wxString_in_helper(obj6); | |
12494 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 12495 | temp7 = true; |
d14a1e28 RD |
12496 | } |
12497 | } | |
12498 | { | |
12499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12500 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12501 | ||
12502 | wxPyEndAllowThreads(__tstate); | |
12503 | if (PyErr_Occurred()) SWIG_fail; | |
12504 | } | |
4f89f6a3 RD |
12505 | { |
12506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12507 | } | |
d14a1e28 RD |
12508 | { |
12509 | if (temp7) | |
12510 | delete arg7; | |
12511 | } | |
12512 | return resultobj; | |
12513 | fail: | |
12514 | { | |
12515 | if (temp7) | |
12516 | delete arg7; | |
12517 | } | |
12518 | return NULL; | |
12519 | } | |
12520 | ||
12521 | ||
c32bde28 | 12522 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12523 | PyObject *resultobj; |
12524 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12525 | int result; | |
12526 | PyObject * obj0 = 0 ; | |
12527 | char *kwnames[] = { | |
12528 | (char *) "self", NULL | |
12529 | }; | |
12530 | ||
12531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12532 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12533 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12534 | { |
12535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12536 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
12537 | ||
12538 | wxPyEndAllowThreads(__tstate); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
093d3ff1 RD |
12541 | { |
12542 | resultobj = SWIG_From_int((int)(result)); | |
12543 | } | |
d14a1e28 RD |
12544 | return resultobj; |
12545 | fail: | |
12546 | return NULL; | |
12547 | } | |
12548 | ||
12549 | ||
c32bde28 | 12550 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12551 | PyObject *resultobj; |
12552 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12553 | int result; | |
12554 | PyObject * obj0 = 0 ; | |
12555 | char *kwnames[] = { | |
12556 | (char *) "self", NULL | |
12557 | }; | |
12558 | ||
12559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12562 | { |
12563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12564 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
12565 | ||
12566 | wxPyEndAllowThreads(__tstate); | |
12567 | if (PyErr_Occurred()) SWIG_fail; | |
12568 | } | |
093d3ff1 RD |
12569 | { |
12570 | resultobj = SWIG_From_int((int)(result)); | |
12571 | } | |
d14a1e28 RD |
12572 | return resultobj; |
12573 | fail: | |
12574 | return NULL; | |
12575 | } | |
12576 | ||
12577 | ||
c32bde28 | 12578 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12579 | PyObject *resultobj; |
12580 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12581 | int result; | |
12582 | PyObject * obj0 = 0 ; | |
12583 | char *kwnames[] = { | |
12584 | (char *) "self", NULL | |
12585 | }; | |
12586 | ||
12587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12590 | { |
12591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12592 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
12593 | ||
12594 | wxPyEndAllowThreads(__tstate); | |
12595 | if (PyErr_Occurred()) SWIG_fail; | |
12596 | } | |
093d3ff1 RD |
12597 | { |
12598 | resultobj = SWIG_From_int((int)(result)); | |
12599 | } | |
d14a1e28 RD |
12600 | return resultobj; |
12601 | fail: | |
12602 | return NULL; | |
12603 | } | |
12604 | ||
12605 | ||
c32bde28 | 12606 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12607 | PyObject *resultobj; |
12608 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12609 | int arg2 ; | |
12610 | PyObject * obj0 = 0 ; | |
994141e6 | 12611 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12612 | char *kwnames[] = { |
12613 | (char *) "self",(char *) "val", NULL | |
12614 | }; | |
12615 | ||
994141e6 | 12616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12619 | { | |
12620 | arg2 = (int)(SWIG_As_int(obj1)); | |
12621 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12622 | } | |
d14a1e28 RD |
12623 | { |
12624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12625 | (arg1)->SetValue(arg2); | |
12626 | ||
12627 | wxPyEndAllowThreads(__tstate); | |
12628 | if (PyErr_Occurred()) SWIG_fail; | |
12629 | } | |
12630 | Py_INCREF(Py_None); resultobj = Py_None; | |
12631 | return resultobj; | |
12632 | fail: | |
12633 | return NULL; | |
12634 | } | |
12635 | ||
12636 | ||
c32bde28 | 12637 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12638 | PyObject *resultobj; |
12639 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12640 | int arg2 ; | |
12641 | PyObject * obj0 = 0 ; | |
994141e6 | 12642 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12643 | char *kwnames[] = { |
12644 | (char *) "self",(char *) "minVal", NULL | |
12645 | }; | |
12646 | ||
994141e6 | 12647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12650 | { | |
12651 | arg2 = (int)(SWIG_As_int(obj1)); | |
12652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12653 | } | |
d14a1e28 RD |
12654 | { |
12655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12656 | (arg1)->SetMin(arg2); | |
12657 | ||
12658 | wxPyEndAllowThreads(__tstate); | |
12659 | if (PyErr_Occurred()) SWIG_fail; | |
12660 | } | |
12661 | Py_INCREF(Py_None); resultobj = Py_None; | |
12662 | return resultobj; | |
12663 | fail: | |
12664 | return NULL; | |
12665 | } | |
12666 | ||
12667 | ||
c32bde28 | 12668 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12669 | PyObject *resultobj; |
12670 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12671 | int arg2 ; | |
12672 | PyObject * obj0 = 0 ; | |
994141e6 | 12673 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12674 | char *kwnames[] = { |
12675 | (char *) "self",(char *) "maxVal", NULL | |
12676 | }; | |
12677 | ||
994141e6 | 12678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12681 | { | |
12682 | arg2 = (int)(SWIG_As_int(obj1)); | |
12683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12684 | } | |
d14a1e28 RD |
12685 | { |
12686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12687 | (arg1)->SetMax(arg2); | |
12688 | ||
12689 | wxPyEndAllowThreads(__tstate); | |
12690 | if (PyErr_Occurred()) SWIG_fail; | |
12691 | } | |
12692 | Py_INCREF(Py_None); resultobj = Py_None; | |
12693 | return resultobj; | |
12694 | fail: | |
12695 | return NULL; | |
12696 | } | |
12697 | ||
12698 | ||
c32bde28 | 12699 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12700 | PyObject *resultobj; |
12701 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12702 | int arg2 ; | |
12703 | int arg3 ; | |
12704 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12705 | PyObject * obj1 = 0 ; |
12706 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12707 | char *kwnames[] = { |
12708 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
12709 | }; | |
12710 | ||
994141e6 | 12711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
12712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12714 | { | |
12715 | arg2 = (int)(SWIG_As_int(obj1)); | |
12716 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12717 | } | |
12718 | { | |
12719 | arg3 = (int)(SWIG_As_int(obj2)); | |
12720 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12721 | } | |
994141e6 | 12722 | { |
15afbcd0 RD |
12723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12724 | (arg1)->SetRange(arg2,arg3); | |
12725 | ||
12726 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
12727 | if (PyErr_Occurred()) SWIG_fail; |
12728 | } | |
22bfe96c RD |
12729 | Py_INCREF(Py_None); resultobj = Py_None; |
12730 | return resultobj; | |
12731 | fail: | |
12732 | return NULL; | |
12733 | } | |
12734 | ||
12735 | ||
c32bde28 | 12736 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c RD |
12737 | PyObject *resultobj; |
12738 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12739 | bool result; | |
12740 | PyObject * obj0 = 0 ; | |
12741 | char *kwnames[] = { | |
12742 | (char *) "self", NULL | |
12743 | }; | |
12744 | ||
12745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22bfe96c RD |
12748 | { |
12749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12750 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
12751 | ||
12752 | wxPyEndAllowThreads(__tstate); | |
12753 | if (PyErr_Occurred()) SWIG_fail; | |
12754 | } | |
12755 | { | |
12756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12757 | } | |
d14a1e28 RD |
12758 | return resultobj; |
12759 | fail: | |
12760 | return NULL; | |
12761 | } | |
12762 | ||
12763 | ||
c32bde28 | 12764 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 12765 | PyObject *resultobj; |
093d3ff1 | 12766 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c | 12767 | wxVisualAttributes result; |
d14a1e28 RD |
12768 | PyObject * obj0 = 0 ; |
12769 | char *kwnames[] = { | |
22bfe96c | 12770 | (char *) "variant", NULL |
d14a1e28 RD |
12771 | }; |
12772 | ||
22bfe96c RD |
12773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
12774 | if (obj0) { | |
093d3ff1 RD |
12775 | { |
12776 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12778 | } | |
22bfe96c | 12779 | } |
d14a1e28 | 12780 | { |
110da5b0 | 12781 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 12782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22bfe96c | 12783 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
12784 | |
12785 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12786 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12787 | } |
4f89f6a3 | 12788 | { |
22bfe96c | 12789 | wxVisualAttributes * resultptr; |
093d3ff1 | 12790 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c | 12791 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4f89f6a3 | 12792 | } |
d14a1e28 RD |
12793 | return resultobj; |
12794 | fail: | |
12795 | return NULL; | |
12796 | } | |
12797 | ||
12798 | ||
c32bde28 | 12799 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12800 | PyObject *obj; |
12801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12802 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
12803 | Py_INCREF(obj); | |
12804 | return Py_BuildValue((char *)""); | |
12805 | } | |
c32bde28 | 12806 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12807 | PyObject *resultobj; |
12808 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12809 | int arg2 = (int) -1 ; |
d14a1e28 RD |
12810 | wxString const &arg3_defvalue = wxPyEmptyString ; |
12811 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12812 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12813 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12814 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12815 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12816 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
12817 | int arg7 = (int) 0 ; | |
12818 | int arg8 = (int) 100 ; | |
12819 | int arg9 = (int) 0 ; | |
12820 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
12821 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12822 | wxSpinCtrl *result; | |
ae8162c8 | 12823 | bool temp3 = false ; |
d14a1e28 RD |
12824 | wxPoint temp4 ; |
12825 | wxSize temp5 ; | |
ae8162c8 | 12826 | bool temp10 = false ; |
d14a1e28 | 12827 | PyObject * obj0 = 0 ; |
994141e6 | 12828 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12829 | PyObject * obj2 = 0 ; |
12830 | PyObject * obj3 = 0 ; | |
12831 | PyObject * obj4 = 0 ; | |
994141e6 RD |
12832 | PyObject * obj5 = 0 ; |
12833 | PyObject * obj6 = 0 ; | |
12834 | PyObject * obj7 = 0 ; | |
12835 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
12836 | PyObject * obj9 = 0 ; |
12837 | char *kwnames[] = { | |
12838 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
12839 | }; | |
12840 | ||
994141e6 | 12841 | 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 |
12842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 12844 | if (obj1) { |
093d3ff1 RD |
12845 | { |
12846 | arg2 = (int)(SWIG_As_int(obj1)); | |
12847 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12848 | } | |
994141e6 RD |
12849 | } |
12850 | if (obj2) { | |
d14a1e28 RD |
12851 | { |
12852 | arg3 = wxString_in_helper(obj2); | |
12853 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 12854 | temp3 = true; |
d14a1e28 RD |
12855 | } |
12856 | } | |
12857 | if (obj3) { | |
12858 | { | |
12859 | arg4 = &temp4; | |
12860 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12861 | } | |
12862 | } | |
12863 | if (obj4) { | |
12864 | { | |
12865 | arg5 = &temp5; | |
12866 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12867 | } | |
12868 | } | |
994141e6 | 12869 | if (obj5) { |
093d3ff1 RD |
12870 | { |
12871 | arg6 = (long)(SWIG_As_long(obj5)); | |
12872 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12873 | } | |
994141e6 RD |
12874 | } |
12875 | if (obj6) { | |
093d3ff1 RD |
12876 | { |
12877 | arg7 = (int)(SWIG_As_int(obj6)); | |
12878 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12879 | } | |
994141e6 RD |
12880 | } |
12881 | if (obj7) { | |
093d3ff1 RD |
12882 | { |
12883 | arg8 = (int)(SWIG_As_int(obj7)); | |
12884 | if (SWIG_arg_fail(8)) SWIG_fail; | |
12885 | } | |
994141e6 RD |
12886 | } |
12887 | if (obj8) { | |
093d3ff1 RD |
12888 | { |
12889 | arg9 = (int)(SWIG_As_int(obj8)); | |
12890 | if (SWIG_arg_fail(9)) SWIG_fail; | |
12891 | } | |
994141e6 | 12892 | } |
d14a1e28 RD |
12893 | if (obj9) { |
12894 | { | |
12895 | arg10 = wxString_in_helper(obj9); | |
12896 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 12897 | temp10 = true; |
d14a1e28 RD |
12898 | } |
12899 | } | |
12900 | { | |
e3b71cb8 | 12901 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12903 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
12904 | ||
12905 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12906 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12907 | } |
15afbcd0 | 12908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
12909 | { |
12910 | if (temp3) | |
12911 | delete arg3; | |
12912 | } | |
12913 | { | |
12914 | if (temp10) | |
12915 | delete arg10; | |
12916 | } | |
12917 | return resultobj; | |
12918 | fail: | |
12919 | { | |
12920 | if (temp3) | |
12921 | delete arg3; | |
12922 | } | |
12923 | { | |
12924 | if (temp10) | |
12925 | delete arg10; | |
12926 | } | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
c32bde28 | 12931 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12932 | PyObject *resultobj; |
12933 | wxSpinCtrl *result; | |
12934 | char *kwnames[] = { | |
12935 | NULL | |
12936 | }; | |
12937 | ||
12938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
12939 | { | |
e3b71cb8 | 12940 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12942 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
12943 | ||
12944 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12945 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12946 | } |
15afbcd0 | 12947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
12948 | return resultobj; |
12949 | fail: | |
12950 | return NULL; | |
12951 | } | |
12952 | ||
12953 | ||
c32bde28 | 12954 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12955 | PyObject *resultobj; |
12956 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
12957 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12958 | int arg3 = (int) -1 ; |
d14a1e28 RD |
12959 | wxString const &arg4_defvalue = wxPyEmptyString ; |
12960 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12961 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12962 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12963 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12964 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12965 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
12966 | int arg8 = (int) 0 ; | |
12967 | int arg9 = (int) 100 ; | |
12968 | int arg10 = (int) 0 ; | |
12969 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
12970 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12971 | bool result; | |
ae8162c8 | 12972 | bool temp4 = false ; |
d14a1e28 RD |
12973 | wxPoint temp5 ; |
12974 | wxSize temp6 ; | |
ae8162c8 | 12975 | bool temp11 = false ; |
d14a1e28 RD |
12976 | PyObject * obj0 = 0 ; |
12977 | PyObject * obj1 = 0 ; | |
994141e6 | 12978 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12979 | PyObject * obj3 = 0 ; |
12980 | PyObject * obj4 = 0 ; | |
12981 | PyObject * obj5 = 0 ; | |
994141e6 RD |
12982 | PyObject * obj6 = 0 ; |
12983 | PyObject * obj7 = 0 ; | |
12984 | PyObject * obj8 = 0 ; | |
12985 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
12986 | PyObject * obj10 = 0 ; |
12987 | char *kwnames[] = { | |
12988 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
12989 | }; | |
12990 | ||
994141e6 | 12991 | 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 |
12992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
12993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12994 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12995 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12996 | if (obj2) { |
093d3ff1 RD |
12997 | { |
12998 | arg3 = (int)(SWIG_As_int(obj2)); | |
12999 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13000 | } | |
994141e6 | 13001 | } |
d14a1e28 RD |
13002 | if (obj3) { |
13003 | { | |
13004 | arg4 = wxString_in_helper(obj3); | |
13005 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13006 | temp4 = true; |
d14a1e28 RD |
13007 | } |
13008 | } | |
13009 | if (obj4) { | |
13010 | { | |
13011 | arg5 = &temp5; | |
13012 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13013 | } | |
13014 | } | |
13015 | if (obj5) { | |
13016 | { | |
13017 | arg6 = &temp6; | |
13018 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13019 | } | |
13020 | } | |
994141e6 | 13021 | if (obj6) { |
093d3ff1 RD |
13022 | { |
13023 | arg7 = (long)(SWIG_As_long(obj6)); | |
13024 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13025 | } | |
994141e6 RD |
13026 | } |
13027 | if (obj7) { | |
093d3ff1 RD |
13028 | { |
13029 | arg8 = (int)(SWIG_As_int(obj7)); | |
13030 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13031 | } | |
994141e6 RD |
13032 | } |
13033 | if (obj8) { | |
093d3ff1 RD |
13034 | { |
13035 | arg9 = (int)(SWIG_As_int(obj8)); | |
13036 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13037 | } | |
994141e6 RD |
13038 | } |
13039 | if (obj9) { | |
093d3ff1 RD |
13040 | { |
13041 | arg10 = (int)(SWIG_As_int(obj9)); | |
13042 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13043 | } | |
994141e6 | 13044 | } |
d14a1e28 RD |
13045 | if (obj10) { |
13046 | { | |
13047 | arg11 = wxString_in_helper(obj10); | |
13048 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13049 | temp11 = true; |
d14a1e28 RD |
13050 | } |
13051 | } | |
13052 | { | |
13053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13054 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
13055 | ||
13056 | wxPyEndAllowThreads(__tstate); | |
13057 | if (PyErr_Occurred()) SWIG_fail; | |
13058 | } | |
4f89f6a3 RD |
13059 | { |
13060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13061 | } | |
d14a1e28 RD |
13062 | { |
13063 | if (temp4) | |
13064 | delete arg4; | |
13065 | } | |
13066 | { | |
13067 | if (temp11) | |
13068 | delete arg11; | |
13069 | } | |
13070 | return resultobj; | |
13071 | fail: | |
13072 | { | |
13073 | if (temp4) | |
13074 | delete arg4; | |
13075 | } | |
13076 | { | |
13077 | if (temp11) | |
13078 | delete arg11; | |
13079 | } | |
13080 | return NULL; | |
13081 | } | |
13082 | ||
13083 | ||
c32bde28 | 13084 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13085 | PyObject *resultobj; |
13086 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13087 | int result; | |
13088 | PyObject * obj0 = 0 ; | |
13089 | char *kwnames[] = { | |
13090 | (char *) "self", NULL | |
13091 | }; | |
13092 | ||
13093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13096 | { |
13097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13098 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
13099 | ||
13100 | wxPyEndAllowThreads(__tstate); | |
13101 | if (PyErr_Occurred()) SWIG_fail; | |
13102 | } | |
093d3ff1 RD |
13103 | { |
13104 | resultobj = SWIG_From_int((int)(result)); | |
13105 | } | |
d14a1e28 RD |
13106 | return resultobj; |
13107 | fail: | |
13108 | return NULL; | |
13109 | } | |
13110 | ||
13111 | ||
c32bde28 | 13112 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13113 | PyObject *resultobj; |
13114 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13115 | int arg2 ; | |
13116 | PyObject * obj0 = 0 ; | |
994141e6 | 13117 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13118 | char *kwnames[] = { |
13119 | (char *) "self",(char *) "value", NULL | |
13120 | }; | |
13121 | ||
994141e6 | 13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13125 | { | |
13126 | arg2 = (int)(SWIG_As_int(obj1)); | |
13127 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13128 | } | |
d14a1e28 RD |
13129 | { |
13130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13131 | (arg1)->SetValue(arg2); | |
13132 | ||
13133 | wxPyEndAllowThreads(__tstate); | |
13134 | if (PyErr_Occurred()) SWIG_fail; | |
13135 | } | |
13136 | Py_INCREF(Py_None); resultobj = Py_None; | |
13137 | return resultobj; | |
13138 | fail: | |
13139 | return NULL; | |
13140 | } | |
13141 | ||
13142 | ||
c32bde28 | 13143 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13144 | PyObject *resultobj; |
13145 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13146 | wxString *arg2 = 0 ; | |
ae8162c8 | 13147 | bool temp2 = false ; |
d14a1e28 RD |
13148 | PyObject * obj0 = 0 ; |
13149 | PyObject * obj1 = 0 ; | |
13150 | char *kwnames[] = { | |
13151 | (char *) "self",(char *) "text", NULL | |
13152 | }; | |
13153 | ||
13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13157 | { |
13158 | arg2 = wxString_in_helper(obj1); | |
13159 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13160 | temp2 = true; |
d14a1e28 RD |
13161 | } |
13162 | { | |
13163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13164 | (arg1)->SetValue((wxString const &)*arg2); | |
13165 | ||
13166 | wxPyEndAllowThreads(__tstate); | |
13167 | if (PyErr_Occurred()) SWIG_fail; | |
13168 | } | |
13169 | Py_INCREF(Py_None); resultobj = Py_None; | |
13170 | { | |
13171 | if (temp2) | |
13172 | delete arg2; | |
13173 | } | |
13174 | return resultobj; | |
13175 | fail: | |
13176 | { | |
13177 | if (temp2) | |
13178 | delete arg2; | |
13179 | } | |
13180 | return NULL; | |
13181 | } | |
13182 | ||
13183 | ||
c32bde28 | 13184 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13185 | PyObject *resultobj; |
13186 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13187 | int arg2 ; | |
13188 | int arg3 ; | |
13189 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13190 | PyObject * obj1 = 0 ; |
13191 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13192 | char *kwnames[] = { |
13193 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
13194 | }; | |
13195 | ||
994141e6 | 13196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13199 | { | |
13200 | arg2 = (int)(SWIG_As_int(obj1)); | |
13201 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13202 | } | |
13203 | { | |
13204 | arg3 = (int)(SWIG_As_int(obj2)); | |
13205 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13206 | } | |
d14a1e28 RD |
13207 | { |
13208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13209 | (arg1)->SetRange(arg2,arg3); | |
13210 | ||
13211 | wxPyEndAllowThreads(__tstate); | |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
13213 | } | |
13214 | Py_INCREF(Py_None); resultobj = Py_None; | |
13215 | return resultobj; | |
13216 | fail: | |
13217 | return NULL; | |
13218 | } | |
13219 | ||
13220 | ||
c32bde28 | 13221 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13222 | PyObject *resultobj; |
13223 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13224 | int result; | |
13225 | PyObject * obj0 = 0 ; | |
13226 | char *kwnames[] = { | |
13227 | (char *) "self", NULL | |
13228 | }; | |
13229 | ||
13230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13233 | { |
13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13235 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
13236 | ||
13237 | wxPyEndAllowThreads(__tstate); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
093d3ff1 RD |
13240 | { |
13241 | resultobj = SWIG_From_int((int)(result)); | |
13242 | } | |
d14a1e28 RD |
13243 | return resultobj; |
13244 | fail: | |
13245 | return NULL; | |
13246 | } | |
13247 | ||
13248 | ||
c32bde28 | 13249 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13250 | PyObject *resultobj; |
13251 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13252 | int result; | |
13253 | PyObject * obj0 = 0 ; | |
13254 | char *kwnames[] = { | |
13255 | (char *) "self", NULL | |
13256 | }; | |
13257 | ||
13258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13261 | { |
13262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13263 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
13264 | ||
13265 | wxPyEndAllowThreads(__tstate); | |
13266 | if (PyErr_Occurred()) SWIG_fail; | |
13267 | } | |
093d3ff1 RD |
13268 | { |
13269 | resultobj = SWIG_From_int((int)(result)); | |
13270 | } | |
d14a1e28 RD |
13271 | return resultobj; |
13272 | fail: | |
13273 | return NULL; | |
13274 | } | |
13275 | ||
13276 | ||
c32bde28 | 13277 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13278 | PyObject *resultobj; |
13279 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13280 | long arg2 ; | |
13281 | long arg3 ; | |
13282 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13283 | PyObject * obj1 = 0 ; |
13284 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13285 | char *kwnames[] = { |
13286 | (char *) "self",(char *) "from",(char *) "to", NULL | |
13287 | }; | |
13288 | ||
994141e6 | 13289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13292 | { | |
13293 | arg2 = (long)(SWIG_As_long(obj1)); | |
13294 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13295 | } | |
13296 | { | |
13297 | arg3 = (long)(SWIG_As_long(obj2)); | |
13298 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13299 | } | |
d14a1e28 RD |
13300 | { |
13301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 13302 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
13303 | |
13304 | wxPyEndAllowThreads(__tstate); | |
13305 | if (PyErr_Occurred()) SWIG_fail; | |
13306 | } | |
13307 | Py_INCREF(Py_None); resultobj = Py_None; | |
13308 | return resultobj; | |
13309 | fail: | |
13310 | return NULL; | |
13311 | } | |
13312 | ||
13313 | ||
c32bde28 | 13314 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 13315 | PyObject *resultobj; |
093d3ff1 | 13316 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
13317 | wxVisualAttributes result; |
13318 | PyObject * obj0 = 0 ; | |
13319 | char *kwnames[] = { | |
13320 | (char *) "variant", NULL | |
13321 | }; | |
13322 | ||
13323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13324 | if (obj0) { | |
093d3ff1 RD |
13325 | { |
13326 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
13327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13328 | } | |
22bfe96c RD |
13329 | } |
13330 | { | |
110da5b0 | 13331 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
13332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13333 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13334 | ||
13335 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13336 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13337 | } |
13338 | { | |
13339 | wxVisualAttributes * resultptr; | |
093d3ff1 | 13340 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
13341 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
13342 | } | |
13343 | return resultobj; | |
13344 | fail: | |
13345 | return NULL; | |
13346 | } | |
13347 | ||
13348 | ||
c32bde28 | 13349 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13350 | PyObject *obj; |
13351 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13352 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
13353 | Py_INCREF(obj); | |
13354 | return Py_BuildValue((char *)""); | |
13355 | } | |
c32bde28 | 13356 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
13357 | PyObject *resultobj; |
13358 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13359 | int arg2 = (int) 0 ; | |
13360 | wxSpinEvent *result; | |
994141e6 RD |
13361 | PyObject * obj0 = 0 ; |
13362 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
13363 | char *kwnames[] = { |
13364 | (char *) "commandType",(char *) "winid", NULL | |
13365 | }; | |
13366 | ||
994141e6 RD |
13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
13368 | if (obj0) { | |
093d3ff1 RD |
13369 | { |
13370 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
13371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13372 | } | |
994141e6 RD |
13373 | } |
13374 | if (obj1) { | |
093d3ff1 RD |
13375 | { |
13376 | arg2 = (int)(SWIG_As_int(obj1)); | |
13377 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13378 | } | |
994141e6 | 13379 | } |
d1e20054 RD |
13380 | { |
13381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13382 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
13383 | ||
13384 | wxPyEndAllowThreads(__tstate); | |
13385 | if (PyErr_Occurred()) SWIG_fail; | |
13386 | } | |
15afbcd0 | 13387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
13388 | return resultobj; |
13389 | fail: | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
c32bde28 | 13394 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
13395 | PyObject *resultobj; |
13396 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13397 | int result; | |
13398 | PyObject * obj0 = 0 ; | |
13399 | char *kwnames[] = { | |
13400 | (char *) "self", NULL | |
13401 | }; | |
13402 | ||
13403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13404 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d1e20054 RD |
13406 | { |
13407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13408 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
13409 | ||
13410 | wxPyEndAllowThreads(__tstate); | |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
13412 | } | |
093d3ff1 RD |
13413 | { |
13414 | resultobj = SWIG_From_int((int)(result)); | |
13415 | } | |
d1e20054 RD |
13416 | return resultobj; |
13417 | fail: | |
13418 | return NULL; | |
13419 | } | |
13420 | ||
13421 | ||
c32bde28 | 13422 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d1e20054 RD |
13423 | PyObject *resultobj; |
13424 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13425 | int arg2 ; | |
13426 | PyObject * obj0 = 0 ; | |
994141e6 | 13427 | PyObject * obj1 = 0 ; |
d1e20054 RD |
13428 | char *kwnames[] = { |
13429 | (char *) "self",(char *) "pos", NULL | |
13430 | }; | |
13431 | ||
994141e6 | 13432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13433 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13434 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13435 | { | |
13436 | arg2 = (int)(SWIG_As_int(obj1)); | |
13437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13438 | } | |
d1e20054 RD |
13439 | { |
13440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13441 | (arg1)->SetPosition(arg2); | |
13442 | ||
13443 | wxPyEndAllowThreads(__tstate); | |
13444 | if (PyErr_Occurred()) SWIG_fail; | |
13445 | } | |
13446 | Py_INCREF(Py_None); resultobj = Py_None; | |
13447 | return resultobj; | |
13448 | fail: | |
13449 | return NULL; | |
13450 | } | |
13451 | ||
13452 | ||
c32bde28 | 13453 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d1e20054 RD |
13454 | PyObject *obj; |
13455 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13456 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
13457 | Py_INCREF(obj); | |
13458 | return Py_BuildValue((char *)""); | |
13459 | } | |
c32bde28 | 13460 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
13461 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
13462 | return 1; | |
13463 | } | |
13464 | ||
13465 | ||
093d3ff1 | 13466 | static PyObject *_wrap_RadioBoxNameStr_get(void) { |
b2dc1044 RD |
13467 | PyObject *pyobj; |
13468 | ||
13469 | { | |
13470 | #if wxUSE_UNICODE | |
13471 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13472 | #else | |
13473 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13474 | #endif | |
13475 | } | |
13476 | return pyobj; | |
13477 | } | |
13478 | ||
13479 | ||
c32bde28 | 13480 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
13481 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
13482 | return 1; | |
13483 | } | |
13484 | ||
13485 | ||
093d3ff1 | 13486 | static PyObject *_wrap_RadioButtonNameStr_get(void) { |
b2dc1044 RD |
13487 | PyObject *pyobj; |
13488 | ||
13489 | { | |
13490 | #if wxUSE_UNICODE | |
13491 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13492 | #else | |
13493 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13494 | #endif | |
13495 | } | |
13496 | return pyobj; | |
13497 | } | |
13498 | ||
13499 | ||
c32bde28 | 13500 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13501 | PyObject *resultobj; |
13502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13503 | int arg2 = (int) -1 ; |
13504 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13505 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
13506 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13507 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13508 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13509 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
13510 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
13511 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
13512 | int arg7 = (int) 0 ; | |
13513 | long arg8 = (long) wxRA_HORIZONTAL ; | |
13514 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13515 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13516 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
13517 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 13518 | wxRadioBox *result; |
ae8162c8 | 13519 | bool temp3 = false ; |
d14a1e28 RD |
13520 | wxPoint temp4 ; |
13521 | wxSize temp5 ; | |
ae8162c8 RD |
13522 | bool temp6 = false ; |
13523 | bool temp10 = false ; | |
d14a1e28 | 13524 | PyObject * obj0 = 0 ; |
994141e6 | 13525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13526 | PyObject * obj2 = 0 ; |
13527 | PyObject * obj3 = 0 ; | |
13528 | PyObject * obj4 = 0 ; | |
13529 | PyObject * obj5 = 0 ; | |
994141e6 RD |
13530 | PyObject * obj6 = 0 ; |
13531 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
13532 | PyObject * obj8 = 0 ; |
13533 | PyObject * obj9 = 0 ; | |
13534 | char *kwnames[] = { | |
994141e6 | 13535 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
13536 | }; |
13537 | ||
248ed943 | 13538 | 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 |
13539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
13540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 13541 | if (obj1) { |
093d3ff1 RD |
13542 | { |
13543 | arg2 = (int)(SWIG_As_int(obj1)); | |
13544 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13545 | } | |
248ed943 RD |
13546 | } |
13547 | if (obj2) { | |
13548 | { | |
13549 | arg3 = wxString_in_helper(obj2); | |
13550 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13551 | temp3 = true; |
248ed943 | 13552 | } |
d14a1e28 RD |
13553 | } |
13554 | if (obj3) { | |
13555 | { | |
13556 | arg4 = &temp4; | |
13557 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13558 | } | |
13559 | } | |
13560 | if (obj4) { | |
13561 | { | |
13562 | arg5 = &temp5; | |
13563 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13564 | } | |
13565 | } | |
13566 | if (obj5) { | |
13567 | { | |
4d5c3d91 RD |
13568 | if (! PySequence_Check(obj5)) { |
13569 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13570 | SWIG_fail; | |
13571 | } | |
13572 | arg6 = new wxArrayString; | |
ae8162c8 | 13573 | temp6 = true; |
4d5c3d91 RD |
13574 | int i, len=PySequence_Length(obj5); |
13575 | for (i=0; i<len; i++) { | |
13576 | PyObject* item = PySequence_GetItem(obj5, i); | |
13577 | #if wxUSE_UNICODE | |
13578 | PyObject* str = PyObject_Unicode(item); | |
13579 | #else | |
13580 | PyObject* str = PyObject_Str(item); | |
13581 | #endif | |
74a57fcd | 13582 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
13583 | arg6->Add(Py2wxString(str)); |
13584 | Py_DECREF(item); | |
13585 | Py_DECREF(str); | |
13586 | } | |
d14a1e28 RD |
13587 | } |
13588 | } | |
994141e6 | 13589 | if (obj6) { |
093d3ff1 RD |
13590 | { |
13591 | arg7 = (int)(SWIG_As_int(obj6)); | |
13592 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13593 | } | |
994141e6 RD |
13594 | } |
13595 | if (obj7) { | |
093d3ff1 RD |
13596 | { |
13597 | arg8 = (long)(SWIG_As_long(obj7)); | |
13598 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13599 | } | |
994141e6 | 13600 | } |
d14a1e28 | 13601 | if (obj8) { |
093d3ff1 RD |
13602 | { |
13603 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13604 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13605 | if (arg9 == NULL) { | |
13606 | SWIG_null_ref("wxValidator"); | |
13607 | } | |
13608 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
13609 | } |
13610 | } | |
13611 | if (obj9) { | |
13612 | { | |
4d5c3d91 RD |
13613 | arg10 = wxString_in_helper(obj9); |
13614 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13615 | temp10 = true; |
d14a1e28 RD |
13616 | } |
13617 | } | |
13618 | { | |
e3b71cb8 | 13619 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 13621 | 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 |
13622 | |
13623 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13624 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13625 | } |
15afbcd0 | 13626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
13627 | { |
13628 | if (temp3) | |
13629 | delete arg3; | |
13630 | } | |
13631 | { | |
3adfb63b | 13632 | if (temp6) delete arg6; |
d14a1e28 RD |
13633 | } |
13634 | { | |
13635 | if (temp10) | |
4d5c3d91 | 13636 | delete arg10; |
d14a1e28 RD |
13637 | } |
13638 | return resultobj; | |
13639 | fail: | |
13640 | { | |
13641 | if (temp3) | |
13642 | delete arg3; | |
13643 | } | |
13644 | { | |
3adfb63b | 13645 | if (temp6) delete arg6; |
d14a1e28 RD |
13646 | } |
13647 | { | |
13648 | if (temp10) | |
4d5c3d91 | 13649 | delete arg10; |
d14a1e28 RD |
13650 | } |
13651 | return NULL; | |
13652 | } | |
13653 | ||
13654 | ||
c32bde28 | 13655 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13656 | PyObject *resultobj; |
13657 | wxRadioBox *result; | |
13658 | char *kwnames[] = { | |
13659 | NULL | |
13660 | }; | |
13661 | ||
13662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
13663 | { | |
e3b71cb8 | 13664 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13666 | result = (wxRadioBox *)new wxRadioBox(); | |
13667 | ||
13668 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13669 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13670 | } |
15afbcd0 | 13671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
13672 | return resultobj; |
13673 | fail: | |
13674 | return NULL; | |
13675 | } | |
13676 | ||
13677 | ||
c32bde28 | 13678 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13679 | PyObject *resultobj; |
13680 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13681 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13682 | int arg3 = (int) -1 ; |
13683 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13684 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
13685 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13686 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13687 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13688 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
13689 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
13690 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
13691 | int arg8 = (int) 0 ; | |
13692 | long arg9 = (long) wxRA_HORIZONTAL ; | |
13693 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13694 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13695 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
13696 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 13697 | bool result; |
ae8162c8 | 13698 | bool temp4 = false ; |
d14a1e28 RD |
13699 | wxPoint temp5 ; |
13700 | wxSize temp6 ; | |
ae8162c8 RD |
13701 | bool temp7 = false ; |
13702 | bool temp11 = false ; | |
d14a1e28 RD |
13703 | PyObject * obj0 = 0 ; |
13704 | PyObject * obj1 = 0 ; | |
994141e6 | 13705 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13706 | PyObject * obj3 = 0 ; |
13707 | PyObject * obj4 = 0 ; | |
13708 | PyObject * obj5 = 0 ; | |
13709 | PyObject * obj6 = 0 ; | |
994141e6 RD |
13710 | PyObject * obj7 = 0 ; |
13711 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
13712 | PyObject * obj9 = 0 ; |
13713 | PyObject * obj10 = 0 ; | |
13714 | char *kwnames[] = { | |
994141e6 | 13715 | (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 |
13716 | }; |
13717 | ||
248ed943 | 13718 | 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 |
13719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13721 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 13723 | if (obj2) { |
093d3ff1 RD |
13724 | { |
13725 | arg3 = (int)(SWIG_As_int(obj2)); | |
13726 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13727 | } | |
248ed943 RD |
13728 | } |
13729 | if (obj3) { | |
13730 | { | |
13731 | arg4 = wxString_in_helper(obj3); | |
13732 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13733 | temp4 = true; |
248ed943 | 13734 | } |
d14a1e28 RD |
13735 | } |
13736 | if (obj4) { | |
13737 | { | |
13738 | arg5 = &temp5; | |
13739 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13740 | } | |
13741 | } | |
13742 | if (obj5) { | |
13743 | { | |
13744 | arg6 = &temp6; | |
13745 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13746 | } | |
13747 | } | |
13748 | if (obj6) { | |
13749 | { | |
4d5c3d91 RD |
13750 | if (! PySequence_Check(obj6)) { |
13751 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13752 | SWIG_fail; | |
13753 | } | |
13754 | arg7 = new wxArrayString; | |
ae8162c8 | 13755 | temp7 = true; |
4d5c3d91 RD |
13756 | int i, len=PySequence_Length(obj6); |
13757 | for (i=0; i<len; i++) { | |
13758 | PyObject* item = PySequence_GetItem(obj6, i); | |
13759 | #if wxUSE_UNICODE | |
13760 | PyObject* str = PyObject_Unicode(item); | |
13761 | #else | |
13762 | PyObject* str = PyObject_Str(item); | |
13763 | #endif | |
74a57fcd | 13764 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
13765 | arg7->Add(Py2wxString(str)); |
13766 | Py_DECREF(item); | |
13767 | Py_DECREF(str); | |
13768 | } | |
d14a1e28 RD |
13769 | } |
13770 | } | |
994141e6 | 13771 | if (obj7) { |
093d3ff1 RD |
13772 | { |
13773 | arg8 = (int)(SWIG_As_int(obj7)); | |
13774 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13775 | } | |
994141e6 RD |
13776 | } |
13777 | if (obj8) { | |
093d3ff1 RD |
13778 | { |
13779 | arg9 = (long)(SWIG_As_long(obj8)); | |
13780 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13781 | } | |
994141e6 | 13782 | } |
d14a1e28 | 13783 | if (obj9) { |
093d3ff1 RD |
13784 | { |
13785 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13786 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13787 | if (arg10 == NULL) { | |
13788 | SWIG_null_ref("wxValidator"); | |
13789 | } | |
13790 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d14a1e28 RD |
13791 | } |
13792 | } | |
13793 | if (obj10) { | |
13794 | { | |
4d5c3d91 RD |
13795 | arg11 = wxString_in_helper(obj10); |
13796 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13797 | temp11 = true; |
d14a1e28 RD |
13798 | } |
13799 | } | |
13800 | { | |
13801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 13802 | 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 |
13803 | |
13804 | wxPyEndAllowThreads(__tstate); | |
13805 | if (PyErr_Occurred()) SWIG_fail; | |
13806 | } | |
4f89f6a3 RD |
13807 | { |
13808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13809 | } | |
d14a1e28 RD |
13810 | { |
13811 | if (temp4) | |
13812 | delete arg4; | |
13813 | } | |
13814 | { | |
3adfb63b | 13815 | if (temp7) delete arg7; |
d14a1e28 RD |
13816 | } |
13817 | { | |
13818 | if (temp11) | |
4d5c3d91 | 13819 | delete arg11; |
d14a1e28 RD |
13820 | } |
13821 | return resultobj; | |
13822 | fail: | |
13823 | { | |
13824 | if (temp4) | |
13825 | delete arg4; | |
13826 | } | |
13827 | { | |
3adfb63b | 13828 | if (temp7) delete arg7; |
d14a1e28 RD |
13829 | } |
13830 | { | |
13831 | if (temp11) | |
4d5c3d91 | 13832 | delete arg11; |
d14a1e28 RD |
13833 | } |
13834 | return NULL; | |
13835 | } | |
13836 | ||
13837 | ||
c32bde28 | 13838 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13839 | PyObject *resultobj; |
13840 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13841 | int arg2 ; | |
13842 | PyObject * obj0 = 0 ; | |
994141e6 | 13843 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13844 | char *kwnames[] = { |
13845 | (char *) "self",(char *) "n", NULL | |
13846 | }; | |
13847 | ||
994141e6 | 13848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13849 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13850 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13851 | { | |
13852 | arg2 = (int)(SWIG_As_int(obj1)); | |
13853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13854 | } | |
d14a1e28 RD |
13855 | { |
13856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13857 | (arg1)->SetSelection(arg2); | |
13858 | ||
13859 | wxPyEndAllowThreads(__tstate); | |
13860 | if (PyErr_Occurred()) SWIG_fail; | |
13861 | } | |
13862 | Py_INCREF(Py_None); resultobj = Py_None; | |
13863 | return resultobj; | |
13864 | fail: | |
13865 | return NULL; | |
13866 | } | |
13867 | ||
13868 | ||
c32bde28 | 13869 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13870 | PyObject *resultobj; |
13871 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13872 | int result; | |
13873 | PyObject * obj0 = 0 ; | |
13874 | char *kwnames[] = { | |
13875 | (char *) "self", NULL | |
13876 | }; | |
13877 | ||
13878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13881 | { |
13882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13883 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
13884 | ||
13885 | wxPyEndAllowThreads(__tstate); | |
13886 | if (PyErr_Occurred()) SWIG_fail; | |
13887 | } | |
093d3ff1 RD |
13888 | { |
13889 | resultobj = SWIG_From_int((int)(result)); | |
13890 | } | |
d14a1e28 RD |
13891 | return resultobj; |
13892 | fail: | |
13893 | return NULL; | |
13894 | } | |
13895 | ||
13896 | ||
c32bde28 | 13897 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13898 | PyObject *resultobj; |
13899 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13900 | wxString result; | |
13901 | PyObject * obj0 = 0 ; | |
13902 | char *kwnames[] = { | |
13903 | (char *) "self", NULL | |
13904 | }; | |
13905 | ||
13906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13909 | { |
13910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13911 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
13912 | ||
13913 | wxPyEndAllowThreads(__tstate); | |
13914 | if (PyErr_Occurred()) SWIG_fail; | |
13915 | } | |
13916 | { | |
13917 | #if wxUSE_UNICODE | |
13918 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13919 | #else | |
13920 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13921 | #endif | |
13922 | } | |
13923 | return resultobj; | |
13924 | fail: | |
13925 | return NULL; | |
13926 | } | |
13927 | ||
13928 | ||
c32bde28 | 13929 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13930 | PyObject *resultobj; |
13931 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13932 | wxString *arg2 = 0 ; | |
13933 | bool result; | |
ae8162c8 | 13934 | bool temp2 = false ; |
d14a1e28 RD |
13935 | PyObject * obj0 = 0 ; |
13936 | PyObject * obj1 = 0 ; | |
13937 | char *kwnames[] = { | |
13938 | (char *) "self",(char *) "s", NULL | |
13939 | }; | |
13940 | ||
13941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13942 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13943 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13944 | { |
13945 | arg2 = wxString_in_helper(obj1); | |
13946 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13947 | temp2 = true; |
d14a1e28 RD |
13948 | } |
13949 | { | |
13950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13951 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
13952 | ||
13953 | wxPyEndAllowThreads(__tstate); | |
13954 | if (PyErr_Occurred()) SWIG_fail; | |
13955 | } | |
4f89f6a3 RD |
13956 | { |
13957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13958 | } | |
d14a1e28 RD |
13959 | { |
13960 | if (temp2) | |
13961 | delete arg2; | |
13962 | } | |
13963 | return resultobj; | |
13964 | fail: | |
13965 | { | |
13966 | if (temp2) | |
13967 | delete arg2; | |
13968 | } | |
13969 | return NULL; | |
13970 | } | |
13971 | ||
13972 | ||
c32bde28 | 13973 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13974 | PyObject *resultobj; |
13975 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13976 | int result; | |
13977 | PyObject * obj0 = 0 ; | |
13978 | char *kwnames[] = { | |
13979 | (char *) "self", NULL | |
13980 | }; | |
13981 | ||
13982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13985 | { |
13986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13987 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
13988 | ||
13989 | wxPyEndAllowThreads(__tstate); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
13991 | } | |
093d3ff1 RD |
13992 | { |
13993 | resultobj = SWIG_From_int((int)(result)); | |
13994 | } | |
d14a1e28 RD |
13995 | return resultobj; |
13996 | fail: | |
13997 | return NULL; | |
13998 | } | |
13999 | ||
14000 | ||
c32bde28 | 14001 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14002 | PyObject *resultobj; |
14003 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14004 | wxString *arg2 = 0 ; | |
14005 | int result; | |
ae8162c8 | 14006 | bool temp2 = false ; |
d14a1e28 RD |
14007 | PyObject * obj0 = 0 ; |
14008 | PyObject * obj1 = 0 ; | |
14009 | char *kwnames[] = { | |
14010 | (char *) "self",(char *) "s", NULL | |
14011 | }; | |
14012 | ||
14013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14016 | { |
14017 | arg2 = wxString_in_helper(obj1); | |
14018 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14019 | temp2 = true; |
d14a1e28 RD |
14020 | } |
14021 | { | |
14022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14023 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
14024 | ||
14025 | wxPyEndAllowThreads(__tstate); | |
14026 | if (PyErr_Occurred()) SWIG_fail; | |
14027 | } | |
093d3ff1 RD |
14028 | { |
14029 | resultobj = SWIG_From_int((int)(result)); | |
14030 | } | |
d14a1e28 RD |
14031 | { |
14032 | if (temp2) | |
14033 | delete arg2; | |
14034 | } | |
14035 | return resultobj; | |
14036 | fail: | |
14037 | { | |
14038 | if (temp2) | |
14039 | delete arg2; | |
14040 | } | |
14041 | return NULL; | |
14042 | } | |
14043 | ||
14044 | ||
c32bde28 | 14045 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14046 | PyObject *resultobj; |
14047 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14048 | int arg2 ; | |
14049 | wxString result; | |
14050 | PyObject * obj0 = 0 ; | |
994141e6 | 14051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14052 | char *kwnames[] = { |
14053 | (char *) "self",(char *) "n", NULL | |
14054 | }; | |
14055 | ||
994141e6 | 14056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14057 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14059 | { | |
14060 | arg2 = (int)(SWIG_As_int(obj1)); | |
14061 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14062 | } | |
d14a1e28 RD |
14063 | { |
14064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14065 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
14066 | ||
14067 | wxPyEndAllowThreads(__tstate); | |
14068 | if (PyErr_Occurred()) SWIG_fail; | |
14069 | } | |
14070 | { | |
14071 | #if wxUSE_UNICODE | |
14072 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14073 | #else | |
14074 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14075 | #endif | |
14076 | } | |
14077 | return resultobj; | |
14078 | fail: | |
14079 | return NULL; | |
14080 | } | |
14081 | ||
14082 | ||
c32bde28 | 14083 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14084 | PyObject *resultobj; |
14085 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14086 | int arg2 ; | |
14087 | wxString *arg3 = 0 ; | |
ae8162c8 | 14088 | bool temp3 = false ; |
d14a1e28 | 14089 | PyObject * obj0 = 0 ; |
994141e6 | 14090 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14091 | PyObject * obj2 = 0 ; |
14092 | char *kwnames[] = { | |
14093 | (char *) "self",(char *) "n",(char *) "label", NULL | |
14094 | }; | |
14095 | ||
994141e6 | 14096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14099 | { | |
14100 | arg2 = (int)(SWIG_As_int(obj1)); | |
14101 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14102 | } | |
d14a1e28 RD |
14103 | { |
14104 | arg3 = wxString_in_helper(obj2); | |
14105 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14106 | temp3 = true; |
d14a1e28 RD |
14107 | } |
14108 | { | |
14109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14110 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
14111 | ||
14112 | wxPyEndAllowThreads(__tstate); | |
14113 | if (PyErr_Occurred()) SWIG_fail; | |
14114 | } | |
14115 | Py_INCREF(Py_None); resultobj = Py_None; | |
14116 | { | |
14117 | if (temp3) | |
14118 | delete arg3; | |
14119 | } | |
14120 | return resultobj; | |
14121 | fail: | |
14122 | { | |
14123 | if (temp3) | |
14124 | delete arg3; | |
14125 | } | |
14126 | return NULL; | |
14127 | } | |
14128 | ||
14129 | ||
c32bde28 | 14130 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14131 | PyObject *resultobj; |
14132 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14133 | int arg2 ; | |
ae8162c8 | 14134 | bool arg3 = (bool) true ; |
d14a1e28 | 14135 | PyObject * obj0 = 0 ; |
994141e6 | 14136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14137 | PyObject * obj2 = 0 ; |
14138 | char *kwnames[] = { | |
14139 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
14140 | }; | |
14141 | ||
994141e6 | 14142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14145 | { | |
14146 | arg2 = (int)(SWIG_As_int(obj1)); | |
14147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14148 | } | |
d14a1e28 | 14149 | if (obj2) { |
093d3ff1 RD |
14150 | { |
14151 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14152 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14153 | } | |
d14a1e28 RD |
14154 | } |
14155 | { | |
14156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14157 | (arg1)->Enable(arg2,arg3); | |
14158 | ||
14159 | wxPyEndAllowThreads(__tstate); | |
14160 | if (PyErr_Occurred()) SWIG_fail; | |
14161 | } | |
14162 | Py_INCREF(Py_None); resultobj = Py_None; | |
14163 | return resultobj; | |
14164 | fail: | |
14165 | return NULL; | |
14166 | } | |
14167 | ||
14168 | ||
c32bde28 | 14169 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14170 | PyObject *resultobj; |
14171 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14172 | int arg2 ; | |
ae8162c8 | 14173 | bool arg3 = (bool) true ; |
d14a1e28 | 14174 | PyObject * obj0 = 0 ; |
994141e6 | 14175 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14176 | PyObject * obj2 = 0 ; |
14177 | char *kwnames[] = { | |
14178 | (char *) "self",(char *) "n",(char *) "show", NULL | |
14179 | }; | |
14180 | ||
994141e6 | 14181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14184 | { | |
14185 | arg2 = (int)(SWIG_As_int(obj1)); | |
14186 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14187 | } | |
d14a1e28 | 14188 | if (obj2) { |
093d3ff1 RD |
14189 | { |
14190 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14191 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14192 | } | |
d14a1e28 RD |
14193 | } |
14194 | { | |
14195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14196 | (arg1)->Show(arg2,arg3); | |
14197 | ||
14198 | wxPyEndAllowThreads(__tstate); | |
14199 | if (PyErr_Occurred()) SWIG_fail; | |
14200 | } | |
14201 | Py_INCREF(Py_None); resultobj = Py_None; | |
14202 | return resultobj; | |
14203 | fail: | |
14204 | return NULL; | |
14205 | } | |
14206 | ||
14207 | ||
c32bde28 | 14208 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14209 | PyObject *resultobj; |
14210 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14211 | int result; | |
14212 | PyObject * obj0 = 0 ; | |
14213 | char *kwnames[] = { | |
14214 | (char *) "self", NULL | |
14215 | }; | |
14216 | ||
14217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14220 | { |
14221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14222 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
14223 | ||
14224 | wxPyEndAllowThreads(__tstate); | |
14225 | if (PyErr_Occurred()) SWIG_fail; | |
14226 | } | |
093d3ff1 RD |
14227 | { |
14228 | resultobj = SWIG_From_int((int)(result)); | |
14229 | } | |
d14a1e28 RD |
14230 | return resultobj; |
14231 | fail: | |
14232 | return NULL; | |
14233 | } | |
14234 | ||
14235 | ||
c32bde28 | 14236 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14237 | PyObject *resultobj; |
14238 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14239 | int result; | |
14240 | PyObject * obj0 = 0 ; | |
14241 | char *kwnames[] = { | |
14242 | (char *) "self", NULL | |
14243 | }; | |
14244 | ||
14245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14248 | { |
14249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14250 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
14251 | ||
14252 | wxPyEndAllowThreads(__tstate); | |
14253 | if (PyErr_Occurred()) SWIG_fail; | |
14254 | } | |
093d3ff1 RD |
14255 | { |
14256 | resultobj = SWIG_From_int((int)(result)); | |
14257 | } | |
d14a1e28 RD |
14258 | return resultobj; |
14259 | fail: | |
14260 | return NULL; | |
14261 | } | |
14262 | ||
14263 | ||
c32bde28 | 14264 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14265 | PyObject *resultobj; |
14266 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14267 | int arg2 ; | |
093d3ff1 | 14268 | wxDirection arg3 ; |
d14a1e28 RD |
14269 | long arg4 ; |
14270 | int result; | |
14271 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14272 | PyObject * obj1 = 0 ; |
14273 | PyObject * obj2 = 0 ; | |
14274 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14275 | char *kwnames[] = { |
14276 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
14277 | }; | |
14278 | ||
994141e6 | 14279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
14280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14282 | { | |
14283 | arg2 = (int)(SWIG_As_int(obj1)); | |
14284 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14285 | } | |
14286 | { | |
14287 | arg3 = (wxDirection)(SWIG_As_int(obj2)); | |
14288 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14289 | } | |
14290 | { | |
14291 | arg4 = (long)(SWIG_As_long(obj3)); | |
14292 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14293 | } | |
d14a1e28 RD |
14294 | { |
14295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14296 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
14297 | ||
14298 | wxPyEndAllowThreads(__tstate); | |
14299 | if (PyErr_Occurred()) SWIG_fail; | |
14300 | } | |
093d3ff1 RD |
14301 | { |
14302 | resultobj = SWIG_From_int((int)(result)); | |
14303 | } | |
d14a1e28 RD |
14304 | return resultobj; |
14305 | fail: | |
14306 | return NULL; | |
14307 | } | |
14308 | ||
14309 | ||
c32bde28 | 14310 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 14311 | PyObject *resultobj; |
093d3ff1 | 14312 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
14313 | wxVisualAttributes result; |
14314 | PyObject * obj0 = 0 ; | |
14315 | char *kwnames[] = { | |
14316 | (char *) "variant", NULL | |
14317 | }; | |
14318 | ||
14319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14320 | if (obj0) { | |
093d3ff1 RD |
14321 | { |
14322 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14323 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14324 | } | |
22bfe96c RD |
14325 | } |
14326 | { | |
110da5b0 | 14327 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14329 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14330 | ||
14331 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14332 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14333 | } |
14334 | { | |
14335 | wxVisualAttributes * resultptr; | |
093d3ff1 | 14336 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
14337 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14338 | } | |
14339 | return resultobj; | |
14340 | fail: | |
14341 | return NULL; | |
14342 | } | |
14343 | ||
14344 | ||
c32bde28 | 14345 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14346 | PyObject *obj; |
14347 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14348 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
14349 | Py_INCREF(obj); | |
14350 | return Py_BuildValue((char *)""); | |
14351 | } | |
c32bde28 | 14352 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14353 | PyObject *resultobj; |
14354 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14355 | int arg2 = (int) -1 ; |
14356 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14357 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
14358 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14359 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14360 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14361 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14362 | long arg6 = (long) 0 ; | |
14363 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14364 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14365 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
14366 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14367 | wxRadioButton *result; | |
ae8162c8 | 14368 | bool temp3 = false ; |
d14a1e28 RD |
14369 | wxPoint temp4 ; |
14370 | wxSize temp5 ; | |
ae8162c8 | 14371 | bool temp8 = false ; |
d14a1e28 | 14372 | PyObject * obj0 = 0 ; |
994141e6 | 14373 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14374 | PyObject * obj2 = 0 ; |
14375 | PyObject * obj3 = 0 ; | |
14376 | PyObject * obj4 = 0 ; | |
994141e6 | 14377 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14378 | PyObject * obj6 = 0 ; |
14379 | PyObject * obj7 = 0 ; | |
14380 | char *kwnames[] = { | |
14381 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14382 | }; | |
14383 | ||
248ed943 | 14384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
14385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14387 | if (obj1) { |
093d3ff1 RD |
14388 | { |
14389 | arg2 = (int)(SWIG_As_int(obj1)); | |
14390 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14391 | } | |
248ed943 RD |
14392 | } |
14393 | if (obj2) { | |
14394 | { | |
14395 | arg3 = wxString_in_helper(obj2); | |
14396 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14397 | temp3 = true; |
248ed943 | 14398 | } |
d14a1e28 RD |
14399 | } |
14400 | if (obj3) { | |
14401 | { | |
14402 | arg4 = &temp4; | |
14403 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14404 | } | |
14405 | } | |
14406 | if (obj4) { | |
14407 | { | |
14408 | arg5 = &temp5; | |
14409 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14410 | } | |
14411 | } | |
994141e6 | 14412 | if (obj5) { |
093d3ff1 RD |
14413 | { |
14414 | arg6 = (long)(SWIG_As_long(obj5)); | |
14415 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14416 | } | |
994141e6 | 14417 | } |
d14a1e28 | 14418 | if (obj6) { |
093d3ff1 RD |
14419 | { |
14420 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14421 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14422 | if (arg7 == NULL) { | |
14423 | SWIG_null_ref("wxValidator"); | |
14424 | } | |
14425 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
14426 | } |
14427 | } | |
14428 | if (obj7) { | |
14429 | { | |
14430 | arg8 = wxString_in_helper(obj7); | |
14431 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 14432 | temp8 = true; |
d14a1e28 RD |
14433 | } |
14434 | } | |
14435 | { | |
e3b71cb8 | 14436 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14438 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14439 | ||
14440 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14441 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14442 | } |
15afbcd0 | 14443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
14444 | { |
14445 | if (temp3) | |
14446 | delete arg3; | |
14447 | } | |
14448 | { | |
14449 | if (temp8) | |
14450 | delete arg8; | |
14451 | } | |
14452 | return resultobj; | |
14453 | fail: | |
14454 | { | |
14455 | if (temp3) | |
14456 | delete arg3; | |
14457 | } | |
14458 | { | |
14459 | if (temp8) | |
14460 | delete arg8; | |
14461 | } | |
14462 | return NULL; | |
14463 | } | |
14464 | ||
14465 | ||
c32bde28 | 14466 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14467 | PyObject *resultobj; |
14468 | wxRadioButton *result; | |
14469 | char *kwnames[] = { | |
14470 | NULL | |
14471 | }; | |
14472 | ||
14473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
14474 | { | |
e3b71cb8 | 14475 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14477 | result = (wxRadioButton *)new wxRadioButton(); | |
14478 | ||
14479 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14480 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14481 | } |
15afbcd0 | 14482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
14483 | return resultobj; |
14484 | fail: | |
14485 | return NULL; | |
14486 | } | |
14487 | ||
14488 | ||
c32bde28 | 14489 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14490 | PyObject *resultobj; |
14491 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14492 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14493 | int arg3 = (int) -1 ; |
14494 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14495 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
14496 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14497 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14498 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14499 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14500 | long arg7 = (long) 0 ; | |
14501 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14502 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14503 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
14504 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14505 | bool result; | |
ae8162c8 | 14506 | bool temp4 = false ; |
d14a1e28 RD |
14507 | wxPoint temp5 ; |
14508 | wxSize temp6 ; | |
ae8162c8 | 14509 | bool temp9 = false ; |
d14a1e28 RD |
14510 | PyObject * obj0 = 0 ; |
14511 | PyObject * obj1 = 0 ; | |
994141e6 | 14512 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14513 | PyObject * obj3 = 0 ; |
14514 | PyObject * obj4 = 0 ; | |
14515 | PyObject * obj5 = 0 ; | |
994141e6 | 14516 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14517 | PyObject * obj7 = 0 ; |
14518 | PyObject * obj8 = 0 ; | |
14519 | char *kwnames[] = { | |
14520 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14521 | }; | |
14522 | ||
248ed943 | 14523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
14524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14526 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14527 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 14528 | if (obj2) { |
093d3ff1 RD |
14529 | { |
14530 | arg3 = (int)(SWIG_As_int(obj2)); | |
14531 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14532 | } | |
248ed943 RD |
14533 | } |
14534 | if (obj3) { | |
14535 | { | |
14536 | arg4 = wxString_in_helper(obj3); | |
14537 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14538 | temp4 = true; |
248ed943 | 14539 | } |
d14a1e28 RD |
14540 | } |
14541 | if (obj4) { | |
14542 | { | |
14543 | arg5 = &temp5; | |
14544 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14545 | } | |
14546 | } | |
14547 | if (obj5) { | |
14548 | { | |
14549 | arg6 = &temp6; | |
14550 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14551 | } | |
14552 | } | |
994141e6 | 14553 | if (obj6) { |
093d3ff1 RD |
14554 | { |
14555 | arg7 = (long)(SWIG_As_long(obj6)); | |
14556 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14557 | } | |
994141e6 | 14558 | } |
d14a1e28 | 14559 | if (obj7) { |
093d3ff1 RD |
14560 | { |
14561 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14562 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14563 | if (arg8 == NULL) { | |
14564 | SWIG_null_ref("wxValidator"); | |
14565 | } | |
14566 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
14567 | } |
14568 | } | |
14569 | if (obj8) { | |
14570 | { | |
14571 | arg9 = wxString_in_helper(obj8); | |
14572 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 14573 | temp9 = true; |
d14a1e28 RD |
14574 | } |
14575 | } | |
14576 | { | |
14577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14578 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14579 | ||
14580 | wxPyEndAllowThreads(__tstate); | |
14581 | if (PyErr_Occurred()) SWIG_fail; | |
14582 | } | |
4f89f6a3 RD |
14583 | { |
14584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14585 | } | |
d14a1e28 RD |
14586 | { |
14587 | if (temp4) | |
14588 | delete arg4; | |
14589 | } | |
14590 | { | |
14591 | if (temp9) | |
14592 | delete arg9; | |
14593 | } | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | { | |
14597 | if (temp4) | |
14598 | delete arg4; | |
14599 | } | |
14600 | { | |
14601 | if (temp9) | |
14602 | delete arg9; | |
14603 | } | |
14604 | return NULL; | |
14605 | } | |
14606 | ||
14607 | ||
c32bde28 | 14608 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14609 | PyObject *resultobj; |
14610 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14611 | bool result; | |
14612 | PyObject * obj0 = 0 ; | |
14613 | char *kwnames[] = { | |
14614 | (char *) "self", NULL | |
14615 | }; | |
14616 | ||
14617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14620 | { |
14621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14622 | result = (bool)(arg1)->GetValue(); | |
14623 | ||
14624 | wxPyEndAllowThreads(__tstate); | |
14625 | if (PyErr_Occurred()) SWIG_fail; | |
14626 | } | |
4f89f6a3 RD |
14627 | { |
14628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14629 | } | |
d14a1e28 RD |
14630 | return resultobj; |
14631 | fail: | |
14632 | return NULL; | |
14633 | } | |
14634 | ||
14635 | ||
c32bde28 | 14636 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14637 | PyObject *resultobj; |
14638 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14639 | bool arg2 ; | |
14640 | PyObject * obj0 = 0 ; | |
14641 | PyObject * obj1 = 0 ; | |
14642 | char *kwnames[] = { | |
14643 | (char *) "self",(char *) "value", NULL | |
14644 | }; | |
14645 | ||
14646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14647 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14648 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14649 | { | |
14650 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14652 | } | |
d14a1e28 RD |
14653 | { |
14654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14655 | (arg1)->SetValue(arg2); | |
14656 | ||
14657 | wxPyEndAllowThreads(__tstate); | |
14658 | if (PyErr_Occurred()) SWIG_fail; | |
14659 | } | |
14660 | Py_INCREF(Py_None); resultobj = Py_None; | |
14661 | return resultobj; | |
14662 | fail: | |
14663 | return NULL; | |
14664 | } | |
14665 | ||
14666 | ||
c32bde28 | 14667 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 14668 | PyObject *resultobj; |
093d3ff1 | 14669 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
14670 | wxVisualAttributes result; |
14671 | PyObject * obj0 = 0 ; | |
14672 | char *kwnames[] = { | |
14673 | (char *) "variant", NULL | |
14674 | }; | |
14675 | ||
14676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14677 | if (obj0) { | |
093d3ff1 RD |
14678 | { |
14679 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14681 | } | |
22bfe96c RD |
14682 | } |
14683 | { | |
110da5b0 | 14684 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14686 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14687 | ||
14688 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14689 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14690 | } |
14691 | { | |
14692 | wxVisualAttributes * resultptr; | |
093d3ff1 | 14693 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
14694 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14695 | } | |
14696 | return resultobj; | |
14697 | fail: | |
14698 | return NULL; | |
14699 | } | |
14700 | ||
14701 | ||
c32bde28 | 14702 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14703 | PyObject *obj; |
14704 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14705 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
14706 | Py_INCREF(obj); | |
14707 | return Py_BuildValue((char *)""); | |
14708 | } | |
c32bde28 | 14709 | static int _wrap_SliderNameStr_set(PyObject *) { |
b2dc1044 RD |
14710 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
14711 | return 1; | |
14712 | } | |
14713 | ||
14714 | ||
093d3ff1 | 14715 | static PyObject *_wrap_SliderNameStr_get(void) { |
b2dc1044 RD |
14716 | PyObject *pyobj; |
14717 | ||
14718 | { | |
14719 | #if wxUSE_UNICODE | |
14720 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14721 | #else | |
14722 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14723 | #endif | |
14724 | } | |
14725 | return pyobj; | |
14726 | } | |
14727 | ||
14728 | ||
c32bde28 | 14729 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14730 | PyObject *resultobj; |
14731 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14732 | int arg2 = (int) -1 ; |
14733 | int arg3 = (int) 0 ; | |
14734 | int arg4 = (int) 0 ; | |
14735 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
14736 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
14737 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
14738 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
14739 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
14740 | long arg8 = (long) wxSL_HORIZONTAL ; | |
14741 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
14742 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
14743 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
14744 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
14745 | wxSlider *result; | |
14746 | wxPoint temp6 ; | |
14747 | wxSize temp7 ; | |
ae8162c8 | 14748 | bool temp10 = false ; |
d14a1e28 | 14749 | PyObject * obj0 = 0 ; |
994141e6 RD |
14750 | PyObject * obj1 = 0 ; |
14751 | PyObject * obj2 = 0 ; | |
14752 | PyObject * obj3 = 0 ; | |
14753 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
14754 | PyObject * obj5 = 0 ; |
14755 | PyObject * obj6 = 0 ; | |
994141e6 | 14756 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
14757 | PyObject * obj8 = 0 ; |
14758 | PyObject * obj9 = 0 ; | |
14759 | char *kwnames[] = { | |
994141e6 | 14760 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
14761 | }; |
14762 | ||
248ed943 | 14763 | 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 |
14764 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14766 | if (obj1) { |
093d3ff1 RD |
14767 | { |
14768 | arg2 = (int)(SWIG_As_int(obj1)); | |
14769 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14770 | } | |
248ed943 RD |
14771 | } |
14772 | if (obj2) { | |
093d3ff1 RD |
14773 | { |
14774 | arg3 = (int)(SWIG_As_int(obj2)); | |
14775 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14776 | } | |
248ed943 RD |
14777 | } |
14778 | if (obj3) { | |
093d3ff1 RD |
14779 | { |
14780 | arg4 = (int)(SWIG_As_int(obj3)); | |
14781 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14782 | } | |
248ed943 RD |
14783 | } |
14784 | if (obj4) { | |
093d3ff1 RD |
14785 | { |
14786 | arg5 = (int)(SWIG_As_int(obj4)); | |
14787 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14788 | } | |
248ed943 | 14789 | } |
d14a1e28 RD |
14790 | if (obj5) { |
14791 | { | |
14792 | arg6 = &temp6; | |
14793 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
14794 | } | |
14795 | } | |
14796 | if (obj6) { | |
14797 | { | |
14798 | arg7 = &temp7; | |
14799 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
14800 | } | |
14801 | } | |
994141e6 | 14802 | if (obj7) { |
093d3ff1 RD |
14803 | { |
14804 | arg8 = (long)(SWIG_As_long(obj7)); | |
14805 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14806 | } | |
994141e6 | 14807 | } |
d14a1e28 | 14808 | if (obj8) { |
093d3ff1 RD |
14809 | { |
14810 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14811 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14812 | if (arg9 == NULL) { | |
14813 | SWIG_null_ref("wxValidator"); | |
14814 | } | |
14815 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
14816 | } |
14817 | } | |
14818 | if (obj9) { | |
14819 | { | |
14820 | arg10 = wxString_in_helper(obj9); | |
14821 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 14822 | temp10 = true; |
d14a1e28 RD |
14823 | } |
14824 | } | |
14825 | { | |
e3b71cb8 | 14826 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14828 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
14829 | ||
14830 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14831 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14832 | } |
15afbcd0 | 14833 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
14834 | { |
14835 | if (temp10) | |
14836 | delete arg10; | |
14837 | } | |
14838 | return resultobj; | |
14839 | fail: | |
14840 | { | |
14841 | if (temp10) | |
14842 | delete arg10; | |
14843 | } | |
14844 | return NULL; | |
14845 | } | |
14846 | ||
14847 | ||
c32bde28 | 14848 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14849 | PyObject *resultobj; |
14850 | wxSlider *result; | |
14851 | char *kwnames[] = { | |
14852 | NULL | |
14853 | }; | |
14854 | ||
14855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
14856 | { | |
e3b71cb8 | 14857 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14859 | result = (wxSlider *)new wxSlider(); | |
14860 | ||
14861 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14862 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14863 | } |
15afbcd0 | 14864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
14865 | return resultobj; |
14866 | fail: | |
14867 | return NULL; | |
14868 | } | |
14869 | ||
14870 | ||
c32bde28 | 14871 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14872 | PyObject *resultobj; |
14873 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14874 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14875 | int arg3 = (int) -1 ; |
14876 | int arg4 = (int) 0 ; | |
14877 | int arg5 = (int) 0 ; | |
14878 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
14879 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
14880 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
14881 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
14882 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
14883 | long arg9 = (long) wxSL_HORIZONTAL ; | |
14884 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
14885 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
14886 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
14887 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
14888 | bool result; | |
14889 | wxPoint temp7 ; | |
14890 | wxSize temp8 ; | |
ae8162c8 | 14891 | bool temp11 = false ; |
d14a1e28 RD |
14892 | PyObject * obj0 = 0 ; |
14893 | PyObject * obj1 = 0 ; | |
994141e6 RD |
14894 | PyObject * obj2 = 0 ; |
14895 | PyObject * obj3 = 0 ; | |
14896 | PyObject * obj4 = 0 ; | |
14897 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
14898 | PyObject * obj6 = 0 ; |
14899 | PyObject * obj7 = 0 ; | |
994141e6 | 14900 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
14901 | PyObject * obj9 = 0 ; |
14902 | PyObject * obj10 = 0 ; | |
14903 | char *kwnames[] = { | |
994141e6 | 14904 | (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 |
14905 | }; |
14906 | ||
248ed943 | 14907 | 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 |
14908 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
14909 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14910 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14911 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 14912 | if (obj2) { |
093d3ff1 RD |
14913 | { |
14914 | arg3 = (int)(SWIG_As_int(obj2)); | |
14915 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14916 | } | |
248ed943 RD |
14917 | } |
14918 | if (obj3) { | |
093d3ff1 RD |
14919 | { |
14920 | arg4 = (int)(SWIG_As_int(obj3)); | |
14921 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14922 | } | |
248ed943 RD |
14923 | } |
14924 | if (obj4) { | |
093d3ff1 RD |
14925 | { |
14926 | arg5 = (int)(SWIG_As_int(obj4)); | |
14927 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14928 | } | |
248ed943 RD |
14929 | } |
14930 | if (obj5) { | |
093d3ff1 RD |
14931 | { |
14932 | arg6 = (int)(SWIG_As_int(obj5)); | |
14933 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14934 | } | |
248ed943 | 14935 | } |
d14a1e28 RD |
14936 | if (obj6) { |
14937 | { | |
14938 | arg7 = &temp7; | |
14939 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
14940 | } | |
14941 | } | |
14942 | if (obj7) { | |
14943 | { | |
14944 | arg8 = &temp8; | |
14945 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
14946 | } | |
14947 | } | |
994141e6 | 14948 | if (obj8) { |
093d3ff1 RD |
14949 | { |
14950 | arg9 = (long)(SWIG_As_long(obj8)); | |
14951 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14952 | } | |
994141e6 | 14953 | } |
d14a1e28 | 14954 | if (obj9) { |
093d3ff1 RD |
14955 | { |
14956 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14957 | if (SWIG_arg_fail(10)) SWIG_fail; | |
14958 | if (arg10 == NULL) { | |
14959 | SWIG_null_ref("wxValidator"); | |
14960 | } | |
14961 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d14a1e28 RD |
14962 | } |
14963 | } | |
14964 | if (obj10) { | |
14965 | { | |
14966 | arg11 = wxString_in_helper(obj10); | |
14967 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 14968 | temp11 = true; |
d14a1e28 RD |
14969 | } |
14970 | } | |
14971 | { | |
14972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14973 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
14974 | ||
14975 | wxPyEndAllowThreads(__tstate); | |
14976 | if (PyErr_Occurred()) SWIG_fail; | |
14977 | } | |
4f89f6a3 RD |
14978 | { |
14979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14980 | } | |
d14a1e28 RD |
14981 | { |
14982 | if (temp11) | |
14983 | delete arg11; | |
14984 | } | |
14985 | return resultobj; | |
14986 | fail: | |
14987 | { | |
14988 | if (temp11) | |
14989 | delete arg11; | |
14990 | } | |
14991 | return NULL; | |
14992 | } | |
14993 | ||
14994 | ||
c32bde28 | 14995 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14996 | PyObject *resultobj; |
14997 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14998 | int result; | |
14999 | PyObject * obj0 = 0 ; | |
15000 | char *kwnames[] = { | |
15001 | (char *) "self", NULL | |
15002 | }; | |
15003 | ||
15004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15005 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15006 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15007 | { |
15008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15009 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
15010 | ||
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
093d3ff1 RD |
15014 | { |
15015 | resultobj = SWIG_From_int((int)(result)); | |
15016 | } | |
d14a1e28 RD |
15017 | return resultobj; |
15018 | fail: | |
15019 | return NULL; | |
15020 | } | |
15021 | ||
15022 | ||
c32bde28 | 15023 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15024 | PyObject *resultobj; |
15025 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15026 | int arg2 ; | |
15027 | PyObject * obj0 = 0 ; | |
994141e6 | 15028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15029 | char *kwnames[] = { |
15030 | (char *) "self",(char *) "value", NULL | |
15031 | }; | |
15032 | ||
994141e6 | 15033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15036 | { | |
15037 | arg2 = (int)(SWIG_As_int(obj1)); | |
15038 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15039 | } | |
d14a1e28 RD |
15040 | { |
15041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15042 | (arg1)->SetValue(arg2); | |
15043 | ||
15044 | wxPyEndAllowThreads(__tstate); | |
15045 | if (PyErr_Occurred()) SWIG_fail; | |
15046 | } | |
15047 | Py_INCREF(Py_None); resultobj = Py_None; | |
15048 | return resultobj; | |
15049 | fail: | |
15050 | return NULL; | |
15051 | } | |
15052 | ||
15053 | ||
c32bde28 | 15054 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15055 | PyObject *resultobj; |
15056 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15057 | int arg2 ; | |
15058 | int arg3 ; | |
15059 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15060 | PyObject * obj1 = 0 ; |
15061 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15062 | char *kwnames[] = { |
15063 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
15064 | }; | |
15065 | ||
994141e6 | 15066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15069 | { | |
15070 | arg2 = (int)(SWIG_As_int(obj1)); | |
15071 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15072 | } | |
15073 | { | |
15074 | arg3 = (int)(SWIG_As_int(obj2)); | |
15075 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15076 | } | |
d14a1e28 RD |
15077 | { |
15078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15079 | (arg1)->SetRange(arg2,arg3); | |
15080 | ||
15081 | wxPyEndAllowThreads(__tstate); | |
15082 | if (PyErr_Occurred()) SWIG_fail; | |
15083 | } | |
15084 | Py_INCREF(Py_None); resultobj = Py_None; | |
15085 | return resultobj; | |
15086 | fail: | |
15087 | return NULL; | |
15088 | } | |
15089 | ||
15090 | ||
c32bde28 | 15091 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15092 | PyObject *resultobj; |
15093 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15094 | int result; | |
15095 | PyObject * obj0 = 0 ; | |
15096 | char *kwnames[] = { | |
15097 | (char *) "self", NULL | |
15098 | }; | |
15099 | ||
15100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15103 | { |
15104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15105 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
15106 | ||
15107 | wxPyEndAllowThreads(__tstate); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
093d3ff1 RD |
15110 | { |
15111 | resultobj = SWIG_From_int((int)(result)); | |
15112 | } | |
d14a1e28 RD |
15113 | return resultobj; |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
c32bde28 | 15119 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15120 | PyObject *resultobj; |
15121 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15122 | int result; | |
15123 | PyObject * obj0 = 0 ; | |
15124 | char *kwnames[] = { | |
15125 | (char *) "self", NULL | |
15126 | }; | |
15127 | ||
15128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15129 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15130 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15131 | { |
15132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15133 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
15134 | ||
15135 | wxPyEndAllowThreads(__tstate); | |
15136 | if (PyErr_Occurred()) SWIG_fail; | |
15137 | } | |
093d3ff1 RD |
15138 | { |
15139 | resultobj = SWIG_From_int((int)(result)); | |
15140 | } | |
d14a1e28 RD |
15141 | return resultobj; |
15142 | fail: | |
15143 | return NULL; | |
15144 | } | |
15145 | ||
15146 | ||
c32bde28 | 15147 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15148 | PyObject *resultobj; |
15149 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15150 | int arg2 ; | |
15151 | PyObject * obj0 = 0 ; | |
994141e6 | 15152 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15153 | char *kwnames[] = { |
15154 | (char *) "self",(char *) "minValue", NULL | |
15155 | }; | |
15156 | ||
994141e6 | 15157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15160 | { | |
15161 | arg2 = (int)(SWIG_As_int(obj1)); | |
15162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15163 | } | |
d14a1e28 RD |
15164 | { |
15165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15166 | (arg1)->SetMin(arg2); | |
15167 | ||
15168 | wxPyEndAllowThreads(__tstate); | |
15169 | if (PyErr_Occurred()) SWIG_fail; | |
15170 | } | |
15171 | Py_INCREF(Py_None); resultobj = Py_None; | |
15172 | return resultobj; | |
15173 | fail: | |
15174 | return NULL; | |
15175 | } | |
15176 | ||
15177 | ||
c32bde28 | 15178 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15179 | PyObject *resultobj; |
15180 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15181 | int arg2 ; | |
15182 | PyObject * obj0 = 0 ; | |
994141e6 | 15183 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15184 | char *kwnames[] = { |
15185 | (char *) "self",(char *) "maxValue", NULL | |
15186 | }; | |
15187 | ||
994141e6 | 15188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15189 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15190 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15191 | { | |
15192 | arg2 = (int)(SWIG_As_int(obj1)); | |
15193 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15194 | } | |
d14a1e28 RD |
15195 | { |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | (arg1)->SetMax(arg2); | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
15202 | Py_INCREF(Py_None); resultobj = Py_None; | |
15203 | return resultobj; | |
15204 | fail: | |
15205 | return NULL; | |
15206 | } | |
15207 | ||
15208 | ||
c32bde28 | 15209 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15210 | PyObject *resultobj; |
15211 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15212 | int arg2 ; | |
15213 | PyObject * obj0 = 0 ; | |
994141e6 | 15214 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15215 | char *kwnames[] = { |
15216 | (char *) "self",(char *) "lineSize", NULL | |
15217 | }; | |
15218 | ||
994141e6 | 15219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15222 | { | |
15223 | arg2 = (int)(SWIG_As_int(obj1)); | |
15224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15225 | } | |
d14a1e28 RD |
15226 | { |
15227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15228 | (arg1)->SetLineSize(arg2); | |
15229 | ||
15230 | wxPyEndAllowThreads(__tstate); | |
15231 | if (PyErr_Occurred()) SWIG_fail; | |
15232 | } | |
15233 | Py_INCREF(Py_None); resultobj = Py_None; | |
15234 | return resultobj; | |
15235 | fail: | |
15236 | return NULL; | |
15237 | } | |
15238 | ||
15239 | ||
c32bde28 | 15240 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15241 | PyObject *resultobj; |
15242 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15243 | int arg2 ; | |
15244 | PyObject * obj0 = 0 ; | |
994141e6 | 15245 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15246 | char *kwnames[] = { |
15247 | (char *) "self",(char *) "pageSize", NULL | |
15248 | }; | |
15249 | ||
994141e6 | 15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15253 | { | |
15254 | arg2 = (int)(SWIG_As_int(obj1)); | |
15255 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15256 | } | |
d14a1e28 RD |
15257 | { |
15258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15259 | (arg1)->SetPageSize(arg2); | |
15260 | ||
15261 | wxPyEndAllowThreads(__tstate); | |
15262 | if (PyErr_Occurred()) SWIG_fail; | |
15263 | } | |
15264 | Py_INCREF(Py_None); resultobj = Py_None; | |
15265 | return resultobj; | |
15266 | fail: | |
15267 | return NULL; | |
15268 | } | |
15269 | ||
15270 | ||
c32bde28 | 15271 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15272 | PyObject *resultobj; |
15273 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15274 | int result; | |
15275 | PyObject * obj0 = 0 ; | |
15276 | char *kwnames[] = { | |
15277 | (char *) "self", NULL | |
15278 | }; | |
15279 | ||
15280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15283 | { |
15284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15285 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
15286 | ||
15287 | wxPyEndAllowThreads(__tstate); | |
15288 | if (PyErr_Occurred()) SWIG_fail; | |
15289 | } | |
093d3ff1 RD |
15290 | { |
15291 | resultobj = SWIG_From_int((int)(result)); | |
15292 | } | |
d14a1e28 RD |
15293 | return resultobj; |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
c32bde28 | 15299 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15300 | PyObject *resultobj; |
15301 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15302 | int result; | |
15303 | PyObject * obj0 = 0 ; | |
15304 | char *kwnames[] = { | |
15305 | (char *) "self", NULL | |
15306 | }; | |
15307 | ||
15308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15311 | { |
15312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15313 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
15314 | ||
15315 | wxPyEndAllowThreads(__tstate); | |
15316 | if (PyErr_Occurred()) SWIG_fail; | |
15317 | } | |
093d3ff1 RD |
15318 | { |
15319 | resultobj = SWIG_From_int((int)(result)); | |
15320 | } | |
d14a1e28 RD |
15321 | return resultobj; |
15322 | fail: | |
15323 | return NULL; | |
15324 | } | |
15325 | ||
15326 | ||
c32bde28 | 15327 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15328 | PyObject *resultobj; |
15329 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15330 | int arg2 ; | |
15331 | PyObject * obj0 = 0 ; | |
994141e6 | 15332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15333 | char *kwnames[] = { |
15334 | (char *) "self",(char *) "lenPixels", NULL | |
15335 | }; | |
15336 | ||
994141e6 | 15337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15340 | { | |
15341 | arg2 = (int)(SWIG_As_int(obj1)); | |
15342 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15343 | } | |
d14a1e28 RD |
15344 | { |
15345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15346 | (arg1)->SetThumbLength(arg2); | |
15347 | ||
15348 | wxPyEndAllowThreads(__tstate); | |
15349 | if (PyErr_Occurred()) SWIG_fail; | |
15350 | } | |
15351 | Py_INCREF(Py_None); resultobj = Py_None; | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
c32bde28 | 15358 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15359 | PyObject *resultobj; |
15360 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15361 | int result; | |
15362 | PyObject * obj0 = 0 ; | |
15363 | char *kwnames[] = { | |
15364 | (char *) "self", NULL | |
15365 | }; | |
15366 | ||
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15370 | { |
15371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15372 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
15373 | ||
15374 | wxPyEndAllowThreads(__tstate); | |
15375 | if (PyErr_Occurred()) SWIG_fail; | |
15376 | } | |
093d3ff1 RD |
15377 | { |
15378 | resultobj = SWIG_From_int((int)(result)); | |
15379 | } | |
d14a1e28 RD |
15380 | return resultobj; |
15381 | fail: | |
15382 | return NULL; | |
15383 | } | |
15384 | ||
15385 | ||
c32bde28 | 15386 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15387 | PyObject *resultobj; |
15388 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15389 | int arg2 ; | |
994141e6 | 15390 | int arg3 = (int) 1 ; |
d14a1e28 | 15391 | PyObject * obj0 = 0 ; |
994141e6 RD |
15392 | PyObject * obj1 = 0 ; |
15393 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15394 | char *kwnames[] = { |
15395 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
15396 | }; | |
15397 | ||
994141e6 | 15398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15401 | { | |
15402 | arg2 = (int)(SWIG_As_int(obj1)); | |
15403 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15404 | } | |
994141e6 | 15405 | if (obj2) { |
093d3ff1 RD |
15406 | { |
15407 | arg3 = (int)(SWIG_As_int(obj2)); | |
15408 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15409 | } | |
994141e6 | 15410 | } |
d14a1e28 RD |
15411 | { |
15412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15413 | (arg1)->SetTickFreq(arg2,arg3); | |
15414 | ||
15415 | wxPyEndAllowThreads(__tstate); | |
15416 | if (PyErr_Occurred()) SWIG_fail; | |
15417 | } | |
15418 | Py_INCREF(Py_None); resultobj = Py_None; | |
15419 | return resultobj; | |
15420 | fail: | |
15421 | return NULL; | |
15422 | } | |
15423 | ||
15424 | ||
c32bde28 | 15425 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15426 | PyObject *resultobj; |
15427 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15428 | int result; | |
15429 | PyObject * obj0 = 0 ; | |
15430 | char *kwnames[] = { | |
15431 | (char *) "self", NULL | |
15432 | }; | |
15433 | ||
15434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15435 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15436 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15437 | { |
15438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15439 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
15440 | ||
15441 | wxPyEndAllowThreads(__tstate); | |
15442 | if (PyErr_Occurred()) SWIG_fail; | |
15443 | } | |
093d3ff1 RD |
15444 | { |
15445 | resultobj = SWIG_From_int((int)(result)); | |
15446 | } | |
d14a1e28 RD |
15447 | return resultobj; |
15448 | fail: | |
15449 | return NULL; | |
15450 | } | |
15451 | ||
15452 | ||
c32bde28 | 15453 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15454 | PyObject *resultobj; |
15455 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15456 | PyObject * obj0 = 0 ; | |
15457 | char *kwnames[] = { | |
15458 | (char *) "self", NULL | |
15459 | }; | |
15460 | ||
15461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15464 | { |
15465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15466 | (arg1)->ClearTicks(); | |
15467 | ||
15468 | wxPyEndAllowThreads(__tstate); | |
15469 | if (PyErr_Occurred()) SWIG_fail; | |
15470 | } | |
15471 | Py_INCREF(Py_None); resultobj = Py_None; | |
15472 | return resultobj; | |
15473 | fail: | |
15474 | return NULL; | |
15475 | } | |
15476 | ||
15477 | ||
c32bde28 | 15478 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15479 | PyObject *resultobj; |
15480 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15481 | int arg2 ; | |
15482 | PyObject * obj0 = 0 ; | |
994141e6 | 15483 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15484 | char *kwnames[] = { |
15485 | (char *) "self",(char *) "tickPos", NULL | |
15486 | }; | |
15487 | ||
994141e6 | 15488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15489 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15490 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15491 | { | |
15492 | arg2 = (int)(SWIG_As_int(obj1)); | |
15493 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15494 | } | |
d14a1e28 RD |
15495 | { |
15496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15497 | (arg1)->SetTick(arg2); | |
15498 | ||
15499 | wxPyEndAllowThreads(__tstate); | |
15500 | if (PyErr_Occurred()) SWIG_fail; | |
15501 | } | |
15502 | Py_INCREF(Py_None); resultobj = Py_None; | |
15503 | return resultobj; | |
15504 | fail: | |
15505 | return NULL; | |
15506 | } | |
15507 | ||
15508 | ||
c32bde28 | 15509 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15510 | PyObject *resultobj; |
15511 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15512 | PyObject * obj0 = 0 ; | |
15513 | char *kwnames[] = { | |
15514 | (char *) "self", NULL | |
15515 | }; | |
15516 | ||
15517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15520 | { |
15521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15522 | (arg1)->ClearSel(); | |
15523 | ||
15524 | wxPyEndAllowThreads(__tstate); | |
15525 | if (PyErr_Occurred()) SWIG_fail; | |
15526 | } | |
15527 | Py_INCREF(Py_None); resultobj = Py_None; | |
15528 | return resultobj; | |
15529 | fail: | |
15530 | return NULL; | |
15531 | } | |
15532 | ||
15533 | ||
c32bde28 | 15534 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15535 | PyObject *resultobj; |
15536 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15537 | int result; | |
15538 | PyObject * obj0 = 0 ; | |
15539 | char *kwnames[] = { | |
15540 | (char *) "self", NULL | |
15541 | }; | |
15542 | ||
15543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15546 | { |
15547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15548 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
15549 | ||
15550 | wxPyEndAllowThreads(__tstate); | |
15551 | if (PyErr_Occurred()) SWIG_fail; | |
15552 | } | |
093d3ff1 RD |
15553 | { |
15554 | resultobj = SWIG_From_int((int)(result)); | |
15555 | } | |
d14a1e28 RD |
15556 | return resultobj; |
15557 | fail: | |
15558 | return NULL; | |
15559 | } | |
15560 | ||
15561 | ||
c32bde28 | 15562 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15563 | PyObject *resultobj; |
15564 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15565 | int result; | |
15566 | PyObject * obj0 = 0 ; | |
15567 | char *kwnames[] = { | |
15568 | (char *) "self", NULL | |
15569 | }; | |
15570 | ||
15571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15574 | { |
15575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15576 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
15577 | ||
15578 | wxPyEndAllowThreads(__tstate); | |
15579 | if (PyErr_Occurred()) SWIG_fail; | |
15580 | } | |
093d3ff1 RD |
15581 | { |
15582 | resultobj = SWIG_From_int((int)(result)); | |
15583 | } | |
d14a1e28 RD |
15584 | return resultobj; |
15585 | fail: | |
15586 | return NULL; | |
15587 | } | |
15588 | ||
15589 | ||
c32bde28 | 15590 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15591 | PyObject *resultobj; |
15592 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15593 | int arg2 ; | |
15594 | int arg3 ; | |
15595 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15596 | PyObject * obj1 = 0 ; |
15597 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15598 | char *kwnames[] = { |
15599 | (char *) "self",(char *) "min",(char *) "max", NULL | |
15600 | }; | |
15601 | ||
994141e6 | 15602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15605 | { | |
15606 | arg2 = (int)(SWIG_As_int(obj1)); | |
15607 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15608 | } | |
15609 | { | |
15610 | arg3 = (int)(SWIG_As_int(obj2)); | |
15611 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15612 | } | |
d14a1e28 RD |
15613 | { |
15614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15615 | (arg1)->SetSelection(arg2,arg3); | |
15616 | ||
15617 | wxPyEndAllowThreads(__tstate); | |
15618 | if (PyErr_Occurred()) SWIG_fail; | |
15619 | } | |
15620 | Py_INCREF(Py_None); resultobj = Py_None; | |
15621 | return resultobj; | |
15622 | fail: | |
15623 | return NULL; | |
15624 | } | |
15625 | ||
15626 | ||
c32bde28 | 15627 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 15628 | PyObject *resultobj; |
093d3ff1 | 15629 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
15630 | wxVisualAttributes result; |
15631 | PyObject * obj0 = 0 ; | |
15632 | char *kwnames[] = { | |
15633 | (char *) "variant", NULL | |
15634 | }; | |
15635 | ||
15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15637 | if (obj0) { | |
093d3ff1 RD |
15638 | { |
15639 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
15640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15641 | } | |
22bfe96c RD |
15642 | } |
15643 | { | |
110da5b0 | 15644 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
15645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15646 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15647 | ||
15648 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15649 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15650 | } |
15651 | { | |
15652 | wxVisualAttributes * resultptr; | |
093d3ff1 | 15653 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
15654 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
15655 | } | |
15656 | return resultobj; | |
15657 | fail: | |
15658 | return NULL; | |
15659 | } | |
15660 | ||
15661 | ||
c32bde28 | 15662 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15663 | PyObject *obj; |
15664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15665 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
15666 | Py_INCREF(obj); | |
15667 | return Py_BuildValue((char *)""); | |
15668 | } | |
c32bde28 | 15669 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
15670 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
15671 | return 1; | |
15672 | } | |
15673 | ||
15674 | ||
093d3ff1 | 15675 | static PyObject *_wrap_ToggleButtonNameStr_get(void) { |
b2dc1044 RD |
15676 | PyObject *pyobj; |
15677 | ||
15678 | { | |
15679 | #if wxUSE_UNICODE | |
15680 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15681 | #else | |
15682 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15683 | #endif | |
15684 | } | |
15685 | return pyobj; | |
15686 | } | |
15687 | ||
15688 | ||
c32bde28 | 15689 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15690 | PyObject *resultobj; |
15691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
15692 | int arg2 = (int) -1 ; |
15693 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15694 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
15695 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15696 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15697 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15698 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15699 | long arg6 = (long) 0 ; | |
15700 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
15701 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
15702 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
15703 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15704 | wxToggleButton *result; | |
ae8162c8 | 15705 | bool temp3 = false ; |
d14a1e28 RD |
15706 | wxPoint temp4 ; |
15707 | wxSize temp5 ; | |
ae8162c8 | 15708 | bool temp8 = false ; |
d14a1e28 | 15709 | PyObject * obj0 = 0 ; |
994141e6 | 15710 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15711 | PyObject * obj2 = 0 ; |
15712 | PyObject * obj3 = 0 ; | |
15713 | PyObject * obj4 = 0 ; | |
994141e6 | 15714 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15715 | PyObject * obj6 = 0 ; |
15716 | PyObject * obj7 = 0 ; | |
15717 | char *kwnames[] = { | |
15718 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15719 | }; | |
15720 | ||
248ed943 | 15721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
15722 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
15723 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 15724 | if (obj1) { |
093d3ff1 RD |
15725 | { |
15726 | arg2 = (int)(SWIG_As_int(obj1)); | |
15727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15728 | } | |
248ed943 RD |
15729 | } |
15730 | if (obj2) { | |
15731 | { | |
15732 | arg3 = wxString_in_helper(obj2); | |
15733 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15734 | temp3 = true; |
248ed943 | 15735 | } |
d14a1e28 RD |
15736 | } |
15737 | if (obj3) { | |
15738 | { | |
15739 | arg4 = &temp4; | |
15740 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15741 | } | |
15742 | } | |
15743 | if (obj4) { | |
15744 | { | |
15745 | arg5 = &temp5; | |
15746 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15747 | } | |
15748 | } | |
994141e6 | 15749 | if (obj5) { |
093d3ff1 RD |
15750 | { |
15751 | arg6 = (long)(SWIG_As_long(obj5)); | |
15752 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15753 | } | |
994141e6 | 15754 | } |
d14a1e28 | 15755 | if (obj6) { |
093d3ff1 RD |
15756 | { |
15757 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15758 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15759 | if (arg7 == NULL) { | |
15760 | SWIG_null_ref("wxValidator"); | |
15761 | } | |
15762 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
15763 | } |
15764 | } | |
15765 | if (obj7) { | |
15766 | { | |
15767 | arg8 = wxString_in_helper(obj7); | |
15768 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 15769 | temp8 = true; |
d14a1e28 RD |
15770 | } |
15771 | } | |
15772 | { | |
e3b71cb8 | 15773 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15775 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
15776 | ||
15777 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15778 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15779 | } |
15afbcd0 | 15780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
15781 | { |
15782 | if (temp3) | |
15783 | delete arg3; | |
15784 | } | |
15785 | { | |
15786 | if (temp8) | |
15787 | delete arg8; | |
15788 | } | |
15789 | return resultobj; | |
15790 | fail: | |
15791 | { | |
15792 | if (temp3) | |
15793 | delete arg3; | |
15794 | } | |
15795 | { | |
15796 | if (temp8) | |
15797 | delete arg8; | |
15798 | } | |
15799 | return NULL; | |
15800 | } | |
15801 | ||
15802 | ||
c32bde28 | 15803 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15804 | PyObject *resultobj; |
15805 | wxToggleButton *result; | |
15806 | char *kwnames[] = { | |
15807 | NULL | |
15808 | }; | |
15809 | ||
15810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
15811 | { | |
e3b71cb8 | 15812 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15814 | result = (wxToggleButton *)new wxToggleButton(); | |
15815 | ||
15816 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15817 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15818 | } |
15afbcd0 | 15819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
15820 | return resultobj; |
15821 | fail: | |
15822 | return NULL; | |
15823 | } | |
15824 | ||
15825 | ||
c32bde28 | 15826 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15827 | PyObject *resultobj; |
15828 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15829 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
15830 | int arg3 = (int) -1 ; |
15831 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15832 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
15833 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
15834 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15835 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15836 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15837 | long arg7 = (long) 0 ; | |
15838 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
15839 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
15840 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
15841 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15842 | bool result; | |
ae8162c8 | 15843 | bool temp4 = false ; |
d14a1e28 RD |
15844 | wxPoint temp5 ; |
15845 | wxSize temp6 ; | |
ae8162c8 | 15846 | bool temp9 = false ; |
d14a1e28 RD |
15847 | PyObject * obj0 = 0 ; |
15848 | PyObject * obj1 = 0 ; | |
994141e6 | 15849 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15850 | PyObject * obj3 = 0 ; |
15851 | PyObject * obj4 = 0 ; | |
15852 | PyObject * obj5 = 0 ; | |
994141e6 | 15853 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
15854 | PyObject * obj7 = 0 ; |
15855 | PyObject * obj8 = 0 ; | |
15856 | char *kwnames[] = { | |
15857 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15858 | }; | |
15859 | ||
248ed943 | 15860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
15861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15863 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 15865 | if (obj2) { |
093d3ff1 RD |
15866 | { |
15867 | arg3 = (int)(SWIG_As_int(obj2)); | |
15868 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15869 | } | |
248ed943 RD |
15870 | } |
15871 | if (obj3) { | |
15872 | { | |
15873 | arg4 = wxString_in_helper(obj3); | |
15874 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 15875 | temp4 = true; |
248ed943 | 15876 | } |
d14a1e28 RD |
15877 | } |
15878 | if (obj4) { | |
15879 | { | |
15880 | arg5 = &temp5; | |
15881 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15882 | } | |
15883 | } | |
15884 | if (obj5) { | |
15885 | { | |
15886 | arg6 = &temp6; | |
15887 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15888 | } | |
15889 | } | |
994141e6 | 15890 | if (obj6) { |
093d3ff1 RD |
15891 | { |
15892 | arg7 = (long)(SWIG_As_long(obj6)); | |
15893 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15894 | } | |
994141e6 | 15895 | } |
d14a1e28 | 15896 | if (obj7) { |
093d3ff1 RD |
15897 | { |
15898 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15899 | if (SWIG_arg_fail(8)) SWIG_fail; | |
15900 | if (arg8 == NULL) { | |
15901 | SWIG_null_ref("wxValidator"); | |
15902 | } | |
15903 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
15904 | } |
15905 | } | |
15906 | if (obj8) { | |
15907 | { | |
15908 | arg9 = wxString_in_helper(obj8); | |
15909 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 15910 | temp9 = true; |
d14a1e28 RD |
15911 | } |
15912 | } | |
15913 | { | |
15914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15915 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
15916 | ||
15917 | wxPyEndAllowThreads(__tstate); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | } | |
4f89f6a3 RD |
15920 | { |
15921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15922 | } | |
d14a1e28 RD |
15923 | { |
15924 | if (temp4) | |
15925 | delete arg4; | |
15926 | } | |
15927 | { | |
15928 | if (temp9) | |
15929 | delete arg9; | |
15930 | } | |
15931 | return resultobj; | |
15932 | fail: | |
15933 | { | |
15934 | if (temp4) | |
15935 | delete arg4; | |
15936 | } | |
15937 | { | |
15938 | if (temp9) | |
15939 | delete arg9; | |
15940 | } | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
c32bde28 | 15945 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15946 | PyObject *resultobj; |
15947 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15948 | bool arg2 ; | |
15949 | PyObject * obj0 = 0 ; | |
15950 | PyObject * obj1 = 0 ; | |
15951 | char *kwnames[] = { | |
15952 | (char *) "self",(char *) "value", NULL | |
15953 | }; | |
15954 | ||
15955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
15956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15958 | { | |
15959 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
15960 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15961 | } | |
d14a1e28 RD |
15962 | { |
15963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15964 | (arg1)->SetValue(arg2); | |
15965 | ||
15966 | wxPyEndAllowThreads(__tstate); | |
15967 | if (PyErr_Occurred()) SWIG_fail; | |
15968 | } | |
15969 | Py_INCREF(Py_None); resultobj = Py_None; | |
15970 | return resultobj; | |
15971 | fail: | |
15972 | return NULL; | |
15973 | } | |
15974 | ||
15975 | ||
c32bde28 | 15976 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15977 | PyObject *resultobj; |
15978 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15979 | bool result; | |
15980 | PyObject * obj0 = 0 ; | |
15981 | char *kwnames[] = { | |
15982 | (char *) "self", NULL | |
15983 | }; | |
15984 | ||
15985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15986 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
15987 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15988 | { |
15989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15990 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
15991 | ||
15992 | wxPyEndAllowThreads(__tstate); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
4f89f6a3 RD |
15995 | { |
15996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15997 | } | |
d14a1e28 RD |
15998 | return resultobj; |
15999 | fail: | |
16000 | return NULL; | |
16001 | } | |
16002 | ||
16003 | ||
c32bde28 | 16004 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16005 | PyObject *resultobj; |
16006 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
16007 | wxString *arg2 = 0 ; | |
ae8162c8 | 16008 | bool temp2 = false ; |
d14a1e28 RD |
16009 | PyObject * obj0 = 0 ; |
16010 | PyObject * obj1 = 0 ; | |
16011 | char *kwnames[] = { | |
16012 | (char *) "self",(char *) "label", NULL | |
16013 | }; | |
16014 | ||
16015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16018 | { |
16019 | arg2 = wxString_in_helper(obj1); | |
16020 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16021 | temp2 = true; |
d14a1e28 RD |
16022 | } |
16023 | { | |
16024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16025 | (arg1)->SetLabel((wxString const &)*arg2); | |
16026 | ||
16027 | wxPyEndAllowThreads(__tstate); | |
16028 | if (PyErr_Occurred()) SWIG_fail; | |
16029 | } | |
16030 | Py_INCREF(Py_None); resultobj = Py_None; | |
16031 | { | |
16032 | if (temp2) | |
16033 | delete arg2; | |
16034 | } | |
16035 | return resultobj; | |
16036 | fail: | |
16037 | { | |
16038 | if (temp2) | |
16039 | delete arg2; | |
16040 | } | |
16041 | return NULL; | |
16042 | } | |
16043 | ||
16044 | ||
c32bde28 | 16045 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 16046 | PyObject *resultobj; |
093d3ff1 | 16047 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
16048 | wxVisualAttributes result; |
16049 | PyObject * obj0 = 0 ; | |
16050 | char *kwnames[] = { | |
16051 | (char *) "variant", NULL | |
16052 | }; | |
16053 | ||
16054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
16055 | if (obj0) { | |
093d3ff1 RD |
16056 | { |
16057 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16059 | } | |
22bfe96c RD |
16060 | } |
16061 | { | |
110da5b0 | 16062 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
16063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16064 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
16065 | ||
16066 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 16067 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
16068 | } |
16069 | { | |
16070 | wxVisualAttributes * resultptr; | |
093d3ff1 | 16071 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
16072 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16073 | } | |
16074 | return resultobj; | |
16075 | fail: | |
16076 | return NULL; | |
16077 | } | |
16078 | ||
16079 | ||
c32bde28 | 16080 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16081 | PyObject *obj; |
16082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16083 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
16084 | Py_INCREF(obj); | |
16085 | return Py_BuildValue((char *)""); | |
16086 | } | |
51b83b37 RD |
16087 | static int _wrap_NotebookNameStr_set(PyObject *) { |
16088 | PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only."); | |
b2dc1044 RD |
16089 | return 1; |
16090 | } | |
16091 | ||
16092 | ||
51b83b37 | 16093 | static PyObject *_wrap_NotebookNameStr_get(void) { |
b2dc1044 RD |
16094 | PyObject *pyobj; |
16095 | ||
16096 | { | |
16097 | #if wxUSE_UNICODE | |
51b83b37 | 16098 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
b2dc1044 | 16099 | #else |
51b83b37 | 16100 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
b2dc1044 RD |
16101 | #endif |
16102 | } | |
16103 | return pyobj; | |
16104 | } | |
16105 | ||
16106 | ||
8ac8dba0 | 16107 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16108 | PyObject *resultobj; |
8ac8dba0 | 16109 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16110 | size_t result; |
16111 | PyObject * obj0 = 0 ; | |
16112 | char *kwnames[] = { | |
16113 | (char *) "self", NULL | |
16114 | }; | |
16115 | ||
8ac8dba0 | 16116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16119 | { |
16120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16121 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); |
d14a1e28 RD |
16122 | |
16123 | wxPyEndAllowThreads(__tstate); | |
16124 | if (PyErr_Occurred()) SWIG_fail; | |
16125 | } | |
093d3ff1 RD |
16126 | { |
16127 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
16128 | } | |
d14a1e28 RD |
16129 | return resultobj; |
16130 | fail: | |
16131 | return NULL; | |
16132 | } | |
16133 | ||
16134 | ||
8ac8dba0 | 16135 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16136 | PyObject *resultobj; |
8ac8dba0 | 16137 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16138 | size_t arg2 ; |
16139 | wxWindow *result; | |
16140 | PyObject * obj0 = 0 ; | |
16141 | PyObject * obj1 = 0 ; | |
16142 | char *kwnames[] = { | |
16143 | (char *) "self",(char *) "n", NULL | |
16144 | }; | |
16145 | ||
8ac8dba0 | 16146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16149 | { | |
16150 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16151 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16152 | } | |
d14a1e28 RD |
16153 | { |
16154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16155 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
16156 | ||
16157 | wxPyEndAllowThreads(__tstate); | |
16158 | if (PyErr_Occurred()) SWIG_fail; | |
16159 | } | |
16160 | { | |
412d302d | 16161 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16162 | } |
16163 | return resultobj; | |
16164 | fail: | |
16165 | return NULL; | |
16166 | } | |
16167 | ||
16168 | ||
8ac8dba0 | 16169 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
8fb0e70a | 16170 | PyObject *resultobj; |
8ac8dba0 | 16171 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
8fb0e70a RD |
16172 | wxWindow *result; |
16173 | PyObject * obj0 = 0 ; | |
16174 | char *kwnames[] = { | |
16175 | (char *) "self", NULL | |
16176 | }; | |
16177 | ||
8ac8dba0 | 16178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
16181 | { |
16182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16183 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); |
8fb0e70a RD |
16184 | |
16185 | wxPyEndAllowThreads(__tstate); | |
16186 | if (PyErr_Occurred()) SWIG_fail; | |
16187 | } | |
16188 | { | |
16189 | resultobj = wxPyMake_wxObject(result, 0); | |
16190 | } | |
16191 | return resultobj; | |
16192 | fail: | |
16193 | return NULL; | |
16194 | } | |
16195 | ||
16196 | ||
8ac8dba0 | 16197 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16198 | PyObject *resultobj; |
8ac8dba0 | 16199 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16200 | int result; |
16201 | PyObject * obj0 = 0 ; | |
16202 | char *kwnames[] = { | |
16203 | (char *) "self", NULL | |
16204 | }; | |
16205 | ||
8ac8dba0 | 16206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16209 | { |
16210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16211 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); |
d14a1e28 RD |
16212 | |
16213 | wxPyEndAllowThreads(__tstate); | |
16214 | if (PyErr_Occurred()) SWIG_fail; | |
16215 | } | |
093d3ff1 RD |
16216 | { |
16217 | resultobj = SWIG_From_int((int)(result)); | |
16218 | } | |
d14a1e28 RD |
16219 | return resultobj; |
16220 | fail: | |
16221 | return NULL; | |
16222 | } | |
16223 | ||
16224 | ||
8ac8dba0 | 16225 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16226 | PyObject *resultobj; |
8ac8dba0 | 16227 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16228 | size_t arg2 ; |
16229 | wxString *arg3 = 0 ; | |
16230 | bool result; | |
ae8162c8 | 16231 | bool temp3 = false ; |
d14a1e28 RD |
16232 | PyObject * obj0 = 0 ; |
16233 | PyObject * obj1 = 0 ; | |
16234 | PyObject * obj2 = 0 ; | |
16235 | char *kwnames[] = { | |
16236 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
16237 | }; | |
16238 | ||
8ac8dba0 | 16239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16242 | { | |
16243 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16244 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16245 | } | |
d14a1e28 RD |
16246 | { |
16247 | arg3 = wxString_in_helper(obj2); | |
16248 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16249 | temp3 = true; |
d14a1e28 RD |
16250 | } |
16251 | { | |
16252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16253 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
16254 | ||
16255 | wxPyEndAllowThreads(__tstate); | |
16256 | if (PyErr_Occurred()) SWIG_fail; | |
16257 | } | |
4f89f6a3 RD |
16258 | { |
16259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16260 | } | |
d14a1e28 RD |
16261 | { |
16262 | if (temp3) | |
16263 | delete arg3; | |
16264 | } | |
16265 | return resultobj; | |
16266 | fail: | |
16267 | { | |
16268 | if (temp3) | |
16269 | delete arg3; | |
16270 | } | |
16271 | return NULL; | |
16272 | } | |
16273 | ||
16274 | ||
8ac8dba0 | 16275 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16276 | PyObject *resultobj; |
8ac8dba0 | 16277 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16278 | size_t arg2 ; |
16279 | wxString result; | |
16280 | PyObject * obj0 = 0 ; | |
16281 | PyObject * obj1 = 0 ; | |
16282 | char *kwnames[] = { | |
16283 | (char *) "self",(char *) "n", NULL | |
16284 | }; | |
16285 | ||
8ac8dba0 | 16286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16289 | { | |
16290 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16291 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16292 | } | |
d14a1e28 RD |
16293 | { |
16294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16295 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); |
d14a1e28 RD |
16296 | |
16297 | wxPyEndAllowThreads(__tstate); | |
16298 | if (PyErr_Occurred()) SWIG_fail; | |
16299 | } | |
16300 | { | |
16301 | #if wxUSE_UNICODE | |
16302 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16303 | #else | |
16304 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16305 | #endif | |
16306 | } | |
16307 | return resultobj; | |
16308 | fail: | |
16309 | return NULL; | |
16310 | } | |
16311 | ||
16312 | ||
8ac8dba0 | 16313 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16314 | PyObject *resultobj; |
8ac8dba0 | 16315 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16316 | wxImageList *arg2 = (wxImageList *) 0 ; |
16317 | PyObject * obj0 = 0 ; | |
16318 | PyObject * obj1 = 0 ; | |
16319 | char *kwnames[] = { | |
16320 | (char *) "self",(char *) "imageList", NULL | |
16321 | }; | |
16322 | ||
8ac8dba0 | 16323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16326 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
16327 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16328 | { |
16329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16330 | (arg1)->SetImageList(arg2); | |
16331 | ||
16332 | wxPyEndAllowThreads(__tstate); | |
16333 | if (PyErr_Occurred()) SWIG_fail; | |
16334 | } | |
16335 | Py_INCREF(Py_None); resultobj = Py_None; | |
16336 | return resultobj; | |
16337 | fail: | |
16338 | return NULL; | |
16339 | } | |
16340 | ||
16341 | ||
8ac8dba0 | 16342 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16343 | PyObject *resultobj; |
8ac8dba0 | 16344 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16345 | wxImageList *arg2 = (wxImageList *) 0 ; |
16346 | PyObject * obj0 = 0 ; | |
16347 | PyObject * obj1 = 0 ; | |
16348 | char *kwnames[] = { | |
16349 | (char *) "self",(char *) "imageList", NULL | |
16350 | }; | |
16351 | ||
8ac8dba0 | 16352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16355 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
16356 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16357 | { |
16358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16359 | (arg1)->AssignImageList(arg2); | |
16360 | ||
16361 | wxPyEndAllowThreads(__tstate); | |
16362 | if (PyErr_Occurred()) SWIG_fail; | |
16363 | } | |
16364 | Py_INCREF(Py_None); resultobj = Py_None; | |
16365 | return resultobj; | |
16366 | fail: | |
16367 | return NULL; | |
16368 | } | |
16369 | ||
16370 | ||
8ac8dba0 | 16371 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16372 | PyObject *resultobj; |
8ac8dba0 | 16373 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16374 | wxImageList *result; |
16375 | PyObject * obj0 = 0 ; | |
16376 | char *kwnames[] = { | |
16377 | (char *) "self", NULL | |
16378 | }; | |
16379 | ||
8ac8dba0 | 16380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16383 | { |
16384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16385 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); |
d14a1e28 RD |
16386 | |
16387 | wxPyEndAllowThreads(__tstate); | |
16388 | if (PyErr_Occurred()) SWIG_fail; | |
16389 | } | |
16390 | { | |
412d302d | 16391 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16392 | } |
16393 | return resultobj; | |
16394 | fail: | |
16395 | return NULL; | |
16396 | } | |
16397 | ||
16398 | ||
8ac8dba0 | 16399 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16400 | PyObject *resultobj; |
8ac8dba0 | 16401 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16402 | size_t arg2 ; |
16403 | int result; | |
16404 | PyObject * obj0 = 0 ; | |
16405 | PyObject * obj1 = 0 ; | |
16406 | char *kwnames[] = { | |
16407 | (char *) "self",(char *) "n", NULL | |
16408 | }; | |
16409 | ||
8ac8dba0 | 16410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16411 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16413 | { | |
16414 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16415 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16416 | } | |
d14a1e28 RD |
16417 | { |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16419 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); |
d14a1e28 RD |
16420 | |
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
093d3ff1 RD |
16424 | { |
16425 | resultobj = SWIG_From_int((int)(result)); | |
16426 | } | |
d14a1e28 RD |
16427 | return resultobj; |
16428 | fail: | |
16429 | return NULL; | |
16430 | } | |
16431 | ||
16432 | ||
8ac8dba0 | 16433 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16434 | PyObject *resultobj; |
8ac8dba0 | 16435 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16436 | size_t arg2 ; |
16437 | int arg3 ; | |
16438 | bool result; | |
16439 | PyObject * obj0 = 0 ; | |
16440 | PyObject * obj1 = 0 ; | |
994141e6 | 16441 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16442 | char *kwnames[] = { |
16443 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
16444 | }; | |
16445 | ||
8ac8dba0 | 16446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16449 | { | |
16450 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16451 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16452 | } | |
16453 | { | |
16454 | arg3 = (int)(SWIG_As_int(obj2)); | |
16455 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16456 | } | |
d14a1e28 RD |
16457 | { |
16458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16459 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
16460 | ||
16461 | wxPyEndAllowThreads(__tstate); | |
16462 | if (PyErr_Occurred()) SWIG_fail; | |
16463 | } | |
4f89f6a3 RD |
16464 | { |
16465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16466 | } | |
d14a1e28 RD |
16467 | return resultobj; |
16468 | fail: | |
16469 | return NULL; | |
16470 | } | |
16471 | ||
16472 | ||
8ac8dba0 | 16473 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16474 | PyObject *resultobj; |
8ac8dba0 | 16475 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16476 | wxSize *arg2 = 0 ; |
16477 | wxSize temp2 ; | |
16478 | PyObject * obj0 = 0 ; | |
16479 | PyObject * obj1 = 0 ; | |
16480 | char *kwnames[] = { | |
16481 | (char *) "self",(char *) "size", NULL | |
16482 | }; | |
16483 | ||
8ac8dba0 | 16484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16487 | { |
16488 | arg2 = &temp2; | |
16489 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16490 | } | |
16491 | { | |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | Py_INCREF(Py_None); resultobj = Py_None; | |
16499 | return resultobj; | |
16500 | fail: | |
16501 | return NULL; | |
16502 | } | |
16503 | ||
16504 | ||
8ac8dba0 | 16505 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16506 | PyObject *resultobj; |
8ac8dba0 | 16507 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16508 | wxSize *arg2 = 0 ; |
16509 | wxSize result; | |
16510 | wxSize temp2 ; | |
16511 | PyObject * obj0 = 0 ; | |
16512 | PyObject * obj1 = 0 ; | |
16513 | char *kwnames[] = { | |
16514 | (char *) "self",(char *) "sizePage", NULL | |
16515 | }; | |
16516 | ||
8ac8dba0 | 16517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16520 | { |
16521 | arg2 = &temp2; | |
16522 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16523 | } | |
16524 | { | |
16525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16526 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); |
d14a1e28 RD |
16527 | |
16528 | wxPyEndAllowThreads(__tstate); | |
16529 | if (PyErr_Occurred()) SWIG_fail; | |
16530 | } | |
16531 | { | |
16532 | wxSize * resultptr; | |
093d3ff1 | 16533 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 16534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16535 | } |
16536 | return resultobj; | |
16537 | fail: | |
16538 | return NULL; | |
16539 | } | |
16540 | ||
16541 | ||
8ac8dba0 | 16542 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16543 | PyObject *resultobj; |
8ac8dba0 | 16544 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16545 | size_t arg2 ; |
16546 | bool result; | |
16547 | PyObject * obj0 = 0 ; | |
16548 | PyObject * obj1 = 0 ; | |
16549 | char *kwnames[] = { | |
16550 | (char *) "self",(char *) "n", NULL | |
16551 | }; | |
16552 | ||
8ac8dba0 | 16553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16556 | { | |
16557 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16558 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16559 | } | |
d14a1e28 RD |
16560 | { |
16561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16562 | result = (bool)(arg1)->DeletePage(arg2); | |
16563 | ||
16564 | wxPyEndAllowThreads(__tstate); | |
16565 | if (PyErr_Occurred()) SWIG_fail; | |
16566 | } | |
4f89f6a3 RD |
16567 | { |
16568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16569 | } | |
d14a1e28 RD |
16570 | return resultobj; |
16571 | fail: | |
16572 | return NULL; | |
16573 | } | |
16574 | ||
16575 | ||
8ac8dba0 | 16576 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16577 | PyObject *resultobj; |
8ac8dba0 | 16578 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16579 | size_t arg2 ; |
16580 | bool result; | |
16581 | PyObject * obj0 = 0 ; | |
16582 | PyObject * obj1 = 0 ; | |
16583 | char *kwnames[] = { | |
16584 | (char *) "self",(char *) "n", NULL | |
16585 | }; | |
16586 | ||
8ac8dba0 | 16587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16590 | { | |
16591 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16592 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16593 | } | |
d14a1e28 RD |
16594 | { |
16595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16596 | result = (bool)(arg1)->RemovePage(arg2); | |
16597 | ||
16598 | wxPyEndAllowThreads(__tstate); | |
16599 | if (PyErr_Occurred()) SWIG_fail; | |
16600 | } | |
4f89f6a3 RD |
16601 | { |
16602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16603 | } | |
d14a1e28 RD |
16604 | return resultobj; |
16605 | fail: | |
16606 | return NULL; | |
16607 | } | |
16608 | ||
16609 | ||
8ac8dba0 | 16610 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16611 | PyObject *resultobj; |
8ac8dba0 | 16612 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16613 | bool result; |
16614 | PyObject * obj0 = 0 ; | |
16615 | char *kwnames[] = { | |
16616 | (char *) "self", NULL | |
16617 | }; | |
16618 | ||
8ac8dba0 | 16619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16622 | { |
16623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16624 | result = (bool)(arg1)->DeleteAllPages(); | |
16625 | ||
16626 | wxPyEndAllowThreads(__tstate); | |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
4f89f6a3 RD |
16629 | { |
16630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16631 | } | |
d14a1e28 RD |
16632 | return resultobj; |
16633 | fail: | |
16634 | return NULL; | |
16635 | } | |
16636 | ||
16637 | ||
8ac8dba0 | 16638 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16639 | PyObject *resultobj; |
8ac8dba0 | 16640 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16641 | wxWindow *arg2 = (wxWindow *) 0 ; |
16642 | wxString *arg3 = 0 ; | |
ae8162c8 | 16643 | bool arg4 = (bool) false ; |
d14a1e28 RD |
16644 | int arg5 = (int) -1 ; |
16645 | bool result; | |
ae8162c8 | 16646 | bool temp3 = false ; |
d14a1e28 RD |
16647 | PyObject * obj0 = 0 ; |
16648 | PyObject * obj1 = 0 ; | |
16649 | PyObject * obj2 = 0 ; | |
16650 | PyObject * obj3 = 0 ; | |
994141e6 | 16651 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
16652 | char *kwnames[] = { |
16653 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16654 | }; | |
16655 | ||
8ac8dba0 | 16656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
16657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16659 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16660 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16661 | { |
16662 | arg3 = wxString_in_helper(obj2); | |
16663 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16664 | temp3 = true; |
d14a1e28 RD |
16665 | } |
16666 | if (obj3) { | |
093d3ff1 RD |
16667 | { |
16668 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
16669 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16670 | } | |
994141e6 RD |
16671 | } |
16672 | if (obj4) { | |
093d3ff1 RD |
16673 | { |
16674 | arg5 = (int)(SWIG_As_int(obj4)); | |
16675 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16676 | } | |
d14a1e28 RD |
16677 | } |
16678 | { | |
16679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16680 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
16681 | ||
16682 | wxPyEndAllowThreads(__tstate); | |
16683 | if (PyErr_Occurred()) SWIG_fail; | |
16684 | } | |
4f89f6a3 RD |
16685 | { |
16686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16687 | } | |
d14a1e28 RD |
16688 | { |
16689 | if (temp3) | |
16690 | delete arg3; | |
16691 | } | |
16692 | return resultobj; | |
16693 | fail: | |
16694 | { | |
16695 | if (temp3) | |
16696 | delete arg3; | |
16697 | } | |
16698 | return NULL; | |
16699 | } | |
16700 | ||
16701 | ||
8ac8dba0 | 16702 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16703 | PyObject *resultobj; |
8ac8dba0 | 16704 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16705 | size_t arg2 ; |
16706 | wxWindow *arg3 = (wxWindow *) 0 ; | |
16707 | wxString *arg4 = 0 ; | |
ae8162c8 | 16708 | bool arg5 = (bool) false ; |
d14a1e28 RD |
16709 | int arg6 = (int) -1 ; |
16710 | bool result; | |
ae8162c8 | 16711 | bool temp4 = false ; |
d14a1e28 RD |
16712 | PyObject * obj0 = 0 ; |
16713 | PyObject * obj1 = 0 ; | |
16714 | PyObject * obj2 = 0 ; | |
16715 | PyObject * obj3 = 0 ; | |
16716 | PyObject * obj4 = 0 ; | |
994141e6 | 16717 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16718 | char *kwnames[] = { |
16719 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16720 | }; | |
16721 | ||
8ac8dba0 | 16722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
16723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16725 | { | |
16726 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16728 | } | |
16729 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16730 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
16731 | { |
16732 | arg4 = wxString_in_helper(obj3); | |
16733 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16734 | temp4 = true; |
d14a1e28 RD |
16735 | } |
16736 | if (obj4) { | |
093d3ff1 RD |
16737 | { |
16738 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
16739 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16740 | } | |
994141e6 RD |
16741 | } |
16742 | if (obj5) { | |
093d3ff1 RD |
16743 | { |
16744 | arg6 = (int)(SWIG_As_int(obj5)); | |
16745 | if (SWIG_arg_fail(6)) SWIG_fail; | |
16746 | } | |
d14a1e28 RD |
16747 | } |
16748 | { | |
16749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16750 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
16751 | ||
16752 | wxPyEndAllowThreads(__tstate); | |
16753 | if (PyErr_Occurred()) SWIG_fail; | |
16754 | } | |
4f89f6a3 RD |
16755 | { |
16756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16757 | } | |
d14a1e28 RD |
16758 | { |
16759 | if (temp4) | |
16760 | delete arg4; | |
16761 | } | |
16762 | return resultobj; | |
16763 | fail: | |
16764 | { | |
16765 | if (temp4) | |
16766 | delete arg4; | |
16767 | } | |
16768 | return NULL; | |
16769 | } | |
16770 | ||
16771 | ||
8ac8dba0 | 16772 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16773 | PyObject *resultobj; |
8ac8dba0 | 16774 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16775 | size_t arg2 ; |
16776 | int result; | |
16777 | PyObject * obj0 = 0 ; | |
16778 | PyObject * obj1 = 0 ; | |
16779 | char *kwnames[] = { | |
16780 | (char *) "self",(char *) "n", NULL | |
16781 | }; | |
16782 | ||
8ac8dba0 | 16783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16786 | { | |
16787 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16789 | } | |
d14a1e28 RD |
16790 | { |
16791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16792 | result = (int)(arg1)->SetSelection(arg2); | |
16793 | ||
16794 | wxPyEndAllowThreads(__tstate); | |
16795 | if (PyErr_Occurred()) SWIG_fail; | |
16796 | } | |
093d3ff1 RD |
16797 | { |
16798 | resultobj = SWIG_From_int((int)(result)); | |
16799 | } | |
d14a1e28 RD |
16800 | return resultobj; |
16801 | fail: | |
16802 | return NULL; | |
16803 | } | |
16804 | ||
16805 | ||
8ac8dba0 | 16806 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16807 | PyObject *resultobj; |
8ac8dba0 | 16808 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
ae8162c8 | 16809 | bool arg2 = (bool) true ; |
d14a1e28 RD |
16810 | PyObject * obj0 = 0 ; |
16811 | PyObject * obj1 = 0 ; | |
16812 | char *kwnames[] = { | |
16813 | (char *) "self",(char *) "forward", NULL | |
16814 | }; | |
16815 | ||
8ac8dba0 | 16816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 16819 | if (obj1) { |
093d3ff1 RD |
16820 | { |
16821 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16822 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16823 | } | |
d14a1e28 RD |
16824 | } |
16825 | { | |
16826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16827 | (arg1)->AdvanceSelection(arg2); | |
16828 | ||
16829 | wxPyEndAllowThreads(__tstate); | |
16830 | if (PyErr_Occurred()) SWIG_fail; | |
16831 | } | |
16832 | Py_INCREF(Py_None); resultobj = Py_None; | |
16833 | return resultobj; | |
16834 | fail: | |
16835 | return NULL; | |
16836 | } | |
16837 | ||
16838 | ||
8ac8dba0 | 16839 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 16840 | PyObject *resultobj; |
093d3ff1 | 16841 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
16842 | wxVisualAttributes result; |
16843 | PyObject * obj0 = 0 ; | |
16844 | char *kwnames[] = { | |
16845 | (char *) "variant", NULL | |
16846 | }; | |
16847 | ||
8ac8dba0 | 16848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
22bfe96c | 16849 | if (obj0) { |
093d3ff1 RD |
16850 | { |
16851 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16852 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16853 | } | |
22bfe96c RD |
16854 | } |
16855 | { | |
110da5b0 | 16856 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 16857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8ac8dba0 | 16858 | result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1); |
22bfe96c RD |
16859 | |
16860 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 16861 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
16862 | } |
16863 | { | |
16864 | wxVisualAttributes * resultptr; | |
093d3ff1 | 16865 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
16866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16867 | } | |
16868 | return resultobj; | |
16869 | fail: | |
16870 | return NULL; | |
16871 | } | |
16872 | ||
16873 | ||
8ac8dba0 | 16874 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16875 | PyObject *obj; |
16876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 16877 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); |
d14a1e28 RD |
16878 | Py_INCREF(obj); |
16879 | return Py_BuildValue((char *)""); | |
16880 | } | |
8ac8dba0 | 16881 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
16882 | PyObject *resultobj; |
16883 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16884 | int arg2 = (int) 0 ; | |
16885 | int arg3 = (int) -1 ; | |
16886 | int arg4 = (int) -1 ; | |
8ac8dba0 | 16887 | wxBookCtrlBaseEvent *result; |
994141e6 RD |
16888 | PyObject * obj0 = 0 ; |
16889 | PyObject * obj1 = 0 ; | |
16890 | PyObject * obj2 = 0 ; | |
16891 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
16892 | char *kwnames[] = { |
16893 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16894 | }; | |
16895 | ||
8ac8dba0 | 16896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
994141e6 | 16897 | if (obj0) { |
093d3ff1 RD |
16898 | { |
16899 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16901 | } | |
994141e6 RD |
16902 | } |
16903 | if (obj1) { | |
093d3ff1 RD |
16904 | { |
16905 | arg2 = (int)(SWIG_As_int(obj1)); | |
16906 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16907 | } | |
994141e6 RD |
16908 | } |
16909 | if (obj2) { | |
093d3ff1 RD |
16910 | { |
16911 | arg3 = (int)(SWIG_As_int(obj2)); | |
16912 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16913 | } | |
994141e6 RD |
16914 | } |
16915 | if (obj3) { | |
093d3ff1 RD |
16916 | { |
16917 | arg4 = (int)(SWIG_As_int(obj3)); | |
16918 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16919 | } | |
994141e6 | 16920 | } |
d14a1e28 RD |
16921 | { |
16922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16923 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
16924 | |
16925 | wxPyEndAllowThreads(__tstate); | |
16926 | if (PyErr_Occurred()) SWIG_fail; | |
16927 | } | |
8ac8dba0 | 16928 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); |
d14a1e28 RD |
16929 | return resultobj; |
16930 | fail: | |
16931 | return NULL; | |
16932 | } | |
16933 | ||
16934 | ||
8ac8dba0 | 16935 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16936 | PyObject *resultobj; |
8ac8dba0 | 16937 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
16938 | int result; |
16939 | PyObject * obj0 = 0 ; | |
16940 | char *kwnames[] = { | |
16941 | (char *) "self", NULL | |
16942 | }; | |
16943 | ||
8ac8dba0 | 16944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
16946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16947 | { |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16949 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); |
d14a1e28 RD |
16950 | |
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
093d3ff1 RD |
16954 | { |
16955 | resultobj = SWIG_From_int((int)(result)); | |
16956 | } | |
d14a1e28 RD |
16957 | return resultobj; |
16958 | fail: | |
16959 | return NULL; | |
16960 | } | |
16961 | ||
16962 | ||
8ac8dba0 | 16963 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16964 | PyObject *resultobj; |
8ac8dba0 | 16965 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
16966 | int arg2 ; |
16967 | PyObject * obj0 = 0 ; | |
994141e6 | 16968 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16969 | char *kwnames[] = { |
16970 | (char *) "self",(char *) "nSel", NULL | |
16971 | }; | |
16972 | ||
8ac8dba0 | 16973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16974 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
16975 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16976 | { | |
16977 | arg2 = (int)(SWIG_As_int(obj1)); | |
16978 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16979 | } | |
d14a1e28 RD |
16980 | { |
16981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16982 | (arg1)->SetSelection(arg2); | |
16983 | ||
16984 | wxPyEndAllowThreads(__tstate); | |
16985 | if (PyErr_Occurred()) SWIG_fail; | |
16986 | } | |
16987 | Py_INCREF(Py_None); resultobj = Py_None; | |
16988 | return resultobj; | |
16989 | fail: | |
16990 | return NULL; | |
16991 | } | |
16992 | ||
16993 | ||
8ac8dba0 | 16994 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 16995 | PyObject *resultobj; |
8ac8dba0 | 16996 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
16997 | int result; |
16998 | PyObject * obj0 = 0 ; | |
16999 | char *kwnames[] = { | |
17000 | (char *) "self", NULL | |
17001 | }; | |
17002 | ||
8ac8dba0 | 17003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17006 | { |
17007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17008 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); |
d14a1e28 RD |
17009 | |
17010 | wxPyEndAllowThreads(__tstate); | |
17011 | if (PyErr_Occurred()) SWIG_fail; | |
17012 | } | |
093d3ff1 RD |
17013 | { |
17014 | resultobj = SWIG_From_int((int)(result)); | |
17015 | } | |
d14a1e28 RD |
17016 | return resultobj; |
17017 | fail: | |
17018 | return NULL; | |
17019 | } | |
17020 | ||
17021 | ||
8ac8dba0 | 17022 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17023 | PyObject *resultobj; |
8ac8dba0 | 17024 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17025 | int arg2 ; |
17026 | PyObject * obj0 = 0 ; | |
994141e6 | 17027 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17028 | char *kwnames[] = { |
17029 | (char *) "self",(char *) "nOldSel", NULL | |
17030 | }; | |
17031 | ||
8ac8dba0 | 17032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17035 | { | |
17036 | arg2 = (int)(SWIG_As_int(obj1)); | |
17037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17038 | } | |
d14a1e28 RD |
17039 | { |
17040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17041 | (arg1)->SetOldSelection(arg2); | |
17042 | ||
17043 | wxPyEndAllowThreads(__tstate); | |
17044 | if (PyErr_Occurred()) SWIG_fail; | |
17045 | } | |
17046 | Py_INCREF(Py_None); resultobj = Py_None; | |
17047 | return resultobj; | |
17048 | fail: | |
17049 | return NULL; | |
17050 | } | |
17051 | ||
17052 | ||
8ac8dba0 | 17053 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17054 | PyObject *obj; |
17055 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 17056 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); |
d14a1e28 RD |
17057 | Py_INCREF(obj); |
17058 | return Py_BuildValue((char *)""); | |
17059 | } | |
c32bde28 | 17060 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17061 | PyObject *resultobj; |
17062 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 17063 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17064 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17065 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17066 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17067 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17068 | long arg5 = (long) 0 ; | |
51b83b37 | 17069 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; |
d14a1e28 RD |
17070 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
17071 | wxNotebook *result; | |
17072 | wxPoint temp3 ; | |
17073 | wxSize temp4 ; | |
ae8162c8 | 17074 | bool temp6 = false ; |
d14a1e28 | 17075 | PyObject * obj0 = 0 ; |
994141e6 | 17076 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17077 | PyObject * obj2 = 0 ; |
17078 | PyObject * obj3 = 0 ; | |
994141e6 | 17079 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17080 | PyObject * obj5 = 0 ; |
17081 | char *kwnames[] = { | |
17082 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17083 | }; | |
17084 | ||
4f89f6a3 | 17085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 | 17088 | if (obj1) { |
093d3ff1 RD |
17089 | { |
17090 | arg2 = (int)(SWIG_As_int(obj1)); | |
17091 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17092 | } | |
4f89f6a3 | 17093 | } |
d14a1e28 RD |
17094 | if (obj2) { |
17095 | { | |
17096 | arg3 = &temp3; | |
17097 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17098 | } | |
17099 | } | |
17100 | if (obj3) { | |
17101 | { | |
17102 | arg4 = &temp4; | |
17103 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17104 | } | |
17105 | } | |
994141e6 | 17106 | if (obj4) { |
093d3ff1 RD |
17107 | { |
17108 | arg5 = (long)(SWIG_As_long(obj4)); | |
17109 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17110 | } | |
994141e6 | 17111 | } |
d14a1e28 RD |
17112 | if (obj5) { |
17113 | { | |
17114 | arg6 = wxString_in_helper(obj5); | |
17115 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17116 | temp6 = true; |
d14a1e28 RD |
17117 | } |
17118 | } | |
17119 | { | |
e3b71cb8 | 17120 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17122 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17123 | ||
17124 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17125 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17126 | } |
b0f7404b | 17127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
17128 | { |
17129 | if (temp6) | |
17130 | delete arg6; | |
17131 | } | |
17132 | return resultobj; | |
17133 | fail: | |
17134 | { | |
17135 | if (temp6) | |
17136 | delete arg6; | |
17137 | } | |
17138 | return NULL; | |
17139 | } | |
17140 | ||
17141 | ||
c32bde28 | 17142 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17143 | PyObject *resultobj; |
17144 | wxNotebook *result; | |
17145 | char *kwnames[] = { | |
17146 | NULL | |
17147 | }; | |
17148 | ||
17149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
17150 | { | |
e3b71cb8 | 17151 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17153 | result = (wxNotebook *)new wxNotebook(); | |
17154 | ||
17155 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17156 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17157 | } |
b0f7404b | 17158 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
17159 | return resultobj; |
17160 | fail: | |
17161 | return NULL; | |
17162 | } | |
17163 | ||
17164 | ||
c32bde28 | 17165 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17166 | PyObject *resultobj; |
17167 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17168 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17169 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17170 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17171 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17172 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17173 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17174 | long arg6 = (long) 0 ; | |
51b83b37 | 17175 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; |
d14a1e28 RD |
17176 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
17177 | bool result; | |
17178 | wxPoint temp4 ; | |
17179 | wxSize temp5 ; | |
ae8162c8 | 17180 | bool temp7 = false ; |
d14a1e28 RD |
17181 | PyObject * obj0 = 0 ; |
17182 | PyObject * obj1 = 0 ; | |
994141e6 | 17183 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17184 | PyObject * obj3 = 0 ; |
17185 | PyObject * obj4 = 0 ; | |
994141e6 | 17186 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17187 | PyObject * obj6 = 0 ; |
17188 | char *kwnames[] = { | |
17189 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17190 | }; | |
17191 | ||
248ed943 | 17192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17195 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17196 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17197 | if (obj2) { |
093d3ff1 RD |
17198 | { |
17199 | arg3 = (int)(SWIG_As_int(obj2)); | |
17200 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17201 | } | |
248ed943 | 17202 | } |
d14a1e28 RD |
17203 | if (obj3) { |
17204 | { | |
17205 | arg4 = &temp4; | |
17206 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17207 | } | |
17208 | } | |
17209 | if (obj4) { | |
17210 | { | |
17211 | arg5 = &temp5; | |
17212 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17213 | } | |
17214 | } | |
994141e6 | 17215 | if (obj5) { |
093d3ff1 RD |
17216 | { |
17217 | arg6 = (long)(SWIG_As_long(obj5)); | |
17218 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17219 | } | |
994141e6 | 17220 | } |
d14a1e28 RD |
17221 | if (obj6) { |
17222 | { | |
17223 | arg7 = wxString_in_helper(obj6); | |
17224 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17225 | temp7 = true; |
d14a1e28 RD |
17226 | } |
17227 | } | |
17228 | { | |
17229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17230 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17231 | ||
17232 | wxPyEndAllowThreads(__tstate); | |
17233 | if (PyErr_Occurred()) SWIG_fail; | |
17234 | } | |
4f89f6a3 RD |
17235 | { |
17236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17237 | } | |
d14a1e28 RD |
17238 | { |
17239 | if (temp7) | |
17240 | delete arg7; | |
17241 | } | |
17242 | return resultobj; | |
17243 | fail: | |
17244 | { | |
17245 | if (temp7) | |
17246 | delete arg7; | |
17247 | } | |
17248 | return NULL; | |
17249 | } | |
17250 | ||
17251 | ||
c32bde28 | 17252 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17253 | PyObject *resultobj; |
17254 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17255 | int result; | |
17256 | PyObject * obj0 = 0 ; | |
17257 | char *kwnames[] = { | |
17258 | (char *) "self", NULL | |
17259 | }; | |
17260 | ||
17261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17264 | { |
17265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17266 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
17267 | ||
17268 | wxPyEndAllowThreads(__tstate); | |
17269 | if (PyErr_Occurred()) SWIG_fail; | |
17270 | } | |
093d3ff1 RD |
17271 | { |
17272 | resultobj = SWIG_From_int((int)(result)); | |
17273 | } | |
d14a1e28 RD |
17274 | return resultobj; |
17275 | fail: | |
17276 | return NULL; | |
17277 | } | |
17278 | ||
17279 | ||
c32bde28 | 17280 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17281 | PyObject *resultobj; |
17282 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17283 | wxSize *arg2 = 0 ; | |
17284 | wxSize temp2 ; | |
17285 | PyObject * obj0 = 0 ; | |
17286 | PyObject * obj1 = 0 ; | |
17287 | char *kwnames[] = { | |
17288 | (char *) "self",(char *) "padding", NULL | |
17289 | }; | |
17290 | ||
17291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17294 | { |
17295 | arg2 = &temp2; | |
17296 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17297 | } | |
17298 | { | |
17299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17300 | (arg1)->SetPadding((wxSize const &)*arg2); | |
17301 | ||
17302 | wxPyEndAllowThreads(__tstate); | |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
17304 | } | |
17305 | Py_INCREF(Py_None); resultobj = Py_None; | |
17306 | return resultobj; | |
17307 | fail: | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
c32bde28 | 17312 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17313 | PyObject *resultobj; |
17314 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17315 | wxSize *arg2 = 0 ; | |
17316 | wxSize temp2 ; | |
17317 | PyObject * obj0 = 0 ; | |
17318 | PyObject * obj1 = 0 ; | |
17319 | char *kwnames[] = { | |
17320 | (char *) "self",(char *) "sz", NULL | |
17321 | }; | |
17322 | ||
17323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17326 | { |
17327 | arg2 = &temp2; | |
17328 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17329 | } | |
17330 | { | |
17331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17332 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
17333 | ||
17334 | wxPyEndAllowThreads(__tstate); | |
17335 | if (PyErr_Occurred()) SWIG_fail; | |
17336 | } | |
17337 | Py_INCREF(Py_None); resultobj = Py_None; | |
17338 | return resultobj; | |
17339 | fail: | |
17340 | return NULL; | |
17341 | } | |
17342 | ||
17343 | ||
c32bde28 | 17344 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17345 | PyObject *resultobj; |
17346 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17347 | wxPoint *arg2 = 0 ; | |
17348 | long *arg3 = (long *) 0 ; | |
17349 | int result; | |
17350 | wxPoint temp2 ; | |
17351 | long temp3 ; | |
c32bde28 | 17352 | int res3 = 0 ; |
d14a1e28 RD |
17353 | PyObject * obj0 = 0 ; |
17354 | PyObject * obj1 = 0 ; | |
17355 | char *kwnames[] = { | |
17356 | (char *) "self",(char *) "pt", NULL | |
17357 | }; | |
17358 | ||
c32bde28 | 17359 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 17360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17363 | { |
17364 | arg2 = &temp2; | |
17365 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17366 | } | |
17367 | { | |
17368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17369 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
17370 | ||
17371 | wxPyEndAllowThreads(__tstate); | |
17372 | if (PyErr_Occurred()) SWIG_fail; | |
17373 | } | |
093d3ff1 RD |
17374 | { |
17375 | resultobj = SWIG_From_int((int)(result)); | |
17376 | } | |
c32bde28 RD |
17377 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
17378 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
17379 | return resultobj; |
17380 | fail: | |
17381 | return NULL; | |
17382 | } | |
17383 | ||
17384 | ||
c32bde28 | 17385 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17386 | PyObject *resultobj; |
17387 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17388 | wxSize *arg2 = 0 ; | |
17389 | wxSize result; | |
17390 | wxSize temp2 ; | |
17391 | PyObject * obj0 = 0 ; | |
17392 | PyObject * obj1 = 0 ; | |
17393 | char *kwnames[] = { | |
17394 | (char *) "self",(char *) "sizePage", NULL | |
17395 | }; | |
17396 | ||
17397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17400 | { |
17401 | arg2 = &temp2; | |
17402 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17403 | } | |
17404 | { | |
17405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17406 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
17407 | ||
17408 | wxPyEndAllowThreads(__tstate); | |
17409 | if (PyErr_Occurred()) SWIG_fail; | |
17410 | } | |
17411 | { | |
17412 | wxSize * resultptr; | |
093d3ff1 | 17413 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 17414 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17415 | } |
17416 | return resultobj; | |
17417 | fail: | |
17418 | return NULL; | |
17419 | } | |
17420 | ||
17421 | ||
8e738329 RD |
17422 | static PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
17423 | PyObject *resultobj; | |
17424 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17425 | wxColour result; | |
17426 | PyObject * obj0 = 0 ; | |
17427 | char *kwnames[] = { | |
17428 | (char *) "self", NULL | |
17429 | }; | |
17430 | ||
17431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetThemeBackgroundColour",kwnames,&obj0)) goto fail; | |
17432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17434 | { | |
17435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17436 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
17437 | ||
17438 | wxPyEndAllowThreads(__tstate); | |
17439 | if (PyErr_Occurred()) SWIG_fail; | |
17440 | } | |
17441 | { | |
17442 | wxColour * resultptr; | |
17443 | resultptr = new wxColour((wxColour &)(result)); | |
17444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17445 | } | |
17446 | return resultobj; | |
17447 | fail: | |
17448 | return NULL; | |
17449 | } | |
17450 | ||
17451 | ||
c32bde28 | 17452 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 17453 | PyObject *resultobj; |
093d3ff1 | 17454 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
17455 | wxVisualAttributes result; |
17456 | PyObject * obj0 = 0 ; | |
17457 | char *kwnames[] = { | |
17458 | (char *) "variant", NULL | |
17459 | }; | |
17460 | ||
17461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
17462 | if (obj0) { | |
093d3ff1 RD |
17463 | { |
17464 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
17465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17466 | } | |
22bfe96c RD |
17467 | } |
17468 | { | |
110da5b0 | 17469 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
17470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17471 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 17474 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
17475 | } |
17476 | { | |
17477 | wxVisualAttributes * resultptr; | |
093d3ff1 | 17478 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
17479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
17480 | } | |
17481 | return resultobj; | |
17482 | fail: | |
17483 | return NULL; | |
17484 | } | |
17485 | ||
17486 | ||
c32bde28 | 17487 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17488 | PyObject *obj; |
17489 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17490 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
17491 | Py_INCREF(obj); | |
17492 | return Py_BuildValue((char *)""); | |
17493 | } | |
c32bde28 | 17494 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17495 | PyObject *resultobj; |
17496 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17497 | int arg2 = (int) 0 ; | |
17498 | int arg3 = (int) -1 ; | |
17499 | int arg4 = (int) -1 ; | |
17500 | wxNotebookEvent *result; | |
994141e6 RD |
17501 | PyObject * obj0 = 0 ; |
17502 | PyObject * obj1 = 0 ; | |
17503 | PyObject * obj2 = 0 ; | |
17504 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17505 | char *kwnames[] = { |
17506 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17507 | }; | |
17508 | ||
994141e6 RD |
17509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17510 | if (obj0) { | |
093d3ff1 RD |
17511 | { |
17512 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17514 | } | |
994141e6 RD |
17515 | } |
17516 | if (obj1) { | |
093d3ff1 RD |
17517 | { |
17518 | arg2 = (int)(SWIG_As_int(obj1)); | |
17519 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17520 | } | |
994141e6 RD |
17521 | } |
17522 | if (obj2) { | |
093d3ff1 RD |
17523 | { |
17524 | arg3 = (int)(SWIG_As_int(obj2)); | |
17525 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17526 | } | |
994141e6 RD |
17527 | } |
17528 | if (obj3) { | |
093d3ff1 RD |
17529 | { |
17530 | arg4 = (int)(SWIG_As_int(obj3)); | |
17531 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17532 | } | |
994141e6 | 17533 | } |
d14a1e28 RD |
17534 | { |
17535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17536 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
17537 | ||
17538 | wxPyEndAllowThreads(__tstate); | |
17539 | if (PyErr_Occurred()) SWIG_fail; | |
17540 | } | |
15afbcd0 | 17541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
17542 | return resultobj; |
17543 | fail: | |
17544 | return NULL; | |
17545 | } | |
17546 | ||
17547 | ||
c32bde28 | 17548 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17549 | PyObject *obj; |
17550 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17551 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
17552 | Py_INCREF(obj); | |
17553 | return Py_BuildValue((char *)""); | |
17554 | } | |
c32bde28 | 17555 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17556 | PyObject *resultobj; |
17557 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 17558 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17559 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17560 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17561 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17562 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17563 | long arg5 = (long) 0 ; | |
17564 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17565 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17566 | wxListbook *result; | |
17567 | wxPoint temp3 ; | |
17568 | wxSize temp4 ; | |
ae8162c8 | 17569 | bool temp6 = false ; |
d14a1e28 | 17570 | PyObject * obj0 = 0 ; |
994141e6 | 17571 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17572 | PyObject * obj2 = 0 ; |
17573 | PyObject * obj3 = 0 ; | |
994141e6 | 17574 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17575 | PyObject * obj5 = 0 ; |
17576 | char *kwnames[] = { | |
17577 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17578 | }; | |
17579 | ||
4f89f6a3 | 17580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17581 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17582 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 | 17583 | if (obj1) { |
093d3ff1 RD |
17584 | { |
17585 | arg2 = (int)(SWIG_As_int(obj1)); | |
17586 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17587 | } | |
4f89f6a3 | 17588 | } |
d14a1e28 RD |
17589 | if (obj2) { |
17590 | { | |
17591 | arg3 = &temp3; | |
17592 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17593 | } | |
17594 | } | |
17595 | if (obj3) { | |
17596 | { | |
17597 | arg4 = &temp4; | |
17598 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17599 | } | |
17600 | } | |
994141e6 | 17601 | if (obj4) { |
093d3ff1 RD |
17602 | { |
17603 | arg5 = (long)(SWIG_As_long(obj4)); | |
17604 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17605 | } | |
994141e6 | 17606 | } |
d14a1e28 RD |
17607 | if (obj5) { |
17608 | { | |
17609 | arg6 = wxString_in_helper(obj5); | |
17610 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17611 | temp6 = true; |
d14a1e28 RD |
17612 | } |
17613 | } | |
17614 | { | |
e3b71cb8 | 17615 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17617 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17620 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17621 | } |
15afbcd0 | 17622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
17623 | { |
17624 | if (temp6) | |
17625 | delete arg6; | |
17626 | } | |
17627 | return resultobj; | |
17628 | fail: | |
17629 | { | |
17630 | if (temp6) | |
17631 | delete arg6; | |
17632 | } | |
17633 | return NULL; | |
17634 | } | |
17635 | ||
17636 | ||
c32bde28 | 17637 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17638 | PyObject *resultobj; |
17639 | wxListbook *result; | |
17640 | char *kwnames[] = { | |
17641 | NULL | |
17642 | }; | |
17643 | ||
17644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
17645 | { | |
e3b71cb8 | 17646 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17648 | result = (wxListbook *)new wxListbook(); | |
17649 | ||
17650 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17651 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17652 | } |
15afbcd0 | 17653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
17654 | return resultobj; |
17655 | fail: | |
17656 | return NULL; | |
17657 | } | |
17658 | ||
17659 | ||
c32bde28 | 17660 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17661 | PyObject *resultobj; |
17662 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17663 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17664 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17665 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17666 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17667 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17668 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17669 | long arg6 = (long) 0 ; | |
17670 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17671 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17672 | bool result; | |
17673 | wxPoint temp4 ; | |
17674 | wxSize temp5 ; | |
ae8162c8 | 17675 | bool temp7 = false ; |
d14a1e28 RD |
17676 | PyObject * obj0 = 0 ; |
17677 | PyObject * obj1 = 0 ; | |
994141e6 | 17678 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17679 | PyObject * obj3 = 0 ; |
17680 | PyObject * obj4 = 0 ; | |
994141e6 | 17681 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17682 | PyObject * obj6 = 0 ; |
17683 | char *kwnames[] = { | |
17684 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17685 | }; | |
17686 | ||
248ed943 | 17687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17690 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17692 | if (obj2) { |
093d3ff1 RD |
17693 | { |
17694 | arg3 = (int)(SWIG_As_int(obj2)); | |
17695 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17696 | } | |
248ed943 | 17697 | } |
d14a1e28 RD |
17698 | if (obj3) { |
17699 | { | |
17700 | arg4 = &temp4; | |
17701 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17702 | } | |
17703 | } | |
17704 | if (obj4) { | |
17705 | { | |
17706 | arg5 = &temp5; | |
17707 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17708 | } | |
17709 | } | |
994141e6 | 17710 | if (obj5) { |
093d3ff1 RD |
17711 | { |
17712 | arg6 = (long)(SWIG_As_long(obj5)); | |
17713 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17714 | } | |
994141e6 | 17715 | } |
d14a1e28 RD |
17716 | if (obj6) { |
17717 | { | |
17718 | arg7 = wxString_in_helper(obj6); | |
17719 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17720 | temp7 = true; |
d14a1e28 RD |
17721 | } |
17722 | } | |
17723 | { | |
17724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17725 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17726 | ||
17727 | wxPyEndAllowThreads(__tstate); | |
17728 | if (PyErr_Occurred()) SWIG_fail; | |
17729 | } | |
4f89f6a3 RD |
17730 | { |
17731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17732 | } | |
d14a1e28 RD |
17733 | { |
17734 | if (temp7) | |
17735 | delete arg7; | |
17736 | } | |
17737 | return resultobj; | |
17738 | fail: | |
17739 | { | |
17740 | if (temp7) | |
17741 | delete arg7; | |
17742 | } | |
17743 | return NULL; | |
17744 | } | |
17745 | ||
17746 | ||
c32bde28 | 17747 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17748 | PyObject *resultobj; |
17749 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17750 | bool result; | |
17751 | PyObject * obj0 = 0 ; | |
17752 | char *kwnames[] = { | |
17753 | (char *) "self", NULL | |
17754 | }; | |
17755 | ||
17756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17759 | { |
17760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17761 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
17762 | ||
17763 | wxPyEndAllowThreads(__tstate); | |
17764 | if (PyErr_Occurred()) SWIG_fail; | |
17765 | } | |
4f89f6a3 RD |
17766 | { |
17767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17768 | } | |
d14a1e28 RD |
17769 | return resultobj; |
17770 | fail: | |
17771 | return NULL; | |
17772 | } | |
17773 | ||
17774 | ||
1fbf26be RD |
17775 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
17776 | PyObject *resultobj; | |
17777 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17778 | wxListView *result; | |
17779 | PyObject * obj0 = 0 ; | |
17780 | char *kwnames[] = { | |
17781 | (char *) "self", NULL | |
17782 | }; | |
17783 | ||
17784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
17786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1fbf26be RD |
17787 | { |
17788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17789 | result = (wxListView *)(arg1)->GetListView(); | |
17790 | ||
17791 | wxPyEndAllowThreads(__tstate); | |
17792 | if (PyErr_Occurred()) SWIG_fail; | |
17793 | } | |
17794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
17795 | return resultobj; | |
17796 | fail: | |
17797 | return NULL; | |
17798 | } | |
17799 | ||
17800 | ||
c32bde28 | 17801 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17802 | PyObject *obj; |
17803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17804 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
17805 | Py_INCREF(obj); | |
17806 | return Py_BuildValue((char *)""); | |
17807 | } | |
c32bde28 | 17808 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17809 | PyObject *resultobj; |
17810 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17811 | int arg2 = (int) 0 ; | |
17812 | int arg3 = (int) -1 ; | |
17813 | int arg4 = (int) -1 ; | |
17814 | wxListbookEvent *result; | |
994141e6 RD |
17815 | PyObject * obj0 = 0 ; |
17816 | PyObject * obj1 = 0 ; | |
17817 | PyObject * obj2 = 0 ; | |
17818 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17819 | char *kwnames[] = { |
17820 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17821 | }; | |
17822 | ||
994141e6 RD |
17823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17824 | if (obj0) { | |
093d3ff1 RD |
17825 | { |
17826 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17828 | } | |
994141e6 RD |
17829 | } |
17830 | if (obj1) { | |
093d3ff1 RD |
17831 | { |
17832 | arg2 = (int)(SWIG_As_int(obj1)); | |
17833 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17834 | } | |
994141e6 RD |
17835 | } |
17836 | if (obj2) { | |
093d3ff1 RD |
17837 | { |
17838 | arg3 = (int)(SWIG_As_int(obj2)); | |
17839 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17840 | } | |
994141e6 RD |
17841 | } |
17842 | if (obj3) { | |
093d3ff1 RD |
17843 | { |
17844 | arg4 = (int)(SWIG_As_int(obj3)); | |
17845 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17846 | } | |
994141e6 | 17847 | } |
d14a1e28 RD |
17848 | { |
17849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17850 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
17851 | ||
17852 | wxPyEndAllowThreads(__tstate); | |
17853 | if (PyErr_Occurred()) SWIG_fail; | |
17854 | } | |
15afbcd0 | 17855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
17856 | return resultobj; |
17857 | fail: | |
17858 | return NULL; | |
17859 | } | |
17860 | ||
17861 | ||
c32bde28 | 17862 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17863 | PyObject *obj; |
17864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17865 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
17866 | Py_INCREF(obj); | |
17867 | return Py_BuildValue((char *)""); | |
17868 | } | |
2ef75293 RD |
17869 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { |
17870 | PyObject *resultobj; | |
17871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17872 | int arg2 ; | |
17873 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17874 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17875 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17876 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17877 | long arg5 = (long) 0 ; | |
17878 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17879 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17880 | wxChoicebook *result; | |
17881 | wxPoint temp3 ; | |
17882 | wxSize temp4 ; | |
ae8162c8 | 17883 | bool temp6 = false ; |
2ef75293 RD |
17884 | PyObject * obj0 = 0 ; |
17885 | PyObject * obj1 = 0 ; | |
17886 | PyObject * obj2 = 0 ; | |
17887 | PyObject * obj3 = 0 ; | |
17888 | PyObject * obj4 = 0 ; | |
17889 | PyObject * obj5 = 0 ; | |
17890 | char *kwnames[] = { | |
17891 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17892 | }; | |
17893 | ||
17894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
093d3ff1 RD |
17895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17897 | { | |
17898 | arg2 = (int)(SWIG_As_int(obj1)); | |
17899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17900 | } | |
2ef75293 RD |
17901 | if (obj2) { |
17902 | { | |
17903 | arg3 = &temp3; | |
17904 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17905 | } | |
17906 | } | |
17907 | if (obj3) { | |
17908 | { | |
17909 | arg4 = &temp4; | |
17910 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17911 | } | |
17912 | } | |
17913 | if (obj4) { | |
093d3ff1 RD |
17914 | { |
17915 | arg5 = (long)(SWIG_As_long(obj4)); | |
17916 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17917 | } | |
2ef75293 RD |
17918 | } |
17919 | if (obj5) { | |
17920 | { | |
17921 | arg6 = wxString_in_helper(obj5); | |
17922 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17923 | temp6 = true; |
2ef75293 RD |
17924 | } |
17925 | } | |
17926 | { | |
17927 | if (!wxPyCheckForApp()) SWIG_fail; | |
17928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17929 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17930 | ||
17931 | wxPyEndAllowThreads(__tstate); | |
17932 | if (PyErr_Occurred()) SWIG_fail; | |
17933 | } | |
17934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
17935 | { | |
17936 | if (temp6) | |
17937 | delete arg6; | |
17938 | } | |
17939 | return resultobj; | |
17940 | fail: | |
17941 | { | |
17942 | if (temp6) | |
17943 | delete arg6; | |
17944 | } | |
17945 | return NULL; | |
17946 | } | |
17947 | ||
17948 | ||
17949 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
17950 | PyObject *resultobj; | |
17951 | wxChoicebook *result; | |
17952 | char *kwnames[] = { | |
17953 | NULL | |
17954 | }; | |
17955 | ||
17956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
17957 | { | |
17958 | if (!wxPyCheckForApp()) SWIG_fail; | |
17959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17960 | result = (wxChoicebook *)new wxChoicebook(); | |
17961 | ||
17962 | wxPyEndAllowThreads(__tstate); | |
17963 | if (PyErr_Occurred()) SWIG_fail; | |
17964 | } | |
17965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
17966 | return resultobj; | |
17967 | fail: | |
17968 | return NULL; | |
17969 | } | |
17970 | ||
17971 | ||
17972 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
17973 | PyObject *resultobj; | |
17974 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
17975 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17976 | int arg3 ; | |
17977 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17978 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17979 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17980 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17981 | long arg6 = (long) 0 ; | |
17982 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17983 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17984 | bool result; | |
17985 | wxPoint temp4 ; | |
17986 | wxSize temp5 ; | |
ae8162c8 | 17987 | bool temp7 = false ; |
2ef75293 RD |
17988 | PyObject * obj0 = 0 ; |
17989 | PyObject * obj1 = 0 ; | |
17990 | PyObject * obj2 = 0 ; | |
17991 | PyObject * obj3 = 0 ; | |
17992 | PyObject * obj4 = 0 ; | |
17993 | PyObject * obj5 = 0 ; | |
17994 | PyObject * obj6 = 0 ; | |
17995 | char *kwnames[] = { | |
17996 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17997 | }; | |
17998 | ||
17999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
093d3ff1 RD |
18000 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18002 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18003 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18004 | { | |
18005 | arg3 = (int)(SWIG_As_int(obj2)); | |
18006 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18007 | } | |
2ef75293 RD |
18008 | if (obj3) { |
18009 | { | |
18010 | arg4 = &temp4; | |
18011 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18012 | } | |
18013 | } | |
18014 | if (obj4) { | |
18015 | { | |
18016 | arg5 = &temp5; | |
18017 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18018 | } | |
18019 | } | |
18020 | if (obj5) { | |
093d3ff1 RD |
18021 | { |
18022 | arg6 = (long)(SWIG_As_long(obj5)); | |
18023 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18024 | } | |
2ef75293 RD |
18025 | } |
18026 | if (obj6) { | |
18027 | { | |
18028 | arg7 = wxString_in_helper(obj6); | |
18029 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 18030 | temp7 = true; |
2ef75293 RD |
18031 | } |
18032 | } | |
18033 | { | |
18034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18035 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18036 | ||
18037 | wxPyEndAllowThreads(__tstate); | |
18038 | if (PyErr_Occurred()) SWIG_fail; | |
18039 | } | |
18040 | { | |
18041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18042 | } | |
18043 | { | |
18044 | if (temp7) | |
18045 | delete arg7; | |
18046 | } | |
18047 | return resultobj; | |
18048 | fail: | |
18049 | { | |
18050 | if (temp7) | |
18051 | delete arg7; | |
18052 | } | |
18053 | return NULL; | |
18054 | } | |
18055 | ||
18056 | ||
18057 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
18058 | PyObject *resultobj; | |
18059 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18060 | bool result; | |
18061 | PyObject * obj0 = 0 ; | |
18062 | char *kwnames[] = { | |
18063 | (char *) "self", NULL | |
18064 | }; | |
18065 | ||
18066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
18069 | { |
18070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18071 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
18072 | ||
18073 | wxPyEndAllowThreads(__tstate); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
18076 | { | |
18077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18078 | } | |
18079 | return resultobj; | |
18080 | fail: | |
18081 | return NULL; | |
18082 | } | |
18083 | ||
18084 | ||
70b7a5fe RD |
18085 | static PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
18086 | PyObject *resultobj; | |
18087 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18088 | wxChoice *result; | |
18089 | PyObject * obj0 = 0 ; | |
18090 | char *kwnames[] = { | |
18091 | (char *) "self", NULL | |
18092 | }; | |
18093 | ||
18094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_GetChoiceCtrl",kwnames,&obj0)) goto fail; | |
18095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18097 | { | |
18098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18099 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
18100 | ||
18101 | wxPyEndAllowThreads(__tstate); | |
18102 | if (PyErr_Occurred()) SWIG_fail; | |
18103 | } | |
18104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 0); | |
18105 | return resultobj; | |
18106 | fail: | |
18107 | return NULL; | |
18108 | } | |
18109 | ||
18110 | ||
2ef75293 RD |
18111 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
18112 | PyObject *resultobj; | |
18113 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18114 | bool result; | |
18115 | PyObject * obj0 = 0 ; | |
18116 | char *kwnames[] = { | |
18117 | (char *) "self", NULL | |
18118 | }; | |
18119 | ||
18120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); |
18122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2ef75293 RD |
18123 | { |
18124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18125 | result = (bool)(arg1)->DeleteAllPages(); | |
18126 | ||
18127 | wxPyEndAllowThreads(__tstate); | |
18128 | if (PyErr_Occurred()) SWIG_fail; | |
18129 | } | |
18130 | { | |
18131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18132 | } | |
18133 | return resultobj; | |
18134 | fail: | |
18135 | return NULL; | |
18136 | } | |
18137 | ||
18138 | ||
18139 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
18140 | PyObject *obj; | |
18141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18142 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
18143 | Py_INCREF(obj); | |
18144 | return Py_BuildValue((char *)""); | |
18145 | } | |
18146 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
18147 | PyObject *resultobj; | |
18148 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18149 | int arg2 = (int) 0 ; | |
18150 | int arg3 = (int) -1 ; | |
18151 | int arg4 = (int) -1 ; | |
18152 | wxChoicebookEvent *result; | |
18153 | PyObject * obj0 = 0 ; | |
18154 | PyObject * obj1 = 0 ; | |
18155 | PyObject * obj2 = 0 ; | |
18156 | PyObject * obj3 = 0 ; | |
18157 | char *kwnames[] = { | |
18158 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18159 | }; | |
18160 | ||
18161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18162 | if (obj0) { | |
093d3ff1 RD |
18163 | { |
18164 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
18165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18166 | } | |
2ef75293 RD |
18167 | } |
18168 | if (obj1) { | |
093d3ff1 RD |
18169 | { |
18170 | arg2 = (int)(SWIG_As_int(obj1)); | |
18171 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18172 | } | |
2ef75293 RD |
18173 | } |
18174 | if (obj2) { | |
093d3ff1 RD |
18175 | { |
18176 | arg3 = (int)(SWIG_As_int(obj2)); | |
18177 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18178 | } | |
2ef75293 RD |
18179 | } |
18180 | if (obj3) { | |
093d3ff1 RD |
18181 | { |
18182 | arg4 = (int)(SWIG_As_int(obj3)); | |
18183 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18184 | } | |
2ef75293 RD |
18185 | } |
18186 | { | |
18187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18188 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
18189 | ||
18190 | wxPyEndAllowThreads(__tstate); | |
18191 | if (PyErr_Occurred()) SWIG_fail; | |
18192 | } | |
18193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
18194 | return resultobj; | |
18195 | fail: | |
18196 | return NULL; | |
18197 | } | |
18198 | ||
18199 | ||
18200 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
18201 | PyObject *obj; | |
18202 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18203 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
18204 | Py_INCREF(obj); | |
18205 | return Py_BuildValue((char *)""); | |
18206 | } | |
c32bde28 | 18207 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18208 | PyObject *resultobj; |
8ac8dba0 | 18209 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
18210 | wxBookCtrlSizer *result; |
18211 | PyObject * obj0 = 0 ; | |
18212 | char *kwnames[] = { | |
18213 | (char *) "nb", NULL | |
18214 | }; | |
18215 | ||
18216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
18218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18219 | { |
18220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18221 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
18222 | ||
18223 | wxPyEndAllowThreads(__tstate); | |
18224 | if (PyErr_Occurred()) SWIG_fail; | |
18225 | } | |
15afbcd0 | 18226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
18227 | return resultobj; |
18228 | fail: | |
18229 | return NULL; | |
18230 | } | |
18231 | ||
18232 | ||
c32bde28 | 18233 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18234 | PyObject *resultobj; |
18235 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
18236 | PyObject * obj0 = 0 ; | |
18237 | char *kwnames[] = { | |
18238 | (char *) "self", NULL | |
18239 | }; | |
18240 | ||
18241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); |
18243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18244 | { |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | (arg1)->RecalcSizes(); | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | Py_INCREF(Py_None); resultobj = Py_None; | |
18252 | return resultobj; | |
18253 | fail: | |
18254 | return NULL; | |
18255 | } | |
18256 | ||
18257 | ||
c32bde28 | 18258 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18259 | PyObject *resultobj; |
18260 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
18261 | wxSize result; | |
18262 | PyObject * obj0 = 0 ; | |
18263 | char *kwnames[] = { | |
18264 | (char *) "self", NULL | |
18265 | }; | |
18266 | ||
18267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); |
18269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18270 | { |
18271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18272 | result = (arg1)->CalcMin(); | |
18273 | ||
18274 | wxPyEndAllowThreads(__tstate); | |
18275 | if (PyErr_Occurred()) SWIG_fail; | |
18276 | } | |
18277 | { | |
18278 | wxSize * resultptr; | |
093d3ff1 | 18279 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 18280 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18281 | } |
18282 | return resultobj; | |
18283 | fail: | |
18284 | return NULL; | |
18285 | } | |
18286 | ||
18287 | ||
c32bde28 | 18288 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18289 | PyObject *resultobj; |
18290 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
8ac8dba0 | 18291 | wxBookCtrlBase *result; |
d14a1e28 RD |
18292 | PyObject * obj0 = 0 ; |
18293 | char *kwnames[] = { | |
18294 | (char *) "self", NULL | |
18295 | }; | |
18296 | ||
18297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); |
18299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18300 | { |
18301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 18302 | result = (wxBookCtrlBase *)(arg1)->GetControl(); |
d14a1e28 RD |
18303 | |
18304 | wxPyEndAllowThreads(__tstate); | |
18305 | if (PyErr_Occurred()) SWIG_fail; | |
18306 | } | |
8ac8dba0 | 18307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBase, 0); |
d14a1e28 RD |
18308 | return resultobj; |
18309 | fail: | |
18310 | return NULL; | |
18311 | } | |
18312 | ||
18313 | ||
c32bde28 | 18314 | static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18315 | PyObject *obj; |
18316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18317 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
18318 | Py_INCREF(obj); | |
18319 | return Py_BuildValue((char *)""); | |
18320 | } | |
c32bde28 | 18321 | static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18322 | PyObject *resultobj; |
18323 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
18324 | wxNotebookSizer *result; | |
18325 | PyObject * obj0 = 0 ; | |
18326 | char *kwnames[] = { | |
18327 | (char *) "nb", NULL | |
18328 | }; | |
18329 | ||
18330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
18332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18333 | { |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
18336 | ||
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
15afbcd0 | 18340 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
18341 | return resultobj; |
18342 | fail: | |
18343 | return NULL; | |
18344 | } | |
18345 | ||
18346 | ||
c32bde28 | 18347 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18348 | PyObject *resultobj; |
18349 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18350 | PyObject * obj0 = 0 ; | |
18351 | char *kwnames[] = { | |
18352 | (char *) "self", NULL | |
18353 | }; | |
18354 | ||
18355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); |
18357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18358 | { |
18359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18360 | (arg1)->RecalcSizes(); | |
18361 | ||
18362 | wxPyEndAllowThreads(__tstate); | |
18363 | if (PyErr_Occurred()) SWIG_fail; | |
18364 | } | |
18365 | Py_INCREF(Py_None); resultobj = Py_None; | |
18366 | return resultobj; | |
18367 | fail: | |
18368 | return NULL; | |
18369 | } | |
18370 | ||
18371 | ||
c32bde28 | 18372 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18373 | PyObject *resultobj; |
18374 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18375 | wxSize result; | |
18376 | PyObject * obj0 = 0 ; | |
18377 | char *kwnames[] = { | |
18378 | (char *) "self", NULL | |
18379 | }; | |
18380 | ||
18381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); |
18383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18384 | { |
18385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18386 | result = (arg1)->CalcMin(); | |
18387 | ||
18388 | wxPyEndAllowThreads(__tstate); | |
18389 | if (PyErr_Occurred()) SWIG_fail; | |
18390 | } | |
18391 | { | |
18392 | wxSize * resultptr; | |
093d3ff1 | 18393 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 18394 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18395 | } |
18396 | return resultobj; | |
18397 | fail: | |
18398 | return NULL; | |
18399 | } | |
18400 | ||
18401 | ||
c32bde28 | 18402 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18403 | PyObject *resultobj; |
18404 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18405 | wxNotebook *result; | |
18406 | PyObject * obj0 = 0 ; | |
18407 | char *kwnames[] = { | |
18408 | (char *) "self", NULL | |
18409 | }; | |
18410 | ||
18411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18412 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); |
18413 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18414 | { |
18415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18416 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
18417 | ||
18418 | wxPyEndAllowThreads(__tstate); | |
18419 | if (PyErr_Occurred()) SWIG_fail; | |
18420 | } | |
18421 | { | |
412d302d | 18422 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18423 | } |
18424 | return resultobj; | |
18425 | fail: | |
18426 | return NULL; | |
18427 | } | |
18428 | ||
18429 | ||
c32bde28 | 18430 | static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
18431 | PyObject *obj; |
18432 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18433 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
18434 | Py_INCREF(obj); | |
18435 | return Py_BuildValue((char *)""); | |
18436 | } | |
c32bde28 | 18437 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18438 | PyObject *resultobj; |
18439 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18440 | int result; | |
18441 | PyObject * obj0 = 0 ; | |
18442 | char *kwnames[] = { | |
18443 | (char *) "self", NULL | |
18444 | }; | |
18445 | ||
18446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18449 | { |
18450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18451 | result = (int)(arg1)->GetId(); | |
18452 | ||
18453 | wxPyEndAllowThreads(__tstate); | |
18454 | if (PyErr_Occurred()) SWIG_fail; | |
18455 | } | |
093d3ff1 RD |
18456 | { |
18457 | resultobj = SWIG_From_int((int)(result)); | |
18458 | } | |
d14a1e28 RD |
18459 | return resultobj; |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
c32bde28 | 18465 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18466 | PyObject *resultobj; |
18467 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18468 | wxControl *result; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | char *kwnames[] = { | |
18471 | (char *) "self", NULL | |
18472 | }; | |
18473 | ||
18474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18477 | { |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | result = (wxControl *)(arg1)->GetControl(); | |
18480 | ||
18481 | wxPyEndAllowThreads(__tstate); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
18483 | } | |
18484 | { | |
412d302d | 18485 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18486 | } |
18487 | return resultobj; | |
18488 | fail: | |
18489 | return NULL; | |
18490 | } | |
18491 | ||
18492 | ||
c32bde28 | 18493 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18494 | PyObject *resultobj; |
18495 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18496 | wxToolBarBase *result; | |
18497 | PyObject * obj0 = 0 ; | |
18498 | char *kwnames[] = { | |
18499 | (char *) "self", NULL | |
18500 | }; | |
18501 | ||
18502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18505 | { |
18506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18507 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
18508 | ||
18509 | wxPyEndAllowThreads(__tstate); | |
18510 | if (PyErr_Occurred()) SWIG_fail; | |
18511 | } | |
18512 | { | |
412d302d | 18513 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18514 | } |
18515 | return resultobj; | |
18516 | fail: | |
18517 | return NULL; | |
18518 | } | |
18519 | ||
18520 | ||
c32bde28 | 18521 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18522 | PyObject *resultobj; |
18523 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18524 | int result; | |
18525 | PyObject * obj0 = 0 ; | |
18526 | char *kwnames[] = { | |
18527 | (char *) "self", NULL | |
18528 | }; | |
18529 | ||
18530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18533 | { |
18534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18535 | result = (int)(arg1)->IsButton(); | |
18536 | ||
18537 | wxPyEndAllowThreads(__tstate); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
093d3ff1 RD |
18540 | { |
18541 | resultobj = SWIG_From_int((int)(result)); | |
18542 | } | |
d14a1e28 RD |
18543 | return resultobj; |
18544 | fail: | |
18545 | return NULL; | |
18546 | } | |
18547 | ||
18548 | ||
c32bde28 | 18549 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18550 | PyObject *resultobj; |
18551 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18552 | int result; | |
18553 | PyObject * obj0 = 0 ; | |
18554 | char *kwnames[] = { | |
18555 | (char *) "self", NULL | |
18556 | }; | |
18557 | ||
18558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18561 | { |
18562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18563 | result = (int)(arg1)->IsControl(); | |
18564 | ||
18565 | wxPyEndAllowThreads(__tstate); | |
18566 | if (PyErr_Occurred()) SWIG_fail; | |
18567 | } | |
093d3ff1 RD |
18568 | { |
18569 | resultobj = SWIG_From_int((int)(result)); | |
18570 | } | |
d14a1e28 RD |
18571 | return resultobj; |
18572 | fail: | |
18573 | return NULL; | |
18574 | } | |
18575 | ||
18576 | ||
c32bde28 | 18577 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18578 | PyObject *resultobj; |
18579 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18580 | int result; | |
18581 | PyObject * obj0 = 0 ; | |
18582 | char *kwnames[] = { | |
18583 | (char *) "self", NULL | |
18584 | }; | |
18585 | ||
18586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18589 | { |
18590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18591 | result = (int)(arg1)->IsSeparator(); | |
18592 | ||
18593 | wxPyEndAllowThreads(__tstate); | |
18594 | if (PyErr_Occurred()) SWIG_fail; | |
18595 | } | |
093d3ff1 RD |
18596 | { |
18597 | resultobj = SWIG_From_int((int)(result)); | |
18598 | } | |
d14a1e28 RD |
18599 | return resultobj; |
18600 | fail: | |
18601 | return NULL; | |
18602 | } | |
18603 | ||
18604 | ||
c32bde28 | 18605 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18606 | PyObject *resultobj; |
18607 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18608 | int result; | |
18609 | PyObject * obj0 = 0 ; | |
18610 | char *kwnames[] = { | |
18611 | (char *) "self", NULL | |
18612 | }; | |
18613 | ||
18614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18617 | { |
18618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18619 | result = (int)(arg1)->GetStyle(); | |
18620 | ||
18621 | wxPyEndAllowThreads(__tstate); | |
18622 | if (PyErr_Occurred()) SWIG_fail; | |
18623 | } | |
093d3ff1 RD |
18624 | { |
18625 | resultobj = SWIG_From_int((int)(result)); | |
18626 | } | |
d14a1e28 RD |
18627 | return resultobj; |
18628 | fail: | |
18629 | return NULL; | |
18630 | } | |
18631 | ||
18632 | ||
c32bde28 | 18633 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18634 | PyObject *resultobj; |
18635 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
093d3ff1 | 18636 | wxItemKind result; |
d14a1e28 RD |
18637 | PyObject * obj0 = 0 ; |
18638 | char *kwnames[] = { | |
18639 | (char *) "self", NULL | |
18640 | }; | |
18641 | ||
18642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18645 | { |
18646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 18647 | result = (wxItemKind)(arg1)->GetKind(); |
d14a1e28 RD |
18648 | |
18649 | wxPyEndAllowThreads(__tstate); | |
18650 | if (PyErr_Occurred()) SWIG_fail; | |
18651 | } | |
093d3ff1 | 18652 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
18653 | return resultobj; |
18654 | fail: | |
18655 | return NULL; | |
18656 | } | |
18657 | ||
18658 | ||
c32bde28 | 18659 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18660 | PyObject *resultobj; |
18661 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18662 | bool result; | |
18663 | PyObject * obj0 = 0 ; | |
18664 | char *kwnames[] = { | |
18665 | (char *) "self", NULL | |
18666 | }; | |
18667 | ||
18668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18671 | { |
18672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18673 | result = (bool)(arg1)->IsEnabled(); | |
18674 | ||
18675 | wxPyEndAllowThreads(__tstate); | |
18676 | if (PyErr_Occurred()) SWIG_fail; | |
18677 | } | |
4f89f6a3 RD |
18678 | { |
18679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18680 | } | |
d14a1e28 RD |
18681 | return resultobj; |
18682 | fail: | |
18683 | return NULL; | |
18684 | } | |
18685 | ||
18686 | ||
c32bde28 | 18687 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18688 | PyObject *resultobj; |
18689 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18690 | bool result; | |
18691 | PyObject * obj0 = 0 ; | |
18692 | char *kwnames[] = { | |
18693 | (char *) "self", NULL | |
18694 | }; | |
18695 | ||
18696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18699 | { |
18700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18701 | result = (bool)(arg1)->IsToggled(); | |
18702 | ||
18703 | wxPyEndAllowThreads(__tstate); | |
18704 | if (PyErr_Occurred()) SWIG_fail; | |
18705 | } | |
4f89f6a3 RD |
18706 | { |
18707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18708 | } | |
d14a1e28 RD |
18709 | return resultobj; |
18710 | fail: | |
18711 | return NULL; | |
18712 | } | |
18713 | ||
18714 | ||
c32bde28 | 18715 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18716 | PyObject *resultobj; |
18717 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18718 | bool result; | |
18719 | PyObject * obj0 = 0 ; | |
18720 | char *kwnames[] = { | |
18721 | (char *) "self", NULL | |
18722 | }; | |
18723 | ||
18724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18727 | { |
18728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18729 | result = (bool)(arg1)->CanBeToggled(); | |
18730 | ||
18731 | wxPyEndAllowThreads(__tstate); | |
18732 | if (PyErr_Occurred()) SWIG_fail; | |
18733 | } | |
4f89f6a3 RD |
18734 | { |
18735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18736 | } | |
d14a1e28 RD |
18737 | return resultobj; |
18738 | fail: | |
18739 | return NULL; | |
18740 | } | |
18741 | ||
18742 | ||
c32bde28 | 18743 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18744 | PyObject *resultobj; |
18745 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18746 | wxBitmap *result; | |
18747 | PyObject * obj0 = 0 ; | |
18748 | char *kwnames[] = { | |
18749 | (char *) "self", NULL | |
18750 | }; | |
18751 | ||
18752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18755 | { |
18756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18757 | { | |
18758 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
18759 | result = (wxBitmap *) &_result_ref; | |
18760 | } | |
18761 | ||
18762 | wxPyEndAllowThreads(__tstate); | |
18763 | if (PyErr_Occurred()) SWIG_fail; | |
18764 | } | |
4276dc52 RD |
18765 | { |
18766 | wxBitmap* resultptr = new wxBitmap(*result); | |
18767 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18768 | } | |
d14a1e28 RD |
18769 | return resultobj; |
18770 | fail: | |
18771 | return NULL; | |
18772 | } | |
18773 | ||
18774 | ||
c32bde28 | 18775 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18776 | PyObject *resultobj; |
18777 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18778 | wxBitmap *result; | |
18779 | PyObject * obj0 = 0 ; | |
18780 | char *kwnames[] = { | |
18781 | (char *) "self", NULL | |
18782 | }; | |
18783 | ||
18784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18787 | { |
18788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18789 | { | |
18790 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
18791 | result = (wxBitmap *) &_result_ref; | |
18792 | } | |
18793 | ||
18794 | wxPyEndAllowThreads(__tstate); | |
18795 | if (PyErr_Occurred()) SWIG_fail; | |
18796 | } | |
4276dc52 RD |
18797 | { |
18798 | wxBitmap* resultptr = new wxBitmap(*result); | |
18799 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18800 | } | |
d14a1e28 RD |
18801 | return resultobj; |
18802 | fail: | |
18803 | return NULL; | |
18804 | } | |
18805 | ||
18806 | ||
c32bde28 | 18807 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18808 | PyObject *resultobj; |
18809 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18810 | wxBitmap result; | |
18811 | PyObject * obj0 = 0 ; | |
18812 | char *kwnames[] = { | |
18813 | (char *) "self", NULL | |
18814 | }; | |
18815 | ||
18816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18819 | { |
18820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18821 | result = (arg1)->GetBitmap(); | |
18822 | ||
18823 | wxPyEndAllowThreads(__tstate); | |
18824 | if (PyErr_Occurred()) SWIG_fail; | |
18825 | } | |
18826 | { | |
18827 | wxBitmap * resultptr; | |
093d3ff1 | 18828 | resultptr = new wxBitmap((wxBitmap &)(result)); |
15afbcd0 | 18829 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
18830 | } |
18831 | return resultobj; | |
18832 | fail: | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
c32bde28 | 18837 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18838 | PyObject *resultobj; |
18839 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18840 | wxString result; | |
18841 | PyObject * obj0 = 0 ; | |
18842 | char *kwnames[] = { | |
18843 | (char *) "self", NULL | |
18844 | }; | |
18845 | ||
18846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18849 | { |
18850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18851 | result = (arg1)->GetLabel(); | |
18852 | ||
18853 | wxPyEndAllowThreads(__tstate); | |
18854 | if (PyErr_Occurred()) SWIG_fail; | |
18855 | } | |
18856 | { | |
18857 | #if wxUSE_UNICODE | |
18858 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18859 | #else | |
18860 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18861 | #endif | |
18862 | } | |
18863 | return resultobj; | |
18864 | fail: | |
18865 | return NULL; | |
18866 | } | |
18867 | ||
18868 | ||
c32bde28 | 18869 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18870 | PyObject *resultobj; |
18871 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18872 | wxString result; | |
18873 | PyObject * obj0 = 0 ; | |
18874 | char *kwnames[] = { | |
18875 | (char *) "self", NULL | |
18876 | }; | |
18877 | ||
18878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18881 | { |
18882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18883 | result = (arg1)->GetShortHelp(); | |
18884 | ||
18885 | wxPyEndAllowThreads(__tstate); | |
18886 | if (PyErr_Occurred()) SWIG_fail; | |
18887 | } | |
18888 | { | |
18889 | #if wxUSE_UNICODE | |
18890 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18891 | #else | |
18892 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18893 | #endif | |
18894 | } | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
c32bde28 | 18901 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18902 | PyObject *resultobj; |
18903 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18904 | wxString result; | |
18905 | PyObject * obj0 = 0 ; | |
18906 | char *kwnames[] = { | |
18907 | (char *) "self", NULL | |
18908 | }; | |
18909 | ||
18910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18913 | { |
18914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18915 | result = (arg1)->GetLongHelp(); | |
18916 | ||
18917 | wxPyEndAllowThreads(__tstate); | |
18918 | if (PyErr_Occurred()) SWIG_fail; | |
18919 | } | |
18920 | { | |
18921 | #if wxUSE_UNICODE | |
18922 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18923 | #else | |
18924 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18925 | #endif | |
18926 | } | |
18927 | return resultobj; | |
18928 | fail: | |
18929 | return NULL; | |
18930 | } | |
18931 | ||
18932 | ||
c32bde28 | 18933 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18934 | PyObject *resultobj; |
18935 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18936 | bool arg2 ; | |
18937 | bool result; | |
18938 | PyObject * obj0 = 0 ; | |
18939 | PyObject * obj1 = 0 ; | |
18940 | char *kwnames[] = { | |
18941 | (char *) "self",(char *) "enable", NULL | |
18942 | }; | |
18943 | ||
18944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
18945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18947 | { | |
18948 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18950 | } | |
d14a1e28 RD |
18951 | { |
18952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18953 | result = (bool)(arg1)->Enable(arg2); | |
18954 | ||
18955 | wxPyEndAllowThreads(__tstate); | |
18956 | if (PyErr_Occurred()) SWIG_fail; | |
18957 | } | |
4f89f6a3 RD |
18958 | { |
18959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18960 | } | |
d14a1e28 RD |
18961 | return resultobj; |
18962 | fail: | |
18963 | return NULL; | |
18964 | } | |
18965 | ||
18966 | ||
c32bde28 | 18967 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18968 | PyObject *resultobj; |
18969 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18970 | PyObject * obj0 = 0 ; | |
18971 | char *kwnames[] = { | |
18972 | (char *) "self", NULL | |
18973 | }; | |
18974 | ||
18975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
18976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
18977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
18978 | { |
18979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18980 | (arg1)->Toggle(); | |
18981 | ||
18982 | wxPyEndAllowThreads(__tstate); | |
18983 | if (PyErr_Occurred()) SWIG_fail; | |
18984 | } | |
18985 | Py_INCREF(Py_None); resultobj = Py_None; | |
18986 | return resultobj; | |
18987 | fail: | |
18988 | return NULL; | |
18989 | } | |
18990 | ||
18991 | ||
c32bde28 | 18992 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
18993 | PyObject *resultobj; |
18994 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18995 | bool arg2 ; | |
18996 | bool result; | |
18997 | PyObject * obj0 = 0 ; | |
18998 | PyObject * obj1 = 0 ; | |
18999 | char *kwnames[] = { | |
19000 | (char *) "self",(char *) "toggle", NULL | |
19001 | }; | |
19002 | ||
19003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19006 | { | |
19007 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
19008 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19009 | } | |
d14a1e28 RD |
19010 | { |
19011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19012 | result = (bool)(arg1)->SetToggle(arg2); | |
19013 | ||
19014 | wxPyEndAllowThreads(__tstate); | |
19015 | if (PyErr_Occurred()) SWIG_fail; | |
19016 | } | |
4f89f6a3 RD |
19017 | { |
19018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19019 | } | |
d14a1e28 RD |
19020 | return resultobj; |
19021 | fail: | |
19022 | return NULL; | |
19023 | } | |
19024 | ||
19025 | ||
c32bde28 | 19026 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19027 | PyObject *resultobj; |
19028 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19029 | wxString *arg2 = 0 ; | |
19030 | bool result; | |
ae8162c8 | 19031 | bool temp2 = false ; |
d14a1e28 RD |
19032 | PyObject * obj0 = 0 ; |
19033 | PyObject * obj1 = 0 ; | |
19034 | char *kwnames[] = { | |
19035 | (char *) "self",(char *) "help", NULL | |
19036 | }; | |
19037 | ||
19038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19041 | { |
19042 | arg2 = wxString_in_helper(obj1); | |
19043 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19044 | temp2 = true; |
d14a1e28 RD |
19045 | } |
19046 | { | |
19047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19048 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
19049 | ||
19050 | wxPyEndAllowThreads(__tstate); | |
19051 | if (PyErr_Occurred()) SWIG_fail; | |
19052 | } | |
4f89f6a3 RD |
19053 | { |
19054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19055 | } | |
d14a1e28 RD |
19056 | { |
19057 | if (temp2) | |
19058 | delete arg2; | |
19059 | } | |
19060 | return resultobj; | |
19061 | fail: | |
19062 | { | |
19063 | if (temp2) | |
19064 | delete arg2; | |
19065 | } | |
19066 | return NULL; | |
19067 | } | |
19068 | ||
19069 | ||
c32bde28 | 19070 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19071 | PyObject *resultobj; |
19072 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19073 | wxString *arg2 = 0 ; | |
19074 | bool result; | |
ae8162c8 | 19075 | bool temp2 = false ; |
d14a1e28 RD |
19076 | PyObject * obj0 = 0 ; |
19077 | PyObject * obj1 = 0 ; | |
19078 | char *kwnames[] = { | |
19079 | (char *) "self",(char *) "help", NULL | |
19080 | }; | |
19081 | ||
19082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19083 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19085 | { |
19086 | arg2 = wxString_in_helper(obj1); | |
19087 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19088 | temp2 = true; |
d14a1e28 RD |
19089 | } |
19090 | { | |
19091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19092 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
19093 | ||
19094 | wxPyEndAllowThreads(__tstate); | |
19095 | if (PyErr_Occurred()) SWIG_fail; | |
19096 | } | |
4f89f6a3 RD |
19097 | { |
19098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19099 | } | |
d14a1e28 RD |
19100 | { |
19101 | if (temp2) | |
19102 | delete arg2; | |
19103 | } | |
19104 | return resultobj; | |
19105 | fail: | |
19106 | { | |
19107 | if (temp2) | |
19108 | delete arg2; | |
19109 | } | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
c32bde28 | 19114 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19115 | PyObject *resultobj; |
19116 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19117 | wxBitmap *arg2 = 0 ; | |
19118 | PyObject * obj0 = 0 ; | |
19119 | PyObject * obj1 = 0 ; | |
19120 | char *kwnames[] = { | |
19121 | (char *) "self",(char *) "bmp", NULL | |
19122 | }; | |
19123 | ||
19124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19127 | { | |
19128 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19129 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19130 | if (arg2 == NULL) { | |
19131 | SWIG_null_ref("wxBitmap"); | |
19132 | } | |
19133 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19134 | } |
19135 | { | |
19136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19137 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
19138 | ||
19139 | wxPyEndAllowThreads(__tstate); | |
19140 | if (PyErr_Occurred()) SWIG_fail; | |
19141 | } | |
19142 | Py_INCREF(Py_None); resultobj = Py_None; | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
c32bde28 | 19149 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19150 | PyObject *resultobj; |
19151 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19152 | wxBitmap *arg2 = 0 ; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | PyObject * obj1 = 0 ; | |
19155 | char *kwnames[] = { | |
19156 | (char *) "self",(char *) "bmp", NULL | |
19157 | }; | |
19158 | ||
19159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19162 | { | |
19163 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19164 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19165 | if (arg2 == NULL) { | |
19166 | SWIG_null_ref("wxBitmap"); | |
19167 | } | |
19168 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19169 | } |
19170 | { | |
19171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19172 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
19173 | ||
19174 | wxPyEndAllowThreads(__tstate); | |
19175 | if (PyErr_Occurred()) SWIG_fail; | |
19176 | } | |
19177 | Py_INCREF(Py_None); resultobj = Py_None; | |
19178 | return resultobj; | |
19179 | fail: | |
19180 | return NULL; | |
19181 | } | |
19182 | ||
19183 | ||
c32bde28 | 19184 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19185 | PyObject *resultobj; |
19186 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19187 | wxString *arg2 = 0 ; | |
ae8162c8 | 19188 | bool temp2 = false ; |
d14a1e28 RD |
19189 | PyObject * obj0 = 0 ; |
19190 | PyObject * obj1 = 0 ; | |
19191 | char *kwnames[] = { | |
19192 | (char *) "self",(char *) "label", NULL | |
19193 | }; | |
19194 | ||
19195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19198 | { |
19199 | arg2 = wxString_in_helper(obj1); | |
19200 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 19201 | temp2 = true; |
d14a1e28 RD |
19202 | } |
19203 | { | |
19204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19205 | (arg1)->SetLabel((wxString const &)*arg2); | |
19206 | ||
19207 | wxPyEndAllowThreads(__tstate); | |
19208 | if (PyErr_Occurred()) SWIG_fail; | |
19209 | } | |
19210 | Py_INCREF(Py_None); resultobj = Py_None; | |
19211 | { | |
19212 | if (temp2) | |
19213 | delete arg2; | |
19214 | } | |
19215 | return resultobj; | |
19216 | fail: | |
19217 | { | |
19218 | if (temp2) | |
19219 | delete arg2; | |
19220 | } | |
19221 | return NULL; | |
19222 | } | |
19223 | ||
19224 | ||
c32bde28 | 19225 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19226 | PyObject *resultobj; |
19227 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19228 | PyObject * obj0 = 0 ; | |
19229 | char *kwnames[] = { | |
19230 | (char *) "self", NULL | |
19231 | }; | |
19232 | ||
19233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19236 | { |
19237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19238 | (arg1)->Detach(); | |
19239 | ||
19240 | wxPyEndAllowThreads(__tstate); | |
19241 | if (PyErr_Occurred()) SWIG_fail; | |
19242 | } | |
19243 | Py_INCREF(Py_None); resultobj = Py_None; | |
19244 | return resultobj; | |
19245 | fail: | |
19246 | return NULL; | |
19247 | } | |
19248 | ||
19249 | ||
c32bde28 | 19250 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19251 | PyObject *resultobj; |
19252 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19253 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
19254 | PyObject * obj0 = 0 ; | |
19255 | PyObject * obj1 = 0 ; | |
19256 | char *kwnames[] = { | |
19257 | (char *) "self",(char *) "tbar", NULL | |
19258 | }; | |
19259 | ||
19260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19261 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19262 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19263 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19264 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19265 | { |
19266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19267 | (arg1)->Attach(arg2); | |
19268 | ||
19269 | wxPyEndAllowThreads(__tstate); | |
19270 | if (PyErr_Occurred()) SWIG_fail; | |
19271 | } | |
19272 | Py_INCREF(Py_None); resultobj = Py_None; | |
19273 | return resultobj; | |
19274 | fail: | |
19275 | return NULL; | |
19276 | } | |
19277 | ||
19278 | ||
c32bde28 | 19279 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19280 | PyObject *resultobj; |
19281 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19282 | PyObject *result; | |
19283 | PyObject * obj0 = 0 ; | |
19284 | char *kwnames[] = { | |
19285 | (char *) "self", NULL | |
19286 | }; | |
19287 | ||
19288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19291 | { |
19292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19293 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
19294 | ||
19295 | wxPyEndAllowThreads(__tstate); | |
19296 | if (PyErr_Occurred()) SWIG_fail; | |
19297 | } | |
19298 | resultobj = result; | |
19299 | return resultobj; | |
19300 | fail: | |
19301 | return NULL; | |
19302 | } | |
19303 | ||
19304 | ||
c32bde28 | 19305 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19306 | PyObject *resultobj; |
19307 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19308 | PyObject *arg2 = (PyObject *) 0 ; | |
19309 | PyObject * obj0 = 0 ; | |
19310 | PyObject * obj1 = 0 ; | |
19311 | char *kwnames[] = { | |
19312 | (char *) "self",(char *) "clientData", NULL | |
19313 | }; | |
19314 | ||
19315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19318 | arg2 = obj1; |
19319 | { | |
19320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19321 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
19322 | ||
19323 | wxPyEndAllowThreads(__tstate); | |
19324 | if (PyErr_Occurred()) SWIG_fail; | |
19325 | } | |
19326 | Py_INCREF(Py_None); resultobj = Py_None; | |
19327 | return resultobj; | |
19328 | fail: | |
19329 | return NULL; | |
19330 | } | |
19331 | ||
19332 | ||
c32bde28 | 19333 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19334 | PyObject *obj; |
19335 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19336 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
19337 | Py_INCREF(obj); | |
19338 | return Py_BuildValue((char *)""); | |
19339 | } | |
c32bde28 | 19340 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19341 | PyObject *resultobj; |
19342 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19343 | int arg2 ; | |
19344 | wxString *arg3 = 0 ; | |
19345 | wxBitmap *arg4 = 0 ; | |
19346 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
19347 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
093d3ff1 | 19348 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
19349 | wxString const &arg7_defvalue = wxPyEmptyString ; |
19350 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19351 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
19352 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19353 | PyObject *arg9 = (PyObject *) NULL ; | |
19354 | wxToolBarToolBase *result; | |
ae8162c8 RD |
19355 | bool temp3 = false ; |
19356 | bool temp7 = false ; | |
19357 | bool temp8 = false ; | |
d14a1e28 | 19358 | PyObject * obj0 = 0 ; |
994141e6 | 19359 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19360 | PyObject * obj2 = 0 ; |
19361 | PyObject * obj3 = 0 ; | |
19362 | PyObject * obj4 = 0 ; | |
994141e6 | 19363 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
19364 | PyObject * obj6 = 0 ; |
19365 | PyObject * obj7 = 0 ; | |
19366 | PyObject * obj8 = 0 ; | |
19367 | char *kwnames[] = { | |
19368 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19369 | }; | |
19370 | ||
994141e6 | 19371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
19372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19373 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19374 | { | |
19375 | arg2 = (int)(SWIG_As_int(obj1)); | |
19376 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19377 | } | |
d14a1e28 RD |
19378 | { |
19379 | arg3 = wxString_in_helper(obj2); | |
19380 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 19381 | temp3 = true; |
d14a1e28 | 19382 | } |
093d3ff1 RD |
19383 | { |
19384 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19385 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19386 | if (arg4 == NULL) { | |
19387 | SWIG_null_ref("wxBitmap"); | |
19388 | } | |
19389 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
19390 | } |
19391 | if (obj4) { | |
093d3ff1 RD |
19392 | { |
19393 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19394 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19395 | if (arg5 == NULL) { | |
19396 | SWIG_null_ref("wxBitmap"); | |
19397 | } | |
19398 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
19399 | } |
19400 | } | |
994141e6 | 19401 | if (obj5) { |
093d3ff1 RD |
19402 | { |
19403 | arg6 = (wxItemKind)(SWIG_As_int(obj5)); | |
19404 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19405 | } | |
994141e6 | 19406 | } |
d14a1e28 RD |
19407 | if (obj6) { |
19408 | { | |
19409 | arg7 = wxString_in_helper(obj6); | |
19410 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19411 | temp7 = true; |
d14a1e28 RD |
19412 | } |
19413 | } | |
19414 | if (obj7) { | |
19415 | { | |
19416 | arg8 = wxString_in_helper(obj7); | |
19417 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 19418 | temp8 = true; |
d14a1e28 RD |
19419 | } |
19420 | } | |
19421 | if (obj8) { | |
19422 | arg9 = obj8; | |
19423 | } | |
19424 | { | |
19425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19426 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
19427 | ||
19428 | wxPyEndAllowThreads(__tstate); | |
19429 | if (PyErr_Occurred()) SWIG_fail; | |
19430 | } | |
19431 | { | |
412d302d | 19432 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19433 | } |
19434 | { | |
19435 | if (temp3) | |
19436 | delete arg3; | |
19437 | } | |
19438 | { | |
19439 | if (temp7) | |
19440 | delete arg7; | |
19441 | } | |
19442 | { | |
19443 | if (temp8) | |
19444 | delete arg8; | |
19445 | } | |
19446 | return resultobj; | |
19447 | fail: | |
19448 | { | |
19449 | if (temp3) | |
19450 | delete arg3; | |
19451 | } | |
19452 | { | |
19453 | if (temp7) | |
19454 | delete arg7; | |
19455 | } | |
19456 | { | |
19457 | if (temp8) | |
19458 | delete arg8; | |
19459 | } | |
19460 | return NULL; | |
19461 | } | |
19462 | ||
19463 | ||
c32bde28 | 19464 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19465 | PyObject *resultobj; |
19466 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19467 | size_t arg2 ; | |
19468 | int arg3 ; | |
19469 | wxString *arg4 = 0 ; | |
19470 | wxBitmap *arg5 = 0 ; | |
19471 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
19472 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
093d3ff1 | 19473 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
19474 | wxString const &arg8_defvalue = wxPyEmptyString ; |
19475 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19476 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
19477 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
19478 | PyObject *arg10 = (PyObject *) NULL ; | |
19479 | wxToolBarToolBase *result; | |
ae8162c8 RD |
19480 | bool temp4 = false ; |
19481 | bool temp8 = false ; | |
19482 | bool temp9 = false ; | |
d14a1e28 RD |
19483 | PyObject * obj0 = 0 ; |
19484 | PyObject * obj1 = 0 ; | |
994141e6 | 19485 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
19486 | PyObject * obj3 = 0 ; |
19487 | PyObject * obj4 = 0 ; | |
19488 | PyObject * obj5 = 0 ; | |
994141e6 | 19489 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
19490 | PyObject * obj7 = 0 ; |
19491 | PyObject * obj8 = 0 ; | |
19492 | PyObject * obj9 = 0 ; | |
19493 | char *kwnames[] = { | |
19494 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19495 | }; | |
19496 | ||
994141e6 | 19497 | 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 |
19498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19500 | { | |
19501 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19503 | } | |
19504 | { | |
19505 | arg3 = (int)(SWIG_As_int(obj2)); | |
19506 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19507 | } | |
d14a1e28 RD |
19508 | { |
19509 | arg4 = wxString_in_helper(obj3); | |
19510 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 19511 | temp4 = true; |
d14a1e28 | 19512 | } |
093d3ff1 RD |
19513 | { |
19514 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19515 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19516 | if (arg5 == NULL) { | |
19517 | SWIG_null_ref("wxBitmap"); | |
19518 | } | |
19519 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
19520 | } |
19521 | if (obj5) { | |
093d3ff1 RD |
19522 | { |
19523 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19524 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19525 | if (arg6 == NULL) { | |
19526 | SWIG_null_ref("wxBitmap"); | |
19527 | } | |
19528 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
19529 | } |
19530 | } | |
994141e6 | 19531 | if (obj6) { |
093d3ff1 RD |
19532 | { |
19533 | arg7 = (wxItemKind)(SWIG_As_int(obj6)); | |
19534 | if (SWIG_arg_fail(7)) SWIG_fail; | |
19535 | } | |
994141e6 | 19536 | } |
d14a1e28 RD |
19537 | if (obj7) { |
19538 | { | |
19539 | arg8 = wxString_in_helper(obj7); | |
19540 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 19541 | temp8 = true; |
d14a1e28 RD |
19542 | } |
19543 | } | |
19544 | if (obj8) { | |
19545 | { | |
19546 | arg9 = wxString_in_helper(obj8); | |
19547 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 19548 | temp9 = true; |
d14a1e28 RD |
19549 | } |
19550 | } | |
19551 | if (obj9) { | |
19552 | arg10 = obj9; | |
19553 | } | |
19554 | { | |
19555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19556 | 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); | |
19557 | ||
19558 | wxPyEndAllowThreads(__tstate); | |
19559 | if (PyErr_Occurred()) SWIG_fail; | |
19560 | } | |
19561 | { | |
412d302d | 19562 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19563 | } |
19564 | { | |
19565 | if (temp4) | |
19566 | delete arg4; | |
19567 | } | |
19568 | { | |
19569 | if (temp8) | |
19570 | delete arg8; | |
19571 | } | |
19572 | { | |
19573 | if (temp9) | |
19574 | delete arg9; | |
19575 | } | |
19576 | return resultobj; | |
19577 | fail: | |
19578 | { | |
19579 | if (temp4) | |
19580 | delete arg4; | |
19581 | } | |
19582 | { | |
19583 | if (temp8) | |
19584 | delete arg8; | |
19585 | } | |
19586 | { | |
19587 | if (temp9) | |
19588 | delete arg9; | |
19589 | } | |
19590 | return NULL; | |
19591 | } | |
19592 | ||
19593 | ||
c32bde28 | 19594 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
19595 | PyObject *resultobj; |
19596 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19597 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
19598 | wxToolBarToolBase *result; | |
19599 | PyObject * obj0 = 0 ; | |
19600 | PyObject * obj1 = 0 ; | |
19601 | char *kwnames[] = { | |
19602 | (char *) "self",(char *) "tool", NULL | |
19603 | }; | |
19604 | ||
19605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19606 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19607 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19608 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19609 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3a04f143 RD |
19610 | { |
19611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19612 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
19613 | ||
19614 | wxPyEndAllowThreads(__tstate); | |
19615 | if (PyErr_Occurred()) SWIG_fail; | |
19616 | } | |
19617 | { | |
412d302d | 19618 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
19619 | } |
19620 | return resultobj; | |
19621 | fail: | |
19622 | return NULL; | |
19623 | } | |
19624 | ||
19625 | ||
c32bde28 | 19626 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
19627 | PyObject *resultobj; |
19628 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19629 | size_t arg2 ; | |
19630 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
19631 | wxToolBarToolBase *result; | |
19632 | PyObject * obj0 = 0 ; | |
19633 | PyObject * obj1 = 0 ; | |
19634 | PyObject * obj2 = 0 ; | |
19635 | char *kwnames[] = { | |
19636 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
19637 | }; | |
19638 | ||
19639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19642 | { | |
19643 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19645 | } | |
19646 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19647 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3a04f143 RD |
19648 | { |
19649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19650 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
19651 | ||
19652 | wxPyEndAllowThreads(__tstate); | |
19653 | if (PyErr_Occurred()) SWIG_fail; | |
19654 | } | |
19655 | { | |
412d302d | 19656 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
19657 | } |
19658 | return resultobj; | |
19659 | fail: | |
19660 | return NULL; | |
19661 | } | |
19662 | ||
19663 | ||
c32bde28 | 19664 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19665 | PyObject *resultobj; |
19666 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19667 | wxControl *arg2 = (wxControl *) 0 ; | |
19668 | wxToolBarToolBase *result; | |
19669 | PyObject * obj0 = 0 ; | |
19670 | PyObject * obj1 = 0 ; | |
19671 | char *kwnames[] = { | |
19672 | (char *) "self",(char *) "control", NULL | |
19673 | }; | |
19674 | ||
19675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19678 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19679 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
19680 | { |
19681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19682 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
19683 | ||
19684 | wxPyEndAllowThreads(__tstate); | |
19685 | if (PyErr_Occurred()) SWIG_fail; | |
19686 | } | |
19687 | { | |
412d302d | 19688 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19689 | } |
19690 | return resultobj; | |
19691 | fail: | |
19692 | return NULL; | |
19693 | } | |
19694 | ||
19695 | ||
c32bde28 | 19696 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19697 | PyObject *resultobj; |
19698 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19699 | size_t arg2 ; | |
19700 | wxControl *arg3 = (wxControl *) 0 ; | |
19701 | wxToolBarToolBase *result; | |
19702 | PyObject * obj0 = 0 ; | |
19703 | PyObject * obj1 = 0 ; | |
19704 | PyObject * obj2 = 0 ; | |
19705 | char *kwnames[] = { | |
19706 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
19707 | }; | |
19708 | ||
19709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
19710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19712 | { | |
19713 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19714 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19715 | } | |
19716 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19717 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
19718 | { |
19719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19720 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
19721 | ||
19722 | wxPyEndAllowThreads(__tstate); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
19725 | { | |
412d302d | 19726 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19727 | } |
19728 | return resultobj; | |
19729 | fail: | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
c32bde28 | 19734 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19735 | PyObject *resultobj; |
19736 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19737 | int arg2 ; | |
19738 | wxControl *result; | |
19739 | PyObject * obj0 = 0 ; | |
994141e6 | 19740 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19741 | char *kwnames[] = { |
19742 | (char *) "self",(char *) "id", NULL | |
19743 | }; | |
19744 | ||
994141e6 | 19745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19748 | { | |
19749 | arg2 = (int)(SWIG_As_int(obj1)); | |
19750 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19751 | } | |
d14a1e28 RD |
19752 | { |
19753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19754 | result = (wxControl *)(arg1)->FindControl(arg2); | |
19755 | ||
19756 | wxPyEndAllowThreads(__tstate); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | { | |
412d302d | 19760 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19761 | } |
19762 | return resultobj; | |
19763 | fail: | |
19764 | return NULL; | |
19765 | } | |
19766 | ||
19767 | ||
c32bde28 | 19768 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19769 | PyObject *resultobj; |
19770 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19771 | wxToolBarToolBase *result; | |
19772 | PyObject * obj0 = 0 ; | |
19773 | char *kwnames[] = { | |
19774 | (char *) "self", NULL | |
19775 | }; | |
19776 | ||
19777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19780 | { |
19781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19782 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
19783 | ||
19784 | wxPyEndAllowThreads(__tstate); | |
19785 | if (PyErr_Occurred()) SWIG_fail; | |
19786 | } | |
19787 | { | |
412d302d | 19788 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19789 | } |
19790 | return resultobj; | |
19791 | fail: | |
19792 | return NULL; | |
19793 | } | |
19794 | ||
19795 | ||
c32bde28 | 19796 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19797 | PyObject *resultobj; |
19798 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19799 | size_t arg2 ; | |
19800 | wxToolBarToolBase *result; | |
19801 | PyObject * obj0 = 0 ; | |
19802 | PyObject * obj1 = 0 ; | |
19803 | char *kwnames[] = { | |
19804 | (char *) "self",(char *) "pos", NULL | |
19805 | }; | |
19806 | ||
19807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19810 | { | |
19811 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19812 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19813 | } | |
d14a1e28 RD |
19814 | { |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
19817 | ||
19818 | wxPyEndAllowThreads(__tstate); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
19821 | { | |
412d302d | 19822 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19823 | } |
19824 | return resultobj; | |
19825 | fail: | |
19826 | return NULL; | |
19827 | } | |
19828 | ||
19829 | ||
c32bde28 | 19830 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19831 | PyObject *resultobj; |
19832 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19833 | int arg2 ; | |
19834 | wxToolBarToolBase *result; | |
19835 | PyObject * obj0 = 0 ; | |
994141e6 | 19836 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19837 | char *kwnames[] = { |
19838 | (char *) "self",(char *) "id", NULL | |
19839 | }; | |
19840 | ||
994141e6 | 19841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19844 | { | |
19845 | arg2 = (int)(SWIG_As_int(obj1)); | |
19846 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19847 | } | |
d14a1e28 RD |
19848 | { |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
19855 | { | |
412d302d | 19856 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19857 | } |
19858 | return resultobj; | |
19859 | fail: | |
19860 | return NULL; | |
19861 | } | |
19862 | ||
19863 | ||
c32bde28 | 19864 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19865 | PyObject *resultobj; |
19866 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19867 | size_t arg2 ; | |
19868 | bool result; | |
19869 | PyObject * obj0 = 0 ; | |
19870 | PyObject * obj1 = 0 ; | |
19871 | char *kwnames[] = { | |
19872 | (char *) "self",(char *) "pos", NULL | |
19873 | }; | |
19874 | ||
19875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
19876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19878 | { | |
19879 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19881 | } | |
d14a1e28 RD |
19882 | { |
19883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19884 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
19885 | ||
19886 | wxPyEndAllowThreads(__tstate); | |
19887 | if (PyErr_Occurred()) SWIG_fail; | |
19888 | } | |
4f89f6a3 RD |
19889 | { |
19890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19891 | } | |
d14a1e28 RD |
19892 | return resultobj; |
19893 | fail: | |
19894 | return NULL; | |
19895 | } | |
19896 | ||
19897 | ||
c32bde28 | 19898 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19899 | PyObject *resultobj; |
19900 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19901 | int arg2 ; | |
19902 | bool result; | |
19903 | PyObject * obj0 = 0 ; | |
994141e6 | 19904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19905 | char *kwnames[] = { |
19906 | (char *) "self",(char *) "id", NULL | |
19907 | }; | |
19908 | ||
994141e6 | 19909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
19910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19912 | { | |
19913 | arg2 = (int)(SWIG_As_int(obj1)); | |
19914 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19915 | } | |
d14a1e28 RD |
19916 | { |
19917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19918 | result = (bool)(arg1)->DeleteTool(arg2); | |
19919 | ||
19920 | wxPyEndAllowThreads(__tstate); | |
19921 | if (PyErr_Occurred()) SWIG_fail; | |
19922 | } | |
4f89f6a3 RD |
19923 | { |
19924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19925 | } | |
d14a1e28 RD |
19926 | return resultobj; |
19927 | fail: | |
19928 | return NULL; | |
19929 | } | |
19930 | ||
19931 | ||
c32bde28 | 19932 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19933 | PyObject *resultobj; |
19934 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19935 | PyObject * obj0 = 0 ; | |
19936 | char *kwnames[] = { | |
19937 | (char *) "self", NULL | |
19938 | }; | |
19939 | ||
19940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19943 | { |
19944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19945 | (arg1)->ClearTools(); | |
19946 | ||
19947 | wxPyEndAllowThreads(__tstate); | |
19948 | if (PyErr_Occurred()) SWIG_fail; | |
19949 | } | |
19950 | Py_INCREF(Py_None); resultobj = Py_None; | |
19951 | return resultobj; | |
19952 | fail: | |
19953 | return NULL; | |
19954 | } | |
19955 | ||
19956 | ||
c32bde28 | 19957 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19958 | PyObject *resultobj; |
19959 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19960 | bool result; | |
19961 | PyObject * obj0 = 0 ; | |
19962 | char *kwnames[] = { | |
19963 | (char *) "self", NULL | |
19964 | }; | |
19965 | ||
19966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19969 | { |
19970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19971 | result = (bool)(arg1)->Realize(); | |
19972 | ||
19973 | wxPyEndAllowThreads(__tstate); | |
19974 | if (PyErr_Occurred()) SWIG_fail; | |
19975 | } | |
4f89f6a3 RD |
19976 | { |
19977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19978 | } | |
d14a1e28 RD |
19979 | return resultobj; |
19980 | fail: | |
19981 | return NULL; | |
19982 | } | |
19983 | ||
19984 | ||
c32bde28 | 19985 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
19986 | PyObject *resultobj; |
19987 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19988 | int arg2 ; | |
19989 | bool arg3 ; | |
19990 | PyObject * obj0 = 0 ; | |
994141e6 | 19991 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19992 | PyObject * obj2 = 0 ; |
19993 | char *kwnames[] = { | |
19994 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
19995 | }; | |
19996 | ||
994141e6 | 19997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
19998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
19999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20000 | { | |
20001 | arg2 = (int)(SWIG_As_int(obj1)); | |
20002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20003 | } | |
20004 | { | |
20005 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
20006 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20007 | } | |
d14a1e28 RD |
20008 | { |
20009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20010 | (arg1)->EnableTool(arg2,arg3); | |
20011 | ||
20012 | wxPyEndAllowThreads(__tstate); | |
20013 | if (PyErr_Occurred()) SWIG_fail; | |
20014 | } | |
20015 | Py_INCREF(Py_None); resultobj = Py_None; | |
20016 | return resultobj; | |
20017 | fail: | |
20018 | return NULL; | |
20019 | } | |
20020 | ||
20021 | ||
c32bde28 | 20022 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20023 | PyObject *resultobj; |
20024 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20025 | int arg2 ; | |
20026 | bool arg3 ; | |
20027 | PyObject * obj0 = 0 ; | |
994141e6 | 20028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20029 | PyObject * obj2 = 0 ; |
20030 | char *kwnames[] = { | |
20031 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
20032 | }; | |
20033 | ||
994141e6 | 20034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20035 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20037 | { | |
20038 | arg2 = (int)(SWIG_As_int(obj1)); | |
20039 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20040 | } | |
20041 | { | |
20042 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
20043 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20044 | } | |
d14a1e28 RD |
20045 | { |
20046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20047 | (arg1)->ToggleTool(arg2,arg3); | |
20048 | ||
20049 | wxPyEndAllowThreads(__tstate); | |
20050 | if (PyErr_Occurred()) SWIG_fail; | |
20051 | } | |
20052 | Py_INCREF(Py_None); resultobj = Py_None; | |
20053 | return resultobj; | |
20054 | fail: | |
20055 | return NULL; | |
20056 | } | |
20057 | ||
20058 | ||
c32bde28 | 20059 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20060 | PyObject *resultobj; |
20061 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20062 | int arg2 ; | |
20063 | bool arg3 ; | |
20064 | PyObject * obj0 = 0 ; | |
994141e6 | 20065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20066 | PyObject * obj2 = 0 ; |
20067 | char *kwnames[] = { | |
20068 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
20069 | }; | |
20070 | ||
994141e6 | 20071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20072 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20073 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20074 | { | |
20075 | arg2 = (int)(SWIG_As_int(obj1)); | |
20076 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20077 | } | |
20078 | { | |
20079 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
20080 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20081 | } | |
d14a1e28 RD |
20082 | { |
20083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20084 | (arg1)->SetToggle(arg2,arg3); | |
20085 | ||
20086 | wxPyEndAllowThreads(__tstate); | |
20087 | if (PyErr_Occurred()) SWIG_fail; | |
20088 | } | |
20089 | Py_INCREF(Py_None); resultobj = Py_None; | |
20090 | return resultobj; | |
20091 | fail: | |
20092 | return NULL; | |
20093 | } | |
20094 | ||
20095 | ||
c32bde28 | 20096 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20097 | PyObject *resultobj; |
20098 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20099 | int arg2 ; | |
20100 | PyObject *result; | |
20101 | PyObject * obj0 = 0 ; | |
994141e6 | 20102 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20103 | char *kwnames[] = { |
20104 | (char *) "self",(char *) "id", NULL | |
20105 | }; | |
20106 | ||
994141e6 | 20107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20110 | { | |
20111 | arg2 = (int)(SWIG_As_int(obj1)); | |
20112 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20113 | } | |
d14a1e28 RD |
20114 | { |
20115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20116 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
20117 | ||
20118 | wxPyEndAllowThreads(__tstate); | |
20119 | if (PyErr_Occurred()) SWIG_fail; | |
20120 | } | |
20121 | resultobj = result; | |
20122 | return resultobj; | |
20123 | fail: | |
20124 | return NULL; | |
20125 | } | |
20126 | ||
20127 | ||
c32bde28 | 20128 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20129 | PyObject *resultobj; |
20130 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20131 | int arg2 ; | |
20132 | PyObject *arg3 = (PyObject *) 0 ; | |
20133 | PyObject * obj0 = 0 ; | |
994141e6 | 20134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20135 | PyObject * obj2 = 0 ; |
20136 | char *kwnames[] = { | |
20137 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
20138 | }; | |
20139 | ||
994141e6 | 20140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20143 | { | |
20144 | arg2 = (int)(SWIG_As_int(obj1)); | |
20145 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20146 | } | |
d14a1e28 RD |
20147 | arg3 = obj2; |
20148 | { | |
20149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20150 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
20151 | ||
20152 | wxPyEndAllowThreads(__tstate); | |
20153 | if (PyErr_Occurred()) SWIG_fail; | |
20154 | } | |
20155 | Py_INCREF(Py_None); resultobj = Py_None; | |
20156 | return resultobj; | |
20157 | fail: | |
20158 | return NULL; | |
20159 | } | |
20160 | ||
20161 | ||
c32bde28 | 20162 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20163 | PyObject *resultobj; |
20164 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20165 | int arg2 ; | |
20166 | int result; | |
20167 | PyObject * obj0 = 0 ; | |
994141e6 | 20168 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20169 | char *kwnames[] = { |
20170 | (char *) "self",(char *) "id", NULL | |
20171 | }; | |
20172 | ||
994141e6 | 20173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20176 | { | |
20177 | arg2 = (int)(SWIG_As_int(obj1)); | |
20178 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20179 | } | |
d14a1e28 RD |
20180 | { |
20181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20182 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
20183 | ||
20184 | wxPyEndAllowThreads(__tstate); | |
20185 | if (PyErr_Occurred()) SWIG_fail; | |
20186 | } | |
093d3ff1 RD |
20187 | { |
20188 | resultobj = SWIG_From_int((int)(result)); | |
20189 | } | |
d14a1e28 RD |
20190 | return resultobj; |
20191 | fail: | |
20192 | return NULL; | |
20193 | } | |
20194 | ||
20195 | ||
c32bde28 | 20196 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20197 | PyObject *resultobj; |
20198 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20199 | int arg2 ; | |
20200 | bool result; | |
20201 | PyObject * obj0 = 0 ; | |
994141e6 | 20202 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20203 | char *kwnames[] = { |
20204 | (char *) "self",(char *) "id", NULL | |
20205 | }; | |
20206 | ||
994141e6 | 20207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20210 | { | |
20211 | arg2 = (int)(SWIG_As_int(obj1)); | |
20212 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20213 | } | |
d14a1e28 RD |
20214 | { |
20215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20216 | result = (bool)(arg1)->GetToolState(arg2); | |
20217 | ||
20218 | wxPyEndAllowThreads(__tstate); | |
20219 | if (PyErr_Occurred()) SWIG_fail; | |
20220 | } | |
4f89f6a3 RD |
20221 | { |
20222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20223 | } | |
d14a1e28 RD |
20224 | return resultobj; |
20225 | fail: | |
20226 | return NULL; | |
20227 | } | |
20228 | ||
20229 | ||
c32bde28 | 20230 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20231 | PyObject *resultobj; |
20232 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20233 | int arg2 ; | |
20234 | bool result; | |
20235 | PyObject * obj0 = 0 ; | |
994141e6 | 20236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20237 | char *kwnames[] = { |
20238 | (char *) "self",(char *) "id", NULL | |
20239 | }; | |
20240 | ||
994141e6 | 20241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20244 | { | |
20245 | arg2 = (int)(SWIG_As_int(obj1)); | |
20246 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20247 | } | |
d14a1e28 RD |
20248 | { |
20249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20250 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
20251 | ||
20252 | wxPyEndAllowThreads(__tstate); | |
20253 | if (PyErr_Occurred()) SWIG_fail; | |
20254 | } | |
4f89f6a3 RD |
20255 | { |
20256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20257 | } | |
d14a1e28 RD |
20258 | return resultobj; |
20259 | fail: | |
20260 | return NULL; | |
20261 | } | |
20262 | ||
20263 | ||
c32bde28 | 20264 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20265 | PyObject *resultobj; |
20266 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20267 | int arg2 ; | |
20268 | wxString *arg3 = 0 ; | |
ae8162c8 | 20269 | bool temp3 = false ; |
d14a1e28 | 20270 | PyObject * obj0 = 0 ; |
994141e6 | 20271 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20272 | PyObject * obj2 = 0 ; |
20273 | char *kwnames[] = { | |
20274 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20275 | }; | |
20276 | ||
994141e6 | 20277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20280 | { | |
20281 | arg2 = (int)(SWIG_As_int(obj1)); | |
20282 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20283 | } | |
d14a1e28 RD |
20284 | { |
20285 | arg3 = wxString_in_helper(obj2); | |
20286 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20287 | temp3 = true; |
d14a1e28 RD |
20288 | } |
20289 | { | |
20290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20291 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
20292 | ||
20293 | wxPyEndAllowThreads(__tstate); | |
20294 | if (PyErr_Occurred()) SWIG_fail; | |
20295 | } | |
20296 | Py_INCREF(Py_None); resultobj = Py_None; | |
20297 | { | |
20298 | if (temp3) | |
20299 | delete arg3; | |
20300 | } | |
20301 | return resultobj; | |
20302 | fail: | |
20303 | { | |
20304 | if (temp3) | |
20305 | delete arg3; | |
20306 | } | |
20307 | return NULL; | |
20308 | } | |
20309 | ||
20310 | ||
c32bde28 | 20311 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20312 | PyObject *resultobj; |
20313 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20314 | int arg2 ; | |
20315 | wxString result; | |
20316 | PyObject * obj0 = 0 ; | |
994141e6 | 20317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20318 | char *kwnames[] = { |
20319 | (char *) "self",(char *) "id", NULL | |
20320 | }; | |
20321 | ||
994141e6 | 20322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20323 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20324 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20325 | { | |
20326 | arg2 = (int)(SWIG_As_int(obj1)); | |
20327 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20328 | } | |
d14a1e28 RD |
20329 | { |
20330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20331 | result = (arg1)->GetToolShortHelp(arg2); | |
20332 | ||
20333 | wxPyEndAllowThreads(__tstate); | |
20334 | if (PyErr_Occurred()) SWIG_fail; | |
20335 | } | |
20336 | { | |
20337 | #if wxUSE_UNICODE | |
20338 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20339 | #else | |
20340 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20341 | #endif | |
20342 | } | |
20343 | return resultobj; | |
20344 | fail: | |
20345 | return NULL; | |
20346 | } | |
20347 | ||
20348 | ||
c32bde28 | 20349 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20350 | PyObject *resultobj; |
20351 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20352 | int arg2 ; | |
20353 | wxString *arg3 = 0 ; | |
ae8162c8 | 20354 | bool temp3 = false ; |
d14a1e28 | 20355 | PyObject * obj0 = 0 ; |
994141e6 | 20356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20357 | PyObject * obj2 = 0 ; |
20358 | char *kwnames[] = { | |
20359 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20360 | }; | |
20361 | ||
994141e6 | 20362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20365 | { | |
20366 | arg2 = (int)(SWIG_As_int(obj1)); | |
20367 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20368 | } | |
d14a1e28 RD |
20369 | { |
20370 | arg3 = wxString_in_helper(obj2); | |
20371 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20372 | temp3 = true; |
d14a1e28 RD |
20373 | } |
20374 | { | |
20375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20376 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
20377 | ||
20378 | wxPyEndAllowThreads(__tstate); | |
20379 | if (PyErr_Occurred()) SWIG_fail; | |
20380 | } | |
20381 | Py_INCREF(Py_None); resultobj = Py_None; | |
20382 | { | |
20383 | if (temp3) | |
20384 | delete arg3; | |
20385 | } | |
20386 | return resultobj; | |
20387 | fail: | |
20388 | { | |
20389 | if (temp3) | |
20390 | delete arg3; | |
20391 | } | |
20392 | return NULL; | |
20393 | } | |
20394 | ||
20395 | ||
c32bde28 | 20396 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20397 | PyObject *resultobj; |
20398 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20399 | int arg2 ; | |
20400 | wxString result; | |
20401 | PyObject * obj0 = 0 ; | |
994141e6 | 20402 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20403 | char *kwnames[] = { |
20404 | (char *) "self",(char *) "id", NULL | |
20405 | }; | |
20406 | ||
994141e6 | 20407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20410 | { | |
20411 | arg2 = (int)(SWIG_As_int(obj1)); | |
20412 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20413 | } | |
d14a1e28 RD |
20414 | { |
20415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20416 | result = (arg1)->GetToolLongHelp(arg2); | |
20417 | ||
20418 | wxPyEndAllowThreads(__tstate); | |
20419 | if (PyErr_Occurred()) SWIG_fail; | |
20420 | } | |
20421 | { | |
20422 | #if wxUSE_UNICODE | |
20423 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20424 | #else | |
20425 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20426 | #endif | |
20427 | } | |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
c32bde28 | 20434 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20435 | PyObject *resultobj; |
20436 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20437 | int arg2 ; | |
20438 | int arg3 ; | |
20439 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20440 | PyObject * obj1 = 0 ; |
20441 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20442 | char *kwnames[] = { |
20443 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20444 | }; | |
20445 | ||
994141e6 | 20446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20449 | { | |
20450 | arg2 = (int)(SWIG_As_int(obj1)); | |
20451 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20452 | } | |
20453 | { | |
20454 | arg3 = (int)(SWIG_As_int(obj2)); | |
20455 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20456 | } | |
d14a1e28 RD |
20457 | { |
20458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20459 | (arg1)->SetMargins(arg2,arg3); | |
20460 | ||
20461 | wxPyEndAllowThreads(__tstate); | |
20462 | if (PyErr_Occurred()) SWIG_fail; | |
20463 | } | |
20464 | Py_INCREF(Py_None); resultobj = Py_None; | |
20465 | return resultobj; | |
20466 | fail: | |
20467 | return NULL; | |
20468 | } | |
20469 | ||
20470 | ||
c32bde28 | 20471 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20472 | PyObject *resultobj; |
20473 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20474 | wxSize *arg2 = 0 ; | |
20475 | wxSize temp2 ; | |
20476 | PyObject * obj0 = 0 ; | |
20477 | PyObject * obj1 = 0 ; | |
20478 | char *kwnames[] = { | |
20479 | (char *) "self",(char *) "size", NULL | |
20480 | }; | |
20481 | ||
20482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20483 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20484 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20485 | { |
20486 | arg2 = &temp2; | |
20487 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20488 | } | |
20489 | { | |
20490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20491 | (arg1)->SetMargins((wxSize const &)*arg2); | |
20492 | ||
20493 | wxPyEndAllowThreads(__tstate); | |
20494 | if (PyErr_Occurred()) SWIG_fail; | |
20495 | } | |
20496 | Py_INCREF(Py_None); resultobj = Py_None; | |
20497 | return resultobj; | |
20498 | fail: | |
20499 | return NULL; | |
20500 | } | |
20501 | ||
20502 | ||
c32bde28 | 20503 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20504 | PyObject *resultobj; |
20505 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20506 | int arg2 ; | |
20507 | PyObject * obj0 = 0 ; | |
994141e6 | 20508 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20509 | char *kwnames[] = { |
20510 | (char *) "self",(char *) "packing", NULL | |
20511 | }; | |
20512 | ||
994141e6 | 20513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20516 | { | |
20517 | arg2 = (int)(SWIG_As_int(obj1)); | |
20518 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20519 | } | |
d14a1e28 RD |
20520 | { |
20521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20522 | (arg1)->SetToolPacking(arg2); | |
20523 | ||
20524 | wxPyEndAllowThreads(__tstate); | |
20525 | if (PyErr_Occurred()) SWIG_fail; | |
20526 | } | |
20527 | Py_INCREF(Py_None); resultobj = Py_None; | |
20528 | return resultobj; | |
20529 | fail: | |
20530 | return NULL; | |
20531 | } | |
20532 | ||
20533 | ||
c32bde28 | 20534 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20535 | PyObject *resultobj; |
20536 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20537 | int arg2 ; | |
20538 | PyObject * obj0 = 0 ; | |
994141e6 | 20539 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20540 | char *kwnames[] = { |
20541 | (char *) "self",(char *) "separation", NULL | |
20542 | }; | |
20543 | ||
994141e6 | 20544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20547 | { | |
20548 | arg2 = (int)(SWIG_As_int(obj1)); | |
20549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20550 | } | |
d14a1e28 RD |
20551 | { |
20552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20553 | (arg1)->SetToolSeparation(arg2); | |
20554 | ||
20555 | wxPyEndAllowThreads(__tstate); | |
20556 | if (PyErr_Occurred()) SWIG_fail; | |
20557 | } | |
20558 | Py_INCREF(Py_None); resultobj = Py_None; | |
20559 | return resultobj; | |
20560 | fail: | |
20561 | return NULL; | |
20562 | } | |
20563 | ||
20564 | ||
c32bde28 | 20565 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20566 | PyObject *resultobj; |
20567 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20568 | wxSize result; | |
20569 | PyObject * obj0 = 0 ; | |
20570 | char *kwnames[] = { | |
20571 | (char *) "self", NULL | |
20572 | }; | |
20573 | ||
20574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20577 | { |
20578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20579 | result = (arg1)->GetToolMargins(); | |
20580 | ||
20581 | wxPyEndAllowThreads(__tstate); | |
20582 | if (PyErr_Occurred()) SWIG_fail; | |
20583 | } | |
20584 | { | |
20585 | wxSize * resultptr; | |
093d3ff1 | 20586 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 20587 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20588 | } |
20589 | return resultobj; | |
20590 | fail: | |
20591 | return NULL; | |
20592 | } | |
20593 | ||
20594 | ||
c32bde28 | 20595 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20596 | PyObject *resultobj; |
20597 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20598 | wxSize result; | |
20599 | PyObject * obj0 = 0 ; | |
20600 | char *kwnames[] = { | |
20601 | (char *) "self", NULL | |
20602 | }; | |
20603 | ||
20604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20607 | { |
20608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20609 | result = (arg1)->GetMargins(); | |
20610 | ||
20611 | wxPyEndAllowThreads(__tstate); | |
20612 | if (PyErr_Occurred()) SWIG_fail; | |
20613 | } | |
20614 | { | |
20615 | wxSize * resultptr; | |
093d3ff1 | 20616 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 20617 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20618 | } |
20619 | return resultobj; | |
20620 | fail: | |
20621 | return NULL; | |
20622 | } | |
20623 | ||
20624 | ||
c32bde28 | 20625 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20626 | PyObject *resultobj; |
20627 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20628 | int result; | |
20629 | PyObject * obj0 = 0 ; | |
20630 | char *kwnames[] = { | |
20631 | (char *) "self", NULL | |
20632 | }; | |
20633 | ||
20634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20635 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20636 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20637 | { |
20638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20639 | result = (int)(arg1)->GetToolPacking(); | |
20640 | ||
20641 | wxPyEndAllowThreads(__tstate); | |
20642 | if (PyErr_Occurred()) SWIG_fail; | |
20643 | } | |
093d3ff1 RD |
20644 | { |
20645 | resultobj = SWIG_From_int((int)(result)); | |
20646 | } | |
d14a1e28 RD |
20647 | return resultobj; |
20648 | fail: | |
20649 | return NULL; | |
20650 | } | |
20651 | ||
20652 | ||
c32bde28 | 20653 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20654 | PyObject *resultobj; |
20655 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20656 | int result; | |
20657 | PyObject * obj0 = 0 ; | |
20658 | char *kwnames[] = { | |
20659 | (char *) "self", NULL | |
20660 | }; | |
20661 | ||
20662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20663 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20664 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20665 | { |
20666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20667 | result = (int)(arg1)->GetToolSeparation(); | |
20668 | ||
20669 | wxPyEndAllowThreads(__tstate); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | } | |
093d3ff1 RD |
20672 | { |
20673 | resultobj = SWIG_From_int((int)(result)); | |
20674 | } | |
d14a1e28 RD |
20675 | return resultobj; |
20676 | fail: | |
20677 | return NULL; | |
20678 | } | |
20679 | ||
20680 | ||
c32bde28 | 20681 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20682 | PyObject *resultobj; |
20683 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20684 | int arg2 ; | |
20685 | PyObject * obj0 = 0 ; | |
994141e6 | 20686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20687 | char *kwnames[] = { |
20688 | (char *) "self",(char *) "nRows", NULL | |
20689 | }; | |
20690 | ||
994141e6 | 20691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20694 | { | |
20695 | arg2 = (int)(SWIG_As_int(obj1)); | |
20696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20697 | } | |
d14a1e28 RD |
20698 | { |
20699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20700 | (arg1)->SetRows(arg2); | |
20701 | ||
20702 | wxPyEndAllowThreads(__tstate); | |
20703 | if (PyErr_Occurred()) SWIG_fail; | |
20704 | } | |
20705 | Py_INCREF(Py_None); resultobj = Py_None; | |
20706 | return resultobj; | |
20707 | fail: | |
20708 | return NULL; | |
20709 | } | |
20710 | ||
20711 | ||
c32bde28 | 20712 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20713 | PyObject *resultobj; |
20714 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20715 | int arg2 ; | |
20716 | int arg3 ; | |
20717 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20718 | PyObject * obj1 = 0 ; |
20719 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20720 | char *kwnames[] = { |
20721 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
20722 | }; | |
20723 | ||
994141e6 | 20724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20727 | { | |
20728 | arg2 = (int)(SWIG_As_int(obj1)); | |
20729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20730 | } | |
20731 | { | |
20732 | arg3 = (int)(SWIG_As_int(obj2)); | |
20733 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20734 | } | |
d14a1e28 RD |
20735 | { |
20736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20737 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
20738 | ||
20739 | wxPyEndAllowThreads(__tstate); | |
20740 | if (PyErr_Occurred()) SWIG_fail; | |
20741 | } | |
20742 | Py_INCREF(Py_None); resultobj = Py_None; | |
20743 | return resultobj; | |
20744 | fail: | |
20745 | return NULL; | |
20746 | } | |
20747 | ||
20748 | ||
c32bde28 | 20749 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20750 | PyObject *resultobj; |
20751 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20752 | int result; | |
20753 | PyObject * obj0 = 0 ; | |
20754 | char *kwnames[] = { | |
20755 | (char *) "self", NULL | |
20756 | }; | |
20757 | ||
20758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20759 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20760 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20761 | { |
20762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20763 | result = (int)(arg1)->GetMaxRows(); | |
20764 | ||
20765 | wxPyEndAllowThreads(__tstate); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | } | |
093d3ff1 RD |
20768 | { |
20769 | resultobj = SWIG_From_int((int)(result)); | |
20770 | } | |
d14a1e28 RD |
20771 | return resultobj; |
20772 | fail: | |
20773 | return NULL; | |
20774 | } | |
20775 | ||
20776 | ||
c32bde28 | 20777 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20778 | PyObject *resultobj; |
20779 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20780 | int result; | |
20781 | PyObject * obj0 = 0 ; | |
20782 | char *kwnames[] = { | |
20783 | (char *) "self", NULL | |
20784 | }; | |
20785 | ||
20786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20789 | { |
20790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20791 | result = (int)(arg1)->GetMaxCols(); | |
20792 | ||
20793 | wxPyEndAllowThreads(__tstate); | |
20794 | if (PyErr_Occurred()) SWIG_fail; | |
20795 | } | |
093d3ff1 RD |
20796 | { |
20797 | resultobj = SWIG_From_int((int)(result)); | |
20798 | } | |
d14a1e28 RD |
20799 | return resultobj; |
20800 | fail: | |
20801 | return NULL; | |
20802 | } | |
20803 | ||
20804 | ||
c32bde28 | 20805 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20806 | PyObject *resultobj; |
20807 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20808 | wxSize *arg2 = 0 ; | |
20809 | wxSize temp2 ; | |
20810 | PyObject * obj0 = 0 ; | |
20811 | PyObject * obj1 = 0 ; | |
20812 | char *kwnames[] = { | |
20813 | (char *) "self",(char *) "size", NULL | |
20814 | }; | |
20815 | ||
20816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20819 | { |
20820 | arg2 = &temp2; | |
20821 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20822 | } | |
20823 | { | |
20824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20825 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
20826 | ||
20827 | wxPyEndAllowThreads(__tstate); | |
20828 | if (PyErr_Occurred()) SWIG_fail; | |
20829 | } | |
20830 | Py_INCREF(Py_None); resultobj = Py_None; | |
20831 | return resultobj; | |
20832 | fail: | |
20833 | return NULL; | |
20834 | } | |
20835 | ||
20836 | ||
c32bde28 | 20837 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20838 | PyObject *resultobj; |
20839 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20840 | wxSize result; | |
20841 | PyObject * obj0 = 0 ; | |
20842 | char *kwnames[] = { | |
20843 | (char *) "self", NULL | |
20844 | }; | |
20845 | ||
20846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20847 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20848 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20849 | { |
20850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20851 | result = (arg1)->GetToolBitmapSize(); | |
20852 | ||
20853 | wxPyEndAllowThreads(__tstate); | |
20854 | if (PyErr_Occurred()) SWIG_fail; | |
20855 | } | |
20856 | { | |
20857 | wxSize * resultptr; | |
093d3ff1 | 20858 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 20859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20860 | } |
20861 | return resultobj; | |
20862 | fail: | |
20863 | return NULL; | |
20864 | } | |
20865 | ||
20866 | ||
c32bde28 | 20867 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20868 | PyObject *resultobj; |
20869 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20870 | wxSize result; | |
20871 | PyObject * obj0 = 0 ; | |
20872 | char *kwnames[] = { | |
20873 | (char *) "self", NULL | |
20874 | }; | |
20875 | ||
20876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20879 | { |
20880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20881 | result = (arg1)->GetToolSize(); | |
20882 | ||
20883 | wxPyEndAllowThreads(__tstate); | |
20884 | if (PyErr_Occurred()) SWIG_fail; | |
20885 | } | |
20886 | { | |
20887 | wxSize * resultptr; | |
093d3ff1 | 20888 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 20889 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
20890 | } |
20891 | return resultobj; | |
20892 | fail: | |
20893 | return NULL; | |
20894 | } | |
20895 | ||
20896 | ||
c32bde28 | 20897 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20898 | PyObject *resultobj; |
20899 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
20900 | int arg2 ; |
20901 | int arg3 ; | |
d14a1e28 RD |
20902 | wxToolBarToolBase *result; |
20903 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20904 | PyObject * obj1 = 0 ; |
20905 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20906 | char *kwnames[] = { |
20907 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20908 | }; | |
20909 | ||
994141e6 | 20910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
20911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20913 | { | |
20914 | arg2 = (int)(SWIG_As_int(obj1)); | |
20915 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20916 | } | |
20917 | { | |
20918 | arg3 = (int)(SWIG_As_int(obj2)); | |
20919 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20920 | } | |
d14a1e28 RD |
20921 | { |
20922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20923 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
20924 | ||
20925 | wxPyEndAllowThreads(__tstate); | |
20926 | if (PyErr_Occurred()) SWIG_fail; | |
20927 | } | |
20928 | { | |
412d302d | 20929 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20930 | } |
20931 | return resultobj; | |
20932 | fail: | |
20933 | return NULL; | |
20934 | } | |
20935 | ||
20936 | ||
c32bde28 | 20937 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
3a04f143 RD |
20938 | PyObject *resultobj; |
20939 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20940 | int arg2 ; | |
20941 | wxToolBarToolBase *result; | |
20942 | PyObject * obj0 = 0 ; | |
994141e6 | 20943 | PyObject * obj1 = 0 ; |
3a04f143 RD |
20944 | char *kwnames[] = { |
20945 | (char *) "self",(char *) "toolid", NULL | |
20946 | }; | |
20947 | ||
994141e6 | 20948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20951 | { | |
20952 | arg2 = (int)(SWIG_As_int(obj1)); | |
20953 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20954 | } | |
3a04f143 RD |
20955 | { |
20956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20957 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
20958 | ||
20959 | wxPyEndAllowThreads(__tstate); | |
20960 | if (PyErr_Occurred()) SWIG_fail; | |
20961 | } | |
20962 | { | |
412d302d | 20963 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
20964 | } |
20965 | return resultobj; | |
20966 | fail: | |
20967 | return NULL; | |
20968 | } | |
20969 | ||
20970 | ||
c32bde28 | 20971 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20972 | PyObject *resultobj; |
20973 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20974 | bool result; | |
20975 | PyObject * obj0 = 0 ; | |
20976 | char *kwnames[] = { | |
20977 | (char *) "self", NULL | |
20978 | }; | |
20979 | ||
20980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20983 | { |
20984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20985 | result = (bool)(arg1)->IsVertical(); | |
20986 | ||
20987 | wxPyEndAllowThreads(__tstate); | |
20988 | if (PyErr_Occurred()) SWIG_fail; | |
20989 | } | |
4f89f6a3 RD |
20990 | { |
20991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20992 | } | |
d14a1e28 RD |
20993 | return resultobj; |
20994 | fail: | |
20995 | return NULL; | |
20996 | } | |
20997 | ||
20998 | ||
c32bde28 | 20999 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21000 | PyObject *obj; |
21001 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21002 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
21003 | Py_INCREF(obj); | |
21004 | return Py_BuildValue((char *)""); | |
21005 | } | |
c32bde28 | 21006 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21007 | PyObject *resultobj; |
21008 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 21009 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21010 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21011 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21012 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21013 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21014 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
21015 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
21016 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21017 | wxToolBar *result; | |
21018 | wxPoint temp3 ; | |
21019 | wxSize temp4 ; | |
ae8162c8 | 21020 | bool temp6 = false ; |
d14a1e28 | 21021 | PyObject * obj0 = 0 ; |
994141e6 | 21022 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21023 | PyObject * obj2 = 0 ; |
21024 | PyObject * obj3 = 0 ; | |
994141e6 | 21025 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21026 | PyObject * obj5 = 0 ; |
21027 | char *kwnames[] = { | |
21028 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21029 | }; | |
21030 | ||
248ed943 | 21031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
21032 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
21033 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 21034 | if (obj1) { |
093d3ff1 RD |
21035 | { |
21036 | arg2 = (int)(SWIG_As_int(obj1)); | |
21037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21038 | } | |
248ed943 | 21039 | } |
d14a1e28 RD |
21040 | if (obj2) { |
21041 | { | |
21042 | arg3 = &temp3; | |
21043 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21044 | } | |
21045 | } | |
21046 | if (obj3) { | |
21047 | { | |
21048 | arg4 = &temp4; | |
21049 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21050 | } | |
21051 | } | |
994141e6 | 21052 | if (obj4) { |
093d3ff1 RD |
21053 | { |
21054 | arg5 = (long)(SWIG_As_long(obj4)); | |
21055 | if (SWIG_arg_fail(5)) SWIG_fail; | |
21056 | } | |
994141e6 | 21057 | } |
d14a1e28 RD |
21058 | if (obj5) { |
21059 | { | |
21060 | arg6 = wxString_in_helper(obj5); | |
21061 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 21062 | temp6 = true; |
d14a1e28 RD |
21063 | } |
21064 | } | |
21065 | { | |
e3b71cb8 | 21066 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21068 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21069 | ||
21070 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21071 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21072 | } |
b0f7404b | 21073 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
21074 | { |
21075 | if (temp6) | |
21076 | delete arg6; | |
21077 | } | |
21078 | return resultobj; | |
21079 | fail: | |
21080 | { | |
21081 | if (temp6) | |
21082 | delete arg6; | |
21083 | } | |
21084 | return NULL; | |
21085 | } | |
21086 | ||
21087 | ||
c32bde28 | 21088 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21089 | PyObject *resultobj; |
21090 | wxToolBar *result; | |
21091 | char *kwnames[] = { | |
21092 | NULL | |
21093 | }; | |
21094 | ||
21095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
21096 | { | |
e3b71cb8 | 21097 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21099 | result = (wxToolBar *)new wxToolBar(); | |
21100 | ||
21101 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21102 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21103 | } |
b0f7404b | 21104 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
21105 | return resultobj; |
21106 | fail: | |
21107 | return NULL; | |
21108 | } | |
21109 | ||
21110 | ||
c32bde28 | 21111 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21112 | PyObject *resultobj; |
21113 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
21114 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 21115 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21116 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21117 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21118 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21119 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21120 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
21121 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
21122 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21123 | bool result; | |
21124 | wxPoint temp4 ; | |
21125 | wxSize temp5 ; | |
ae8162c8 | 21126 | bool temp7 = false ; |
d14a1e28 RD |
21127 | PyObject * obj0 = 0 ; |
21128 | PyObject * obj1 = 0 ; | |
994141e6 | 21129 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21130 | PyObject * obj3 = 0 ; |
21131 | PyObject * obj4 = 0 ; | |
994141e6 | 21132 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21133 | PyObject * obj6 = 0 ; |
21134 | char *kwnames[] = { | |
21135 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21136 | }; | |
21137 | ||
248ed943 | 21138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
21139 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
21140 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21141 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21142 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 21143 | if (obj2) { |
093d3ff1 RD |
21144 | { |
21145 | arg3 = (int)(SWIG_As_int(obj2)); | |
21146 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21147 | } | |
248ed943 | 21148 | } |
d14a1e28 RD |
21149 | if (obj3) { |
21150 | { | |
21151 | arg4 = &temp4; | |
21152 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21153 | } | |
21154 | } | |
21155 | if (obj4) { | |
21156 | { | |
21157 | arg5 = &temp5; | |
21158 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21159 | } | |
21160 | } | |
994141e6 | 21161 | if (obj5) { |
093d3ff1 RD |
21162 | { |
21163 | arg6 = (long)(SWIG_As_long(obj5)); | |
21164 | if (SWIG_arg_fail(6)) SWIG_fail; | |
21165 | } | |
994141e6 | 21166 | } |
d14a1e28 RD |
21167 | if (obj6) { |
21168 | { | |
21169 | arg7 = wxString_in_helper(obj6); | |
21170 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 21171 | temp7 = true; |
d14a1e28 RD |
21172 | } |
21173 | } | |
21174 | { | |
21175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21176 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21177 | ||
21178 | wxPyEndAllowThreads(__tstate); | |
21179 | if (PyErr_Occurred()) SWIG_fail; | |
21180 | } | |
4f89f6a3 RD |
21181 | { |
21182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21183 | } | |
d14a1e28 RD |
21184 | { |
21185 | if (temp7) | |
21186 | delete arg7; | |
21187 | } | |
21188 | return resultobj; | |
21189 | fail: | |
21190 | { | |
21191 | if (temp7) | |
21192 | delete arg7; | |
21193 | } | |
21194 | return NULL; | |
21195 | } | |
21196 | ||
21197 | ||
c32bde28 | 21198 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21199 | PyObject *resultobj; |
21200 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
21201 | int arg2 ; |
21202 | int arg3 ; | |
d14a1e28 RD |
21203 | wxToolBarToolBase *result; |
21204 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21205 | PyObject * obj1 = 0 ; |
21206 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21207 | char *kwnames[] = { |
21208 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21209 | }; | |
21210 | ||
994141e6 | 21211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21212 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
21213 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21214 | { | |
21215 | arg2 = (int)(SWIG_As_int(obj1)); | |
21216 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21217 | } | |
21218 | { | |
21219 | arg3 = (int)(SWIG_As_int(obj2)); | |
21220 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21221 | } | |
d14a1e28 RD |
21222 | { |
21223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21224 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
21225 | ||
21226 | wxPyEndAllowThreads(__tstate); | |
21227 | if (PyErr_Occurred()) SWIG_fail; | |
21228 | } | |
21229 | { | |
412d302d | 21230 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21231 | } |
21232 | return resultobj; | |
21233 | fail: | |
21234 | return NULL; | |
21235 | } | |
21236 | ||
21237 | ||
c32bde28 | 21238 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
22bfe96c | 21239 | PyObject *resultobj; |
093d3ff1 | 21240 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
21241 | wxVisualAttributes result; |
21242 | PyObject * obj0 = 0 ; | |
21243 | char *kwnames[] = { | |
21244 | (char *) "variant", NULL | |
21245 | }; | |
21246 | ||
21247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
21248 | if (obj0) { | |
093d3ff1 RD |
21249 | { |
21250 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
21251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21252 | } | |
22bfe96c RD |
21253 | } |
21254 | { | |
110da5b0 | 21255 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
21256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21257 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
21258 | ||
21259 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 21260 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
21261 | } |
21262 | { | |
21263 | wxVisualAttributes * resultptr; | |
093d3ff1 | 21264 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
22bfe96c RD |
21265 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
21266 | } | |
21267 | return resultobj; | |
21268 | fail: | |
21269 | return NULL; | |
21270 | } | |
21271 | ||
21272 | ||
c32bde28 | 21273 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21274 | PyObject *obj; |
21275 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21276 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
21277 | Py_INCREF(obj); | |
21278 | return Py_BuildValue((char *)""); | |
21279 | } | |
c32bde28 | 21280 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
21281 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
21282 | return 1; | |
21283 | } | |
21284 | ||
21285 | ||
093d3ff1 | 21286 | static PyObject *_wrap_ListCtrlNameStr_get(void) { |
b2dc1044 RD |
21287 | PyObject *pyobj; |
21288 | ||
21289 | { | |
21290 | #if wxUSE_UNICODE | |
21291 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21292 | #else | |
21293 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21294 | #endif | |
21295 | } | |
21296 | return pyobj; | |
21297 | } | |
21298 | ||
21299 | ||
c32bde28 | 21300 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21301 | PyObject *resultobj; |
21302 | wxColour const &arg1_defvalue = wxNullColour ; | |
21303 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
21304 | wxColour const &arg2_defvalue = wxNullColour ; | |
21305 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
21306 | wxFont const &arg3_defvalue = wxNullFont ; | |
21307 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
21308 | wxListItemAttr *result; | |
21309 | wxColour temp1 ; | |
21310 | wxColour temp2 ; | |
21311 | PyObject * obj0 = 0 ; | |
21312 | PyObject * obj1 = 0 ; | |
21313 | PyObject * obj2 = 0 ; | |
21314 | char *kwnames[] = { | |
21315 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
21316 | }; | |
21317 | ||
21318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21319 | if (obj0) { | |
21320 | { | |
21321 | arg1 = &temp1; | |
21322 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
21323 | } | |
21324 | } | |
21325 | if (obj1) { | |
21326 | { | |
21327 | arg2 = &temp2; | |
21328 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21329 | } | |
21330 | } | |
21331 | if (obj2) { | |
093d3ff1 RD |
21332 | { |
21333 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21334 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21335 | if (arg3 == NULL) { | |
21336 | SWIG_null_ref("wxFont"); | |
21337 | } | |
21338 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
21339 | } |
21340 | } | |
21341 | { | |
21342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21343 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
21344 | ||
21345 | wxPyEndAllowThreads(__tstate); | |
21346 | if (PyErr_Occurred()) SWIG_fail; | |
21347 | } | |
15afbcd0 | 21348 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
21349 | return resultobj; |
21350 | fail: | |
21351 | return NULL; | |
21352 | } | |
21353 | ||
21354 | ||
c32bde28 | 21355 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21356 | PyObject *resultobj; |
21357 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21358 | wxColour *arg2 = 0 ; | |
21359 | wxColour temp2 ; | |
21360 | PyObject * obj0 = 0 ; | |
21361 | PyObject * obj1 = 0 ; | |
21362 | char *kwnames[] = { | |
21363 | (char *) "self",(char *) "colText", NULL | |
21364 | }; | |
21365 | ||
21366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21369 | { |
21370 | arg2 = &temp2; | |
21371 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21372 | } | |
21373 | { | |
21374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21375 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21376 | ||
21377 | wxPyEndAllowThreads(__tstate); | |
21378 | if (PyErr_Occurred()) SWIG_fail; | |
21379 | } | |
21380 | Py_INCREF(Py_None); resultobj = Py_None; | |
21381 | return resultobj; | |
21382 | fail: | |
21383 | return NULL; | |
21384 | } | |
21385 | ||
21386 | ||
c32bde28 | 21387 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21388 | PyObject *resultobj; |
21389 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21390 | wxColour *arg2 = 0 ; | |
21391 | wxColour temp2 ; | |
21392 | PyObject * obj0 = 0 ; | |
21393 | PyObject * obj1 = 0 ; | |
21394 | char *kwnames[] = { | |
21395 | (char *) "self",(char *) "colBack", NULL | |
21396 | }; | |
21397 | ||
21398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21399 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21400 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21401 | { |
21402 | arg2 = &temp2; | |
21403 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21404 | } | |
21405 | { | |
21406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21407 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21408 | ||
21409 | wxPyEndAllowThreads(__tstate); | |
21410 | if (PyErr_Occurred()) SWIG_fail; | |
21411 | } | |
21412 | Py_INCREF(Py_None); resultobj = Py_None; | |
21413 | return resultobj; | |
21414 | fail: | |
21415 | return NULL; | |
21416 | } | |
21417 | ||
21418 | ||
c32bde28 | 21419 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21420 | PyObject *resultobj; |
21421 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21422 | wxFont *arg2 = 0 ; | |
21423 | PyObject * obj0 = 0 ; | |
21424 | PyObject * obj1 = 0 ; | |
21425 | char *kwnames[] = { | |
21426 | (char *) "self",(char *) "font", NULL | |
21427 | }; | |
21428 | ||
21429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21432 | { | |
21433 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21434 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21435 | if (arg2 == NULL) { | |
21436 | SWIG_null_ref("wxFont"); | |
21437 | } | |
21438 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
21439 | } |
21440 | { | |
21441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21442 | (arg1)->SetFont((wxFont const &)*arg2); | |
21443 | ||
21444 | wxPyEndAllowThreads(__tstate); | |
21445 | if (PyErr_Occurred()) SWIG_fail; | |
21446 | } | |
21447 | Py_INCREF(Py_None); resultobj = Py_None; | |
21448 | return resultobj; | |
21449 | fail: | |
21450 | return NULL; | |
21451 | } | |
21452 | ||
21453 | ||
c32bde28 | 21454 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21455 | PyObject *resultobj; |
21456 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21457 | bool result; | |
21458 | PyObject * obj0 = 0 ; | |
21459 | char *kwnames[] = { | |
21460 | (char *) "self", NULL | |
21461 | }; | |
21462 | ||
21463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21466 | { |
21467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21468 | result = (bool)(arg1)->HasTextColour(); | |
21469 | ||
21470 | wxPyEndAllowThreads(__tstate); | |
21471 | if (PyErr_Occurred()) SWIG_fail; | |
21472 | } | |
4f89f6a3 RD |
21473 | { |
21474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21475 | } | |
d14a1e28 RD |
21476 | return resultobj; |
21477 | fail: | |
21478 | return NULL; | |
21479 | } | |
21480 | ||
21481 | ||
c32bde28 | 21482 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21483 | PyObject *resultobj; |
21484 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21485 | bool result; | |
21486 | PyObject * obj0 = 0 ; | |
21487 | char *kwnames[] = { | |
21488 | (char *) "self", NULL | |
21489 | }; | |
21490 | ||
21491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21494 | { |
21495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21496 | result = (bool)(arg1)->HasBackgroundColour(); | |
21497 | ||
21498 | wxPyEndAllowThreads(__tstate); | |
21499 | if (PyErr_Occurred()) SWIG_fail; | |
21500 | } | |
4f89f6a3 RD |
21501 | { |
21502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21503 | } | |
d14a1e28 RD |
21504 | return resultobj; |
21505 | fail: | |
21506 | return NULL; | |
21507 | } | |
21508 | ||
21509 | ||
c32bde28 | 21510 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21511 | PyObject *resultobj; |
21512 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21513 | bool result; | |
21514 | PyObject * obj0 = 0 ; | |
21515 | char *kwnames[] = { | |
21516 | (char *) "self", NULL | |
21517 | }; | |
21518 | ||
21519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21520 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21521 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21522 | { |
21523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21524 | result = (bool)(arg1)->HasFont(); | |
21525 | ||
21526 | wxPyEndAllowThreads(__tstate); | |
21527 | if (PyErr_Occurred()) SWIG_fail; | |
21528 | } | |
4f89f6a3 RD |
21529 | { |
21530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21531 | } | |
d14a1e28 RD |
21532 | return resultobj; |
21533 | fail: | |
21534 | return NULL; | |
21535 | } | |
21536 | ||
21537 | ||
c32bde28 | 21538 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21539 | PyObject *resultobj; |
21540 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21541 | wxColour result; | |
21542 | PyObject * obj0 = 0 ; | |
21543 | char *kwnames[] = { | |
21544 | (char *) "self", NULL | |
21545 | }; | |
21546 | ||
21547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21550 | { |
21551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21552 | result = (arg1)->GetTextColour(); | |
21553 | ||
21554 | wxPyEndAllowThreads(__tstate); | |
21555 | if (PyErr_Occurred()) SWIG_fail; | |
21556 | } | |
21557 | { | |
21558 | wxColour * resultptr; | |
093d3ff1 | 21559 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 21560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21561 | } |
21562 | return resultobj; | |
21563 | fail: | |
21564 | return NULL; | |
21565 | } | |
21566 | ||
21567 | ||
c32bde28 | 21568 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21569 | PyObject *resultobj; |
21570 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21571 | wxColour result; | |
21572 | PyObject * obj0 = 0 ; | |
21573 | char *kwnames[] = { | |
21574 | (char *) "self", NULL | |
21575 | }; | |
21576 | ||
21577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21580 | { |
21581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21582 | result = (arg1)->GetBackgroundColour(); | |
21583 | ||
21584 | wxPyEndAllowThreads(__tstate); | |
21585 | if (PyErr_Occurred()) SWIG_fail; | |
21586 | } | |
21587 | { | |
21588 | wxColour * resultptr; | |
093d3ff1 | 21589 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 21590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21591 | } |
21592 | return resultobj; | |
21593 | fail: | |
21594 | return NULL; | |
21595 | } | |
21596 | ||
21597 | ||
c32bde28 | 21598 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21599 | PyObject *resultobj; |
21600 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21601 | wxFont result; | |
21602 | PyObject * obj0 = 0 ; | |
21603 | char *kwnames[] = { | |
21604 | (char *) "self", NULL | |
21605 | }; | |
21606 | ||
21607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21610 | { |
21611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21612 | result = (arg1)->GetFont(); | |
21613 | ||
21614 | wxPyEndAllowThreads(__tstate); | |
21615 | if (PyErr_Occurred()) SWIG_fail; | |
21616 | } | |
21617 | { | |
21618 | wxFont * resultptr; | |
093d3ff1 | 21619 | resultptr = new wxFont((wxFont &)(result)); |
15afbcd0 | 21620 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
21621 | } |
21622 | return resultobj; | |
21623 | fail: | |
21624 | return NULL; | |
21625 | } | |
21626 | ||
21627 | ||
c32bde28 | 21628 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21629 | PyObject *resultobj; |
21630 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21631 | PyObject * obj0 = 0 ; | |
21632 | char *kwnames[] = { | |
21633 | (char *) "self", NULL | |
21634 | }; | |
21635 | ||
21636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21637 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
21638 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21639 | { |
21640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21641 | wxListItemAttr_Destroy(arg1); | |
21642 | ||
21643 | wxPyEndAllowThreads(__tstate); | |
21644 | if (PyErr_Occurred()) SWIG_fail; | |
21645 | } | |
21646 | Py_INCREF(Py_None); resultobj = Py_None; | |
21647 | return resultobj; | |
21648 | fail: | |
21649 | return NULL; | |
21650 | } | |
21651 | ||
21652 | ||
c32bde28 | 21653 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
21654 | PyObject *obj; |
21655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21656 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
21657 | Py_INCREF(obj); | |
21658 | return Py_BuildValue((char *)""); | |
21659 | } | |
c32bde28 | 21660 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21661 | PyObject *resultobj; |
21662 | wxListItem *result; | |
21663 | char *kwnames[] = { | |
21664 | NULL | |
21665 | }; | |
21666 | ||
21667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
21668 | { | |
21669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21670 | result = (wxListItem *)new wxListItem(); | |
21671 | ||
21672 | wxPyEndAllowThreads(__tstate); | |
21673 | if (PyErr_Occurred()) SWIG_fail; | |
21674 | } | |
21675 | { | |
412d302d | 21676 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
21677 | } |
21678 | return resultobj; | |
21679 | fail: | |
21680 | return NULL; | |
21681 | } | |
21682 | ||
21683 | ||
c32bde28 | 21684 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21685 | PyObject *resultobj; |
21686 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21687 | PyObject * obj0 = 0 ; | |
21688 | char *kwnames[] = { | |
21689 | (char *) "self", NULL | |
21690 | }; | |
21691 | ||
21692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21695 | { |
21696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21697 | delete arg1; | |
21698 | ||
21699 | wxPyEndAllowThreads(__tstate); | |
21700 | if (PyErr_Occurred()) SWIG_fail; | |
21701 | } | |
21702 | Py_INCREF(Py_None); resultobj = Py_None; | |
21703 | return resultobj; | |
21704 | fail: | |
21705 | return NULL; | |
21706 | } | |
21707 | ||
21708 | ||
c32bde28 | 21709 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21710 | PyObject *resultobj; |
21711 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21712 | PyObject * obj0 = 0 ; | |
21713 | char *kwnames[] = { | |
21714 | (char *) "self", NULL | |
21715 | }; | |
21716 | ||
21717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21720 | { |
21721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21722 | (arg1)->Clear(); | |
21723 | ||
21724 | wxPyEndAllowThreads(__tstate); | |
21725 | if (PyErr_Occurred()) SWIG_fail; | |
21726 | } | |
21727 | Py_INCREF(Py_None); resultobj = Py_None; | |
21728 | return resultobj; | |
21729 | fail: | |
21730 | return NULL; | |
21731 | } | |
21732 | ||
21733 | ||
c32bde28 | 21734 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21735 | PyObject *resultobj; |
21736 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21737 | PyObject * obj0 = 0 ; | |
21738 | char *kwnames[] = { | |
21739 | (char *) "self", NULL | |
21740 | }; | |
21741 | ||
21742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21745 | { |
21746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21747 | (arg1)->ClearAttributes(); | |
21748 | ||
21749 | wxPyEndAllowThreads(__tstate); | |
21750 | if (PyErr_Occurred()) SWIG_fail; | |
21751 | } | |
21752 | Py_INCREF(Py_None); resultobj = Py_None; | |
21753 | return resultobj; | |
21754 | fail: | |
21755 | return NULL; | |
21756 | } | |
21757 | ||
21758 | ||
c32bde28 | 21759 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21760 | PyObject *resultobj; |
21761 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21762 | long arg2 ; | |
21763 | PyObject * obj0 = 0 ; | |
994141e6 | 21764 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21765 | char *kwnames[] = { |
21766 | (char *) "self",(char *) "mask", NULL | |
21767 | }; | |
21768 | ||
994141e6 | 21769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21772 | { | |
21773 | arg2 = (long)(SWIG_As_long(obj1)); | |
21774 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21775 | } | |
d14a1e28 RD |
21776 | { |
21777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21778 | (arg1)->SetMask(arg2); | |
21779 | ||
21780 | wxPyEndAllowThreads(__tstate); | |
21781 | if (PyErr_Occurred()) SWIG_fail; | |
21782 | } | |
21783 | Py_INCREF(Py_None); resultobj = Py_None; | |
21784 | return resultobj; | |
21785 | fail: | |
21786 | return NULL; | |
21787 | } | |
21788 | ||
21789 | ||
c32bde28 | 21790 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21791 | PyObject *resultobj; |
21792 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21793 | long arg2 ; | |
21794 | PyObject * obj0 = 0 ; | |
994141e6 | 21795 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21796 | char *kwnames[] = { |
21797 | (char *) "self",(char *) "id", NULL | |
21798 | }; | |
21799 | ||
994141e6 | 21800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21801 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21802 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21803 | { | |
21804 | arg2 = (long)(SWIG_As_long(obj1)); | |
21805 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21806 | } | |
d14a1e28 RD |
21807 | { |
21808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21809 | (arg1)->SetId(arg2); | |
21810 | ||
21811 | wxPyEndAllowThreads(__tstate); | |
21812 | if (PyErr_Occurred()) SWIG_fail; | |
21813 | } | |
21814 | Py_INCREF(Py_None); resultobj = Py_None; | |
21815 | return resultobj; | |
21816 | fail: | |
21817 | return NULL; | |
21818 | } | |
21819 | ||
21820 | ||
c32bde28 | 21821 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21822 | PyObject *resultobj; |
21823 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21824 | int arg2 ; | |
21825 | PyObject * obj0 = 0 ; | |
994141e6 | 21826 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21827 | char *kwnames[] = { |
21828 | (char *) "self",(char *) "col", NULL | |
21829 | }; | |
21830 | ||
994141e6 | 21831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21834 | { | |
21835 | arg2 = (int)(SWIG_As_int(obj1)); | |
21836 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21837 | } | |
d14a1e28 RD |
21838 | { |
21839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21840 | (arg1)->SetColumn(arg2); | |
21841 | ||
21842 | wxPyEndAllowThreads(__tstate); | |
21843 | if (PyErr_Occurred()) SWIG_fail; | |
21844 | } | |
21845 | Py_INCREF(Py_None); resultobj = Py_None; | |
21846 | return resultobj; | |
21847 | fail: | |
21848 | return NULL; | |
21849 | } | |
21850 | ||
21851 | ||
c32bde28 | 21852 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21853 | PyObject *resultobj; |
21854 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21855 | long arg2 ; | |
21856 | PyObject * obj0 = 0 ; | |
994141e6 | 21857 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21858 | char *kwnames[] = { |
21859 | (char *) "self",(char *) "state", NULL | |
21860 | }; | |
21861 | ||
994141e6 | 21862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21863 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21864 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21865 | { | |
21866 | arg2 = (long)(SWIG_As_long(obj1)); | |
21867 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21868 | } | |
d14a1e28 RD |
21869 | { |
21870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21871 | (arg1)->SetState(arg2); | |
21872 | ||
21873 | wxPyEndAllowThreads(__tstate); | |
21874 | if (PyErr_Occurred()) SWIG_fail; | |
21875 | } | |
21876 | Py_INCREF(Py_None); resultobj = Py_None; | |
21877 | return resultobj; | |
21878 | fail: | |
21879 | return NULL; | |
21880 | } | |
21881 | ||
21882 | ||
c32bde28 | 21883 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21884 | PyObject *resultobj; |
21885 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21886 | long arg2 ; | |
21887 | PyObject * obj0 = 0 ; | |
994141e6 | 21888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21889 | char *kwnames[] = { |
21890 | (char *) "self",(char *) "stateMask", NULL | |
21891 | }; | |
21892 | ||
994141e6 | 21893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21894 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21895 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21896 | { | |
21897 | arg2 = (long)(SWIG_As_long(obj1)); | |
21898 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21899 | } | |
d14a1e28 RD |
21900 | { |
21901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21902 | (arg1)->SetStateMask(arg2); | |
21903 | ||
21904 | wxPyEndAllowThreads(__tstate); | |
21905 | if (PyErr_Occurred()) SWIG_fail; | |
21906 | } | |
21907 | Py_INCREF(Py_None); resultobj = Py_None; | |
21908 | return resultobj; | |
21909 | fail: | |
21910 | return NULL; | |
21911 | } | |
21912 | ||
21913 | ||
c32bde28 | 21914 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21915 | PyObject *resultobj; |
21916 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21917 | wxString *arg2 = 0 ; | |
ae8162c8 | 21918 | bool temp2 = false ; |
d14a1e28 RD |
21919 | PyObject * obj0 = 0 ; |
21920 | PyObject * obj1 = 0 ; | |
21921 | char *kwnames[] = { | |
21922 | (char *) "self",(char *) "text", NULL | |
21923 | }; | |
21924 | ||
21925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21928 | { |
21929 | arg2 = wxString_in_helper(obj1); | |
21930 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 21931 | temp2 = true; |
d14a1e28 RD |
21932 | } |
21933 | { | |
21934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21935 | (arg1)->SetText((wxString const &)*arg2); | |
21936 | ||
21937 | wxPyEndAllowThreads(__tstate); | |
21938 | if (PyErr_Occurred()) SWIG_fail; | |
21939 | } | |
21940 | Py_INCREF(Py_None); resultobj = Py_None; | |
21941 | { | |
21942 | if (temp2) | |
21943 | delete arg2; | |
21944 | } | |
21945 | return resultobj; | |
21946 | fail: | |
21947 | { | |
21948 | if (temp2) | |
21949 | delete arg2; | |
21950 | } | |
21951 | return NULL; | |
21952 | } | |
21953 | ||
21954 | ||
c32bde28 | 21955 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21956 | PyObject *resultobj; |
21957 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21958 | int arg2 ; | |
21959 | PyObject * obj0 = 0 ; | |
994141e6 | 21960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21961 | char *kwnames[] = { |
21962 | (char *) "self",(char *) "image", NULL | |
21963 | }; | |
21964 | ||
994141e6 | 21965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21966 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21968 | { | |
21969 | arg2 = (int)(SWIG_As_int(obj1)); | |
21970 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21971 | } | |
d14a1e28 RD |
21972 | { |
21973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21974 | (arg1)->SetImage(arg2); | |
21975 | ||
21976 | wxPyEndAllowThreads(__tstate); | |
21977 | if (PyErr_Occurred()) SWIG_fail; | |
21978 | } | |
21979 | Py_INCREF(Py_None); resultobj = Py_None; | |
21980 | return resultobj; | |
21981 | fail: | |
21982 | return NULL; | |
21983 | } | |
21984 | ||
21985 | ||
c32bde28 | 21986 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
21987 | PyObject *resultobj; |
21988 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21989 | long arg2 ; | |
21990 | PyObject * obj0 = 0 ; | |
994141e6 | 21991 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21992 | char *kwnames[] = { |
21993 | (char *) "self",(char *) "data", NULL | |
21994 | }; | |
21995 | ||
994141e6 | 21996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
21998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21999 | { | |
22000 | arg2 = (long)(SWIG_As_long(obj1)); | |
22001 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22002 | } | |
d14a1e28 RD |
22003 | { |
22004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22005 | (arg1)->SetData(arg2); | |
22006 | ||
22007 | wxPyEndAllowThreads(__tstate); | |
22008 | if (PyErr_Occurred()) SWIG_fail; | |
22009 | } | |
22010 | Py_INCREF(Py_None); resultobj = Py_None; | |
22011 | return resultobj; | |
22012 | fail: | |
22013 | return NULL; | |
22014 | } | |
22015 | ||
22016 | ||
c32bde28 | 22017 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22018 | PyObject *resultobj; |
22019 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22020 | int arg2 ; | |
22021 | PyObject * obj0 = 0 ; | |
994141e6 | 22022 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22023 | char *kwnames[] = { |
22024 | (char *) "self",(char *) "width", NULL | |
22025 | }; | |
22026 | ||
994141e6 | 22027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22030 | { | |
22031 | arg2 = (int)(SWIG_As_int(obj1)); | |
22032 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22033 | } | |
d14a1e28 RD |
22034 | { |
22035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22036 | (arg1)->SetWidth(arg2); | |
22037 | ||
22038 | wxPyEndAllowThreads(__tstate); | |
22039 | if (PyErr_Occurred()) SWIG_fail; | |
22040 | } | |
22041 | Py_INCREF(Py_None); resultobj = Py_None; | |
22042 | return resultobj; | |
22043 | fail: | |
22044 | return NULL; | |
22045 | } | |
22046 | ||
22047 | ||
c32bde28 | 22048 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22049 | PyObject *resultobj; |
22050 | wxListItem *arg1 = (wxListItem *) 0 ; | |
093d3ff1 | 22051 | wxListColumnFormat arg2 ; |
d14a1e28 | 22052 | PyObject * obj0 = 0 ; |
994141e6 | 22053 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22054 | char *kwnames[] = { |
22055 | (char *) "self",(char *) "align", NULL | |
22056 | }; | |
22057 | ||
994141e6 | 22058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22061 | { | |
22062 | arg2 = (wxListColumnFormat)(SWIG_As_int(obj1)); | |
22063 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22064 | } | |
d14a1e28 RD |
22065 | { |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
22072 | Py_INCREF(Py_None); resultobj = Py_None; | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
c32bde28 | 22079 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22080 | PyObject *resultobj; |
22081 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22082 | wxColour *arg2 = 0 ; | |
22083 | wxColour temp2 ; | |
22084 | PyObject * obj0 = 0 ; | |
22085 | PyObject * obj1 = 0 ; | |
22086 | char *kwnames[] = { | |
22087 | (char *) "self",(char *) "colText", NULL | |
22088 | }; | |
22089 | ||
22090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22093 | { |
22094 | arg2 = &temp2; | |
22095 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22096 | } | |
22097 | { | |
22098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22099 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22100 | ||
22101 | wxPyEndAllowThreads(__tstate); | |
22102 | if (PyErr_Occurred()) SWIG_fail; | |
22103 | } | |
22104 | Py_INCREF(Py_None); resultobj = Py_None; | |
22105 | return resultobj; | |
22106 | fail: | |
22107 | return NULL; | |
22108 | } | |
22109 | ||
22110 | ||
c32bde28 | 22111 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22112 | PyObject *resultobj; |
22113 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22114 | wxColour *arg2 = 0 ; | |
22115 | wxColour temp2 ; | |
22116 | PyObject * obj0 = 0 ; | |
22117 | PyObject * obj1 = 0 ; | |
22118 | char *kwnames[] = { | |
22119 | (char *) "self",(char *) "colBack", NULL | |
22120 | }; | |
22121 | ||
22122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22125 | { |
22126 | arg2 = &temp2; | |
22127 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22128 | } | |
22129 | { | |
22130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22131 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22132 | ||
22133 | wxPyEndAllowThreads(__tstate); | |
22134 | if (PyErr_Occurred()) SWIG_fail; | |
22135 | } | |
22136 | Py_INCREF(Py_None); resultobj = Py_None; | |
22137 | return resultobj; | |
22138 | fail: | |
22139 | return NULL; | |
22140 | } | |
22141 | ||
22142 | ||
c32bde28 | 22143 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22144 | PyObject *resultobj; |
22145 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22146 | wxFont *arg2 = 0 ; | |
22147 | PyObject * obj0 = 0 ; | |
22148 | PyObject * obj1 = 0 ; | |
22149 | char *kwnames[] = { | |
22150 | (char *) "self",(char *) "font", NULL | |
22151 | }; | |
22152 | ||
22153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22156 | { | |
22157 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
22158 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22159 | if (arg2 == NULL) { | |
22160 | SWIG_null_ref("wxFont"); | |
22161 | } | |
22162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22163 | } |
22164 | { | |
22165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22166 | (arg1)->SetFont((wxFont const &)*arg2); | |
22167 | ||
22168 | wxPyEndAllowThreads(__tstate); | |
22169 | if (PyErr_Occurred()) SWIG_fail; | |
22170 | } | |
22171 | Py_INCREF(Py_None); resultobj = Py_None; | |
22172 | return resultobj; | |
22173 | fail: | |
22174 | return NULL; | |
22175 | } | |
22176 | ||
22177 | ||
c32bde28 | 22178 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22179 | PyObject *resultobj; |
22180 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22181 | long result; | |
22182 | PyObject * obj0 = 0 ; | |
22183 | char *kwnames[] = { | |
22184 | (char *) "self", NULL | |
22185 | }; | |
22186 | ||
22187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22190 | { |
22191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22192 | result = (long)(arg1)->GetMask(); | |
22193 | ||
22194 | wxPyEndAllowThreads(__tstate); | |
22195 | if (PyErr_Occurred()) SWIG_fail; | |
22196 | } | |
093d3ff1 RD |
22197 | { |
22198 | resultobj = SWIG_From_long((long)(result)); | |
22199 | } | |
d14a1e28 RD |
22200 | return resultobj; |
22201 | fail: | |
22202 | return NULL; | |
22203 | } | |
22204 | ||
22205 | ||
c32bde28 | 22206 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22207 | PyObject *resultobj; |
22208 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22209 | long result; | |
22210 | PyObject * obj0 = 0 ; | |
22211 | char *kwnames[] = { | |
22212 | (char *) "self", NULL | |
22213 | }; | |
22214 | ||
22215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22216 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22217 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22218 | { |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | result = (long)(arg1)->GetId(); | |
22221 | ||
22222 | wxPyEndAllowThreads(__tstate); | |
22223 | if (PyErr_Occurred()) SWIG_fail; | |
22224 | } | |
093d3ff1 RD |
22225 | { |
22226 | resultobj = SWIG_From_long((long)(result)); | |
22227 | } | |
d14a1e28 RD |
22228 | return resultobj; |
22229 | fail: | |
22230 | return NULL; | |
22231 | } | |
22232 | ||
22233 | ||
c32bde28 | 22234 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22235 | PyObject *resultobj; |
22236 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22237 | int result; | |
22238 | PyObject * obj0 = 0 ; | |
22239 | char *kwnames[] = { | |
22240 | (char *) "self", NULL | |
22241 | }; | |
22242 | ||
22243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22244 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22245 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22246 | { |
22247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22248 | result = (int)(arg1)->GetColumn(); | |
22249 | ||
22250 | wxPyEndAllowThreads(__tstate); | |
22251 | if (PyErr_Occurred()) SWIG_fail; | |
22252 | } | |
093d3ff1 RD |
22253 | { |
22254 | resultobj = SWIG_From_int((int)(result)); | |
22255 | } | |
d14a1e28 RD |
22256 | return resultobj; |
22257 | fail: | |
22258 | return NULL; | |
22259 | } | |
22260 | ||
22261 | ||
c32bde28 | 22262 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22263 | PyObject *resultobj; |
22264 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22265 | long result; | |
22266 | PyObject * obj0 = 0 ; | |
22267 | char *kwnames[] = { | |
22268 | (char *) "self", NULL | |
22269 | }; | |
22270 | ||
22271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22274 | { |
22275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22276 | result = (long)(arg1)->GetState(); | |
22277 | ||
22278 | wxPyEndAllowThreads(__tstate); | |
22279 | if (PyErr_Occurred()) SWIG_fail; | |
22280 | } | |
093d3ff1 RD |
22281 | { |
22282 | resultobj = SWIG_From_long((long)(result)); | |
22283 | } | |
d14a1e28 RD |
22284 | return resultobj; |
22285 | fail: | |
22286 | return NULL; | |
22287 | } | |
22288 | ||
22289 | ||
c32bde28 | 22290 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22291 | PyObject *resultobj; |
22292 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22293 | wxString *result; | |
22294 | PyObject * obj0 = 0 ; | |
22295 | char *kwnames[] = { | |
22296 | (char *) "self", NULL | |
22297 | }; | |
22298 | ||
22299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22302 | { |
22303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22304 | { | |
22305 | wxString const &_result_ref = (arg1)->GetText(); | |
22306 | result = (wxString *) &_result_ref; | |
22307 | } | |
22308 | ||
22309 | wxPyEndAllowThreads(__tstate); | |
22310 | if (PyErr_Occurred()) SWIG_fail; | |
22311 | } | |
cc6dd355 RD |
22312 | { |
22313 | #if wxUSE_UNICODE | |
22314 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22315 | #else | |
22316 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22317 | #endif | |
22318 | } | |
d14a1e28 RD |
22319 | return resultobj; |
22320 | fail: | |
22321 | return NULL; | |
22322 | } | |
22323 | ||
22324 | ||
c32bde28 | 22325 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22326 | PyObject *resultobj; |
22327 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22328 | int result; | |
22329 | PyObject * obj0 = 0 ; | |
22330 | char *kwnames[] = { | |
22331 | (char *) "self", NULL | |
22332 | }; | |
22333 | ||
22334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22337 | { |
22338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22339 | result = (int)(arg1)->GetImage(); | |
22340 | ||
22341 | wxPyEndAllowThreads(__tstate); | |
22342 | if (PyErr_Occurred()) SWIG_fail; | |
22343 | } | |
093d3ff1 RD |
22344 | { |
22345 | resultobj = SWIG_From_int((int)(result)); | |
22346 | } | |
d14a1e28 RD |
22347 | return resultobj; |
22348 | fail: | |
22349 | return NULL; | |
22350 | } | |
22351 | ||
22352 | ||
c32bde28 | 22353 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22354 | PyObject *resultobj; |
22355 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22356 | long result; | |
22357 | PyObject * obj0 = 0 ; | |
22358 | char *kwnames[] = { | |
22359 | (char *) "self", NULL | |
22360 | }; | |
22361 | ||
22362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22365 | { |
22366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22367 | result = (long)(arg1)->GetData(); | |
22368 | ||
22369 | wxPyEndAllowThreads(__tstate); | |
22370 | if (PyErr_Occurred()) SWIG_fail; | |
22371 | } | |
093d3ff1 RD |
22372 | { |
22373 | resultobj = SWIG_From_long((long)(result)); | |
22374 | } | |
d14a1e28 RD |
22375 | return resultobj; |
22376 | fail: | |
22377 | return NULL; | |
22378 | } | |
22379 | ||
22380 | ||
c32bde28 | 22381 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22382 | PyObject *resultobj; |
22383 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22384 | int result; | |
22385 | PyObject * obj0 = 0 ; | |
22386 | char *kwnames[] = { | |
22387 | (char *) "self", NULL | |
22388 | }; | |
22389 | ||
22390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22393 | { |
22394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22395 | result = (int)(arg1)->GetWidth(); | |
22396 | ||
22397 | wxPyEndAllowThreads(__tstate); | |
22398 | if (PyErr_Occurred()) SWIG_fail; | |
22399 | } | |
093d3ff1 RD |
22400 | { |
22401 | resultobj = SWIG_From_int((int)(result)); | |
22402 | } | |
d14a1e28 RD |
22403 | return resultobj; |
22404 | fail: | |
22405 | return NULL; | |
22406 | } | |
22407 | ||
22408 | ||
c32bde28 | 22409 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22410 | PyObject *resultobj; |
22411 | wxListItem *arg1 = (wxListItem *) 0 ; | |
093d3ff1 | 22412 | wxListColumnFormat result; |
d14a1e28 RD |
22413 | PyObject * obj0 = 0 ; |
22414 | char *kwnames[] = { | |
22415 | (char *) "self", NULL | |
22416 | }; | |
22417 | ||
22418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22421 | { |
22422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22423 | result = (wxListColumnFormat)(arg1)->GetAlign(); |
d14a1e28 RD |
22424 | |
22425 | wxPyEndAllowThreads(__tstate); | |
22426 | if (PyErr_Occurred()) SWIG_fail; | |
22427 | } | |
093d3ff1 | 22428 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
22429 | return resultobj; |
22430 | fail: | |
22431 | return NULL; | |
22432 | } | |
22433 | ||
22434 | ||
c32bde28 | 22435 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22436 | PyObject *resultobj; |
22437 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22438 | wxListItemAttr *result; | |
22439 | PyObject * obj0 = 0 ; | |
22440 | char *kwnames[] = { | |
22441 | (char *) "self", NULL | |
22442 | }; | |
22443 | ||
22444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22447 | { |
22448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22449 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
22450 | ||
22451 | wxPyEndAllowThreads(__tstate); | |
22452 | if (PyErr_Occurred()) SWIG_fail; | |
22453 | } | |
15afbcd0 | 22454 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
22455 | return resultobj; |
22456 | fail: | |
22457 | return NULL; | |
22458 | } | |
22459 | ||
22460 | ||
c32bde28 | 22461 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22462 | PyObject *resultobj; |
22463 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22464 | bool result; | |
22465 | PyObject * obj0 = 0 ; | |
22466 | char *kwnames[] = { | |
22467 | (char *) "self", NULL | |
22468 | }; | |
22469 | ||
22470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22473 | { |
22474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22475 | result = (bool)(arg1)->HasAttributes(); | |
22476 | ||
22477 | wxPyEndAllowThreads(__tstate); | |
22478 | if (PyErr_Occurred()) SWIG_fail; | |
22479 | } | |
4f89f6a3 RD |
22480 | { |
22481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22482 | } | |
d14a1e28 RD |
22483 | return resultobj; |
22484 | fail: | |
22485 | return NULL; | |
22486 | } | |
22487 | ||
22488 | ||
c32bde28 | 22489 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22490 | PyObject *resultobj; |
22491 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22492 | wxColour result; | |
22493 | PyObject * obj0 = 0 ; | |
22494 | char *kwnames[] = { | |
22495 | (char *) "self", NULL | |
22496 | }; | |
22497 | ||
22498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22501 | { |
22502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22503 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
22504 | ||
22505 | wxPyEndAllowThreads(__tstate); | |
22506 | if (PyErr_Occurred()) SWIG_fail; | |
22507 | } | |
22508 | { | |
22509 | wxColour * resultptr; | |
093d3ff1 | 22510 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 22511 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22512 | } |
22513 | return resultobj; | |
22514 | fail: | |
22515 | return NULL; | |
22516 | } | |
22517 | ||
22518 | ||
c32bde28 | 22519 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22520 | PyObject *resultobj; |
22521 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22522 | wxColour result; | |
22523 | PyObject * obj0 = 0 ; | |
22524 | char *kwnames[] = { | |
22525 | (char *) "self", NULL | |
22526 | }; | |
22527 | ||
22528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22531 | { |
22532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22533 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
22534 | ||
22535 | wxPyEndAllowThreads(__tstate); | |
22536 | if (PyErr_Occurred()) SWIG_fail; | |
22537 | } | |
22538 | { | |
22539 | wxColour * resultptr; | |
093d3ff1 | 22540 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 22541 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22542 | } |
22543 | return resultobj; | |
22544 | fail: | |
22545 | return NULL; | |
22546 | } | |
22547 | ||
22548 | ||
c32bde28 | 22549 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22550 | PyObject *resultobj; |
22551 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22552 | wxFont result; | |
22553 | PyObject * obj0 = 0 ; | |
22554 | char *kwnames[] = { | |
22555 | (char *) "self", NULL | |
22556 | }; | |
22557 | ||
22558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22561 | { |
22562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22563 | result = ((wxListItem const *)arg1)->GetFont(); | |
22564 | ||
22565 | wxPyEndAllowThreads(__tstate); | |
22566 | if (PyErr_Occurred()) SWIG_fail; | |
22567 | } | |
22568 | { | |
22569 | wxFont * resultptr; | |
093d3ff1 | 22570 | resultptr = new wxFont((wxFont &)(result)); |
15afbcd0 | 22571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
22572 | } |
22573 | return resultobj; | |
22574 | fail: | |
22575 | return NULL; | |
22576 | } | |
22577 | ||
22578 | ||
c32bde28 | 22579 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22580 | PyObject *resultobj; |
22581 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22582 | long arg2 ; | |
22583 | PyObject * obj0 = 0 ; | |
994141e6 | 22584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22585 | char *kwnames[] = { |
22586 | (char *) "self",(char *) "m_mask", NULL | |
22587 | }; | |
22588 | ||
994141e6 | 22589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22590 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22591 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22592 | { | |
22593 | arg2 = (long)(SWIG_As_long(obj1)); | |
22594 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22595 | } | |
d14a1e28 RD |
22596 | if (arg1) (arg1)->m_mask = arg2; |
22597 | ||
22598 | Py_INCREF(Py_None); resultobj = Py_None; | |
22599 | return resultobj; | |
22600 | fail: | |
22601 | return NULL; | |
22602 | } | |
22603 | ||
22604 | ||
c32bde28 | 22605 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22606 | PyObject *resultobj; |
22607 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22608 | long result; | |
22609 | PyObject * obj0 = 0 ; | |
22610 | char *kwnames[] = { | |
22611 | (char *) "self", NULL | |
22612 | }; | |
22613 | ||
22614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22615 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22616 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22617 | result = (long) ((arg1)->m_mask); |
22618 | ||
093d3ff1 RD |
22619 | { |
22620 | resultobj = SWIG_From_long((long)(result)); | |
22621 | } | |
d14a1e28 RD |
22622 | return resultobj; |
22623 | fail: | |
22624 | return NULL; | |
22625 | } | |
22626 | ||
22627 | ||
c32bde28 | 22628 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22629 | PyObject *resultobj; |
22630 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22631 | long arg2 ; | |
22632 | PyObject * obj0 = 0 ; | |
994141e6 | 22633 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22634 | char *kwnames[] = { |
22635 | (char *) "self",(char *) "m_itemId", NULL | |
22636 | }; | |
22637 | ||
994141e6 | 22638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22641 | { | |
22642 | arg2 = (long)(SWIG_As_long(obj1)); | |
22643 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22644 | } | |
d14a1e28 RD |
22645 | if (arg1) (arg1)->m_itemId = arg2; |
22646 | ||
22647 | Py_INCREF(Py_None); resultobj = Py_None; | |
22648 | return resultobj; | |
22649 | fail: | |
22650 | return NULL; | |
22651 | } | |
22652 | ||
22653 | ||
c32bde28 | 22654 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22655 | PyObject *resultobj; |
22656 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22657 | long result; | |
22658 | PyObject * obj0 = 0 ; | |
22659 | char *kwnames[] = { | |
22660 | (char *) "self", NULL | |
22661 | }; | |
22662 | ||
22663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22664 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22665 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22666 | result = (long) ((arg1)->m_itemId); |
22667 | ||
093d3ff1 RD |
22668 | { |
22669 | resultobj = SWIG_From_long((long)(result)); | |
22670 | } | |
d14a1e28 RD |
22671 | return resultobj; |
22672 | fail: | |
22673 | return NULL; | |
22674 | } | |
22675 | ||
22676 | ||
c32bde28 | 22677 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22678 | PyObject *resultobj; |
22679 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22680 | int arg2 ; | |
22681 | PyObject * obj0 = 0 ; | |
994141e6 | 22682 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22683 | char *kwnames[] = { |
22684 | (char *) "self",(char *) "m_col", NULL | |
22685 | }; | |
22686 | ||
994141e6 | 22687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22690 | { | |
22691 | arg2 = (int)(SWIG_As_int(obj1)); | |
22692 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22693 | } | |
d14a1e28 RD |
22694 | if (arg1) (arg1)->m_col = arg2; |
22695 | ||
22696 | Py_INCREF(Py_None); resultobj = Py_None; | |
22697 | return resultobj; | |
22698 | fail: | |
22699 | return NULL; | |
22700 | } | |
22701 | ||
22702 | ||
c32bde28 | 22703 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22704 | PyObject *resultobj; |
22705 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22706 | int result; | |
22707 | PyObject * obj0 = 0 ; | |
22708 | char *kwnames[] = { | |
22709 | (char *) "self", NULL | |
22710 | }; | |
22711 | ||
22712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22715 | result = (int) ((arg1)->m_col); |
22716 | ||
093d3ff1 RD |
22717 | { |
22718 | resultobj = SWIG_From_int((int)(result)); | |
22719 | } | |
d14a1e28 RD |
22720 | return resultobj; |
22721 | fail: | |
22722 | return NULL; | |
22723 | } | |
22724 | ||
22725 | ||
c32bde28 | 22726 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22727 | PyObject *resultobj; |
22728 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22729 | long arg2 ; | |
22730 | PyObject * obj0 = 0 ; | |
994141e6 | 22731 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22732 | char *kwnames[] = { |
22733 | (char *) "self",(char *) "m_state", NULL | |
22734 | }; | |
22735 | ||
994141e6 | 22736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22739 | { | |
22740 | arg2 = (long)(SWIG_As_long(obj1)); | |
22741 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22742 | } | |
d14a1e28 RD |
22743 | if (arg1) (arg1)->m_state = arg2; |
22744 | ||
22745 | Py_INCREF(Py_None); resultobj = Py_None; | |
22746 | return resultobj; | |
22747 | fail: | |
22748 | return NULL; | |
22749 | } | |
22750 | ||
22751 | ||
c32bde28 | 22752 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22753 | PyObject *resultobj; |
22754 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22755 | long result; | |
22756 | PyObject * obj0 = 0 ; | |
22757 | char *kwnames[] = { | |
22758 | (char *) "self", NULL | |
22759 | }; | |
22760 | ||
22761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22764 | result = (long) ((arg1)->m_state); |
22765 | ||
093d3ff1 RD |
22766 | { |
22767 | resultobj = SWIG_From_long((long)(result)); | |
22768 | } | |
d14a1e28 RD |
22769 | return resultobj; |
22770 | fail: | |
22771 | return NULL; | |
22772 | } | |
22773 | ||
22774 | ||
c32bde28 | 22775 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22776 | PyObject *resultobj; |
22777 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22778 | long arg2 ; | |
22779 | PyObject * obj0 = 0 ; | |
994141e6 | 22780 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22781 | char *kwnames[] = { |
22782 | (char *) "self",(char *) "m_stateMask", NULL | |
22783 | }; | |
22784 | ||
994141e6 | 22785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22788 | { | |
22789 | arg2 = (long)(SWIG_As_long(obj1)); | |
22790 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22791 | } | |
d14a1e28 RD |
22792 | if (arg1) (arg1)->m_stateMask = arg2; |
22793 | ||
22794 | Py_INCREF(Py_None); resultobj = Py_None; | |
22795 | return resultobj; | |
22796 | fail: | |
22797 | return NULL; | |
22798 | } | |
22799 | ||
22800 | ||
c32bde28 | 22801 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22802 | PyObject *resultobj; |
22803 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22804 | long result; | |
22805 | PyObject * obj0 = 0 ; | |
22806 | char *kwnames[] = { | |
22807 | (char *) "self", NULL | |
22808 | }; | |
22809 | ||
22810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22813 | result = (long) ((arg1)->m_stateMask); |
22814 | ||
093d3ff1 RD |
22815 | { |
22816 | resultobj = SWIG_From_long((long)(result)); | |
22817 | } | |
d14a1e28 RD |
22818 | return resultobj; |
22819 | fail: | |
22820 | return NULL; | |
22821 | } | |
22822 | ||
22823 | ||
c32bde28 | 22824 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22825 | PyObject *resultobj; |
22826 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 22827 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 22828 | bool temp2 = false ; |
d14a1e28 RD |
22829 | PyObject * obj0 = 0 ; |
22830 | PyObject * obj1 = 0 ; | |
22831 | char *kwnames[] = { | |
22832 | (char *) "self",(char *) "m_text", NULL | |
22833 | }; | |
22834 | ||
22835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b RD |
22838 | { |
22839 | arg2 = wxString_in_helper(obj1); | |
22840 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 22841 | temp2 = true; |
7eae615b | 22842 | } |
196addbf | 22843 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
22844 | |
22845 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
22846 | { |
22847 | if (temp2) | |
22848 | delete arg2; | |
22849 | } | |
d14a1e28 RD |
22850 | return resultobj; |
22851 | fail: | |
7eae615b RD |
22852 | { |
22853 | if (temp2) | |
22854 | delete arg2; | |
22855 | } | |
d14a1e28 RD |
22856 | return NULL; |
22857 | } | |
22858 | ||
22859 | ||
c32bde28 | 22860 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22861 | PyObject *resultobj; |
22862 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 22863 | wxString *result; |
d14a1e28 RD |
22864 | PyObject * obj0 = 0 ; |
22865 | char *kwnames[] = { | |
22866 | (char *) "self", NULL | |
22867 | }; | |
22868 | ||
22869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
196addbf | 22872 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
22873 | |
22874 | { | |
22875 | #if wxUSE_UNICODE | |
196addbf | 22876 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 22877 | #else |
196addbf | 22878 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
22879 | #endif |
22880 | } | |
22881 | return resultobj; | |
22882 | fail: | |
22883 | return NULL; | |
22884 | } | |
22885 | ||
22886 | ||
c32bde28 | 22887 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22888 | PyObject *resultobj; |
22889 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22890 | int arg2 ; | |
22891 | PyObject * obj0 = 0 ; | |
994141e6 | 22892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22893 | char *kwnames[] = { |
22894 | (char *) "self",(char *) "m_image", NULL | |
22895 | }; | |
22896 | ||
994141e6 | 22897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22900 | { | |
22901 | arg2 = (int)(SWIG_As_int(obj1)); | |
22902 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22903 | } | |
d14a1e28 RD |
22904 | if (arg1) (arg1)->m_image = arg2; |
22905 | ||
22906 | Py_INCREF(Py_None); resultobj = Py_None; | |
22907 | return resultobj; | |
22908 | fail: | |
22909 | return NULL; | |
22910 | } | |
22911 | ||
22912 | ||
c32bde28 | 22913 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22914 | PyObject *resultobj; |
22915 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22916 | int result; | |
22917 | PyObject * obj0 = 0 ; | |
22918 | char *kwnames[] = { | |
22919 | (char *) "self", NULL | |
22920 | }; | |
22921 | ||
22922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22925 | result = (int) ((arg1)->m_image); |
22926 | ||
093d3ff1 RD |
22927 | { |
22928 | resultobj = SWIG_From_int((int)(result)); | |
22929 | } | |
d14a1e28 RD |
22930 | return resultobj; |
22931 | fail: | |
22932 | return NULL; | |
22933 | } | |
22934 | ||
22935 | ||
c32bde28 | 22936 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22937 | PyObject *resultobj; |
22938 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22939 | long arg2 ; | |
22940 | PyObject * obj0 = 0 ; | |
994141e6 | 22941 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22942 | char *kwnames[] = { |
22943 | (char *) "self",(char *) "m_data", NULL | |
22944 | }; | |
22945 | ||
994141e6 | 22946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22949 | { | |
22950 | arg2 = (long)(SWIG_As_long(obj1)); | |
22951 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22952 | } | |
d14a1e28 RD |
22953 | if (arg1) (arg1)->m_data = arg2; |
22954 | ||
22955 | Py_INCREF(Py_None); resultobj = Py_None; | |
22956 | return resultobj; | |
22957 | fail: | |
22958 | return NULL; | |
22959 | } | |
22960 | ||
22961 | ||
c32bde28 | 22962 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22963 | PyObject *resultobj; |
22964 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22965 | long result; | |
22966 | PyObject * obj0 = 0 ; | |
22967 | char *kwnames[] = { | |
22968 | (char *) "self", NULL | |
22969 | }; | |
22970 | ||
22971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22974 | result = (long) ((arg1)->m_data); |
22975 | ||
093d3ff1 RD |
22976 | { |
22977 | resultobj = SWIG_From_long((long)(result)); | |
22978 | } | |
d14a1e28 RD |
22979 | return resultobj; |
22980 | fail: | |
22981 | return NULL; | |
22982 | } | |
22983 | ||
22984 | ||
c32bde28 | 22985 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
22986 | PyObject *resultobj; |
22987 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22988 | int arg2 ; | |
22989 | PyObject * obj0 = 0 ; | |
994141e6 | 22990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22991 | char *kwnames[] = { |
22992 | (char *) "self",(char *) "m_format", NULL | |
22993 | }; | |
22994 | ||
994141e6 | 22995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22998 | { | |
22999 | arg2 = (int)(SWIG_As_int(obj1)); | |
23000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23001 | } | |
d14a1e28 RD |
23002 | if (arg1) (arg1)->m_format = arg2; |
23003 | ||
23004 | Py_INCREF(Py_None); resultobj = Py_None; | |
23005 | return resultobj; | |
23006 | fail: | |
23007 | return NULL; | |
23008 | } | |
23009 | ||
23010 | ||
c32bde28 | 23011 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23012 | PyObject *resultobj; |
23013 | wxListItem *arg1 = (wxListItem *) 0 ; | |
23014 | int result; | |
23015 | PyObject * obj0 = 0 ; | |
23016 | char *kwnames[] = { | |
23017 | (char *) "self", NULL | |
23018 | }; | |
23019 | ||
23020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23023 | result = (int) ((arg1)->m_format); |
23024 | ||
093d3ff1 RD |
23025 | { |
23026 | resultobj = SWIG_From_int((int)(result)); | |
23027 | } | |
d14a1e28 RD |
23028 | return resultobj; |
23029 | fail: | |
23030 | return NULL; | |
23031 | } | |
23032 | ||
23033 | ||
c32bde28 | 23034 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23035 | PyObject *resultobj; |
23036 | wxListItem *arg1 = (wxListItem *) 0 ; | |
23037 | int arg2 ; | |
23038 | PyObject * obj0 = 0 ; | |
994141e6 | 23039 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23040 | char *kwnames[] = { |
23041 | (char *) "self",(char *) "m_width", NULL | |
23042 | }; | |
23043 | ||
994141e6 | 23044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23047 | { | |
23048 | arg2 = (int)(SWIG_As_int(obj1)); | |
23049 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23050 | } | |
d14a1e28 RD |
23051 | if (arg1) (arg1)->m_width = arg2; |
23052 | ||
23053 | Py_INCREF(Py_None); resultobj = Py_None; | |
23054 | return resultobj; | |
23055 | fail: | |
23056 | return NULL; | |
23057 | } | |
23058 | ||
23059 | ||
c32bde28 | 23060 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23061 | PyObject *resultobj; |
23062 | wxListItem *arg1 = (wxListItem *) 0 ; | |
23063 | int result; | |
23064 | PyObject * obj0 = 0 ; | |
23065 | char *kwnames[] = { | |
23066 | (char *) "self", NULL | |
23067 | }; | |
23068 | ||
23069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23072 | result = (int) ((arg1)->m_width); |
23073 | ||
093d3ff1 RD |
23074 | { |
23075 | resultobj = SWIG_From_int((int)(result)); | |
23076 | } | |
d14a1e28 RD |
23077 | return resultobj; |
23078 | fail: | |
23079 | return NULL; | |
23080 | } | |
23081 | ||
23082 | ||
c32bde28 | 23083 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23084 | PyObject *obj; |
23085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23086 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
23087 | Py_INCREF(obj); | |
23088 | return Py_BuildValue((char *)""); | |
23089 | } | |
c32bde28 | 23090 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23091 | PyObject *resultobj; |
23092 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23093 | int arg2 = (int) 0 ; | |
23094 | wxListEvent *result; | |
994141e6 RD |
23095 | PyObject * obj0 = 0 ; |
23096 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23097 | char *kwnames[] = { |
23098 | (char *) "commandType",(char *) "id", NULL | |
23099 | }; | |
23100 | ||
994141e6 RD |
23101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
23102 | if (obj0) { | |
093d3ff1 RD |
23103 | { |
23104 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
23105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23106 | } | |
994141e6 RD |
23107 | } |
23108 | if (obj1) { | |
093d3ff1 RD |
23109 | { |
23110 | arg2 = (int)(SWIG_As_int(obj1)); | |
23111 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23112 | } | |
994141e6 | 23113 | } |
d14a1e28 RD |
23114 | { |
23115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23116 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
23117 | ||
23118 | wxPyEndAllowThreads(__tstate); | |
23119 | if (PyErr_Occurred()) SWIG_fail; | |
23120 | } | |
15afbcd0 | 23121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
23122 | return resultobj; |
23123 | fail: | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
c32bde28 | 23128 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23129 | PyObject *resultobj; |
23130 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23131 | int arg2 ; | |
23132 | PyObject * obj0 = 0 ; | |
994141e6 | 23133 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23134 | char *kwnames[] = { |
23135 | (char *) "self",(char *) "m_code", NULL | |
23136 | }; | |
23137 | ||
994141e6 | 23138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23139 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23140 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23141 | { | |
23142 | arg2 = (int)(SWIG_As_int(obj1)); | |
23143 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23144 | } | |
d14a1e28 RD |
23145 | if (arg1) (arg1)->m_code = arg2; |
23146 | ||
23147 | Py_INCREF(Py_None); resultobj = Py_None; | |
23148 | return resultobj; | |
23149 | fail: | |
23150 | return NULL; | |
23151 | } | |
23152 | ||
23153 | ||
c32bde28 | 23154 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23155 | PyObject *resultobj; |
23156 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23157 | int result; | |
23158 | PyObject * obj0 = 0 ; | |
23159 | char *kwnames[] = { | |
23160 | (char *) "self", NULL | |
23161 | }; | |
23162 | ||
23163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23166 | result = (int) ((arg1)->m_code); |
23167 | ||
093d3ff1 RD |
23168 | { |
23169 | resultobj = SWIG_From_int((int)(result)); | |
23170 | } | |
d14a1e28 RD |
23171 | return resultobj; |
23172 | fail: | |
23173 | return NULL; | |
23174 | } | |
23175 | ||
23176 | ||
c32bde28 | 23177 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23178 | PyObject *resultobj; |
23179 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23180 | long arg2 ; | |
23181 | PyObject * obj0 = 0 ; | |
994141e6 | 23182 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23183 | char *kwnames[] = { |
23184 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
23185 | }; | |
23186 | ||
994141e6 | 23187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23188 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23189 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23190 | { | |
23191 | arg2 = (long)(SWIG_As_long(obj1)); | |
23192 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23193 | } | |
d14a1e28 RD |
23194 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
23195 | ||
23196 | Py_INCREF(Py_None); resultobj = Py_None; | |
23197 | return resultobj; | |
23198 | fail: | |
23199 | return NULL; | |
23200 | } | |
23201 | ||
23202 | ||
c32bde28 | 23203 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23204 | PyObject *resultobj; |
23205 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23206 | long result; | |
23207 | PyObject * obj0 = 0 ; | |
23208 | char *kwnames[] = { | |
23209 | (char *) "self", NULL | |
23210 | }; | |
23211 | ||
23212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23215 | result = (long) ((arg1)->m_oldItemIndex); |
23216 | ||
093d3ff1 RD |
23217 | { |
23218 | resultobj = SWIG_From_long((long)(result)); | |
23219 | } | |
d14a1e28 RD |
23220 | return resultobj; |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
c32bde28 | 23226 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23227 | PyObject *resultobj; |
23228 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23229 | long arg2 ; | |
23230 | PyObject * obj0 = 0 ; | |
994141e6 | 23231 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23232 | char *kwnames[] = { |
23233 | (char *) "self",(char *) "m_itemIndex", NULL | |
23234 | }; | |
23235 | ||
994141e6 | 23236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23237 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23238 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23239 | { | |
23240 | arg2 = (long)(SWIG_As_long(obj1)); | |
23241 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23242 | } | |
d14a1e28 RD |
23243 | if (arg1) (arg1)->m_itemIndex = arg2; |
23244 | ||
23245 | Py_INCREF(Py_None); resultobj = Py_None; | |
23246 | return resultobj; | |
23247 | fail: | |
23248 | return NULL; | |
23249 | } | |
23250 | ||
23251 | ||
c32bde28 | 23252 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23253 | PyObject *resultobj; |
23254 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23255 | long result; | |
23256 | PyObject * obj0 = 0 ; | |
23257 | char *kwnames[] = { | |
23258 | (char *) "self", NULL | |
23259 | }; | |
23260 | ||
23261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23264 | result = (long) ((arg1)->m_itemIndex); |
23265 | ||
093d3ff1 RD |
23266 | { |
23267 | resultobj = SWIG_From_long((long)(result)); | |
23268 | } | |
d14a1e28 RD |
23269 | return resultobj; |
23270 | fail: | |
23271 | return NULL; | |
23272 | } | |
23273 | ||
23274 | ||
c32bde28 | 23275 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23276 | PyObject *resultobj; |
23277 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23278 | int arg2 ; | |
23279 | PyObject * obj0 = 0 ; | |
994141e6 | 23280 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23281 | char *kwnames[] = { |
23282 | (char *) "self",(char *) "m_col", NULL | |
23283 | }; | |
23284 | ||
994141e6 | 23285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23288 | { | |
23289 | arg2 = (int)(SWIG_As_int(obj1)); | |
23290 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23291 | } | |
d14a1e28 RD |
23292 | if (arg1) (arg1)->m_col = arg2; |
23293 | ||
23294 | Py_INCREF(Py_None); resultobj = Py_None; | |
23295 | return resultobj; | |
23296 | fail: | |
23297 | return NULL; | |
23298 | } | |
23299 | ||
23300 | ||
c32bde28 | 23301 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23302 | PyObject *resultobj; |
23303 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23304 | int result; | |
23305 | PyObject * obj0 = 0 ; | |
23306 | char *kwnames[] = { | |
23307 | (char *) "self", NULL | |
23308 | }; | |
23309 | ||
23310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23311 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23312 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23313 | result = (int) ((arg1)->m_col); |
23314 | ||
093d3ff1 RD |
23315 | { |
23316 | resultobj = SWIG_From_int((int)(result)); | |
23317 | } | |
d14a1e28 RD |
23318 | return resultobj; |
23319 | fail: | |
23320 | return NULL; | |
23321 | } | |
23322 | ||
23323 | ||
c32bde28 | 23324 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23325 | PyObject *resultobj; |
23326 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23327 | wxPoint *arg2 = (wxPoint *) 0 ; | |
23328 | PyObject * obj0 = 0 ; | |
23329 | PyObject * obj1 = 0 ; | |
23330 | char *kwnames[] = { | |
23331 | (char *) "self",(char *) "m_pointDrag", NULL | |
23332 | }; | |
23333 | ||
23334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23337 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); | |
23338 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23339 | if (arg1) (arg1)->m_pointDrag = *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_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23349 | PyObject *resultobj; |
23350 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23351 | wxPoint *result; | |
23352 | PyObject * obj0 = 0 ; | |
23353 | char *kwnames[] = { | |
23354 | (char *) "self", NULL | |
23355 | }; | |
23356 | ||
23357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_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 = (wxPoint *)& ((arg1)->m_pointDrag); |
23361 | ||
15afbcd0 | 23362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
23363 | return resultobj; |
23364 | fail: | |
23365 | return NULL; | |
23366 | } | |
23367 | ||
23368 | ||
c32bde28 | 23369 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23370 | PyObject *resultobj; |
23371 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23372 | wxListItem *result; | |
23373 | PyObject * obj0 = 0 ; | |
23374 | char *kwnames[] = { | |
23375 | (char *) "self", NULL | |
23376 | }; | |
23377 | ||
23378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23379 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23380 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23381 | result = (wxListItem *)& ((arg1)->m_item); |
23382 | ||
23383 | { | |
412d302d | 23384 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
23385 | } |
23386 | return resultobj; | |
23387 | fail: | |
23388 | return NULL; | |
23389 | } | |
23390 | ||
23391 | ||
c32bde28 | 23392 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23393 | PyObject *resultobj; |
23394 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23395 | int result; | |
23396 | PyObject * obj0 = 0 ; | |
23397 | char *kwnames[] = { | |
23398 | (char *) "self", NULL | |
23399 | }; | |
23400 | ||
23401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23404 | { |
23405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23406 | result = (int)(arg1)->GetKeyCode(); | |
23407 | ||
23408 | wxPyEndAllowThreads(__tstate); | |
23409 | if (PyErr_Occurred()) SWIG_fail; | |
23410 | } | |
093d3ff1 RD |
23411 | { |
23412 | resultobj = SWIG_From_int((int)(result)); | |
23413 | } | |
d14a1e28 RD |
23414 | return resultobj; |
23415 | fail: | |
23416 | return NULL; | |
23417 | } | |
23418 | ||
23419 | ||
c32bde28 | 23420 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23421 | PyObject *resultobj; |
23422 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23423 | long result; | |
23424 | PyObject * obj0 = 0 ; | |
23425 | char *kwnames[] = { | |
23426 | (char *) "self", NULL | |
23427 | }; | |
23428 | ||
23429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23432 | { |
23433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23434 | result = (long)(arg1)->GetIndex(); | |
23435 | ||
23436 | wxPyEndAllowThreads(__tstate); | |
23437 | if (PyErr_Occurred()) SWIG_fail; | |
23438 | } | |
093d3ff1 RD |
23439 | { |
23440 | resultobj = SWIG_From_long((long)(result)); | |
23441 | } | |
d14a1e28 RD |
23442 | return resultobj; |
23443 | fail: | |
23444 | return NULL; | |
23445 | } | |
23446 | ||
23447 | ||
c32bde28 | 23448 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23449 | PyObject *resultobj; |
23450 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23451 | int result; | |
23452 | PyObject * obj0 = 0 ; | |
23453 | char *kwnames[] = { | |
23454 | (char *) "self", NULL | |
23455 | }; | |
23456 | ||
23457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23460 | { |
23461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23462 | result = (int)(arg1)->GetColumn(); | |
23463 | ||
23464 | wxPyEndAllowThreads(__tstate); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
093d3ff1 RD |
23467 | { |
23468 | resultobj = SWIG_From_int((int)(result)); | |
23469 | } | |
d14a1e28 RD |
23470 | return resultobj; |
23471 | fail: | |
23472 | return NULL; | |
23473 | } | |
23474 | ||
23475 | ||
c32bde28 | 23476 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23477 | PyObject *resultobj; |
23478 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23479 | wxPoint result; | |
23480 | PyObject * obj0 = 0 ; | |
23481 | char *kwnames[] = { | |
23482 | (char *) "self", NULL | |
23483 | }; | |
23484 | ||
23485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23488 | { |
23489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23490 | result = (arg1)->GetPoint(); | |
23491 | ||
23492 | wxPyEndAllowThreads(__tstate); | |
23493 | if (PyErr_Occurred()) SWIG_fail; | |
23494 | } | |
23495 | { | |
23496 | wxPoint * resultptr; | |
093d3ff1 | 23497 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 23498 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
23499 | } |
23500 | return resultobj; | |
23501 | fail: | |
23502 | return NULL; | |
23503 | } | |
23504 | ||
23505 | ||
c32bde28 | 23506 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23507 | PyObject *resultobj; |
23508 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23509 | wxString *result; | |
23510 | PyObject * obj0 = 0 ; | |
23511 | char *kwnames[] = { | |
23512 | (char *) "self", NULL | |
23513 | }; | |
23514 | ||
23515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23518 | { |
23519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23520 | { | |
23521 | wxString const &_result_ref = (arg1)->GetLabel(); | |
23522 | result = (wxString *) &_result_ref; | |
23523 | } | |
23524 | ||
23525 | wxPyEndAllowThreads(__tstate); | |
23526 | if (PyErr_Occurred()) SWIG_fail; | |
23527 | } | |
cc6dd355 RD |
23528 | { |
23529 | #if wxUSE_UNICODE | |
23530 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23531 | #else | |
23532 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23533 | #endif | |
23534 | } | |
d14a1e28 RD |
23535 | return resultobj; |
23536 | fail: | |
23537 | return NULL; | |
23538 | } | |
23539 | ||
23540 | ||
c32bde28 | 23541 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23542 | PyObject *resultobj; |
23543 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23544 | wxString *result; | |
23545 | PyObject * obj0 = 0 ; | |
23546 | char *kwnames[] = { | |
23547 | (char *) "self", NULL | |
23548 | }; | |
23549 | ||
23550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23553 | { |
23554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23555 | { | |
23556 | wxString const &_result_ref = (arg1)->GetText(); | |
23557 | result = (wxString *) &_result_ref; | |
23558 | } | |
23559 | ||
23560 | wxPyEndAllowThreads(__tstate); | |
23561 | if (PyErr_Occurred()) SWIG_fail; | |
23562 | } | |
cc6dd355 RD |
23563 | { |
23564 | #if wxUSE_UNICODE | |
23565 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23566 | #else | |
23567 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23568 | #endif | |
23569 | } | |
d14a1e28 RD |
23570 | return resultobj; |
23571 | fail: | |
23572 | return NULL; | |
23573 | } | |
23574 | ||
23575 | ||
c32bde28 | 23576 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23577 | PyObject *resultobj; |
23578 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23579 | int result; | |
23580 | PyObject * obj0 = 0 ; | |
23581 | char *kwnames[] = { | |
23582 | (char *) "self", NULL | |
23583 | }; | |
23584 | ||
23585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23588 | { |
23589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23590 | result = (int)(arg1)->GetImage(); | |
23591 | ||
23592 | wxPyEndAllowThreads(__tstate); | |
23593 | if (PyErr_Occurred()) SWIG_fail; | |
23594 | } | |
093d3ff1 RD |
23595 | { |
23596 | resultobj = SWIG_From_int((int)(result)); | |
23597 | } | |
d14a1e28 RD |
23598 | return resultobj; |
23599 | fail: | |
23600 | return NULL; | |
23601 | } | |
23602 | ||
23603 | ||
c32bde28 | 23604 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23605 | PyObject *resultobj; |
23606 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23607 | long result; | |
23608 | PyObject * obj0 = 0 ; | |
23609 | char *kwnames[] = { | |
23610 | (char *) "self", NULL | |
23611 | }; | |
23612 | ||
23613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23616 | { |
23617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23618 | result = (long)(arg1)->GetData(); | |
23619 | ||
23620 | wxPyEndAllowThreads(__tstate); | |
23621 | if (PyErr_Occurred()) SWIG_fail; | |
23622 | } | |
093d3ff1 RD |
23623 | { |
23624 | resultobj = SWIG_From_long((long)(result)); | |
23625 | } | |
d14a1e28 RD |
23626 | return resultobj; |
23627 | fail: | |
23628 | return NULL; | |
23629 | } | |
23630 | ||
23631 | ||
c32bde28 | 23632 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23633 | PyObject *resultobj; |
23634 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23635 | long result; | |
23636 | PyObject * obj0 = 0 ; | |
23637 | char *kwnames[] = { | |
23638 | (char *) "self", NULL | |
23639 | }; | |
23640 | ||
23641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23644 | { |
23645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23646 | result = (long)(arg1)->GetMask(); | |
23647 | ||
23648 | wxPyEndAllowThreads(__tstate); | |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
23650 | } | |
093d3ff1 RD |
23651 | { |
23652 | resultobj = SWIG_From_long((long)(result)); | |
23653 | } | |
d14a1e28 RD |
23654 | return resultobj; |
23655 | fail: | |
23656 | return NULL; | |
23657 | } | |
23658 | ||
23659 | ||
c32bde28 | 23660 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23661 | PyObject *resultobj; |
23662 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23663 | wxListItem *result; | |
23664 | PyObject * obj0 = 0 ; | |
23665 | char *kwnames[] = { | |
23666 | (char *) "self", NULL | |
23667 | }; | |
23668 | ||
23669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23672 | { |
23673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23674 | { | |
23675 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
23676 | result = (wxListItem *) &_result_ref; | |
23677 | } | |
23678 | ||
23679 | wxPyEndAllowThreads(__tstate); | |
23680 | if (PyErr_Occurred()) SWIG_fail; | |
23681 | } | |
15afbcd0 | 23682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
23683 | return resultobj; |
23684 | fail: | |
23685 | return NULL; | |
23686 | } | |
23687 | ||
23688 | ||
c32bde28 | 23689 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23690 | PyObject *resultobj; |
23691 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23692 | long result; | |
23693 | PyObject * obj0 = 0 ; | |
23694 | char *kwnames[] = { | |
23695 | (char *) "self", NULL | |
23696 | }; | |
23697 | ||
23698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23701 | { |
23702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23703 | result = (long)(arg1)->GetCacheFrom(); | |
23704 | ||
23705 | wxPyEndAllowThreads(__tstate); | |
23706 | if (PyErr_Occurred()) SWIG_fail; | |
23707 | } | |
093d3ff1 RD |
23708 | { |
23709 | resultobj = SWIG_From_long((long)(result)); | |
23710 | } | |
d14a1e28 RD |
23711 | return resultobj; |
23712 | fail: | |
23713 | return NULL; | |
23714 | } | |
23715 | ||
23716 | ||
c32bde28 | 23717 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23718 | PyObject *resultobj; |
23719 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23720 | long result; | |
23721 | PyObject * obj0 = 0 ; | |
23722 | char *kwnames[] = { | |
23723 | (char *) "self", NULL | |
23724 | }; | |
23725 | ||
23726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23729 | { |
23730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23731 | result = (long)(arg1)->GetCacheTo(); | |
23732 | ||
23733 | wxPyEndAllowThreads(__tstate); | |
23734 | if (PyErr_Occurred()) SWIG_fail; | |
23735 | } | |
093d3ff1 RD |
23736 | { |
23737 | resultobj = SWIG_From_long((long)(result)); | |
23738 | } | |
d14a1e28 RD |
23739 | return resultobj; |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
c32bde28 | 23745 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23746 | PyObject *resultobj; |
23747 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23748 | bool result; | |
23749 | PyObject * obj0 = 0 ; | |
23750 | char *kwnames[] = { | |
23751 | (char *) "self", NULL | |
23752 | }; | |
23753 | ||
23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23757 | { |
23758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23759 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
23760 | ||
23761 | wxPyEndAllowThreads(__tstate); | |
23762 | if (PyErr_Occurred()) SWIG_fail; | |
23763 | } | |
4f89f6a3 RD |
23764 | { |
23765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23766 | } | |
d14a1e28 RD |
23767 | return resultobj; |
23768 | fail: | |
23769 | return NULL; | |
23770 | } | |
23771 | ||
23772 | ||
c32bde28 | 23773 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23774 | PyObject *resultobj; |
23775 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23776 | bool arg2 ; | |
23777 | PyObject * obj0 = 0 ; | |
23778 | PyObject * obj1 = 0 ; | |
23779 | char *kwnames[] = { | |
23780 | (char *) "self",(char *) "editCancelled", NULL | |
23781 | }; | |
23782 | ||
23783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
23785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23786 | { | |
23787 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23788 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23789 | } | |
d14a1e28 RD |
23790 | { |
23791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23792 | (arg1)->SetEditCanceled(arg2); | |
23793 | ||
23794 | wxPyEndAllowThreads(__tstate); | |
23795 | if (PyErr_Occurred()) SWIG_fail; | |
23796 | } | |
23797 | Py_INCREF(Py_None); resultobj = Py_None; | |
23798 | return resultobj; | |
23799 | fail: | |
23800 | return NULL; | |
23801 | } | |
23802 | ||
23803 | ||
c32bde28 | 23804 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
23805 | PyObject *obj; |
23806 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23807 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
23808 | Py_INCREF(obj); | |
23809 | return Py_BuildValue((char *)""); | |
23810 | } | |
c32bde28 | 23811 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23812 | PyObject *resultobj; |
23813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23814 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23815 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23816 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23817 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23818 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23819 | long arg5 = (long) wxLC_ICON ; | |
23820 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23821 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23822 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23823 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23824 | wxPyListCtrl *result; | |
23825 | wxPoint temp3 ; | |
23826 | wxSize temp4 ; | |
ae8162c8 | 23827 | bool temp7 = false ; |
d14a1e28 | 23828 | PyObject * obj0 = 0 ; |
994141e6 | 23829 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23830 | PyObject * obj2 = 0 ; |
23831 | PyObject * obj3 = 0 ; | |
994141e6 | 23832 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23833 | PyObject * obj5 = 0 ; |
23834 | PyObject * obj6 = 0 ; | |
23835 | char *kwnames[] = { | |
23836 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23837 | }; | |
23838 | ||
994141e6 | 23839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
23840 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
23841 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 23842 | if (obj1) { |
093d3ff1 RD |
23843 | { |
23844 | arg2 = (int)(SWIG_As_int(obj1)); | |
23845 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23846 | } | |
994141e6 | 23847 | } |
d14a1e28 RD |
23848 | if (obj2) { |
23849 | { | |
23850 | arg3 = &temp3; | |
23851 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23852 | } | |
23853 | } | |
23854 | if (obj3) { | |
23855 | { | |
23856 | arg4 = &temp4; | |
23857 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23858 | } | |
23859 | } | |
994141e6 | 23860 | if (obj4) { |
093d3ff1 RD |
23861 | { |
23862 | arg5 = (long)(SWIG_As_long(obj4)); | |
23863 | if (SWIG_arg_fail(5)) SWIG_fail; | |
23864 | } | |
994141e6 | 23865 | } |
d14a1e28 | 23866 | if (obj5) { |
093d3ff1 RD |
23867 | { |
23868 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23869 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23870 | if (arg6 == NULL) { | |
23871 | SWIG_null_ref("wxValidator"); | |
23872 | } | |
23873 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
23874 | } |
23875 | } | |
23876 | if (obj6) { | |
23877 | { | |
23878 | arg7 = wxString_in_helper(obj6); | |
23879 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 23880 | temp7 = true; |
d14a1e28 RD |
23881 | } |
23882 | } | |
23883 | { | |
e3b71cb8 | 23884 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23886 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23887 | ||
23888 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23889 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23890 | } |
15afbcd0 | 23891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
23892 | { |
23893 | if (temp7) | |
23894 | delete arg7; | |
23895 | } | |
23896 | return resultobj; | |
23897 | fail: | |
23898 | { | |
23899 | if (temp7) | |
23900 | delete arg7; | |
23901 | } | |
23902 | return NULL; | |
23903 | } | |
23904 | ||
23905 | ||
c32bde28 | 23906 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23907 | PyObject *resultobj; |
23908 | wxPyListCtrl *result; | |
23909 | char *kwnames[] = { | |
23910 | NULL | |
23911 | }; | |
23912 | ||
23913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
23914 | { | |
e3b71cb8 | 23915 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23917 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
23918 | ||
23919 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23920 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23921 | } |
15afbcd0 | 23922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
23923 | return resultobj; |
23924 | fail: | |
23925 | return NULL; | |
23926 | } | |
23927 | ||
23928 | ||
c32bde28 | 23929 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23930 | PyObject *resultobj; |
23931 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23932 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23933 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23934 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23935 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23936 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23937 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23938 | long arg6 = (long) wxLC_ICON ; | |
23939 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23940 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23941 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23942 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23943 | bool result; | |
23944 | wxPoint temp4 ; | |
23945 | wxSize temp5 ; | |
ae8162c8 | 23946 | bool temp8 = false ; |
d14a1e28 RD |
23947 | PyObject * obj0 = 0 ; |
23948 | PyObject * obj1 = 0 ; | |
994141e6 | 23949 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23950 | PyObject * obj3 = 0 ; |
23951 | PyObject * obj4 = 0 ; | |
994141e6 | 23952 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23953 | PyObject * obj6 = 0 ; |
23954 | PyObject * obj7 = 0 ; | |
23955 | char *kwnames[] = { | |
23956 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23957 | }; | |
23958 | ||
994141e6 | 23959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
23960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
23961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23962 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23963 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 23964 | if (obj2) { |
093d3ff1 RD |
23965 | { |
23966 | arg3 = (int)(SWIG_As_int(obj2)); | |
23967 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23968 | } | |
994141e6 | 23969 | } |
d14a1e28 RD |
23970 | if (obj3) { |
23971 | { | |
23972 | arg4 = &temp4; | |
23973 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23974 | } | |
23975 | } | |
23976 | if (obj4) { | |
23977 | { | |
23978 | arg5 = &temp5; | |
23979 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23980 | } | |
23981 | } | |
994141e6 | 23982 | if (obj5) { |
093d3ff1 RD |
23983 | { |
23984 | arg6 = (long)(SWIG_As_long(obj5)); | |
23985 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23986 | } | |
994141e6 | 23987 | } |
d14a1e28 | 23988 | if (obj6) { |
093d3ff1 RD |
23989 | { |
23990 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23991 | if (SWIG_arg_fail(7)) SWIG_fail; | |
23992 | if (arg7 == NULL) { | |
23993 | SWIG_null_ref("wxValidator"); | |
23994 | } | |
23995 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
23996 | } |
23997 | } | |
23998 | if (obj7) { | |
23999 | { | |
24000 | arg8 = wxString_in_helper(obj7); | |
24001 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 24002 | temp8 = true; |
d14a1e28 RD |
24003 | } |
24004 | } | |
24005 | { | |
24006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24007 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24008 | ||
24009 | wxPyEndAllowThreads(__tstate); | |
24010 | if (PyErr_Occurred()) SWIG_fail; | |
24011 | } | |
4f89f6a3 RD |
24012 | { |
24013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24014 | } | |
d14a1e28 RD |
24015 | { |
24016 | if (temp8) | |
24017 | delete arg8; | |
24018 | } | |
24019 | return resultobj; | |
24020 | fail: | |
24021 | { | |
24022 | if (temp8) | |
24023 | delete arg8; | |
24024 | } | |
24025 | return NULL; | |
24026 | } | |
24027 | ||
24028 | ||
c32bde28 | 24029 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24030 | PyObject *resultobj; |
24031 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24032 | PyObject *arg2 = (PyObject *) 0 ; | |
24033 | PyObject *arg3 = (PyObject *) 0 ; | |
24034 | PyObject * obj0 = 0 ; | |
24035 | PyObject * obj1 = 0 ; | |
24036 | PyObject * obj2 = 0 ; | |
24037 | char *kwnames[] = { | |
24038 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24039 | }; | |
24040 | ||
24041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
24042 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24043 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24044 | arg2 = obj1; |
24045 | arg3 = obj2; | |
24046 | { | |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24049 | ||
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
24053 | Py_INCREF(Py_None); resultobj = Py_None; | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
c32bde28 | 24060 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24061 | PyObject *resultobj; |
24062 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24063 | wxColour *arg2 = 0 ; | |
24064 | bool result; | |
24065 | wxColour temp2 ; | |
24066 | PyObject * obj0 = 0 ; | |
24067 | PyObject * obj1 = 0 ; | |
24068 | char *kwnames[] = { | |
24069 | (char *) "self",(char *) "col", NULL | |
24070 | }; | |
24071 | ||
24072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24075 | { |
24076 | arg2 = &temp2; | |
24077 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24078 | } | |
24079 | { | |
24080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24081 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24082 | ||
24083 | wxPyEndAllowThreads(__tstate); | |
24084 | if (PyErr_Occurred()) SWIG_fail; | |
24085 | } | |
4f89f6a3 RD |
24086 | { |
24087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24088 | } | |
d14a1e28 RD |
24089 | return resultobj; |
24090 | fail: | |
24091 | return NULL; | |
24092 | } | |
24093 | ||
24094 | ||
c32bde28 | 24095 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24096 | PyObject *resultobj; |
24097 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24098 | wxColour *arg2 = 0 ; | |
24099 | bool result; | |
24100 | wxColour temp2 ; | |
24101 | PyObject * obj0 = 0 ; | |
24102 | PyObject * obj1 = 0 ; | |
24103 | char *kwnames[] = { | |
24104 | (char *) "self",(char *) "col", NULL | |
24105 | }; | |
24106 | ||
24107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24110 | { |
24111 | arg2 = &temp2; | |
24112 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24113 | } | |
24114 | { | |
24115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24116 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24117 | ||
24118 | wxPyEndAllowThreads(__tstate); | |
24119 | if (PyErr_Occurred()) SWIG_fail; | |
24120 | } | |
4f89f6a3 RD |
24121 | { |
24122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24123 | } | |
d14a1e28 RD |
24124 | return resultobj; |
24125 | fail: | |
24126 | return NULL; | |
24127 | } | |
24128 | ||
24129 | ||
c32bde28 | 24130 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24131 | PyObject *resultobj; |
24132 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24133 | int arg2 ; | |
24134 | wxListItem *result; | |
24135 | PyObject * obj0 = 0 ; | |
994141e6 | 24136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24137 | char *kwnames[] = { |
24138 | (char *) "self",(char *) "col", NULL | |
24139 | }; | |
24140 | ||
994141e6 | 24141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24144 | { | |
24145 | arg2 = (int)(SWIG_As_int(obj1)); | |
24146 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24147 | } | |
d14a1e28 RD |
24148 | { |
24149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24150 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
24151 | ||
24152 | wxPyEndAllowThreads(__tstate); | |
24153 | if (PyErr_Occurred()) SWIG_fail; | |
24154 | } | |
24155 | { | |
412d302d | 24156 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24157 | } |
24158 | return resultobj; | |
24159 | fail: | |
24160 | return NULL; | |
24161 | } | |
24162 | ||
24163 | ||
c32bde28 | 24164 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24165 | PyObject *resultobj; |
24166 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24167 | int arg2 ; | |
24168 | wxListItem *arg3 = 0 ; | |
24169 | bool result; | |
24170 | PyObject * obj0 = 0 ; | |
994141e6 | 24171 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24172 | PyObject * obj2 = 0 ; |
24173 | char *kwnames[] = { | |
24174 | (char *) "self",(char *) "col",(char *) "item", NULL | |
24175 | }; | |
24176 | ||
994141e6 | 24177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24178 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24179 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24180 | { | |
24181 | arg2 = (int)(SWIG_As_int(obj1)); | |
24182 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24183 | } | |
24184 | { | |
24185 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24186 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24187 | if (arg3 == NULL) { | |
24188 | SWIG_null_ref("wxListItem"); | |
24189 | } | |
24190 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
24191 | } |
24192 | { | |
24193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24194 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
24195 | ||
24196 | wxPyEndAllowThreads(__tstate); | |
24197 | if (PyErr_Occurred()) SWIG_fail; | |
24198 | } | |
4f89f6a3 RD |
24199 | { |
24200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24201 | } | |
d14a1e28 RD |
24202 | return resultobj; |
24203 | fail: | |
24204 | return NULL; | |
24205 | } | |
24206 | ||
24207 | ||
c32bde28 | 24208 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24209 | PyObject *resultobj; |
24210 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24211 | int arg2 ; | |
24212 | int result; | |
24213 | PyObject * obj0 = 0 ; | |
994141e6 | 24214 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24215 | char *kwnames[] = { |
24216 | (char *) "self",(char *) "col", NULL | |
24217 | }; | |
24218 | ||
994141e6 | 24219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24222 | { | |
24223 | arg2 = (int)(SWIG_As_int(obj1)); | |
24224 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24225 | } | |
d14a1e28 RD |
24226 | { |
24227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24228 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
24229 | ||
24230 | wxPyEndAllowThreads(__tstate); | |
24231 | if (PyErr_Occurred()) SWIG_fail; | |
24232 | } | |
093d3ff1 RD |
24233 | { |
24234 | resultobj = SWIG_From_int((int)(result)); | |
24235 | } | |
d14a1e28 RD |
24236 | return resultobj; |
24237 | fail: | |
24238 | return NULL; | |
24239 | } | |
24240 | ||
24241 | ||
c32bde28 | 24242 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24243 | PyObject *resultobj; |
24244 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24245 | int arg2 ; | |
24246 | int arg3 ; | |
24247 | bool result; | |
24248 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24249 | PyObject * obj1 = 0 ; |
24250 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24251 | char *kwnames[] = { |
24252 | (char *) "self",(char *) "col",(char *) "width", NULL | |
24253 | }; | |
24254 | ||
994141e6 | 24255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24258 | { | |
24259 | arg2 = (int)(SWIG_As_int(obj1)); | |
24260 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24261 | } | |
24262 | { | |
24263 | arg3 = (int)(SWIG_As_int(obj2)); | |
24264 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24265 | } | |
d14a1e28 RD |
24266 | { |
24267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24268 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
24269 | ||
24270 | wxPyEndAllowThreads(__tstate); | |
24271 | if (PyErr_Occurred()) SWIG_fail; | |
24272 | } | |
4f89f6a3 RD |
24273 | { |
24274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24275 | } | |
d14a1e28 RD |
24276 | return resultobj; |
24277 | fail: | |
24278 | return NULL; | |
24279 | } | |
24280 | ||
24281 | ||
c32bde28 | 24282 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24283 | PyObject *resultobj; |
24284 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24285 | int result; | |
24286 | PyObject * obj0 = 0 ; | |
24287 | char *kwnames[] = { | |
24288 | (char *) "self", NULL | |
24289 | }; | |
24290 | ||
24291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24294 | { |
24295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24296 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
24297 | ||
24298 | wxPyEndAllowThreads(__tstate); | |
24299 | if (PyErr_Occurred()) SWIG_fail; | |
24300 | } | |
093d3ff1 RD |
24301 | { |
24302 | resultobj = SWIG_From_int((int)(result)); | |
24303 | } | |
d14a1e28 RD |
24304 | return resultobj; |
24305 | fail: | |
24306 | return NULL; | |
24307 | } | |
24308 | ||
24309 | ||
c32bde28 | 24310 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24311 | PyObject *resultobj; |
24312 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24313 | wxRect result; | |
24314 | PyObject * obj0 = 0 ; | |
24315 | char *kwnames[] = { | |
24316 | (char *) "self", NULL | |
24317 | }; | |
24318 | ||
24319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24322 | { |
24323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24324 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
24325 | ||
24326 | wxPyEndAllowThreads(__tstate); | |
24327 | if (PyErr_Occurred()) SWIG_fail; | |
24328 | } | |
24329 | { | |
24330 | wxRect * resultptr; | |
093d3ff1 | 24331 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 24332 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
24333 | } |
24334 | return resultobj; | |
24335 | fail: | |
24336 | return NULL; | |
24337 | } | |
24338 | ||
24339 | ||
c32bde28 | 24340 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24341 | PyObject *resultobj; |
24342 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24343 | long arg2 ; | |
24344 | int arg3 = (int) 0 ; | |
24345 | wxListItem *result; | |
24346 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24347 | PyObject * obj1 = 0 ; |
24348 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24349 | char *kwnames[] = { |
24350 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
24351 | }; | |
24352 | ||
994141e6 | 24353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24356 | { | |
24357 | arg2 = (long)(SWIG_As_long(obj1)); | |
24358 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24359 | } | |
994141e6 | 24360 | if (obj2) { |
093d3ff1 RD |
24361 | { |
24362 | arg3 = (int)(SWIG_As_int(obj2)); | |
24363 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24364 | } | |
994141e6 | 24365 | } |
d14a1e28 RD |
24366 | { |
24367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24368 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
24369 | ||
24370 | wxPyEndAllowThreads(__tstate); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
24372 | } | |
24373 | { | |
412d302d | 24374 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24375 | } |
24376 | return resultobj; | |
24377 | fail: | |
24378 | return NULL; | |
24379 | } | |
24380 | ||
24381 | ||
c32bde28 | 24382 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24383 | PyObject *resultobj; |
24384 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24385 | wxListItem *arg2 = 0 ; | |
24386 | bool result; | |
24387 | PyObject * obj0 = 0 ; | |
24388 | PyObject * obj1 = 0 ; | |
24389 | char *kwnames[] = { | |
24390 | (char *) "self",(char *) "info", NULL | |
24391 | }; | |
24392 | ||
24393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24396 | { | |
24397 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24398 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24399 | if (arg2 == NULL) { | |
24400 | SWIG_null_ref("wxListItem"); | |
24401 | } | |
24402 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24403 | } |
24404 | { | |
24405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24406 | result = (bool)(arg1)->SetItem(*arg2); | |
24407 | ||
24408 | wxPyEndAllowThreads(__tstate); | |
24409 | if (PyErr_Occurred()) SWIG_fail; | |
24410 | } | |
4f89f6a3 RD |
24411 | { |
24412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24413 | } | |
d14a1e28 RD |
24414 | return resultobj; |
24415 | fail: | |
24416 | return NULL; | |
24417 | } | |
24418 | ||
24419 | ||
c32bde28 | 24420 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24421 | PyObject *resultobj; |
24422 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24423 | long arg2 ; | |
24424 | int arg3 ; | |
24425 | wxString *arg4 = 0 ; | |
24426 | int arg5 = (int) -1 ; | |
24427 | long result; | |
ae8162c8 | 24428 | bool temp4 = false ; |
d14a1e28 | 24429 | PyObject * obj0 = 0 ; |
994141e6 RD |
24430 | PyObject * obj1 = 0 ; |
24431 | PyObject * obj2 = 0 ; | |
d14a1e28 | 24432 | PyObject * obj3 = 0 ; |
994141e6 | 24433 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24434 | char *kwnames[] = { |
24435 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
24436 | }; | |
24437 | ||
994141e6 | 24438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
24439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24441 | { | |
24442 | arg2 = (long)(SWIG_As_long(obj1)); | |
24443 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24444 | } | |
24445 | { | |
24446 | arg3 = (int)(SWIG_As_int(obj2)); | |
24447 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24448 | } | |
d14a1e28 RD |
24449 | { |
24450 | arg4 = wxString_in_helper(obj3); | |
24451 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 24452 | temp4 = true; |
d14a1e28 | 24453 | } |
994141e6 | 24454 | if (obj4) { |
093d3ff1 RD |
24455 | { |
24456 | arg5 = (int)(SWIG_As_int(obj4)); | |
24457 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24458 | } | |
994141e6 | 24459 | } |
d14a1e28 RD |
24460 | { |
24461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24462 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
24463 | ||
24464 | wxPyEndAllowThreads(__tstate); | |
24465 | if (PyErr_Occurred()) SWIG_fail; | |
24466 | } | |
093d3ff1 RD |
24467 | { |
24468 | resultobj = SWIG_From_long((long)(result)); | |
24469 | } | |
d14a1e28 RD |
24470 | { |
24471 | if (temp4) | |
24472 | delete arg4; | |
24473 | } | |
24474 | return resultobj; | |
24475 | fail: | |
24476 | { | |
24477 | if (temp4) | |
24478 | delete arg4; | |
24479 | } | |
24480 | return NULL; | |
24481 | } | |
24482 | ||
24483 | ||
c32bde28 | 24484 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24485 | PyObject *resultobj; |
24486 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24487 | long arg2 ; | |
24488 | long arg3 ; | |
24489 | int result; | |
24490 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24491 | PyObject * obj1 = 0 ; |
24492 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24493 | char *kwnames[] = { |
24494 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
24495 | }; | |
24496 | ||
994141e6 | 24497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24500 | { | |
24501 | arg2 = (long)(SWIG_As_long(obj1)); | |
24502 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24503 | } | |
24504 | { | |
24505 | arg3 = (long)(SWIG_As_long(obj2)); | |
24506 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24507 | } | |
d14a1e28 RD |
24508 | { |
24509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24510 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
24511 | ||
24512 | wxPyEndAllowThreads(__tstate); | |
24513 | if (PyErr_Occurred()) SWIG_fail; | |
24514 | } | |
093d3ff1 RD |
24515 | { |
24516 | resultobj = SWIG_From_int((int)(result)); | |
24517 | } | |
d14a1e28 RD |
24518 | return resultobj; |
24519 | fail: | |
24520 | return NULL; | |
24521 | } | |
24522 | ||
24523 | ||
c32bde28 | 24524 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24525 | PyObject *resultobj; |
24526 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24527 | long arg2 ; | |
24528 | long arg3 ; | |
24529 | long arg4 ; | |
24530 | bool result; | |
24531 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24532 | PyObject * obj1 = 0 ; |
24533 | PyObject * obj2 = 0 ; | |
24534 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24535 | char *kwnames[] = { |
24536 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
24537 | }; | |
24538 | ||
994141e6 | 24539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24540 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24541 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24542 | { | |
24543 | arg2 = (long)(SWIG_As_long(obj1)); | |
24544 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24545 | } | |
24546 | { | |
24547 | arg3 = (long)(SWIG_As_long(obj2)); | |
24548 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24549 | } | |
24550 | { | |
24551 | arg4 = (long)(SWIG_As_long(obj3)); | |
24552 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24553 | } | |
d14a1e28 RD |
24554 | { |
24555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24556 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
24557 | ||
24558 | wxPyEndAllowThreads(__tstate); | |
24559 | if (PyErr_Occurred()) SWIG_fail; | |
24560 | } | |
4f89f6a3 RD |
24561 | { |
24562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24563 | } | |
d14a1e28 RD |
24564 | return resultobj; |
24565 | fail: | |
24566 | return NULL; | |
24567 | } | |
24568 | ||
24569 | ||
c32bde28 | 24570 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24571 | PyObject *resultobj; |
24572 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24573 | long arg2 ; | |
24574 | int arg3 ; | |
1fc3b23a | 24575 | int arg4 = (int) -1 ; |
d14a1e28 RD |
24576 | bool result; |
24577 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24578 | PyObject * obj1 = 0 ; |
24579 | PyObject * obj2 = 0 ; | |
24580 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24581 | char *kwnames[] = { |
24582 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
24583 | }; | |
24584 | ||
1fc3b23a | 24585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
24586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24588 | { | |
24589 | arg2 = (long)(SWIG_As_long(obj1)); | |
24590 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24591 | } | |
24592 | { | |
24593 | arg3 = (int)(SWIG_As_int(obj2)); | |
24594 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24595 | } | |
1fc3b23a | 24596 | if (obj3) { |
093d3ff1 RD |
24597 | { |
24598 | arg4 = (int)(SWIG_As_int(obj3)); | |
24599 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24600 | } | |
1fc3b23a | 24601 | } |
d14a1e28 RD |
24602 | { |
24603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24604 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
24605 | ||
24606 | wxPyEndAllowThreads(__tstate); | |
24607 | if (PyErr_Occurred()) SWIG_fail; | |
24608 | } | |
4f89f6a3 RD |
24609 | { |
24610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24611 | } | |
d14a1e28 RD |
24612 | return resultobj; |
24613 | fail: | |
24614 | return NULL; | |
24615 | } | |
24616 | ||
24617 | ||
c32bde28 | 24618 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24619 | PyObject *resultobj; |
24620 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24621 | long arg2 ; | |
24622 | wxString result; | |
24623 | PyObject * obj0 = 0 ; | |
994141e6 | 24624 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24625 | char *kwnames[] = { |
24626 | (char *) "self",(char *) "item", NULL | |
24627 | }; | |
24628 | ||
994141e6 | 24629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24632 | { | |
24633 | arg2 = (long)(SWIG_As_long(obj1)); | |
24634 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24635 | } | |
d14a1e28 RD |
24636 | { |
24637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24638 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
24639 | ||
24640 | wxPyEndAllowThreads(__tstate); | |
24641 | if (PyErr_Occurred()) SWIG_fail; | |
24642 | } | |
24643 | { | |
24644 | #if wxUSE_UNICODE | |
24645 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24646 | #else | |
24647 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24648 | #endif | |
24649 | } | |
24650 | return resultobj; | |
24651 | fail: | |
24652 | return NULL; | |
24653 | } | |
24654 | ||
24655 | ||
c32bde28 | 24656 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24657 | PyObject *resultobj; |
24658 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24659 | long arg2 ; | |
24660 | wxString *arg3 = 0 ; | |
ae8162c8 | 24661 | bool temp3 = false ; |
d14a1e28 | 24662 | PyObject * obj0 = 0 ; |
994141e6 | 24663 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24664 | PyObject * obj2 = 0 ; |
24665 | char *kwnames[] = { | |
24666 | (char *) "self",(char *) "item",(char *) "str", NULL | |
24667 | }; | |
24668 | ||
994141e6 | 24669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24672 | { | |
24673 | arg2 = (long)(SWIG_As_long(obj1)); | |
24674 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24675 | } | |
d14a1e28 RD |
24676 | { |
24677 | arg3 = wxString_in_helper(obj2); | |
24678 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 24679 | temp3 = true; |
d14a1e28 RD |
24680 | } |
24681 | { | |
24682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24683 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
24684 | ||
24685 | wxPyEndAllowThreads(__tstate); | |
24686 | if (PyErr_Occurred()) SWIG_fail; | |
24687 | } | |
24688 | Py_INCREF(Py_None); resultobj = Py_None; | |
24689 | { | |
24690 | if (temp3) | |
24691 | delete arg3; | |
24692 | } | |
24693 | return resultobj; | |
24694 | fail: | |
24695 | { | |
24696 | if (temp3) | |
24697 | delete arg3; | |
24698 | } | |
24699 | return NULL; | |
24700 | } | |
24701 | ||
24702 | ||
c32bde28 | 24703 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24704 | PyObject *resultobj; |
24705 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24706 | long arg2 ; | |
24707 | long result; | |
24708 | PyObject * obj0 = 0 ; | |
994141e6 | 24709 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24710 | char *kwnames[] = { |
24711 | (char *) "self",(char *) "item", NULL | |
24712 | }; | |
24713 | ||
994141e6 | 24714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24717 | { | |
24718 | arg2 = (long)(SWIG_As_long(obj1)); | |
24719 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24720 | } | |
d14a1e28 RD |
24721 | { |
24722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24723 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
24724 | ||
24725 | wxPyEndAllowThreads(__tstate); | |
24726 | if (PyErr_Occurred()) SWIG_fail; | |
24727 | } | |
093d3ff1 RD |
24728 | { |
24729 | resultobj = SWIG_From_long((long)(result)); | |
24730 | } | |
d14a1e28 RD |
24731 | return resultobj; |
24732 | fail: | |
24733 | return NULL; | |
24734 | } | |
24735 | ||
24736 | ||
c32bde28 | 24737 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24738 | PyObject *resultobj; |
24739 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24740 | long arg2 ; | |
24741 | long arg3 ; | |
24742 | bool result; | |
24743 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24744 | PyObject * obj1 = 0 ; |
24745 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24746 | char *kwnames[] = { |
24747 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24748 | }; | |
24749 | ||
994141e6 | 24750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24753 | { | |
24754 | arg2 = (long)(SWIG_As_long(obj1)); | |
24755 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24756 | } | |
24757 | { | |
24758 | arg3 = (long)(SWIG_As_long(obj2)); | |
24759 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24760 | } | |
d14a1e28 RD |
24761 | { |
24762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24763 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
24764 | ||
24765 | wxPyEndAllowThreads(__tstate); | |
24766 | if (PyErr_Occurred()) SWIG_fail; | |
24767 | } | |
4f89f6a3 RD |
24768 | { |
24769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24770 | } | |
d14a1e28 RD |
24771 | return resultobj; |
24772 | fail: | |
24773 | return NULL; | |
24774 | } | |
24775 | ||
24776 | ||
c32bde28 | 24777 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24778 | PyObject *resultobj; |
24779 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24780 | long arg2 ; | |
24781 | wxPoint result; | |
24782 | PyObject * obj0 = 0 ; | |
994141e6 | 24783 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24784 | char *kwnames[] = { |
24785 | (char *) "self",(char *) "item", NULL | |
24786 | }; | |
24787 | ||
994141e6 | 24788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24791 | { | |
24792 | arg2 = (long)(SWIG_As_long(obj1)); | |
24793 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24794 | } | |
d14a1e28 RD |
24795 | { |
24796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24797 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
24798 | ||
24799 | wxPyEndAllowThreads(__tstate); | |
24800 | if (PyErr_Occurred()) SWIG_fail; | |
24801 | } | |
24802 | { | |
24803 | wxPoint * resultptr; | |
093d3ff1 | 24804 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 24805 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24806 | } |
24807 | return resultobj; | |
24808 | fail: | |
24809 | return NULL; | |
24810 | } | |
24811 | ||
24812 | ||
c32bde28 | 24813 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24814 | PyObject *resultobj; |
24815 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24816 | long arg2 ; | |
24817 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
24818 | wxRect result; | |
24819 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24820 | PyObject * obj1 = 0 ; |
24821 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24822 | char *kwnames[] = { |
24823 | (char *) "self",(char *) "item",(char *) "code", NULL | |
24824 | }; | |
24825 | ||
994141e6 | 24826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24827 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24828 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24829 | { | |
24830 | arg2 = (long)(SWIG_As_long(obj1)); | |
24831 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24832 | } | |
994141e6 | 24833 | if (obj2) { |
093d3ff1 RD |
24834 | { |
24835 | arg3 = (int)(SWIG_As_int(obj2)); | |
24836 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24837 | } | |
994141e6 | 24838 | } |
d14a1e28 RD |
24839 | { |
24840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24841 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
24842 | ||
24843 | wxPyEndAllowThreads(__tstate); | |
24844 | if (PyErr_Occurred()) SWIG_fail; | |
24845 | } | |
24846 | { | |
24847 | wxRect * resultptr; | |
093d3ff1 | 24848 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 24849 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
24850 | } |
24851 | return resultobj; | |
24852 | fail: | |
24853 | return NULL; | |
24854 | } | |
24855 | ||
24856 | ||
c32bde28 | 24857 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24858 | PyObject *resultobj; |
24859 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24860 | long arg2 ; | |
24861 | wxPoint *arg3 = 0 ; | |
24862 | bool result; | |
24863 | wxPoint temp3 ; | |
24864 | PyObject * obj0 = 0 ; | |
994141e6 | 24865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24866 | PyObject * obj2 = 0 ; |
24867 | char *kwnames[] = { | |
24868 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
24869 | }; | |
24870 | ||
994141e6 | 24871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24874 | { | |
24875 | arg2 = (long)(SWIG_As_long(obj1)); | |
24876 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24877 | } | |
d14a1e28 RD |
24878 | { |
24879 | arg3 = &temp3; | |
24880 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24881 | } | |
24882 | { | |
24883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24884 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
24885 | ||
24886 | wxPyEndAllowThreads(__tstate); | |
24887 | if (PyErr_Occurred()) SWIG_fail; | |
24888 | } | |
4f89f6a3 RD |
24889 | { |
24890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24891 | } | |
d14a1e28 RD |
24892 | return resultobj; |
24893 | fail: | |
24894 | return NULL; | |
24895 | } | |
24896 | ||
24897 | ||
c32bde28 | 24898 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24899 | PyObject *resultobj; |
24900 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24901 | int result; | |
24902 | PyObject * obj0 = 0 ; | |
24903 | char *kwnames[] = { | |
24904 | (char *) "self", NULL | |
24905 | }; | |
24906 | ||
24907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24908 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24909 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24910 | { |
24911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24912 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
24913 | ||
24914 | wxPyEndAllowThreads(__tstate); | |
24915 | if (PyErr_Occurred()) SWIG_fail; | |
24916 | } | |
093d3ff1 RD |
24917 | { |
24918 | resultobj = SWIG_From_int((int)(result)); | |
24919 | } | |
d14a1e28 RD |
24920 | return resultobj; |
24921 | fail: | |
24922 | return NULL; | |
24923 | } | |
24924 | ||
24925 | ||
c32bde28 | 24926 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24927 | PyObject *resultobj; |
24928 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24929 | int result; | |
24930 | PyObject * obj0 = 0 ; | |
24931 | char *kwnames[] = { | |
24932 | (char *) "self", NULL | |
24933 | }; | |
24934 | ||
24935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24938 | { |
24939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24940 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
24941 | ||
24942 | wxPyEndAllowThreads(__tstate); | |
24943 | if (PyErr_Occurred()) SWIG_fail; | |
24944 | } | |
093d3ff1 RD |
24945 | { |
24946 | resultobj = SWIG_From_int((int)(result)); | |
24947 | } | |
d14a1e28 RD |
24948 | return resultobj; |
24949 | fail: | |
24950 | return NULL; | |
24951 | } | |
24952 | ||
24953 | ||
c32bde28 | 24954 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24955 | PyObject *resultobj; |
24956 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24957 | wxSize result; | |
24958 | PyObject * obj0 = 0 ; | |
24959 | char *kwnames[] = { | |
24960 | (char *) "self", NULL | |
24961 | }; | |
24962 | ||
24963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24966 | { |
24967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24968 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
24969 | ||
24970 | wxPyEndAllowThreads(__tstate); | |
24971 | if (PyErr_Occurred()) SWIG_fail; | |
24972 | } | |
24973 | { | |
24974 | wxSize * resultptr; | |
093d3ff1 | 24975 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 24976 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
24977 | } |
24978 | return resultobj; | |
24979 | fail: | |
24980 | return NULL; | |
24981 | } | |
24982 | ||
24983 | ||
c32bde28 | 24984 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
24985 | PyObject *resultobj; |
24986 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24987 | int arg2 ; | |
ae8162c8 | 24988 | bool arg3 = (bool) false ; |
d14a1e28 | 24989 | PyObject * obj0 = 0 ; |
994141e6 | 24990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24991 | PyObject * obj2 = 0 ; |
24992 | char *kwnames[] = { | |
24993 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
24994 | }; | |
24995 | ||
994141e6 | 24996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
24997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
24998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24999 | { | |
25000 | arg2 = (int)(SWIG_As_int(obj1)); | |
25001 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25002 | } | |
d14a1e28 | 25003 | if (obj2) { |
093d3ff1 RD |
25004 | { |
25005 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
25006 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25007 | } | |
d14a1e28 RD |
25008 | } |
25009 | { | |
25010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25011 | (arg1)->SetItemSpacing(arg2,arg3); | |
25012 | ||
25013 | wxPyEndAllowThreads(__tstate); | |
25014 | if (PyErr_Occurred()) SWIG_fail; | |
25015 | } | |
25016 | Py_INCREF(Py_None); resultobj = Py_None; | |
25017 | return resultobj; | |
25018 | fail: | |
25019 | return NULL; | |
25020 | } | |
25021 | ||
25022 | ||
c32bde28 | 25023 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25024 | PyObject *resultobj; |
25025 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25026 | int result; | |
25027 | PyObject * obj0 = 0 ; | |
25028 | char *kwnames[] = { | |
25029 | (char *) "self", NULL | |
25030 | }; | |
25031 | ||
25032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25035 | { |
25036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25037 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
25038 | ||
25039 | wxPyEndAllowThreads(__tstate); | |
25040 | if (PyErr_Occurred()) SWIG_fail; | |
25041 | } | |
093d3ff1 RD |
25042 | { |
25043 | resultobj = SWIG_From_int((int)(result)); | |
25044 | } | |
d14a1e28 RD |
25045 | return resultobj; |
25046 | fail: | |
25047 | return NULL; | |
25048 | } | |
25049 | ||
25050 | ||
c32bde28 | 25051 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25052 | PyObject *resultobj; |
25053 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25054 | wxColour result; | |
25055 | PyObject * obj0 = 0 ; | |
25056 | char *kwnames[] = { | |
25057 | (char *) "self", NULL | |
25058 | }; | |
25059 | ||
25060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25063 | { |
25064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25065 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
25066 | ||
25067 | wxPyEndAllowThreads(__tstate); | |
25068 | if (PyErr_Occurred()) SWIG_fail; | |
25069 | } | |
25070 | { | |
25071 | wxColour * resultptr; | |
093d3ff1 | 25072 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 25073 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25074 | } |
25075 | return resultobj; | |
25076 | fail: | |
25077 | return NULL; | |
25078 | } | |
25079 | ||
25080 | ||
c32bde28 | 25081 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25082 | PyObject *resultobj; |
25083 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25084 | wxColour *arg2 = 0 ; | |
25085 | wxColour temp2 ; | |
25086 | PyObject * obj0 = 0 ; | |
25087 | PyObject * obj1 = 0 ; | |
25088 | char *kwnames[] = { | |
25089 | (char *) "self",(char *) "col", NULL | |
25090 | }; | |
25091 | ||
25092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25095 | { |
25096 | arg2 = &temp2; | |
25097 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25098 | } | |
25099 | { | |
25100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25101 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
25102 | ||
25103 | wxPyEndAllowThreads(__tstate); | |
25104 | if (PyErr_Occurred()) SWIG_fail; | |
25105 | } | |
25106 | Py_INCREF(Py_None); resultobj = Py_None; | |
25107 | return resultobj; | |
25108 | fail: | |
25109 | return NULL; | |
25110 | } | |
25111 | ||
25112 | ||
c32bde28 | 25113 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25114 | PyObject *resultobj; |
25115 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25116 | long result; | |
25117 | PyObject * obj0 = 0 ; | |
25118 | char *kwnames[] = { | |
25119 | (char *) "self", NULL | |
25120 | }; | |
25121 | ||
25122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25125 | { |
25126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25127 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
25128 | ||
25129 | wxPyEndAllowThreads(__tstate); | |
25130 | if (PyErr_Occurred()) SWIG_fail; | |
25131 | } | |
093d3ff1 RD |
25132 | { |
25133 | resultobj = SWIG_From_long((long)(result)); | |
25134 | } | |
d14a1e28 RD |
25135 | return resultobj; |
25136 | fail: | |
25137 | return NULL; | |
25138 | } | |
25139 | ||
25140 | ||
c32bde28 | 25141 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25142 | PyObject *resultobj; |
25143 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25144 | long arg2 ; | |
ae8162c8 | 25145 | bool arg3 = (bool) true ; |
d14a1e28 | 25146 | PyObject * obj0 = 0 ; |
994141e6 | 25147 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25148 | PyObject * obj2 = 0 ; |
25149 | char *kwnames[] = { | |
25150 | (char *) "self",(char *) "style",(char *) "add", NULL | |
25151 | }; | |
25152 | ||
994141e6 | 25153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25156 | { | |
25157 | arg2 = (long)(SWIG_As_long(obj1)); | |
25158 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25159 | } | |
d14a1e28 | 25160 | if (obj2) { |
093d3ff1 RD |
25161 | { |
25162 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
25163 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25164 | } | |
d14a1e28 RD |
25165 | } |
25166 | { | |
25167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25168 | (arg1)->SetSingleStyle(arg2,arg3); | |
25169 | ||
25170 | wxPyEndAllowThreads(__tstate); | |
25171 | if (PyErr_Occurred()) SWIG_fail; | |
25172 | } | |
25173 | Py_INCREF(Py_None); resultobj = Py_None; | |
25174 | return resultobj; | |
25175 | fail: | |
25176 | return NULL; | |
25177 | } | |
25178 | ||
25179 | ||
c32bde28 | 25180 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25181 | PyObject *resultobj; |
25182 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25183 | long arg2 ; | |
25184 | PyObject * obj0 = 0 ; | |
994141e6 | 25185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25186 | char *kwnames[] = { |
25187 | (char *) "self",(char *) "style", NULL | |
25188 | }; | |
25189 | ||
994141e6 | 25190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25193 | { | |
25194 | arg2 = (long)(SWIG_As_long(obj1)); | |
25195 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25196 | } | |
d14a1e28 RD |
25197 | { |
25198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25199 | (arg1)->SetWindowStyleFlag(arg2); | |
25200 | ||
25201 | wxPyEndAllowThreads(__tstate); | |
25202 | if (PyErr_Occurred()) SWIG_fail; | |
25203 | } | |
25204 | Py_INCREF(Py_None); resultobj = Py_None; | |
25205 | return resultobj; | |
25206 | fail: | |
25207 | return NULL; | |
25208 | } | |
25209 | ||
25210 | ||
c32bde28 | 25211 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25212 | PyObject *resultobj; |
25213 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25214 | long arg2 ; | |
25215 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
25216 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
25217 | long result; | |
25218 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25219 | PyObject * obj1 = 0 ; |
25220 | PyObject * obj2 = 0 ; | |
25221 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25222 | char *kwnames[] = { |
25223 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
25224 | }; | |
25225 | ||
994141e6 | 25226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25227 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25228 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25229 | { | |
25230 | arg2 = (long)(SWIG_As_long(obj1)); | |
25231 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25232 | } | |
994141e6 | 25233 | if (obj2) { |
093d3ff1 RD |
25234 | { |
25235 | arg3 = (int)(SWIG_As_int(obj2)); | |
25236 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25237 | } | |
994141e6 RD |
25238 | } |
25239 | if (obj3) { | |
093d3ff1 RD |
25240 | { |
25241 | arg4 = (int)(SWIG_As_int(obj3)); | |
25242 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25243 | } | |
994141e6 | 25244 | } |
d14a1e28 RD |
25245 | { |
25246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25247 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
25248 | ||
25249 | wxPyEndAllowThreads(__tstate); | |
25250 | if (PyErr_Occurred()) SWIG_fail; | |
25251 | } | |
093d3ff1 RD |
25252 | { |
25253 | resultobj = SWIG_From_long((long)(result)); | |
25254 | } | |
d14a1e28 RD |
25255 | return resultobj; |
25256 | fail: | |
25257 | return NULL; | |
25258 | } | |
25259 | ||
25260 | ||
c32bde28 | 25261 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25262 | PyObject *resultobj; |
25263 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25264 | int arg2 ; | |
25265 | wxImageList *result; | |
25266 | PyObject * obj0 = 0 ; | |
994141e6 | 25267 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25268 | char *kwnames[] = { |
25269 | (char *) "self",(char *) "which", NULL | |
25270 | }; | |
25271 | ||
994141e6 | 25272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25275 | { | |
25276 | arg2 = (int)(SWIG_As_int(obj1)); | |
25277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25278 | } | |
d14a1e28 RD |
25279 | { |
25280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25281 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
25282 | ||
25283 | wxPyEndAllowThreads(__tstate); | |
25284 | if (PyErr_Occurred()) SWIG_fail; | |
25285 | } | |
25286 | { | |
412d302d | 25287 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25288 | } |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
25292 | } | |
25293 | ||
25294 | ||
c32bde28 | 25295 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25296 | PyObject *resultobj; |
25297 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25298 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25299 | int arg3 ; | |
25300 | PyObject * obj0 = 0 ; | |
25301 | PyObject * obj1 = 0 ; | |
994141e6 | 25302 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25303 | char *kwnames[] = { |
25304 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25305 | }; | |
25306 | ||
994141e6 | 25307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25310 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
25311 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25312 | { | |
25313 | arg3 = (int)(SWIG_As_int(obj2)); | |
25314 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25315 | } | |
d14a1e28 RD |
25316 | { |
25317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25318 | (arg1)->SetImageList(arg2,arg3); | |
25319 | ||
25320 | wxPyEndAllowThreads(__tstate); | |
25321 | if (PyErr_Occurred()) SWIG_fail; | |
25322 | } | |
25323 | Py_INCREF(Py_None); resultobj = Py_None; | |
25324 | return resultobj; | |
25325 | fail: | |
25326 | return NULL; | |
25327 | } | |
25328 | ||
25329 | ||
c32bde28 | 25330 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25331 | PyObject *resultobj; |
25332 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25333 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25334 | int arg3 ; | |
25335 | PyObject * obj0 = 0 ; | |
25336 | PyObject * obj1 = 0 ; | |
994141e6 | 25337 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25338 | char *kwnames[] = { |
25339 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25340 | }; | |
25341 | ||
994141e6 | 25342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25345 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
25346 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25347 | { | |
25348 | arg3 = (int)(SWIG_As_int(obj2)); | |
25349 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25350 | } | |
d14a1e28 RD |
25351 | { |
25352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25353 | (arg1)->AssignImageList(arg2,arg3); | |
25354 | ||
25355 | wxPyEndAllowThreads(__tstate); | |
25356 | if (PyErr_Occurred()) SWIG_fail; | |
25357 | } | |
25358 | Py_INCREF(Py_None); resultobj = Py_None; | |
25359 | return resultobj; | |
25360 | fail: | |
25361 | return NULL; | |
25362 | } | |
25363 | ||
25364 | ||
c32bde28 | 25365 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
4276dc52 RD |
25366 | PyObject *resultobj; |
25367 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25368 | bool result; | |
25369 | PyObject * obj0 = 0 ; | |
25370 | char *kwnames[] = { | |
25371 | (char *) "self", NULL | |
25372 | }; | |
25373 | ||
25374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25375 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25376 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
25377 | { |
25378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25379 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
25380 | ||
25381 | wxPyEndAllowThreads(__tstate); | |
25382 | if (PyErr_Occurred()) SWIG_fail; | |
25383 | } | |
4f89f6a3 RD |
25384 | { |
25385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25386 | } | |
4276dc52 RD |
25387 | return resultobj; |
25388 | fail: | |
25389 | return NULL; | |
25390 | } | |
25391 | ||
25392 | ||
c32bde28 | 25393 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25394 | PyObject *resultobj; |
25395 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25396 | bool result; | |
25397 | PyObject * obj0 = 0 ; | |
25398 | char *kwnames[] = { | |
25399 | (char *) "self", NULL | |
25400 | }; | |
25401 | ||
25402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25405 | { |
25406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25407 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
25408 | ||
25409 | wxPyEndAllowThreads(__tstate); | |
25410 | if (PyErr_Occurred()) SWIG_fail; | |
25411 | } | |
4f89f6a3 RD |
25412 | { |
25413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25414 | } | |
d14a1e28 RD |
25415 | return resultobj; |
25416 | fail: | |
25417 | return NULL; | |
25418 | } | |
25419 | ||
25420 | ||
c32bde28 | 25421 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25422 | PyObject *resultobj; |
25423 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25424 | long arg2 ; | |
25425 | PyObject * obj0 = 0 ; | |
994141e6 | 25426 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25427 | char *kwnames[] = { |
25428 | (char *) "self",(char *) "item", NULL | |
25429 | }; | |
25430 | ||
994141e6 | 25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25434 | { | |
25435 | arg2 = (long)(SWIG_As_long(obj1)); | |
25436 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25437 | } | |
d14a1e28 RD |
25438 | { |
25439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25440 | (arg1)->RefreshItem(arg2); | |
25441 | ||
25442 | wxPyEndAllowThreads(__tstate); | |
25443 | if (PyErr_Occurred()) SWIG_fail; | |
25444 | } | |
25445 | Py_INCREF(Py_None); resultobj = Py_None; | |
25446 | return resultobj; | |
25447 | fail: | |
25448 | return NULL; | |
25449 | } | |
25450 | ||
25451 | ||
c32bde28 | 25452 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25453 | PyObject *resultobj; |
25454 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25455 | long arg2 ; | |
25456 | long arg3 ; | |
25457 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25458 | PyObject * obj1 = 0 ; |
25459 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25460 | char *kwnames[] = { |
25461 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
25462 | }; | |
25463 | ||
994141e6 | 25464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25467 | { | |
25468 | arg2 = (long)(SWIG_As_long(obj1)); | |
25469 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25470 | } | |
25471 | { | |
25472 | arg3 = (long)(SWIG_As_long(obj2)); | |
25473 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25474 | } | |
d14a1e28 RD |
25475 | { |
25476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25477 | (arg1)->RefreshItems(arg2,arg3); | |
25478 | ||
25479 | wxPyEndAllowThreads(__tstate); | |
25480 | if (PyErr_Occurred()) SWIG_fail; | |
25481 | } | |
25482 | Py_INCREF(Py_None); resultobj = Py_None; | |
25483 | return resultobj; | |
25484 | fail: | |
25485 | return NULL; | |
25486 | } | |
25487 | ||
25488 | ||
c32bde28 | 25489 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25490 | PyObject *resultobj; |
25491 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25492 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
25493 | bool result; | |
25494 | PyObject * obj0 = 0 ; | |
994141e6 | 25495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25496 | char *kwnames[] = { |
25497 | (char *) "self",(char *) "flag", NULL | |
25498 | }; | |
25499 | ||
994141e6 | 25500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 25503 | if (obj1) { |
093d3ff1 RD |
25504 | { |
25505 | arg2 = (int)(SWIG_As_int(obj1)); | |
25506 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25507 | } | |
994141e6 | 25508 | } |
d14a1e28 RD |
25509 | { |
25510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25511 | result = (bool)(arg1)->Arrange(arg2); | |
25512 | ||
25513 | wxPyEndAllowThreads(__tstate); | |
25514 | if (PyErr_Occurred()) SWIG_fail; | |
25515 | } | |
4f89f6a3 RD |
25516 | { |
25517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25518 | } | |
d14a1e28 RD |
25519 | return resultobj; |
25520 | fail: | |
25521 | return NULL; | |
25522 | } | |
25523 | ||
25524 | ||
c32bde28 | 25525 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25526 | PyObject *resultobj; |
25527 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25528 | long arg2 ; | |
25529 | bool result; | |
25530 | PyObject * obj0 = 0 ; | |
994141e6 | 25531 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25532 | char *kwnames[] = { |
25533 | (char *) "self",(char *) "item", NULL | |
25534 | }; | |
25535 | ||
994141e6 | 25536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25539 | { | |
25540 | arg2 = (long)(SWIG_As_long(obj1)); | |
25541 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25542 | } | |
d14a1e28 RD |
25543 | { |
25544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25545 | result = (bool)(arg1)->DeleteItem(arg2); | |
25546 | ||
25547 | wxPyEndAllowThreads(__tstate); | |
25548 | if (PyErr_Occurred()) SWIG_fail; | |
25549 | } | |
4f89f6a3 RD |
25550 | { |
25551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25552 | } | |
d14a1e28 RD |
25553 | return resultobj; |
25554 | fail: | |
25555 | return NULL; | |
25556 | } | |
25557 | ||
25558 | ||
c32bde28 | 25559 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25560 | PyObject *resultobj; |
25561 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25562 | bool result; | |
25563 | PyObject * obj0 = 0 ; | |
25564 | char *kwnames[] = { | |
25565 | (char *) "self", NULL | |
25566 | }; | |
25567 | ||
25568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25571 | { |
25572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25573 | result = (bool)(arg1)->DeleteAllItems(); | |
25574 | ||
25575 | wxPyEndAllowThreads(__tstate); | |
25576 | if (PyErr_Occurred()) SWIG_fail; | |
25577 | } | |
4f89f6a3 RD |
25578 | { |
25579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25580 | } | |
d14a1e28 RD |
25581 | return resultobj; |
25582 | fail: | |
25583 | return NULL; | |
25584 | } | |
25585 | ||
25586 | ||
c32bde28 | 25587 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25588 | PyObject *resultobj; |
25589 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25590 | int arg2 ; | |
25591 | bool result; | |
25592 | PyObject * obj0 = 0 ; | |
994141e6 | 25593 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25594 | char *kwnames[] = { |
25595 | (char *) "self",(char *) "col", NULL | |
25596 | }; | |
25597 | ||
994141e6 | 25598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25601 | { | |
25602 | arg2 = (int)(SWIG_As_int(obj1)); | |
25603 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25604 | } | |
d14a1e28 RD |
25605 | { |
25606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25607 | result = (bool)(arg1)->DeleteColumn(arg2); | |
25608 | ||
25609 | wxPyEndAllowThreads(__tstate); | |
25610 | if (PyErr_Occurred()) SWIG_fail; | |
25611 | } | |
4f89f6a3 RD |
25612 | { |
25613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25614 | } | |
d14a1e28 RD |
25615 | return resultobj; |
25616 | fail: | |
25617 | return NULL; | |
25618 | } | |
25619 | ||
25620 | ||
c32bde28 | 25621 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25622 | PyObject *resultobj; |
25623 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25624 | bool result; | |
25625 | PyObject * obj0 = 0 ; | |
25626 | char *kwnames[] = { | |
25627 | (char *) "self", NULL | |
25628 | }; | |
25629 | ||
25630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25633 | { |
25634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25635 | result = (bool)(arg1)->DeleteAllColumns(); | |
25636 | ||
25637 | wxPyEndAllowThreads(__tstate); | |
25638 | if (PyErr_Occurred()) SWIG_fail; | |
25639 | } | |
4f89f6a3 RD |
25640 | { |
25641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25642 | } | |
d14a1e28 RD |
25643 | return resultobj; |
25644 | fail: | |
25645 | return NULL; | |
25646 | } | |
25647 | ||
25648 | ||
c32bde28 | 25649 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25650 | PyObject *resultobj; |
25651 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25652 | PyObject * obj0 = 0 ; | |
25653 | char *kwnames[] = { | |
25654 | (char *) "self", NULL | |
25655 | }; | |
25656 | ||
25657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25660 | { |
25661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25662 | (arg1)->ClearAll(); | |
25663 | ||
25664 | wxPyEndAllowThreads(__tstate); | |
25665 | if (PyErr_Occurred()) SWIG_fail; | |
25666 | } | |
25667 | Py_INCREF(Py_None); resultobj = Py_None; | |
25668 | return resultobj; | |
25669 | fail: | |
25670 | return NULL; | |
25671 | } | |
25672 | ||
25673 | ||
c32bde28 | 25674 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25675 | PyObject *resultobj; |
25676 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25677 | long arg2 ; | |
25678 | PyObject * obj0 = 0 ; | |
994141e6 | 25679 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25680 | char *kwnames[] = { |
25681 | (char *) "self",(char *) "item", NULL | |
25682 | }; | |
25683 | ||
994141e6 | 25684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25685 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25686 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25687 | { | |
25688 | arg2 = (long)(SWIG_As_long(obj1)); | |
25689 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25690 | } | |
d14a1e28 RD |
25691 | { |
25692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25693 | (arg1)->EditLabel(arg2); | |
25694 | ||
25695 | wxPyEndAllowThreads(__tstate); | |
25696 | if (PyErr_Occurred()) SWIG_fail; | |
25697 | } | |
25698 | Py_INCREF(Py_None); resultobj = Py_None; | |
25699 | return resultobj; | |
25700 | fail: | |
25701 | return NULL; | |
25702 | } | |
25703 | ||
25704 | ||
c32bde28 | 25705 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25706 | PyObject *resultobj; |
25707 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25708 | long arg2 ; | |
25709 | bool result; | |
25710 | PyObject * obj0 = 0 ; | |
994141e6 | 25711 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25712 | char *kwnames[] = { |
25713 | (char *) "self",(char *) "item", NULL | |
25714 | }; | |
25715 | ||
994141e6 | 25716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25719 | { | |
25720 | arg2 = (long)(SWIG_As_long(obj1)); | |
25721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25722 | } | |
d14a1e28 RD |
25723 | { |
25724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25725 | result = (bool)(arg1)->EnsureVisible(arg2); | |
25726 | ||
25727 | wxPyEndAllowThreads(__tstate); | |
25728 | if (PyErr_Occurred()) SWIG_fail; | |
25729 | } | |
4f89f6a3 RD |
25730 | { |
25731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25732 | } | |
d14a1e28 RD |
25733 | return resultobj; |
25734 | fail: | |
25735 | return NULL; | |
25736 | } | |
25737 | ||
25738 | ||
c32bde28 | 25739 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25740 | PyObject *resultobj; |
25741 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25742 | long arg2 ; | |
25743 | wxString *arg3 = 0 ; | |
ae8162c8 | 25744 | bool arg4 = (bool) false ; |
d14a1e28 | 25745 | long result; |
ae8162c8 | 25746 | bool temp3 = false ; |
d14a1e28 | 25747 | PyObject * obj0 = 0 ; |
994141e6 | 25748 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25749 | PyObject * obj2 = 0 ; |
25750 | PyObject * obj3 = 0 ; | |
25751 | char *kwnames[] = { | |
25752 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
25753 | }; | |
25754 | ||
994141e6 | 25755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25758 | { | |
25759 | arg2 = (long)(SWIG_As_long(obj1)); | |
25760 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25761 | } | |
d14a1e28 RD |
25762 | { |
25763 | arg3 = wxString_in_helper(obj2); | |
25764 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25765 | temp3 = true; |
d14a1e28 RD |
25766 | } |
25767 | if (obj3) { | |
093d3ff1 RD |
25768 | { |
25769 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
25770 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25771 | } | |
d14a1e28 RD |
25772 | } |
25773 | { | |
25774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25775 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
25776 | ||
25777 | wxPyEndAllowThreads(__tstate); | |
25778 | if (PyErr_Occurred()) SWIG_fail; | |
25779 | } | |
093d3ff1 RD |
25780 | { |
25781 | resultobj = SWIG_From_long((long)(result)); | |
25782 | } | |
d14a1e28 RD |
25783 | { |
25784 | if (temp3) | |
25785 | delete arg3; | |
25786 | } | |
25787 | return resultobj; | |
25788 | fail: | |
25789 | { | |
25790 | if (temp3) | |
25791 | delete arg3; | |
25792 | } | |
25793 | return NULL; | |
25794 | } | |
25795 | ||
25796 | ||
c32bde28 | 25797 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25798 | PyObject *resultobj; |
25799 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25800 | long arg2 ; | |
25801 | long arg3 ; | |
25802 | long result; | |
25803 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25804 | PyObject * obj1 = 0 ; |
25805 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25806 | char *kwnames[] = { |
25807 | (char *) "self",(char *) "start",(char *) "data", NULL | |
25808 | }; | |
25809 | ||
994141e6 | 25810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25811 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25813 | { | |
25814 | arg2 = (long)(SWIG_As_long(obj1)); | |
25815 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25816 | } | |
25817 | { | |
25818 | arg3 = (long)(SWIG_As_long(obj2)); | |
25819 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25820 | } | |
d14a1e28 RD |
25821 | { |
25822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25823 | result = (long)(arg1)->FindItem(arg2,arg3); | |
25824 | ||
25825 | wxPyEndAllowThreads(__tstate); | |
25826 | if (PyErr_Occurred()) SWIG_fail; | |
25827 | } | |
093d3ff1 RD |
25828 | { |
25829 | resultobj = SWIG_From_long((long)(result)); | |
25830 | } | |
d14a1e28 RD |
25831 | return resultobj; |
25832 | fail: | |
25833 | return NULL; | |
25834 | } | |
25835 | ||
25836 | ||
c32bde28 | 25837 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25838 | PyObject *resultobj; |
25839 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25840 | long arg2 ; | |
25841 | wxPoint *arg3 = 0 ; | |
25842 | int arg4 ; | |
25843 | long result; | |
25844 | wxPoint temp3 ; | |
25845 | PyObject * obj0 = 0 ; | |
994141e6 | 25846 | PyObject * obj1 = 0 ; |
d14a1e28 | 25847 | PyObject * obj2 = 0 ; |
994141e6 | 25848 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
25849 | char *kwnames[] = { |
25850 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
25851 | }; | |
25852 | ||
994141e6 | 25853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25856 | { | |
25857 | arg2 = (long)(SWIG_As_long(obj1)); | |
25858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25859 | } | |
d14a1e28 RD |
25860 | { |
25861 | arg3 = &temp3; | |
25862 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25863 | } | |
093d3ff1 RD |
25864 | { |
25865 | arg4 = (int)(SWIG_As_int(obj3)); | |
25866 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25867 | } | |
d14a1e28 RD |
25868 | { |
25869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25870 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
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_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25885 | PyObject *resultobj; |
25886 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25887 | wxPoint *arg2 = 0 ; | |
25888 | int *arg3 = 0 ; | |
25889 | long result; | |
25890 | wxPoint temp2 ; | |
25891 | int temp3 ; | |
c32bde28 | 25892 | int res3 = 0 ; |
d14a1e28 RD |
25893 | PyObject * obj0 = 0 ; |
25894 | PyObject * obj1 = 0 ; | |
25895 | char *kwnames[] = { | |
25896 | (char *) "self",(char *) "point", NULL | |
25897 | }; | |
25898 | ||
c32bde28 | 25899 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 25900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) 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; | |
d14a1e28 RD |
25903 | { |
25904 | arg2 = &temp2; | |
25905 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25906 | } | |
25907 | { | |
25908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25909 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25910 | ||
25911 | wxPyEndAllowThreads(__tstate); | |
25912 | if (PyErr_Occurred()) SWIG_fail; | |
25913 | } | |
093d3ff1 RD |
25914 | { |
25915 | resultobj = SWIG_From_long((long)(result)); | |
25916 | } | |
c32bde28 RD |
25917 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
25918 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
25919 | return resultobj; |
25920 | fail: | |
25921 | return NULL; | |
25922 | } | |
25923 | ||
25924 | ||
c32bde28 | 25925 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25926 | PyObject *resultobj; |
25927 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25928 | wxListItem *arg2 = 0 ; | |
25929 | long result; | |
25930 | PyObject * obj0 = 0 ; | |
25931 | PyObject * obj1 = 0 ; | |
25932 | char *kwnames[] = { | |
25933 | (char *) "self",(char *) "info", NULL | |
25934 | }; | |
25935 | ||
25936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25937 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25938 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25939 | { | |
25940 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25941 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25942 | if (arg2 == NULL) { | |
25943 | SWIG_null_ref("wxListItem"); | |
25944 | } | |
25945 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25946 | } |
25947 | { | |
25948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25949 | result = (long)(arg1)->InsertItem(*arg2); | |
25950 | ||
25951 | wxPyEndAllowThreads(__tstate); | |
25952 | if (PyErr_Occurred()) SWIG_fail; | |
25953 | } | |
093d3ff1 RD |
25954 | { |
25955 | resultobj = SWIG_From_long((long)(result)); | |
25956 | } | |
d14a1e28 RD |
25957 | return resultobj; |
25958 | fail: | |
25959 | return NULL; | |
25960 | } | |
25961 | ||
25962 | ||
c32bde28 | 25963 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25964 | PyObject *resultobj; |
25965 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25966 | long arg2 ; | |
25967 | wxString *arg3 = 0 ; | |
25968 | long result; | |
ae8162c8 | 25969 | bool temp3 = false ; |
d14a1e28 | 25970 | PyObject * obj0 = 0 ; |
994141e6 | 25971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25972 | PyObject * obj2 = 0 ; |
25973 | char *kwnames[] = { | |
25974 | (char *) "self",(char *) "index",(char *) "label", NULL | |
25975 | }; | |
25976 | ||
994141e6 | 25977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25980 | { | |
25981 | arg2 = (long)(SWIG_As_long(obj1)); | |
25982 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25983 | } | |
d14a1e28 RD |
25984 | { |
25985 | arg3 = wxString_in_helper(obj2); | |
25986 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25987 | temp3 = true; |
d14a1e28 RD |
25988 | } |
25989 | { | |
25990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25991 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
25992 | ||
25993 | wxPyEndAllowThreads(__tstate); | |
25994 | if (PyErr_Occurred()) SWIG_fail; | |
25995 | } | |
093d3ff1 RD |
25996 | { |
25997 | resultobj = SWIG_From_long((long)(result)); | |
25998 | } | |
d14a1e28 RD |
25999 | { |
26000 | if (temp3) | |
26001 | delete arg3; | |
26002 | } | |
26003 | return resultobj; | |
26004 | fail: | |
26005 | { | |
26006 | if (temp3) | |
26007 | delete arg3; | |
26008 | } | |
26009 | return NULL; | |
26010 | } | |
26011 | ||
26012 | ||
c32bde28 | 26013 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26014 | PyObject *resultobj; |
26015 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26016 | long arg2 ; | |
26017 | int arg3 ; | |
26018 | long result; | |
26019 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26020 | PyObject * obj1 = 0 ; |
26021 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26022 | char *kwnames[] = { |
26023 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
26024 | }; | |
26025 | ||
994141e6 | 26026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26027 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26029 | { | |
26030 | arg2 = (long)(SWIG_As_long(obj1)); | |
26031 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26032 | } | |
26033 | { | |
26034 | arg3 = (int)(SWIG_As_int(obj2)); | |
26035 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26036 | } | |
d14a1e28 RD |
26037 | { |
26038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26039 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
26040 | ||
26041 | wxPyEndAllowThreads(__tstate); | |
26042 | if (PyErr_Occurred()) SWIG_fail; | |
26043 | } | |
093d3ff1 RD |
26044 | { |
26045 | resultobj = SWIG_From_long((long)(result)); | |
26046 | } | |
d14a1e28 RD |
26047 | return resultobj; |
26048 | fail: | |
26049 | return NULL; | |
26050 | } | |
26051 | ||
26052 | ||
c32bde28 | 26053 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26054 | PyObject *resultobj; |
26055 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26056 | long arg2 ; | |
26057 | wxString *arg3 = 0 ; | |
26058 | int arg4 ; | |
26059 | long result; | |
ae8162c8 | 26060 | bool temp3 = false ; |
d14a1e28 | 26061 | PyObject * obj0 = 0 ; |
994141e6 | 26062 | PyObject * obj1 = 0 ; |
d14a1e28 | 26063 | PyObject * obj2 = 0 ; |
994141e6 | 26064 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
26065 | char *kwnames[] = { |
26066 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
26067 | }; | |
26068 | ||
994141e6 | 26069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
26070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26072 | { | |
26073 | arg2 = (long)(SWIG_As_long(obj1)); | |
26074 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26075 | } | |
d14a1e28 RD |
26076 | { |
26077 | arg3 = wxString_in_helper(obj2); | |
26078 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26079 | temp3 = true; |
d14a1e28 | 26080 | } |
093d3ff1 RD |
26081 | { |
26082 | arg4 = (int)(SWIG_As_int(obj3)); | |
26083 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26084 | } | |
d14a1e28 RD |
26085 | { |
26086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26087 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
26088 | ||
26089 | wxPyEndAllowThreads(__tstate); | |
26090 | if (PyErr_Occurred()) SWIG_fail; | |
26091 | } | |
093d3ff1 RD |
26092 | { |
26093 | resultobj = SWIG_From_long((long)(result)); | |
26094 | } | |
d14a1e28 RD |
26095 | { |
26096 | if (temp3) | |
26097 | delete arg3; | |
26098 | } | |
26099 | return resultobj; | |
26100 | fail: | |
26101 | { | |
26102 | if (temp3) | |
26103 | delete arg3; | |
26104 | } | |
26105 | return NULL; | |
26106 | } | |
26107 | ||
26108 | ||
a3957d3d | 26109 | static PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26110 | PyObject *resultobj; |
26111 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26112 | long arg2 ; | |
26113 | wxListItem *arg3 = 0 ; | |
26114 | long result; | |
26115 | PyObject * obj0 = 0 ; | |
994141e6 | 26116 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26117 | PyObject * obj2 = 0 ; |
26118 | char *kwnames[] = { | |
26119 | (char *) "self",(char *) "col",(char *) "info", NULL | |
26120 | }; | |
26121 | ||
a3957d3d | 26122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26123 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26124 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26125 | { | |
26126 | arg2 = (long)(SWIG_As_long(obj1)); | |
26127 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26128 | } | |
26129 | { | |
26130 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
26131 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26132 | if (arg3 == NULL) { | |
26133 | SWIG_null_ref("wxListItem"); | |
26134 | } | |
26135 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
26136 | } |
26137 | { | |
26138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26139 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
26140 | ||
26141 | wxPyEndAllowThreads(__tstate); | |
26142 | if (PyErr_Occurred()) SWIG_fail; | |
26143 | } | |
093d3ff1 RD |
26144 | { |
26145 | resultobj = SWIG_From_long((long)(result)); | |
26146 | } | |
d14a1e28 RD |
26147 | return resultobj; |
26148 | fail: | |
26149 | return NULL; | |
26150 | } | |
26151 | ||
26152 | ||
c32bde28 | 26153 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26154 | PyObject *resultobj; |
26155 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26156 | long arg2 ; | |
26157 | wxString *arg3 = 0 ; | |
26158 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
26159 | int arg5 = (int) -1 ; | |
26160 | long result; | |
ae8162c8 | 26161 | bool temp3 = false ; |
d14a1e28 | 26162 | PyObject * obj0 = 0 ; |
994141e6 | 26163 | PyObject * obj1 = 0 ; |
d14a1e28 | 26164 | PyObject * obj2 = 0 ; |
994141e6 RD |
26165 | PyObject * obj3 = 0 ; |
26166 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26167 | char *kwnames[] = { |
26168 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
26169 | }; | |
26170 | ||
994141e6 | 26171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
26172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26174 | { | |
26175 | arg2 = (long)(SWIG_As_long(obj1)); | |
26176 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26177 | } | |
d14a1e28 RD |
26178 | { |
26179 | arg3 = wxString_in_helper(obj2); | |
26180 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26181 | temp3 = true; |
d14a1e28 | 26182 | } |
994141e6 | 26183 | if (obj3) { |
093d3ff1 RD |
26184 | { |
26185 | arg4 = (int)(SWIG_As_int(obj3)); | |
26186 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26187 | } | |
994141e6 RD |
26188 | } |
26189 | if (obj4) { | |
093d3ff1 RD |
26190 | { |
26191 | arg5 = (int)(SWIG_As_int(obj4)); | |
26192 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26193 | } | |
994141e6 | 26194 | } |
d14a1e28 RD |
26195 | { |
26196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26197 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
26198 | ||
26199 | wxPyEndAllowThreads(__tstate); | |
26200 | if (PyErr_Occurred()) SWIG_fail; | |
26201 | } | |
093d3ff1 RD |
26202 | { |
26203 | resultobj = SWIG_From_long((long)(result)); | |
26204 | } | |
d14a1e28 RD |
26205 | { |
26206 | if (temp3) | |
26207 | delete arg3; | |
26208 | } | |
26209 | return resultobj; | |
26210 | fail: | |
26211 | { | |
26212 | if (temp3) | |
26213 | delete arg3; | |
26214 | } | |
26215 | return NULL; | |
26216 | } | |
26217 | ||
26218 | ||
c32bde28 | 26219 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26220 | PyObject *resultobj; |
26221 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26222 | long arg2 ; | |
26223 | PyObject * obj0 = 0 ; | |
994141e6 | 26224 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26225 | char *kwnames[] = { |
26226 | (char *) "self",(char *) "count", NULL | |
26227 | }; | |
26228 | ||
994141e6 | 26229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26232 | { | |
26233 | arg2 = (long)(SWIG_As_long(obj1)); | |
26234 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26235 | } | |
d14a1e28 RD |
26236 | { |
26237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26238 | (arg1)->SetItemCount(arg2); | |
26239 | ||
26240 | wxPyEndAllowThreads(__tstate); | |
26241 | if (PyErr_Occurred()) SWIG_fail; | |
26242 | } | |
26243 | Py_INCREF(Py_None); resultobj = Py_None; | |
26244 | return resultobj; | |
26245 | fail: | |
26246 | return NULL; | |
26247 | } | |
26248 | ||
26249 | ||
c32bde28 | 26250 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26251 | PyObject *resultobj; |
26252 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26253 | int arg2 ; | |
26254 | int arg3 ; | |
26255 | bool result; | |
26256 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26257 | PyObject * obj1 = 0 ; |
26258 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26259 | char *kwnames[] = { |
26260 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26261 | }; | |
26262 | ||
994141e6 | 26263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26266 | { | |
26267 | arg2 = (int)(SWIG_As_int(obj1)); | |
26268 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26269 | } | |
26270 | { | |
26271 | arg3 = (int)(SWIG_As_int(obj2)); | |
26272 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26273 | } | |
d14a1e28 RD |
26274 | { |
26275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26276 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
26277 | ||
26278 | wxPyEndAllowThreads(__tstate); | |
26279 | if (PyErr_Occurred()) SWIG_fail; | |
26280 | } | |
4f89f6a3 RD |
26281 | { |
26282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26283 | } | |
d14a1e28 RD |
26284 | return resultobj; |
26285 | fail: | |
26286 | return NULL; | |
26287 | } | |
26288 | ||
26289 | ||
c32bde28 | 26290 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26291 | PyObject *resultobj; |
26292 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26293 | long arg2 ; | |
26294 | wxColour *arg3 = 0 ; | |
26295 | wxColour temp3 ; | |
26296 | PyObject * obj0 = 0 ; | |
994141e6 | 26297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26298 | PyObject * obj2 = 0 ; |
26299 | char *kwnames[] = { | |
26300 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26301 | }; | |
26302 | ||
994141e6 | 26303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26306 | { | |
26307 | arg2 = (long)(SWIG_As_long(obj1)); | |
26308 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26309 | } | |
d14a1e28 RD |
26310 | { |
26311 | arg3 = &temp3; | |
26312 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26313 | } | |
26314 | { | |
26315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26316 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
26317 | ||
26318 | wxPyEndAllowThreads(__tstate); | |
26319 | if (PyErr_Occurred()) SWIG_fail; | |
26320 | } | |
26321 | Py_INCREF(Py_None); resultobj = Py_None; | |
26322 | return resultobj; | |
26323 | fail: | |
26324 | return NULL; | |
26325 | } | |
26326 | ||
26327 | ||
c32bde28 | 26328 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26329 | PyObject *resultobj; |
26330 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26331 | long arg2 ; | |
26332 | wxColour result; | |
26333 | PyObject * obj0 = 0 ; | |
994141e6 | 26334 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26335 | char *kwnames[] = { |
26336 | (char *) "self",(char *) "item", NULL | |
26337 | }; | |
26338 | ||
994141e6 | 26339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26342 | { | |
26343 | arg2 = (long)(SWIG_As_long(obj1)); | |
26344 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26345 | } | |
d14a1e28 RD |
26346 | { |
26347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26348 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
26349 | ||
26350 | wxPyEndAllowThreads(__tstate); | |
26351 | if (PyErr_Occurred()) SWIG_fail; | |
26352 | } | |
26353 | { | |
26354 | wxColour * resultptr; | |
093d3ff1 | 26355 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 26356 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26357 | } |
26358 | return resultobj; | |
26359 | fail: | |
26360 | return NULL; | |
26361 | } | |
26362 | ||
26363 | ||
c32bde28 | 26364 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26365 | PyObject *resultobj; |
26366 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26367 | long arg2 ; | |
26368 | wxColour *arg3 = 0 ; | |
26369 | wxColour temp3 ; | |
26370 | PyObject * obj0 = 0 ; | |
994141e6 | 26371 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26372 | PyObject * obj2 = 0 ; |
26373 | char *kwnames[] = { | |
26374 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26375 | }; | |
26376 | ||
994141e6 | 26377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26380 | { | |
26381 | arg2 = (long)(SWIG_As_long(obj1)); | |
26382 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26383 | } | |
d14a1e28 RD |
26384 | { |
26385 | arg3 = &temp3; | |
26386 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26387 | } | |
26388 | { | |
26389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26390 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
26391 | ||
26392 | wxPyEndAllowThreads(__tstate); | |
26393 | if (PyErr_Occurred()) SWIG_fail; | |
26394 | } | |
26395 | Py_INCREF(Py_None); resultobj = Py_None; | |
26396 | return resultobj; | |
26397 | fail: | |
26398 | return NULL; | |
26399 | } | |
26400 | ||
26401 | ||
c32bde28 | 26402 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26403 | PyObject *resultobj; |
26404 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26405 | long arg2 ; | |
26406 | wxColour result; | |
26407 | PyObject * obj0 = 0 ; | |
994141e6 | 26408 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26409 | char *kwnames[] = { |
26410 | (char *) "self",(char *) "item", NULL | |
26411 | }; | |
26412 | ||
994141e6 | 26413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26416 | { | |
26417 | arg2 = (long)(SWIG_As_long(obj1)); | |
26418 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26419 | } | |
d14a1e28 RD |
26420 | { |
26421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26422 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
26423 | ||
26424 | wxPyEndAllowThreads(__tstate); | |
26425 | if (PyErr_Occurred()) SWIG_fail; | |
26426 | } | |
26427 | { | |
26428 | wxColour * resultptr; | |
093d3ff1 | 26429 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 26430 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26431 | } |
26432 | return resultobj; | |
26433 | fail: | |
26434 | return NULL; | |
26435 | } | |
26436 | ||
26437 | ||
c32bde28 | 26438 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26439 | PyObject *resultobj; |
26440 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26441 | PyObject *arg2 = (PyObject *) 0 ; | |
26442 | bool result; | |
26443 | PyObject * obj0 = 0 ; | |
26444 | PyObject * obj1 = 0 ; | |
26445 | char *kwnames[] = { | |
26446 | (char *) "self",(char *) "func", NULL | |
26447 | }; | |
26448 | ||
26449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26452 | arg2 = obj1; |
26453 | { | |
26454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26455 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
26456 | ||
26457 | wxPyEndAllowThreads(__tstate); | |
26458 | if (PyErr_Occurred()) SWIG_fail; | |
26459 | } | |
4f89f6a3 RD |
26460 | { |
26461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26462 | } | |
d14a1e28 RD |
26463 | return resultobj; |
26464 | fail: | |
26465 | return NULL; | |
26466 | } | |
26467 | ||
26468 | ||
c32bde28 | 26469 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26470 | PyObject *resultobj; |
26471 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26472 | wxWindow *result; | |
26473 | PyObject * obj0 = 0 ; | |
26474 | char *kwnames[] = { | |
26475 | (char *) "self", NULL | |
26476 | }; | |
26477 | ||
26478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26481 | { |
26482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26483 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
26484 | ||
26485 | wxPyEndAllowThreads(__tstate); | |
26486 | if (PyErr_Occurred()) SWIG_fail; | |
26487 | } | |
26488 | { | |
412d302d | 26489 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
26490 | } |
26491 | return resultobj; | |
26492 | fail: | |
26493 | return NULL; | |
26494 | } | |
26495 | ||
26496 | ||
c32bde28 | 26497 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd | 26498 | PyObject *resultobj; |
093d3ff1 | 26499 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
26500 | wxVisualAttributes result; |
26501 | PyObject * obj0 = 0 ; | |
26502 | char *kwnames[] = { | |
26503 | (char *) "variant", NULL | |
26504 | }; | |
26505 | ||
26506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26507 | if (obj0) { | |
093d3ff1 RD |
26508 | { |
26509 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
26510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26511 | } | |
74a57fcd RD |
26512 | } |
26513 | { | |
110da5b0 | 26514 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
26515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26516 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26517 | ||
26518 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 26519 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
26520 | } |
26521 | { | |
26522 | wxVisualAttributes * resultptr; | |
093d3ff1 | 26523 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
26524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
26525 | } | |
26526 | return resultobj; | |
26527 | fail: | |
26528 | return NULL; | |
26529 | } | |
26530 | ||
26531 | ||
c32bde28 | 26532 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
26533 | PyObject *obj; |
26534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26535 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
26536 | Py_INCREF(obj); | |
26537 | return Py_BuildValue((char *)""); | |
26538 | } | |
c32bde28 | 26539 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26540 | PyObject *resultobj; |
26541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 26542 | int arg2 = (int) -1 ; |
d14a1e28 RD |
26543 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
26544 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26545 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26546 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26547 | long arg5 = (long) wxLC_REPORT ; | |
26548 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
26549 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
26550 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
26551 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26552 | wxListView *result; | |
26553 | wxPoint temp3 ; | |
26554 | wxSize temp4 ; | |
ae8162c8 | 26555 | bool temp7 = false ; |
d14a1e28 | 26556 | PyObject * obj0 = 0 ; |
994141e6 | 26557 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26558 | PyObject * obj2 = 0 ; |
26559 | PyObject * obj3 = 0 ; | |
994141e6 | 26560 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
26561 | PyObject * obj5 = 0 ; |
26562 | PyObject * obj6 = 0 ; | |
26563 | char *kwnames[] = { | |
26564 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26565 | }; | |
26566 | ||
994141e6 | 26567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
26568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
26569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 26570 | if (obj1) { |
093d3ff1 RD |
26571 | { |
26572 | arg2 = (int)(SWIG_As_int(obj1)); | |
26573 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26574 | } | |
994141e6 | 26575 | } |
d14a1e28 RD |
26576 | if (obj2) { |
26577 | { | |
26578 | arg3 = &temp3; | |
26579 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26580 | } | |
26581 | } | |
26582 | if (obj3) { | |
26583 | { | |
26584 | arg4 = &temp4; | |
26585 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26586 | } | |
26587 | } | |
994141e6 | 26588 | if (obj4) { |
093d3ff1 RD |
26589 | { |
26590 | arg5 = (long)(SWIG_As_long(obj4)); | |
26591 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26592 | } | |
994141e6 | 26593 | } |
d14a1e28 | 26594 | if (obj5) { |
093d3ff1 RD |
26595 | { |
26596 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26597 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26598 | if (arg6 == NULL) { | |
26599 | SWIG_null_ref("wxValidator"); | |
26600 | } | |
26601 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
26602 | } |
26603 | } | |
26604 | if (obj6) { | |
26605 | { | |
26606 | arg7 = wxString_in_helper(obj6); | |
26607 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 26608 | temp7 = true; |
d14a1e28 RD |
26609 | } |
26610 | } | |
26611 | { | |
e3b71cb8 | 26612 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
26613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26614 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
26615 | ||
26616 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26617 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 26618 | } |
15afbcd0 | 26619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
26620 | { |
26621 | if (temp7) | |
26622 | delete arg7; | |
26623 | } | |
26624 | return resultobj; | |
26625 | fail: | |
26626 | { | |
26627 | if (temp7) | |
26628 | delete arg7; | |
26629 | } | |
26630 | return NULL; | |
26631 | } | |
26632 | ||
26633 | ||
c32bde28 | 26634 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26635 | PyObject *resultobj; |
26636 | wxListView *result; | |
26637 | char *kwnames[] = { | |
26638 | NULL | |
26639 | }; | |
26640 | ||
26641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
26642 | { | |
e3b71cb8 | 26643 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
26644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26645 | result = (wxListView *)new wxListView(); | |
26646 | ||
26647 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26648 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 26649 | } |
15afbcd0 | 26650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
26651 | return resultobj; |
26652 | fail: | |
26653 | return NULL; | |
26654 | } | |
26655 | ||
26656 | ||
c32bde28 | 26657 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26658 | PyObject *resultobj; |
26659 | wxListView *arg1 = (wxListView *) 0 ; | |
26660 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 26661 | int arg3 = (int) -1 ; |
d14a1e28 RD |
26662 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
26663 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26664 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26665 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26666 | long arg6 = (long) wxLC_REPORT ; | |
26667 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
26668 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
26669 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
26670 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26671 | bool result; | |
26672 | wxPoint temp4 ; | |
26673 | wxSize temp5 ; | |
ae8162c8 | 26674 | bool temp8 = false ; |
d14a1e28 RD |
26675 | PyObject * obj0 = 0 ; |
26676 | PyObject * obj1 = 0 ; | |
994141e6 | 26677 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26678 | PyObject * obj3 = 0 ; |
26679 | PyObject * obj4 = 0 ; | |
994141e6 | 26680 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
26681 | PyObject * obj6 = 0 ; |
26682 | PyObject * obj7 = 0 ; | |
26683 | char *kwnames[] = { | |
26684 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26685 | }; | |
26686 | ||
994141e6 | 26687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
26688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26690 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
26691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 26692 | if (obj2) { |
093d3ff1 RD |
26693 | { |
26694 | arg3 = (int)(SWIG_As_int(obj2)); | |
26695 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26696 | } | |
994141e6 | 26697 | } |
d14a1e28 RD |
26698 | if (obj3) { |
26699 | { | |
26700 | arg4 = &temp4; | |
26701 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26702 | } | |
26703 | } | |
26704 | if (obj4) { | |
26705 | { | |
26706 | arg5 = &temp5; | |
26707 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26708 | } | |
26709 | } | |
994141e6 | 26710 | if (obj5) { |
093d3ff1 RD |
26711 | { |
26712 | arg6 = (long)(SWIG_As_long(obj5)); | |
26713 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26714 | } | |
994141e6 | 26715 | } |
d14a1e28 | 26716 | if (obj6) { |
093d3ff1 RD |
26717 | { |
26718 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26719 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26720 | if (arg7 == NULL) { | |
26721 | SWIG_null_ref("wxValidator"); | |
26722 | } | |
26723 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
26724 | } |
26725 | } | |
26726 | if (obj7) { | |
26727 | { | |
26728 | arg8 = wxString_in_helper(obj7); | |
26729 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 26730 | temp8 = true; |
d14a1e28 RD |
26731 | } |
26732 | } | |
26733 | { | |
26734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26735 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
26736 | ||
26737 | wxPyEndAllowThreads(__tstate); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | } | |
4f89f6a3 RD |
26740 | { |
26741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26742 | } | |
d14a1e28 RD |
26743 | { |
26744 | if (temp8) | |
26745 | delete arg8; | |
26746 | } | |
26747 | return resultobj; | |
26748 | fail: | |
26749 | { | |
26750 | if (temp8) | |
26751 | delete arg8; | |
26752 | } | |
26753 | return NULL; | |
26754 | } | |
26755 | ||
26756 | ||
c32bde28 | 26757 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26758 | PyObject *resultobj; |
26759 | wxListView *arg1 = (wxListView *) 0 ; | |
26760 | long arg2 ; | |
ae8162c8 | 26761 | bool arg3 = (bool) true ; |
d14a1e28 | 26762 | PyObject * obj0 = 0 ; |
994141e6 | 26763 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26764 | PyObject * obj2 = 0 ; |
26765 | char *kwnames[] = { | |
26766 | (char *) "self",(char *) "n",(char *) "on", NULL | |
26767 | }; | |
26768 | ||
15afbcd0 | 26769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26772 | { | |
26773 | arg2 = (long)(SWIG_As_long(obj1)); | |
26774 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26775 | } | |
d14a1e28 | 26776 | if (obj2) { |
093d3ff1 RD |
26777 | { |
26778 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
26779 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26780 | } | |
d14a1e28 RD |
26781 | } |
26782 | { | |
26783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26784 | (arg1)->Select(arg2,arg3); | |
26785 | ||
26786 | wxPyEndAllowThreads(__tstate); | |
26787 | if (PyErr_Occurred()) SWIG_fail; | |
26788 | } | |
26789 | Py_INCREF(Py_None); resultobj = Py_None; | |
26790 | return resultobj; | |
26791 | fail: | |
26792 | return NULL; | |
26793 | } | |
26794 | ||
26795 | ||
c32bde28 | 26796 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26797 | PyObject *resultobj; |
26798 | wxListView *arg1 = (wxListView *) 0 ; | |
26799 | long arg2 ; | |
26800 | PyObject * obj0 = 0 ; | |
994141e6 | 26801 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26802 | char *kwnames[] = { |
26803 | (char *) "self",(char *) "index", NULL | |
26804 | }; | |
26805 | ||
994141e6 | 26806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26809 | { | |
26810 | arg2 = (long)(SWIG_As_long(obj1)); | |
26811 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26812 | } | |
d14a1e28 RD |
26813 | { |
26814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26815 | (arg1)->Focus(arg2); | |
26816 | ||
26817 | wxPyEndAllowThreads(__tstate); | |
26818 | if (PyErr_Occurred()) SWIG_fail; | |
26819 | } | |
26820 | Py_INCREF(Py_None); resultobj = Py_None; | |
26821 | return resultobj; | |
26822 | fail: | |
26823 | return NULL; | |
26824 | } | |
26825 | ||
26826 | ||
c32bde28 | 26827 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26828 | PyObject *resultobj; |
26829 | wxListView *arg1 = (wxListView *) 0 ; | |
26830 | long result; | |
26831 | PyObject * obj0 = 0 ; | |
26832 | char *kwnames[] = { | |
26833 | (char *) "self", NULL | |
26834 | }; | |
26835 | ||
26836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26837 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26838 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26839 | { |
26840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26841 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
26842 | ||
26843 | wxPyEndAllowThreads(__tstate); | |
26844 | if (PyErr_Occurred()) SWIG_fail; | |
26845 | } | |
093d3ff1 RD |
26846 | { |
26847 | resultobj = SWIG_From_long((long)(result)); | |
26848 | } | |
d14a1e28 RD |
26849 | return resultobj; |
26850 | fail: | |
26851 | return NULL; | |
26852 | } | |
26853 | ||
26854 | ||
c32bde28 | 26855 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26856 | PyObject *resultobj; |
26857 | wxListView *arg1 = (wxListView *) 0 ; | |
26858 | long arg2 ; | |
26859 | long result; | |
26860 | PyObject * obj0 = 0 ; | |
994141e6 | 26861 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26862 | char *kwnames[] = { |
26863 | (char *) "self",(char *) "item", NULL | |
26864 | }; | |
26865 | ||
994141e6 | 26866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26869 | { | |
26870 | arg2 = (long)(SWIG_As_long(obj1)); | |
26871 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26872 | } | |
d14a1e28 RD |
26873 | { |
26874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26875 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
26876 | ||
26877 | wxPyEndAllowThreads(__tstate); | |
26878 | if (PyErr_Occurred()) SWIG_fail; | |
26879 | } | |
093d3ff1 RD |
26880 | { |
26881 | resultobj = SWIG_From_long((long)(result)); | |
26882 | } | |
d14a1e28 RD |
26883 | return resultobj; |
26884 | fail: | |
26885 | return NULL; | |
26886 | } | |
26887 | ||
26888 | ||
c32bde28 | 26889 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26890 | PyObject *resultobj; |
26891 | wxListView *arg1 = (wxListView *) 0 ; | |
26892 | long result; | |
26893 | PyObject * obj0 = 0 ; | |
26894 | char *kwnames[] = { | |
26895 | (char *) "self", NULL | |
26896 | }; | |
26897 | ||
26898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26899 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26901 | { |
26902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26903 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
26904 | ||
26905 | wxPyEndAllowThreads(__tstate); | |
26906 | if (PyErr_Occurred()) SWIG_fail; | |
26907 | } | |
093d3ff1 RD |
26908 | { |
26909 | resultobj = SWIG_From_long((long)(result)); | |
26910 | } | |
d14a1e28 RD |
26911 | return resultobj; |
26912 | fail: | |
26913 | return NULL; | |
26914 | } | |
26915 | ||
26916 | ||
c32bde28 | 26917 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26918 | PyObject *resultobj; |
26919 | wxListView *arg1 = (wxListView *) 0 ; | |
26920 | long arg2 ; | |
26921 | bool result; | |
26922 | PyObject * obj0 = 0 ; | |
994141e6 | 26923 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26924 | char *kwnames[] = { |
26925 | (char *) "self",(char *) "index", NULL | |
26926 | }; | |
26927 | ||
994141e6 | 26928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26931 | { | |
26932 | arg2 = (long)(SWIG_As_long(obj1)); | |
26933 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26934 | } | |
d14a1e28 RD |
26935 | { |
26936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26937 | result = (bool)(arg1)->IsSelected(arg2); | |
26938 | ||
26939 | wxPyEndAllowThreads(__tstate); | |
26940 | if (PyErr_Occurred()) SWIG_fail; | |
26941 | } | |
4f89f6a3 RD |
26942 | { |
26943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26944 | } | |
d14a1e28 RD |
26945 | return resultobj; |
26946 | fail: | |
26947 | return NULL; | |
26948 | } | |
26949 | ||
26950 | ||
c32bde28 | 26951 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26952 | PyObject *resultobj; |
26953 | wxListView *arg1 = (wxListView *) 0 ; | |
26954 | int arg2 ; | |
26955 | int arg3 ; | |
26956 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26957 | PyObject * obj1 = 0 ; |
26958 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26959 | char *kwnames[] = { |
26960 | (char *) "self",(char *) "col",(char *) "image", NULL | |
26961 | }; | |
26962 | ||
994141e6 | 26963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
26965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26966 | { | |
26967 | arg2 = (int)(SWIG_As_int(obj1)); | |
26968 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26969 | } | |
26970 | { | |
26971 | arg3 = (int)(SWIG_As_int(obj2)); | |
26972 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26973 | } | |
d14a1e28 RD |
26974 | { |
26975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26976 | (arg1)->SetColumnImage(arg2,arg3); | |
26977 | ||
26978 | wxPyEndAllowThreads(__tstate); | |
26979 | if (PyErr_Occurred()) SWIG_fail; | |
26980 | } | |
26981 | Py_INCREF(Py_None); resultobj = Py_None; | |
26982 | return resultobj; | |
26983 | fail: | |
26984 | return NULL; | |
26985 | } | |
26986 | ||
26987 | ||
c32bde28 | 26988 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26989 | PyObject *resultobj; |
26990 | wxListView *arg1 = (wxListView *) 0 ; | |
26991 | int arg2 ; | |
26992 | PyObject * obj0 = 0 ; | |
994141e6 | 26993 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26994 | char *kwnames[] = { |
26995 | (char *) "self",(char *) "col", NULL | |
26996 | }; | |
26997 | ||
994141e6 | 26998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
27000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27001 | { | |
27002 | arg2 = (int)(SWIG_As_int(obj1)); | |
27003 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27004 | } | |
d14a1e28 RD |
27005 | { |
27006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27007 | (arg1)->ClearColumnImage(arg2); | |
27008 | ||
27009 | wxPyEndAllowThreads(__tstate); | |
27010 | if (PyErr_Occurred()) SWIG_fail; | |
27011 | } | |
27012 | Py_INCREF(Py_None); resultobj = Py_None; | |
27013 | return resultobj; | |
27014 | fail: | |
27015 | return NULL; | |
27016 | } | |
27017 | ||
27018 | ||
c32bde28 | 27019 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27020 | PyObject *obj; |
27021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27022 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
27023 | Py_INCREF(obj); | |
27024 | return Py_BuildValue((char *)""); | |
27025 | } | |
c32bde28 | 27026 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
27027 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
27028 | return 1; | |
27029 | } | |
27030 | ||
27031 | ||
093d3ff1 | 27032 | static PyObject *_wrap_TreeCtrlNameStr_get(void) { |
b2dc1044 RD |
27033 | PyObject *pyobj; |
27034 | ||
27035 | { | |
27036 | #if wxUSE_UNICODE | |
27037 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
27038 | #else | |
27039 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
27040 | #endif | |
27041 | } | |
27042 | return pyobj; | |
27043 | } | |
27044 | ||
27045 | ||
c32bde28 | 27046 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27047 | PyObject *resultobj; |
27048 | wxTreeItemId *result; | |
27049 | char *kwnames[] = { | |
27050 | NULL | |
27051 | }; | |
27052 | ||
27053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
27054 | { | |
27055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27056 | result = (wxTreeItemId *)new wxTreeItemId(); | |
27057 | ||
27058 | wxPyEndAllowThreads(__tstate); | |
27059 | if (PyErr_Occurred()) SWIG_fail; | |
27060 | } | |
15afbcd0 | 27061 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27062 | return resultobj; |
27063 | fail: | |
27064 | return NULL; | |
27065 | } | |
27066 | ||
27067 | ||
c32bde28 | 27068 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27069 | PyObject *resultobj; |
27070 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27071 | PyObject * obj0 = 0 ; | |
27072 | char *kwnames[] = { | |
27073 | (char *) "self", NULL | |
27074 | }; | |
27075 | ||
27076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27079 | { |
27080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27081 | delete arg1; | |
27082 | ||
27083 | wxPyEndAllowThreads(__tstate); | |
27084 | if (PyErr_Occurred()) SWIG_fail; | |
27085 | } | |
27086 | Py_INCREF(Py_None); resultobj = Py_None; | |
27087 | return resultobj; | |
27088 | fail: | |
27089 | return NULL; | |
27090 | } | |
27091 | ||
27092 | ||
c32bde28 | 27093 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27094 | PyObject *resultobj; |
27095 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27096 | bool result; | |
27097 | PyObject * obj0 = 0 ; | |
27098 | char *kwnames[] = { | |
27099 | (char *) "self", NULL | |
27100 | }; | |
27101 | ||
27102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27105 | { |
27106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27107 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
27108 | ||
27109 | wxPyEndAllowThreads(__tstate); | |
27110 | if (PyErr_Occurred()) SWIG_fail; | |
27111 | } | |
4f89f6a3 RD |
27112 | { |
27113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27114 | } | |
d14a1e28 RD |
27115 | return resultobj; |
27116 | fail: | |
27117 | return NULL; | |
27118 | } | |
27119 | ||
27120 | ||
c32bde28 | 27121 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27122 | PyObject *resultobj; |
27123 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27124 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27125 | bool result; | |
27126 | PyObject * obj0 = 0 ; | |
27127 | PyObject * obj1 = 0 ; | |
27128 | char *kwnames[] = { | |
27129 | (char *) "self",(char *) "other", NULL | |
27130 | }; | |
27131 | ||
27132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27135 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27137 | { |
27138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 27139 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
27140 | |
27141 | wxPyEndAllowThreads(__tstate); | |
27142 | if (PyErr_Occurred()) SWIG_fail; | |
27143 | } | |
4f89f6a3 RD |
27144 | { |
27145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27146 | } | |
d14a1e28 RD |
27147 | return resultobj; |
27148 | fail: | |
27149 | return NULL; | |
27150 | } | |
27151 | ||
27152 | ||
c32bde28 | 27153 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27154 | PyObject *resultobj; |
27155 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27156 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27157 | bool result; | |
27158 | PyObject * obj0 = 0 ; | |
27159 | PyObject * obj1 = 0 ; | |
27160 | char *kwnames[] = { | |
27161 | (char *) "self",(char *) "other", NULL | |
27162 | }; | |
27163 | ||
27164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27167 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27168 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27169 | { |
27170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 27171 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
27172 | |
27173 | wxPyEndAllowThreads(__tstate); | |
27174 | if (PyErr_Occurred()) SWIG_fail; | |
27175 | } | |
4f89f6a3 RD |
27176 | { |
27177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27178 | } | |
d14a1e28 RD |
27179 | return resultobj; |
27180 | fail: | |
27181 | return NULL; | |
27182 | } | |
27183 | ||
27184 | ||
c32bde28 | 27185 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27186 | PyObject *resultobj; |
27187 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 27188 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
27189 | PyObject * obj0 = 0 ; |
27190 | PyObject * obj1 = 0 ; | |
27191 | char *kwnames[] = { | |
27192 | (char *) "self",(char *) "m_pItem", NULL | |
27193 | }; | |
27194 | ||
27195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27198 | { | |
27199 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),0,SWIG_POINTER_EXCEPTION|SWIG_POINTER_DISOWN))== -1) { | |
27200 | SWIG_arg_fail(2);SWIG_fail; | |
27201 | } | |
27202 | } | |
d14a1e28 RD |
27203 | if (arg1) (arg1)->m_pItem = arg2; |
27204 | ||
27205 | Py_INCREF(Py_None); resultobj = Py_None; | |
27206 | return resultobj; | |
27207 | fail: | |
27208 | return NULL; | |
27209 | } | |
27210 | ||
27211 | ||
c32bde28 | 27212 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27213 | PyObject *resultobj; |
27214 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 27215 | void *result; |
d14a1e28 RD |
27216 | PyObject * obj0 = 0 ; |
27217 | char *kwnames[] = { | |
27218 | (char *) "self", NULL | |
27219 | }; | |
27220 | ||
27221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27222 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
27223 | if (SWIG_arg_fail(1)) SWIG_fail; | |
58203fa6 | 27224 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 27225 | |
15afbcd0 | 27226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
27227 | return resultobj; |
27228 | fail: | |
27229 | return NULL; | |
27230 | } | |
27231 | ||
27232 | ||
c32bde28 | 27233 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27234 | PyObject *obj; |
27235 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27236 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
27237 | Py_INCREF(obj); | |
27238 | return Py_BuildValue((char *)""); | |
27239 | } | |
c32bde28 | 27240 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27241 | PyObject *resultobj; |
27242 | PyObject *arg1 = (PyObject *) NULL ; | |
27243 | wxPyTreeItemData *result; | |
27244 | PyObject * obj0 = 0 ; | |
27245 | char *kwnames[] = { | |
27246 | (char *) "obj", NULL | |
27247 | }; | |
27248 | ||
27249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
27250 | if (obj0) { | |
27251 | arg1 = obj0; | |
27252 | } | |
27253 | { | |
27254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27255 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
27256 | ||
27257 | wxPyEndAllowThreads(__tstate); | |
27258 | if (PyErr_Occurred()) SWIG_fail; | |
27259 | } | |
15afbcd0 | 27260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
27261 | return resultobj; |
27262 | fail: | |
27263 | return NULL; | |
27264 | } | |
27265 | ||
27266 | ||
c32bde28 | 27267 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27268 | PyObject *resultobj; |
27269 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27270 | PyObject *result; | |
27271 | PyObject * obj0 = 0 ; | |
27272 | char *kwnames[] = { | |
27273 | (char *) "self", NULL | |
27274 | }; | |
27275 | ||
27276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27277 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27278 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27279 | { |
27280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27281 | result = (PyObject *)(arg1)->GetData(); | |
27282 | ||
27283 | wxPyEndAllowThreads(__tstate); | |
27284 | if (PyErr_Occurred()) SWIG_fail; | |
27285 | } | |
27286 | resultobj = result; | |
27287 | return resultobj; | |
27288 | fail: | |
27289 | return NULL; | |
27290 | } | |
27291 | ||
27292 | ||
c32bde28 | 27293 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27294 | PyObject *resultobj; |
27295 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27296 | PyObject *arg2 = (PyObject *) 0 ; | |
27297 | PyObject * obj0 = 0 ; | |
27298 | PyObject * obj1 = 0 ; | |
27299 | char *kwnames[] = { | |
27300 | (char *) "self",(char *) "obj", NULL | |
27301 | }; | |
27302 | ||
27303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27306 | arg2 = obj1; |
27307 | { | |
27308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27309 | (arg1)->SetData(arg2); | |
27310 | ||
27311 | wxPyEndAllowThreads(__tstate); | |
27312 | if (PyErr_Occurred()) SWIG_fail; | |
27313 | } | |
27314 | Py_INCREF(Py_None); resultobj = Py_None; | |
27315 | return resultobj; | |
27316 | fail: | |
27317 | return NULL; | |
27318 | } | |
27319 | ||
27320 | ||
c32bde28 | 27321 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27322 | PyObject *resultobj; |
27323 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27324 | wxTreeItemId *result; | |
27325 | PyObject * obj0 = 0 ; | |
27326 | char *kwnames[] = { | |
27327 | (char *) "self", NULL | |
27328 | }; | |
27329 | ||
27330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27333 | { |
27334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27335 | { | |
27336 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
27337 | result = (wxTreeItemId *) &_result_ref; | |
27338 | } | |
27339 | ||
27340 | wxPyEndAllowThreads(__tstate); | |
27341 | if (PyErr_Occurred()) SWIG_fail; | |
27342 | } | |
15afbcd0 | 27343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
27344 | return resultobj; |
27345 | fail: | |
27346 | return NULL; | |
27347 | } | |
27348 | ||
27349 | ||
c32bde28 | 27350 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27351 | PyObject *resultobj; |
27352 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27353 | wxTreeItemId *arg2 = 0 ; | |
27354 | PyObject * obj0 = 0 ; | |
27355 | PyObject * obj1 = 0 ; | |
27356 | char *kwnames[] = { | |
27357 | (char *) "self",(char *) "id", NULL | |
27358 | }; | |
27359 | ||
27360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27363 | { | |
27364 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27365 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27366 | if (arg2 == NULL) { | |
27367 | SWIG_null_ref("wxTreeItemId"); | |
27368 | } | |
27369 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27370 | } |
27371 | { | |
27372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27373 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
27374 | ||
27375 | wxPyEndAllowThreads(__tstate); | |
27376 | if (PyErr_Occurred()) SWIG_fail; | |
27377 | } | |
27378 | Py_INCREF(Py_None); resultobj = Py_None; | |
27379 | return resultobj; | |
27380 | fail: | |
27381 | return NULL; | |
27382 | } | |
27383 | ||
27384 | ||
c32bde28 | 27385 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27386 | PyObject *resultobj; |
27387 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27388 | PyObject * obj0 = 0 ; | |
27389 | char *kwnames[] = { | |
27390 | (char *) "self", NULL | |
27391 | }; | |
27392 | ||
27393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
27395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27396 | { |
27397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27398 | wxPyTreeItemData_Destroy(arg1); | |
27399 | ||
27400 | wxPyEndAllowThreads(__tstate); | |
27401 | if (PyErr_Occurred()) SWIG_fail; | |
27402 | } | |
27403 | Py_INCREF(Py_None); resultobj = Py_None; | |
27404 | return resultobj; | |
27405 | fail: | |
27406 | return NULL; | |
27407 | } | |
27408 | ||
27409 | ||
c32bde28 | 27410 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27411 | PyObject *obj; |
27412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27413 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
27414 | Py_INCREF(obj); | |
27415 | return Py_BuildValue((char *)""); | |
27416 | } | |
c32bde28 | 27417 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27418 | PyObject *resultobj; |
27419 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
27420 | int arg2 = (int) 0 ; | |
27421 | wxTreeEvent *result; | |
994141e6 RD |
27422 | PyObject * obj0 = 0 ; |
27423 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
27424 | char *kwnames[] = { |
27425 | (char *) "commandType",(char *) "id", NULL | |
27426 | }; | |
27427 | ||
994141e6 RD |
27428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
27429 | if (obj0) { | |
093d3ff1 RD |
27430 | { |
27431 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
27432 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27433 | } | |
994141e6 RD |
27434 | } |
27435 | if (obj1) { | |
093d3ff1 RD |
27436 | { |
27437 | arg2 = (int)(SWIG_As_int(obj1)); | |
27438 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27439 | } | |
994141e6 | 27440 | } |
d14a1e28 RD |
27441 | { |
27442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27443 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
27444 | ||
27445 | wxPyEndAllowThreads(__tstate); | |
27446 | if (PyErr_Occurred()) SWIG_fail; | |
27447 | } | |
15afbcd0 | 27448 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
27449 | return resultobj; |
27450 | fail: | |
27451 | return NULL; | |
27452 | } | |
27453 | ||
27454 | ||
c32bde28 | 27455 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27456 | PyObject *resultobj; |
27457 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27458 | wxTreeItemId result; | |
27459 | PyObject * obj0 = 0 ; | |
27460 | char *kwnames[] = { | |
27461 | (char *) "self", NULL | |
27462 | }; | |
27463 | ||
27464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27467 | { |
27468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27469 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
27470 | ||
27471 | wxPyEndAllowThreads(__tstate); | |
27472 | if (PyErr_Occurred()) SWIG_fail; | |
27473 | } | |
27474 | { | |
27475 | wxTreeItemId * resultptr; | |
093d3ff1 | 27476 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 27477 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27478 | } |
27479 | return resultobj; | |
27480 | fail: | |
27481 | return NULL; | |
27482 | } | |
27483 | ||
27484 | ||
c32bde28 | 27485 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27486 | PyObject *resultobj; |
27487 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27488 | wxTreeItemId *arg2 = 0 ; | |
27489 | PyObject * obj0 = 0 ; | |
27490 | PyObject * obj1 = 0 ; | |
27491 | char *kwnames[] = { | |
27492 | (char *) "self",(char *) "item", NULL | |
27493 | }; | |
27494 | ||
27495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27498 | { | |
27499 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27500 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27501 | if (arg2 == NULL) { | |
27502 | SWIG_null_ref("wxTreeItemId"); | |
27503 | } | |
27504 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27505 | } |
27506 | { | |
27507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27508 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
27509 | ||
27510 | wxPyEndAllowThreads(__tstate); | |
27511 | if (PyErr_Occurred()) SWIG_fail; | |
27512 | } | |
27513 | Py_INCREF(Py_None); resultobj = Py_None; | |
27514 | return resultobj; | |
27515 | fail: | |
27516 | return NULL; | |
27517 | } | |
27518 | ||
27519 | ||
c32bde28 | 27520 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27521 | PyObject *resultobj; |
27522 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27523 | wxTreeItemId result; | |
27524 | PyObject * obj0 = 0 ; | |
27525 | char *kwnames[] = { | |
27526 | (char *) "self", NULL | |
27527 | }; | |
27528 | ||
27529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27532 | { |
27533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27534 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
27535 | ||
27536 | wxPyEndAllowThreads(__tstate); | |
27537 | if (PyErr_Occurred()) SWIG_fail; | |
27538 | } | |
27539 | { | |
27540 | wxTreeItemId * resultptr; | |
093d3ff1 | 27541 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 27542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27543 | } |
27544 | return resultobj; | |
27545 | fail: | |
27546 | return NULL; | |
27547 | } | |
27548 | ||
27549 | ||
c32bde28 | 27550 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27551 | PyObject *resultobj; |
27552 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27553 | wxTreeItemId *arg2 = 0 ; | |
27554 | PyObject * obj0 = 0 ; | |
27555 | PyObject * obj1 = 0 ; | |
27556 | char *kwnames[] = { | |
27557 | (char *) "self",(char *) "item", NULL | |
27558 | }; | |
27559 | ||
27560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27563 | { | |
27564 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27565 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27566 | if (arg2 == NULL) { | |
27567 | SWIG_null_ref("wxTreeItemId"); | |
27568 | } | |
27569 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27570 | } |
27571 | { | |
27572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27573 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
27574 | ||
27575 | wxPyEndAllowThreads(__tstate); | |
27576 | if (PyErr_Occurred()) SWIG_fail; | |
27577 | } | |
27578 | Py_INCREF(Py_None); resultobj = Py_None; | |
27579 | return resultobj; | |
27580 | fail: | |
27581 | return NULL; | |
27582 | } | |
27583 | ||
27584 | ||
c32bde28 | 27585 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27586 | PyObject *resultobj; |
27587 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27588 | wxPoint result; | |
27589 | PyObject * obj0 = 0 ; | |
27590 | char *kwnames[] = { | |
27591 | (char *) "self", NULL | |
27592 | }; | |
27593 | ||
27594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27597 | { |
27598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27599 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
27600 | ||
27601 | wxPyEndAllowThreads(__tstate); | |
27602 | if (PyErr_Occurred()) SWIG_fail; | |
27603 | } | |
27604 | { | |
27605 | wxPoint * resultptr; | |
093d3ff1 | 27606 | resultptr = new wxPoint((wxPoint &)(result)); |
15afbcd0 | 27607 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
27608 | } |
27609 | return resultobj; | |
27610 | fail: | |
27611 | return NULL; | |
27612 | } | |
27613 | ||
27614 | ||
c32bde28 | 27615 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27616 | PyObject *resultobj; |
27617 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27618 | wxPoint *arg2 = 0 ; | |
27619 | wxPoint temp2 ; | |
27620 | PyObject * obj0 = 0 ; | |
27621 | PyObject * obj1 = 0 ; | |
27622 | char *kwnames[] = { | |
27623 | (char *) "self",(char *) "pt", NULL | |
27624 | }; | |
27625 | ||
27626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27629 | { |
27630 | arg2 = &temp2; | |
27631 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27632 | } | |
27633 | { | |
27634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27635 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
27636 | ||
27637 | wxPyEndAllowThreads(__tstate); | |
27638 | if (PyErr_Occurred()) SWIG_fail; | |
27639 | } | |
27640 | Py_INCREF(Py_None); resultobj = Py_None; | |
27641 | return resultobj; | |
27642 | fail: | |
27643 | return NULL; | |
27644 | } | |
27645 | ||
27646 | ||
c32bde28 | 27647 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27648 | PyObject *resultobj; |
27649 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27650 | wxKeyEvent *result; | |
27651 | PyObject * obj0 = 0 ; | |
27652 | char *kwnames[] = { | |
27653 | (char *) "self", NULL | |
27654 | }; | |
27655 | ||
27656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27659 | { |
27660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27661 | { | |
27662 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
27663 | result = (wxKeyEvent *) &_result_ref; | |
27664 | } | |
27665 | ||
27666 | wxPyEndAllowThreads(__tstate); | |
27667 | if (PyErr_Occurred()) SWIG_fail; | |
27668 | } | |
15afbcd0 | 27669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
27670 | return resultobj; |
27671 | fail: | |
27672 | return NULL; | |
27673 | } | |
27674 | ||
27675 | ||
c32bde28 | 27676 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27677 | PyObject *resultobj; |
27678 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27679 | int result; | |
27680 | PyObject * obj0 = 0 ; | |
27681 | char *kwnames[] = { | |
27682 | (char *) "self", NULL | |
27683 | }; | |
27684 | ||
27685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27688 | { |
27689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27690 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
27691 | ||
27692 | wxPyEndAllowThreads(__tstate); | |
27693 | if (PyErr_Occurred()) SWIG_fail; | |
27694 | } | |
093d3ff1 RD |
27695 | { |
27696 | resultobj = SWIG_From_int((int)(result)); | |
27697 | } | |
d14a1e28 RD |
27698 | return resultobj; |
27699 | fail: | |
27700 | return NULL; | |
27701 | } | |
27702 | ||
27703 | ||
c32bde28 | 27704 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27705 | PyObject *resultobj; |
27706 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27707 | wxKeyEvent *arg2 = 0 ; | |
27708 | PyObject * obj0 = 0 ; | |
27709 | PyObject * obj1 = 0 ; | |
27710 | char *kwnames[] = { | |
27711 | (char *) "self",(char *) "evt", NULL | |
27712 | }; | |
27713 | ||
27714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27717 | { | |
27718 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
27719 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27720 | if (arg2 == NULL) { | |
27721 | SWIG_null_ref("wxKeyEvent"); | |
27722 | } | |
27723 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27724 | } |
27725 | { | |
27726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27727 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
27728 | ||
27729 | wxPyEndAllowThreads(__tstate); | |
27730 | if (PyErr_Occurred()) SWIG_fail; | |
27731 | } | |
27732 | Py_INCREF(Py_None); resultobj = Py_None; | |
27733 | return resultobj; | |
27734 | fail: | |
27735 | return NULL; | |
27736 | } | |
27737 | ||
27738 | ||
c32bde28 | 27739 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27740 | PyObject *resultobj; |
27741 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27742 | wxString *result; | |
27743 | PyObject * obj0 = 0 ; | |
27744 | char *kwnames[] = { | |
27745 | (char *) "self", NULL | |
27746 | }; | |
27747 | ||
27748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27751 | { |
27752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27753 | { | |
27754 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
27755 | result = (wxString *) &_result_ref; | |
27756 | } | |
27757 | ||
27758 | wxPyEndAllowThreads(__tstate); | |
27759 | if (PyErr_Occurred()) SWIG_fail; | |
27760 | } | |
cc6dd355 RD |
27761 | { |
27762 | #if wxUSE_UNICODE | |
27763 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27764 | #else | |
27765 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27766 | #endif | |
27767 | } | |
d14a1e28 RD |
27768 | return resultobj; |
27769 | fail: | |
27770 | return NULL; | |
27771 | } | |
27772 | ||
27773 | ||
c32bde28 | 27774 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27775 | PyObject *resultobj; |
27776 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27777 | wxString *arg2 = 0 ; | |
ae8162c8 | 27778 | bool temp2 = false ; |
d14a1e28 RD |
27779 | PyObject * obj0 = 0 ; |
27780 | PyObject * obj1 = 0 ; | |
27781 | char *kwnames[] = { | |
27782 | (char *) "self",(char *) "label", NULL | |
27783 | }; | |
27784 | ||
27785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27788 | { |
27789 | arg2 = wxString_in_helper(obj1); | |
27790 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27791 | temp2 = true; |
d14a1e28 RD |
27792 | } |
27793 | { | |
27794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27795 | (arg1)->SetLabel((wxString const &)*arg2); | |
27796 | ||
27797 | wxPyEndAllowThreads(__tstate); | |
27798 | if (PyErr_Occurred()) SWIG_fail; | |
27799 | } | |
27800 | Py_INCREF(Py_None); resultobj = Py_None; | |
27801 | { | |
27802 | if (temp2) | |
27803 | delete arg2; | |
27804 | } | |
27805 | return resultobj; | |
27806 | fail: | |
27807 | { | |
27808 | if (temp2) | |
27809 | delete arg2; | |
27810 | } | |
27811 | return NULL; | |
27812 | } | |
27813 | ||
27814 | ||
c32bde28 | 27815 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27816 | PyObject *resultobj; |
27817 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27818 | bool result; | |
27819 | PyObject * obj0 = 0 ; | |
27820 | char *kwnames[] = { | |
27821 | (char *) "self", NULL | |
27822 | }; | |
27823 | ||
27824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27827 | { |
27828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27829 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
27830 | ||
27831 | wxPyEndAllowThreads(__tstate); | |
27832 | if (PyErr_Occurred()) SWIG_fail; | |
27833 | } | |
4f89f6a3 RD |
27834 | { |
27835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27836 | } | |
d14a1e28 RD |
27837 | return resultobj; |
27838 | fail: | |
27839 | return NULL; | |
27840 | } | |
27841 | ||
27842 | ||
c32bde28 | 27843 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27844 | PyObject *resultobj; |
27845 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27846 | bool arg2 ; | |
27847 | PyObject * obj0 = 0 ; | |
27848 | PyObject * obj1 = 0 ; | |
27849 | char *kwnames[] = { | |
27850 | (char *) "self",(char *) "editCancelled", NULL | |
27851 | }; | |
27852 | ||
27853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27856 | { | |
27857 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27858 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27859 | } | |
d14a1e28 RD |
27860 | { |
27861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27862 | (arg1)->SetEditCanceled(arg2); | |
27863 | ||
27864 | wxPyEndAllowThreads(__tstate); | |
27865 | if (PyErr_Occurred()) SWIG_fail; | |
27866 | } | |
27867 | Py_INCREF(Py_None); resultobj = Py_None; | |
27868 | return resultobj; | |
27869 | fail: | |
27870 | return NULL; | |
27871 | } | |
27872 | ||
27873 | ||
c32bde28 | 27874 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
27875 | PyObject *resultobj; |
27876 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27877 | wxString *arg2 = 0 ; | |
ae8162c8 | 27878 | bool temp2 = false ; |
c9c7117a RD |
27879 | PyObject * obj0 = 0 ; |
27880 | PyObject * obj1 = 0 ; | |
27881 | char *kwnames[] = { | |
27882 | (char *) "self",(char *) "toolTip", NULL | |
27883 | }; | |
27884 | ||
27885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
27887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
27888 | { |
27889 | arg2 = wxString_in_helper(obj1); | |
27890 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 27891 | temp2 = true; |
c9c7117a RD |
27892 | } |
27893 | { | |
27894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27895 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27896 | ||
27897 | wxPyEndAllowThreads(__tstate); | |
27898 | if (PyErr_Occurred()) SWIG_fail; | |
27899 | } | |
27900 | Py_INCREF(Py_None); resultobj = Py_None; | |
27901 | { | |
27902 | if (temp2) | |
27903 | delete arg2; | |
27904 | } | |
27905 | return resultobj; | |
27906 | fail: | |
27907 | { | |
27908 | if (temp2) | |
27909 | delete arg2; | |
27910 | } | |
27911 | return NULL; | |
27912 | } | |
27913 | ||
27914 | ||
562ecc31 RD |
27915 | static PyObject *_wrap_TreeEvent_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
27916 | PyObject *resultobj; | |
27917 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27918 | wxString result; | |
27919 | PyObject * obj0 = 0 ; | |
27920 | char *kwnames[] = { | |
27921 | (char *) "self", NULL | |
27922 | }; | |
27923 | ||
27924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetToolTip",kwnames,&obj0)) goto fail; | |
27925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27927 | { | |
27928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27929 | result = (arg1)->GetToolTip(); | |
27930 | ||
27931 | wxPyEndAllowThreads(__tstate); | |
27932 | if (PyErr_Occurred()) SWIG_fail; | |
27933 | } | |
27934 | { | |
27935 | #if wxUSE_UNICODE | |
27936 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27937 | #else | |
27938 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27939 | #endif | |
27940 | } | |
27941 | return resultobj; | |
27942 | fail: | |
27943 | return NULL; | |
27944 | } | |
27945 | ||
27946 | ||
c32bde28 | 27947 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27948 | PyObject *obj; |
27949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27950 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
27951 | Py_INCREF(obj); | |
27952 | return Py_BuildValue((char *)""); | |
27953 | } | |
c32bde28 | 27954 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
27955 | PyObject *resultobj; |
27956 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 27957 | int arg2 = (int) -1 ; |
d14a1e28 RD |
27958 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27959 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27960 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27961 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27962 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
27963 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27964 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 27965 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27966 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
27967 | wxPyTreeCtrl *result; | |
27968 | wxPoint temp3 ; | |
27969 | wxSize temp4 ; | |
ae8162c8 | 27970 | bool temp7 = false ; |
d14a1e28 | 27971 | PyObject * obj0 = 0 ; |
994141e6 | 27972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27973 | PyObject * obj2 = 0 ; |
27974 | PyObject * obj3 = 0 ; | |
994141e6 | 27975 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27976 | PyObject * obj5 = 0 ; |
27977 | PyObject * obj6 = 0 ; | |
27978 | char *kwnames[] = { | |
27979 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27980 | }; | |
27981 | ||
994141e6 | 27982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
27983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 27985 | if (obj1) { |
093d3ff1 RD |
27986 | { |
27987 | arg2 = (int)(SWIG_As_int(obj1)); | |
27988 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27989 | } | |
994141e6 | 27990 | } |
d14a1e28 RD |
27991 | if (obj2) { |
27992 | { | |
27993 | arg3 = &temp3; | |
27994 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27995 | } | |
27996 | } | |
27997 | if (obj3) { | |
27998 | { | |
994141e6 RD |
27999 | arg4 = &temp4; |
28000 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28001 | } | |
28002 | } | |
28003 | if (obj4) { | |
093d3ff1 RD |
28004 | { |
28005 | arg5 = (long)(SWIG_As_long(obj4)); | |
28006 | if (SWIG_arg_fail(5)) SWIG_fail; | |
28007 | } | |
d14a1e28 RD |
28008 | } |
28009 | if (obj5) { | |
093d3ff1 RD |
28010 | { |
28011 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28012 | if (SWIG_arg_fail(6)) SWIG_fail; | |
28013 | if (arg6 == NULL) { | |
28014 | SWIG_null_ref("wxValidator"); | |
28015 | } | |
28016 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
28017 | } |
28018 | } | |
28019 | if (obj6) { | |
28020 | { | |
28021 | arg7 = wxString_in_helper(obj6); | |
28022 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 28023 | temp7 = true; |
d14a1e28 RD |
28024 | } |
28025 | } | |
28026 | { | |
e3b71cb8 | 28027 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28029 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28030 | ||
28031 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28032 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28033 | } |
b0f7404b | 28034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
28035 | { |
28036 | if (temp7) | |
28037 | delete arg7; | |
28038 | } | |
28039 | return resultobj; | |
28040 | fail: | |
28041 | { | |
28042 | if (temp7) | |
28043 | delete arg7; | |
28044 | } | |
28045 | return NULL; | |
28046 | } | |
28047 | ||
28048 | ||
c32bde28 | 28049 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28050 | PyObject *resultobj; |
28051 | wxPyTreeCtrl *result; | |
28052 | char *kwnames[] = { | |
28053 | NULL | |
28054 | }; | |
28055 | ||
28056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
28057 | { | |
e3b71cb8 | 28058 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28060 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
28061 | ||
28062 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28063 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28064 | } |
b0f7404b | 28065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
28066 | return resultobj; |
28067 | fail: | |
28068 | return NULL; | |
28069 | } | |
28070 | ||
28071 | ||
c32bde28 | 28072 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28073 | PyObject *resultobj; |
28074 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28075 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 28076 | int arg3 = (int) -1 ; |
d14a1e28 RD |
28077 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28078 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28079 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28080 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28081 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
28082 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28083 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 28084 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28085 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
28086 | bool result; | |
28087 | wxPoint temp4 ; | |
28088 | wxSize temp5 ; | |
ae8162c8 | 28089 | bool temp8 = false ; |
d14a1e28 RD |
28090 | PyObject * obj0 = 0 ; |
28091 | PyObject * obj1 = 0 ; | |
994141e6 | 28092 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28093 | PyObject * obj3 = 0 ; |
28094 | PyObject * obj4 = 0 ; | |
994141e6 | 28095 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28096 | PyObject * obj6 = 0 ; |
28097 | PyObject * obj7 = 0 ; | |
28098 | char *kwnames[] = { | |
28099 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28100 | }; | |
28101 | ||
994141e6 | 28102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
28103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28105 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28106 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 28107 | if (obj2) { |
093d3ff1 RD |
28108 | { |
28109 | arg3 = (int)(SWIG_As_int(obj2)); | |
28110 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28111 | } | |
994141e6 | 28112 | } |
d14a1e28 RD |
28113 | if (obj3) { |
28114 | { | |
28115 | arg4 = &temp4; | |
28116 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28117 | } | |
28118 | } | |
28119 | if (obj4) { | |
28120 | { | |
28121 | arg5 = &temp5; | |
28122 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28123 | } | |
28124 | } | |
994141e6 | 28125 | if (obj5) { |
093d3ff1 RD |
28126 | { |
28127 | arg6 = (long)(SWIG_As_long(obj5)); | |
28128 | if (SWIG_arg_fail(6)) SWIG_fail; | |
28129 | } | |
994141e6 | 28130 | } |
d14a1e28 | 28131 | if (obj6) { |
093d3ff1 RD |
28132 | { |
28133 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28134 | if (SWIG_arg_fail(7)) SWIG_fail; | |
28135 | if (arg7 == NULL) { | |
28136 | SWIG_null_ref("wxValidator"); | |
28137 | } | |
28138 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
28139 | } |
28140 | } | |
28141 | if (obj7) { | |
28142 | { | |
28143 | arg8 = wxString_in_helper(obj7); | |
28144 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 28145 | temp8 = true; |
d14a1e28 RD |
28146 | } |
28147 | } | |
28148 | { | |
28149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28150 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28151 | ||
28152 | wxPyEndAllowThreads(__tstate); | |
28153 | if (PyErr_Occurred()) SWIG_fail; | |
28154 | } | |
4f89f6a3 RD |
28155 | { |
28156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28157 | } | |
d14a1e28 RD |
28158 | { |
28159 | if (temp8) | |
28160 | delete arg8; | |
28161 | } | |
28162 | return resultobj; | |
28163 | fail: | |
28164 | { | |
28165 | if (temp8) | |
28166 | delete arg8; | |
28167 | } | |
28168 | return NULL; | |
28169 | } | |
28170 | ||
28171 | ||
c32bde28 | 28172 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28173 | PyObject *resultobj; |
28174 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28175 | PyObject *arg2 = (PyObject *) 0 ; | |
28176 | PyObject *arg3 = (PyObject *) 0 ; | |
28177 | PyObject * obj0 = 0 ; | |
28178 | PyObject * obj1 = 0 ; | |
28179 | PyObject * obj2 = 0 ; | |
28180 | char *kwnames[] = { | |
28181 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28182 | }; | |
28183 | ||
28184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28187 | arg2 = obj1; |
28188 | arg3 = obj2; | |
28189 | { | |
28190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28191 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28192 | ||
28193 | wxPyEndAllowThreads(__tstate); | |
28194 | if (PyErr_Occurred()) SWIG_fail; | |
28195 | } | |
28196 | Py_INCREF(Py_None); resultobj = Py_None; | |
28197 | return resultobj; | |
28198 | fail: | |
28199 | return NULL; | |
28200 | } | |
28201 | ||
28202 | ||
c32bde28 | 28203 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28204 | PyObject *resultobj; |
28205 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28206 | size_t result; | |
28207 | PyObject * obj0 = 0 ; | |
28208 | char *kwnames[] = { | |
28209 | (char *) "self", NULL | |
28210 | }; | |
28211 | ||
28212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28213 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28214 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28215 | { |
28216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28217 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
28218 | ||
28219 | wxPyEndAllowThreads(__tstate); | |
28220 | if (PyErr_Occurred()) SWIG_fail; | |
28221 | } | |
093d3ff1 RD |
28222 | { |
28223 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
28224 | } | |
d14a1e28 RD |
28225 | return resultobj; |
28226 | fail: | |
28227 | return NULL; | |
28228 | } | |
28229 | ||
28230 | ||
c32bde28 | 28231 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28232 | PyObject *resultobj; |
28233 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28234 | unsigned int result; | |
28235 | PyObject * obj0 = 0 ; | |
28236 | char *kwnames[] = { | |
28237 | (char *) "self", NULL | |
28238 | }; | |
28239 | ||
28240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28241 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28242 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28243 | { |
28244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28245 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
28246 | ||
28247 | wxPyEndAllowThreads(__tstate); | |
28248 | if (PyErr_Occurred()) SWIG_fail; | |
28249 | } | |
093d3ff1 RD |
28250 | { |
28251 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28252 | } | |
d14a1e28 RD |
28253 | return resultobj; |
28254 | fail: | |
28255 | return NULL; | |
28256 | } | |
28257 | ||
28258 | ||
c32bde28 | 28259 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28260 | PyObject *resultobj; |
28261 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28262 | unsigned int arg2 ; | |
28263 | PyObject * obj0 = 0 ; | |
28264 | PyObject * obj1 = 0 ; | |
28265 | char *kwnames[] = { | |
28266 | (char *) "self",(char *) "indent", NULL | |
28267 | }; | |
28268 | ||
28269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28272 | { | |
28273 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28274 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28275 | } | |
d14a1e28 RD |
28276 | { |
28277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28278 | (arg1)->SetIndent(arg2); | |
28279 | ||
28280 | wxPyEndAllowThreads(__tstate); | |
28281 | if (PyErr_Occurred()) SWIG_fail; | |
28282 | } | |
28283 | Py_INCREF(Py_None); resultobj = Py_None; | |
28284 | return resultobj; | |
28285 | fail: | |
28286 | return NULL; | |
28287 | } | |
28288 | ||
28289 | ||
c32bde28 | 28290 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28291 | PyObject *resultobj; |
28292 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28293 | unsigned int result; | |
28294 | PyObject * obj0 = 0 ; | |
28295 | char *kwnames[] = { | |
28296 | (char *) "self", NULL | |
28297 | }; | |
28298 | ||
28299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28300 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28301 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28302 | { |
28303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28304 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
28305 | ||
28306 | wxPyEndAllowThreads(__tstate); | |
28307 | if (PyErr_Occurred()) SWIG_fail; | |
28308 | } | |
093d3ff1 RD |
28309 | { |
28310 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28311 | } | |
d14a1e28 RD |
28312 | return resultobj; |
28313 | fail: | |
28314 | return NULL; | |
28315 | } | |
28316 | ||
28317 | ||
c32bde28 | 28318 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28319 | PyObject *resultobj; |
28320 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28321 | unsigned int arg2 ; | |
28322 | PyObject * obj0 = 0 ; | |
28323 | PyObject * obj1 = 0 ; | |
28324 | char *kwnames[] = { | |
28325 | (char *) "self",(char *) "spacing", NULL | |
28326 | }; | |
28327 | ||
28328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28331 | { | |
28332 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28333 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28334 | } | |
d14a1e28 RD |
28335 | { |
28336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28337 | (arg1)->SetSpacing(arg2); | |
28338 | ||
28339 | wxPyEndAllowThreads(__tstate); | |
28340 | if (PyErr_Occurred()) SWIG_fail; | |
28341 | } | |
28342 | Py_INCREF(Py_None); resultobj = Py_None; | |
28343 | return resultobj; | |
28344 | fail: | |
28345 | return NULL; | |
28346 | } | |
28347 | ||
28348 | ||
c32bde28 | 28349 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28350 | PyObject *resultobj; |
28351 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28352 | wxImageList *result; | |
28353 | PyObject * obj0 = 0 ; | |
28354 | char *kwnames[] = { | |
28355 | (char *) "self", NULL | |
28356 | }; | |
28357 | ||
28358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28361 | { |
28362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28363 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
28364 | ||
28365 | wxPyEndAllowThreads(__tstate); | |
28366 | if (PyErr_Occurred()) SWIG_fail; | |
28367 | } | |
28368 | { | |
412d302d | 28369 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28370 | } |
28371 | return resultobj; | |
28372 | fail: | |
28373 | return NULL; | |
28374 | } | |
28375 | ||
28376 | ||
c32bde28 | 28377 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28378 | PyObject *resultobj; |
28379 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28380 | wxImageList *result; | |
28381 | PyObject * obj0 = 0 ; | |
28382 | char *kwnames[] = { | |
28383 | (char *) "self", NULL | |
28384 | }; | |
28385 | ||
28386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28387 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28388 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28389 | { |
28390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28391 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
28392 | ||
28393 | wxPyEndAllowThreads(__tstate); | |
28394 | if (PyErr_Occurred()) SWIG_fail; | |
28395 | } | |
28396 | { | |
412d302d | 28397 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28398 | } |
28399 | return resultobj; | |
28400 | fail: | |
28401 | return NULL; | |
28402 | } | |
28403 | ||
28404 | ||
c32bde28 | 28405 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28406 | PyObject *resultobj; |
28407 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28408 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28409 | PyObject * obj0 = 0 ; | |
28410 | PyObject * obj1 = 0 ; | |
28411 | char *kwnames[] = { | |
28412 | (char *) "self",(char *) "imageList", NULL | |
28413 | }; | |
28414 | ||
28415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28418 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28419 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28420 | { |
28421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28422 | (arg1)->SetImageList(arg2); | |
28423 | ||
28424 | wxPyEndAllowThreads(__tstate); | |
28425 | if (PyErr_Occurred()) SWIG_fail; | |
28426 | } | |
28427 | Py_INCREF(Py_None); resultobj = Py_None; | |
28428 | return resultobj; | |
28429 | fail: | |
28430 | return NULL; | |
28431 | } | |
28432 | ||
28433 | ||
c32bde28 | 28434 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28435 | PyObject *resultobj; |
28436 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28437 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28438 | PyObject * obj0 = 0 ; | |
28439 | PyObject * obj1 = 0 ; | |
28440 | char *kwnames[] = { | |
28441 | (char *) "self",(char *) "imageList", NULL | |
28442 | }; | |
28443 | ||
28444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28447 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28448 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28449 | { |
28450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28451 | (arg1)->SetStateImageList(arg2); | |
28452 | ||
28453 | wxPyEndAllowThreads(__tstate); | |
28454 | if (PyErr_Occurred()) SWIG_fail; | |
28455 | } | |
28456 | Py_INCREF(Py_None); resultobj = Py_None; | |
28457 | return resultobj; | |
28458 | fail: | |
28459 | return NULL; | |
28460 | } | |
28461 | ||
28462 | ||
c32bde28 | 28463 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28464 | PyObject *resultobj; |
28465 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28466 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28467 | PyObject * obj0 = 0 ; | |
28468 | PyObject * obj1 = 0 ; | |
28469 | char *kwnames[] = { | |
28470 | (char *) "self",(char *) "imageList", NULL | |
28471 | }; | |
28472 | ||
28473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28476 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28477 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28478 | { |
28479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28480 | (arg1)->AssignImageList(arg2); | |
28481 | ||
28482 | wxPyEndAllowThreads(__tstate); | |
28483 | if (PyErr_Occurred()) SWIG_fail; | |
28484 | } | |
28485 | Py_INCREF(Py_None); resultobj = Py_None; | |
28486 | return resultobj; | |
28487 | fail: | |
28488 | return NULL; | |
28489 | } | |
28490 | ||
28491 | ||
c32bde28 | 28492 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28493 | PyObject *resultobj; |
28494 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28495 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28496 | PyObject * obj0 = 0 ; | |
28497 | PyObject * obj1 = 0 ; | |
28498 | char *kwnames[] = { | |
28499 | (char *) "self",(char *) "imageList", NULL | |
28500 | }; | |
28501 | ||
28502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28505 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28506 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28507 | { |
28508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28509 | (arg1)->AssignStateImageList(arg2); | |
28510 | ||
28511 | wxPyEndAllowThreads(__tstate); | |
28512 | if (PyErr_Occurred()) SWIG_fail; | |
28513 | } | |
28514 | Py_INCREF(Py_None); resultobj = Py_None; | |
28515 | return resultobj; | |
28516 | fail: | |
28517 | return NULL; | |
28518 | } | |
28519 | ||
28520 | ||
c32bde28 | 28521 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28522 | PyObject *resultobj; |
28523 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28524 | wxTreeItemId *arg2 = 0 ; | |
28525 | wxString result; | |
28526 | PyObject * obj0 = 0 ; | |
28527 | PyObject * obj1 = 0 ; | |
28528 | char *kwnames[] = { | |
28529 | (char *) "self",(char *) "item", NULL | |
28530 | }; | |
28531 | ||
28532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28533 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28534 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28535 | { | |
28536 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28537 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28538 | if (arg2 == NULL) { | |
28539 | SWIG_null_ref("wxTreeItemId"); | |
28540 | } | |
28541 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28542 | } |
28543 | { | |
28544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28545 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
28546 | ||
28547 | wxPyEndAllowThreads(__tstate); | |
28548 | if (PyErr_Occurred()) SWIG_fail; | |
28549 | } | |
28550 | { | |
28551 | #if wxUSE_UNICODE | |
28552 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28553 | #else | |
28554 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28555 | #endif | |
28556 | } | |
28557 | return resultobj; | |
28558 | fail: | |
28559 | return NULL; | |
28560 | } | |
28561 | ||
28562 | ||
c32bde28 | 28563 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28564 | PyObject *resultobj; |
28565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28566 | wxTreeItemId *arg2 = 0 ; | |
093d3ff1 | 28567 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d14a1e28 RD |
28568 | int result; |
28569 | PyObject * obj0 = 0 ; | |
28570 | PyObject * obj1 = 0 ; | |
994141e6 | 28571 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28572 | char *kwnames[] = { |
28573 | (char *) "self",(char *) "item",(char *) "which", NULL | |
28574 | }; | |
28575 | ||
994141e6 | 28576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28577 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28578 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28579 | { | |
28580 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28581 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28582 | if (arg2 == NULL) { | |
28583 | SWIG_null_ref("wxTreeItemId"); | |
28584 | } | |
28585 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 28586 | } |
994141e6 | 28587 | if (obj2) { |
093d3ff1 RD |
28588 | { |
28589 | arg3 = (wxTreeItemIcon)(SWIG_As_int(obj2)); | |
28590 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28591 | } | |
994141e6 | 28592 | } |
d14a1e28 RD |
28593 | { |
28594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28595 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
28596 | ||
28597 | wxPyEndAllowThreads(__tstate); | |
28598 | if (PyErr_Occurred()) SWIG_fail; | |
28599 | } | |
093d3ff1 RD |
28600 | { |
28601 | resultobj = SWIG_From_int((int)(result)); | |
28602 | } | |
d14a1e28 RD |
28603 | return resultobj; |
28604 | fail: | |
28605 | return NULL; | |
28606 | } | |
28607 | ||
28608 | ||
c32bde28 | 28609 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28610 | PyObject *resultobj; |
28611 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28612 | wxTreeItemId *arg2 = 0 ; | |
28613 | wxPyTreeItemData *result; | |
28614 | PyObject * obj0 = 0 ; | |
28615 | PyObject * obj1 = 0 ; | |
28616 | char *kwnames[] = { | |
28617 | (char *) "self",(char *) "item", NULL | |
28618 | }; | |
28619 | ||
28620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28621 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28622 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28623 | { | |
28624 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28625 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28626 | if (arg2 == NULL) { | |
28627 | SWIG_null_ref("wxTreeItemId"); | |
28628 | } | |
28629 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28630 | } |
28631 | { | |
28632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28633 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
28634 | ||
28635 | wxPyEndAllowThreads(__tstate); | |
28636 | if (PyErr_Occurred()) SWIG_fail; | |
28637 | } | |
15afbcd0 | 28638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
28639 | return resultobj; |
28640 | fail: | |
28641 | return NULL; | |
28642 | } | |
28643 | ||
28644 | ||
c32bde28 | 28645 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28646 | PyObject *resultobj; |
28647 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28648 | wxTreeItemId *arg2 = 0 ; | |
28649 | PyObject *result; | |
28650 | PyObject * obj0 = 0 ; | |
28651 | PyObject * obj1 = 0 ; | |
28652 | char *kwnames[] = { | |
28653 | (char *) "self",(char *) "item", NULL | |
28654 | }; | |
28655 | ||
28656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28657 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28658 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28659 | { | |
28660 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28661 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28662 | if (arg2 == NULL) { | |
28663 | SWIG_null_ref("wxTreeItemId"); | |
28664 | } | |
28665 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28666 | } |
28667 | { | |
28668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28669 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
28670 | ||
28671 | wxPyEndAllowThreads(__tstate); | |
28672 | if (PyErr_Occurred()) SWIG_fail; | |
28673 | } | |
28674 | resultobj = result; | |
28675 | return resultobj; | |
28676 | fail: | |
28677 | return NULL; | |
28678 | } | |
28679 | ||
28680 | ||
c32bde28 | 28681 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28682 | PyObject *resultobj; |
28683 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28684 | wxTreeItemId *arg2 = 0 ; | |
28685 | wxColour result; | |
28686 | PyObject * obj0 = 0 ; | |
28687 | PyObject * obj1 = 0 ; | |
28688 | char *kwnames[] = { | |
28689 | (char *) "self",(char *) "item", NULL | |
28690 | }; | |
28691 | ||
28692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28695 | { | |
28696 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28697 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28698 | if (arg2 == NULL) { | |
28699 | SWIG_null_ref("wxTreeItemId"); | |
28700 | } | |
28701 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28702 | } |
28703 | { | |
28704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28705 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
28706 | ||
28707 | wxPyEndAllowThreads(__tstate); | |
28708 | if (PyErr_Occurred()) SWIG_fail; | |
28709 | } | |
28710 | { | |
28711 | wxColour * resultptr; | |
093d3ff1 | 28712 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 28713 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
28714 | } |
28715 | return resultobj; | |
28716 | fail: | |
28717 | return NULL; | |
28718 | } | |
28719 | ||
28720 | ||
c32bde28 | 28721 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28722 | PyObject *resultobj; |
28723 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28724 | wxTreeItemId *arg2 = 0 ; | |
28725 | wxColour result; | |
28726 | PyObject * obj0 = 0 ; | |
28727 | PyObject * obj1 = 0 ; | |
28728 | char *kwnames[] = { | |
28729 | (char *) "self",(char *) "item", NULL | |
28730 | }; | |
28731 | ||
28732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28735 | { | |
28736 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28737 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28738 | if (arg2 == NULL) { | |
28739 | SWIG_null_ref("wxTreeItemId"); | |
28740 | } | |
28741 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28742 | } |
28743 | { | |
28744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28745 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
28746 | ||
28747 | wxPyEndAllowThreads(__tstate); | |
28748 | if (PyErr_Occurred()) SWIG_fail; | |
28749 | } | |
28750 | { | |
28751 | wxColour * resultptr; | |
093d3ff1 | 28752 | resultptr = new wxColour((wxColour &)(result)); |
15afbcd0 | 28753 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
28754 | } |
28755 | return resultobj; | |
28756 | fail: | |
28757 | return NULL; | |
28758 | } | |
28759 | ||
28760 | ||
c32bde28 | 28761 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28762 | PyObject *resultobj; |
28763 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28764 | wxTreeItemId *arg2 = 0 ; | |
28765 | wxFont result; | |
28766 | PyObject * obj0 = 0 ; | |
28767 | PyObject * obj1 = 0 ; | |
28768 | char *kwnames[] = { | |
28769 | (char *) "self",(char *) "item", NULL | |
28770 | }; | |
28771 | ||
28772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28775 | { | |
28776 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28777 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28778 | if (arg2 == NULL) { | |
28779 | SWIG_null_ref("wxTreeItemId"); | |
28780 | } | |
28781 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28782 | } |
28783 | { | |
28784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28785 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
28786 | ||
28787 | wxPyEndAllowThreads(__tstate); | |
28788 | if (PyErr_Occurred()) SWIG_fail; | |
28789 | } | |
28790 | { | |
28791 | wxFont * resultptr; | |
093d3ff1 | 28792 | resultptr = new wxFont((wxFont &)(result)); |
15afbcd0 | 28793 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
28794 | } |
28795 | return resultobj; | |
28796 | fail: | |
28797 | return NULL; | |
28798 | } | |
28799 | ||
28800 | ||
c32bde28 | 28801 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28802 | PyObject *resultobj; |
28803 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28804 | wxTreeItemId *arg2 = 0 ; | |
28805 | wxString *arg3 = 0 ; | |
ae8162c8 | 28806 | bool temp3 = false ; |
d14a1e28 RD |
28807 | PyObject * obj0 = 0 ; |
28808 | PyObject * obj1 = 0 ; | |
28809 | PyObject * obj2 = 0 ; | |
28810 | char *kwnames[] = { | |
28811 | (char *) "self",(char *) "item",(char *) "text", NULL | |
28812 | }; | |
28813 | ||
28814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28815 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28816 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28817 | { | |
28818 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28819 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28820 | if (arg2 == NULL) { | |
28821 | SWIG_null_ref("wxTreeItemId"); | |
28822 | } | |
28823 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28824 | } |
28825 | { | |
28826 | arg3 = wxString_in_helper(obj2); | |
28827 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 28828 | temp3 = true; |
d14a1e28 RD |
28829 | } |
28830 | { | |
28831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28832 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
28833 | ||
28834 | wxPyEndAllowThreads(__tstate); | |
28835 | if (PyErr_Occurred()) SWIG_fail; | |
28836 | } | |
28837 | Py_INCREF(Py_None); resultobj = Py_None; | |
28838 | { | |
28839 | if (temp3) | |
28840 | delete arg3; | |
28841 | } | |
28842 | return resultobj; | |
28843 | fail: | |
28844 | { | |
28845 | if (temp3) | |
28846 | delete arg3; | |
28847 | } | |
28848 | return NULL; | |
28849 | } | |
28850 | ||
28851 | ||
c32bde28 | 28852 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28853 | PyObject *resultobj; |
28854 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28855 | wxTreeItemId *arg2 = 0 ; | |
28856 | int arg3 ; | |
093d3ff1 | 28857 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d14a1e28 RD |
28858 | PyObject * obj0 = 0 ; |
28859 | PyObject * obj1 = 0 ; | |
994141e6 RD |
28860 | PyObject * obj2 = 0 ; |
28861 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
28862 | char *kwnames[] = { |
28863 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
28864 | }; | |
28865 | ||
994141e6 | 28866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
28867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28869 | { | |
28870 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28871 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28872 | if (arg2 == NULL) { | |
28873 | SWIG_null_ref("wxTreeItemId"); | |
28874 | } | |
28875 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28876 | } | |
28877 | { | |
28878 | arg3 = (int)(SWIG_As_int(obj2)); | |
28879 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28880 | } | |
994141e6 | 28881 | if (obj3) { |
093d3ff1 RD |
28882 | { |
28883 | arg4 = (wxTreeItemIcon)(SWIG_As_int(obj3)); | |
28884 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28885 | } | |
994141e6 | 28886 | } |
d14a1e28 RD |
28887 | { |
28888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28889 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
28890 | ||
28891 | wxPyEndAllowThreads(__tstate); | |
28892 | if (PyErr_Occurred()) SWIG_fail; | |
28893 | } | |
28894 | Py_INCREF(Py_None); resultobj = Py_None; | |
28895 | return resultobj; | |
28896 | fail: | |
28897 | return NULL; | |
28898 | } | |
28899 | ||
28900 | ||
c32bde28 | 28901 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28902 | PyObject *resultobj; |
28903 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28904 | wxTreeItemId *arg2 = 0 ; | |
28905 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
28906 | PyObject * obj0 = 0 ; | |
28907 | PyObject * obj1 = 0 ; | |
28908 | PyObject * obj2 = 0 ; | |
28909 | char *kwnames[] = { | |
28910 | (char *) "self",(char *) "item",(char *) "data", NULL | |
28911 | }; | |
28912 | ||
28913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28916 | { | |
28917 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28918 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28919 | if (arg2 == NULL) { | |
28920 | SWIG_null_ref("wxTreeItemId"); | |
28921 | } | |
28922 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 28923 | } |
093d3ff1 RD |
28924 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28925 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
28926 | { |
28927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28928 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28929 | ||
28930 | wxPyEndAllowThreads(__tstate); | |
28931 | if (PyErr_Occurred()) SWIG_fail; | |
28932 | } | |
28933 | Py_INCREF(Py_None); resultobj = Py_None; | |
28934 | return resultobj; | |
28935 | fail: | |
28936 | return NULL; | |
28937 | } | |
28938 | ||
28939 | ||
c32bde28 | 28940 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28941 | PyObject *resultobj; |
28942 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28943 | wxTreeItemId *arg2 = 0 ; | |
28944 | PyObject *arg3 = (PyObject *) 0 ; | |
28945 | PyObject * obj0 = 0 ; | |
28946 | PyObject * obj1 = 0 ; | |
28947 | PyObject * obj2 = 0 ; | |
28948 | char *kwnames[] = { | |
28949 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
28950 | }; | |
28951 | ||
28952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28953 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28954 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28955 | { | |
28956 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28957 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28958 | if (arg2 == NULL) { | |
28959 | SWIG_null_ref("wxTreeItemId"); | |
28960 | } | |
28961 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28962 | } |
28963 | arg3 = obj2; | |
28964 | { | |
28965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28966 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28967 | ||
28968 | wxPyEndAllowThreads(__tstate); | |
28969 | if (PyErr_Occurred()) SWIG_fail; | |
28970 | } | |
28971 | Py_INCREF(Py_None); resultobj = Py_None; | |
28972 | return resultobj; | |
28973 | fail: | |
28974 | return NULL; | |
28975 | } | |
28976 | ||
28977 | ||
c32bde28 | 28978 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
28979 | PyObject *resultobj; |
28980 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28981 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 28982 | bool arg3 = (bool) true ; |
d14a1e28 RD |
28983 | PyObject * obj0 = 0 ; |
28984 | PyObject * obj1 = 0 ; | |
28985 | PyObject * obj2 = 0 ; | |
28986 | char *kwnames[] = { | |
28987 | (char *) "self",(char *) "item",(char *) "has", NULL | |
28988 | }; | |
28989 | ||
28990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
28991 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
28992 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28993 | { | |
28994 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28995 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28996 | if (arg2 == NULL) { | |
28997 | SWIG_null_ref("wxTreeItemId"); | |
28998 | } | |
28999 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29000 | } |
29001 | if (obj2) { | |
093d3ff1 RD |
29002 | { |
29003 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29004 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29005 | } | |
d14a1e28 RD |
29006 | } |
29007 | { | |
29008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29009 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
29010 | ||
29011 | wxPyEndAllowThreads(__tstate); | |
29012 | if (PyErr_Occurred()) SWIG_fail; | |
29013 | } | |
29014 | Py_INCREF(Py_None); resultobj = Py_None; | |
29015 | return resultobj; | |
29016 | fail: | |
29017 | return NULL; | |
29018 | } | |
29019 | ||
29020 | ||
c32bde28 | 29021 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29022 | PyObject *resultobj; |
29023 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29024 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29025 | bool arg3 = (bool) true ; |
d14a1e28 RD |
29026 | PyObject * obj0 = 0 ; |
29027 | PyObject * obj1 = 0 ; | |
29028 | PyObject * obj2 = 0 ; | |
29029 | char *kwnames[] = { | |
29030 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
29031 | }; | |
29032 | ||
29033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29036 | { | |
29037 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29038 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29039 | if (arg2 == NULL) { | |
29040 | SWIG_null_ref("wxTreeItemId"); | |
29041 | } | |
29042 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29043 | } |
29044 | if (obj2) { | |
093d3ff1 RD |
29045 | { |
29046 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29047 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29048 | } | |
d14a1e28 RD |
29049 | } |
29050 | { | |
29051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29052 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
29053 | ||
29054 | wxPyEndAllowThreads(__tstate); | |
29055 | if (PyErr_Occurred()) SWIG_fail; | |
29056 | } | |
29057 | Py_INCREF(Py_None); resultobj = Py_None; | |
29058 | return resultobj; | |
29059 | fail: | |
29060 | return NULL; | |
29061 | } | |
29062 | ||
29063 | ||
fef4c27a RD |
29064 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
29065 | PyObject *resultobj; | |
29066 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29067 | wxTreeItemId *arg2 = 0 ; | |
29068 | bool arg3 = (bool) true ; | |
29069 | PyObject * obj0 = 0 ; | |
29070 | PyObject * obj1 = 0 ; | |
29071 | PyObject * obj2 = 0 ; | |
29072 | char *kwnames[] = { | |
29073 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
29074 | }; | |
29075 | ||
29076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29077 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29078 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29079 | { | |
29080 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29081 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29082 | if (arg2 == NULL) { | |
29083 | SWIG_null_ref("wxTreeItemId"); | |
29084 | } | |
29085 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29086 | } | |
29087 | if (obj2) { | |
29088 | { | |
29089 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29090 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29091 | } | |
29092 | } | |
29093 | { | |
29094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29095 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
29096 | ||
29097 | wxPyEndAllowThreads(__tstate); | |
29098 | if (PyErr_Occurred()) SWIG_fail; | |
29099 | } | |
29100 | Py_INCREF(Py_None); resultobj = Py_None; | |
29101 | return resultobj; | |
29102 | fail: | |
29103 | return NULL; | |
29104 | } | |
29105 | ||
29106 | ||
c32bde28 | 29107 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29108 | PyObject *resultobj; |
29109 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29110 | wxTreeItemId *arg2 = 0 ; | |
29111 | wxColour *arg3 = 0 ; | |
29112 | wxColour temp3 ; | |
29113 | PyObject * obj0 = 0 ; | |
29114 | PyObject * obj1 = 0 ; | |
29115 | PyObject * obj2 = 0 ; | |
29116 | char *kwnames[] = { | |
29117 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29118 | }; | |
29119 | ||
29120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29123 | { | |
29124 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29125 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29126 | if (arg2 == NULL) { | |
29127 | SWIG_null_ref("wxTreeItemId"); | |
29128 | } | |
29129 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29130 | } |
29131 | { | |
29132 | arg3 = &temp3; | |
29133 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29134 | } | |
29135 | { | |
29136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29137 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29138 | ||
29139 | wxPyEndAllowThreads(__tstate); | |
29140 | if (PyErr_Occurred()) SWIG_fail; | |
29141 | } | |
29142 | Py_INCREF(Py_None); resultobj = Py_None; | |
29143 | return resultobj; | |
29144 | fail: | |
29145 | return NULL; | |
29146 | } | |
29147 | ||
29148 | ||
c32bde28 | 29149 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29150 | PyObject *resultobj; |
29151 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29152 | wxTreeItemId *arg2 = 0 ; | |
29153 | wxColour *arg3 = 0 ; | |
29154 | wxColour temp3 ; | |
29155 | PyObject * obj0 = 0 ; | |
29156 | PyObject * obj1 = 0 ; | |
29157 | PyObject * obj2 = 0 ; | |
29158 | char *kwnames[] = { | |
29159 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29160 | }; | |
29161 | ||
29162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29165 | { | |
29166 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29167 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29168 | if (arg2 == NULL) { | |
29169 | SWIG_null_ref("wxTreeItemId"); | |
29170 | } | |
29171 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29172 | } |
29173 | { | |
29174 | arg3 = &temp3; | |
29175 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29176 | } | |
29177 | { | |
29178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29179 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29180 | ||
29181 | wxPyEndAllowThreads(__tstate); | |
29182 | if (PyErr_Occurred()) SWIG_fail; | |
29183 | } | |
29184 | Py_INCREF(Py_None); resultobj = Py_None; | |
29185 | return resultobj; | |
29186 | fail: | |
29187 | return NULL; | |
29188 | } | |
29189 | ||
29190 | ||
c32bde28 | 29191 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29192 | PyObject *resultobj; |
29193 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29194 | wxTreeItemId *arg2 = 0 ; | |
29195 | wxFont *arg3 = 0 ; | |
29196 | PyObject * obj0 = 0 ; | |
29197 | PyObject * obj1 = 0 ; | |
29198 | PyObject * obj2 = 0 ; | |
29199 | char *kwnames[] = { | |
29200 | (char *) "self",(char *) "item",(char *) "font", NULL | |
29201 | }; | |
29202 | ||
29203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29206 | { | |
29207 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29208 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29209 | if (arg2 == NULL) { | |
29210 | SWIG_null_ref("wxTreeItemId"); | |
29211 | } | |
29212 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 29213 | } |
093d3ff1 RD |
29214 | { |
29215 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
29216 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29217 | if (arg3 == NULL) { | |
29218 | SWIG_null_ref("wxFont"); | |
29219 | } | |
29220 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
29221 | } |
29222 | { | |
29223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29224 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
29225 | ||
29226 | wxPyEndAllowThreads(__tstate); | |
29227 | if (PyErr_Occurred()) SWIG_fail; | |
29228 | } | |
29229 | Py_INCREF(Py_None); resultobj = Py_None; | |
29230 | return resultobj; | |
29231 | fail: | |
29232 | return NULL; | |
29233 | } | |
29234 | ||
29235 | ||
c32bde28 | 29236 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29237 | PyObject *resultobj; |
29238 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29239 | wxTreeItemId *arg2 = 0 ; | |
29240 | bool result; | |
29241 | PyObject * obj0 = 0 ; | |
29242 | PyObject * obj1 = 0 ; | |
29243 | char *kwnames[] = { | |
29244 | (char *) "self",(char *) "item", NULL | |
29245 | }; | |
29246 | ||
29247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29248 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29249 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29250 | { | |
29251 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29252 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29253 | if (arg2 == NULL) { | |
29254 | SWIG_null_ref("wxTreeItemId"); | |
29255 | } | |
29256 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29257 | } |
29258 | { | |
29259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29260 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
29261 | ||
29262 | wxPyEndAllowThreads(__tstate); | |
29263 | if (PyErr_Occurred()) SWIG_fail; | |
29264 | } | |
4f89f6a3 RD |
29265 | { |
29266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29267 | } | |
d14a1e28 RD |
29268 | return resultobj; |
29269 | fail: | |
29270 | return NULL; | |
29271 | } | |
29272 | ||
29273 | ||
c32bde28 | 29274 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29275 | PyObject *resultobj; |
29276 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29277 | wxTreeItemId *arg2 = 0 ; | |
29278 | bool result; | |
29279 | PyObject * obj0 = 0 ; | |
29280 | PyObject * obj1 = 0 ; | |
29281 | char *kwnames[] = { | |
29282 | (char *) "self",(char *) "item", NULL | |
29283 | }; | |
29284 | ||
29285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29288 | { | |
29289 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29290 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29291 | if (arg2 == NULL) { | |
29292 | SWIG_null_ref("wxTreeItemId"); | |
29293 | } | |
29294 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29295 | } |
29296 | { | |
29297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29298 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
29299 | ||
29300 | wxPyEndAllowThreads(__tstate); | |
29301 | if (PyErr_Occurred()) SWIG_fail; | |
29302 | } | |
4f89f6a3 RD |
29303 | { |
29304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29305 | } | |
d14a1e28 RD |
29306 | return resultobj; |
29307 | fail: | |
29308 | return NULL; | |
29309 | } | |
29310 | ||
29311 | ||
c32bde28 | 29312 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29313 | PyObject *resultobj; |
29314 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29315 | wxTreeItemId *arg2 = 0 ; | |
29316 | bool result; | |
29317 | PyObject * obj0 = 0 ; | |
29318 | PyObject * obj1 = 0 ; | |
29319 | char *kwnames[] = { | |
29320 | (char *) "self",(char *) "item", NULL | |
29321 | }; | |
29322 | ||
29323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29324 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29325 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29326 | { | |
29327 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29328 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29329 | if (arg2 == NULL) { | |
29330 | SWIG_null_ref("wxTreeItemId"); | |
29331 | } | |
29332 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29333 | } |
29334 | { | |
29335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29336 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
29337 | ||
29338 | wxPyEndAllowThreads(__tstate); | |
29339 | if (PyErr_Occurred()) SWIG_fail; | |
29340 | } | |
4f89f6a3 RD |
29341 | { |
29342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29343 | } | |
d14a1e28 RD |
29344 | return resultobj; |
29345 | fail: | |
29346 | return NULL; | |
29347 | } | |
29348 | ||
29349 | ||
c32bde28 | 29350 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29351 | PyObject *resultobj; |
29352 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29353 | wxTreeItemId *arg2 = 0 ; | |
29354 | bool result; | |
29355 | PyObject * obj0 = 0 ; | |
29356 | PyObject * obj1 = 0 ; | |
29357 | char *kwnames[] = { | |
29358 | (char *) "self",(char *) "item", NULL | |
29359 | }; | |
29360 | ||
29361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29362 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29364 | { | |
29365 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29366 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29367 | if (arg2 == NULL) { | |
29368 | SWIG_null_ref("wxTreeItemId"); | |
29369 | } | |
29370 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29371 | } |
29372 | { | |
29373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29374 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
29375 | ||
29376 | wxPyEndAllowThreads(__tstate); | |
29377 | if (PyErr_Occurred()) SWIG_fail; | |
29378 | } | |
4f89f6a3 RD |
29379 | { |
29380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29381 | } | |
d14a1e28 RD |
29382 | return resultobj; |
29383 | fail: | |
29384 | return NULL; | |
29385 | } | |
29386 | ||
29387 | ||
c32bde28 | 29388 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29389 | PyObject *resultobj; |
29390 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29391 | wxTreeItemId *arg2 = 0 ; | |
29392 | bool result; | |
29393 | PyObject * obj0 = 0 ; | |
29394 | PyObject * obj1 = 0 ; | |
29395 | char *kwnames[] = { | |
29396 | (char *) "self",(char *) "item", NULL | |
29397 | }; | |
29398 | ||
29399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29402 | { | |
29403 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29404 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29405 | if (arg2 == NULL) { | |
29406 | SWIG_null_ref("wxTreeItemId"); | |
29407 | } | |
29408 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29409 | } |
29410 | { | |
29411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29412 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
29413 | ||
29414 | wxPyEndAllowThreads(__tstate); | |
29415 | if (PyErr_Occurred()) SWIG_fail; | |
29416 | } | |
4f89f6a3 RD |
29417 | { |
29418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29419 | } | |
d14a1e28 RD |
29420 | return resultobj; |
29421 | fail: | |
29422 | return NULL; | |
29423 | } | |
29424 | ||
29425 | ||
c32bde28 | 29426 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29427 | PyObject *resultobj; |
29428 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29429 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 29430 | bool arg3 = (bool) true ; |
d14a1e28 RD |
29431 | size_t result; |
29432 | PyObject * obj0 = 0 ; | |
29433 | PyObject * obj1 = 0 ; | |
29434 | PyObject * obj2 = 0 ; | |
29435 | char *kwnames[] = { | |
29436 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
29437 | }; | |
29438 | ||
29439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29442 | { | |
29443 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29444 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29445 | if (arg2 == NULL) { | |
29446 | SWIG_null_ref("wxTreeItemId"); | |
29447 | } | |
29448 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29449 | } |
29450 | if (obj2) { | |
093d3ff1 RD |
29451 | { |
29452 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29453 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29454 | } | |
d14a1e28 RD |
29455 | } |
29456 | { | |
29457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29458 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
29459 | ||
29460 | wxPyEndAllowThreads(__tstate); | |
29461 | if (PyErr_Occurred()) SWIG_fail; | |
29462 | } | |
093d3ff1 RD |
29463 | { |
29464 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
29465 | } | |
d14a1e28 RD |
29466 | return resultobj; |
29467 | fail: | |
29468 | return NULL; | |
29469 | } | |
29470 | ||
29471 | ||
c32bde28 | 29472 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29473 | PyObject *resultobj; |
29474 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29475 | wxTreeItemId result; | |
29476 | PyObject * obj0 = 0 ; | |
29477 | char *kwnames[] = { | |
29478 | (char *) "self", NULL | |
29479 | }; | |
29480 | ||
29481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29484 | { |
29485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29486 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
29487 | ||
29488 | wxPyEndAllowThreads(__tstate); | |
29489 | if (PyErr_Occurred()) SWIG_fail; | |
29490 | } | |
29491 | { | |
29492 | wxTreeItemId * resultptr; | |
093d3ff1 | 29493 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29494 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29495 | } |
29496 | return resultobj; | |
29497 | fail: | |
29498 | return NULL; | |
29499 | } | |
29500 | ||
29501 | ||
c32bde28 | 29502 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29503 | PyObject *resultobj; |
29504 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29505 | wxTreeItemId result; | |
29506 | PyObject * obj0 = 0 ; | |
29507 | char *kwnames[] = { | |
29508 | (char *) "self", NULL | |
29509 | }; | |
29510 | ||
29511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29514 | { |
29515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29516 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
29517 | ||
29518 | wxPyEndAllowThreads(__tstate); | |
29519 | if (PyErr_Occurred()) SWIG_fail; | |
29520 | } | |
29521 | { | |
29522 | wxTreeItemId * resultptr; | |
093d3ff1 | 29523 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29525 | } |
29526 | return resultobj; | |
29527 | fail: | |
29528 | return NULL; | |
29529 | } | |
29530 | ||
29531 | ||
c32bde28 | 29532 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29533 | PyObject *resultobj; |
29534 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29535 | PyObject *result; | |
29536 | PyObject * obj0 = 0 ; | |
29537 | char *kwnames[] = { | |
29538 | (char *) "self", NULL | |
29539 | }; | |
29540 | ||
29541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29544 | { |
29545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29546 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
29547 | ||
29548 | wxPyEndAllowThreads(__tstate); | |
29549 | if (PyErr_Occurred()) SWIG_fail; | |
29550 | } | |
29551 | resultobj = result; | |
29552 | return resultobj; | |
29553 | fail: | |
29554 | return NULL; | |
29555 | } | |
29556 | ||
29557 | ||
c32bde28 | 29558 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29559 | PyObject *resultobj; |
29560 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29561 | wxTreeItemId *arg2 = 0 ; | |
29562 | wxTreeItemId result; | |
29563 | PyObject * obj0 = 0 ; | |
29564 | PyObject * obj1 = 0 ; | |
29565 | char *kwnames[] = { | |
29566 | (char *) "self",(char *) "item", NULL | |
29567 | }; | |
29568 | ||
29569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29572 | { | |
29573 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29575 | if (arg2 == NULL) { | |
29576 | SWIG_null_ref("wxTreeItemId"); | |
29577 | } | |
29578 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29579 | } |
29580 | { | |
29581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29582 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
29583 | ||
29584 | wxPyEndAllowThreads(__tstate); | |
29585 | if (PyErr_Occurred()) SWIG_fail; | |
29586 | } | |
29587 | { | |
29588 | wxTreeItemId * resultptr; | |
093d3ff1 | 29589 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29591 | } |
29592 | return resultobj; | |
29593 | fail: | |
29594 | return NULL; | |
29595 | } | |
29596 | ||
29597 | ||
c32bde28 | 29598 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29599 | PyObject *resultobj; |
29600 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29601 | wxTreeItemId *arg2 = 0 ; | |
29602 | PyObject *result; | |
29603 | PyObject * obj0 = 0 ; | |
29604 | PyObject * obj1 = 0 ; | |
29605 | char *kwnames[] = { | |
29606 | (char *) "self",(char *) "item", NULL | |
29607 | }; | |
29608 | ||
29609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29610 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29612 | { | |
29613 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29614 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29615 | if (arg2 == NULL) { | |
29616 | SWIG_null_ref("wxTreeItemId"); | |
29617 | } | |
29618 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29619 | } |
29620 | { | |
29621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29622 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
29623 | ||
29624 | wxPyEndAllowThreads(__tstate); | |
29625 | if (PyErr_Occurred()) SWIG_fail; | |
29626 | } | |
29627 | resultobj = result; | |
29628 | return resultobj; | |
29629 | fail: | |
29630 | return NULL; | |
29631 | } | |
29632 | ||
29633 | ||
c32bde28 | 29634 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29635 | PyObject *resultobj; |
29636 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29637 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 29638 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
29639 | PyObject *result; |
29640 | PyObject * obj0 = 0 ; | |
29641 | PyObject * obj1 = 0 ; | |
29642 | PyObject * obj2 = 0 ; | |
29643 | char *kwnames[] = { | |
29644 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
29645 | }; | |
29646 | ||
29647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29650 | { | |
29651 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29653 | if (arg2 == NULL) { | |
29654 | SWIG_null_ref("wxTreeItemId"); | |
29655 | } | |
29656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29657 | } | |
29658 | { | |
29659 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),0,SWIG_POINTER_EXCEPTION|0))== -1) { | |
29660 | SWIG_arg_fail(3);SWIG_fail; | |
29661 | } | |
d14a1e28 | 29662 | } |
d14a1e28 RD |
29663 | { |
29664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 29665 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
29666 | |
29667 | wxPyEndAllowThreads(__tstate); | |
29668 | if (PyErr_Occurred()) SWIG_fail; | |
29669 | } | |
29670 | resultobj = result; | |
29671 | return resultobj; | |
29672 | fail: | |
29673 | return NULL; | |
29674 | } | |
29675 | ||
29676 | ||
c32bde28 | 29677 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29678 | PyObject *resultobj; |
29679 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29680 | wxTreeItemId *arg2 = 0 ; | |
29681 | wxTreeItemId result; | |
29682 | PyObject * obj0 = 0 ; | |
29683 | PyObject * obj1 = 0 ; | |
29684 | char *kwnames[] = { | |
29685 | (char *) "self",(char *) "item", NULL | |
29686 | }; | |
29687 | ||
29688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29691 | { | |
29692 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29693 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29694 | if (arg2 == NULL) { | |
29695 | SWIG_null_ref("wxTreeItemId"); | |
29696 | } | |
29697 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29698 | } |
29699 | { | |
29700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29701 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
29702 | ||
29703 | wxPyEndAllowThreads(__tstate); | |
29704 | if (PyErr_Occurred()) SWIG_fail; | |
29705 | } | |
29706 | { | |
29707 | wxTreeItemId * resultptr; | |
093d3ff1 | 29708 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29710 | } |
29711 | return resultobj; | |
29712 | fail: | |
29713 | return NULL; | |
29714 | } | |
29715 | ||
29716 | ||
c32bde28 | 29717 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29718 | PyObject *resultobj; |
29719 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29720 | wxTreeItemId *arg2 = 0 ; | |
29721 | wxTreeItemId result; | |
29722 | PyObject * obj0 = 0 ; | |
29723 | PyObject * obj1 = 0 ; | |
29724 | char *kwnames[] = { | |
29725 | (char *) "self",(char *) "item", NULL | |
29726 | }; | |
29727 | ||
29728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29731 | { | |
29732 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29733 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29734 | if (arg2 == NULL) { | |
29735 | SWIG_null_ref("wxTreeItemId"); | |
29736 | } | |
29737 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29738 | } |
29739 | { | |
29740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29741 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
29742 | ||
29743 | wxPyEndAllowThreads(__tstate); | |
29744 | if (PyErr_Occurred()) SWIG_fail; | |
29745 | } | |
29746 | { | |
29747 | wxTreeItemId * resultptr; | |
093d3ff1 | 29748 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29749 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29750 | } |
29751 | return resultobj; | |
29752 | fail: | |
29753 | return NULL; | |
29754 | } | |
29755 | ||
29756 | ||
c32bde28 | 29757 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29758 | PyObject *resultobj; |
29759 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29760 | wxTreeItemId *arg2 = 0 ; | |
29761 | wxTreeItemId result; | |
29762 | PyObject * obj0 = 0 ; | |
29763 | PyObject * obj1 = 0 ; | |
29764 | char *kwnames[] = { | |
29765 | (char *) "self",(char *) "item", NULL | |
29766 | }; | |
29767 | ||
29768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29769 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29770 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29771 | { | |
29772 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29773 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29774 | if (arg2 == NULL) { | |
29775 | SWIG_null_ref("wxTreeItemId"); | |
29776 | } | |
29777 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29778 | } |
29779 | { | |
29780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29781 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
29782 | ||
29783 | wxPyEndAllowThreads(__tstate); | |
29784 | if (PyErr_Occurred()) SWIG_fail; | |
29785 | } | |
29786 | { | |
29787 | wxTreeItemId * resultptr; | |
093d3ff1 | 29788 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29789 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29790 | } |
29791 | return resultobj; | |
29792 | fail: | |
29793 | return NULL; | |
29794 | } | |
29795 | ||
29796 | ||
c32bde28 | 29797 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29798 | PyObject *resultobj; |
29799 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29800 | wxTreeItemId result; | |
29801 | PyObject * obj0 = 0 ; | |
29802 | char *kwnames[] = { | |
29803 | (char *) "self", NULL | |
29804 | }; | |
29805 | ||
29806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29809 | { |
29810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29811 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
29812 | ||
29813 | wxPyEndAllowThreads(__tstate); | |
29814 | if (PyErr_Occurred()) SWIG_fail; | |
29815 | } | |
29816 | { | |
29817 | wxTreeItemId * resultptr; | |
093d3ff1 | 29818 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29819 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29820 | } |
29821 | return resultobj; | |
29822 | fail: | |
29823 | return NULL; | |
29824 | } | |
29825 | ||
29826 | ||
c32bde28 | 29827 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29828 | PyObject *resultobj; |
29829 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29830 | wxTreeItemId *arg2 = 0 ; | |
29831 | wxTreeItemId result; | |
29832 | PyObject * obj0 = 0 ; | |
29833 | PyObject * obj1 = 0 ; | |
29834 | char *kwnames[] = { | |
29835 | (char *) "self",(char *) "item", NULL | |
29836 | }; | |
29837 | ||
29838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29841 | { | |
29842 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29843 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29844 | if (arg2 == NULL) { | |
29845 | SWIG_null_ref("wxTreeItemId"); | |
29846 | } | |
29847 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29848 | } |
29849 | { | |
29850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29851 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
29852 | ||
29853 | wxPyEndAllowThreads(__tstate); | |
29854 | if (PyErr_Occurred()) SWIG_fail; | |
29855 | } | |
29856 | { | |
29857 | wxTreeItemId * resultptr; | |
093d3ff1 | 29858 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29860 | } |
29861 | return resultobj; | |
29862 | fail: | |
29863 | return NULL; | |
29864 | } | |
29865 | ||
29866 | ||
c32bde28 | 29867 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29868 | PyObject *resultobj; |
29869 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29870 | wxTreeItemId *arg2 = 0 ; | |
29871 | wxTreeItemId result; | |
29872 | PyObject * obj0 = 0 ; | |
29873 | PyObject * obj1 = 0 ; | |
29874 | char *kwnames[] = { | |
29875 | (char *) "self",(char *) "item", NULL | |
29876 | }; | |
29877 | ||
29878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29879 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29880 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29881 | { | |
29882 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29883 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29884 | if (arg2 == NULL) { | |
29885 | SWIG_null_ref("wxTreeItemId"); | |
29886 | } | |
29887 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29888 | } |
29889 | { | |
29890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29891 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
29892 | ||
29893 | wxPyEndAllowThreads(__tstate); | |
29894 | if (PyErr_Occurred()) SWIG_fail; | |
29895 | } | |
29896 | { | |
29897 | wxTreeItemId * resultptr; | |
093d3ff1 | 29898 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29899 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29900 | } |
29901 | return resultobj; | |
29902 | fail: | |
29903 | return NULL; | |
29904 | } | |
29905 | ||
29906 | ||
c32bde28 | 29907 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29908 | PyObject *resultobj; |
29909 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29910 | wxString *arg2 = 0 ; | |
29911 | int arg3 = (int) -1 ; | |
29912 | int arg4 = (int) -1 ; | |
29913 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
29914 | wxTreeItemId result; | |
ae8162c8 | 29915 | bool temp2 = false ; |
d14a1e28 RD |
29916 | PyObject * obj0 = 0 ; |
29917 | PyObject * obj1 = 0 ; | |
994141e6 RD |
29918 | PyObject * obj2 = 0 ; |
29919 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
29920 | PyObject * obj4 = 0 ; |
29921 | char *kwnames[] = { | |
29922 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29923 | }; | |
29924 | ||
994141e6 | 29925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
29926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29928 | { |
29929 | arg2 = wxString_in_helper(obj1); | |
29930 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29931 | temp2 = true; |
d14a1e28 | 29932 | } |
994141e6 | 29933 | if (obj2) { |
093d3ff1 RD |
29934 | { |
29935 | arg3 = (int)(SWIG_As_int(obj2)); | |
29936 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29937 | } | |
994141e6 RD |
29938 | } |
29939 | if (obj3) { | |
093d3ff1 RD |
29940 | { |
29941 | arg4 = (int)(SWIG_As_int(obj3)); | |
29942 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29943 | } | |
994141e6 | 29944 | } |
d14a1e28 | 29945 | if (obj4) { |
093d3ff1 RD |
29946 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
29947 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
29948 | } |
29949 | { | |
29950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29951 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
29952 | ||
29953 | wxPyEndAllowThreads(__tstate); | |
29954 | if (PyErr_Occurred()) SWIG_fail; | |
29955 | } | |
29956 | { | |
29957 | wxTreeItemId * resultptr; | |
093d3ff1 | 29958 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 29959 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
29960 | } |
29961 | { | |
29962 | if (temp2) | |
29963 | delete arg2; | |
29964 | } | |
29965 | return resultobj; | |
29966 | fail: | |
29967 | { | |
29968 | if (temp2) | |
29969 | delete arg2; | |
29970 | } | |
29971 | return NULL; | |
29972 | } | |
29973 | ||
29974 | ||
c32bde28 | 29975 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
29976 | PyObject *resultobj; |
29977 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29978 | wxTreeItemId *arg2 = 0 ; | |
29979 | wxString *arg3 = 0 ; | |
29980 | int arg4 = (int) -1 ; | |
29981 | int arg5 = (int) -1 ; | |
29982 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
29983 | wxTreeItemId result; | |
ae8162c8 | 29984 | bool temp3 = false ; |
d14a1e28 RD |
29985 | PyObject * obj0 = 0 ; |
29986 | PyObject * obj1 = 0 ; | |
29987 | PyObject * obj2 = 0 ; | |
994141e6 RD |
29988 | PyObject * obj3 = 0 ; |
29989 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
29990 | PyObject * obj5 = 0 ; |
29991 | char *kwnames[] = { | |
29992 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29993 | }; | |
29994 | ||
994141e6 | 29995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
29996 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29998 | { | |
29999 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30000 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30001 | if (arg2 == NULL) { | |
30002 | SWIG_null_ref("wxTreeItemId"); | |
30003 | } | |
30004 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30005 | } |
30006 | { | |
30007 | arg3 = wxString_in_helper(obj2); | |
30008 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30009 | temp3 = true; |
d14a1e28 | 30010 | } |
994141e6 | 30011 | if (obj3) { |
093d3ff1 RD |
30012 | { |
30013 | arg4 = (int)(SWIG_As_int(obj3)); | |
30014 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30015 | } | |
994141e6 RD |
30016 | } |
30017 | if (obj4) { | |
093d3ff1 RD |
30018 | { |
30019 | arg5 = (int)(SWIG_As_int(obj4)); | |
30020 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30021 | } | |
994141e6 | 30022 | } |
d14a1e28 | 30023 | if (obj5) { |
093d3ff1 RD |
30024 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30025 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
30026 | } |
30027 | { | |
30028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30029 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30030 | ||
30031 | wxPyEndAllowThreads(__tstate); | |
30032 | if (PyErr_Occurred()) SWIG_fail; | |
30033 | } | |
30034 | { | |
30035 | wxTreeItemId * resultptr; | |
093d3ff1 | 30036 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30038 | } |
30039 | { | |
30040 | if (temp3) | |
30041 | delete arg3; | |
30042 | } | |
30043 | return resultobj; | |
30044 | fail: | |
30045 | { | |
30046 | if (temp3) | |
30047 | delete arg3; | |
30048 | } | |
30049 | return NULL; | |
30050 | } | |
30051 | ||
30052 | ||
c32bde28 | 30053 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30054 | PyObject *resultobj; |
30055 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30056 | wxTreeItemId *arg2 = 0 ; | |
30057 | wxTreeItemId *arg3 = 0 ; | |
30058 | wxString *arg4 = 0 ; | |
30059 | int arg5 = (int) -1 ; | |
30060 | int arg6 = (int) -1 ; | |
30061 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30062 | wxTreeItemId result; | |
ae8162c8 | 30063 | bool temp4 = false ; |
d14a1e28 RD |
30064 | PyObject * obj0 = 0 ; |
30065 | PyObject * obj1 = 0 ; | |
30066 | PyObject * obj2 = 0 ; | |
30067 | PyObject * obj3 = 0 ; | |
994141e6 RD |
30068 | PyObject * obj4 = 0 ; |
30069 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
30070 | PyObject * obj6 = 0 ; |
30071 | char *kwnames[] = { | |
30072 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30073 | }; | |
30074 | ||
994141e6 | 30075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
30076 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30077 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30078 | { | |
30079 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30080 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30081 | if (arg2 == NULL) { | |
30082 | SWIG_null_ref("wxTreeItemId"); | |
30083 | } | |
30084 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30085 | } | |
30086 | { | |
30087 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30088 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30089 | if (arg3 == NULL) { | |
30090 | SWIG_null_ref("wxTreeItemId"); | |
30091 | } | |
30092 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
30093 | } |
30094 | { | |
30095 | arg4 = wxString_in_helper(obj3); | |
30096 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30097 | temp4 = true; |
d14a1e28 | 30098 | } |
994141e6 | 30099 | if (obj4) { |
093d3ff1 RD |
30100 | { |
30101 | arg5 = (int)(SWIG_As_int(obj4)); | |
30102 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30103 | } | |
994141e6 RD |
30104 | } |
30105 | if (obj5) { | |
093d3ff1 RD |
30106 | { |
30107 | arg6 = (int)(SWIG_As_int(obj5)); | |
30108 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30109 | } | |
994141e6 | 30110 | } |
d14a1e28 | 30111 | if (obj6) { |
093d3ff1 RD |
30112 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30113 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
30114 | } |
30115 | { | |
30116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30117 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30118 | ||
30119 | wxPyEndAllowThreads(__tstate); | |
30120 | if (PyErr_Occurred()) SWIG_fail; | |
30121 | } | |
30122 | { | |
30123 | wxTreeItemId * resultptr; | |
093d3ff1 | 30124 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30125 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30126 | } |
30127 | { | |
30128 | if (temp4) | |
30129 | delete arg4; | |
30130 | } | |
30131 | return resultobj; | |
30132 | fail: | |
30133 | { | |
30134 | if (temp4) | |
30135 | delete arg4; | |
30136 | } | |
30137 | return NULL; | |
30138 | } | |
30139 | ||
30140 | ||
c32bde28 | 30141 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30142 | PyObject *resultobj; |
30143 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30144 | wxTreeItemId *arg2 = 0 ; | |
30145 | size_t arg3 ; | |
30146 | wxString *arg4 = 0 ; | |
30147 | int arg5 = (int) -1 ; | |
30148 | int arg6 = (int) -1 ; | |
30149 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30150 | wxTreeItemId result; | |
ae8162c8 | 30151 | bool temp4 = false ; |
d14a1e28 RD |
30152 | PyObject * obj0 = 0 ; |
30153 | PyObject * obj1 = 0 ; | |
30154 | PyObject * obj2 = 0 ; | |
30155 | PyObject * obj3 = 0 ; | |
994141e6 RD |
30156 | PyObject * obj4 = 0 ; |
30157 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
30158 | PyObject * obj6 = 0 ; |
30159 | char *kwnames[] = { | |
30160 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30161 | }; | |
30162 | ||
994141e6 | 30163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
30164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30166 | { | |
30167 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30168 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30169 | if (arg2 == NULL) { | |
30170 | SWIG_null_ref("wxTreeItemId"); | |
30171 | } | |
30172 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30173 | } | |
30174 | { | |
30175 | arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2)); | |
30176 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30177 | } | |
d14a1e28 RD |
30178 | { |
30179 | arg4 = wxString_in_helper(obj3); | |
30180 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 30181 | temp4 = true; |
d14a1e28 | 30182 | } |
994141e6 | 30183 | if (obj4) { |
093d3ff1 RD |
30184 | { |
30185 | arg5 = (int)(SWIG_As_int(obj4)); | |
30186 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30187 | } | |
994141e6 RD |
30188 | } |
30189 | if (obj5) { | |
093d3ff1 RD |
30190 | { |
30191 | arg6 = (int)(SWIG_As_int(obj5)); | |
30192 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30193 | } | |
994141e6 | 30194 | } |
d14a1e28 | 30195 | if (obj6) { |
093d3ff1 RD |
30196 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30197 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
30198 | } |
30199 | { | |
30200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30201 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30202 | ||
30203 | wxPyEndAllowThreads(__tstate); | |
30204 | if (PyErr_Occurred()) SWIG_fail; | |
30205 | } | |
30206 | { | |
30207 | wxTreeItemId * resultptr; | |
093d3ff1 | 30208 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30209 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30210 | } |
30211 | { | |
30212 | if (temp4) | |
30213 | delete arg4; | |
30214 | } | |
30215 | return resultobj; | |
30216 | fail: | |
30217 | { | |
30218 | if (temp4) | |
30219 | delete arg4; | |
30220 | } | |
30221 | return NULL; | |
30222 | } | |
30223 | ||
30224 | ||
c32bde28 | 30225 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30226 | PyObject *resultobj; |
30227 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30228 | wxTreeItemId *arg2 = 0 ; | |
30229 | wxString *arg3 = 0 ; | |
30230 | int arg4 = (int) -1 ; | |
30231 | int arg5 = (int) -1 ; | |
30232 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
30233 | wxTreeItemId result; | |
ae8162c8 | 30234 | bool temp3 = false ; |
d14a1e28 RD |
30235 | PyObject * obj0 = 0 ; |
30236 | PyObject * obj1 = 0 ; | |
30237 | PyObject * obj2 = 0 ; | |
994141e6 RD |
30238 | PyObject * obj3 = 0 ; |
30239 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
30240 | PyObject * obj5 = 0 ; |
30241 | char *kwnames[] = { | |
30242 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30243 | }; | |
30244 | ||
994141e6 | 30245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
30246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30248 | { | |
30249 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30250 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30251 | if (arg2 == NULL) { | |
30252 | SWIG_null_ref("wxTreeItemId"); | |
30253 | } | |
30254 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30255 | } |
30256 | { | |
30257 | arg3 = wxString_in_helper(obj2); | |
30258 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30259 | temp3 = true; |
d14a1e28 | 30260 | } |
994141e6 | 30261 | if (obj3) { |
093d3ff1 RD |
30262 | { |
30263 | arg4 = (int)(SWIG_As_int(obj3)); | |
30264 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30265 | } | |
994141e6 RD |
30266 | } |
30267 | if (obj4) { | |
093d3ff1 RD |
30268 | { |
30269 | arg5 = (int)(SWIG_As_int(obj4)); | |
30270 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30271 | } | |
994141e6 | 30272 | } |
d14a1e28 | 30273 | if (obj5) { |
093d3ff1 RD |
30274 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
30275 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
30276 | } |
30277 | { | |
30278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30279 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30280 | ||
30281 | wxPyEndAllowThreads(__tstate); | |
30282 | if (PyErr_Occurred()) SWIG_fail; | |
30283 | } | |
30284 | { | |
30285 | wxTreeItemId * resultptr; | |
093d3ff1 | 30286 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30287 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30288 | } |
30289 | { | |
30290 | if (temp3) | |
30291 | delete arg3; | |
30292 | } | |
30293 | return resultobj; | |
30294 | fail: | |
30295 | { | |
30296 | if (temp3) | |
30297 | delete arg3; | |
30298 | } | |
30299 | return NULL; | |
30300 | } | |
30301 | ||
30302 | ||
c32bde28 | 30303 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30304 | PyObject *resultobj; |
30305 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30306 | wxTreeItemId *arg2 = 0 ; | |
30307 | PyObject * obj0 = 0 ; | |
30308 | PyObject * obj1 = 0 ; | |
30309 | char *kwnames[] = { | |
30310 | (char *) "self",(char *) "item", NULL | |
30311 | }; | |
30312 | ||
30313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30314 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30315 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30316 | { | |
30317 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30318 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30319 | if (arg2 == NULL) { | |
30320 | SWIG_null_ref("wxTreeItemId"); | |
30321 | } | |
30322 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30323 | } |
30324 | { | |
30325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30326 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
30327 | ||
30328 | wxPyEndAllowThreads(__tstate); | |
30329 | if (PyErr_Occurred()) SWIG_fail; | |
30330 | } | |
30331 | Py_INCREF(Py_None); resultobj = Py_None; | |
30332 | return resultobj; | |
30333 | fail: | |
30334 | return NULL; | |
30335 | } | |
30336 | ||
30337 | ||
c32bde28 | 30338 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30339 | PyObject *resultobj; |
30340 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30341 | wxTreeItemId *arg2 = 0 ; | |
30342 | PyObject * obj0 = 0 ; | |
30343 | PyObject * obj1 = 0 ; | |
30344 | char *kwnames[] = { | |
30345 | (char *) "self",(char *) "item", NULL | |
30346 | }; | |
30347 | ||
30348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30351 | { | |
30352 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30353 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30354 | if (arg2 == NULL) { | |
30355 | SWIG_null_ref("wxTreeItemId"); | |
30356 | } | |
30357 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30358 | } |
30359 | { | |
30360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30361 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
30362 | ||
30363 | wxPyEndAllowThreads(__tstate); | |
30364 | if (PyErr_Occurred()) SWIG_fail; | |
30365 | } | |
30366 | Py_INCREF(Py_None); resultobj = Py_None; | |
30367 | return resultobj; | |
30368 | fail: | |
30369 | return NULL; | |
30370 | } | |
30371 | ||
30372 | ||
c32bde28 | 30373 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30374 | PyObject *resultobj; |
30375 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30376 | PyObject * obj0 = 0 ; | |
30377 | char *kwnames[] = { | |
30378 | (char *) "self", NULL | |
30379 | }; | |
30380 | ||
30381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30384 | { |
30385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30386 | (arg1)->DeleteAllItems(); | |
30387 | ||
30388 | wxPyEndAllowThreads(__tstate); | |
30389 | if (PyErr_Occurred()) SWIG_fail; | |
30390 | } | |
30391 | Py_INCREF(Py_None); resultobj = Py_None; | |
30392 | return resultobj; | |
30393 | fail: | |
30394 | return NULL; | |
30395 | } | |
30396 | ||
30397 | ||
c32bde28 | 30398 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30399 | PyObject *resultobj; |
30400 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30401 | wxTreeItemId *arg2 = 0 ; | |
30402 | PyObject * obj0 = 0 ; | |
30403 | PyObject * obj1 = 0 ; | |
30404 | char *kwnames[] = { | |
30405 | (char *) "self",(char *) "item", NULL | |
30406 | }; | |
30407 | ||
30408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30411 | { | |
30412 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30413 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30414 | if (arg2 == NULL) { | |
30415 | SWIG_null_ref("wxTreeItemId"); | |
30416 | } | |
30417 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30418 | } |
30419 | { | |
30420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30421 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
30422 | ||
30423 | wxPyEndAllowThreads(__tstate); | |
30424 | if (PyErr_Occurred()) SWIG_fail; | |
30425 | } | |
30426 | Py_INCREF(Py_None); resultobj = Py_None; | |
30427 | return resultobj; | |
30428 | fail: | |
30429 | return NULL; | |
30430 | } | |
30431 | ||
30432 | ||
c32bde28 | 30433 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30434 | PyObject *resultobj; |
30435 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30436 | wxTreeItemId *arg2 = 0 ; | |
30437 | PyObject * obj0 = 0 ; | |
30438 | PyObject * obj1 = 0 ; | |
30439 | char *kwnames[] = { | |
30440 | (char *) "self",(char *) "item", NULL | |
30441 | }; | |
30442 | ||
30443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30446 | { | |
30447 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30448 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30449 | if (arg2 == NULL) { | |
30450 | SWIG_null_ref("wxTreeItemId"); | |
30451 | } | |
30452 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30453 | } |
30454 | { | |
30455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30456 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
30457 | ||
30458 | wxPyEndAllowThreads(__tstate); | |
30459 | if (PyErr_Occurred()) SWIG_fail; | |
30460 | } | |
30461 | Py_INCREF(Py_None); resultobj = Py_None; | |
30462 | return resultobj; | |
30463 | fail: | |
30464 | return NULL; | |
30465 | } | |
30466 | ||
30467 | ||
c32bde28 | 30468 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30469 | PyObject *resultobj; |
30470 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30471 | wxTreeItemId *arg2 = 0 ; | |
30472 | PyObject * obj0 = 0 ; | |
30473 | PyObject * obj1 = 0 ; | |
30474 | char *kwnames[] = { | |
30475 | (char *) "self",(char *) "item", NULL | |
30476 | }; | |
30477 | ||
30478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30481 | { | |
30482 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30483 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30484 | if (arg2 == NULL) { | |
30485 | SWIG_null_ref("wxTreeItemId"); | |
30486 | } | |
30487 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30488 | } |
30489 | { | |
30490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30491 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
30492 | ||
30493 | wxPyEndAllowThreads(__tstate); | |
30494 | if (PyErr_Occurred()) SWIG_fail; | |
30495 | } | |
30496 | Py_INCREF(Py_None); resultobj = Py_None; | |
30497 | return resultobj; | |
30498 | fail: | |
30499 | return NULL; | |
30500 | } | |
30501 | ||
30502 | ||
c32bde28 | 30503 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30504 | PyObject *resultobj; |
30505 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30506 | wxTreeItemId *arg2 = 0 ; | |
30507 | PyObject * obj0 = 0 ; | |
30508 | PyObject * obj1 = 0 ; | |
30509 | char *kwnames[] = { | |
30510 | (char *) "self",(char *) "item", NULL | |
30511 | }; | |
30512 | ||
30513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30516 | { | |
30517 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30518 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30519 | if (arg2 == NULL) { | |
30520 | SWIG_null_ref("wxTreeItemId"); | |
30521 | } | |
30522 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30523 | } |
30524 | { | |
30525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30526 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
30527 | ||
30528 | wxPyEndAllowThreads(__tstate); | |
30529 | if (PyErr_Occurred()) SWIG_fail; | |
30530 | } | |
30531 | Py_INCREF(Py_None); resultobj = Py_None; | |
30532 | return resultobj; | |
30533 | fail: | |
30534 | return NULL; | |
30535 | } | |
30536 | ||
30537 | ||
c32bde28 | 30538 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30539 | PyObject *resultobj; |
30540 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30541 | PyObject * obj0 = 0 ; | |
30542 | char *kwnames[] = { | |
30543 | (char *) "self", NULL | |
30544 | }; | |
30545 | ||
30546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30547 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30548 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30549 | { |
30550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30551 | (arg1)->Unselect(); | |
30552 | ||
30553 | wxPyEndAllowThreads(__tstate); | |
30554 | if (PyErr_Occurred()) SWIG_fail; | |
30555 | } | |
30556 | Py_INCREF(Py_None); resultobj = Py_None; | |
30557 | return resultobj; | |
30558 | fail: | |
30559 | return NULL; | |
30560 | } | |
30561 | ||
30562 | ||
c32bde28 | 30563 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
30564 | PyObject *resultobj; |
30565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30566 | wxTreeItemId *arg2 = 0 ; | |
30567 | PyObject * obj0 = 0 ; | |
30568 | PyObject * obj1 = 0 ; | |
30569 | char *kwnames[] = { | |
30570 | (char *) "self",(char *) "item", NULL | |
30571 | }; | |
30572 | ||
30573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30576 | { | |
30577 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30578 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30579 | if (arg2 == NULL) { | |
30580 | SWIG_null_ref("wxTreeItemId"); | |
30581 | } | |
30582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3adfb63b RD |
30583 | } |
30584 | { | |
30585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30586 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
30587 | ||
30588 | wxPyEndAllowThreads(__tstate); | |
30589 | if (PyErr_Occurred()) SWIG_fail; | |
30590 | } | |
30591 | Py_INCREF(Py_None); resultobj = Py_None; | |
30592 | return resultobj; | |
30593 | fail: | |
30594 | return NULL; | |
30595 | } | |
30596 | ||
30597 | ||
c32bde28 | 30598 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30599 | PyObject *resultobj; |
30600 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30601 | PyObject * obj0 = 0 ; | |
30602 | char *kwnames[] = { | |
30603 | (char *) "self", NULL | |
30604 | }; | |
30605 | ||
30606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30609 | { |
30610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30611 | (arg1)->UnselectAll(); | |
30612 | ||
30613 | wxPyEndAllowThreads(__tstate); | |
30614 | if (PyErr_Occurred()) SWIG_fail; | |
30615 | } | |
30616 | Py_INCREF(Py_None); resultobj = Py_None; | |
30617 | return resultobj; | |
30618 | fail: | |
30619 | return NULL; | |
30620 | } | |
30621 | ||
30622 | ||
c32bde28 | 30623 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
3adfb63b RD |
30624 | PyObject *resultobj; |
30625 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30626 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30627 | bool arg3 = (bool) true ; |
3adfb63b RD |
30628 | PyObject * obj0 = 0 ; |
30629 | PyObject * obj1 = 0 ; | |
30630 | PyObject * obj2 = 0 ; | |
30631 | char *kwnames[] = { | |
30632 | (char *) "self",(char *) "item",(char *) "select", NULL | |
30633 | }; | |
30634 | ||
30635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30638 | { | |
30639 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30640 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30641 | if (arg2 == NULL) { | |
30642 | SWIG_null_ref("wxTreeItemId"); | |
30643 | } | |
30644 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3adfb63b RD |
30645 | } |
30646 | if (obj2) { | |
093d3ff1 RD |
30647 | { |
30648 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30649 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30650 | } | |
3adfb63b RD |
30651 | } |
30652 | { | |
30653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30654 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
30655 | ||
30656 | wxPyEndAllowThreads(__tstate); | |
30657 | if (PyErr_Occurred()) SWIG_fail; | |
30658 | } | |
30659 | Py_INCREF(Py_None); resultobj = Py_None; | |
30660 | return resultobj; | |
30661 | fail: | |
30662 | return NULL; | |
30663 | } | |
30664 | ||
30665 | ||
c32bde28 | 30666 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30667 | PyObject *resultobj; |
30668 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30669 | wxTreeItemId *arg2 = 0 ; | |
30670 | PyObject * obj0 = 0 ; | |
30671 | PyObject * obj1 = 0 ; | |
30672 | char *kwnames[] = { | |
30673 | (char *) "self",(char *) "item", NULL | |
30674 | }; | |
30675 | ||
3adfb63b | 30676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30679 | { | |
30680 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30682 | if (arg2 == NULL) { | |
30683 | SWIG_null_ref("wxTreeItemId"); | |
30684 | } | |
30685 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30686 | } |
30687 | { | |
30688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 30689 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
30690 | |
30691 | wxPyEndAllowThreads(__tstate); | |
30692 | if (PyErr_Occurred()) SWIG_fail; | |
30693 | } | |
30694 | Py_INCREF(Py_None); resultobj = Py_None; | |
30695 | return resultobj; | |
30696 | fail: | |
30697 | return NULL; | |
30698 | } | |
30699 | ||
30700 | ||
c32bde28 | 30701 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30702 | PyObject *resultobj; |
30703 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30704 | wxTreeItemId *arg2 = 0 ; | |
30705 | PyObject * obj0 = 0 ; | |
30706 | PyObject * obj1 = 0 ; | |
30707 | char *kwnames[] = { | |
30708 | (char *) "self",(char *) "item", NULL | |
30709 | }; | |
30710 | ||
30711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30714 | { | |
30715 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30716 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30717 | if (arg2 == NULL) { | |
30718 | SWIG_null_ref("wxTreeItemId"); | |
30719 | } | |
30720 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30721 | } |
30722 | { | |
30723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30724 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
30725 | ||
30726 | wxPyEndAllowThreads(__tstate); | |
30727 | if (PyErr_Occurred()) SWIG_fail; | |
30728 | } | |
30729 | Py_INCREF(Py_None); resultobj = Py_None; | |
30730 | return resultobj; | |
30731 | fail: | |
30732 | return NULL; | |
30733 | } | |
30734 | ||
30735 | ||
c32bde28 | 30736 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30737 | PyObject *resultobj; |
30738 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30739 | wxTreeItemId *arg2 = 0 ; | |
30740 | PyObject * obj0 = 0 ; | |
30741 | PyObject * obj1 = 0 ; | |
30742 | char *kwnames[] = { | |
30743 | (char *) "self",(char *) "item", NULL | |
30744 | }; | |
30745 | ||
30746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30749 | { | |
30750 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30751 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30752 | if (arg2 == NULL) { | |
30753 | SWIG_null_ref("wxTreeItemId"); | |
30754 | } | |
30755 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30756 | } |
30757 | { | |
30758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30759 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
30760 | ||
30761 | wxPyEndAllowThreads(__tstate); | |
30762 | if (PyErr_Occurred()) SWIG_fail; | |
30763 | } | |
30764 | Py_INCREF(Py_None); resultobj = Py_None; | |
30765 | return resultobj; | |
30766 | fail: | |
30767 | return NULL; | |
30768 | } | |
30769 | ||
30770 | ||
c32bde28 | 30771 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30772 | PyObject *resultobj; |
30773 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30774 | wxTreeItemId *arg2 = 0 ; | |
30775 | PyObject * obj0 = 0 ; | |
30776 | PyObject * obj1 = 0 ; | |
30777 | char *kwnames[] = { | |
30778 | (char *) "self",(char *) "item", NULL | |
30779 | }; | |
30780 | ||
30781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30784 | { | |
30785 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30786 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30787 | if (arg2 == NULL) { | |
30788 | SWIG_null_ref("wxTreeItemId"); | |
30789 | } | |
30790 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30791 | } |
30792 | { | |
30793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30794 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
30795 | ||
30796 | wxPyEndAllowThreads(__tstate); | |
30797 | if (PyErr_Occurred()) SWIG_fail; | |
30798 | } | |
30799 | Py_INCREF(Py_None); resultobj = Py_None; | |
30800 | return resultobj; | |
30801 | fail: | |
30802 | return NULL; | |
30803 | } | |
30804 | ||
30805 | ||
c32bde28 | 30806 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30807 | PyObject *resultobj; |
30808 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30809 | wxTextCtrl *result; | |
30810 | PyObject * obj0 = 0 ; | |
30811 | char *kwnames[] = { | |
30812 | (char *) "self", NULL | |
30813 | }; | |
30814 | ||
30815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30818 | { |
30819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30820 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
30821 | ||
30822 | wxPyEndAllowThreads(__tstate); | |
30823 | if (PyErr_Occurred()) SWIG_fail; | |
30824 | } | |
30825 | { | |
412d302d | 30826 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30827 | } |
30828 | return resultobj; | |
30829 | fail: | |
30830 | return NULL; | |
30831 | } | |
30832 | ||
30833 | ||
c32bde28 | 30834 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30835 | PyObject *resultobj; |
30836 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30837 | wxTreeItemId *arg2 = 0 ; | |
30838 | PyObject * obj0 = 0 ; | |
30839 | PyObject * obj1 = 0 ; | |
30840 | char *kwnames[] = { | |
30841 | (char *) "self",(char *) "item", NULL | |
30842 | }; | |
30843 | ||
30844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30847 | { | |
30848 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30849 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30850 | if (arg2 == NULL) { | |
30851 | SWIG_null_ref("wxTreeItemId"); | |
30852 | } | |
30853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30854 | } |
30855 | { | |
30856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30857 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
30858 | ||
30859 | wxPyEndAllowThreads(__tstate); | |
30860 | if (PyErr_Occurred()) SWIG_fail; | |
30861 | } | |
30862 | Py_INCREF(Py_None); resultobj = Py_None; | |
30863 | return resultobj; | |
30864 | fail: | |
30865 | return NULL; | |
30866 | } | |
30867 | ||
30868 | ||
c32bde28 | 30869 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30870 | PyObject *resultobj; |
30871 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30872 | wxPoint *arg2 = 0 ; | |
30873 | int *arg3 = 0 ; | |
30874 | wxTreeItemId result; | |
30875 | wxPoint temp2 ; | |
30876 | int temp3 ; | |
c32bde28 | 30877 | int res3 = 0 ; |
d14a1e28 RD |
30878 | PyObject * obj0 = 0 ; |
30879 | PyObject * obj1 = 0 ; | |
30880 | char *kwnames[] = { | |
30881 | (char *) "self",(char *) "point", NULL | |
30882 | }; | |
30883 | ||
c32bde28 | 30884 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 30885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
30886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30888 | { |
30889 | arg2 = &temp2; | |
30890 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30891 | } | |
30892 | { | |
30893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30894 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
30895 | ||
30896 | wxPyEndAllowThreads(__tstate); | |
30897 | if (PyErr_Occurred()) SWIG_fail; | |
30898 | } | |
30899 | { | |
30900 | wxTreeItemId * resultptr; | |
093d3ff1 | 30901 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 30902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 30903 | } |
c32bde28 RD |
30904 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
30905 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
30906 | return resultobj; |
30907 | fail: | |
30908 | return NULL; | |
30909 | } | |
30910 | ||
30911 | ||
c32bde28 | 30912 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
30913 | PyObject *resultobj; |
30914 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30915 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30916 | bool arg3 = (bool) false ; |
d14a1e28 RD |
30917 | PyObject *result; |
30918 | PyObject * obj0 = 0 ; | |
30919 | PyObject * obj1 = 0 ; | |
30920 | PyObject * obj2 = 0 ; | |
30921 | char *kwnames[] = { | |
30922 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
30923 | }; | |
30924 | ||
30925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30928 | { | |
30929 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30930 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30931 | if (arg2 == NULL) { | |
30932 | SWIG_null_ref("wxTreeItemId"); | |
30933 | } | |
30934 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30935 | } |
30936 | if (obj2) { | |
093d3ff1 RD |
30937 | { |
30938 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30939 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30940 | } | |
d14a1e28 RD |
30941 | } |
30942 | { | |
30943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30944 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
30945 | ||
30946 | wxPyEndAllowThreads(__tstate); | |
30947 | if (PyErr_Occurred()) SWIG_fail; | |
30948 | } | |
30949 | resultobj = result; | |
30950 | return resultobj; | |
30951 | fail: | |
30952 | return NULL; | |
30953 | } | |
30954 | ||
30955 | ||
c32bde28 | 30956 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
74a57fcd | 30957 | PyObject *resultobj; |
093d3ff1 | 30958 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
30959 | wxVisualAttributes result; |
30960 | PyObject * obj0 = 0 ; | |
30961 | char *kwnames[] = { | |
30962 | (char *) "variant", NULL | |
30963 | }; | |
30964 | ||
30965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
30966 | if (obj0) { | |
093d3ff1 RD |
30967 | { |
30968 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
30969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30970 | } | |
74a57fcd RD |
30971 | } |
30972 | { | |
110da5b0 | 30973 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
30974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30975 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
30976 | ||
30977 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 30978 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
30979 | } |
30980 | { | |
30981 | wxVisualAttributes * resultptr; | |
093d3ff1 | 30982 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
74a57fcd RD |
30983 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
30984 | } | |
30985 | return resultobj; | |
30986 | fail: | |
30987 | return NULL; | |
30988 | } | |
30989 | ||
30990 | ||
c32bde28 | 30991 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
30992 | PyObject *obj; |
30993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30994 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
30995 | Py_INCREF(obj); | |
30996 | return Py_BuildValue((char *)""); | |
30997 | } | |
c32bde28 | 30998 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
b2dc1044 RD |
30999 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
31000 | return 1; | |
31001 | } | |
31002 | ||
31003 | ||
093d3ff1 | 31004 | static PyObject *_wrap_DirDialogDefaultFolderStr_get(void) { |
b2dc1044 RD |
31005 | PyObject *pyobj; |
31006 | ||
31007 | { | |
31008 | #if wxUSE_UNICODE | |
31009 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
31010 | #else | |
31011 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
31012 | #endif | |
31013 | } | |
31014 | return pyobj; | |
31015 | } | |
31016 | ||
31017 | ||
c32bde28 | 31018 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31019 | PyObject *resultobj; |
31020 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 31021 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
31022 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
31023 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31024 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31025 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31026 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31027 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31028 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31029 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
31030 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
31031 | int arg8 = (int) 0 ; | |
b2dc1044 | 31032 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
31033 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
31034 | wxGenericDirCtrl *result; | |
ae8162c8 | 31035 | bool temp3 = false ; |
d14a1e28 RD |
31036 | wxPoint temp4 ; |
31037 | wxSize temp5 ; | |
ae8162c8 RD |
31038 | bool temp7 = false ; |
31039 | bool temp9 = false ; | |
d14a1e28 | 31040 | PyObject * obj0 = 0 ; |
994141e6 | 31041 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31042 | PyObject * obj2 = 0 ; |
31043 | PyObject * obj3 = 0 ; | |
31044 | PyObject * obj4 = 0 ; | |
994141e6 | 31045 | PyObject * obj5 = 0 ; |
d14a1e28 | 31046 | PyObject * obj6 = 0 ; |
994141e6 | 31047 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
31048 | PyObject * obj8 = 0 ; |
31049 | char *kwnames[] = { | |
31050 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31051 | }; | |
31052 | ||
994141e6 | 31053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
31054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
31055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 31056 | if (obj1) { |
093d3ff1 RD |
31057 | { |
31058 | arg2 = (int const)(SWIG_As_int(obj1)); | |
31059 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31060 | } | |
994141e6 | 31061 | } |
d14a1e28 RD |
31062 | if (obj2) { |
31063 | { | |
31064 | arg3 = wxString_in_helper(obj2); | |
31065 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31066 | temp3 = true; |
d14a1e28 RD |
31067 | } |
31068 | } | |
31069 | if (obj3) { | |
31070 | { | |
31071 | arg4 = &temp4; | |
31072 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31073 | } | |
31074 | } | |
31075 | if (obj4) { | |
31076 | { | |
31077 | arg5 = &temp5; | |
31078 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31079 | } | |
31080 | } | |
994141e6 | 31081 | if (obj5) { |
093d3ff1 RD |
31082 | { |
31083 | arg6 = (long)(SWIG_As_long(obj5)); | |
31084 | if (SWIG_arg_fail(6)) SWIG_fail; | |
31085 | } | |
994141e6 | 31086 | } |
d14a1e28 RD |
31087 | if (obj6) { |
31088 | { | |
31089 | arg7 = wxString_in_helper(obj6); | |
31090 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 31091 | temp7 = true; |
d14a1e28 RD |
31092 | } |
31093 | } | |
994141e6 | 31094 | if (obj7) { |
093d3ff1 RD |
31095 | { |
31096 | arg8 = (int)(SWIG_As_int(obj7)); | |
31097 | if (SWIG_arg_fail(8)) SWIG_fail; | |
31098 | } | |
994141e6 | 31099 | } |
d14a1e28 RD |
31100 | if (obj8) { |
31101 | { | |
31102 | arg9 = wxString_in_helper(obj8); | |
31103 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 31104 | temp9 = true; |
d14a1e28 RD |
31105 | } |
31106 | } | |
31107 | { | |
e3b71cb8 | 31108 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31110 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
31111 | ||
31112 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31113 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31114 | } |
15afbcd0 | 31115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
31116 | { |
31117 | if (temp3) | |
31118 | delete arg3; | |
31119 | } | |
31120 | { | |
31121 | if (temp7) | |
31122 | delete arg7; | |
31123 | } | |
31124 | { | |
31125 | if (temp9) | |
31126 | delete arg9; | |
31127 | } | |
31128 | return resultobj; | |
31129 | fail: | |
31130 | { | |
31131 | if (temp3) | |
31132 | delete arg3; | |
31133 | } | |
31134 | { | |
31135 | if (temp7) | |
31136 | delete arg7; | |
31137 | } | |
31138 | { | |
31139 | if (temp9) | |
31140 | delete arg9; | |
31141 | } | |
31142 | return NULL; | |
31143 | } | |
31144 | ||
31145 | ||
c32bde28 | 31146 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31147 | PyObject *resultobj; |
31148 | wxGenericDirCtrl *result; | |
31149 | char *kwnames[] = { | |
31150 | NULL | |
31151 | }; | |
31152 | ||
31153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
31154 | { | |
e3b71cb8 | 31155 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31157 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
31158 | ||
31159 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31160 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31161 | } |
15afbcd0 | 31162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
31163 | return resultobj; |
31164 | fail: | |
31165 | return NULL; | |
31166 | } | |
31167 | ||
31168 | ||
c32bde28 | 31169 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31170 | PyObject *resultobj; |
31171 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31172 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 31173 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
31174 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
31175 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31176 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
31177 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
31178 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
31179 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
31180 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31181 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
31182 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31183 | int arg9 = (int) 0 ; | |
b2dc1044 | 31184 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
31185 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
31186 | bool result; | |
ae8162c8 | 31187 | bool temp4 = false ; |
d14a1e28 RD |
31188 | wxPoint temp5 ; |
31189 | wxSize temp6 ; | |
ae8162c8 RD |
31190 | bool temp8 = false ; |
31191 | bool temp10 = false ; | |
d14a1e28 RD |
31192 | PyObject * obj0 = 0 ; |
31193 | PyObject * obj1 = 0 ; | |
994141e6 | 31194 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
31195 | PyObject * obj3 = 0 ; |
31196 | PyObject * obj4 = 0 ; | |
31197 | PyObject * obj5 = 0 ; | |
994141e6 | 31198 | PyObject * obj6 = 0 ; |
d14a1e28 | 31199 | PyObject * obj7 = 0 ; |
994141e6 | 31200 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
31201 | PyObject * obj9 = 0 ; |
31202 | char *kwnames[] = { | |
31203 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31204 | }; | |
31205 | ||
994141e6 | 31206 | 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 |
31207 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31208 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31209 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
31210 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 31211 | if (obj2) { |
093d3ff1 RD |
31212 | { |
31213 | arg3 = (int const)(SWIG_As_int(obj2)); | |
31214 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31215 | } | |
994141e6 | 31216 | } |
d14a1e28 RD |
31217 | if (obj3) { |
31218 | { | |
31219 | arg4 = wxString_in_helper(obj3); | |
31220 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31221 | temp4 = true; |
d14a1e28 RD |
31222 | } |
31223 | } | |
31224 | if (obj4) { | |
31225 | { | |
31226 | arg5 = &temp5; | |
31227 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
31228 | } | |
31229 | } | |
31230 | if (obj5) { | |
31231 | { | |
31232 | arg6 = &temp6; | |
31233 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
31234 | } | |
31235 | } | |
994141e6 | 31236 | if (obj6) { |
093d3ff1 RD |
31237 | { |
31238 | arg7 = (long)(SWIG_As_long(obj6)); | |
31239 | if (SWIG_arg_fail(7)) SWIG_fail; | |
31240 | } | |
994141e6 | 31241 | } |
d14a1e28 RD |
31242 | if (obj7) { |
31243 | { | |
31244 | arg8 = wxString_in_helper(obj7); | |
31245 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 31246 | temp8 = true; |
d14a1e28 RD |
31247 | } |
31248 | } | |
994141e6 | 31249 | if (obj8) { |
093d3ff1 RD |
31250 | { |
31251 | arg9 = (int)(SWIG_As_int(obj8)); | |
31252 | if (SWIG_arg_fail(9)) SWIG_fail; | |
31253 | } | |
994141e6 | 31254 | } |
d14a1e28 RD |
31255 | if (obj9) { |
31256 | { | |
31257 | arg10 = wxString_in_helper(obj9); | |
31258 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 31259 | temp10 = true; |
d14a1e28 RD |
31260 | } |
31261 | } | |
31262 | { | |
31263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31264 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
31265 | ||
31266 | wxPyEndAllowThreads(__tstate); | |
31267 | if (PyErr_Occurred()) SWIG_fail; | |
31268 | } | |
4f89f6a3 RD |
31269 | { |
31270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31271 | } | |
d14a1e28 RD |
31272 | { |
31273 | if (temp4) | |
31274 | delete arg4; | |
31275 | } | |
31276 | { | |
31277 | if (temp8) | |
31278 | delete arg8; | |
31279 | } | |
31280 | { | |
31281 | if (temp10) | |
31282 | delete arg10; | |
31283 | } | |
31284 | return resultobj; | |
31285 | fail: | |
31286 | { | |
31287 | if (temp4) | |
31288 | delete arg4; | |
31289 | } | |
31290 | { | |
31291 | if (temp8) | |
31292 | delete arg8; | |
31293 | } | |
31294 | { | |
31295 | if (temp10) | |
31296 | delete arg10; | |
31297 | } | |
31298 | return NULL; | |
31299 | } | |
31300 | ||
31301 | ||
c32bde28 | 31302 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31303 | PyObject *resultobj; |
31304 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31305 | wxString *arg2 = 0 ; | |
31306 | bool result; | |
ae8162c8 | 31307 | bool temp2 = false ; |
d14a1e28 RD |
31308 | PyObject * obj0 = 0 ; |
31309 | PyObject * obj1 = 0 ; | |
31310 | char *kwnames[] = { | |
31311 | (char *) "self",(char *) "path", NULL | |
31312 | }; | |
31313 | ||
31314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31317 | { |
31318 | arg2 = wxString_in_helper(obj1); | |
31319 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31320 | temp2 = true; |
d14a1e28 RD |
31321 | } |
31322 | { | |
31323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31324 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
31325 | ||
31326 | wxPyEndAllowThreads(__tstate); | |
31327 | if (PyErr_Occurred()) SWIG_fail; | |
31328 | } | |
4f89f6a3 RD |
31329 | { |
31330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31331 | } | |
d14a1e28 RD |
31332 | { |
31333 | if (temp2) | |
31334 | delete arg2; | |
31335 | } | |
31336 | return resultobj; | |
31337 | fail: | |
31338 | { | |
31339 | if (temp2) | |
31340 | delete arg2; | |
31341 | } | |
31342 | return NULL; | |
31343 | } | |
31344 | ||
31345 | ||
c32bde28 | 31346 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31347 | PyObject *resultobj; |
31348 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31349 | wxString result; | |
31350 | PyObject * obj0 = 0 ; | |
31351 | char *kwnames[] = { | |
31352 | (char *) "self", NULL | |
31353 | }; | |
31354 | ||
31355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31356 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31357 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31358 | { |
31359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31360 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
31361 | ||
31362 | wxPyEndAllowThreads(__tstate); | |
31363 | if (PyErr_Occurred()) SWIG_fail; | |
31364 | } | |
31365 | { | |
31366 | #if wxUSE_UNICODE | |
31367 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31368 | #else | |
31369 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31370 | #endif | |
31371 | } | |
31372 | return resultobj; | |
31373 | fail: | |
31374 | return NULL; | |
31375 | } | |
31376 | ||
31377 | ||
c32bde28 | 31378 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31379 | PyObject *resultobj; |
31380 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31381 | wxString *arg2 = 0 ; | |
ae8162c8 | 31382 | bool temp2 = false ; |
d14a1e28 RD |
31383 | PyObject * obj0 = 0 ; |
31384 | PyObject * obj1 = 0 ; | |
31385 | char *kwnames[] = { | |
31386 | (char *) "self",(char *) "path", NULL | |
31387 | }; | |
31388 | ||
31389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31390 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31391 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31392 | { |
31393 | arg2 = wxString_in_helper(obj1); | |
31394 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31395 | temp2 = true; |
d14a1e28 RD |
31396 | } |
31397 | { | |
31398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31399 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
31400 | ||
31401 | wxPyEndAllowThreads(__tstate); | |
31402 | if (PyErr_Occurred()) SWIG_fail; | |
31403 | } | |
31404 | Py_INCREF(Py_None); resultobj = Py_None; | |
31405 | { | |
31406 | if (temp2) | |
31407 | delete arg2; | |
31408 | } | |
31409 | return resultobj; | |
31410 | fail: | |
31411 | { | |
31412 | if (temp2) | |
31413 | delete arg2; | |
31414 | } | |
31415 | return NULL; | |
31416 | } | |
31417 | ||
31418 | ||
c32bde28 | 31419 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31420 | PyObject *resultobj; |
31421 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31422 | wxString result; | |
31423 | PyObject * obj0 = 0 ; | |
31424 | char *kwnames[] = { | |
31425 | (char *) "self", NULL | |
31426 | }; | |
31427 | ||
31428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31431 | { |
31432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31433 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
31434 | ||
31435 | wxPyEndAllowThreads(__tstate); | |
31436 | if (PyErr_Occurred()) SWIG_fail; | |
31437 | } | |
31438 | { | |
31439 | #if wxUSE_UNICODE | |
31440 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31441 | #else | |
31442 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31443 | #endif | |
31444 | } | |
31445 | return resultobj; | |
31446 | fail: | |
31447 | return NULL; | |
31448 | } | |
31449 | ||
31450 | ||
c32bde28 | 31451 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31452 | PyObject *resultobj; |
31453 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31454 | wxString result; | |
31455 | PyObject * obj0 = 0 ; | |
31456 | char *kwnames[] = { | |
31457 | (char *) "self", NULL | |
31458 | }; | |
31459 | ||
31460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31463 | { |
31464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31465 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
31466 | ||
31467 | wxPyEndAllowThreads(__tstate); | |
31468 | if (PyErr_Occurred()) SWIG_fail; | |
31469 | } | |
31470 | { | |
31471 | #if wxUSE_UNICODE | |
31472 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31473 | #else | |
31474 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31475 | #endif | |
31476 | } | |
31477 | return resultobj; | |
31478 | fail: | |
31479 | return NULL; | |
31480 | } | |
31481 | ||
31482 | ||
c32bde28 | 31483 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31484 | PyObject *resultobj; |
31485 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31486 | wxString *arg2 = 0 ; | |
ae8162c8 | 31487 | bool temp2 = false ; |
d14a1e28 RD |
31488 | PyObject * obj0 = 0 ; |
31489 | PyObject * obj1 = 0 ; | |
31490 | char *kwnames[] = { | |
31491 | (char *) "self",(char *) "path", NULL | |
31492 | }; | |
31493 | ||
31494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31495 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31496 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31497 | { |
31498 | arg2 = wxString_in_helper(obj1); | |
31499 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31500 | temp2 = true; |
d14a1e28 RD |
31501 | } |
31502 | { | |
31503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31504 | (arg1)->SetPath((wxString const &)*arg2); | |
31505 | ||
31506 | wxPyEndAllowThreads(__tstate); | |
31507 | if (PyErr_Occurred()) SWIG_fail; | |
31508 | } | |
31509 | Py_INCREF(Py_None); resultobj = Py_None; | |
31510 | { | |
31511 | if (temp2) | |
31512 | delete arg2; | |
31513 | } | |
31514 | return resultobj; | |
31515 | fail: | |
31516 | { | |
31517 | if (temp2) | |
31518 | delete arg2; | |
31519 | } | |
31520 | return NULL; | |
31521 | } | |
31522 | ||
31523 | ||
c32bde28 | 31524 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31525 | PyObject *resultobj; |
31526 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31527 | bool arg2 ; | |
31528 | PyObject * obj0 = 0 ; | |
31529 | PyObject * obj1 = 0 ; | |
31530 | char *kwnames[] = { | |
31531 | (char *) "self",(char *) "show", NULL | |
31532 | }; | |
31533 | ||
31534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31537 | { | |
31538 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
31539 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31540 | } | |
d14a1e28 RD |
31541 | { |
31542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31543 | (arg1)->ShowHidden(arg2); | |
31544 | ||
31545 | wxPyEndAllowThreads(__tstate); | |
31546 | if (PyErr_Occurred()) SWIG_fail; | |
31547 | } | |
31548 | Py_INCREF(Py_None); resultobj = Py_None; | |
31549 | return resultobj; | |
31550 | fail: | |
31551 | return NULL; | |
31552 | } | |
31553 | ||
31554 | ||
c32bde28 | 31555 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31556 | PyObject *resultobj; |
31557 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31558 | bool result; | |
31559 | PyObject * obj0 = 0 ; | |
31560 | char *kwnames[] = { | |
31561 | (char *) "self", NULL | |
31562 | }; | |
31563 | ||
31564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31567 | { |
31568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31569 | result = (bool)(arg1)->GetShowHidden(); | |
31570 | ||
31571 | wxPyEndAllowThreads(__tstate); | |
31572 | if (PyErr_Occurred()) SWIG_fail; | |
31573 | } | |
4f89f6a3 RD |
31574 | { |
31575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31576 | } | |
d14a1e28 RD |
31577 | return resultobj; |
31578 | fail: | |
31579 | return NULL; | |
31580 | } | |
31581 | ||
31582 | ||
c32bde28 | 31583 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31584 | PyObject *resultobj; |
31585 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31586 | wxString result; | |
31587 | PyObject * obj0 = 0 ; | |
31588 | char *kwnames[] = { | |
31589 | (char *) "self", NULL | |
31590 | }; | |
31591 | ||
31592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31593 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31594 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31595 | { |
31596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31597 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
31598 | ||
31599 | wxPyEndAllowThreads(__tstate); | |
31600 | if (PyErr_Occurred()) SWIG_fail; | |
31601 | } | |
31602 | { | |
31603 | #if wxUSE_UNICODE | |
31604 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31605 | #else | |
31606 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31607 | #endif | |
31608 | } | |
31609 | return resultobj; | |
31610 | fail: | |
31611 | return NULL; | |
31612 | } | |
31613 | ||
31614 | ||
c32bde28 | 31615 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31616 | PyObject *resultobj; |
31617 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31618 | wxString *arg2 = 0 ; | |
ae8162c8 | 31619 | bool temp2 = false ; |
d14a1e28 RD |
31620 | PyObject * obj0 = 0 ; |
31621 | PyObject * obj1 = 0 ; | |
31622 | char *kwnames[] = { | |
31623 | (char *) "self",(char *) "filter", NULL | |
31624 | }; | |
31625 | ||
31626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31629 | { |
31630 | arg2 = wxString_in_helper(obj1); | |
31631 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31632 | temp2 = true; |
d14a1e28 RD |
31633 | } |
31634 | { | |
31635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31636 | (arg1)->SetFilter((wxString const &)*arg2); | |
31637 | ||
31638 | wxPyEndAllowThreads(__tstate); | |
31639 | if (PyErr_Occurred()) SWIG_fail; | |
31640 | } | |
31641 | Py_INCREF(Py_None); resultobj = Py_None; | |
31642 | { | |
31643 | if (temp2) | |
31644 | delete arg2; | |
31645 | } | |
31646 | return resultobj; | |
31647 | fail: | |
31648 | { | |
31649 | if (temp2) | |
31650 | delete arg2; | |
31651 | } | |
31652 | return NULL; | |
31653 | } | |
31654 | ||
31655 | ||
c32bde28 | 31656 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31657 | PyObject *resultobj; |
31658 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31659 | int result; | |
31660 | PyObject * obj0 = 0 ; | |
31661 | char *kwnames[] = { | |
31662 | (char *) "self", NULL | |
31663 | }; | |
31664 | ||
31665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31666 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31667 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31668 | { |
31669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31670 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
31671 | ||
31672 | wxPyEndAllowThreads(__tstate); | |
31673 | if (PyErr_Occurred()) SWIG_fail; | |
31674 | } | |
093d3ff1 RD |
31675 | { |
31676 | resultobj = SWIG_From_int((int)(result)); | |
31677 | } | |
d14a1e28 RD |
31678 | return resultobj; |
31679 | fail: | |
31680 | return NULL; | |
31681 | } | |
31682 | ||
31683 | ||
c32bde28 | 31684 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31685 | PyObject *resultobj; |
31686 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31687 | int arg2 ; | |
31688 | PyObject * obj0 = 0 ; | |
994141e6 | 31689 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31690 | char *kwnames[] = { |
31691 | (char *) "self",(char *) "n", NULL | |
31692 | }; | |
31693 | ||
994141e6 | 31694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31695 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31697 | { | |
31698 | arg2 = (int)(SWIG_As_int(obj1)); | |
31699 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31700 | } | |
d14a1e28 RD |
31701 | { |
31702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31703 | (arg1)->SetFilterIndex(arg2); | |
31704 | ||
31705 | wxPyEndAllowThreads(__tstate); | |
31706 | if (PyErr_Occurred()) SWIG_fail; | |
31707 | } | |
31708 | Py_INCREF(Py_None); resultobj = Py_None; | |
31709 | return resultobj; | |
31710 | fail: | |
31711 | return NULL; | |
31712 | } | |
31713 | ||
31714 | ||
c32bde28 | 31715 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31716 | PyObject *resultobj; |
31717 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31718 | wxTreeItemId result; | |
31719 | PyObject * obj0 = 0 ; | |
31720 | char *kwnames[] = { | |
31721 | (char *) "self", NULL | |
31722 | }; | |
31723 | ||
31724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31727 | { |
31728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31729 | result = (arg1)->GetRootId(); | |
31730 | ||
31731 | wxPyEndAllowThreads(__tstate); | |
31732 | if (PyErr_Occurred()) SWIG_fail; | |
31733 | } | |
31734 | { | |
31735 | wxTreeItemId * resultptr; | |
093d3ff1 | 31736 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 31737 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31738 | } |
31739 | return resultobj; | |
31740 | fail: | |
31741 | return NULL; | |
31742 | } | |
31743 | ||
31744 | ||
c32bde28 | 31745 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31746 | PyObject *resultobj; |
31747 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 31748 | wxPyTreeCtrl *result; |
d14a1e28 RD |
31749 | PyObject * obj0 = 0 ; |
31750 | char *kwnames[] = { | |
31751 | (char *) "self", NULL | |
31752 | }; | |
31753 | ||
31754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31757 | { |
31758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 31759 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
31760 | |
31761 | wxPyEndAllowThreads(__tstate); | |
31762 | if (PyErr_Occurred()) SWIG_fail; | |
31763 | } | |
31764 | { | |
412d302d | 31765 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31766 | } |
31767 | return resultobj; | |
31768 | fail: | |
31769 | return NULL; | |
31770 | } | |
31771 | ||
31772 | ||
c32bde28 | 31773 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31774 | PyObject *resultobj; |
31775 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31776 | wxDirFilterListCtrl *result; | |
31777 | PyObject * obj0 = 0 ; | |
31778 | char *kwnames[] = { | |
31779 | (char *) "self", NULL | |
31780 | }; | |
31781 | ||
31782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31785 | { |
31786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31787 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
31788 | ||
31789 | wxPyEndAllowThreads(__tstate); | |
31790 | if (PyErr_Occurred()) SWIG_fail; | |
31791 | } | |
15afbcd0 | 31792 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
31793 | return resultobj; |
31794 | fail: | |
31795 | return NULL; | |
31796 | } | |
31797 | ||
31798 | ||
c32bde28 | 31799 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31800 | PyObject *resultobj; |
31801 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31802 | wxTreeItemId arg2 ; | |
31803 | wxString *arg3 = 0 ; | |
31804 | bool *arg4 = 0 ; | |
31805 | wxTreeItemId result; | |
ae8162c8 | 31806 | bool temp3 = false ; |
d14a1e28 | 31807 | bool temp4 ; |
c32bde28 | 31808 | int res4 = 0 ; |
d14a1e28 RD |
31809 | PyObject * obj0 = 0 ; |
31810 | PyObject * obj1 = 0 ; | |
31811 | PyObject * obj2 = 0 ; | |
31812 | char *kwnames[] = { | |
31813 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
31814 | }; | |
31815 | ||
c32bde28 | 31816 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d14a1e28 | 31817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
31818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31820 | { | |
31821 | wxTreeItemId * argp; | |
31822 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION); | |
31823 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31824 | if (argp == NULL) { | |
31825 | SWIG_null_ref("wxTreeItemId"); | |
31826 | } | |
31827 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31828 | arg2 = *argp; | |
31829 | } | |
d14a1e28 RD |
31830 | { |
31831 | arg3 = wxString_in_helper(obj2); | |
31832 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31833 | temp3 = true; |
d14a1e28 RD |
31834 | } |
31835 | { | |
31836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31837 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
31838 | ||
31839 | wxPyEndAllowThreads(__tstate); | |
31840 | if (PyErr_Occurred()) SWIG_fail; | |
31841 | } | |
31842 | { | |
31843 | wxTreeItemId * resultptr; | |
093d3ff1 | 31844 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); |
15afbcd0 | 31845 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 31846 | } |
c32bde28 RD |
31847 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
31848 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d14a1e28 RD |
31849 | { |
31850 | if (temp3) | |
31851 | delete arg3; | |
31852 | } | |
31853 | return resultobj; | |
31854 | fail: | |
31855 | { | |
31856 | if (temp3) | |
31857 | delete arg3; | |
31858 | } | |
31859 | return NULL; | |
31860 | } | |
31861 | ||
31862 | ||
c32bde28 | 31863 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31864 | PyObject *resultobj; |
31865 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31866 | PyObject * obj0 = 0 ; | |
31867 | char *kwnames[] = { | |
31868 | (char *) "self", NULL | |
31869 | }; | |
31870 | ||
31871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31874 | { |
31875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31876 | (arg1)->DoResize(); | |
31877 | ||
31878 | wxPyEndAllowThreads(__tstate); | |
31879 | if (PyErr_Occurred()) SWIG_fail; | |
31880 | } | |
31881 | Py_INCREF(Py_None); resultobj = Py_None; | |
31882 | return resultobj; | |
31883 | fail: | |
31884 | return NULL; | |
31885 | } | |
31886 | ||
31887 | ||
c32bde28 | 31888 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31889 | PyObject *resultobj; |
31890 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31891 | PyObject * obj0 = 0 ; | |
31892 | char *kwnames[] = { | |
31893 | (char *) "self", NULL | |
31894 | }; | |
31895 | ||
31896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31899 | { |
31900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31901 | (arg1)->ReCreateTree(); | |
31902 | ||
31903 | wxPyEndAllowThreads(__tstate); | |
31904 | if (PyErr_Occurred()) SWIG_fail; | |
31905 | } | |
31906 | Py_INCREF(Py_None); resultobj = Py_None; | |
31907 | return resultobj; | |
31908 | fail: | |
31909 | return NULL; | |
31910 | } | |
31911 | ||
31912 | ||
c32bde28 | 31913 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
31914 | PyObject *obj; |
31915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31916 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
31917 | Py_INCREF(obj); | |
31918 | return Py_BuildValue((char *)""); | |
31919 | } | |
c32bde28 | 31920 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31921 | PyObject *resultobj; |
31922 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 31923 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
31924 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
31925 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31926 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31927 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31928 | long arg5 = (long) 0 ; | |
31929 | wxDirFilterListCtrl *result; | |
31930 | wxPoint temp3 ; | |
31931 | wxSize temp4 ; | |
31932 | PyObject * obj0 = 0 ; | |
994141e6 | 31933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31934 | PyObject * obj2 = 0 ; |
31935 | PyObject * obj3 = 0 ; | |
994141e6 | 31936 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31937 | char *kwnames[] = { |
31938 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
31939 | }; | |
31940 | ||
994141e6 | 31941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
31942 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
31943 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 31944 | if (obj1) { |
093d3ff1 RD |
31945 | { |
31946 | arg2 = (int const)(SWIG_As_int(obj1)); | |
31947 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31948 | } | |
994141e6 | 31949 | } |
d14a1e28 RD |
31950 | if (obj2) { |
31951 | { | |
31952 | arg3 = &temp3; | |
31953 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31954 | } | |
31955 | } | |
31956 | if (obj3) { | |
31957 | { | |
31958 | arg4 = &temp4; | |
31959 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31960 | } | |
31961 | } | |
994141e6 | 31962 | if (obj4) { |
093d3ff1 RD |
31963 | { |
31964 | arg5 = (long)(SWIG_As_long(obj4)); | |
31965 | if (SWIG_arg_fail(5)) SWIG_fail; | |
31966 | } | |
994141e6 | 31967 | } |
d14a1e28 | 31968 | { |
e3b71cb8 | 31969 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31971 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
31972 | ||
31973 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31974 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31975 | } |
15afbcd0 | 31976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
31977 | return resultobj; |
31978 | fail: | |
31979 | return NULL; | |
31980 | } | |
31981 | ||
31982 | ||
c32bde28 | 31983 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
31984 | PyObject *resultobj; |
31985 | wxDirFilterListCtrl *result; | |
31986 | char *kwnames[] = { | |
31987 | NULL | |
31988 | }; | |
31989 | ||
31990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
31991 | { | |
e3b71cb8 | 31992 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31994 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
31995 | ||
31996 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31997 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31998 | } |
15afbcd0 | 31999 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
32000 | return resultobj; |
32001 | fail: | |
32002 | return NULL; | |
32003 | } | |
32004 | ||
32005 | ||
c32bde28 | 32006 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32007 | PyObject *resultobj; |
32008 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
32009 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 32010 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
32011 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
32012 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32013 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32014 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32015 | long arg6 = (long) 0 ; | |
32016 | bool result; | |
32017 | wxPoint temp4 ; | |
32018 | wxSize temp5 ; | |
32019 | PyObject * obj0 = 0 ; | |
32020 | PyObject * obj1 = 0 ; | |
994141e6 | 32021 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32022 | PyObject * obj3 = 0 ; |
32023 | PyObject * obj4 = 0 ; | |
994141e6 | 32024 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
32025 | char *kwnames[] = { |
32026 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
32027 | }; | |
32028 | ||
994141e6 | 32029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
32030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
32031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32032 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
32033 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 32034 | if (obj2) { |
093d3ff1 RD |
32035 | { |
32036 | arg3 = (int const)(SWIG_As_int(obj2)); | |
32037 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32038 | } | |
994141e6 | 32039 | } |
d14a1e28 RD |
32040 | if (obj3) { |
32041 | { | |
32042 | arg4 = &temp4; | |
32043 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32044 | } | |
32045 | } | |
32046 | if (obj4) { | |
32047 | { | |
32048 | arg5 = &temp5; | |
32049 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32050 | } | |
32051 | } | |
994141e6 | 32052 | if (obj5) { |
093d3ff1 RD |
32053 | { |
32054 | arg6 = (long)(SWIG_As_long(obj5)); | |
32055 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32056 | } | |
994141e6 | 32057 | } |
d14a1e28 RD |
32058 | { |
32059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32060 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
32061 | ||
32062 | wxPyEndAllowThreads(__tstate); | |
32063 | if (PyErr_Occurred()) SWIG_fail; | |
32064 | } | |
4f89f6a3 RD |
32065 | { |
32066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32067 | } | |
d14a1e28 RD |
32068 | return resultobj; |
32069 | fail: | |
32070 | return NULL; | |
32071 | } | |
32072 | ||
32073 | ||
c32bde28 | 32074 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32075 | PyObject *resultobj; |
32076 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
32077 | wxString *arg2 = 0 ; | |
32078 | int arg3 ; | |
ae8162c8 | 32079 | bool temp2 = false ; |
d14a1e28 RD |
32080 | PyObject * obj0 = 0 ; |
32081 | PyObject * obj1 = 0 ; | |
994141e6 | 32082 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32083 | char *kwnames[] = { |
32084 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
32085 | }; | |
32086 | ||
994141e6 | 32087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32088 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
32089 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32090 | { |
32091 | arg2 = wxString_in_helper(obj1); | |
32092 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32093 | temp2 = true; |
d14a1e28 | 32094 | } |
093d3ff1 RD |
32095 | { |
32096 | arg3 = (int)(SWIG_As_int(obj2)); | |
32097 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32098 | } | |
d14a1e28 RD |
32099 | { |
32100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32101 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
32102 | ||
32103 | wxPyEndAllowThreads(__tstate); | |
32104 | if (PyErr_Occurred()) SWIG_fail; | |
32105 | } | |
32106 | Py_INCREF(Py_None); resultobj = Py_None; | |
32107 | { | |
32108 | if (temp2) | |
32109 | delete arg2; | |
32110 | } | |
32111 | return resultobj; | |
32112 | fail: | |
32113 | { | |
32114 | if (temp2) | |
32115 | delete arg2; | |
32116 | } | |
32117 | return NULL; | |
32118 | } | |
32119 | ||
32120 | ||
c32bde28 | 32121 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32122 | PyObject *obj; |
32123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32124 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
32125 | Py_INCREF(obj); | |
32126 | return Py_BuildValue((char *)""); | |
32127 | } | |
c32bde28 | 32128 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32129 | PyObject *resultobj; |
32130 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 32131 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
32132 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32133 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32134 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32135 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32136 | long arg5 = (long) 0 ; | |
32137 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32138 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32139 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32140 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32141 | wxPyControl *result; | |
32142 | wxPoint temp3 ; | |
32143 | wxSize temp4 ; | |
ae8162c8 | 32144 | bool temp7 = false ; |
d14a1e28 | 32145 | PyObject * obj0 = 0 ; |
994141e6 | 32146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32147 | PyObject * obj2 = 0 ; |
32148 | PyObject * obj3 = 0 ; | |
994141e6 | 32149 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32150 | PyObject * obj5 = 0 ; |
32151 | PyObject * obj6 = 0 ; | |
32152 | char *kwnames[] = { | |
32153 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32154 | }; | |
32155 | ||
248ed943 | 32156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
32157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 32159 | if (obj1) { |
093d3ff1 RD |
32160 | { |
32161 | arg2 = (int const)(SWIG_As_int(obj1)); | |
32162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32163 | } | |
248ed943 | 32164 | } |
d14a1e28 RD |
32165 | if (obj2) { |
32166 | { | |
32167 | arg3 = &temp3; | |
32168 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32169 | } | |
32170 | } | |
32171 | if (obj3) { | |
32172 | { | |
32173 | arg4 = &temp4; | |
32174 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32175 | } | |
32176 | } | |
994141e6 | 32177 | if (obj4) { |
093d3ff1 RD |
32178 | { |
32179 | arg5 = (long)(SWIG_As_long(obj4)); | |
32180 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32181 | } | |
994141e6 | 32182 | } |
d14a1e28 | 32183 | if (obj5) { |
093d3ff1 RD |
32184 | { |
32185 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
32186 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32187 | if (arg6 == NULL) { | |
32188 | SWIG_null_ref("wxValidator"); | |
32189 | } | |
32190 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
32191 | } |
32192 | } | |
32193 | if (obj6) { | |
32194 | { | |
32195 | arg7 = wxString_in_helper(obj6); | |
32196 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 32197 | temp7 = true; |
d14a1e28 RD |
32198 | } |
32199 | } | |
32200 | { | |
e3b71cb8 | 32201 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32203 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32204 | ||
32205 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32206 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32207 | } |
15afbcd0 | 32208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
32209 | { |
32210 | if (temp7) | |
32211 | delete arg7; | |
32212 | } | |
32213 | return resultobj; | |
32214 | fail: | |
32215 | { | |
32216 | if (temp7) | |
32217 | delete arg7; | |
32218 | } | |
32219 | return NULL; | |
32220 | } | |
32221 | ||
32222 | ||
c32bde28 | 32223 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
32224 | PyObject *resultobj; |
32225 | wxPyControl *result; | |
32226 | char *kwnames[] = { | |
32227 | NULL | |
32228 | }; | |
32229 | ||
32230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
32231 | { | |
e3b71cb8 | 32232 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
32233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32234 | result = (wxPyControl *)new wxPyControl(); | |
32235 | ||
32236 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32237 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
32238 | } |
32239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32240 | return resultobj; | |
32241 | fail: | |
32242 | return NULL; | |
32243 | } | |
32244 | ||
32245 | ||
c32bde28 | 32246 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32247 | PyObject *resultobj; |
32248 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32249 | PyObject *arg2 = (PyObject *) 0 ; | |
32250 | PyObject *arg3 = (PyObject *) 0 ; | |
32251 | PyObject * obj0 = 0 ; | |
32252 | PyObject * obj1 = 0 ; | |
32253 | PyObject * obj2 = 0 ; | |
32254 | char *kwnames[] = { | |
32255 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
32256 | }; | |
32257 | ||
32258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32259 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32260 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32261 | arg2 = obj1; |
32262 | arg3 = obj2; | |
32263 | { | |
32264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32265 | (arg1)->_setCallbackInfo(arg2,arg3); | |
32266 | ||
32267 | wxPyEndAllowThreads(__tstate); | |
32268 | if (PyErr_Occurred()) SWIG_fail; | |
32269 | } | |
32270 | Py_INCREF(Py_None); resultobj = Py_None; | |
32271 | return resultobj; | |
32272 | fail: | |
32273 | return NULL; | |
32274 | } | |
32275 | ||
32276 | ||
c32bde28 | 32277 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
32278 | PyObject *resultobj; |
32279 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32280 | wxSize *arg2 = 0 ; | |
32281 | wxSize temp2 ; | |
32282 | PyObject * obj0 = 0 ; | |
32283 | PyObject * obj1 = 0 ; | |
32284 | char *kwnames[] = { | |
32285 | (char *) "self",(char *) "size", NULL | |
32286 | }; | |
32287 | ||
32288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db3e571a RD |
32291 | { |
32292 | arg2 = &temp2; | |
32293 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
32294 | } | |
32295 | { | |
32296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32297 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
32298 | ||
32299 | wxPyEndAllowThreads(__tstate); | |
32300 | if (PyErr_Occurred()) SWIG_fail; | |
32301 | } | |
32302 | Py_INCREF(Py_None); resultobj = Py_None; | |
32303 | return resultobj; | |
32304 | fail: | |
32305 | return NULL; | |
32306 | } | |
32307 | ||
32308 | ||
c32bde28 | 32309 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32310 | PyObject *resultobj; |
32311 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32312 | int arg2 ; | |
32313 | int arg3 ; | |
32314 | int arg4 ; | |
32315 | int arg5 ; | |
32316 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32317 | PyObject * obj1 = 0 ; |
32318 | PyObject * obj2 = 0 ; | |
32319 | PyObject * obj3 = 0 ; | |
32320 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
32321 | char *kwnames[] = { |
32322 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
32323 | }; | |
32324 | ||
994141e6 | 32325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
32326 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32327 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32328 | { | |
32329 | arg2 = (int)(SWIG_As_int(obj1)); | |
32330 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32331 | } | |
32332 | { | |
32333 | arg3 = (int)(SWIG_As_int(obj2)); | |
32334 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32335 | } | |
32336 | { | |
32337 | arg4 = (int)(SWIG_As_int(obj3)); | |
32338 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32339 | } | |
32340 | { | |
32341 | arg5 = (int)(SWIG_As_int(obj4)); | |
32342 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32343 | } | |
d14a1e28 RD |
32344 | { |
32345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32346 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
32347 | ||
32348 | wxPyEndAllowThreads(__tstate); | |
32349 | if (PyErr_Occurred()) SWIG_fail; | |
32350 | } | |
32351 | Py_INCREF(Py_None); resultobj = Py_None; | |
32352 | return resultobj; | |
32353 | fail: | |
32354 | return NULL; | |
32355 | } | |
32356 | ||
32357 | ||
c32bde28 | 32358 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32359 | PyObject *resultobj; |
32360 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32361 | int arg2 ; | |
32362 | int arg3 ; | |
32363 | int arg4 ; | |
32364 | int arg5 ; | |
32365 | int arg6 = (int) wxSIZE_AUTO ; | |
32366 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32367 | PyObject * obj1 = 0 ; |
32368 | PyObject * obj2 = 0 ; | |
32369 | PyObject * obj3 = 0 ; | |
32370 | PyObject * obj4 = 0 ; | |
32371 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
32372 | char *kwnames[] = { |
32373 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
32374 | }; | |
32375 | ||
994141e6 | 32376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
32377 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32378 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32379 | { | |
32380 | arg2 = (int)(SWIG_As_int(obj1)); | |
32381 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32382 | } | |
32383 | { | |
32384 | arg3 = (int)(SWIG_As_int(obj2)); | |
32385 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32386 | } | |
32387 | { | |
32388 | arg4 = (int)(SWIG_As_int(obj3)); | |
32389 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32390 | } | |
32391 | { | |
32392 | arg5 = (int)(SWIG_As_int(obj4)); | |
32393 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32394 | } | |
994141e6 | 32395 | if (obj5) { |
093d3ff1 RD |
32396 | { |
32397 | arg6 = (int)(SWIG_As_int(obj5)); | |
32398 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32399 | } | |
994141e6 | 32400 | } |
d14a1e28 RD |
32401 | { |
32402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32403 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
32404 | ||
32405 | wxPyEndAllowThreads(__tstate); | |
32406 | if (PyErr_Occurred()) SWIG_fail; | |
32407 | } | |
32408 | Py_INCREF(Py_None); resultobj = Py_None; | |
32409 | return resultobj; | |
32410 | fail: | |
32411 | return NULL; | |
32412 | } | |
32413 | ||
32414 | ||
c32bde28 | 32415 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32416 | PyObject *resultobj; |
32417 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32418 | int arg2 ; | |
32419 | int arg3 ; | |
32420 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32421 | PyObject * obj1 = 0 ; |
32422 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32423 | char *kwnames[] = { |
32424 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32425 | }; | |
32426 | ||
994141e6 | 32427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32428 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32429 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32430 | { | |
32431 | arg2 = (int)(SWIG_As_int(obj1)); | |
32432 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32433 | } | |
32434 | { | |
32435 | arg3 = (int)(SWIG_As_int(obj2)); | |
32436 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32437 | } | |
d14a1e28 RD |
32438 | { |
32439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32440 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
32441 | ||
32442 | wxPyEndAllowThreads(__tstate); | |
32443 | if (PyErr_Occurred()) SWIG_fail; | |
32444 | } | |
32445 | Py_INCREF(Py_None); resultobj = Py_None; | |
32446 | return resultobj; | |
32447 | fail: | |
32448 | return NULL; | |
32449 | } | |
32450 | ||
32451 | ||
c32bde28 | 32452 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32453 | PyObject *resultobj; |
32454 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32455 | int arg2 ; | |
32456 | int arg3 ; | |
32457 | PyObject * obj0 = 0 ; | |
994141e6 RD |
32458 | PyObject * obj1 = 0 ; |
32459 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
32460 | char *kwnames[] = { |
32461 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32462 | }; | |
32463 | ||
994141e6 | 32464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
32465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32467 | { | |
32468 | arg2 = (int)(SWIG_As_int(obj1)); | |
32469 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32470 | } | |
32471 | { | |
32472 | arg3 = (int)(SWIG_As_int(obj2)); | |
32473 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32474 | } | |
d14a1e28 RD |
32475 | { |
32476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32477 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
32478 | ||
32479 | wxPyEndAllowThreads(__tstate); | |
32480 | if (PyErr_Occurred()) SWIG_fail; | |
32481 | } | |
32482 | Py_INCREF(Py_None); resultobj = Py_None; | |
32483 | return resultobj; | |
32484 | fail: | |
32485 | return NULL; | |
32486 | } | |
32487 | ||
32488 | ||
c32bde28 | 32489 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32490 | PyObject *resultobj; |
32491 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32492 | int *arg2 = (int *) 0 ; | |
32493 | int *arg3 = (int *) 0 ; | |
32494 | int temp2 ; | |
c32bde28 | 32495 | int res2 = 0 ; |
d14a1e28 | 32496 | int temp3 ; |
c32bde28 | 32497 | int res3 = 0 ; |
d14a1e28 RD |
32498 | PyObject * obj0 = 0 ; |
32499 | char *kwnames[] = { | |
32500 | (char *) "self", NULL | |
32501 | }; | |
32502 | ||
c32bde28 RD |
32503 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32504 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32508 | { |
32509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32510 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
32511 | ||
32512 | wxPyEndAllowThreads(__tstate); | |
32513 | if (PyErr_Occurred()) SWIG_fail; | |
32514 | } | |
32515 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32516 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32517 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32518 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32519 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32520 | return resultobj; |
32521 | fail: | |
32522 | return NULL; | |
32523 | } | |
32524 | ||
32525 | ||
c32bde28 | 32526 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32527 | PyObject *resultobj; |
32528 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32529 | int *arg2 = (int *) 0 ; | |
32530 | int *arg3 = (int *) 0 ; | |
32531 | int temp2 ; | |
c32bde28 | 32532 | int res2 = 0 ; |
d14a1e28 | 32533 | int temp3 ; |
c32bde28 | 32534 | int res3 = 0 ; |
d14a1e28 RD |
32535 | PyObject * obj0 = 0 ; |
32536 | char *kwnames[] = { | |
32537 | (char *) "self", NULL | |
32538 | }; | |
32539 | ||
c32bde28 RD |
32540 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32541 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32543 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32544 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32545 | { |
32546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32547 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
32548 | ||
32549 | wxPyEndAllowThreads(__tstate); | |
32550 | if (PyErr_Occurred()) SWIG_fail; | |
32551 | } | |
32552 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32553 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32554 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32555 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32556 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32557 | return resultobj; |
32558 | fail: | |
32559 | return NULL; | |
32560 | } | |
32561 | ||
32562 | ||
c32bde28 | 32563 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32564 | PyObject *resultobj; |
32565 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32566 | int *arg2 = (int *) 0 ; | |
32567 | int *arg3 = (int *) 0 ; | |
32568 | int temp2 ; | |
c32bde28 | 32569 | int res2 = 0 ; |
d14a1e28 | 32570 | int temp3 ; |
c32bde28 | 32571 | int res3 = 0 ; |
d14a1e28 RD |
32572 | PyObject * obj0 = 0 ; |
32573 | char *kwnames[] = { | |
32574 | (char *) "self", NULL | |
32575 | }; | |
32576 | ||
c32bde28 RD |
32577 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
32578 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 32579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
32580 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32581 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32582 | { |
32583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32584 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
32585 | ||
32586 | wxPyEndAllowThreads(__tstate); | |
32587 | if (PyErr_Occurred()) SWIG_fail; | |
32588 | } | |
32589 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
32590 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
32591 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32592 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32593 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32594 | return resultobj; |
32595 | fail: | |
32596 | return NULL; | |
32597 | } | |
32598 | ||
32599 | ||
c32bde28 | 32600 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32601 | PyObject *resultobj; |
32602 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32603 | wxSize result; | |
32604 | PyObject * obj0 = 0 ; | |
32605 | char *kwnames[] = { | |
32606 | (char *) "self", NULL | |
32607 | }; | |
32608 | ||
32609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32610 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32612 | { |
32613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32614 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
32615 | ||
32616 | wxPyEndAllowThreads(__tstate); | |
32617 | if (PyErr_Occurred()) SWIG_fail; | |
32618 | } | |
32619 | { | |
32620 | wxSize * resultptr; | |
093d3ff1 | 32621 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 32622 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32623 | } |
32624 | return resultobj; | |
32625 | fail: | |
32626 | return NULL; | |
32627 | } | |
32628 | ||
32629 | ||
c32bde28 | 32630 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32631 | PyObject *resultobj; |
32632 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32633 | wxSize result; | |
32634 | PyObject * obj0 = 0 ; | |
32635 | char *kwnames[] = { | |
32636 | (char *) "self", NULL | |
32637 | }; | |
32638 | ||
32639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32640 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32641 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32642 | { |
32643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32644 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
32645 | ||
32646 | wxPyEndAllowThreads(__tstate); | |
32647 | if (PyErr_Occurred()) SWIG_fail; | |
32648 | } | |
32649 | { | |
32650 | wxSize * resultptr; | |
093d3ff1 | 32651 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 32652 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32653 | } |
32654 | return resultobj; | |
32655 | fail: | |
32656 | return NULL; | |
32657 | } | |
32658 | ||
32659 | ||
c32bde28 | 32660 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32661 | PyObject *resultobj; |
32662 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32663 | PyObject * obj0 = 0 ; | |
32664 | char *kwnames[] = { | |
32665 | (char *) "self", NULL | |
32666 | }; | |
32667 | ||
32668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32671 | { |
32672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32673 | (arg1)->base_InitDialog(); | |
32674 | ||
32675 | wxPyEndAllowThreads(__tstate); | |
32676 | if (PyErr_Occurred()) SWIG_fail; | |
32677 | } | |
32678 | Py_INCREF(Py_None); resultobj = Py_None; | |
32679 | return resultobj; | |
32680 | fail: | |
32681 | return NULL; | |
32682 | } | |
32683 | ||
32684 | ||
c32bde28 | 32685 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32686 | PyObject *resultobj; |
32687 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32688 | bool result; | |
32689 | PyObject * obj0 = 0 ; | |
32690 | char *kwnames[] = { | |
32691 | (char *) "self", NULL | |
32692 | }; | |
32693 | ||
32694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32695 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32697 | { |
32698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32699 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
32700 | ||
32701 | wxPyEndAllowThreads(__tstate); | |
32702 | if (PyErr_Occurred()) SWIG_fail; | |
32703 | } | |
4f89f6a3 RD |
32704 | { |
32705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32706 | } | |
d14a1e28 RD |
32707 | return resultobj; |
32708 | fail: | |
32709 | return NULL; | |
32710 | } | |
32711 | ||
32712 | ||
c32bde28 | 32713 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32714 | PyObject *resultobj; |
32715 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32716 | bool result; | |
32717 | PyObject * obj0 = 0 ; | |
32718 | char *kwnames[] = { | |
32719 | (char *) "self", NULL | |
32720 | }; | |
32721 | ||
32722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32725 | { |
32726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32727 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
32728 | ||
32729 | wxPyEndAllowThreads(__tstate); | |
32730 | if (PyErr_Occurred()) SWIG_fail; | |
32731 | } | |
4f89f6a3 RD |
32732 | { |
32733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32734 | } | |
d14a1e28 RD |
32735 | return resultobj; |
32736 | fail: | |
32737 | return NULL; | |
32738 | } | |
32739 | ||
32740 | ||
c32bde28 | 32741 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32742 | PyObject *resultobj; |
32743 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32744 | bool result; | |
32745 | PyObject * obj0 = 0 ; | |
32746 | char *kwnames[] = { | |
32747 | (char *) "self", NULL | |
32748 | }; | |
32749 | ||
32750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32753 | { |
32754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32755 | result = (bool)(arg1)->base_Validate(); | |
32756 | ||
32757 | wxPyEndAllowThreads(__tstate); | |
32758 | if (PyErr_Occurred()) SWIG_fail; | |
32759 | } | |
4f89f6a3 RD |
32760 | { |
32761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32762 | } | |
d14a1e28 RD |
32763 | return resultobj; |
32764 | fail: | |
32765 | return NULL; | |
32766 | } | |
32767 | ||
32768 | ||
c32bde28 | 32769 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32770 | PyObject *resultobj; |
32771 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32772 | bool result; | |
32773 | PyObject * obj0 = 0 ; | |
32774 | char *kwnames[] = { | |
32775 | (char *) "self", NULL | |
32776 | }; | |
32777 | ||
32778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32781 | { |
32782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32783 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
32784 | ||
32785 | wxPyEndAllowThreads(__tstate); | |
32786 | if (PyErr_Occurred()) SWIG_fail; | |
32787 | } | |
4f89f6a3 RD |
32788 | { |
32789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32790 | } | |
d14a1e28 RD |
32791 | return resultobj; |
32792 | fail: | |
32793 | return NULL; | |
32794 | } | |
32795 | ||
32796 | ||
c32bde28 | 32797 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32798 | PyObject *resultobj; |
32799 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32800 | bool result; | |
32801 | PyObject * obj0 = 0 ; | |
32802 | char *kwnames[] = { | |
32803 | (char *) "self", NULL | |
32804 | }; | |
32805 | ||
32806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32809 | { |
32810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32811 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
32812 | ||
32813 | wxPyEndAllowThreads(__tstate); | |
32814 | if (PyErr_Occurred()) SWIG_fail; | |
32815 | } | |
4f89f6a3 RD |
32816 | { |
32817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32818 | } | |
d14a1e28 RD |
32819 | return resultobj; |
32820 | fail: | |
32821 | return NULL; | |
32822 | } | |
32823 | ||
32824 | ||
c32bde28 | 32825 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32826 | PyObject *resultobj; |
32827 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32828 | wxSize result; | |
32829 | PyObject * obj0 = 0 ; | |
32830 | char *kwnames[] = { | |
32831 | (char *) "self", NULL | |
32832 | }; | |
32833 | ||
32834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32837 | { |
32838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32839 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
32840 | ||
32841 | wxPyEndAllowThreads(__tstate); | |
32842 | if (PyErr_Occurred()) SWIG_fail; | |
32843 | } | |
32844 | { | |
32845 | wxSize * resultptr; | |
093d3ff1 | 32846 | resultptr = new wxSize((wxSize &)(result)); |
15afbcd0 | 32847 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
32848 | } |
32849 | return resultobj; | |
32850 | fail: | |
32851 | return NULL; | |
32852 | } | |
32853 | ||
32854 | ||
c32bde28 | 32855 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32856 | PyObject *resultobj; |
32857 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32858 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32859 | PyObject * obj0 = 0 ; | |
32860 | PyObject * obj1 = 0 ; | |
32861 | char *kwnames[] = { | |
32862 | (char *) "self",(char *) "child", NULL | |
32863 | }; | |
32864 | ||
32865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32868 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32869 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32870 | { |
32871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32872 | (arg1)->base_AddChild(arg2); | |
32873 | ||
32874 | wxPyEndAllowThreads(__tstate); | |
32875 | if (PyErr_Occurred()) SWIG_fail; | |
32876 | } | |
32877 | Py_INCREF(Py_None); resultobj = Py_None; | |
32878 | return resultobj; | |
32879 | fail: | |
32880 | return NULL; | |
32881 | } | |
32882 | ||
32883 | ||
c32bde28 | 32884 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32885 | PyObject *resultobj; |
32886 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32887 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32888 | PyObject * obj0 = 0 ; | |
32889 | PyObject * obj1 = 0 ; | |
32890 | char *kwnames[] = { | |
32891 | (char *) "self",(char *) "child", NULL | |
32892 | }; | |
32893 | ||
32894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32897 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32898 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32899 | { |
32900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32901 | (arg1)->base_RemoveChild(arg2); | |
32902 | ||
32903 | wxPyEndAllowThreads(__tstate); | |
32904 | if (PyErr_Occurred()) SWIG_fail; | |
32905 | } | |
32906 | Py_INCREF(Py_None); resultobj = Py_None; | |
32907 | return resultobj; | |
32908 | fail: | |
32909 | return NULL; | |
32910 | } | |
32911 | ||
32912 | ||
c32bde28 | 32913 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
1cb4a8aa RD |
32914 | PyObject *resultobj; |
32915 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32916 | bool result; | |
32917 | PyObject * obj0 = 0 ; | |
32918 | char *kwnames[] = { | |
32919 | (char *) "self", NULL | |
32920 | }; | |
32921 | ||
32922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1cb4a8aa RD |
32925 | { |
32926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 32927 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
32928 | |
32929 | wxPyEndAllowThreads(__tstate); | |
32930 | if (PyErr_Occurred()) SWIG_fail; | |
32931 | } | |
32932 | { | |
32933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32934 | } | |
32935 | return resultobj; | |
32936 | fail: | |
32937 | return NULL; | |
32938 | } | |
32939 | ||
32940 | ||
c32bde28 | 32941 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
db3e571a RD |
32942 | PyObject *resultobj; |
32943 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32944 | wxVisualAttributes result; | |
32945 | PyObject * obj0 = 0 ; | |
32946 | char *kwnames[] = { | |
32947 | (char *) "self", NULL | |
32948 | }; | |
32949 | ||
32950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32951 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
32952 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db3e571a RD |
32953 | { |
32954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32955 | result = (arg1)->base_GetDefaultAttributes(); | |
32956 | ||
32957 | wxPyEndAllowThreads(__tstate); | |
32958 | if (PyErr_Occurred()) SWIG_fail; | |
32959 | } | |
32960 | { | |
32961 | wxVisualAttributes * resultptr; | |
093d3ff1 | 32962 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); |
db3e571a RD |
32963 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
32964 | } | |
32965 | return resultobj; | |
32966 | fail: | |
32967 | return NULL; | |
32968 | } | |
32969 | ||
32970 | ||
c32bde28 | 32971 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32972 | PyObject *obj; |
32973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32974 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
32975 | Py_INCREF(obj); | |
32976 | return Py_BuildValue((char *)""); | |
32977 | } | |
c32bde28 | 32978 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
32979 | PyObject *resultobj; |
32980 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 32981 | int arg2 = (int) 0 ; |
d14a1e28 RD |
32982 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32983 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32984 | wxHelpEvent *result; | |
32985 | wxPoint temp3 ; | |
994141e6 RD |
32986 | PyObject * obj0 = 0 ; |
32987 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
32988 | PyObject * obj2 = 0 ; |
32989 | char *kwnames[] = { | |
32990 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
32991 | }; | |
32992 | ||
994141e6 RD |
32993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
32994 | if (obj0) { | |
093d3ff1 RD |
32995 | { |
32996 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
32997 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32998 | } | |
994141e6 RD |
32999 | } |
33000 | if (obj1) { | |
093d3ff1 RD |
33001 | { |
33002 | arg2 = (int)(SWIG_As_int(obj1)); | |
33003 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33004 | } | |
994141e6 | 33005 | } |
d14a1e28 RD |
33006 | if (obj2) { |
33007 | { | |
33008 | arg3 = &temp3; | |
33009 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33010 | } | |
33011 | } | |
33012 | { | |
33013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33014 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
33015 | ||
33016 | wxPyEndAllowThreads(__tstate); | |
33017 | if (PyErr_Occurred()) SWIG_fail; | |
33018 | } | |
15afbcd0 | 33019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
33020 | return resultobj; |
33021 | fail: | |
33022 | return NULL; | |
33023 | } | |
33024 | ||
33025 | ||
c32bde28 | 33026 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33027 | PyObject *resultobj; |
33028 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 33029 | wxPoint result; |
d14a1e28 RD |
33030 | PyObject * obj0 = 0 ; |
33031 | char *kwnames[] = { | |
33032 | (char *) "self", NULL | |
33033 | }; | |
33034 | ||
33035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33038 | { |
33039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 33040 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
33041 | |
33042 | wxPyEndAllowThreads(__tstate); | |
33043 | if (PyErr_Occurred()) SWIG_fail; | |
33044 | } | |
15afbcd0 RD |
33045 | { |
33046 | wxPoint * resultptr; | |
093d3ff1 | 33047 | resultptr = new wxPoint((wxPoint const &)(result)); |
15afbcd0 RD |
33048 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
33049 | } | |
d14a1e28 RD |
33050 | return resultobj; |
33051 | fail: | |
33052 | return NULL; | |
33053 | } | |
33054 | ||
33055 | ||
c32bde28 | 33056 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33057 | PyObject *resultobj; |
33058 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33059 | wxPoint *arg2 = 0 ; | |
33060 | wxPoint temp2 ; | |
33061 | PyObject * obj0 = 0 ; | |
33062 | PyObject * obj1 = 0 ; | |
33063 | char *kwnames[] = { | |
33064 | (char *) "self",(char *) "pos", NULL | |
33065 | }; | |
33066 | ||
33067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33070 | { |
33071 | arg2 = &temp2; | |
33072 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33073 | } | |
33074 | { | |
33075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33076 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
33077 | ||
33078 | wxPyEndAllowThreads(__tstate); | |
33079 | if (PyErr_Occurred()) SWIG_fail; | |
33080 | } | |
33081 | Py_INCREF(Py_None); resultobj = Py_None; | |
33082 | return resultobj; | |
33083 | fail: | |
33084 | return NULL; | |
33085 | } | |
33086 | ||
33087 | ||
c32bde28 | 33088 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33089 | PyObject *resultobj; |
33090 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33091 | wxString *result; | |
33092 | PyObject * obj0 = 0 ; | |
33093 | char *kwnames[] = { | |
33094 | (char *) "self", NULL | |
33095 | }; | |
33096 | ||
33097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33100 | { |
33101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33102 | { | |
33103 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
33104 | result = (wxString *) &_result_ref; | |
33105 | } | |
33106 | ||
33107 | wxPyEndAllowThreads(__tstate); | |
33108 | if (PyErr_Occurred()) SWIG_fail; | |
33109 | } | |
cc6dd355 RD |
33110 | { |
33111 | #if wxUSE_UNICODE | |
33112 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33113 | #else | |
33114 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33115 | #endif | |
33116 | } | |
d14a1e28 RD |
33117 | return resultobj; |
33118 | fail: | |
33119 | return NULL; | |
33120 | } | |
33121 | ||
33122 | ||
c32bde28 | 33123 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33124 | PyObject *resultobj; |
33125 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33126 | wxString *arg2 = 0 ; | |
ae8162c8 | 33127 | bool temp2 = false ; |
d14a1e28 RD |
33128 | PyObject * obj0 = 0 ; |
33129 | PyObject * obj1 = 0 ; | |
33130 | char *kwnames[] = { | |
33131 | (char *) "self",(char *) "link", NULL | |
33132 | }; | |
33133 | ||
33134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33137 | { |
33138 | arg2 = wxString_in_helper(obj1); | |
33139 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33140 | temp2 = true; |
d14a1e28 RD |
33141 | } |
33142 | { | |
33143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33144 | (arg1)->SetLink((wxString const &)*arg2); | |
33145 | ||
33146 | wxPyEndAllowThreads(__tstate); | |
33147 | if (PyErr_Occurred()) SWIG_fail; | |
33148 | } | |
33149 | Py_INCREF(Py_None); resultobj = Py_None; | |
33150 | { | |
33151 | if (temp2) | |
33152 | delete arg2; | |
33153 | } | |
33154 | return resultobj; | |
33155 | fail: | |
33156 | { | |
33157 | if (temp2) | |
33158 | delete arg2; | |
33159 | } | |
33160 | return NULL; | |
33161 | } | |
33162 | ||
33163 | ||
c32bde28 | 33164 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33165 | PyObject *resultobj; |
33166 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33167 | wxString *result; | |
33168 | PyObject * obj0 = 0 ; | |
33169 | char *kwnames[] = { | |
33170 | (char *) "self", NULL | |
33171 | }; | |
33172 | ||
33173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33176 | { |
33177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33178 | { | |
33179 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
33180 | result = (wxString *) &_result_ref; | |
33181 | } | |
33182 | ||
33183 | wxPyEndAllowThreads(__tstate); | |
33184 | if (PyErr_Occurred()) SWIG_fail; | |
33185 | } | |
cc6dd355 RD |
33186 | { |
33187 | #if wxUSE_UNICODE | |
33188 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33189 | #else | |
33190 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33191 | #endif | |
33192 | } | |
d14a1e28 RD |
33193 | return resultobj; |
33194 | fail: | |
33195 | return NULL; | |
33196 | } | |
33197 | ||
33198 | ||
c32bde28 | 33199 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33200 | PyObject *resultobj; |
33201 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33202 | wxString *arg2 = 0 ; | |
ae8162c8 | 33203 | bool temp2 = false ; |
d14a1e28 RD |
33204 | PyObject * obj0 = 0 ; |
33205 | PyObject * obj1 = 0 ; | |
33206 | char *kwnames[] = { | |
33207 | (char *) "self",(char *) "target", NULL | |
33208 | }; | |
33209 | ||
33210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
33212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33213 | { |
33214 | arg2 = wxString_in_helper(obj1); | |
33215 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33216 | temp2 = true; |
d14a1e28 RD |
33217 | } |
33218 | { | |
33219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33220 | (arg1)->SetTarget((wxString const &)*arg2); | |
33221 | ||
33222 | wxPyEndAllowThreads(__tstate); | |
33223 | if (PyErr_Occurred()) SWIG_fail; | |
33224 | } | |
33225 | Py_INCREF(Py_None); resultobj = Py_None; | |
33226 | { | |
33227 | if (temp2) | |
33228 | delete arg2; | |
33229 | } | |
33230 | return resultobj; | |
33231 | fail: | |
33232 | { | |
33233 | if (temp2) | |
33234 | delete arg2; | |
33235 | } | |
33236 | return NULL; | |
33237 | } | |
33238 | ||
33239 | ||
c32bde28 | 33240 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33241 | PyObject *obj; |
33242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33243 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
33244 | Py_INCREF(obj); | |
33245 | return Py_BuildValue((char *)""); | |
33246 | } | |
c32bde28 | 33247 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33248 | PyObject *resultobj; |
33249 | wxWindow *arg1 = (wxWindow *) NULL ; | |
ae8162c8 | 33250 | bool arg2 = (bool) true ; |
d14a1e28 RD |
33251 | wxContextHelp *result; |
33252 | PyObject * obj0 = 0 ; | |
33253 | PyObject * obj1 = 0 ; | |
33254 | char *kwnames[] = { | |
33255 | (char *) "window",(char *) "doNow", NULL | |
33256 | }; | |
33257 | ||
33258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
33259 | if (obj0) { | |
093d3ff1 RD |
33260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33262 | } |
33263 | if (obj1) { | |
093d3ff1 RD |
33264 | { |
33265 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
33266 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33267 | } | |
d14a1e28 RD |
33268 | } |
33269 | { | |
e3b71cb8 | 33270 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33272 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
33273 | ||
33274 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33275 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33276 | } |
15afbcd0 | 33277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
33278 | return resultobj; |
33279 | fail: | |
33280 | return NULL; | |
33281 | } | |
33282 | ||
33283 | ||
c32bde28 | 33284 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33285 | PyObject *resultobj; |
33286 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33287 | PyObject * obj0 = 0 ; | |
33288 | char *kwnames[] = { | |
33289 | (char *) "self", NULL | |
33290 | }; | |
33291 | ||
33292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33295 | { |
33296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33297 | delete arg1; | |
33298 | ||
33299 | wxPyEndAllowThreads(__tstate); | |
33300 | if (PyErr_Occurred()) SWIG_fail; | |
33301 | } | |
33302 | Py_INCREF(Py_None); resultobj = Py_None; | |
33303 | return resultobj; | |
33304 | fail: | |
33305 | return NULL; | |
33306 | } | |
33307 | ||
33308 | ||
c32bde28 | 33309 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33310 | PyObject *resultobj; |
33311 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33312 | wxWindow *arg2 = (wxWindow *) NULL ; | |
33313 | bool result; | |
33314 | PyObject * obj0 = 0 ; | |
33315 | PyObject * obj1 = 0 ; | |
33316 | char *kwnames[] = { | |
33317 | (char *) "self",(char *) "window", NULL | |
33318 | }; | |
33319 | ||
33320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 33323 | if (obj1) { |
093d3ff1 RD |
33324 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33325 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33326 | } |
33327 | { | |
33328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33329 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
33330 | ||
33331 | wxPyEndAllowThreads(__tstate); | |
33332 | if (PyErr_Occurred()) SWIG_fail; | |
33333 | } | |
4f89f6a3 RD |
33334 | { |
33335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33336 | } | |
d14a1e28 RD |
33337 | return resultobj; |
33338 | fail: | |
33339 | return NULL; | |
33340 | } | |
33341 | ||
33342 | ||
c32bde28 | 33343 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33344 | PyObject *resultobj; |
33345 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33346 | bool result; | |
33347 | PyObject * obj0 = 0 ; | |
33348 | char *kwnames[] = { | |
33349 | (char *) "self", NULL | |
33350 | }; | |
33351 | ||
33352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
33354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33355 | { |
33356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33357 | result = (bool)(arg1)->EndContextHelp(); | |
33358 | ||
33359 | wxPyEndAllowThreads(__tstate); | |
33360 | if (PyErr_Occurred()) SWIG_fail; | |
33361 | } | |
4f89f6a3 RD |
33362 | { |
33363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33364 | } | |
d14a1e28 RD |
33365 | return resultobj; |
33366 | fail: | |
33367 | return NULL; | |
33368 | } | |
33369 | ||
33370 | ||
c32bde28 | 33371 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33372 | PyObject *obj; |
33373 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33374 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
33375 | Py_INCREF(obj); | |
33376 | return Py_BuildValue((char *)""); | |
33377 | } | |
c32bde28 | 33378 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33379 | PyObject *resultobj; |
33380 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 33381 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
33382 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33383 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33384 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33385 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33386 | long arg5 = (long) wxBU_AUTODRAW ; | |
33387 | wxContextHelpButton *result; | |
33388 | wxPoint temp3 ; | |
33389 | wxSize temp4 ; | |
33390 | PyObject * obj0 = 0 ; | |
994141e6 | 33391 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33392 | PyObject * obj2 = 0 ; |
33393 | PyObject * obj3 = 0 ; | |
994141e6 | 33394 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
33395 | char *kwnames[] = { |
33396 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
33397 | }; | |
33398 | ||
994141e6 | 33399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 33402 | if (obj1) { |
093d3ff1 RD |
33403 | { |
33404 | arg2 = (int)(SWIG_As_int(obj1)); | |
33405 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33406 | } | |
994141e6 | 33407 | } |
d14a1e28 RD |
33408 | if (obj2) { |
33409 | { | |
33410 | arg3 = &temp3; | |
33411 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33412 | } | |
33413 | } | |
33414 | if (obj3) { | |
33415 | { | |
33416 | arg4 = &temp4; | |
33417 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33418 | } | |
33419 | } | |
994141e6 | 33420 | if (obj4) { |
093d3ff1 RD |
33421 | { |
33422 | arg5 = (long)(SWIG_As_long(obj4)); | |
33423 | if (SWIG_arg_fail(5)) SWIG_fail; | |
33424 | } | |
994141e6 | 33425 | } |
d14a1e28 | 33426 | { |
e3b71cb8 | 33427 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33429 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
33430 | ||
33431 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33432 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33433 | } |
15afbcd0 | 33434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
33435 | return resultobj; |
33436 | fail: | |
33437 | return NULL; | |
33438 | } | |
33439 | ||
33440 | ||
c32bde28 | 33441 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33442 | PyObject *obj; |
33443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33444 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
33445 | Py_INCREF(obj); | |
33446 | return Py_BuildValue((char *)""); | |
33447 | } | |
c32bde28 | 33448 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33449 | PyObject *resultobj; |
33450 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33451 | wxHelpProvider *result; | |
33452 | PyObject * obj0 = 0 ; | |
33453 | char *kwnames[] = { | |
33454 | (char *) "helpProvider", NULL | |
33455 | }; | |
33456 | ||
33457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33460 | { |
33461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33462 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
33463 | ||
33464 | wxPyEndAllowThreads(__tstate); | |
33465 | if (PyErr_Occurred()) SWIG_fail; | |
33466 | } | |
15afbcd0 | 33467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
33468 | return resultobj; |
33469 | fail: | |
33470 | return NULL; | |
33471 | } | |
33472 | ||
33473 | ||
c32bde28 | 33474 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33475 | PyObject *resultobj; |
33476 | wxHelpProvider *result; | |
33477 | char *kwnames[] = { | |
33478 | NULL | |
33479 | }; | |
33480 | ||
33481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
33482 | { | |
33483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33484 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
33485 | ||
33486 | wxPyEndAllowThreads(__tstate); | |
33487 | if (PyErr_Occurred()) SWIG_fail; | |
33488 | } | |
15afbcd0 | 33489 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
33490 | return resultobj; |
33491 | fail: | |
33492 | return NULL; | |
33493 | } | |
33494 | ||
33495 | ||
c32bde28 | 33496 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33497 | PyObject *resultobj; |
33498 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33499 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33500 | wxString result; | |
33501 | PyObject * obj0 = 0 ; | |
33502 | PyObject * obj1 = 0 ; | |
33503 | char *kwnames[] = { | |
33504 | (char *) "self",(char *) "window", NULL | |
33505 | }; | |
33506 | ||
33507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33510 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33511 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33512 | { |
33513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33514 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
33515 | ||
33516 | wxPyEndAllowThreads(__tstate); | |
33517 | if (PyErr_Occurred()) SWIG_fail; | |
33518 | } | |
33519 | { | |
33520 | #if wxUSE_UNICODE | |
33521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33522 | #else | |
33523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33524 | #endif | |
33525 | } | |
33526 | return resultobj; | |
33527 | fail: | |
33528 | return NULL; | |
33529 | } | |
33530 | ||
33531 | ||
c32bde28 | 33532 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33533 | PyObject *resultobj; |
33534 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33535 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33536 | bool result; | |
33537 | PyObject * obj0 = 0 ; | |
33538 | PyObject * obj1 = 0 ; | |
33539 | char *kwnames[] = { | |
33540 | (char *) "self",(char *) "window", NULL | |
33541 | }; | |
33542 | ||
33543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33546 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33547 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33548 | { |
33549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33550 | result = (bool)(arg1)->ShowHelp(arg2); | |
33551 | ||
33552 | wxPyEndAllowThreads(__tstate); | |
33553 | if (PyErr_Occurred()) SWIG_fail; | |
33554 | } | |
4f89f6a3 RD |
33555 | { |
33556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33557 | } | |
d14a1e28 RD |
33558 | return resultobj; |
33559 | fail: | |
33560 | return NULL; | |
33561 | } | |
33562 | ||
33563 | ||
c32bde28 | 33564 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33565 | PyObject *resultobj; |
33566 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33567 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33568 | wxString *arg3 = 0 ; | |
ae8162c8 | 33569 | bool temp3 = false ; |
d14a1e28 RD |
33570 | PyObject * obj0 = 0 ; |
33571 | PyObject * obj1 = 0 ; | |
33572 | PyObject * obj2 = 0 ; | |
33573 | char *kwnames[] = { | |
33574 | (char *) "self",(char *) "window",(char *) "text", NULL | |
33575 | }; | |
33576 | ||
33577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33580 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33581 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
33582 | { |
33583 | arg3 = wxString_in_helper(obj2); | |
33584 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33585 | temp3 = true; |
d14a1e28 RD |
33586 | } |
33587 | { | |
33588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33589 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33590 | ||
33591 | wxPyEndAllowThreads(__tstate); | |
33592 | if (PyErr_Occurred()) SWIG_fail; | |
33593 | } | |
33594 | Py_INCREF(Py_None); resultobj = Py_None; | |
33595 | { | |
33596 | if (temp3) | |
33597 | delete arg3; | |
33598 | } | |
33599 | return resultobj; | |
33600 | fail: | |
33601 | { | |
33602 | if (temp3) | |
33603 | delete arg3; | |
33604 | } | |
33605 | return NULL; | |
33606 | } | |
33607 | ||
33608 | ||
c32bde28 | 33609 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33610 | PyObject *resultobj; |
33611 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 33612 | int arg2 ; |
d14a1e28 | 33613 | wxString *arg3 = 0 ; |
ae8162c8 | 33614 | bool temp3 = false ; |
d14a1e28 | 33615 | PyObject * obj0 = 0 ; |
994141e6 | 33616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33617 | PyObject * obj2 = 0 ; |
33618 | char *kwnames[] = { | |
33619 | (char *) "self",(char *) "id",(char *) "text", NULL | |
33620 | }; | |
33621 | ||
994141e6 | 33622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
33623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33625 | { | |
33626 | arg2 = (int)(SWIG_As_int(obj1)); | |
33627 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33628 | } | |
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_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
15afbcd0 RD |
33657 | PyObject *resultobj; |
33658 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33659 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33660 | PyObject * obj0 = 0 ; | |
33661 | PyObject * obj1 = 0 ; | |
33662 | char *kwnames[] = { | |
33663 | (char *) "self",(char *) "window", NULL | |
33664 | }; | |
33665 | ||
33666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33669 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33670 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15afbcd0 RD |
33671 | { |
33672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33673 | (arg1)->RemoveHelp(arg2); | |
33674 | ||
33675 | wxPyEndAllowThreads(__tstate); | |
33676 | if (PyErr_Occurred()) SWIG_fail; | |
33677 | } | |
33678 | Py_INCREF(Py_None); resultobj = Py_None; | |
33679 | return resultobj; | |
33680 | fail: | |
33681 | return NULL; | |
33682 | } | |
33683 | ||
33684 | ||
c32bde28 | 33685 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33686 | PyObject *resultobj; |
33687 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33688 | PyObject * obj0 = 0 ; | |
33689 | char *kwnames[] = { | |
33690 | (char *) "self", NULL | |
33691 | }; | |
33692 | ||
33693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33694 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
33695 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33696 | { |
33697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33698 | wxHelpProvider_Destroy(arg1); | |
33699 | ||
33700 | wxPyEndAllowThreads(__tstate); | |
33701 | if (PyErr_Occurred()) SWIG_fail; | |
33702 | } | |
33703 | Py_INCREF(Py_None); resultobj = Py_None; | |
33704 | return resultobj; | |
33705 | fail: | |
33706 | return NULL; | |
33707 | } | |
33708 | ||
33709 | ||
c32bde28 | 33710 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33711 | PyObject *obj; |
33712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33713 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
33714 | Py_INCREF(obj); | |
33715 | return Py_BuildValue((char *)""); | |
33716 | } | |
c32bde28 | 33717 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
33718 | PyObject *resultobj; |
33719 | wxSimpleHelpProvider *result; | |
33720 | char *kwnames[] = { | |
33721 | NULL | |
33722 | }; | |
33723 | ||
33724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
33725 | { | |
33726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33727 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
33728 | ||
33729 | wxPyEndAllowThreads(__tstate); | |
33730 | if (PyErr_Occurred()) SWIG_fail; | |
33731 | } | |
15afbcd0 | 33732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
33733 | return resultobj; |
33734 | fail: | |
33735 | return NULL; | |
33736 | } | |
33737 | ||
33738 | ||
c32bde28 | 33739 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33740 | PyObject *obj; |
33741 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33742 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
33743 | Py_INCREF(obj); | |
33744 | return Py_BuildValue((char *)""); | |
33745 | } | |
c32bde28 | 33746 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33747 | PyObject *resultobj; |
33748 | wxBitmap *arg1 = 0 ; | |
33749 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33750 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33751 | wxGenericDragImage *result; | |
33752 | PyObject * obj0 = 0 ; | |
33753 | PyObject * obj1 = 0 ; | |
33754 | char *kwnames[] = { | |
33755 | (char *) "image",(char *) "cursor", NULL | |
33756 | }; | |
33757 | ||
33758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33759 | { |
33760 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
33761 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33762 | if (arg1 == NULL) { | |
33763 | SWIG_null_ref("wxBitmap"); | |
33764 | } | |
33765 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
33766 | } |
33767 | if (obj1) { | |
093d3ff1 RD |
33768 | { |
33769 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33770 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33771 | if (arg2 == NULL) { | |
33772 | SWIG_null_ref("wxCursor"); | |
33773 | } | |
33774 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33775 | } |
33776 | } | |
33777 | { | |
e3b71cb8 | 33778 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33780 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
33781 | ||
33782 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33783 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33784 | } |
15afbcd0 | 33785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33786 | return resultobj; |
33787 | fail: | |
33788 | return NULL; | |
33789 | } | |
33790 | ||
33791 | ||
c32bde28 | 33792 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33793 | PyObject *resultobj; |
33794 | wxIcon *arg1 = 0 ; | |
33795 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33796 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33797 | wxGenericDragImage *result; | |
33798 | PyObject * obj0 = 0 ; | |
33799 | PyObject * obj1 = 0 ; | |
33800 | char *kwnames[] = { | |
33801 | (char *) "image",(char *) "cursor", NULL | |
33802 | }; | |
33803 | ||
33804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33805 | { |
33806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
33807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33808 | if (arg1 == NULL) { | |
33809 | SWIG_null_ref("wxIcon"); | |
33810 | } | |
33811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
33812 | } |
33813 | if (obj1) { | |
093d3ff1 RD |
33814 | { |
33815 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33816 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33817 | if (arg2 == NULL) { | |
33818 | SWIG_null_ref("wxCursor"); | |
33819 | } | |
33820 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33821 | } |
33822 | } | |
33823 | { | |
e3b71cb8 | 33824 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33826 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
33827 | ||
33828 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33829 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33830 | } |
15afbcd0 | 33831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33832 | return resultobj; |
33833 | fail: | |
33834 | return NULL; | |
33835 | } | |
33836 | ||
33837 | ||
c32bde28 | 33838 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33839 | PyObject *resultobj; |
33840 | wxString *arg1 = 0 ; | |
33841 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33842 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33843 | wxGenericDragImage *result; | |
ae8162c8 | 33844 | bool temp1 = false ; |
e811c8ce RD |
33845 | PyObject * obj0 = 0 ; |
33846 | PyObject * obj1 = 0 ; | |
33847 | char *kwnames[] = { | |
33848 | (char *) "str",(char *) "cursor", NULL | |
33849 | }; | |
33850 | ||
33851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
33852 | { | |
33853 | arg1 = wxString_in_helper(obj0); | |
33854 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 33855 | temp1 = true; |
e811c8ce RD |
33856 | } |
33857 | if (obj1) { | |
093d3ff1 RD |
33858 | { |
33859 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33860 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33861 | if (arg2 == NULL) { | |
33862 | SWIG_null_ref("wxCursor"); | |
33863 | } | |
33864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33865 | } |
33866 | } | |
33867 | { | |
e3b71cb8 | 33868 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33870 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
33871 | ||
33872 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33873 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33874 | } |
15afbcd0 | 33875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33876 | { |
33877 | if (temp1) | |
33878 | delete arg1; | |
33879 | } | |
33880 | return resultobj; | |
33881 | fail: | |
33882 | { | |
33883 | if (temp1) | |
33884 | delete arg1; | |
33885 | } | |
33886 | return NULL; | |
33887 | } | |
33888 | ||
33889 | ||
c32bde28 | 33890 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33891 | PyObject *resultobj; |
33892 | wxPyTreeCtrl *arg1 = 0 ; | |
33893 | wxTreeItemId *arg2 = 0 ; | |
33894 | wxGenericDragImage *result; | |
33895 | PyObject * obj0 = 0 ; | |
33896 | PyObject * obj1 = 0 ; | |
33897 | char *kwnames[] = { | |
33898 | (char *) "treeCtrl",(char *) "id", NULL | |
33899 | }; | |
33900 | ||
33901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33902 | { |
33903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33905 | if (arg1 == NULL) { | |
33906 | SWIG_null_ref("wxPyTreeCtrl"); | |
33907 | } | |
33908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 33909 | } |
093d3ff1 RD |
33910 | { |
33911 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
33912 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33913 | if (arg2 == NULL) { | |
33914 | SWIG_null_ref("wxTreeItemId"); | |
33915 | } | |
33916 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
33917 | } |
33918 | { | |
e3b71cb8 | 33919 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33921 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
33922 | ||
33923 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33924 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33925 | } |
15afbcd0 | 33926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33927 | return resultobj; |
33928 | fail: | |
33929 | return NULL; | |
33930 | } | |
33931 | ||
33932 | ||
c32bde28 | 33933 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33934 | PyObject *resultobj; |
33935 | wxPyListCtrl *arg1 = 0 ; | |
33936 | long arg2 ; | |
33937 | wxGenericDragImage *result; | |
33938 | PyObject * obj0 = 0 ; | |
994141e6 | 33939 | PyObject * obj1 = 0 ; |
e811c8ce RD |
33940 | char *kwnames[] = { |
33941 | (char *) "listCtrl",(char *) "id", NULL | |
33942 | }; | |
33943 | ||
994141e6 | 33944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
33945 | { |
33946 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33947 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33948 | if (arg1 == NULL) { | |
33949 | SWIG_null_ref("wxPyListCtrl"); | |
33950 | } | |
33951 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33952 | } | |
33953 | { | |
33954 | arg2 = (long)(SWIG_As_long(obj1)); | |
33955 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 33956 | } |
e811c8ce | 33957 | { |
e3b71cb8 | 33958 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
33959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33960 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
33961 | ||
33962 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33963 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 33964 | } |
15afbcd0 | 33965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
33966 | return resultobj; |
33967 | fail: | |
33968 | return NULL; | |
33969 | } | |
33970 | ||
33971 | ||
c32bde28 | 33972 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33973 | PyObject *resultobj; |
33974 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
33975 | PyObject * obj0 = 0 ; | |
33976 | char *kwnames[] = { | |
33977 | (char *) "self", NULL | |
33978 | }; | |
33979 | ||
33980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33981 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
33982 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
33983 | { |
33984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33985 | delete arg1; | |
33986 | ||
33987 | wxPyEndAllowThreads(__tstate); | |
33988 | if (PyErr_Occurred()) SWIG_fail; | |
33989 | } | |
33990 | Py_INCREF(Py_None); resultobj = Py_None; | |
33991 | return resultobj; | |
33992 | fail: | |
33993 | return NULL; | |
33994 | } | |
33995 | ||
33996 | ||
c32bde28 | 33997 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
33998 | PyObject *resultobj; |
33999 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34000 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34001 | PyObject * obj0 = 0 ; | |
34002 | PyObject * obj1 = 0 ; | |
34003 | char *kwnames[] = { | |
34004 | (char *) "self",(char *) "bitmap", NULL | |
34005 | }; | |
34006 | ||
34007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34010 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
34011 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
34012 | { |
34013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34014 | (arg1)->SetBackingBitmap(arg2); | |
34015 | ||
34016 | wxPyEndAllowThreads(__tstate); | |
34017 | if (PyErr_Occurred()) SWIG_fail; | |
34018 | } | |
34019 | Py_INCREF(Py_None); resultobj = Py_None; | |
34020 | return resultobj; | |
34021 | fail: | |
34022 | return NULL; | |
34023 | } | |
34024 | ||
34025 | ||
c32bde28 | 34026 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34027 | PyObject *resultobj; |
34028 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34029 | wxPoint *arg2 = 0 ; | |
34030 | wxWindow *arg3 = (wxWindow *) 0 ; | |
ae8162c8 | 34031 | bool arg4 = (bool) false ; |
e811c8ce RD |
34032 | wxRect *arg5 = (wxRect *) NULL ; |
34033 | bool result; | |
34034 | wxPoint temp2 ; | |
34035 | PyObject * obj0 = 0 ; | |
34036 | PyObject * obj1 = 0 ; | |
34037 | PyObject * obj2 = 0 ; | |
34038 | PyObject * obj3 = 0 ; | |
34039 | PyObject * obj4 = 0 ; | |
34040 | char *kwnames[] = { | |
34041 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
34042 | }; | |
34043 | ||
34044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34047 | { |
34048 | arg2 = &temp2; | |
34049 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34050 | } | |
093d3ff1 RD |
34051 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34052 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e811c8ce | 34053 | if (obj3) { |
093d3ff1 RD |
34054 | { |
34055 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
34056 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34057 | } | |
e811c8ce RD |
34058 | } |
34059 | if (obj4) { | |
093d3ff1 RD |
34060 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
34061 | if (SWIG_arg_fail(5)) SWIG_fail; | |
e811c8ce RD |
34062 | } |
34063 | { | |
34064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34065 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
34066 | ||
34067 | wxPyEndAllowThreads(__tstate); | |
34068 | if (PyErr_Occurred()) SWIG_fail; | |
34069 | } | |
4f89f6a3 RD |
34070 | { |
34071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34072 | } | |
e811c8ce RD |
34073 | return resultobj; |
34074 | fail: | |
34075 | return NULL; | |
34076 | } | |
34077 | ||
34078 | ||
c32bde28 | 34079 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34080 | PyObject *resultobj; |
34081 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34082 | wxPoint *arg2 = 0 ; | |
34083 | wxWindow *arg3 = (wxWindow *) 0 ; | |
34084 | wxWindow *arg4 = (wxWindow *) 0 ; | |
34085 | bool result; | |
34086 | wxPoint temp2 ; | |
34087 | PyObject * obj0 = 0 ; | |
34088 | PyObject * obj1 = 0 ; | |
34089 | PyObject * obj2 = 0 ; | |
34090 | PyObject * obj3 = 0 ; | |
34091 | char *kwnames[] = { | |
34092 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
34093 | }; | |
34094 | ||
34095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
34096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34098 | { |
34099 | arg2 = &temp2; | |
34100 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34101 | } | |
093d3ff1 RD |
34102 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34103 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34104 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34105 | if (SWIG_arg_fail(4)) SWIG_fail; | |
e811c8ce RD |
34106 | { |
34107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34108 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
34109 | ||
34110 | wxPyEndAllowThreads(__tstate); | |
34111 | if (PyErr_Occurred()) SWIG_fail; | |
34112 | } | |
4f89f6a3 RD |
34113 | { |
34114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34115 | } | |
e811c8ce RD |
34116 | return resultobj; |
34117 | fail: | |
34118 | return NULL; | |
34119 | } | |
34120 | ||
34121 | ||
c32bde28 | 34122 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34123 | PyObject *resultobj; |
34124 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34125 | bool result; | |
34126 | PyObject * obj0 = 0 ; | |
34127 | char *kwnames[] = { | |
34128 | (char *) "self", NULL | |
34129 | }; | |
34130 | ||
34131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34132 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34133 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34134 | { |
34135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34136 | result = (bool)(arg1)->EndDrag(); | |
34137 | ||
34138 | wxPyEndAllowThreads(__tstate); | |
34139 | if (PyErr_Occurred()) SWIG_fail; | |
34140 | } | |
4f89f6a3 RD |
34141 | { |
34142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34143 | } | |
e811c8ce RD |
34144 | return resultobj; |
34145 | fail: | |
34146 | return NULL; | |
34147 | } | |
34148 | ||
34149 | ||
c32bde28 | 34150 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34151 | PyObject *resultobj; |
34152 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34153 | wxPoint *arg2 = 0 ; | |
34154 | bool result; | |
34155 | wxPoint temp2 ; | |
34156 | PyObject * obj0 = 0 ; | |
34157 | PyObject * obj1 = 0 ; | |
34158 | char *kwnames[] = { | |
34159 | (char *) "self",(char *) "pt", NULL | |
34160 | }; | |
34161 | ||
34162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34163 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34164 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34165 | { |
34166 | arg2 = &temp2; | |
34167 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34168 | } | |
34169 | { | |
34170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34171 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
34172 | ||
34173 | wxPyEndAllowThreads(__tstate); | |
34174 | if (PyErr_Occurred()) SWIG_fail; | |
34175 | } | |
4f89f6a3 RD |
34176 | { |
34177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34178 | } | |
e811c8ce RD |
34179 | return resultobj; |
34180 | fail: | |
34181 | return NULL; | |
34182 | } | |
34183 | ||
34184 | ||
c32bde28 | 34185 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34186 | PyObject *resultobj; |
34187 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34188 | bool result; | |
34189 | PyObject * obj0 = 0 ; | |
34190 | char *kwnames[] = { | |
34191 | (char *) "self", NULL | |
34192 | }; | |
34193 | ||
34194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34195 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34196 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34197 | { |
34198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34199 | result = (bool)(arg1)->Show(); | |
34200 | ||
34201 | wxPyEndAllowThreads(__tstate); | |
34202 | if (PyErr_Occurred()) SWIG_fail; | |
34203 | } | |
4f89f6a3 RD |
34204 | { |
34205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34206 | } | |
e811c8ce RD |
34207 | return resultobj; |
34208 | fail: | |
34209 | return NULL; | |
34210 | } | |
34211 | ||
34212 | ||
c32bde28 | 34213 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34214 | PyObject *resultobj; |
34215 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34216 | bool result; | |
34217 | PyObject * obj0 = 0 ; | |
34218 | char *kwnames[] = { | |
34219 | (char *) "self", NULL | |
34220 | }; | |
34221 | ||
34222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34225 | { |
34226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34227 | result = (bool)(arg1)->Hide(); | |
34228 | ||
34229 | wxPyEndAllowThreads(__tstate); | |
34230 | if (PyErr_Occurred()) SWIG_fail; | |
34231 | } | |
4f89f6a3 RD |
34232 | { |
34233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34234 | } | |
e811c8ce RD |
34235 | return resultobj; |
34236 | fail: | |
34237 | return NULL; | |
34238 | } | |
34239 | ||
34240 | ||
c32bde28 | 34241 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34242 | PyObject *resultobj; |
34243 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34244 | wxPoint *arg2 = 0 ; | |
34245 | wxRect result; | |
34246 | wxPoint temp2 ; | |
34247 | PyObject * obj0 = 0 ; | |
34248 | PyObject * obj1 = 0 ; | |
34249 | char *kwnames[] = { | |
34250 | (char *) "self",(char *) "pos", NULL | |
34251 | }; | |
34252 | ||
34253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34256 | { |
34257 | arg2 = &temp2; | |
34258 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34259 | } | |
34260 | { | |
34261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34262 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
34263 | ||
34264 | wxPyEndAllowThreads(__tstate); | |
34265 | if (PyErr_Occurred()) SWIG_fail; | |
34266 | } | |
34267 | { | |
34268 | wxRect * resultptr; | |
093d3ff1 | 34269 | resultptr = new wxRect((wxRect &)(result)); |
15afbcd0 | 34270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
34271 | } |
34272 | return resultobj; | |
34273 | fail: | |
34274 | return NULL; | |
34275 | } | |
34276 | ||
34277 | ||
c32bde28 | 34278 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34279 | PyObject *resultobj; |
34280 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34281 | wxDC *arg2 = 0 ; | |
34282 | wxPoint *arg3 = 0 ; | |
34283 | bool result; | |
34284 | wxPoint temp3 ; | |
34285 | PyObject * obj0 = 0 ; | |
34286 | PyObject * obj1 = 0 ; | |
34287 | PyObject * obj2 = 0 ; | |
34288 | char *kwnames[] = { | |
34289 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
34290 | }; | |
34291 | ||
34292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34295 | { | |
34296 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34297 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34298 | if (arg2 == NULL) { | |
34299 | SWIG_null_ref("wxDC"); | |
34300 | } | |
34301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
34302 | } |
34303 | { | |
34304 | arg3 = &temp3; | |
34305 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34306 | } | |
34307 | { | |
34308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34309 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
34310 | ||
34311 | wxPyEndAllowThreads(__tstate); | |
34312 | if (PyErr_Occurred()) SWIG_fail; | |
34313 | } | |
4f89f6a3 RD |
34314 | { |
34315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34316 | } | |
e811c8ce RD |
34317 | return resultobj; |
34318 | fail: | |
34319 | return NULL; | |
34320 | } | |
34321 | ||
34322 | ||
c32bde28 | 34323 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34324 | PyObject *resultobj; |
34325 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34326 | wxDC *arg2 = 0 ; | |
34327 | wxMemoryDC *arg3 = 0 ; | |
34328 | wxRect *arg4 = 0 ; | |
34329 | wxRect *arg5 = 0 ; | |
34330 | bool result; | |
34331 | wxRect temp4 ; | |
34332 | wxRect temp5 ; | |
34333 | PyObject * obj0 = 0 ; | |
34334 | PyObject * obj1 = 0 ; | |
34335 | PyObject * obj2 = 0 ; | |
34336 | PyObject * obj3 = 0 ; | |
34337 | PyObject * obj4 = 0 ; | |
34338 | char *kwnames[] = { | |
34339 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
34340 | }; | |
34341 | ||
34342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34345 | { | |
34346 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34347 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34348 | if (arg2 == NULL) { | |
34349 | SWIG_null_ref("wxDC"); | |
34350 | } | |
34351 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34352 | } | |
34353 | { | |
34354 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
34355 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34356 | if (arg3 == NULL) { | |
34357 | SWIG_null_ref("wxMemoryDC"); | |
34358 | } | |
34359 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e811c8ce RD |
34360 | } |
34361 | { | |
34362 | arg4 = &temp4; | |
34363 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34364 | } | |
34365 | { | |
34366 | arg5 = &temp5; | |
34367 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
34368 | } | |
34369 | { | |
34370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34371 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
34372 | ||
34373 | wxPyEndAllowThreads(__tstate); | |
34374 | if (PyErr_Occurred()) SWIG_fail; | |
34375 | } | |
4f89f6a3 RD |
34376 | { |
34377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34378 | } | |
e811c8ce RD |
34379 | return resultobj; |
34380 | fail: | |
34381 | return NULL; | |
34382 | } | |
34383 | ||
34384 | ||
c32bde28 | 34385 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
e811c8ce RD |
34386 | PyObject *resultobj; |
34387 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34388 | wxPoint *arg2 = 0 ; | |
34389 | wxPoint *arg3 = 0 ; | |
34390 | bool arg4 ; | |
34391 | bool arg5 ; | |
34392 | bool result; | |
34393 | wxPoint temp2 ; | |
34394 | wxPoint temp3 ; | |
34395 | PyObject * obj0 = 0 ; | |
34396 | PyObject * obj1 = 0 ; | |
34397 | PyObject * obj2 = 0 ; | |
34398 | PyObject * obj3 = 0 ; | |
34399 | PyObject * obj4 = 0 ; | |
34400 | char *kwnames[] = { | |
34401 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
34402 | }; | |
34403 | ||
34404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
34405 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
34406 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
34407 | { |
34408 | arg2 = &temp2; | |
34409 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34410 | } | |
34411 | { | |
34412 | arg3 = &temp3; | |
34413 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34414 | } | |
093d3ff1 RD |
34415 | { |
34416 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
34417 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34418 | } | |
34419 | { | |
34420 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
34421 | if (SWIG_arg_fail(5)) SWIG_fail; | |
34422 | } | |
e811c8ce RD |
34423 | { |
34424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34425 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
34426 | ||
34427 | wxPyEndAllowThreads(__tstate); | |
34428 | if (PyErr_Occurred()) SWIG_fail; | |
34429 | } | |
4f89f6a3 RD |
34430 | { |
34431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34432 | } | |
e811c8ce RD |
34433 | return resultobj; |
34434 | fail: | |
34435 | return NULL; | |
34436 | } | |
34437 | ||
34438 | ||
c32bde28 | 34439 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
e811c8ce RD |
34440 | PyObject *obj; |
34441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34442 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
34443 | Py_INCREF(obj); | |
34444 | return Py_BuildValue((char *)""); | |
34445 | } | |
53aa7709 RD |
34446 | static int _wrap_DatePickerCtrlNameStr_set(PyObject *) { |
34447 | PyErr_SetString(PyExc_TypeError,"Variable DatePickerCtrlNameStr is read-only."); | |
34448 | return 1; | |
34449 | } | |
34450 | ||
34451 | ||
34452 | static PyObject *_wrap_DatePickerCtrlNameStr_get(void) { | |
34453 | PyObject *pyobj; | |
34454 | ||
34455 | { | |
34456 | #if wxUSE_UNICODE | |
34457 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34458 | #else | |
34459 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34460 | #endif | |
34461 | } | |
34462 | return pyobj; | |
34463 | } | |
34464 | ||
34465 | ||
34466 | static PyObject *_wrap_new_DatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
34467 | PyObject *resultobj; | |
34468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
34469 | int arg2 = (int) -1 ; | |
34470 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
34471 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
34472 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
34473 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34474 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34475 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34476 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34477 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34478 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34479 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
34480 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34481 | wxDatePickerCtrl *result; | |
34482 | wxPoint temp4 ; | |
34483 | wxSize temp5 ; | |
34484 | bool temp8 = false ; | |
34485 | PyObject * obj0 = 0 ; | |
34486 | PyObject * obj1 = 0 ; | |
34487 | PyObject * obj2 = 0 ; | |
34488 | PyObject * obj3 = 0 ; | |
34489 | PyObject * obj4 = 0 ; | |
34490 | PyObject * obj5 = 0 ; | |
34491 | PyObject * obj6 = 0 ; | |
34492 | PyObject * obj7 = 0 ; | |
34493 | char *kwnames[] = { | |
34494 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34495 | }; | |
34496 | ||
34497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
34498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34500 | if (obj1) { | |
34501 | { | |
34502 | arg2 = (int)(SWIG_As_int(obj1)); | |
34503 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34504 | } | |
34505 | } | |
34506 | if (obj2) { | |
34507 | { | |
34508 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34509 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34510 | if (arg3 == NULL) { | |
34511 | SWIG_null_ref("wxDateTime"); | |
34512 | } | |
34513 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34514 | } | |
34515 | } | |
34516 | if (obj3) { | |
34517 | { | |
34518 | arg4 = &temp4; | |
34519 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34520 | } | |
34521 | } | |
34522 | if (obj4) { | |
34523 | { | |
34524 | arg5 = &temp5; | |
34525 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34526 | } | |
34527 | } | |
34528 | if (obj5) { | |
34529 | { | |
34530 | arg6 = (long)(SWIG_As_long(obj5)); | |
34531 | if (SWIG_arg_fail(6)) SWIG_fail; | |
34532 | } | |
34533 | } | |
34534 | if (obj6) { | |
34535 | { | |
34536 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34537 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34538 | if (arg7 == NULL) { | |
34539 | SWIG_null_ref("wxValidator"); | |
34540 | } | |
34541 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34542 | } | |
34543 | } | |
34544 | if (obj7) { | |
34545 | { | |
34546 | arg8 = wxString_in_helper(obj7); | |
34547 | if (arg8 == NULL) SWIG_fail; | |
34548 | temp8 = true; | |
34549 | } | |
34550 | } | |
34551 | { | |
34552 | if (!wxPyCheckForApp()) SWIG_fail; | |
34553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34554 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34555 | ||
34556 | wxPyEndAllowThreads(__tstate); | |
34557 | if (PyErr_Occurred()) SWIG_fail; | |
34558 | } | |
34559 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34560 | { | |
34561 | if (temp8) | |
34562 | delete arg8; | |
34563 | } | |
34564 | return resultobj; | |
34565 | fail: | |
34566 | { | |
34567 | if (temp8) | |
34568 | delete arg8; | |
34569 | } | |
34570 | return NULL; | |
34571 | } | |
34572 | ||
34573 | ||
34574 | static PyObject *_wrap_new_PreDatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
34575 | PyObject *resultobj; | |
34576 | wxDatePickerCtrl *result; | |
34577 | char *kwnames[] = { | |
34578 | NULL | |
34579 | }; | |
34580 | ||
34581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDatePickerCtrl",kwnames)) goto fail; | |
34582 | { | |
34583 | if (!wxPyCheckForApp()) SWIG_fail; | |
34584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34585 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
34586 | ||
34587 | wxPyEndAllowThreads(__tstate); | |
34588 | if (PyErr_Occurred()) SWIG_fail; | |
34589 | } | |
34590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34591 | return resultobj; | |
34592 | fail: | |
34593 | return NULL; | |
34594 | } | |
34595 | ||
34596 | ||
34597 | static PyObject *_wrap_DatePickerCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
34598 | PyObject *resultobj; | |
34599 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34601 | int arg3 = (int) -1 ; | |
34602 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
34603 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
34604 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
34605 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
34606 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
34607 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
34608 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34609 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
34610 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
34611 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
34612 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
34613 | bool result; | |
34614 | wxPoint temp5 ; | |
34615 | wxSize temp6 ; | |
34616 | bool temp9 = false ; | |
34617 | PyObject * obj0 = 0 ; | |
34618 | PyObject * obj1 = 0 ; | |
34619 | PyObject * obj2 = 0 ; | |
34620 | PyObject * obj3 = 0 ; | |
34621 | PyObject * obj4 = 0 ; | |
34622 | PyObject * obj5 = 0 ; | |
34623 | PyObject * obj6 = 0 ; | |
34624 | PyObject * obj7 = 0 ; | |
34625 | PyObject * obj8 = 0 ; | |
34626 | char *kwnames[] = { | |
34627 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34628 | }; | |
34629 | ||
34630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
34631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34633 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34634 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34635 | if (obj2) { | |
34636 | { | |
34637 | arg3 = (int)(SWIG_As_int(obj2)); | |
34638 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34639 | } | |
34640 | } | |
34641 | if (obj3) { | |
34642 | { | |
34643 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34644 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34645 | if (arg4 == NULL) { | |
34646 | SWIG_null_ref("wxDateTime"); | |
34647 | } | |
34648 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34649 | } | |
34650 | } | |
34651 | if (obj4) { | |
34652 | { | |
34653 | arg5 = &temp5; | |
34654 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
34655 | } | |
34656 | } | |
34657 | if (obj5) { | |
34658 | { | |
34659 | arg6 = &temp6; | |
34660 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
34661 | } | |
34662 | } | |
34663 | if (obj6) { | |
34664 | { | |
34665 | arg7 = (long)(SWIG_As_long(obj6)); | |
34666 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34667 | } | |
34668 | } | |
34669 | if (obj7) { | |
34670 | { | |
34671 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34672 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34673 | if (arg8 == NULL) { | |
34674 | SWIG_null_ref("wxValidator"); | |
34675 | } | |
34676 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34677 | } | |
34678 | } | |
34679 | if (obj8) { | |
34680 | { | |
34681 | arg9 = wxString_in_helper(obj8); | |
34682 | if (arg9 == NULL) SWIG_fail; | |
34683 | temp9 = true; | |
34684 | } | |
34685 | } | |
34686 | { | |
34687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34688 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
34689 | ||
34690 | wxPyEndAllowThreads(__tstate); | |
34691 | if (PyErr_Occurred()) SWIG_fail; | |
34692 | } | |
34693 | { | |
34694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34695 | } | |
34696 | { | |
34697 | if (temp9) | |
34698 | delete arg9; | |
34699 | } | |
34700 | return resultobj; | |
34701 | fail: | |
34702 | { | |
34703 | if (temp9) | |
34704 | delete arg9; | |
34705 | } | |
34706 | return NULL; | |
34707 | } | |
34708 | ||
34709 | ||
34710 | static PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
34711 | PyObject *resultobj; | |
34712 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34713 | wxDateTime *arg2 = 0 ; | |
34714 | PyObject * obj0 = 0 ; | |
34715 | PyObject * obj1 = 0 ; | |
34716 | char *kwnames[] = { | |
34717 | (char *) "self",(char *) "dt", NULL | |
34718 | }; | |
34719 | ||
34720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
34721 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34722 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34723 | { | |
34724 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34725 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34726 | if (arg2 == NULL) { | |
34727 | SWIG_null_ref("wxDateTime"); | |
34728 | } | |
34729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34730 | } | |
34731 | { | |
34732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34733 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
34734 | ||
34735 | wxPyEndAllowThreads(__tstate); | |
34736 | if (PyErr_Occurred()) SWIG_fail; | |
34737 | } | |
34738 | Py_INCREF(Py_None); resultobj = Py_None; | |
34739 | return resultobj; | |
34740 | fail: | |
34741 | return NULL; | |
34742 | } | |
34743 | ||
34744 | ||
34745 | static PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
34746 | PyObject *resultobj; | |
34747 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34748 | wxDateTime result; | |
34749 | PyObject * obj0 = 0 ; | |
34750 | char *kwnames[] = { | |
34751 | (char *) "self", NULL | |
34752 | }; | |
34753 | ||
34754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetValue",kwnames,&obj0)) goto fail; | |
34755 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34756 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34757 | { | |
34758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34759 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
34760 | ||
34761 | wxPyEndAllowThreads(__tstate); | |
34762 | if (PyErr_Occurred()) SWIG_fail; | |
34763 | } | |
34764 | { | |
34765 | wxDateTime * resultptr; | |
34766 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34768 | } | |
34769 | return resultobj; | |
34770 | fail: | |
34771 | return NULL; | |
34772 | } | |
34773 | ||
34774 | ||
34775 | static PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
34776 | PyObject *resultobj; | |
34777 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34778 | wxDateTime *arg2 = 0 ; | |
34779 | wxDateTime *arg3 = 0 ; | |
34780 | PyObject * obj0 = 0 ; | |
34781 | PyObject * obj1 = 0 ; | |
34782 | PyObject * obj2 = 0 ; | |
34783 | char *kwnames[] = { | |
34784 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
34785 | }; | |
34786 | ||
34787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34790 | { | |
34791 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34792 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34793 | if (arg2 == NULL) { | |
34794 | SWIG_null_ref("wxDateTime"); | |
34795 | } | |
34796 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34797 | } | |
34798 | { | |
34799 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34800 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34801 | if (arg3 == NULL) { | |
34802 | SWIG_null_ref("wxDateTime"); | |
34803 | } | |
34804 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34805 | } | |
34806 | { | |
34807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34808 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
34809 | ||
34810 | wxPyEndAllowThreads(__tstate); | |
34811 | if (PyErr_Occurred()) SWIG_fail; | |
34812 | } | |
34813 | Py_INCREF(Py_None); resultobj = Py_None; | |
34814 | return resultobj; | |
34815 | fail: | |
34816 | return NULL; | |
34817 | } | |
34818 | ||
34819 | ||
34820 | static PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
34821 | PyObject *resultobj; | |
34822 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34823 | wxDateTime result; | |
34824 | PyObject * obj0 = 0 ; | |
34825 | char *kwnames[] = { | |
34826 | (char *) "self", NULL | |
34827 | }; | |
34828 | ||
34829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetLowerLimit",kwnames,&obj0)) goto fail; | |
34830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34832 | { | |
34833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34834 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
34835 | ||
34836 | wxPyEndAllowThreads(__tstate); | |
34837 | if (PyErr_Occurred()) SWIG_fail; | |
34838 | } | |
34839 | { | |
34840 | wxDateTime * resultptr; | |
34841 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34842 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34843 | } | |
34844 | return resultobj; | |
34845 | fail: | |
34846 | return NULL; | |
34847 | } | |
34848 | ||
34849 | ||
34850 | static PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
34851 | PyObject *resultobj; | |
34852 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34853 | wxDateTime result; | |
34854 | PyObject * obj0 = 0 ; | |
34855 | char *kwnames[] = { | |
34856 | (char *) "self", NULL | |
34857 | }; | |
34858 | ||
34859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetUpperLimit",kwnames,&obj0)) goto fail; | |
34860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34862 | { | |
34863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34864 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
34865 | ||
34866 | wxPyEndAllowThreads(__tstate); | |
34867 | if (PyErr_Occurred()) SWIG_fail; | |
34868 | } | |
34869 | { | |
34870 | wxDateTime * resultptr; | |
34871 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34873 | } | |
34874 | return resultobj; | |
34875 | fail: | |
34876 | return NULL; | |
34877 | } | |
34878 | ||
34879 | ||
34880 | static PyObject * DatePickerCtrl_swigregister(PyObject *, PyObject *args) { | |
34881 | PyObject *obj; | |
34882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34883 | SWIG_TypeClientData(SWIGTYPE_p_wxDatePickerCtrl, obj); | |
34884 | Py_INCREF(obj); | |
34885 | return Py_BuildValue((char *)""); | |
34886 | } | |
e811c8ce | 34887 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
34888 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, |
34889 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34890 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34891 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34892 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34893 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34894 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
34895 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34896 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34897 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34898 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34899 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34900 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34901 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34902 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34903 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34904 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34905 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34906 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34907 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34908 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34909 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
34910 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34911 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34912 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34913 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34914 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34915 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34916 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34917 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34918 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34919 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34920 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34921 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
34922 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34923 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34924 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
34925 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
34926 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
34927 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34928 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34929 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34930 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34931 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34932 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34933 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34934 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34935 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34936 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34937 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34938 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34939 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34940 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b9d6a5f3 | 34941 | { (char *)"ComboBox_GetMark", (PyCFunction) _wrap_ComboBox_GetMark, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
34942 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
34943 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34944 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34945 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34946 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34947 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34948 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34949 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34950 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34951 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34952 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34953 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34954 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34955 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34956 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34957 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
34958 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34959 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34960 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34961 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34962 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34963 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34964 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34965 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34966 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34967 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34968 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34969 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34970 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34971 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
34972 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34973 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34974 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34975 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34976 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
34977 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34978 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34979 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34980 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34981 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34982 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34983 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
34984 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34985 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34986 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34987 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34988 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
34989 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34990 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34991 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34992 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34993 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34994 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34995 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34996 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
34997 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34998 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34999 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35000 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35001 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35002 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35003 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35004 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35005 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35006 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35007 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35008 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35009 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35010 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35011 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35012 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35013 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35014 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35015 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35016 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35017 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35018 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35019 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
35020 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35021 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35022 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35023 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35024 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35025 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35026 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35027 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35028 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
35029 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35030 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35031 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35032 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35033 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35034 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35035 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35036 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35037 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35038 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35039 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35040 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35041 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35042 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35043 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35044 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35045 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35046 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35047 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35048 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35049 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35050 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35051 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35052 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35053 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35054 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35055 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35056 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35057 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35058 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35059 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
35060 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35061 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35062 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35063 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35064 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35065 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35066 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35067 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35068 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35069 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35070 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35071 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35072 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35073 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35074 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35075 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35076 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35077 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35078 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35079 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35080 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35081 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35082 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35083 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35084 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35085 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35086 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35087 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35088 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35089 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35090 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35091 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35092 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35093 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35094 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35095 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35096 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35097 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35098 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35099 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35100 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35101 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35102 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35103 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35104 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35105 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35106 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35107 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35108 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35109 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35110 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35111 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35112 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35113 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35114 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35115 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
35116 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35117 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35118 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35119 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35120 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
35121 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35122 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35123 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35124 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35125 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35126 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35127 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35128 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35129 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35130 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35131 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35132 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
35133 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35134 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35135 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35136 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35137 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35138 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35139 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35140 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35141 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35142 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35143 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35144 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35145 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
35146 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35147 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35148 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35149 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35150 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35151 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35152 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35153 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35154 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35155 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35156 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35157 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
35158 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35159 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35160 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35161 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
35162 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35163 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35164 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35165 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35166 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35167 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35168 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35169 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35170 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35171 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35172 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35173 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35174 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35175 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35176 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35177 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35178 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35179 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
35180 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35181 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35182 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35183 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35184 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35185 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35186 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
35187 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35188 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35189 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35190 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35191 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35192 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35193 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35194 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35195 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35196 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35197 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35198 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35199 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35200 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35201 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35202 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35203 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35204 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35205 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35206 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35207 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35208 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35209 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35210 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35211 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35212 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
35213 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35214 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35215 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35216 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35217 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35218 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35219 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35220 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
35221 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35222 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35223 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35224 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35225 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35226 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35227 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35228 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35229 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35230 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35231 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35232 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35233 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35234 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35235 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35236 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35237 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35238 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35239 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35240 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35241 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35242 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
35243 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35244 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35245 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35246 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35247 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35248 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
35249 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35250 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35251 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35252 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35253 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35254 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35255 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35256 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8e738329 | 35257 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction) _wrap_Notebook_GetThemeBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35258 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35259 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
35260 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35261 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
35262 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35263 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35264 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35265 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35266 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35267 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
35268 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35269 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
35270 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35271 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35272 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35273 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70b7a5fe | 35274 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction) _wrap_Choicebook_GetChoiceCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35275 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, |
35276 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
35277 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35278 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
35279 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35280 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35281 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35282 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35283 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL}, | |
35284 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35285 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35286 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35287 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35288 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL}, | |
35289 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35290 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35291 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35292 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35293 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35294 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35295 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35296 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35297 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35298 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35299 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35300 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35301 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35302 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35303 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35304 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35305 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35306 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35307 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35308 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35309 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35310 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35311 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35312 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35313 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35314 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35315 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35316 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35317 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35318 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
35319 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35320 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35321 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35322 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35323 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35324 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35325 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35326 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35327 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35328 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35329 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35330 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35331 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35332 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35333 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35334 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35335 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35336 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35337 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35338 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35339 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35340 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35341 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35342 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35343 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35344 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35345 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35346 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35347 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35348 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35349 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35350 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35351 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35352 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35353 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35354 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35355 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35356 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35357 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35358 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35359 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35360 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35361 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35362 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35363 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
35364 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35365 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35366 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35367 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35368 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35369 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
35370 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35371 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35372 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35373 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35374 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35375 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35376 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35377 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35378 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35379 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35380 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35381 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
35382 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35383 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35384 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35385 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35386 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35387 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35388 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35389 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35390 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35391 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35392 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35393 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35394 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35395 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35396 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35397 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35398 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35399 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35400 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35401 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35402 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35403 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35404 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35405 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35406 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35407 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35408 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35409 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35410 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35411 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35412 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35413 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35414 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35415 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35416 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35417 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35418 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35419 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35420 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35421 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35422 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35423 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35424 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35425 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35426 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35427 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35428 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35429 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35430 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35431 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35432 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35433 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
35434 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35435 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35436 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35437 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35438 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35439 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35440 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35441 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35442 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35443 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35444 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35445 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35446 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35447 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35448 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35449 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35450 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35451 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35452 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35453 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35454 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35455 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35456 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35457 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35458 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35459 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35460 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
35461 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35462 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35463 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35464 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35465 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35466 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35467 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35468 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35469 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35470 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35471 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35472 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35473 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35474 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35475 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35476 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35477 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35478 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35479 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35480 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35481 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35482 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35483 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35484 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35485 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35486 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35487 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35488 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35489 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35490 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35491 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35492 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35493 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35494 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35495 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35496 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35497 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35498 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35499 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35500 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35501 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35502 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35503 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35504 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35505 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35506 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35507 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35508 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35509 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35510 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35511 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35512 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35513 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35514 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35515 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35516 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35517 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35518 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35519 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
a3957d3d | 35520 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35521 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, |
35522 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35523 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35524 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35525 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35526 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35527 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35528 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35529 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35530 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35531 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
35532 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35533 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35534 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35535 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35536 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35537 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35538 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35539 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35540 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35541 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35542 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35543 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
35544 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35545 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35546 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35547 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35548 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35549 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35550 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35551 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
35552 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35553 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35554 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35555 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35556 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35557 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35558 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
35559 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35560 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35561 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35562 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35563 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35564 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35565 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35566 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35567 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35568 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35569 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35570 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35571 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35572 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35573 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
562ecc31 | 35574 | { (char *)"TreeEvent_GetToolTip", (PyCFunction) _wrap_TreeEvent_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35575 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, |
35576 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35577 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35578 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35579 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35580 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35581 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35582 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35583 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35584 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35585 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35586 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35587 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35588 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35589 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35590 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35591 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35592 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35593 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35594 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35595 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35596 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35597 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35598 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35599 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35600 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35601 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35602 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35603 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fef4c27a | 35604 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
35605 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
35606 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35607 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35608 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35609 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35610 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35611 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35612 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35613 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35614 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35615 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35616 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35617 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35618 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35619 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35620 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35621 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35622 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35623 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35624 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35625 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35626 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35627 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35628 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35629 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35630 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35631 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35632 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35633 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35634 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35635 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35636 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35637 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35638 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35639 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35640 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35641 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35642 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35643 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35644 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35645 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35646 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35647 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35648 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35649 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35650 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35651 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
35652 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35653 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35654 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35655 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35656 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35657 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35658 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35659 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35660 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35661 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35662 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35663 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35664 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35665 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35666 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35667 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35668 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35669 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35670 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35671 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35672 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35673 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
35674 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35675 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35676 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35677 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35678 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
35679 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35680 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35681 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35682 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35683 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35684 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35685 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35686 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35687 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35688 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35689 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35690 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35691 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35692 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35693 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35694 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35695 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35696 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35697 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35698 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35699 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35700 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35701 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
35702 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
35703 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
35704 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35705 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35706 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35707 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35708 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35709 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35710 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35711 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
35712 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35713 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35714 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35715 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35716 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
35717 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35718 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
35719 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35720 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35721 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35722 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35723 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35724 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35725 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35726 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35727 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
35728 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35729 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
35730 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35731 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35732 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35733 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35734 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35735 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35736 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35737 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35738 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35739 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35740 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35741 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35742 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35743 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35744 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35745 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35746 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35747 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
53aa7709 RD |
35748 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
35749 | { (char *)"new_PreDatePickerCtrl", (PyCFunction) _wrap_new_PreDatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35750 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35751 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35752 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction) _wrap_DatePickerCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35753 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35754 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction) _wrap_DatePickerCtrl_GetLowerLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35755 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction) _wrap_DatePickerCtrl_GetUpperLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35756 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 35757 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
35758 | }; |
35759 | ||
35760 | ||
35761 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
35762 | ||
d14a1e28 RD |
35763 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { |
35764 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
35765 | } | |
35766 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
35767 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
35768 | } | |
e505d15e RD |
35769 | static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) { |
35770 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
35771 | } | |
d14a1e28 RD |
35772 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { |
35773 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
35774 | } | |
35775 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
35776 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
35777 | } | |
35778 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
35779 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
35780 | } | |
35781 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
35782 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
35783 | } | |
35784 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
35785 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
35786 | } | |
35787 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
35788 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
35789 | } | |
35790 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
35791 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
35792 | } | |
35793 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
35794 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
35795 | } | |
35796 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
35797 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
35798 | } | |
35799 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
35800 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
35801 | } | |
35802 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
35803 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
35804 | } | |
8ac8dba0 RD |
35805 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { |
35806 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35807 | } | |
d14a1e28 RD |
35808 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { |
35809 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35810 | } | |
35811 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
35812 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
35813 | } | |
35814 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
35815 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
35816 | } | |
35817 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
35818 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
35819 | } | |
35820 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
35821 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
35822 | } | |
d14a1e28 RD |
35823 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
35824 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
35825 | } | |
35826 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
35827 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
35828 | } | |
35829 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
35830 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
35831 | } | |
35832 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 35833 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
35834 | } |
35835 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 35836 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 35837 | } |
2ef75293 | 35838 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
8ac8dba0 | 35839 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 35840 | } |
d14a1e28 RD |
35841 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
35842 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
35843 | } | |
35844 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
35845 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
35846 | } | |
35847 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
35848 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
35849 | } | |
35850 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
35851 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
35852 | } | |
35853 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
35854 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
35855 | } | |
35856 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
35857 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
35858 | } | |
35859 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
35860 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
35861 | } | |
35862 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
35863 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
35864 | } | |
35865 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
35866 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
35867 | } | |
53aa7709 RD |
35868 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
35869 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
35870 | } | |
d14a1e28 RD |
35871 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
35872 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
35873 | } | |
35874 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
35875 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
35876 | } | |
35877 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
35878 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
35879 | } | |
35880 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
35881 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
35882 | } | |
35883 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
35884 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
35885 | } | |
35886 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
35887 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
35888 | } | |
35889 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
35890 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
35891 | } | |
35892 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
35893 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
35894 | } | |
35895 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
35896 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
35897 | } | |
35898 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
35899 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
35900 | } | |
35901 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
35902 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
35903 | } | |
35904 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
35905 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
35906 | } | |
35907 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
35908 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
35909 | } | |
35910 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
35911 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
35912 | } | |
35913 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
35914 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
35915 | } | |
35916 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
35917 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
35918 | } | |
35919 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
35920 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
35921 | } | |
d1e20054 RD |
35922 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
35923 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
35924 | } | |
d14a1e28 RD |
35925 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
35926 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
35927 | } | |
35928 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
35929 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35930 | } | |
35931 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
35932 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
35933 | } | |
35934 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
35935 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
35936 | } | |
35937 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
35938 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
35939 | } | |
35940 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
35941 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
35942 | } | |
35943 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
35944 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
35945 | } | |
8ac8dba0 RD |
35946 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
35947 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
d14a1e28 RD |
35948 | } |
35949 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
35950 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
35951 | } | |
2ef75293 RD |
35952 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
35953 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d14a1e28 | 35954 | } |
2ef75293 RD |
35955 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
35956 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d14a1e28 | 35957 | } |
2ef75293 RD |
35958 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
35959 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
d14a1e28 | 35960 | } |
2ef75293 RD |
35961 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
35962 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
35963 | } | |
35964 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
35965 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d14a1e28 RD |
35966 | } |
35967 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
35968 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
35969 | } | |
2ef75293 RD |
35970 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
35971 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
d14a1e28 | 35972 | } |
2ef75293 RD |
35973 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
35974 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d14a1e28 RD |
35975 | } |
35976 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
35977 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
35978 | } | |
2ef75293 RD |
35979 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
35980 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d14a1e28 RD |
35981 | } |
35982 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
35983 | return (void *)((wxControl *) ((wxGauge *) x)); | |
35984 | } | |
2ef75293 RD |
35985 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
35986 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d14a1e28 | 35987 | } |
2ef75293 | 35988 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
8ac8dba0 | 35989 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); |
d14a1e28 | 35990 | } |
2ef75293 | 35991 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
8ac8dba0 | 35992 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 | 35993 | } |
2ef75293 RD |
35994 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
35995 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d14a1e28 | 35996 | } |
2ef75293 RD |
35997 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
35998 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d14a1e28 RD |
35999 | } |
36000 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
36001 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
36002 | } | |
2ef75293 RD |
36003 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
36004 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
36005 | } | |
36006 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
36007 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
36008 | } | |
36009 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
36010 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36011 | } | |
36012 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
36013 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
36014 | } | |
d14a1e28 | 36015 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
8ac8dba0 | 36016 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 | 36017 | } |
2ef75293 RD |
36018 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
36019 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d14a1e28 | 36020 | } |
2ef75293 RD |
36021 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
36022 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d14a1e28 | 36023 | } |
2ef75293 RD |
36024 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
36025 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d14a1e28 | 36026 | } |
2ef75293 RD |
36027 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
36028 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d14a1e28 RD |
36029 | } |
36030 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
36031 | return (void *)((wxControl *) ((wxSlider *) x)); | |
36032 | } | |
2ef75293 RD |
36033 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
36034 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
d14a1e28 | 36035 | } |
2ef75293 RD |
36036 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
36037 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d14a1e28 | 36038 | } |
2ef75293 RD |
36039 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
36040 | return (void *)((wxControl *) ((wxButton *) x)); | |
d14a1e28 | 36041 | } |
2ef75293 RD |
36042 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
36043 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
36044 | } | |
53aa7709 RD |
36045 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { |
36046 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
36047 | } | |
2ef75293 RD |
36048 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
36049 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d14a1e28 RD |
36050 | } |
36051 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
36052 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
36053 | } | |
36054 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
36055 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36056 | } | |
8ac8dba0 RD |
36057 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
36058 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36059 | } | |
d14a1e28 RD |
36060 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { |
36061 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36062 | } | |
d14a1e28 RD |
36063 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { |
36064 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
36065 | } | |
d1e20054 RD |
36066 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
36067 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36068 | } | |
d14a1e28 | 36069 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 | 36070 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
36071 | } |
36072 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 36073 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 36074 | } |
2ef75293 | 36075 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 RD |
36076 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
36077 | } | |
36078 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
36079 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
36080 | } | |
36081 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
36082 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
2ef75293 | 36083 | } |
8ac8dba0 RD |
36084 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { |
36085 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
d14a1e28 RD |
36086 | } |
36087 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
36088 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
36089 | } | |
8ac8dba0 RD |
36090 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { |
36091 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36092 | } | |
d14a1e28 RD |
36093 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
36094 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
36095 | } | |
36096 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
36097 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
36098 | } | |
36099 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
36100 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36101 | } | |
36102 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
36103 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
36104 | } | |
36105 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
36106 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36107 | } | |
36108 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
36109 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36110 | } | |
36111 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
36112 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
36113 | } | |
36114 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
36115 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
36116 | } | |
36117 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
36118 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36119 | } | |
d14a1e28 RD |
36120 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
36121 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
36122 | } | |
2ef75293 RD |
36123 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
36124 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36125 | } | |
d14a1e28 RD |
36126 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
36127 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36128 | } | |
36129 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
36130 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36131 | } | |
36132 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
36133 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
36134 | } | |
36135 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
36136 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36137 | } | |
36138 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
36139 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36140 | } | |
36141 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
36142 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36143 | } | |
36144 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
36145 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36146 | } | |
36147 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
36148 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36149 | } | |
2ef75293 | 36150 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 36151 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 36152 | } |
d14a1e28 | 36153 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 36154 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
36155 | } |
36156 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
36157 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36158 | } | |
36159 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
36160 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36161 | } | |
36162 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
36163 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36164 | } | |
36165 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
36166 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36167 | } | |
36168 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
36169 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36170 | } | |
36171 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
36172 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36173 | } | |
36174 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
8ac8dba0 | 36175 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
36176 | } |
36177 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
36178 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36179 | } | |
36180 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
36181 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36182 | } | |
36183 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
36184 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36185 | } | |
36186 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
36187 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36188 | } | |
36189 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
36190 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36191 | } | |
36192 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
36193 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36194 | } | |
36195 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
36196 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36197 | } | |
36198 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
36199 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
36200 | } | |
36201 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
36202 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36203 | } | |
36204 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
36205 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36206 | } | |
53aa7709 RD |
36207 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { |
36208 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36209 | } | |
d14a1e28 RD |
36210 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
36211 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36212 | } | |
36213 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
36214 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
36215 | } | |
d14a1e28 RD |
36216 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { |
36217 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
36218 | } | |
36219 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
36220 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36221 | } | |
36222 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
36223 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36224 | } | |
36225 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
36226 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
36227 | } | |
36228 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
36229 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
36230 | } | |
36231 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
36232 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
36233 | } | |
36234 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
36235 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
36236 | } | |
36237 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
36238 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
36239 | } | |
36240 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
36241 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
36242 | } | |
36243 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
36244 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36245 | } | |
d14a1e28 RD |
36246 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
36247 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36248 | } | |
36249 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
36250 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
36251 | } | |
36252 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
36253 | return (void *)((wxObject *) ((wxSizer *) x)); | |
36254 | } | |
36255 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
36256 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36257 | } | |
36258 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
36259 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36260 | } | |
36261 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
36262 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36263 | } | |
36264 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
36265 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36266 | } | |
36267 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
36268 | return (void *)((wxObject *) ((wxEvent *) x)); | |
36269 | } | |
36270 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
36271 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36272 | } | |
36273 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
36274 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
36275 | } | |
36276 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
36277 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
36278 | } | |
36279 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
36280 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36281 | } | |
36282 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
36283 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36284 | } | |
36285 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
36286 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36287 | } | |
36288 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
36289 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
36290 | } | |
36291 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
36292 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
36293 | } | |
36294 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
36295 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36296 | } | |
36297 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
36298 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36299 | } | |
36300 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
36301 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36302 | } | |
36303 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
36304 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36305 | } | |
36306 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
36307 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36308 | } | |
36309 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
36310 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
36311 | } | |
36312 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
36313 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36314 | } | |
36315 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
36316 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36317 | } | |
36318 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
36319 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36320 | } | |
36321 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
36322 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36323 | } | |
36324 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
36325 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36326 | } | |
36327 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
36328 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
36329 | } | |
36330 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
36331 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36332 | } | |
36333 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
36334 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
36335 | } | |
36336 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
36337 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
36338 | } | |
36339 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
36340 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36341 | } | |
36342 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
36343 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36344 | } | |
36345 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
8ac8dba0 | 36346 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
36347 | } |
36348 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
36349 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
36350 | } | |
36351 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
36352 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36353 | } | |
2ef75293 | 36354 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
8ac8dba0 | 36355 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 36356 | } |
d14a1e28 | 36357 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
8ac8dba0 | 36358 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
36359 | } |
36360 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
36361 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
36362 | } | |
36363 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
36364 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36365 | } | |
36366 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
36367 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36368 | } | |
36369 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
36370 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
36371 | } | |
53aa7709 RD |
36372 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
36373 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
36374 | } | |
d14a1e28 RD |
36375 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
36376 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
36377 | } | |
36378 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
36379 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36380 | } | |
36381 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
36382 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36383 | } | |
36384 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
36385 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
36386 | } | |
36387 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
36388 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
36389 | } | |
36390 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
36391 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
36392 | } | |
36393 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
36394 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
36395 | } | |
36396 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
36397 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
36398 | } | |
36399 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
36400 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36401 | } | |
36402 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
36403 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
36404 | } | |
8ac8dba0 RD |
36405 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
36406 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36407 | } | |
d14a1e28 RD |
36408 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
36409 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
36410 | } | |
36411 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
36412 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
36413 | } | |
36414 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
36415 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
36416 | } | |
36417 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
36418 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
36419 | } | |
36420 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
36421 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
36422 | } | |
36423 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
36424 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
36425 | } | |
36426 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
36427 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36428 | } | |
36429 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
36430 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36431 | } | |
36432 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
36433 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
36434 | } | |
36435 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
36436 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
36437 | } | |
36438 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
36439 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
36440 | } | |
36441 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
36442 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
36443 | } | |
36444 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
36445 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
36446 | } | |
36447 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
36448 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
36449 | } | |
36450 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
36451 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36452 | } | |
36453 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
36454 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36455 | } | |
d14a1e28 RD |
36456 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
36457 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
36458 | } | |
1e0c8722 RD |
36459 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
36460 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36461 | } | |
d14a1e28 RD |
36462 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
36463 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36464 | } | |
36465 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
36466 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36467 | } | |
e505d15e RD |
36468 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
36469 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
36470 | } | |
1e0c8722 RD |
36471 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
36472 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
36473 | } | |
d14a1e28 RD |
36474 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
36475 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36476 | } | |
36477 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
36478 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36479 | } | |
36480 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
36481 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
36482 | } | |
36483 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
36484 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
36485 | } | |
36486 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
36487 | return (void *)((wxObject *) ((wxListItem *) x)); | |
36488 | } | |
36489 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36490 | return (void *)((wxObject *) ((wxImage *) x)); | |
36491 | } | |
36492 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
36493 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
36494 | } | |
36495 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
36496 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
36497 | } | |
d1e20054 RD |
36498 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
36499 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36500 | } | |
e811c8ce RD |
36501 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
36502 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
36503 | } | |
d14a1e28 RD |
36504 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
36505 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36506 | } | |
36507 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 36508 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
36509 | } |
36510 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 36511 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 36512 | } |
2ef75293 | 36513 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
8ac8dba0 | 36514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 36515 | } |
d14a1e28 RD |
36516 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
36517 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36518 | } | |
36519 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
36520 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36521 | } | |
36522 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
36523 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
36524 | } | |
36525 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36526 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36527 | } | |
36528 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36529 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36530 | } | |
36531 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36532 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36533 | } | |
36534 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
36535 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
36536 | } | |
36537 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36538 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36539 | } | |
36540 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36541 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36542 | } | |
36543 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36544 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36545 | } | |
36546 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36547 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36548 | } | |
36549 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36550 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36551 | } | |
36552 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36553 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36554 | } | |
8ac8dba0 RD |
36555 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { |
36556 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36557 | } | |
d14a1e28 RD |
36558 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { |
36559 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36560 | } | |
36561 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
36562 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36563 | } | |
36564 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
36565 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
36566 | } | |
36567 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
36568 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36569 | } | |
36570 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
36571 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
36572 | } | |
36573 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
36574 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
36575 | } | |
36576 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
36577 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36578 | } | |
53aa7709 RD |
36579 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { |
36580 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36581 | } | |
d14a1e28 RD |
36582 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
36583 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36584 | } | |
36585 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
36586 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
36587 | } | |
36588 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
36589 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36590 | } | |
36591 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
36592 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36593 | } | |
36594 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36595 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36596 | } | |
36597 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
36598 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
36599 | } | |
d14a1e28 RD |
36600 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
36601 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
36602 | } | |
8ac8dba0 RD |
36603 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { |
36604 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
36605 | } | |
d14a1e28 RD |
36606 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { |
36607 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36608 | } | |
36609 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
36610 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
36611 | } | |
36612 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
36613 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
36614 | } | |
d14a1e28 RD |
36615 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
36616 | return (void *)((wxWindow *) ((wxControl *) x)); | |
36617 | } | |
36618 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
36619 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
36620 | } | |
36621 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
36622 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36623 | } | |
36624 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
36625 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
36626 | } | |
36627 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
36628 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
36629 | } | |
2ef75293 RD |
36630 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
36631 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
36632 | } | |
d14a1e28 RD |
36633 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
36634 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
36635 | } | |
36636 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
36637 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
36638 | } | |
36639 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
36640 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
36641 | } | |
36642 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
36643 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
36644 | } | |
36645 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
36646 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
36647 | } | |
2ef75293 | 36648 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
8ac8dba0 | 36649 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 36650 | } |
d14a1e28 | 36651 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
8ac8dba0 | 36652 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
36653 | } |
36654 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
36655 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
36656 | } | |
36657 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
36658 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
36659 | } | |
36660 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
36661 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
36662 | } | |
36663 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
36664 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36665 | } | |
36666 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
36667 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36668 | } | |
36669 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
36670 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36671 | } | |
36672 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
36673 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36674 | } | |
36675 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
8ac8dba0 | 36676 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
36677 | } |
36678 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
36679 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
36680 | } | |
36681 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
36682 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
36683 | } | |
36684 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
36685 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
36686 | } | |
36687 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
36688 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
36689 | } | |
36690 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
36691 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
36692 | } | |
36693 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
36694 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
36695 | } | |
36696 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
36697 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
36698 | } | |
36699 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
36700 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36701 | } | |
36702 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
36703 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36704 | } | |
53aa7709 RD |
36705 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { |
36706 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
36707 | } | |
d14a1e28 RD |
36708 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
36709 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
36710 | } | |
8ac8dba0 RD |
36711 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
36712 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36713 | } | |
36714 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36715 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36716 | } | |
36717 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36718 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36719 | } | |
d14a1e28 RD |
36720 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
36721 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36722 | } | |
d14a1e28 RD |
36723 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
36724 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36725 | } | |
36726 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
36727 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
36728 | } | |
36729 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
36730 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36731 | } | |
36732 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
36733 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36734 | } | |
36735 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
36736 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36737 | } | |
36738 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 36739 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 RD |
36740 | } |
36741 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 36742 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 | 36743 | } |
53aa7709 RD |
36744 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
36745 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36746 | } | |
36747 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
36748 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
36749 | } | |
d14a1e28 RD |
36750 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
36751 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36752 | } | |
2ef75293 RD |
36753 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
36754 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
36755 | } | |
8ac8dba0 RD |
36756 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
36757 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36758 | } | |
d14a1e28 RD |
36759 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
36760 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36761 | } | |
d1e20054 RD |
36762 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
36763 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36764 | } | |
d14a1e28 RD |
36765 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
36766 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
36767 | } | |
36768 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
36769 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36770 | } | |
36771 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
36772 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36773 | } | |
36774 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
36775 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36776 | } | |
36777 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
36778 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
36779 | } | |
36780 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
36781 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
36782 | } | |
36783 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
36784 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
36785 | } | |
36786 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
36787 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
36788 | } | |
15afbcd0 | 36789 | 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 | 36790 | 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 |
36791 | 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}}; |
36792 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
53aa7709 | 36793 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
36794 | 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}}; |
36795 | 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 | 36796 | 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 | 36797 | 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 | 36798 | 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 | 36799 | 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 | 36800 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36801 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDatePickerCtrl", _p_wxDatePickerCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
36802 | 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}}; |
36803 | 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}}; | |
36804 | 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}}; | |
36805 | 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}}; | |
36806 | 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}}; | |
36807 | 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}}; | |
36808 | 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}}; | |
36809 | 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 |
36810 | 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}}; |
36811 | 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 |
36812 | 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}}; |
36813 | 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}}; | |
36814 | 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}}; | |
36815 | 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}}; | |
36816 | 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}}; | |
36817 | 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}}; | |
36818 | 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 | 36819 | 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 |
36820 | 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}}; |
36821 | 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 | 36822 | 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 | 36823 | 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 | 36824 | 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 | 36825 | 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 |
36826 | 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}}; |
36827 | 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}}; | |
36828 | 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}}; | |
36829 | 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}}; | |
36830 | 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}}; | |
36831 | 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}}; | |
36832 | 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 | 36833 | 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 | 36834 | static swig_type_info _swigt__p_wxBookCtrlBase[] = {{"_p_wxBookCtrlBase", 0, "wxBookCtrlBase *", 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36835 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDatePickerCtrl", _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 | 36836 | 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 | 36837 | 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 | 36838 | 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 |
36839 | 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}}; |
36840 | 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}}; | |
36841 | 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}}; | |
36842 | 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}}; | |
36843 | 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}}; | |
36844 | 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}}; | |
36845 | 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}}; | |
36846 | 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 | 36847 | 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 | 36848 | 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 |
36849 | 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}}; |
36850 | 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}}; | |
36851 | 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}}; | |
36852 | 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}}; | |
36853 | 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}}; | |
36854 | 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 | 36855 | 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 |
36856 | 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}}; |
36857 | 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}}; | |
36858 | 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}}; | |
36859 | 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 | 36860 | 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 |
36861 | 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}}; |
36862 | 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 | 36863 | 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}}; |
53aa7709 | 36864 | 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_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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_wxDateEvent", _p_wxDateEventTo_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_wxDatePickerCtrl", _p_wxDatePickerCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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 | 36865 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36866 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 | 36867 | 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 | 36868 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36869 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDatePickerCtrl", _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
36870 | 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}}; |
36871 | 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 |
36872 | 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}}; |
36873 | 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}}; | |
36874 | 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 | 36875 | 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 | 36876 | 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 | 36877 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36878 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 | 36879 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
53aa7709 | 36880 | static swig_type_info _swigt__p_wxDatePickerCtrl[] = {{"_p_wxDatePickerCtrl", 0, "wxDatePickerCtrl *", 0, 0, 0, 0},{"_p_wxDatePickerCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
36881 | 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}}; |
36882 | 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}}; | |
36883 | 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}}; | |
36884 | 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}}; | |
36885 | 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}}; | |
36886 | 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 |
36887 | |
36888 | static swig_type_info *swig_types_initial[] = { | |
36889 | _swigt__p_wxTextUrlEvent, | |
d14a1e28 | 36890 | _swigt__p_wxSizer, |
d14a1e28 RD |
36891 | _swigt__p_wxCheckBox, |
36892 | _swigt__p_wxPyTreeCtrl, | |
36893 | _swigt__p_wxEvent, | |
36894 | _swigt__p_wxGenericDirCtrl, | |
36895 | _swigt__p_bool, | |
d14a1e28 | 36896 | _swigt__p_wxItemContainer, |
d14a1e28 | 36897 | _swigt__p_wxPyListCtrl, |
093d3ff1 | 36898 | _swigt__p_wxPyTreeItemData, |
74a57fcd | 36899 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
36900 | _swigt__p_wxStaticLine, |
36901 | _swigt__p_wxControl, | |
36902 | _swigt__p_wxPyControl, | |
36903 | _swigt__p_wxGauge, | |
36904 | _swigt__p_wxToolBarBase, | |
36905 | _swigt__p_wxFont, | |
36906 | _swigt__p_wxToggleButton, | |
36907 | _swigt__p_wxRadioButton, | |
36908 | _swigt__p_wxChoice, | |
e811c8ce | 36909 | _swigt__p_wxMemoryDC, |
093d3ff1 RD |
36910 | _swigt__ptrdiff_t, |
36911 | _swigt__std__ptrdiff_t, | |
d14a1e28 | 36912 | _swigt__p_wxListItemAttr, |
58203fa6 | 36913 | _swigt__p_void, |
d14a1e28 RD |
36914 | _swigt__p_int, |
36915 | _swigt__p_wxSize, | |
e811c8ce | 36916 | _swigt__p_wxDC, |
d14a1e28 RD |
36917 | _swigt__p_wxListView, |
36918 | _swigt__p_wxIcon, | |
74a57fcd | 36919 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
36920 | _swigt__p_wxTextCtrl, |
36921 | _swigt__p_wxNotebook, | |
2ef75293 | 36922 | _swigt__p_wxChoicebook, |
d14a1e28 RD |
36923 | _swigt__p_wxNotifyEvent, |
36924 | _swigt__p_wxArrayString, | |
093d3ff1 | 36925 | _swigt__p_form_ops_t, |
d14a1e28 RD |
36926 | _swigt__p_wxListbook, |
36927 | _swigt__p_wxStaticBitmap, | |
36928 | _swigt__p_wxSlider, | |
36929 | _swigt__p_wxStaticBox, | |
36930 | _swigt__p_wxArrayInt, | |
36931 | _swigt__p_wxContextHelp, | |
36932 | _swigt__p_long, | |
093d3ff1 | 36933 | _swigt__p_wxDuplexMode, |
8ac8dba0 | 36934 | _swigt__p_wxBookCtrlBase, |
d14a1e28 RD |
36935 | _swigt__p_wxEvtHandler, |
36936 | _swigt__p_wxListEvent, | |
d14a1e28 | 36937 | _swigt__p_wxCheckListBox, |
74a57fcd | 36938 | _swigt__p_wxListBox, |
d14a1e28 RD |
36939 | _swigt__p_wxSpinButton, |
36940 | _swigt__p_wxButton, | |
36941 | _swigt__p_wxBitmapButton, | |
36942 | _swigt__p_wxRect, | |
36943 | _swigt__p_wxContextHelpButton, | |
36944 | _swigt__p_wxRadioBox, | |
36945 | _swigt__p_wxScrollBar, | |
994141e6 | 36946 | _swigt__p_char, |
d14a1e28 | 36947 | _swigt__p_wxComboBox, |
093d3ff1 | 36948 | _swigt__p_wxTreeItemId, |
d14a1e28 RD |
36949 | _swigt__p_wxHelpEvent, |
36950 | _swigt__p_wxListItem, | |
36951 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 36952 | _swigt__p_wxSpinEvent, |
e811c8ce | 36953 | _swigt__p_wxGenericDragImage, |
d14a1e28 | 36954 | _swigt__p_wxSpinCtrl, |
093d3ff1 | 36955 | _swigt__p_wxPaperSize, |
d14a1e28 RD |
36956 | _swigt__p_wxImageList, |
36957 | _swigt__p_wxHelpProvider, | |
36958 | _swigt__p_wxTextAttr, | |
36959 | _swigt__p_wxSimpleHelpProvider, | |
2ef75293 | 36960 | _swigt__p_wxChoicebookEvent, |
d14a1e28 RD |
36961 | _swigt__p_wxListbookEvent, |
36962 | _swigt__p_wxNotebookEvent, | |
093d3ff1 | 36963 | _swigt__p_wxPoint, |
d14a1e28 | 36964 | _swigt__p_wxObject, |
e811c8ce | 36965 | _swigt__p_wxCursor, |
53aa7709 | 36966 | _swigt__p_wxDateTime, |
d14a1e28 | 36967 | _swigt__p_wxKeyEvent, |
093d3ff1 | 36968 | _swigt__p_unsigned_long, |
d14a1e28 RD |
36969 | _swigt__p_wxWindow, |
36970 | _swigt__p_wxString, | |
36971 | _swigt__p_wxBitmap, | |
093d3ff1 RD |
36972 | _swigt__unsigned_int, |
36973 | _swigt__p_unsigned_int, | |
36974 | _swigt__p_unsigned_char, | |
d14a1e28 | 36975 | _swigt__p_wxMouseEvent, |
8ac8dba0 | 36976 | _swigt__p_wxBookCtrlBaseEvent, |
093d3ff1 | 36977 | _swigt__p_wxTreeEvent, |
d14a1e28 RD |
36978 | _swigt__p_wxCommandEvent, |
36979 | _swigt__p_wxStaticText, | |
53aa7709 | 36980 | _swigt__p_wxDatePickerCtrl, |
d14a1e28 RD |
36981 | _swigt__p_wxControlWithItems, |
36982 | _swigt__p_wxToolBarToolBase, | |
36983 | _swigt__p_wxColour, | |
36984 | _swigt__p_wxToolBar, | |
36985 | _swigt__p_wxBookCtrlSizer, | |
36986 | _swigt__p_wxValidator, | |
36987 | 0 | |
36988 | }; | |
36989 | ||
36990 | ||
36991 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
36992 | ||
36993 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 36994 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
36995 | |
36996 | #ifdef __cplusplus | |
36997 | } | |
36998 | #endif | |
36999 | ||
093d3ff1 RD |
37000 | |
37001 | #ifdef __cplusplus | |
37002 | extern "C" { | |
37003 | #endif | |
37004 | ||
37005 | /* Python-specific SWIG API */ | |
37006 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
37007 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
37008 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
37009 | ||
37010 | /* ----------------------------------------------------------------------------- | |
37011 | * global variable support code. | |
37012 | * ----------------------------------------------------------------------------- */ | |
37013 | ||
37014 | typedef struct swig_globalvar { | |
37015 | char *name; /* Name of global variable */ | |
37016 | PyObject *(*get_attr)(); /* Return the current value */ | |
37017 | int (*set_attr)(PyObject *); /* Set the value */ | |
37018 | struct swig_globalvar *next; | |
37019 | } swig_globalvar; | |
37020 | ||
37021 | typedef struct swig_varlinkobject { | |
37022 | PyObject_HEAD | |
37023 | swig_globalvar *vars; | |
37024 | } swig_varlinkobject; | |
37025 | ||
37026 | static PyObject * | |
37027 | swig_varlink_repr(swig_varlinkobject *v) { | |
37028 | v = v; | |
37029 | return PyString_FromString("<Swig global variables>"); | |
37030 | } | |
37031 | ||
37032 | static int | |
37033 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
37034 | swig_globalvar *var; | |
37035 | flags = flags; | |
37036 | fprintf(fp,"Swig global variables { "); | |
37037 | for (var = v->vars; var; var=var->next) { | |
37038 | fprintf(fp,"%s", var->name); | |
37039 | if (var->next) fprintf(fp,", "); | |
37040 | } | |
37041 | fprintf(fp," }\n"); | |
37042 | return 0; | |
37043 | } | |
37044 | ||
37045 | static PyObject * | |
37046 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
37047 | swig_globalvar *var = v->vars; | |
37048 | while (var) { | |
37049 | if (strcmp(var->name,n) == 0) { | |
37050 | return (*var->get_attr)(); | |
37051 | } | |
37052 | var = var->next; | |
37053 | } | |
37054 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
37055 | return NULL; | |
37056 | } | |
37057 | ||
37058 | static int | |
37059 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
37060 | swig_globalvar *var = v->vars; | |
37061 | while (var) { | |
37062 | if (strcmp(var->name,n) == 0) { | |
37063 | return (*var->set_attr)(p); | |
37064 | } | |
37065 | var = var->next; | |
37066 | } | |
37067 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
37068 | return 1; | |
37069 | } | |
37070 | ||
37071 | static PyTypeObject varlinktype = { | |
37072 | PyObject_HEAD_INIT(0) | |
37073 | 0, /* Number of items in variable part (ob_size) */ | |
37074 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
37075 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
37076 | 0, /* Itemsize (tp_itemsize) */ | |
37077 | 0, /* Deallocator (tp_dealloc) */ | |
37078 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
37079 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
37080 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
37081 | 0, /* tp_compare */ | |
37082 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
37083 | 0, /* tp_as_number */ | |
37084 | 0, /* tp_as_sequence */ | |
37085 | 0, /* tp_as_mapping */ | |
37086 | 0, /* tp_hash */ | |
37087 | 0, /* tp_call */ | |
37088 | 0, /* tp_str */ | |
37089 | 0, /* tp_getattro */ | |
37090 | 0, /* tp_setattro */ | |
37091 | 0, /* tp_as_buffer */ | |
37092 | 0, /* tp_flags */ | |
37093 | 0, /* tp_doc */ | |
37094 | #if PY_VERSION_HEX >= 0x02000000 | |
37095 | 0, /* tp_traverse */ | |
37096 | 0, /* tp_clear */ | |
37097 | #endif | |
37098 | #if PY_VERSION_HEX >= 0x02010000 | |
37099 | 0, /* tp_richcompare */ | |
37100 | 0, /* tp_weaklistoffset */ | |
37101 | #endif | |
37102 | #if PY_VERSION_HEX >= 0x02020000 | |
37103 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
37104 | #endif | |
37105 | #if PY_VERSION_HEX >= 0x02030000 | |
37106 | 0, /* tp_del */ | |
37107 | #endif | |
37108 | #ifdef COUNT_ALLOCS | |
37109 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
37110 | #endif | |
37111 | }; | |
37112 | ||
37113 | /* Create a variable linking object for use later */ | |
37114 | static PyObject * | |
37115 | SWIG_Python_newvarlink(void) { | |
37116 | swig_varlinkobject *result = 0; | |
37117 | result = PyMem_NEW(swig_varlinkobject,1); | |
37118 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
37119 | result->ob_type = &varlinktype; | |
37120 | result->vars = 0; | |
37121 | result->ob_refcnt = 0; | |
37122 | Py_XINCREF((PyObject *) result); | |
37123 | return ((PyObject*) result); | |
37124 | } | |
37125 | ||
37126 | static void | |
37127 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
37128 | swig_varlinkobject *v; | |
37129 | swig_globalvar *gv; | |
37130 | v= (swig_varlinkobject *) p; | |
37131 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
37132 | gv->name = (char *) malloc(strlen(name)+1); | |
37133 | strcpy(gv->name,name); | |
37134 | gv->get_attr = get_attr; | |
37135 | gv->set_attr = set_attr; | |
37136 | gv->next = v->vars; | |
37137 | v->vars = gv; | |
37138 | } | |
37139 | ||
37140 | /* ----------------------------------------------------------------------------- | |
37141 | * constants/methods manipulation | |
37142 | * ----------------------------------------------------------------------------- */ | |
37143 | ||
37144 | /* Install Constants */ | |
37145 | static void | |
37146 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
37147 | PyObject *obj = 0; | |
37148 | size_t i; | |
37149 | for (i = 0; constants[i].type; i++) { | |
37150 | switch(constants[i].type) { | |
37151 | case SWIG_PY_INT: | |
37152 | obj = PyInt_FromLong(constants[i].lvalue); | |
37153 | break; | |
37154 | case SWIG_PY_FLOAT: | |
37155 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
37156 | break; | |
37157 | case SWIG_PY_STRING: | |
37158 | if (constants[i].pvalue) { | |
37159 | obj = PyString_FromString((char *) constants[i].pvalue); | |
37160 | } else { | |
37161 | Py_INCREF(Py_None); | |
37162 | obj = Py_None; | |
37163 | } | |
37164 | break; | |
37165 | case SWIG_PY_POINTER: | |
37166 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
37167 | break; | |
37168 | case SWIG_PY_BINARY: | |
37169 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
37170 | break; | |
37171 | default: | |
37172 | obj = 0; | |
37173 | break; | |
37174 | } | |
37175 | if (obj) { | |
37176 | PyDict_SetItemString(d,constants[i].name,obj); | |
37177 | Py_DECREF(obj); | |
37178 | } | |
37179 | } | |
37180 | } | |
37181 | ||
37182 | /* -----------------------------------------------------------------------------*/ | |
37183 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37184 | /* -----------------------------------------------------------------------------*/ | |
37185 | ||
37186 | static void | |
37187 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
37188 | swig_const_info *const_table, | |
37189 | swig_type_info **types, | |
37190 | swig_type_info **types_initial) { | |
37191 | size_t i; | |
37192 | for (i = 0; methods[i].ml_name; ++i) { | |
37193 | char *c = methods[i].ml_doc; | |
37194 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
37195 | int j; | |
37196 | swig_const_info *ci = 0; | |
37197 | char *name = c + 10; | |
37198 | for (j = 0; const_table[j].type; j++) { | |
37199 | if (strncmp(const_table[j].name, name, | |
37200 | strlen(const_table[j].name)) == 0) { | |
37201 | ci = &(const_table[j]); | |
37202 | break; | |
37203 | } | |
37204 | } | |
37205 | if (ci) { | |
37206 | size_t shift = (ci->ptype) - types; | |
37207 | swig_type_info *ty = types_initial[shift]; | |
37208 | size_t ldoc = (c - methods[i].ml_doc); | |
37209 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
37210 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
37211 | char *buff = ndoc; | |
37212 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
37213 | strncpy(buff, methods[i].ml_doc, ldoc); | |
37214 | buff += ldoc; | |
37215 | strncpy(buff, "swig_ptr: ", 10); | |
37216 | buff += 10; | |
37217 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
37218 | methods[i].ml_doc = ndoc; | |
37219 | } | |
37220 | } | |
37221 | } | |
37222 | } | |
37223 | ||
37224 | /* -----------------------------------------------------------------------------* | |
37225 | * Initialize type list | |
37226 | * -----------------------------------------------------------------------------*/ | |
37227 | ||
37228 | #if PY_MAJOR_VERSION < 2 | |
37229 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
37230 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
37231 | static int | |
37232 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
37233 | { | |
37234 | PyObject *dict; | |
37235 | if (!PyModule_Check(m)) { | |
37236 | PyErr_SetString(PyExc_TypeError, | |
37237 | "PyModule_AddObject() needs module as first arg"); | |
37238 | return -1; | |
37239 | } | |
37240 | if (!o) { | |
37241 | PyErr_SetString(PyExc_TypeError, | |
37242 | "PyModule_AddObject() needs non-NULL value"); | |
37243 | return -1; | |
37244 | } | |
37245 | ||
37246 | dict = PyModule_GetDict(m); | |
37247 | if (dict == NULL) { | |
37248 | /* Internal error -- modules must have a dict! */ | |
37249 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
37250 | PyModule_GetName(m)); | |
37251 | return -1; | |
37252 | } | |
37253 | if (PyDict_SetItemString(dict, name, o)) | |
37254 | return -1; | |
37255 | Py_DECREF(o); | |
37256 | return 0; | |
37257 | } | |
37258 | #endif | |
37259 | ||
37260 | static swig_type_info ** | |
37261 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
37262 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
37263 | { | |
37264 | NULL, NULL, 0, NULL | |
37265 | } | |
37266 | };/* Sentinel */ | |
37267 | ||
37268 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
37269 | swig_empty_runtime_method_table); | |
37270 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
37271 | if (pointer && module) { | |
37272 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
37273 | } | |
37274 | return type_list_handle; | |
37275 | } | |
37276 | ||
37277 | static swig_type_info ** | |
37278 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
37279 | swig_type_info **type_pointer; | |
37280 | ||
37281 | /* first check if module already created */ | |
37282 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
37283 | if (type_pointer) { | |
37284 | return type_pointer; | |
37285 | } else { | |
37286 | /* create a new module and variable */ | |
37287 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
37288 | } | |
37289 | } | |
37290 | ||
37291 | #ifdef __cplusplus | |
37292 | } | |
37293 | #endif | |
37294 | ||
37295 | /* -----------------------------------------------------------------------------* | |
37296 | * Partial Init method | |
37297 | * -----------------------------------------------------------------------------*/ | |
37298 | ||
37299 | #ifdef SWIG_LINK_RUNTIME | |
37300 | #ifdef __cplusplus | |
37301 | extern "C" | |
37302 | #endif | |
37303 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
37304 | #endif | |
37305 | ||
d14a1e28 RD |
37306 | #ifdef __cplusplus |
37307 | extern "C" | |
37308 | #endif | |
37309 | SWIGEXPORT(void) SWIG_init(void) { | |
37310 | static PyObject *SWIG_globals = 0; | |
37311 | static int typeinit = 0; | |
37312 | PyObject *m, *d; | |
37313 | int i; | |
37314 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
093d3ff1 RD |
37315 | |
37316 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37317 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
37318 | ||
d14a1e28 RD |
37319 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
37320 | d = PyModule_GetDict(m); | |
37321 | ||
37322 | if (!typeinit) { | |
093d3ff1 RD |
37323 | #ifdef SWIG_LINK_RUNTIME |
37324 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
37325 | #else | |
37326 | # ifndef SWIG_STATIC_RUNTIME | |
37327 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
37328 | # endif | |
37329 | #endif | |
d14a1e28 RD |
37330 | for (i = 0; swig_types_initial[i]; i++) { |
37331 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
37332 | } | |
37333 | typeinit = 1; | |
37334 | } | |
37335 | SWIG_InstallConstants(d,swig_const_table); | |
37336 | ||
b2dc1044 RD |
37337 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
37338 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
093d3ff1 RD |
37339 | { |
37340 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)(wxBU_LEFT))); | |
37341 | } | |
37342 | { | |
37343 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)(wxBU_TOP))); | |
37344 | } | |
37345 | { | |
37346 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)(wxBU_RIGHT))); | |
37347 | } | |
37348 | { | |
37349 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)(wxBU_BOTTOM))); | |
37350 | } | |
37351 | { | |
37352 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)(wxBU_ALIGN_MASK))); | |
37353 | } | |
37354 | { | |
37355 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)(wxBU_EXACTFIT))); | |
37356 | } | |
37357 | { | |
37358 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)(wxBU_AUTODRAW))); | |
37359 | } | |
b2dc1044 | 37360 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
093d3ff1 RD |
37361 | { |
37362 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)(wxCHK_2STATE))); | |
37363 | } | |
37364 | { | |
37365 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)(wxCHK_3STATE))); | |
37366 | } | |
37367 | { | |
37368 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
37369 | } | |
37370 | { | |
37371 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)(wxCHK_UNCHECKED))); | |
37372 | } | |
37373 | { | |
37374 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)(wxCHK_CHECKED))); | |
37375 | } | |
37376 | { | |
37377 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)(wxCHK_UNDETERMINED))); | |
37378 | } | |
b2dc1044 RD |
37379 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
37380 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
37381 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
093d3ff1 RD |
37382 | { |
37383 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)(wxGA_HORIZONTAL))); | |
37384 | } | |
37385 | { | |
37386 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)(wxGA_VERTICAL))); | |
37387 | } | |
37388 | { | |
37389 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)(wxGA_SMOOTH))); | |
37390 | } | |
37391 | { | |
37392 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)(wxGA_PROGRESSBAR))); | |
37393 | } | |
b2dc1044 RD |
37394 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
37395 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
37396 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
37397 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
37398 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
093d3ff1 RD |
37399 | { |
37400 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)(wxTE_NO_VSCROLL))); | |
37401 | } | |
37402 | { | |
37403 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)(wxTE_AUTO_SCROLL))); | |
37404 | } | |
37405 | { | |
37406 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)(wxTE_READONLY))); | |
37407 | } | |
37408 | { | |
37409 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)(wxTE_MULTILINE))); | |
37410 | } | |
37411 | { | |
37412 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)(wxTE_PROCESS_TAB))); | |
37413 | } | |
37414 | { | |
37415 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)(wxTE_LEFT))); | |
37416 | } | |
37417 | { | |
37418 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)(wxTE_CENTER))); | |
37419 | } | |
37420 | { | |
37421 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)(wxTE_RIGHT))); | |
37422 | } | |
37423 | { | |
37424 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)(wxTE_CENTRE))); | |
37425 | } | |
37426 | { | |
37427 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)(wxTE_RICH))); | |
37428 | } | |
37429 | { | |
37430 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)(wxTE_PROCESS_ENTER))); | |
37431 | } | |
37432 | { | |
37433 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)(wxTE_PASSWORD))); | |
37434 | } | |
37435 | { | |
37436 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)(wxTE_AUTO_URL))); | |
37437 | } | |
37438 | { | |
37439 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)(wxTE_NOHIDESEL))); | |
37440 | } | |
37441 | { | |
37442 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)(wxTE_DONTWRAP))); | |
37443 | } | |
37444 | { | |
08d9e66e | 37445 | PyDict_SetItemString(d,"TE_CHARWRAP", SWIG_From_int((int)(wxTE_CHARWRAP))); |
093d3ff1 RD |
37446 | } |
37447 | { | |
37448 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)(wxTE_WORDWRAP))); | |
37449 | } | |
08d9e66e RD |
37450 | { |
37451 | PyDict_SetItemString(d,"TE_BESTWRAP", SWIG_From_int((int)(wxTE_BESTWRAP))); | |
37452 | } | |
37453 | { | |
37454 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)(wxTE_LINEWRAP))); | |
37455 | } | |
093d3ff1 RD |
37456 | { |
37457 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)(wxTE_RICH2))); | |
37458 | } | |
88c6b281 RD |
37459 | { |
37460 | PyDict_SetItemString(d,"TE_CAPITALIZE", SWIG_From_int((int)(wxTE_CAPITALIZE))); | |
37461 | } | |
093d3ff1 RD |
37462 | { |
37463 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_DEFAULT))); | |
37464 | } | |
37465 | { | |
37466 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_LEFT))); | |
37467 | } | |
37468 | { | |
37469 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTRE))); | |
37470 | } | |
37471 | { | |
37472 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTER))); | |
37473 | } | |
37474 | { | |
37475 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_RIGHT))); | |
37476 | } | |
37477 | { | |
37478 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
37479 | } | |
37480 | { | |
37481 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_TEXT_COLOUR))); | |
37482 | } | |
37483 | { | |
37484 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
37485 | } | |
37486 | { | |
37487 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_FACE))); | |
37488 | } | |
37489 | { | |
37490 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_SIZE))); | |
37491 | } | |
37492 | { | |
37493 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)(wxTEXT_ATTR_FONT_WEIGHT))); | |
37494 | } | |
37495 | { | |
37496 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)(wxTEXT_ATTR_FONT_ITALIC))); | |
37497 | } | |
37498 | { | |
37499 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_UNDERLINE))); | |
37500 | } | |
37501 | { | |
37502 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)(wxTEXT_ATTR_FONT))); | |
37503 | } | |
37504 | { | |
37505 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)(wxTEXT_ATTR_ALIGNMENT))); | |
37506 | } | |
37507 | { | |
37508 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_LEFT_INDENT))); | |
37509 | } | |
37510 | { | |
37511 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_RIGHT_INDENT))); | |
37512 | } | |
37513 | { | |
37514 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)(wxTEXT_ATTR_TABS))); | |
37515 | } | |
37516 | { | |
37517 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)(wxTE_HT_UNKNOWN))); | |
37518 | } | |
37519 | { | |
37520 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)(wxTE_HT_BEFORE))); | |
37521 | } | |
37522 | { | |
37523 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)(wxTE_HT_ON_TEXT))); | |
37524 | } | |
37525 | { | |
37526 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)(wxTE_HT_BELOW))); | |
37527 | } | |
37528 | { | |
37529 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)(wxTE_HT_BEYOND))); | |
37530 | } | |
7557b9b5 RD |
37531 | { |
37532 | PyDict_SetItemString(d,"OutOfRangeTextCoord", SWIG_From_int((int)(wxOutOfRangeTextCoord))); | |
37533 | } | |
37534 | { | |
37535 | PyDict_SetItemString(d,"InvalidTextCoord", SWIG_From_int((int)(wxInvalidTextCoord))); | |
37536 | } | |
d14a1e28 RD |
37537 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
37538 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
37539 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
37540 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
37541 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
37542 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
37543 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
093d3ff1 RD |
37544 | { |
37545 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)(wxSP_HORIZONTAL))); | |
37546 | } | |
37547 | { | |
37548 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)(wxSP_VERTICAL))); | |
37549 | } | |
37550 | { | |
37551 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)(wxSP_ARROW_KEYS))); | |
37552 | } | |
37553 | { | |
37554 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)(wxSP_WRAP))); | |
37555 | } | |
d14a1e28 | 37556 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
37557 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
37558 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
37559 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
7557b9b5 RD |
37560 | { |
37561 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)(wxSL_HORIZONTAL))); | |
37562 | } | |
37563 | { | |
37564 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)(wxSL_VERTICAL))); | |
37565 | } | |
70b7a5fe RD |
37566 | { |
37567 | PyDict_SetItemString(d,"SL_TICKS", SWIG_From_int((int)(wxSL_TICKS))); | |
37568 | } | |
7557b9b5 RD |
37569 | { |
37570 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)(wxSL_AUTOTICKS))); | |
37571 | } | |
37572 | { | |
37573 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)(wxSL_LABELS))); | |
37574 | } | |
37575 | { | |
37576 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)(wxSL_LEFT))); | |
37577 | } | |
37578 | { | |
37579 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)(wxSL_TOP))); | |
37580 | } | |
37581 | { | |
37582 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)(wxSL_RIGHT))); | |
37583 | } | |
37584 | { | |
37585 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)(wxSL_BOTTOM))); | |
37586 | } | |
37587 | { | |
37588 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)(wxSL_BOTH))); | |
37589 | } | |
37590 | { | |
37591 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)(wxSL_SELRANGE))); | |
37592 | } | |
37593 | { | |
37594 | PyDict_SetItemString(d,"SL_INVERSE", SWIG_From_int((int)(wxSL_INVERSE))); | |
37595 | } | |
b2dc1044 | 37596 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); |
d14a1e28 | 37597 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
51b83b37 | 37598 | SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set); |
093d3ff1 RD |
37599 | { |
37600 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)(wxNB_FIXEDWIDTH))); | |
37601 | } | |
37602 | { | |
37603 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)(wxNB_TOP))); | |
37604 | } | |
37605 | { | |
37606 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)(wxNB_LEFT))); | |
37607 | } | |
37608 | { | |
37609 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)(wxNB_RIGHT))); | |
37610 | } | |
37611 | { | |
37612 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)(wxNB_BOTTOM))); | |
37613 | } | |
37614 | { | |
37615 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)(wxNB_MULTILINE))); | |
37616 | } | |
8e738329 RD |
37617 | { |
37618 | PyDict_SetItemString(d,"NB_NOPAGETHEME", SWIG_From_int((int)(wxNB_NOPAGETHEME))); | |
37619 | } | |
093d3ff1 RD |
37620 | { |
37621 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)(wxNB_HITTEST_NOWHERE))); | |
37622 | } | |
37623 | { | |
37624 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)(wxNB_HITTEST_ONICON))); | |
37625 | } | |
37626 | { | |
37627 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)(wxNB_HITTEST_ONLABEL))); | |
37628 | } | |
37629 | { | |
37630 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)(wxNB_HITTEST_ONITEM))); | |
37631 | } | |
d14a1e28 RD |
37632 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
37633 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37634 | { |
37635 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)(wxLB_DEFAULT))); | |
37636 | } | |
37637 | { | |
37638 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)(wxLB_TOP))); | |
37639 | } | |
37640 | { | |
37641 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)(wxLB_BOTTOM))); | |
37642 | } | |
37643 | { | |
37644 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)(wxLB_LEFT))); | |
37645 | } | |
37646 | { | |
37647 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)(wxLB_RIGHT))); | |
37648 | } | |
37649 | { | |
37650 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)(wxLB_ALIGN_MASK))); | |
37651 | } | |
d14a1e28 RD |
37652 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
37653 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37654 | { |
37655 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)(wxCHB_DEFAULT))); | |
37656 | } | |
37657 | { | |
37658 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)(wxCHB_TOP))); | |
37659 | } | |
37660 | { | |
37661 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)(wxCHB_BOTTOM))); | |
37662 | } | |
37663 | { | |
37664 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)(wxCHB_LEFT))); | |
37665 | } | |
37666 | { | |
37667 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)(wxCHB_RIGHT))); | |
37668 | } | |
37669 | { | |
37670 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)(wxCHB_ALIGN_MASK))); | |
37671 | } | |
2ef75293 RD |
37672 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); |
37673 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
093d3ff1 RD |
37674 | { |
37675 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)(wxTOOL_STYLE_BUTTON))); | |
37676 | } | |
37677 | { | |
37678 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)(wxTOOL_STYLE_SEPARATOR))); | |
37679 | } | |
37680 | { | |
37681 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)(wxTOOL_STYLE_CONTROL))); | |
37682 | } | |
37683 | { | |
37684 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)(wxTB_HORIZONTAL))); | |
37685 | } | |
37686 | { | |
37687 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)(wxTB_VERTICAL))); | |
37688 | } | |
37689 | { | |
37690 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)(wxTB_3DBUTTONS))); | |
37691 | } | |
37692 | { | |
37693 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)(wxTB_FLAT))); | |
37694 | } | |
37695 | { | |
37696 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)(wxTB_DOCKABLE))); | |
37697 | } | |
37698 | { | |
37699 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)(wxTB_NOICONS))); | |
37700 | } | |
37701 | { | |
37702 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)(wxTB_TEXT))); | |
37703 | } | |
37704 | { | |
37705 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)(wxTB_NODIVIDER))); | |
37706 | } | |
37707 | { | |
37708 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)(wxTB_NOALIGN))); | |
37709 | } | |
37710 | { | |
37711 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)(wxTB_HORZ_LAYOUT))); | |
37712 | } | |
37713 | { | |
37714 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)(wxTB_HORZ_TEXT))); | |
37715 | } | |
b2dc1044 | 37716 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
093d3ff1 RD |
37717 | { |
37718 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)(wxLC_VRULES))); | |
37719 | } | |
37720 | { | |
37721 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)(wxLC_HRULES))); | |
37722 | } | |
37723 | { | |
37724 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)(wxLC_ICON))); | |
37725 | } | |
37726 | { | |
37727 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)(wxLC_SMALL_ICON))); | |
37728 | } | |
37729 | { | |
37730 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)(wxLC_LIST))); | |
37731 | } | |
37732 | { | |
37733 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)(wxLC_REPORT))); | |
37734 | } | |
37735 | { | |
37736 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)(wxLC_ALIGN_TOP))); | |
37737 | } | |
37738 | { | |
37739 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)(wxLC_ALIGN_LEFT))); | |
37740 | } | |
37741 | { | |
37742 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)(wxLC_AUTOARRANGE))); | |
37743 | } | |
37744 | { | |
37745 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)(wxLC_VIRTUAL))); | |
37746 | } | |
37747 | { | |
37748 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)(wxLC_EDIT_LABELS))); | |
37749 | } | |
37750 | { | |
37751 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)(wxLC_NO_HEADER))); | |
37752 | } | |
37753 | { | |
37754 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)(wxLC_NO_SORT_HEADER))); | |
37755 | } | |
37756 | { | |
37757 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)(wxLC_SINGLE_SEL))); | |
37758 | } | |
37759 | { | |
37760 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)(wxLC_SORT_ASCENDING))); | |
37761 | } | |
37762 | { | |
37763 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)(wxLC_SORT_DESCENDING))); | |
37764 | } | |
37765 | { | |
37766 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)(wxLC_MASK_TYPE))); | |
37767 | } | |
37768 | { | |
37769 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)(wxLC_MASK_ALIGN))); | |
37770 | } | |
37771 | { | |
37772 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)(wxLC_MASK_SORT))); | |
37773 | } | |
37774 | { | |
37775 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)(wxLIST_MASK_STATE))); | |
37776 | } | |
37777 | { | |
37778 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)(wxLIST_MASK_TEXT))); | |
37779 | } | |
37780 | { | |
37781 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)(wxLIST_MASK_IMAGE))); | |
37782 | } | |
37783 | { | |
37784 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)(wxLIST_MASK_DATA))); | |
37785 | } | |
37786 | { | |
37787 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)(wxLIST_SET_ITEM))); | |
37788 | } | |
37789 | { | |
37790 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)(wxLIST_MASK_WIDTH))); | |
37791 | } | |
37792 | { | |
37793 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)(wxLIST_MASK_FORMAT))); | |
37794 | } | |
37795 | { | |
37796 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)(wxLIST_STATE_DONTCARE))); | |
37797 | } | |
37798 | { | |
37799 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)(wxLIST_STATE_DROPHILITED))); | |
37800 | } | |
37801 | { | |
37802 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)(wxLIST_STATE_FOCUSED))); | |
37803 | } | |
37804 | { | |
37805 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)(wxLIST_STATE_SELECTED))); | |
37806 | } | |
37807 | { | |
37808 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)(wxLIST_STATE_CUT))); | |
37809 | } | |
37810 | { | |
37811 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)(wxLIST_STATE_DISABLED))); | |
37812 | } | |
37813 | { | |
37814 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)(wxLIST_STATE_FILTERED))); | |
37815 | } | |
37816 | { | |
37817 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)(wxLIST_STATE_INUSE))); | |
37818 | } | |
37819 | { | |
37820 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)(wxLIST_STATE_PICKED))); | |
37821 | } | |
37822 | { | |
37823 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)(wxLIST_STATE_SOURCE))); | |
37824 | } | |
37825 | { | |
37826 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)(wxLIST_HITTEST_ABOVE))); | |
37827 | } | |
37828 | { | |
37829 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)(wxLIST_HITTEST_BELOW))); | |
37830 | } | |
37831 | { | |
37832 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)(wxLIST_HITTEST_NOWHERE))); | |
37833 | } | |
37834 | { | |
37835 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMICON))); | |
37836 | } | |
37837 | { | |
37838 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMLABEL))); | |
37839 | } | |
37840 | { | |
37841 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMRIGHT))); | |
37842 | } | |
37843 | { | |
37844 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMSTATEICON))); | |
37845 | } | |
37846 | { | |
37847 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)(wxLIST_HITTEST_TOLEFT))); | |
37848 | } | |
37849 | { | |
37850 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)(wxLIST_HITTEST_TORIGHT))); | |
37851 | } | |
37852 | { | |
37853 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)(wxLIST_HITTEST_ONITEM))); | |
37854 | } | |
37855 | { | |
37856 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)(wxLIST_NEXT_ABOVE))); | |
37857 | } | |
37858 | { | |
37859 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)(wxLIST_NEXT_ALL))); | |
37860 | } | |
37861 | { | |
37862 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)(wxLIST_NEXT_BELOW))); | |
37863 | } | |
37864 | { | |
37865 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)(wxLIST_NEXT_LEFT))); | |
37866 | } | |
37867 | { | |
37868 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)(wxLIST_NEXT_RIGHT))); | |
37869 | } | |
37870 | { | |
37871 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)(wxLIST_ALIGN_DEFAULT))); | |
37872 | } | |
37873 | { | |
37874 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)(wxLIST_ALIGN_LEFT))); | |
37875 | } | |
37876 | { | |
37877 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)(wxLIST_ALIGN_TOP))); | |
37878 | } | |
37879 | { | |
37880 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)(wxLIST_ALIGN_SNAP_TO_GRID))); | |
37881 | } | |
37882 | { | |
37883 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)(wxLIST_FORMAT_LEFT))); | |
37884 | } | |
37885 | { | |
37886 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)(wxLIST_FORMAT_RIGHT))); | |
37887 | } | |
37888 | { | |
37889 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)(wxLIST_FORMAT_CENTRE))); | |
37890 | } | |
37891 | { | |
37892 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)(wxLIST_FORMAT_CENTER))); | |
37893 | } | |
37894 | { | |
37895 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)(wxLIST_AUTOSIZE))); | |
37896 | } | |
37897 | { | |
37898 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)(wxLIST_AUTOSIZE_USEHEADER))); | |
37899 | } | |
37900 | { | |
37901 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)(wxLIST_RECT_BOUNDS))); | |
37902 | } | |
37903 | { | |
37904 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)(wxLIST_RECT_ICON))); | |
37905 | } | |
37906 | { | |
37907 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)(wxLIST_RECT_LABEL))); | |
37908 | } | |
37909 | { | |
37910 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)(wxLIST_FIND_UP))); | |
37911 | } | |
37912 | { | |
37913 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)(wxLIST_FIND_DOWN))); | |
37914 | } | |
37915 | { | |
37916 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)(wxLIST_FIND_LEFT))); | |
37917 | } | |
37918 | { | |
37919 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)(wxLIST_FIND_RIGHT))); | |
37920 | } | |
d14a1e28 RD |
37921 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
37922 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
37923 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
37924 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
37925 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
37926 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
d14a1e28 RD |
37927 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); |
37928 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
37929 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
37930 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
37931 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
37932 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
37933 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
37934 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
37935 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
37936 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
37937 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
37938 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
37939 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
37940 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
7557b9b5 RD |
37941 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); |
37942 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
d14a1e28 RD |
37943 | |
37944 | // Map renamed classes back to their common name for OOR | |
37945 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
37946 | ||
b2dc1044 | 37947 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
093d3ff1 RD |
37948 | { |
37949 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)(wxTR_NO_BUTTONS))); | |
37950 | } | |
37951 | { | |
37952 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)(wxTR_HAS_BUTTONS))); | |
37953 | } | |
37954 | { | |
37955 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)(wxTR_NO_LINES))); | |
37956 | } | |
37957 | { | |
37958 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)(wxTR_LINES_AT_ROOT))); | |
37959 | } | |
37960 | { | |
37961 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)(wxTR_SINGLE))); | |
37962 | } | |
37963 | { | |
37964 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)(wxTR_MULTIPLE))); | |
37965 | } | |
37966 | { | |
37967 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)(wxTR_EXTENDED))); | |
37968 | } | |
37969 | { | |
37970 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
37971 | } | |
37972 | { | |
37973 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)(wxTR_EDIT_LABELS))); | |
37974 | } | |
37975 | { | |
37976 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)(wxTR_HIDE_ROOT))); | |
37977 | } | |
37978 | { | |
37979 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)(wxTR_ROW_LINES))); | |
37980 | } | |
37981 | { | |
37982 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)(wxTR_FULL_ROW_HIGHLIGHT))); | |
37983 | } | |
37984 | { | |
37985 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)(wxTR_DEFAULT_STYLE))); | |
37986 | } | |
37987 | { | |
37988 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)(wxTR_TWIST_BUTTONS))); | |
37989 | } | |
37990 | { | |
37991 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)(wxTR_MAC_BUTTONS))); | |
37992 | } | |
37993 | { | |
37994 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)(wxTR_AQUA_BUTTONS))); | |
37995 | } | |
37996 | { | |
37997 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)(wxTreeItemIcon_Normal))); | |
37998 | } | |
37999 | { | |
38000 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)(wxTreeItemIcon_Selected))); | |
38001 | } | |
38002 | { | |
38003 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)(wxTreeItemIcon_Expanded))); | |
38004 | } | |
38005 | { | |
38006 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)(wxTreeItemIcon_SelectedExpanded))); | |
38007 | } | |
38008 | { | |
38009 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)(wxTreeItemIcon_Max))); | |
38010 | } | |
38011 | { | |
38012 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)(wxTREE_HITTEST_ABOVE))); | |
38013 | } | |
38014 | { | |
38015 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)(wxTREE_HITTEST_BELOW))); | |
38016 | } | |
38017 | { | |
38018 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)(wxTREE_HITTEST_NOWHERE))); | |
38019 | } | |
38020 | { | |
38021 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMBUTTON))); | |
38022 | } | |
38023 | { | |
38024 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMICON))); | |
38025 | } | |
38026 | { | |
38027 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMINDENT))); | |
38028 | } | |
38029 | { | |
38030 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLABEL))); | |
38031 | } | |
38032 | { | |
38033 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMRIGHT))); | |
38034 | } | |
38035 | { | |
38036 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMSTATEICON))); | |
38037 | } | |
38038 | { | |
38039 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)(wxTREE_HITTEST_TOLEFT))); | |
38040 | } | |
38041 | { | |
38042 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)(wxTREE_HITTEST_TORIGHT))); | |
38043 | } | |
38044 | { | |
38045 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMUPPERPART))); | |
38046 | } | |
38047 | { | |
38048 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLOWERPART))); | |
38049 | } | |
38050 | { | |
38051 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)(wxTREE_HITTEST_ONITEM))); | |
38052 | } | |
d14a1e28 RD |
38053 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
38054 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
38055 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
38056 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
38057 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
38058 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
38059 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
38060 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
38061 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
38062 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
38063 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
38064 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
38065 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
38066 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
38067 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
38068 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
38069 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
38070 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
38071 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 38072 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
e505d15e | 38073 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); |
d14a1e28 RD |
38074 | |
38075 | // Map renamed classes back to their common name for OOR | |
38076 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
38077 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
38078 | ||
b2dc1044 | 38079 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
093d3ff1 RD |
38080 | { |
38081 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)(wxDIRCTRL_DIR_ONLY))); | |
38082 | } | |
38083 | { | |
38084 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)(wxDIRCTRL_SELECT_FIRST))); | |
38085 | } | |
38086 | { | |
38087 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)(wxDIRCTRL_SHOW_FILTERS))); | |
38088 | } | |
38089 | { | |
38090 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)(wxDIRCTRL_3D_INTERNAL))); | |
38091 | } | |
38092 | { | |
38093 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)(wxDIRCTRL_EDIT_LABELS))); | |
38094 | } | |
38095 | { | |
38096 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)(wxFRAME_EX_CONTEXTHELP))); | |
38097 | } | |
38098 | { | |
38099 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)(wxDIALOG_EX_CONTEXTHELP))); | |
38100 | } | |
d14a1e28 RD |
38101 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
38102 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
38103 | |
38104 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
38105 | ||
53aa7709 RD |
38106 | SWIG_addvarlink(SWIG_globals,(char*)"DatePickerCtrlNameStr",_wrap_DatePickerCtrlNameStr_get, _wrap_DatePickerCtrlNameStr_set); |
38107 | { | |
38108 | PyDict_SetItemString(d,"DP_DEFAULT", SWIG_From_int((int)(wxDP_DEFAULT))); | |
38109 | } | |
38110 | { | |
38111 | PyDict_SetItemString(d,"DP_SPIN", SWIG_From_int((int)(wxDP_SPIN))); | |
38112 | } | |
38113 | { | |
38114 | PyDict_SetItemString(d,"DP_DROPDOWN", SWIG_From_int((int)(wxDP_DROPDOWN))); | |
38115 | } | |
38116 | { | |
38117 | PyDict_SetItemString(d,"DP_SHOWCENTURY", SWIG_From_int((int)(wxDP_SHOWCENTURY))); | |
38118 | } | |
38119 | { | |
38120 | PyDict_SetItemString(d,"DP_ALLOWNONE", SWIG_From_int((int)(wxDP_ALLOWNONE))); | |
38121 | } | |
d14a1e28 RD |
38122 | } |
38123 |