]>
Commit | Line | Data |
---|---|---|
1 | /* ---------------------------------------------------------------------------- | |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.24 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | ||
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); | |
26 | }; | |
27 | #endif | |
28 | ||
29 | ||
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 | |
37 | ||
38 | ||
39 | #include <Python.h> | |
40 | ||
41 | /*********************************************************************** | |
42 | * swigrun.swg | |
43 | * | |
44 | * This file contains generic CAPI SWIG runtime support for pointer | |
45 | * type checking. | |
46 | * | |
47 | ************************************************************************/ | |
48 | ||
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" | |
52 | ||
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) | |
58 | #else | |
59 | #define SWIG_TYPE_TABLE_NAME | |
60 | #endif | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #ifndef SWIGINLINE | |
65 | #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
66 | # define SWIGINLINE inline | |
67 | #else | |
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 | |
85 | #endif | |
86 | ||
87 | #ifdef __cplusplus | |
88 | extern "C" { | |
89 | #endif | |
90 | ||
91 | typedef void *(*swig_converter_func)(void *); | |
92 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
93 | ||
94 | typedef struct swig_type_info { | |
95 | const char *name; | |
96 | swig_converter_func converter; | |
97 | const char *str; | |
98 | void *clientdata; | |
99 | swig_dycast_func dcast; | |
100 | struct swig_type_info *next; | |
101 | struct swig_type_info *prev; | |
102 | } swig_type_info; | |
103 | ||
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 | } | |
375 | ||
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 | } | |
417 | ||
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 | } | |
430 | ||
431 | #ifdef __cplusplus | |
432 | } | |
433 | #endif | |
434 | ||
435 | /*********************************************************************** | |
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. | |
441 | * | |
442 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
443 | * | |
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. | |
448 | ************************************************************************/ | |
449 | ||
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 | ||
461 | #ifdef __cplusplus | |
462 | extern "C" { | |
463 | #endif | |
464 | ||
465 | ||
466 | /*************************************************************************/ | |
467 | ||
468 | ||
469 | /* The static type info list */ | |
470 | ||
471 | static swig_type_info *swig_type_list = 0; | |
472 | static swig_type_info **swig_type_list_handle = &swig_type_list; | |
473 | ||
474 | ||
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 | } | |
480 | ||
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 | } | |
486 | ||
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 | } | |
492 | ||
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 | } | |
502 | ||
503 | #ifdef __cplusplus | |
504 | } | |
505 | #endif | |
506 | ||
507 | /* ----------------------------------------------------------------------------- | |
508 | * SWIG API. Portion that goes into the runtime | |
509 | * ----------------------------------------------------------------------------- */ | |
510 | ||
511 | #ifdef __cplusplus | |
512 | extern "C" { | |
513 | #endif | |
514 | ||
515 | /* ----------------------------------------------------------------------------- | |
516 | * for internal method declarations | |
517 | * ----------------------------------------------------------------------------- */ | |
518 | ||
519 | #ifndef SWIGINTERN | |
520 | #define SWIGINTERN static | |
521 | #endif | |
522 | ||
523 | #ifndef SWIGINTERNSHORT | |
524 | #ifdef __cplusplus | |
525 | #define SWIGINTERNSHORT static inline | |
526 | #else /* C case */ | |
527 | #define SWIGINTERNSHORT static | |
528 | #endif /* __cplusplus */ | |
529 | #endif | |
530 | ||
531 | ||
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 | * ----------------------------------------------------------------------------- */ | |
551 | ||
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; | |
568 | ||
569 | ||
570 | /* ----------------------------------------------------------------------------- | |
571 | * Alloc. memory flags | |
572 | * ----------------------------------------------------------------------------- */ | |
573 | #define SWIG_OLDOBJ 1 | |
574 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
575 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
576 | ||
577 | #ifdef __cplusplus | |
578 | } | |
579 | #endif | |
580 | ||
581 | ||
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 | ************************************************************************/ | |
591 | ||
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 | ||
597 | ||
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) | |
601 | ||
602 | ||
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 | |
614 | ||
615 | /* Flags for pointer conversion */ | |
616 | #define SWIG_POINTER_EXCEPTION 0x1 | |
617 | #define SWIG_POINTER_DISOWN 0x2 | |
618 | ||
619 | ||
620 | #ifdef __cplusplus | |
621 | extern "C" { | |
622 | #endif | |
623 | ||
624 | /* ----------------------------------------------------------------------------- | |
625 | * Create a new pointer string | |
626 | * ----------------------------------------------------------------------------- */ | |
627 | ||
628 | #ifndef SWIG_BUFFER_SIZE | |
629 | #define SWIG_BUFFER_SIZE 1024 | |
630 | #endif | |
631 | ||
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 | * ----------------------------------------------------------------------------- */ | |
637 | ||
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) | |
648 | { | |
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; | |
655 | } | |
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; | |
664 | } | |
665 | ||
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 | } | |
673 | ||
674 | SWIGRUNTIME PyObject * | |
675 | PySwigObject_long(PySwigObject *v) | |
676 | { | |
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); | |
690 | } | |
691 | ||
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 | } | |
699 | ||
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; | |
706 | } else { | |
707 | void *i = v->ptr; | |
708 | void *j = w->ptr; | |
709 | return (i < j) ? -1 : (i > j) ? 1 : 0; | |
710 | } | |
711 | } | |
712 | ||
713 | SWIGRUNTIME void | |
714 | PySwigObject_dealloc(PySwigObject *self) | |
715 | { | |
716 | PyObject_DEL(self); | |
717 | } | |
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 */ | |
789 | #endif | |
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 | }; | |
797 | ||
798 | PySwigObject_Type = tmp; | |
799 | type_init = 1; | |
800 | } | |
801 | ||
802 | return &PySwigObject_Type; | |
803 | } | |
804 | ||
805 | SWIGRUNTIME PyObject * | |
806 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
807 | { | |
808 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_GetType()); | |
809 | if (self == NULL) return NULL; | |
810 | self->ptr = ptr; | |
811 | self->desc = desc; | |
812 | return (PyObject *)self; | |
813 | } | |
814 | ||
815 | SWIGRUNTIMEINLINE void * | |
816 | PySwigObject_AsVoidPtr(PyObject *self) | |
817 | { | |
818 | return ((PySwigObject *)self)->ptr; | |
819 | } | |
820 | ||
821 | SWIGRUNTIMEINLINE const char * | |
822 | PySwigObject_GetDesc(PyObject *self) | |
823 | { | |
824 | return ((PySwigObject *)self)->desc; | |
825 | } | |
826 | ||
827 | SWIGRUNTIMEINLINE int | |
828 | PySwigObject_Check(PyObject *op) { | |
829 | return ((op)->ob_type == PySwigObject_GetType()) | |
830 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
831 | } | |
832 | ||
833 | /* ----------------------------------------------------------------------------- | |
834 | * Implements a simple Swig Packed type, and use it instead of string | |
835 | * ----------------------------------------------------------------------------- */ | |
836 | ||
837 | typedef struct { | |
838 | PyObject_HEAD | |
839 | void *pack; | |
840 | const char *desc; | |
841 | size_t size; | |
842 | } PySwigPacked; | |
843 | ||
844 | SWIGRUNTIME int | |
845 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
846 | { | |
847 | char result[SWIG_BUFFER_SIZE]; | |
848 | fputs("<Swig Packed ", fp); | |
849 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
850 | fputs("at ", fp); | |
851 | fputs(result, fp); | |
852 | } | |
853 | fputs(v->desc,fp); | |
854 | fputs(">", fp); | |
855 | return 0; | |
856 | } | |
857 | ||
858 | SWIGRUNTIME PyObject * | |
859 | PySwigPacked_repr(PySwigPacked *v) | |
860 | { | |
861 | char result[SWIG_BUFFER_SIZE]; | |
862 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
863 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
864 | } else { | |
865 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
866 | } | |
867 | } | |
868 | ||
869 | SWIGRUNTIME PyObject * | |
870 | PySwigPacked_str(PySwigPacked *v) | |
871 | { | |
872 | char result[SWIG_BUFFER_SIZE]; | |
873 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
874 | return PyString_FromFormat("%s%s", result, v->desc); | |
875 | } else { | |
876 | return PyString_FromFormat("%s", v->desc); | |
877 | } | |
878 | } | |
879 | ||
880 | SWIGRUNTIME int | |
881 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
882 | { | |
883 | int c = strcmp(v->desc, w->desc); | |
884 | if (c) { | |
885 | return c; | |
886 | } else { | |
887 | size_t i = v->size; | |
888 | size_t j = w->size; | |
889 | int s = (i < j) ? -1 : (i > j) ? 1 : 0; | |
890 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
891 | } | |
892 | } | |
893 | ||
894 | SWIGRUNTIME void | |
895 | PySwigPacked_dealloc(PySwigPacked *self) | |
896 | { | |
897 | free(self->pack); | |
898 | PyObject_DEL(self); | |
899 | } | |
900 | ||
901 | SWIGRUNTIME PyTypeObject* | |
902 | PySwigPacked_GetType() { | |
903 | static char PySwigPacked_Type__doc__[] = | |
904 | "Swig object carries a C/C++ instance pointer"; | |
905 | static int type_init = 0; | |
906 | ||
907 | static PyTypeObject PySwigPacked_Type; | |
908 | if (!type_init) { | |
909 | PyTypeObject tmp = { | |
910 | PyObject_HEAD_INIT(&PyType_Type) | |
911 | 0, /*ob_size*/ | |
912 | "PySwigPacked", /*tp_name*/ | |
913 | sizeof(PySwigPacked), /*tp_basicsize*/ | |
914 | 0, /*tp_itemsize*/ | |
915 | /* methods */ | |
916 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
917 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
918 | (getattrfunc)0, /*tp_getattr*/ | |
919 | (setattrfunc)0, /*tp_setattr*/ | |
920 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
921 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
922 | 0, /*tp_as_number*/ | |
923 | 0, /*tp_as_sequence*/ | |
924 | 0, /*tp_as_mapping*/ | |
925 | (hashfunc)0, /*tp_hash*/ | |
926 | (ternaryfunc)0, /*tp_call*/ | |
927 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
928 | /* Space for future expansion */ | |
929 | 0L,0L,0L,0L, | |
930 | PySwigPacked_Type__doc__, /* Documentation string */ | |
931 | #if PY_VERSION_HEX >= 0x02000000 | |
932 | 0, /* tp_traverse */ | |
933 | 0, /* tp_clear */ | |
934 | #endif | |
935 | #if PY_VERSION_HEX >= 0x02010000 | |
936 | 0, /* tp_richcompare */ | |
937 | 0, /* tp_weaklistoffset */ | |
938 | #endif | |
939 | #if PY_VERSION_HEX >= 0x02020000 | |
940 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
941 | #endif | |
942 | #if PY_VERSION_HEX >= 0x02030000 | |
943 | 0, /* tp_del */ | |
944 | #endif | |
945 | #ifdef COUNT_ALLOCS | |
946 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
947 | #endif | |
948 | }; | |
949 | ||
950 | PySwigPacked_Type = tmp; | |
951 | type_init = 1; | |
952 | } | |
953 | ||
954 | ||
955 | ||
956 | return &PySwigPacked_Type; | |
957 | } | |
958 | ||
959 | SWIGRUNTIME PyObject * | |
960 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
961 | { | |
962 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_GetType()); | |
963 | if (self == NULL) { | |
964 | return NULL; | |
965 | } else { | |
966 | void *pack = malloc(size); | |
967 | memcpy(pack, ptr, size); | |
968 | self->pack = pack; | |
969 | self->desc = desc; | |
970 | self->size = size; | |
971 | return (PyObject *) self; | |
972 | } | |
973 | } | |
974 | ||
975 | SWIGRUNTIMEINLINE const char * | |
976 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
977 | { | |
978 | PySwigPacked *self = (PySwigPacked *)obj; | |
979 | if (self->size != size) return 0; | |
980 | memcpy(ptr, self->pack, size); | |
981 | return self->desc; | |
982 | } | |
983 | ||
984 | SWIGRUNTIMEINLINE const char * | |
985 | PySwigPacked_GetDesc(PyObject *self) | |
986 | { | |
987 | return ((PySwigPacked *)self)->desc; | |
988 | } | |
989 | ||
990 | SWIGRUNTIMEINLINE int | |
991 | PySwigPacked_Check(PyObject *op) { | |
992 | return ((op)->ob_type == PySwigPacked_GetType()) | |
993 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
994 | } | |
995 | ||
996 | #else | |
997 | /* ----------------------------------------------------------------------------- | |
998 | * Use the old Python PyCObject instead of PySwigObject | |
999 | * ----------------------------------------------------------------------------- */ | |
1000 | ||
1001 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1002 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1003 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1004 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1005 | ||
1006 | #endif | |
1007 | ||
1008 | #endif | |
1009 | ||
1010 | /* ----------------------------------------------------------------------------- | |
1011 | * errors manipulation | |
1012 | * ----------------------------------------------------------------------------- */ | |
1013 | ||
1014 | SWIGRUNTIME void | |
1015 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1016 | { | |
1017 | if (type) { | |
1018 | #if defined(SWIG_COBJECT_TYPES) | |
1019 | if (PySwigObject_Check(obj)) { | |
1020 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
1021 | if (otype) { | |
1022 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1023 | type, otype); | |
1024 | return; | |
1025 | } | |
1026 | } else | |
1027 | #endif | |
1028 | { | |
1029 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1030 | if (otype) { | |
1031 | PyObject *str = PyObject_Str(obj); | |
1032 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1033 | if (cstr) { | |
1034 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1035 | type, otype, cstr); | |
1036 | } else { | |
1037 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1038 | type, otype); | |
1039 | } | |
1040 | Py_DECREF(str); | |
1041 | return; | |
1042 | } | |
1043 | } | |
1044 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1045 | } else { | |
1046 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1047 | } | |
1048 | } | |
1049 | ||
1050 | SWIGRUNTIMEINLINE void | |
1051 | SWIG_Python_NullRef(const char *type) | |
1052 | { | |
1053 | if (type) { | |
1054 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1055 | } else { | |
1056 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1057 | } | |
1058 | } | |
1059 | ||
1060 | SWIGRUNTIME int | |
1061 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1062 | { | |
1063 | if (PyErr_Occurred()) { | |
1064 | PyObject *type = 0; | |
1065 | PyObject *value = 0; | |
1066 | PyObject *traceback = 0; | |
1067 | PyErr_Fetch(&type, &value, &traceback); | |
1068 | if (value) { | |
1069 | PyObject *old_str = PyObject_Str(value); | |
1070 | Py_XINCREF(type); | |
1071 | PyErr_Clear(); | |
1072 | if (infront) { | |
1073 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1074 | } else { | |
1075 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1076 | } | |
1077 | Py_DECREF(old_str); | |
1078 | } | |
1079 | return 1; | |
1080 | } else { | |
1081 | return 0; | |
1082 | } | |
1083 | } | |
1084 | ||
1085 | SWIGRUNTIME int | |
1086 | SWIG_Python_ArgFail(int argnum) | |
1087 | { | |
1088 | if (PyErr_Occurred()) { | |
1089 | /* add information about failing argument */ | |
1090 | char mesg[256]; | |
1091 | sprintf(mesg, "argument number %d:", argnum); | |
1092 | return SWIG_Python_AddErrMesg(mesg, 1); | |
1093 | } else { | |
1094 | return 0; | |
1095 | } | |
1096 | } | |
1097 | ||
1098 | ||
1099 | /* ----------------------------------------------------------------------------- | |
1100 | * pointers/data manipulation | |
1101 | * ----------------------------------------------------------------------------- */ | |
1102 | ||
1103 | /* Convert a pointer value */ | |
1104 | SWIGRUNTIME int | |
1105 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
1106 | swig_type_info *tc; | |
1107 | const char *c = 0; | |
1108 | static PyObject *SWIG_this = 0; | |
1109 | int newref = 0; | |
1110 | PyObject *pyobj = 0; | |
1111 | void *vptr; | |
1112 | ||
1113 | if (!obj) return 0; | |
1114 | if (obj == Py_None) { | |
1115 | *ptr = 0; | |
1116 | return 0; | |
1117 | } | |
1118 | ||
1119 | #ifdef SWIG_COBJECT_TYPES | |
1120 | if (!(PySwigObject_Check(obj))) { | |
1121 | if (!SWIG_this) | |
1122 | SWIG_this = PyString_FromString("this"); | |
1123 | pyobj = obj; | |
1124 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1125 | newref = 1; | |
1126 | if (!obj) goto type_error; | |
1127 | if (!PySwigObject_Check(obj)) { | |
1128 | Py_DECREF(obj); | |
1129 | goto type_error; | |
1130 | } | |
1131 | } | |
1132 | vptr = PySwigObject_AsVoidPtr(obj); | |
1133 | c = (const char *) PySwigObject_GetDesc(obj); | |
1134 | if (newref) { Py_DECREF(obj); } | |
1135 | goto type_check; | |
1136 | #else | |
1137 | if (!(PyString_Check(obj))) { | |
1138 | if (!SWIG_this) | |
1139 | SWIG_this = PyString_FromString("this"); | |
1140 | pyobj = obj; | |
1141 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1142 | newref = 1; | |
1143 | if (!obj) goto type_error; | |
1144 | if (!PyString_Check(obj)) { | |
1145 | Py_DECREF(obj); | |
1146 | goto type_error; | |
1147 | } | |
1148 | } | |
1149 | c = PyString_AS_STRING(obj); | |
1150 | /* Pointer values must start with leading underscore */ | |
1151 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1152 | if (newref) { Py_DECREF(obj); } | |
1153 | if (!c) goto type_error; | |
1154 | #endif | |
1155 | ||
1156 | type_check: | |
1157 | ||
1158 | if (ty) { | |
1159 | tc = SWIG_TypeCheck(c,ty); | |
1160 | if (!tc) goto type_error; | |
1161 | *ptr = SWIG_TypeCast(tc,vptr); | |
1162 | } else { | |
1163 | *ptr = vptr; | |
1164 | } | |
1165 | ||
1166 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { | |
1167 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1168 | } | |
1169 | return 0; | |
1170 | ||
1171 | type_error: | |
1172 | PyErr_Clear(); | |
1173 | if (pyobj && !obj) { | |
1174 | obj = pyobj; | |
1175 | if (PyCFunction_Check(obj)) { | |
1176 | /* here we get the method pointer for callbacks */ | |
1177 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1178 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1179 | if (c) { | |
1180 | c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name); | |
1181 | if (!c) goto type_error; | |
1182 | goto type_check; | |
1183 | } | |
1184 | } | |
1185 | } | |
1186 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1187 | if (ty) { | |
1188 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1189 | } else { | |
1190 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1191 | } | |
1192 | } | |
1193 | return -1; | |
1194 | } | |
1195 | ||
1196 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1197 | SWIGRUNTIME void * | |
1198 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1199 | void *result; | |
1200 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1201 | PyErr_Clear(); | |
1202 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1203 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1204 | SWIG_Python_ArgFail(argnum); | |
1205 | } | |
1206 | } | |
1207 | return result; | |
1208 | } | |
1209 | ||
1210 | /* Convert a packed value value */ | |
1211 | SWIGRUNTIME int | |
1212 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
1213 | swig_type_info *tc; | |
1214 | const char *c = 0; | |
1215 | ||
1216 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1217 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1218 | #else | |
1219 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
1220 | c = PyString_AS_STRING(obj); | |
1221 | /* Pointer values must start with leading underscore */ | |
1222 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1223 | #endif | |
1224 | if (!c) goto type_error; | |
1225 | if (ty) { | |
1226 | tc = SWIG_TypeCheck(c,ty); | |
1227 | if (!tc) goto type_error; | |
1228 | } | |
1229 | return 0; | |
1230 | ||
1231 | type_error: | |
1232 | PyErr_Clear(); | |
1233 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1234 | if (ty) { | |
1235 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1236 | } else { | |
1237 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1238 | } | |
1239 | } | |
1240 | return -1; | |
1241 | } | |
1242 | ||
1243 | /* Create a new array object */ | |
1244 | SWIGRUNTIME PyObject * | |
1245 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1246 | PyObject *robj = 0; | |
1247 | if (!ptr) { | |
1248 | Py_INCREF(Py_None); | |
1249 | return Py_None; | |
1250 | } | |
1251 | #ifdef SWIG_COBJECT_TYPES | |
1252 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1253 | #else | |
1254 | { | |
1255 | char result[SWIG_BUFFER_SIZE]; | |
1256 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1257 | PyString_FromString(result) : 0; | |
1258 | } | |
1259 | #endif | |
1260 | if (!robj || (robj == Py_None)) return robj; | |
1261 | if (type->clientdata) { | |
1262 | PyObject *inst; | |
1263 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1264 | Py_DECREF(robj); | |
1265 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1266 | Py_DECREF(args); | |
1267 | if (inst) { | |
1268 | if (own) { | |
1269 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1270 | } | |
1271 | robj = inst; | |
1272 | } | |
1273 | } | |
1274 | return robj; | |
1275 | } | |
1276 | ||
1277 | SWIGRUNTIME PyObject * | |
1278 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1279 | PyObject *robj = 0; | |
1280 | if (!ptr) { | |
1281 | Py_INCREF(Py_None); | |
1282 | return Py_None; | |
1283 | } | |
1284 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1285 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1286 | #else | |
1287 | { | |
1288 | char result[SWIG_BUFFER_SIZE]; | |
1289 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1290 | PyString_FromString(result) : 0; | |
1291 | } | |
1292 | #endif | |
1293 | return robj; | |
1294 | } | |
1295 | ||
1296 | /* -----------------------------------------------------------------------------* | |
1297 | * Get type list | |
1298 | * -----------------------------------------------------------------------------*/ | |
1299 | ||
1300 | #ifdef SWIG_LINK_RUNTIME | |
1301 | void *SWIG_ReturnGlobalTypeList(void *); | |
1302 | #endif | |
1303 | ||
1304 | SWIGRUNTIME swig_type_info ** | |
1305 | SWIG_Python_GetTypeListHandle() { | |
1306 | static void *type_pointer = (void *)0; | |
1307 | /* first check if module already created */ | |
1308 | if (!type_pointer) { | |
1309 | #ifdef SWIG_LINK_RUNTIME | |
1310 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1311 | #else | |
1312 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1313 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1314 | if (PyErr_Occurred()) { | |
1315 | PyErr_Clear(); | |
1316 | type_pointer = (void *)0; | |
1317 | } | |
1318 | } | |
1319 | #endif | |
1320 | return (swig_type_info **) type_pointer; | |
1321 | } | |
1322 | ||
1323 | /* | |
1324 | Search for a swig_type_info structure | |
1325 | */ | |
1326 | SWIGRUNTIMEINLINE swig_type_info * | |
1327 | SWIG_Python_GetTypeList() { | |
1328 | swig_type_info **tlh = SWIG_Python_GetTypeListHandle(); | |
1329 | return tlh ? *tlh : (swig_type_info*)0; | |
1330 | } | |
1331 | ||
1332 | #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList | |
1333 | ||
1334 | #ifdef __cplusplus | |
1335 | } | |
1336 | #endif | |
1337 | ||
1338 | ||
1339 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1340 | ||
1341 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
1342 | #define SWIGTYPE_p_wxSizer swig_types[1] | |
1343 | #define SWIGTYPE_p_wxCheckBox swig_types[2] | |
1344 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[3] | |
1345 | #define SWIGTYPE_p_wxEvent swig_types[4] | |
1346 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[5] | |
1347 | #define SWIGTYPE_p_bool swig_types[6] | |
1348 | #define SWIGTYPE_p_wxItemContainer swig_types[7] | |
1349 | #define SWIGTYPE_p_wxPyListCtrl swig_types[8] | |
1350 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[9] | |
1351 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
1352 | #define SWIGTYPE_p_wxStaticLine swig_types[11] | |
1353 | #define SWIGTYPE_p_wxControl swig_types[12] | |
1354 | #define SWIGTYPE_p_wxPyControl swig_types[13] | |
1355 | #define SWIGTYPE_p_wxGauge swig_types[14] | |
1356 | #define SWIGTYPE_p_wxToolBarBase swig_types[15] | |
1357 | #define SWIGTYPE_p_wxFont swig_types[16] | |
1358 | #define SWIGTYPE_p_wxToggleButton swig_types[17] | |
1359 | #define SWIGTYPE_p_wxRadioButton swig_types[18] | |
1360 | #define SWIGTYPE_p_wxChoice swig_types[19] | |
1361 | #define SWIGTYPE_p_wxMemoryDC swig_types[20] | |
1362 | #define SWIGTYPE_ptrdiff_t swig_types[21] | |
1363 | #define SWIGTYPE_std__ptrdiff_t swig_types[22] | |
1364 | #define SWIGTYPE_p_wxListItemAttr swig_types[23] | |
1365 | #define SWIGTYPE_p_void swig_types[24] | |
1366 | #define SWIGTYPE_p_int swig_types[25] | |
1367 | #define SWIGTYPE_p_wxSize swig_types[26] | |
1368 | #define SWIGTYPE_p_wxDC swig_types[27] | |
1369 | #define SWIGTYPE_p_wxListView swig_types[28] | |
1370 | #define SWIGTYPE_p_wxIcon swig_types[29] | |
1371 | #define SWIGTYPE_p_wxVisualAttributes swig_types[30] | |
1372 | #define SWIGTYPE_p_wxTextCtrl swig_types[31] | |
1373 | #define SWIGTYPE_p_wxNotebook swig_types[32] | |
1374 | #define SWIGTYPE_p_wxChoicebook swig_types[33] | |
1375 | #define SWIGTYPE_p_wxNotifyEvent swig_types[34] | |
1376 | #define SWIGTYPE_p_wxArrayString swig_types[35] | |
1377 | #define SWIGTYPE_p_form_ops_t swig_types[36] | |
1378 | #define SWIGTYPE_p_wxListbook swig_types[37] | |
1379 | #define SWIGTYPE_p_wxStaticBitmap swig_types[38] | |
1380 | #define SWIGTYPE_p_wxSlider swig_types[39] | |
1381 | #define SWIGTYPE_p_wxStaticBox swig_types[40] | |
1382 | #define SWIGTYPE_p_wxArrayInt swig_types[41] | |
1383 | #define SWIGTYPE_p_wxContextHelp swig_types[42] | |
1384 | #define SWIGTYPE_p_long swig_types[43] | |
1385 | #define SWIGTYPE_p_wxDuplexMode swig_types[44] | |
1386 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[45] | |
1387 | #define SWIGTYPE_p_wxEvtHandler swig_types[46] | |
1388 | #define SWIGTYPE_p_wxListEvent swig_types[47] | |
1389 | #define SWIGTYPE_p_wxCheckListBox swig_types[48] | |
1390 | #define SWIGTYPE_p_wxListBox swig_types[49] | |
1391 | #define SWIGTYPE_p_wxSpinButton swig_types[50] | |
1392 | #define SWIGTYPE_p_wxButton swig_types[51] | |
1393 | #define SWIGTYPE_p_wxBitmapButton swig_types[52] | |
1394 | #define SWIGTYPE_p_wxRect swig_types[53] | |
1395 | #define SWIGTYPE_p_wxContextHelpButton swig_types[54] | |
1396 | #define SWIGTYPE_p_wxRadioBox swig_types[55] | |
1397 | #define SWIGTYPE_p_wxScrollBar swig_types[56] | |
1398 | #define SWIGTYPE_p_char swig_types[57] | |
1399 | #define SWIGTYPE_p_wxComboBox swig_types[58] | |
1400 | #define SWIGTYPE_p_wxTreeItemId swig_types[59] | |
1401 | #define SWIGTYPE_p_wxHelpEvent swig_types[60] | |
1402 | #define SWIGTYPE_p_wxListItem swig_types[61] | |
1403 | #define SWIGTYPE_p_wxNotebookSizer swig_types[62] | |
1404 | #define SWIGTYPE_p_wxSpinEvent swig_types[63] | |
1405 | #define SWIGTYPE_p_wxGenericDragImage swig_types[64] | |
1406 | #define SWIGTYPE_p_wxSpinCtrl swig_types[65] | |
1407 | #define SWIGTYPE_p_wxPaperSize swig_types[66] | |
1408 | #define SWIGTYPE_p_wxImageList swig_types[67] | |
1409 | #define SWIGTYPE_p_wxHelpProvider swig_types[68] | |
1410 | #define SWIGTYPE_p_wxTextAttr swig_types[69] | |
1411 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[70] | |
1412 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[71] | |
1413 | #define SWIGTYPE_p_wxListbookEvent swig_types[72] | |
1414 | #define SWIGTYPE_p_wxNotebookEvent swig_types[73] | |
1415 | #define SWIGTYPE_p_wxPoint swig_types[74] | |
1416 | #define SWIGTYPE_p_wxObject swig_types[75] | |
1417 | #define SWIGTYPE_p_wxCursor swig_types[76] | |
1418 | #define SWIGTYPE_p_wxDateTime swig_types[77] | |
1419 | #define SWIGTYPE_p_wxKeyEvent swig_types[78] | |
1420 | #define SWIGTYPE_p_unsigned_long swig_types[79] | |
1421 | #define SWIGTYPE_p_wxWindow swig_types[80] | |
1422 | #define SWIGTYPE_p_wxString swig_types[81] | |
1423 | #define SWIGTYPE_p_wxBitmap swig_types[82] | |
1424 | #define SWIGTYPE_unsigned_int swig_types[83] | |
1425 | #define SWIGTYPE_p_unsigned_int swig_types[84] | |
1426 | #define SWIGTYPE_p_unsigned_char swig_types[85] | |
1427 | #define SWIGTYPE_p_wxMouseEvent swig_types[86] | |
1428 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[87] | |
1429 | #define SWIGTYPE_p_wxTreeEvent swig_types[88] | |
1430 | #define SWIGTYPE_p_wxCommandEvent swig_types[89] | |
1431 | #define SWIGTYPE_p_wxStaticText swig_types[90] | |
1432 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[91] | |
1433 | #define SWIGTYPE_p_wxControlWithItems swig_types[92] | |
1434 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[93] | |
1435 | #define SWIGTYPE_p_wxColour swig_types[94] | |
1436 | #define SWIGTYPE_p_wxToolBar swig_types[95] | |
1437 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[96] | |
1438 | #define SWIGTYPE_p_wxValidator swig_types[97] | |
1439 | static swig_type_info *swig_types[99]; | |
1440 | ||
1441 | /* -------- TYPES TABLE (END) -------- */ | |
1442 | ||
1443 | ||
1444 | /*----------------------------------------------- | |
1445 | @(target):= _controls_.so | |
1446 | ------------------------------------------------*/ | |
1447 | #define SWIG_init init_controls_ | |
1448 | ||
1449 | #define SWIG_name "_controls_" | |
1450 | ||
1451 | #include "wx/wxPython/wxPython.h" | |
1452 | #include "wx/wxPython/pyclasses.h" | |
1453 | ||
1454 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1455 | static const wxString wxPyEmptyString(wxEmptyString); | |
1456 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1457 | ||
1458 | const wxArrayString wxPyEmptyStringArray; | |
1459 | ||
1460 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
1461 | ||
1462 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1463 | #define SWIG_From_int PyInt_FromLong | |
1464 | /*@@*/ | |
1465 | ||
1466 | ||
1467 | #include <limits.h> | |
1468 | ||
1469 | ||
1470 | SWIGINTERN int | |
1471 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1472 | const char *errmsg) | |
1473 | { | |
1474 | if (value < min_value) { | |
1475 | if (errmsg) { | |
1476 | PyErr_Format(PyExc_OverflowError, | |
1477 | "value %ld is less than '%s' minimum %ld", | |
1478 | value, errmsg, min_value); | |
1479 | } | |
1480 | return 0; | |
1481 | } else if (value > max_value) { | |
1482 | if (errmsg) { | |
1483 | PyErr_Format(PyExc_OverflowError, | |
1484 | "value %ld is greater than '%s' maximum %ld", | |
1485 | value, errmsg, max_value); | |
1486 | } | |
1487 | return 0; | |
1488 | } | |
1489 | return 1; | |
1490 | } | |
1491 | ||
1492 | ||
1493 | SWIGINTERN int | |
1494 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1495 | { | |
1496 | if (PyNumber_Check(obj)) { | |
1497 | if (val) *val = PyInt_AsLong(obj); | |
1498 | return 1; | |
1499 | } | |
1500 | else { | |
1501 | SWIG_type_error("number", obj); | |
1502 | } | |
1503 | return 0; | |
1504 | } | |
1505 | ||
1506 | ||
1507 | #if INT_MAX != LONG_MAX | |
1508 | SWIGINTERN int | |
1509 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1510 | { | |
1511 | const char* errmsg = val ? "int" : (char*)0; | |
1512 | long v; | |
1513 | if (SWIG_AsVal_long(obj, &v)) { | |
1514 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
1515 | if (val) *val = (int)(v); | |
1516 | return 1; | |
1517 | } else { | |
1518 | return 0; | |
1519 | } | |
1520 | } else { | |
1521 | PyErr_Clear(); | |
1522 | } | |
1523 | if (val) { | |
1524 | SWIG_type_error(errmsg, obj); | |
1525 | } | |
1526 | return 0; | |
1527 | } | |
1528 | #else | |
1529 | SWIGINTERNSHORT int | |
1530 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1531 | { | |
1532 | return SWIG_AsVal_long(obj,(long*)val); | |
1533 | } | |
1534 | #endif | |
1535 | ||
1536 | ||
1537 | SWIGINTERNSHORT int | |
1538 | SWIG_As_int(PyObject* obj) | |
1539 | { | |
1540 | int v; | |
1541 | if (!SWIG_AsVal_int(obj, &v)) { | |
1542 | /* | |
1543 | this is needed to make valgrind/purify happier. | |
1544 | */ | |
1545 | memset((void*)&v, 0, sizeof(int)); | |
1546 | } | |
1547 | return v; | |
1548 | } | |
1549 | ||
1550 | ||
1551 | SWIGINTERNSHORT long | |
1552 | SWIG_As_long(PyObject* obj) | |
1553 | { | |
1554 | long v; | |
1555 | if (!SWIG_AsVal_long(obj, &v)) { | |
1556 | /* | |
1557 | this is needed to make valgrind/purify happier. | |
1558 | */ | |
1559 | memset((void*)&v, 0, sizeof(long)); | |
1560 | } | |
1561 | return v; | |
1562 | } | |
1563 | ||
1564 | ||
1565 | SWIGINTERNSHORT int | |
1566 | SWIG_Check_int(PyObject* obj) | |
1567 | { | |
1568 | return SWIG_AsVal_int(obj, (int*)0); | |
1569 | } | |
1570 | ||
1571 | ||
1572 | SWIGINTERNSHORT int | |
1573 | SWIG_Check_long(PyObject* obj) | |
1574 | { | |
1575 | return SWIG_AsVal_long(obj, (long*)0); | |
1576 | } | |
1577 | ||
1578 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
1579 | ||
1580 | SWIGINTERN int | |
1581 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
1582 | { | |
1583 | if (obj == Py_True) { | |
1584 | if (val) *val = true; | |
1585 | return 1; | |
1586 | } | |
1587 | if (obj == Py_False) { | |
1588 | if (val) *val = false; | |
1589 | return 1; | |
1590 | } | |
1591 | int res = 0; | |
1592 | if (SWIG_AsVal_int(obj, &res)) { | |
1593 | if (val) *val = res ? true : false; | |
1594 | return 1; | |
1595 | } else { | |
1596 | PyErr_Clear(); | |
1597 | } | |
1598 | if (val) { | |
1599 | SWIG_type_error("bool", obj); | |
1600 | } | |
1601 | return 0; | |
1602 | } | |
1603 | ||
1604 | ||
1605 | SWIGINTERNSHORT bool | |
1606 | SWIG_As_bool(PyObject* obj) | |
1607 | { | |
1608 | bool v; | |
1609 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1610 | /* | |
1611 | this is needed to make valgrind/purify happier. | |
1612 | */ | |
1613 | memset((void*)&v, 0, sizeof(bool)); | |
1614 | } | |
1615 | return v; | |
1616 | } | |
1617 | ||
1618 | ||
1619 | SWIGINTERNSHORT int | |
1620 | SWIG_Check_bool(PyObject* obj) | |
1621 | { | |
1622 | return SWIG_AsVal_bool(obj, (bool*)0); | |
1623 | } | |
1624 | ||
1625 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
1626 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
1627 | ||
1628 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1629 | #define SWIG_From_long PyInt_FromLong | |
1630 | /*@@*/ | |
1631 | ||
1632 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
1633 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
1634 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
1635 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
1636 | ||
1637 | #include <wx/checklst.h> | |
1638 | ||
1639 | ||
1640 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
1641 | static void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ | |
1642 | if (clientData) { | |
1643 | wxPyClientData* data = new wxPyClientData(clientData); | |
1644 | self->Insert(item, pos, data); | |
1645 | } else | |
1646 | self->Insert(item, pos); | |
1647 | } | |
1648 | static PyObject *wxListBox_GetSelections(wxListBox *self){ | |
1649 | wxArrayInt lst; | |
1650 | self->GetSelections(lst); | |
1651 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
1652 | for(size_t i=0; i<lst.GetCount(); i++) { | |
1653 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
1654 | } | |
1655 | return tup; | |
1656 | } | |
1657 | static void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ | |
1658 | #ifdef __WXMSW__ | |
1659 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1660 | self->GetItem(item)->SetTextColour(c); | |
1661 | #endif | |
1662 | } | |
1663 | static void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
1664 | #ifdef __WXMSW__ | |
1665 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1666 | self->GetItem(item)->SetBackgroundColour(c); | |
1667 | #endif | |
1668 | } | |
1669 | static void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
1670 | #ifdef __WXMSW__ | |
1671 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1672 | self->GetItem(item)->SetFont(f); | |
1673 | #endif | |
1674 | } | |
1675 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
1676 | ||
1677 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
1678 | PyObject* o2; | |
1679 | PyObject* o3; | |
1680 | ||
1681 | if (!target) { | |
1682 | target = o; | |
1683 | } else if (target == Py_None) { | |
1684 | Py_DECREF(Py_None); | |
1685 | target = o; | |
1686 | } else { | |
1687 | if (!PyTuple_Check(target)) { | |
1688 | o2 = target; | |
1689 | target = PyTuple_New(1); | |
1690 | PyTuple_SetItem(target, 0, o2); | |
1691 | } | |
1692 | o3 = PyTuple_New(1); | |
1693 | PyTuple_SetItem(o3, 0, o); | |
1694 | ||
1695 | o2 = target; | |
1696 | target = PySequence_Concat(o2, o3); | |
1697 | Py_DECREF(o2); | |
1698 | Py_DECREF(o3); | |
1699 | } | |
1700 | return target; | |
1701 | } | |
1702 | ||
1703 | ||
1704 | ||
1705 | SWIGINTERN int | |
1706 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
1707 | { | |
1708 | long v = 0; | |
1709 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1710 | SWIG_type_error("unsigned number", obj); | |
1711 | } | |
1712 | else if (val) | |
1713 | *val = (unsigned long)v; | |
1714 | return 1; | |
1715 | } | |
1716 | ||
1717 | ||
1718 | SWIGINTERNSHORT unsigned long | |
1719 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
1720 | { | |
1721 | unsigned long v; | |
1722 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1723 | /* | |
1724 | this is needed to make valgrind/purify happier. | |
1725 | */ | |
1726 | memset((void*)&v, 0, sizeof(unsigned long)); | |
1727 | } | |
1728 | return v; | |
1729 | } | |
1730 | ||
1731 | ||
1732 | SWIGINTERNSHORT int | |
1733 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1734 | { | |
1735 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
1736 | } | |
1737 | ||
1738 | static void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
1739 | self->AppendText(text); | |
1740 | } | |
1741 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
1742 | return self->GetValue().Mid(from, to - from); | |
1743 | } | |
1744 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
1745 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
1746 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
1747 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
1748 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
1749 | ||
1750 | #include <wx/slider.h> | |
1751 | ||
1752 | ||
1753 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
1754 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
1755 | ||
1756 | #if !wxUSE_TOGGLEBTN | |
1757 | // implement dummy items for platforms that don't have this class | |
1758 | ||
1759 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
1760 | ||
1761 | class wxToggleButton : public wxControl | |
1762 | { | |
1763 | public: | |
1764 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
1765 | const wxPoint&, const wxSize&, long, | |
1766 | const wxValidator&, const wxString&) | |
1767 | { wxPyRaiseNotImplemented(); } | |
1768 | ||
1769 | wxToggleButton() | |
1770 | { wxPyRaiseNotImplemented(); } | |
1771 | }; | |
1772 | #endif | |
1773 | ||
1774 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); | |
1775 | ||
1776 | SWIGINTERNSHORT PyObject* | |
1777 | SWIG_From_unsigned_SS_long(unsigned long value) | |
1778 | { | |
1779 | return (value > LONG_MAX) ? | |
1780 | PyLong_FromUnsignedLong(value) | |
1781 | : PyInt_FromLong((long)(value)); | |
1782 | } | |
1783 | ||
1784 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
1785 | static PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ | |
1786 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
1787 | if (udata) { | |
1788 | Py_INCREF(udata->m_obj); | |
1789 | return udata->m_obj; | |
1790 | } else { | |
1791 | Py_INCREF(Py_None); | |
1792 | return Py_None; | |
1793 | } | |
1794 | } | |
1795 | static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
1796 | self->SetClientData(new wxPyUserData(clientData)); | |
1797 | } | |
1798 | 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){ | |
1799 | wxPyUserData* udata = NULL; | |
1800 | if (clientData && clientData != Py_None) | |
1801 | udata = new wxPyUserData(clientData); | |
1802 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
1803 | shortHelp, longHelp, udata); | |
1804 | } | |
1805 | 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){ | |
1806 | wxPyUserData* udata = NULL; | |
1807 | if (clientData && clientData != Py_None) | |
1808 | udata = new wxPyUserData(clientData); | |
1809 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
1810 | shortHelp, longHelp, udata); | |
1811 | } | |
1812 | static PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
1813 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
1814 | if (udata) { | |
1815 | Py_INCREF(udata->m_obj); | |
1816 | return udata->m_obj; | |
1817 | } else { | |
1818 | Py_INCREF(Py_None); | |
1819 | return Py_None; | |
1820 | } | |
1821 | } | |
1822 | static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
1823 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
1824 | } | |
1825 | ||
1826 | #include <wx/listctrl.h> | |
1827 | ||
1828 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); | |
1829 | static void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
1830 | // Python aware sorting function for wxPyListCtrl | |
1831 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
1832 | int retval = 0; | |
1833 | PyObject* func = (PyObject*)funcPtr; | |
1834 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
1835 | ||
1836 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
1837 | PyObject* result = PyEval_CallObject(func, args); | |
1838 | Py_DECREF(args); | |
1839 | if (result) { | |
1840 | retval = PyInt_AsLong(result); | |
1841 | Py_DECREF(result); | |
1842 | } | |
1843 | ||
1844 | wxPyEndBlockThreads(blocked); | |
1845 | return retval; | |
1846 | } | |
1847 | ||
1848 | // C++ Version of a Python aware class | |
1849 | class wxPyListCtrl : public wxListCtrl { | |
1850 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
1851 | public: | |
1852 | wxPyListCtrl() : wxListCtrl() {} | |
1853 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
1854 | const wxPoint& pos, | |
1855 | const wxSize& size, | |
1856 | long style, | |
1857 | const wxValidator& validator, | |
1858 | const wxString& name) : | |
1859 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
1860 | ||
1861 | bool Create(wxWindow* parent, wxWindowID id, | |
1862 | const wxPoint& pos, | |
1863 | const wxSize& size, | |
1864 | long style, | |
1865 | const wxValidator& validator, | |
1866 | const wxString& name) { | |
1867 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
1868 | } | |
1869 | ||
1870 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
1871 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
1872 | ||
1873 | // use the virtual version to avoid a confusing assert in the base class | |
1874 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
1875 | ||
1876 | PYPRIVATE; | |
1877 | }; | |
1878 | ||
1879 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
1880 | ||
1881 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
1882 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
1883 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
1884 | ||
1885 | ||
1886 | static wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
1887 | wxListItem item; | |
1888 | item.SetMask( wxLIST_MASK_STATE | | |
1889 | wxLIST_MASK_TEXT | | |
1890 | wxLIST_MASK_IMAGE | | |
1891 | wxLIST_MASK_DATA | | |
1892 | wxLIST_SET_ITEM | | |
1893 | wxLIST_MASK_WIDTH | | |
1894 | wxLIST_MASK_FORMAT | |
1895 | ); | |
1896 | if (self->GetColumn(col, item)) | |
1897 | return new wxListItem(item); | |
1898 | else | |
1899 | return NULL; | |
1900 | } | |
1901 | static wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ | |
1902 | wxListItem* info = new wxListItem; | |
1903 | info->m_itemId = itemId; | |
1904 | info->m_col = col; | |
1905 | info->m_mask = 0xFFFF; | |
1906 | self->GetItem(*info); | |
1907 | return info; | |
1908 | } | |
1909 | static wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
1910 | wxPoint pos; | |
1911 | self->GetItemPosition(item, pos); | |
1912 | return pos; | |
1913 | } | |
1914 | static wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ | |
1915 | wxRect rect; | |
1916 | self->GetItemRect(item, rect, code); | |
1917 | return rect; | |
1918 | } | |
1919 | ||
1920 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
1921 | if (!PyCallable_Check(func)) | |
1922 | return false; | |
1923 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); | |
1924 | } | |
1925 | static wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
1926 | ||
1927 | ||
1928 | ||
1929 | return (wxWindow*)self->m_mainWin; | |
1930 | ||
1931 | } | |
1932 | ||
1933 | #include <wx/treectrl.h> | |
1934 | #include "wx/wxPython/pytree.h" | |
1935 | ||
1936 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
1937 | static bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } | |
1938 | static bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
1939 | static void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
1940 | // C++ version of Python aware wxTreeCtrl | |
1941 | class wxPyTreeCtrl : public wxTreeCtrl { | |
1942 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
1943 | public: | |
1944 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
1945 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
1946 | const wxPoint& pos, | |
1947 | const wxSize& size, | |
1948 | long style, | |
1949 | const wxValidator& validator, | |
1950 | const wxString& name) : | |
1951 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
1952 | ||
1953 | bool Create(wxWindow *parent, wxWindowID id, | |
1954 | const wxPoint& pos, | |
1955 | const wxSize& size, | |
1956 | long style, | |
1957 | const wxValidator& validator, | |
1958 | const wxString& name) { | |
1959 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
1960 | } | |
1961 | ||
1962 | ||
1963 | int OnCompareItems(const wxTreeItemId& item1, | |
1964 | const wxTreeItemId& item2) { | |
1965 | int rval = 0; | |
1966 | bool found; | |
1967 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
1968 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
1969 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); | |
1970 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
1971 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); | |
1972 | Py_DECREF(o1); | |
1973 | Py_DECREF(o2); | |
1974 | } | |
1975 | wxPyEndBlockThreads(blocked); | |
1976 | if (! found) | |
1977 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
1978 | return rval; | |
1979 | } | |
1980 | PYPRIVATE; | |
1981 | }; | |
1982 | ||
1983 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
1984 | ||
1985 | ||
1986 | ||
1987 | #if UINT_MAX < LONG_MAX | |
1988 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1989 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1990 | /*@@*/ | |
1991 | #else | |
1992 | /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ | |
1993 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1994 | /*@@*/ | |
1995 | #endif | |
1996 | ||
1997 | ||
1998 | SWIGINTERNSHORT int | |
1999 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
2000 | unsigned long max_value, | |
2001 | const char *errmsg) | |
2002 | { | |
2003 | if (value > max_value) { | |
2004 | if (errmsg) { | |
2005 | PyErr_Format(PyExc_OverflowError, | |
2006 | "value %lu is greater than '%s' minimum %lu", | |
2007 | value, errmsg, max_value); | |
2008 | } | |
2009 | return 0; | |
2010 | } | |
2011 | return 1; | |
2012 | } | |
2013 | ||
2014 | ||
2015 | #if UINT_MAX != ULONG_MAX | |
2016 | SWIGINTERN int | |
2017 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
2018 | { | |
2019 | const char* errmsg = val ? "unsigned int" : (char*)0; | |
2020 | unsigned long v; | |
2021 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
2022 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
2023 | if (val) *val = (unsigned int)(v); | |
2024 | return 1; | |
2025 | } | |
2026 | } else { | |
2027 | PyErr_Clear(); | |
2028 | } | |
2029 | if (val) { | |
2030 | SWIG_type_error(errmsg, obj); | |
2031 | } | |
2032 | return 0; | |
2033 | } | |
2034 | #else | |
2035 | SWIGINTERNSHORT unsigned int | |
2036 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
2037 | { | |
2038 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2039 | } | |
2040 | #endif | |
2041 | ||
2042 | ||
2043 | SWIGINTERNSHORT unsigned int | |
2044 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
2045 | { | |
2046 | unsigned int v; | |
2047 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2048 | /* | |
2049 | this is needed to make valgrind/purify happier. | |
2050 | */ | |
2051 | memset((void*)&v, 0, sizeof(unsigned int)); | |
2052 | } | |
2053 | return v; | |
2054 | } | |
2055 | ||
2056 | ||
2057 | SWIGINTERNSHORT int | |
2058 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
2059 | { | |
2060 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
2061 | } | |
2062 | ||
2063 | static wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
2064 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
2065 | if (data == NULL) { | |
2066 | data = new wxPyTreeItemData(); | |
2067 | data->SetId(item); // set the id | |
2068 | self->SetItemData(item, data); | |
2069 | } | |
2070 | return data; | |
2071 | } | |
2072 | static PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
2073 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
2074 | if (data == NULL) { | |
2075 | data = new wxPyTreeItemData(); | |
2076 | data->SetId(item); // set the id | |
2077 | self->SetItemData(item, data); | |
2078 | } | |
2079 | return data->GetData(); | |
2080 | } | |
2081 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
2082 | data->SetId(item); // set the id | |
2083 | self->SetItemData(item, data); | |
2084 | } | |
2085 | static void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
2086 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
2087 | if (data == NULL) { | |
2088 | data = new wxPyTreeItemData(obj); | |
2089 | data->SetId(item); // set the id | |
2090 | self->SetItemData(item, data); | |
2091 | } else | |
2092 | data->SetData(obj); | |
2093 | } | |
2094 | static PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
2095 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2096 | PyObject* rval = PyList_New(0); | |
2097 | wxArrayTreeItemIds array; | |
2098 | size_t num, x; | |
2099 | num = self->GetSelections(array); | |
2100 | for (x=0; x < num; x++) { | |
2101 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
2102 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); | |
2103 | PyList_Append(rval, item); | |
2104 | Py_DECREF(item); | |
2105 | } | |
2106 | wxPyEndBlockThreads(blocked); | |
2107 | return rval; | |
2108 | } | |
2109 | static PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
2110 | void* cookie = 0; | |
2111 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
2112 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2113 | PyObject* tup = PyTuple_New(2); | |
2114 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); | |
2115 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
2116 | wxPyEndBlockThreads(blocked); | |
2117 | return tup; | |
2118 | } | |
2119 | static PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ | |
2120 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
2121 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2122 | PyObject* tup = PyTuple_New(2); | |
2123 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); | |
2124 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
2125 | wxPyEndBlockThreads(blocked); | |
2126 | return tup; | |
2127 | } | |
2128 | static PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ | |
2129 | wxRect rect; | |
2130 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
2131 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
2132 | wxRect* r = new wxRect(rect); | |
2133 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); | |
2134 | wxPyEndBlockThreads(blocked); | |
2135 | return val; | |
2136 | } | |
2137 | else | |
2138 | RETURN_NONE(); | |
2139 | } | |
2140 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
2141 | ||
2142 | SWIGINTERNSHORT PyObject* | |
2143 | SWIG_From_bool(bool value) | |
2144 | { | |
2145 | PyObject *obj = value ? Py_True : Py_False; | |
2146 | Py_INCREF(obj); | |
2147 | return obj; | |
2148 | } | |
2149 | ||
2150 | ||
2151 | // C++ version of Python aware wxControl | |
2152 | class wxPyControl : public wxControl | |
2153 | { | |
2154 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
2155 | public: | |
2156 | wxPyControl() : wxControl() {} | |
2157 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
2158 | const wxPoint& pos = wxDefaultPosition, | |
2159 | const wxSize& size = wxDefaultSize, | |
2160 | long style = 0, | |
2161 | const wxValidator& validator=wxDefaultValidator, | |
2162 | const wxString& name = wxPyControlNameStr) | |
2163 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
2164 | ||
2165 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } | |
2166 | ||
2167 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
2168 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
2169 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
2170 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
2171 | ||
2172 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
2173 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
2174 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
2175 | ||
2176 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
2177 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
2178 | ||
2179 | DEC_PYCALLBACK__(InitDialog); | |
2180 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
2181 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
2182 | DEC_PYCALLBACK_BOOL_(Validate); | |
2183 | ||
2184 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
2185 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
2186 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
2187 | ||
2188 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
2189 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
2190 | ||
2191 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); | |
2192 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); | |
2193 | ||
2194 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); | |
2195 | ||
2196 | PYPRIVATE; | |
2197 | }; | |
2198 | ||
2199 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
2200 | ||
2201 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
2202 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
2203 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
2204 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
2205 | ||
2206 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
2207 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
2208 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
2209 | ||
2210 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
2211 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
2212 | ||
2213 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
2214 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
2215 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
2216 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
2217 | ||
2218 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
2219 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
2220 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
2221 | ||
2222 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
2223 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
2224 | ||
2225 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); | |
2226 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); | |
2227 | ||
2228 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); | |
2229 | ||
2230 | ||
2231 | ||
2232 | static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
2233 | ||
2234 | #include <wx/generic/dragimgg.h> | |
2235 | ||
2236 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); | |
2237 | static wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ | |
2238 | wxDateTime rv; | |
2239 | self->GetRange(&rv, NULL); | |
2240 | return rv; | |
2241 | } | |
2242 | static wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ | |
2243 | wxDateTime rv; | |
2244 | self->GetRange(NULL, &rv); | |
2245 | return rv; | |
2246 | } | |
2247 | #ifdef __cplusplus | |
2248 | extern "C" { | |
2249 | #endif | |
2250 | static int _wrap_ButtonNameStr_set(PyObject *) { | |
2251 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
2252 | return 1; | |
2253 | } | |
2254 | ||
2255 | ||
2256 | static PyObject *_wrap_ButtonNameStr_get(void) { | |
2257 | PyObject *pyobj; | |
2258 | ||
2259 | { | |
2260 | #if wxUSE_UNICODE | |
2261 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2262 | #else | |
2263 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2264 | #endif | |
2265 | } | |
2266 | return pyobj; | |
2267 | } | |
2268 | ||
2269 | ||
2270 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { | |
2271 | PyObject *resultobj; | |
2272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2273 | int arg2 = (int) -1 ; | |
2274 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2275 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2276 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2277 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2278 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2279 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2280 | long arg6 = (long) 0 ; | |
2281 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2282 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2283 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2284 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2285 | wxButton *result; | |
2286 | bool temp3 = false ; | |
2287 | wxPoint temp4 ; | |
2288 | wxSize temp5 ; | |
2289 | bool temp8 = false ; | |
2290 | PyObject * obj0 = 0 ; | |
2291 | PyObject * obj1 = 0 ; | |
2292 | PyObject * obj2 = 0 ; | |
2293 | PyObject * obj3 = 0 ; | |
2294 | PyObject * obj4 = 0 ; | |
2295 | PyObject * obj5 = 0 ; | |
2296 | PyObject * obj6 = 0 ; | |
2297 | PyObject * obj7 = 0 ; | |
2298 | char *kwnames[] = { | |
2299 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2300 | }; | |
2301 | ||
2302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2305 | if (obj1) { | |
2306 | { | |
2307 | arg2 = (int)(SWIG_As_int(obj1)); | |
2308 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2309 | } | |
2310 | } | |
2311 | if (obj2) { | |
2312 | { | |
2313 | arg3 = wxString_in_helper(obj2); | |
2314 | if (arg3 == NULL) SWIG_fail; | |
2315 | temp3 = true; | |
2316 | } | |
2317 | } | |
2318 | if (obj3) { | |
2319 | { | |
2320 | arg4 = &temp4; | |
2321 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2322 | } | |
2323 | } | |
2324 | if (obj4) { | |
2325 | { | |
2326 | arg5 = &temp5; | |
2327 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2328 | } | |
2329 | } | |
2330 | if (obj5) { | |
2331 | { | |
2332 | arg6 = (long)(SWIG_As_long(obj5)); | |
2333 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2334 | } | |
2335 | } | |
2336 | if (obj6) { | |
2337 | { | |
2338 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2339 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2340 | if (arg7 == NULL) { | |
2341 | SWIG_null_ref("wxValidator"); | |
2342 | } | |
2343 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2344 | } | |
2345 | } | |
2346 | if (obj7) { | |
2347 | { | |
2348 | arg8 = wxString_in_helper(obj7); | |
2349 | if (arg8 == NULL) SWIG_fail; | |
2350 | temp8 = true; | |
2351 | } | |
2352 | } | |
2353 | { | |
2354 | if (!wxPyCheckForApp()) SWIG_fail; | |
2355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2356 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2357 | ||
2358 | wxPyEndAllowThreads(__tstate); | |
2359 | if (PyErr_Occurred()) SWIG_fail; | |
2360 | } | |
2361 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); | |
2362 | { | |
2363 | if (temp3) | |
2364 | delete arg3; | |
2365 | } | |
2366 | { | |
2367 | if (temp8) | |
2368 | delete arg8; | |
2369 | } | |
2370 | return resultobj; | |
2371 | fail: | |
2372 | { | |
2373 | if (temp3) | |
2374 | delete arg3; | |
2375 | } | |
2376 | { | |
2377 | if (temp8) | |
2378 | delete arg8; | |
2379 | } | |
2380 | return NULL; | |
2381 | } | |
2382 | ||
2383 | ||
2384 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject *resultobj; | |
2386 | wxButton *result; | |
2387 | char *kwnames[] = { | |
2388 | NULL | |
2389 | }; | |
2390 | ||
2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
2392 | { | |
2393 | if (!wxPyCheckForApp()) SWIG_fail; | |
2394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2395 | result = (wxButton *)new wxButton(); | |
2396 | ||
2397 | wxPyEndAllowThreads(__tstate); | |
2398 | if (PyErr_Occurred()) SWIG_fail; | |
2399 | } | |
2400 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); | |
2401 | return resultobj; | |
2402 | fail: | |
2403 | return NULL; | |
2404 | } | |
2405 | ||
2406 | ||
2407 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
2408 | PyObject *resultobj; | |
2409 | wxButton *arg1 = (wxButton *) 0 ; | |
2410 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2411 | int arg3 = (int) -1 ; | |
2412 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2413 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2414 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2415 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2416 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2417 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2418 | long arg7 = (long) 0 ; | |
2419 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2420 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2421 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2422 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2423 | bool result; | |
2424 | bool temp4 = false ; | |
2425 | wxPoint temp5 ; | |
2426 | wxSize temp6 ; | |
2427 | bool temp9 = false ; | |
2428 | PyObject * obj0 = 0 ; | |
2429 | PyObject * obj1 = 0 ; | |
2430 | PyObject * obj2 = 0 ; | |
2431 | PyObject * obj3 = 0 ; | |
2432 | PyObject * obj4 = 0 ; | |
2433 | PyObject * obj5 = 0 ; | |
2434 | PyObject * obj6 = 0 ; | |
2435 | PyObject * obj7 = 0 ; | |
2436 | PyObject * obj8 = 0 ; | |
2437 | char *kwnames[] = { | |
2438 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2439 | }; | |
2440 | ||
2441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2442 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
2443 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2444 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2445 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2446 | if (obj2) { | |
2447 | { | |
2448 | arg3 = (int)(SWIG_As_int(obj2)); | |
2449 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2450 | } | |
2451 | } | |
2452 | if (obj3) { | |
2453 | { | |
2454 | arg4 = wxString_in_helper(obj3); | |
2455 | if (arg4 == NULL) SWIG_fail; | |
2456 | temp4 = true; | |
2457 | } | |
2458 | } | |
2459 | if (obj4) { | |
2460 | { | |
2461 | arg5 = &temp5; | |
2462 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2463 | } | |
2464 | } | |
2465 | if (obj5) { | |
2466 | { | |
2467 | arg6 = &temp6; | |
2468 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2469 | } | |
2470 | } | |
2471 | if (obj6) { | |
2472 | { | |
2473 | arg7 = (long)(SWIG_As_long(obj6)); | |
2474 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2475 | } | |
2476 | } | |
2477 | if (obj7) { | |
2478 | { | |
2479 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2480 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2481 | if (arg8 == NULL) { | |
2482 | SWIG_null_ref("wxValidator"); | |
2483 | } | |
2484 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2485 | } | |
2486 | } | |
2487 | if (obj8) { | |
2488 | { | |
2489 | arg9 = wxString_in_helper(obj8); | |
2490 | if (arg9 == NULL) SWIG_fail; | |
2491 | temp9 = true; | |
2492 | } | |
2493 | } | |
2494 | { | |
2495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2496 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2497 | ||
2498 | wxPyEndAllowThreads(__tstate); | |
2499 | if (PyErr_Occurred()) SWIG_fail; | |
2500 | } | |
2501 | { | |
2502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2503 | } | |
2504 | { | |
2505 | if (temp4) | |
2506 | delete arg4; | |
2507 | } | |
2508 | { | |
2509 | if (temp9) | |
2510 | delete arg9; | |
2511 | } | |
2512 | return resultobj; | |
2513 | fail: | |
2514 | { | |
2515 | if (temp4) | |
2516 | delete arg4; | |
2517 | } | |
2518 | { | |
2519 | if (temp9) | |
2520 | delete arg9; | |
2521 | } | |
2522 | return NULL; | |
2523 | } | |
2524 | ||
2525 | ||
2526 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { | |
2527 | PyObject *resultobj; | |
2528 | wxButton *arg1 = (wxButton *) 0 ; | |
2529 | PyObject * obj0 = 0 ; | |
2530 | char *kwnames[] = { | |
2531 | (char *) "self", NULL | |
2532 | }; | |
2533 | ||
2534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
2535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); | |
2536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2537 | { | |
2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2539 | (arg1)->SetDefault(); | |
2540 | ||
2541 | wxPyEndAllowThreads(__tstate); | |
2542 | if (PyErr_Occurred()) SWIG_fail; | |
2543 | } | |
2544 | Py_INCREF(Py_None); resultobj = Py_None; | |
2545 | return resultobj; | |
2546 | fail: | |
2547 | return NULL; | |
2548 | } | |
2549 | ||
2550 | ||
2551 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
2552 | PyObject *resultobj; | |
2553 | wxSize result; | |
2554 | char *kwnames[] = { | |
2555 | NULL | |
2556 | }; | |
2557 | ||
2558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
2559 | { | |
2560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2561 | result = wxButton::GetDefaultSize(); | |
2562 | ||
2563 | wxPyEndAllowThreads(__tstate); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
2565 | } | |
2566 | { | |
2567 | wxSize * resultptr; | |
2568 | resultptr = new wxSize((wxSize &)(result)); | |
2569 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2570 | } | |
2571 | return resultobj; | |
2572 | fail: | |
2573 | return NULL; | |
2574 | } | |
2575 | ||
2576 | ||
2577 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
2578 | PyObject *resultobj; | |
2579 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
2580 | wxVisualAttributes result; | |
2581 | PyObject * obj0 = 0 ; | |
2582 | char *kwnames[] = { | |
2583 | (char *) "variant", NULL | |
2584 | }; | |
2585 | ||
2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2587 | if (obj0) { | |
2588 | { | |
2589 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
2590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2591 | } | |
2592 | } | |
2593 | { | |
2594 | if (!wxPyCheckForApp()) SWIG_fail; | |
2595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2596 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2597 | ||
2598 | wxPyEndAllowThreads(__tstate); | |
2599 | if (PyErr_Occurred()) SWIG_fail; | |
2600 | } | |
2601 | { | |
2602 | wxVisualAttributes * resultptr; | |
2603 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
2604 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2605 | } | |
2606 | return resultobj; | |
2607 | fail: | |
2608 | return NULL; | |
2609 | } | |
2610 | ||
2611 | ||
2612 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { | |
2613 | PyObject *obj; | |
2614 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2615 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
2616 | Py_INCREF(obj); | |
2617 | return Py_BuildValue((char *)""); | |
2618 | } | |
2619 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject *resultobj; | |
2621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2622 | int arg2 = (int) -1 ; | |
2623 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
2624 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
2625 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2626 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2627 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2628 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2629 | long arg6 = (long) wxBU_AUTODRAW ; | |
2630 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2631 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2632 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2633 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2634 | wxBitmapButton *result; | |
2635 | wxPoint temp4 ; | |
2636 | wxSize temp5 ; | |
2637 | bool temp8 = false ; | |
2638 | PyObject * obj0 = 0 ; | |
2639 | PyObject * obj1 = 0 ; | |
2640 | PyObject * obj2 = 0 ; | |
2641 | PyObject * obj3 = 0 ; | |
2642 | PyObject * obj4 = 0 ; | |
2643 | PyObject * obj5 = 0 ; | |
2644 | PyObject * obj6 = 0 ; | |
2645 | PyObject * obj7 = 0 ; | |
2646 | char *kwnames[] = { | |
2647 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2648 | }; | |
2649 | ||
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2653 | if (obj1) { | |
2654 | { | |
2655 | arg2 = (int)(SWIG_As_int(obj1)); | |
2656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2657 | } | |
2658 | } | |
2659 | if (obj2) { | |
2660 | { | |
2661 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2662 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2663 | if (arg3 == NULL) { | |
2664 | SWIG_null_ref("wxBitmap"); | |
2665 | } | |
2666 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2667 | } | |
2668 | } | |
2669 | if (obj3) { | |
2670 | { | |
2671 | arg4 = &temp4; | |
2672 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2673 | } | |
2674 | } | |
2675 | if (obj4) { | |
2676 | { | |
2677 | arg5 = &temp5; | |
2678 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2679 | } | |
2680 | } | |
2681 | if (obj5) { | |
2682 | { | |
2683 | arg6 = (long)(SWIG_As_long(obj5)); | |
2684 | if (SWIG_arg_fail(6)) SWIG_fail; | |
2685 | } | |
2686 | } | |
2687 | if (obj6) { | |
2688 | { | |
2689 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2690 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2691 | if (arg7 == NULL) { | |
2692 | SWIG_null_ref("wxValidator"); | |
2693 | } | |
2694 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2695 | } | |
2696 | } | |
2697 | if (obj7) { | |
2698 | { | |
2699 | arg8 = wxString_in_helper(obj7); | |
2700 | if (arg8 == NULL) SWIG_fail; | |
2701 | temp8 = true; | |
2702 | } | |
2703 | } | |
2704 | { | |
2705 | if (!wxPyCheckForApp()) SWIG_fail; | |
2706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2707 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2708 | ||
2709 | wxPyEndAllowThreads(__tstate); | |
2710 | if (PyErr_Occurred()) SWIG_fail; | |
2711 | } | |
2712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); | |
2713 | { | |
2714 | if (temp8) | |
2715 | delete arg8; | |
2716 | } | |
2717 | return resultobj; | |
2718 | fail: | |
2719 | { | |
2720 | if (temp8) | |
2721 | delete arg8; | |
2722 | } | |
2723 | return NULL; | |
2724 | } | |
2725 | ||
2726 | ||
2727 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
2728 | PyObject *resultobj; | |
2729 | wxBitmapButton *result; | |
2730 | char *kwnames[] = { | |
2731 | NULL | |
2732 | }; | |
2733 | ||
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
2735 | { | |
2736 | if (!wxPyCheckForApp()) SWIG_fail; | |
2737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2738 | result = (wxBitmapButton *)new wxBitmapButton(); | |
2739 | ||
2740 | wxPyEndAllowThreads(__tstate); | |
2741 | if (PyErr_Occurred()) SWIG_fail; | |
2742 | } | |
2743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); | |
2744 | return resultobj; | |
2745 | fail: | |
2746 | return NULL; | |
2747 | } | |
2748 | ||
2749 | ||
2750 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
2751 | PyObject *resultobj; | |
2752 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2753 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2754 | int arg3 = (int) -1 ; | |
2755 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
2756 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
2757 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2758 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2759 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2760 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2761 | long arg7 = (long) wxBU_AUTODRAW ; | |
2762 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2763 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2764 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2765 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2766 | bool result; | |
2767 | wxPoint temp5 ; | |
2768 | wxSize temp6 ; | |
2769 | bool temp9 = false ; | |
2770 | PyObject * obj0 = 0 ; | |
2771 | PyObject * obj1 = 0 ; | |
2772 | PyObject * obj2 = 0 ; | |
2773 | PyObject * obj3 = 0 ; | |
2774 | PyObject * obj4 = 0 ; | |
2775 | PyObject * obj5 = 0 ; | |
2776 | PyObject * obj6 = 0 ; | |
2777 | PyObject * obj7 = 0 ; | |
2778 | PyObject * obj8 = 0 ; | |
2779 | char *kwnames[] = { | |
2780 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2781 | }; | |
2782 | ||
2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2784 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
2785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2786 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2787 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2788 | if (obj2) { | |
2789 | { | |
2790 | arg3 = (int)(SWIG_As_int(obj2)); | |
2791 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2792 | } | |
2793 | } | |
2794 | if (obj3) { | |
2795 | { | |
2796 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2797 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2798 | if (arg4 == NULL) { | |
2799 | SWIG_null_ref("wxBitmap"); | |
2800 | } | |
2801 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2802 | } | |
2803 | } | |
2804 | if (obj4) { | |
2805 | { | |
2806 | arg5 = &temp5; | |
2807 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2808 | } | |
2809 | } | |
2810 | if (obj5) { | |
2811 | { | |
2812 | arg6 = &temp6; | |
2813 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2814 | } | |
2815 | } | |
2816 | if (obj6) { | |
2817 | { | |
2818 | arg7 = (long)(SWIG_As_long(obj6)); | |
2819 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2820 | } | |
2821 | } | |
2822 | if (obj7) { | |
2823 | { | |
2824 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2825 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2826 | if (arg8 == NULL) { | |
2827 | SWIG_null_ref("wxValidator"); | |
2828 | } | |
2829 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2830 | } | |
2831 | } | |
2832 | if (obj8) { | |
2833 | { | |
2834 | arg9 = wxString_in_helper(obj8); | |
2835 | if (arg9 == NULL) SWIG_fail; | |
2836 | temp9 = true; | |
2837 | } | |
2838 | } | |
2839 | { | |
2840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2841 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2842 | ||
2843 | wxPyEndAllowThreads(__tstate); | |
2844 | if (PyErr_Occurred()) SWIG_fail; | |
2845 | } | |
2846 | { | |
2847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2848 | } | |
2849 | { | |
2850 | if (temp9) | |
2851 | delete arg9; | |
2852 | } | |
2853 | return resultobj; | |
2854 | fail: | |
2855 | { | |
2856 | if (temp9) | |
2857 | delete arg9; | |
2858 | } | |
2859 | return NULL; | |
2860 | } | |
2861 | ||
2862 | ||
2863 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
2864 | PyObject *resultobj; | |
2865 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2866 | wxBitmap result; | |
2867 | PyObject * obj0 = 0 ; | |
2868 | char *kwnames[] = { | |
2869 | (char *) "self", NULL | |
2870 | }; | |
2871 | ||
2872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
2873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
2874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2875 | { | |
2876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2877 | result = (arg1)->GetBitmapLabel(); | |
2878 | ||
2879 | wxPyEndAllowThreads(__tstate); | |
2880 | if (PyErr_Occurred()) SWIG_fail; | |
2881 | } | |
2882 | { | |
2883 | wxBitmap * resultptr; | |
2884 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
2885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
2886 | } | |
2887 | return resultobj; | |
2888 | fail: | |
2889 | return NULL; | |
2890 | } | |
2891 | ||
2892 | ||
2893 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { | |
2894 | PyObject *resultobj; | |
2895 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2896 | wxBitmap result; | |
2897 | PyObject * obj0 = 0 ; | |
2898 | char *kwnames[] = { | |
2899 | (char *) "self", NULL | |
2900 | }; | |
2901 | ||
2902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
2903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
2904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2905 | { | |
2906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2907 | result = (arg1)->GetBitmapDisabled(); | |
2908 | ||
2909 | wxPyEndAllowThreads(__tstate); | |
2910 | if (PyErr_Occurred()) SWIG_fail; | |
2911 | } | |
2912 | { | |
2913 | wxBitmap * resultptr; | |
2914 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
2915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
2916 | } | |
2917 | return resultobj; | |
2918 | fail: | |
2919 | return NULL; | |
2920 | } | |
2921 | ||
2922 | ||
2923 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { | |
2924 | PyObject *resultobj; | |
2925 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2926 | wxBitmap result; | |
2927 | PyObject * obj0 = 0 ; | |
2928 | char *kwnames[] = { | |
2929 | (char *) "self", NULL | |
2930 | }; | |
2931 | ||
2932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
2933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
2934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2935 | { | |
2936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2937 | result = (arg1)->GetBitmapFocus(); | |
2938 | ||
2939 | wxPyEndAllowThreads(__tstate); | |
2940 | if (PyErr_Occurred()) SWIG_fail; | |
2941 | } | |
2942 | { | |
2943 | wxBitmap * resultptr; | |
2944 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
2945 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
2946 | } | |
2947 | return resultobj; | |
2948 | fail: | |
2949 | return NULL; | |
2950 | } | |
2951 | ||
2952 | ||
2953 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
2954 | PyObject *resultobj; | |
2955 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2956 | wxBitmap result; | |
2957 | PyObject * obj0 = 0 ; | |
2958 | char *kwnames[] = { | |
2959 | (char *) "self", NULL | |
2960 | }; | |
2961 | ||
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
2963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
2964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2965 | { | |
2966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2967 | result = (arg1)->GetBitmapSelected(); | |
2968 | ||
2969 | wxPyEndAllowThreads(__tstate); | |
2970 | if (PyErr_Occurred()) SWIG_fail; | |
2971 | } | |
2972 | { | |
2973 | wxBitmap * resultptr; | |
2974 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
2975 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
2976 | } | |
2977 | return resultobj; | |
2978 | fail: | |
2979 | return NULL; | |
2980 | } | |
2981 | ||
2982 | ||
2983 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject *resultobj; | |
2985 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
2986 | wxBitmap *arg2 = 0 ; | |
2987 | PyObject * obj0 = 0 ; | |
2988 | PyObject * obj1 = 0 ; | |
2989 | char *kwnames[] = { | |
2990 | (char *) "self",(char *) "bitmap", NULL | |
2991 | }; | |
2992 | ||
2993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
2994 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
2995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2996 | { | |
2997 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2998 | if (SWIG_arg_fail(2)) SWIG_fail; | |
2999 | if (arg2 == NULL) { | |
3000 | SWIG_null_ref("wxBitmap"); | |
3001 | } | |
3002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3003 | } | |
3004 | { | |
3005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3006 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
3007 | ||
3008 | wxPyEndAllowThreads(__tstate); | |
3009 | if (PyErr_Occurred()) SWIG_fail; | |
3010 | } | |
3011 | Py_INCREF(Py_None); resultobj = Py_None; | |
3012 | return resultobj; | |
3013 | fail: | |
3014 | return NULL; | |
3015 | } | |
3016 | ||
3017 | ||
3018 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { | |
3019 | PyObject *resultobj; | |
3020 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3021 | wxBitmap *arg2 = 0 ; | |
3022 | PyObject * obj0 = 0 ; | |
3023 | PyObject * obj1 = 0 ; | |
3024 | char *kwnames[] = { | |
3025 | (char *) "self",(char *) "bitmap", NULL | |
3026 | }; | |
3027 | ||
3028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
3029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
3030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3031 | { | |
3032 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3033 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3034 | if (arg2 == NULL) { | |
3035 | SWIG_null_ref("wxBitmap"); | |
3036 | } | |
3037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3038 | } | |
3039 | { | |
3040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3041 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
3042 | ||
3043 | wxPyEndAllowThreads(__tstate); | |
3044 | if (PyErr_Occurred()) SWIG_fail; | |
3045 | } | |
3046 | Py_INCREF(Py_None); resultobj = Py_None; | |
3047 | return resultobj; | |
3048 | fail: | |
3049 | return NULL; | |
3050 | } | |
3051 | ||
3052 | ||
3053 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
3054 | PyObject *resultobj; | |
3055 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3056 | wxBitmap *arg2 = 0 ; | |
3057 | PyObject * obj0 = 0 ; | |
3058 | PyObject * obj1 = 0 ; | |
3059 | char *kwnames[] = { | |
3060 | (char *) "self",(char *) "bitmap", NULL | |
3061 | }; | |
3062 | ||
3063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
3064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
3065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3066 | { | |
3067 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3068 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3069 | if (arg2 == NULL) { | |
3070 | SWIG_null_ref("wxBitmap"); | |
3071 | } | |
3072 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3073 | } | |
3074 | { | |
3075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3076 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
3077 | ||
3078 | wxPyEndAllowThreads(__tstate); | |
3079 | if (PyErr_Occurred()) SWIG_fail; | |
3080 | } | |
3081 | Py_INCREF(Py_None); resultobj = Py_None; | |
3082 | return resultobj; | |
3083 | fail: | |
3084 | return NULL; | |
3085 | } | |
3086 | ||
3087 | ||
3088 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
3089 | PyObject *resultobj; | |
3090 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3091 | wxBitmap *arg2 = 0 ; | |
3092 | PyObject * obj0 = 0 ; | |
3093 | PyObject * obj1 = 0 ; | |
3094 | char *kwnames[] = { | |
3095 | (char *) "self",(char *) "bitmap", NULL | |
3096 | }; | |
3097 | ||
3098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
3099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
3100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3101 | { | |
3102 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3103 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3104 | if (arg2 == NULL) { | |
3105 | SWIG_null_ref("wxBitmap"); | |
3106 | } | |
3107 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3108 | } | |
3109 | { | |
3110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3111 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
3112 | ||
3113 | wxPyEndAllowThreads(__tstate); | |
3114 | if (PyErr_Occurred()) SWIG_fail; | |
3115 | } | |
3116 | Py_INCREF(Py_None); resultobj = Py_None; | |
3117 | return resultobj; | |
3118 | fail: | |
3119 | return NULL; | |
3120 | } | |
3121 | ||
3122 | ||
3123 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
3124 | PyObject *resultobj; | |
3125 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3126 | int arg2 ; | |
3127 | int arg3 ; | |
3128 | PyObject * obj0 = 0 ; | |
3129 | PyObject * obj1 = 0 ; | |
3130 | PyObject * obj2 = 0 ; | |
3131 | char *kwnames[] = { | |
3132 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3133 | }; | |
3134 | ||
3135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3136 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
3137 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3138 | { | |
3139 | arg2 = (int)(SWIG_As_int(obj1)); | |
3140 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3141 | } | |
3142 | { | |
3143 | arg3 = (int)(SWIG_As_int(obj2)); | |
3144 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3145 | } | |
3146 | { | |
3147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3148 | (arg1)->SetMargins(arg2,arg3); | |
3149 | ||
3150 | wxPyEndAllowThreads(__tstate); | |
3151 | if (PyErr_Occurred()) SWIG_fail; | |
3152 | } | |
3153 | Py_INCREF(Py_None); resultobj = Py_None; | |
3154 | return resultobj; | |
3155 | fail: | |
3156 | return NULL; | |
3157 | } | |
3158 | ||
3159 | ||
3160 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { | |
3161 | PyObject *resultobj; | |
3162 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3163 | int result; | |
3164 | PyObject * obj0 = 0 ; | |
3165 | char *kwnames[] = { | |
3166 | (char *) "self", NULL | |
3167 | }; | |
3168 | ||
3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
3170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
3171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3172 | { | |
3173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3174 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
3175 | ||
3176 | wxPyEndAllowThreads(__tstate); | |
3177 | if (PyErr_Occurred()) SWIG_fail; | |
3178 | } | |
3179 | { | |
3180 | resultobj = SWIG_From_int((int)(result)); | |
3181 | } | |
3182 | return resultobj; | |
3183 | fail: | |
3184 | return NULL; | |
3185 | } | |
3186 | ||
3187 | ||
3188 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { | |
3189 | PyObject *resultobj; | |
3190 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
3191 | int result; | |
3192 | PyObject * obj0 = 0 ; | |
3193 | char *kwnames[] = { | |
3194 | (char *) "self", NULL | |
3195 | }; | |
3196 | ||
3197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
3198 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); | |
3199 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3200 | { | |
3201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3202 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
3203 | ||
3204 | wxPyEndAllowThreads(__tstate); | |
3205 | if (PyErr_Occurred()) SWIG_fail; | |
3206 | } | |
3207 | { | |
3208 | resultobj = SWIG_From_int((int)(result)); | |
3209 | } | |
3210 | return resultobj; | |
3211 | fail: | |
3212 | return NULL; | |
3213 | } | |
3214 | ||
3215 | ||
3216 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { | |
3217 | PyObject *obj; | |
3218 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3219 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
3220 | Py_INCREF(obj); | |
3221 | return Py_BuildValue((char *)""); | |
3222 | } | |
3223 | static int _wrap_CheckBoxNameStr_set(PyObject *) { | |
3224 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
3225 | return 1; | |
3226 | } | |
3227 | ||
3228 | ||
3229 | static PyObject *_wrap_CheckBoxNameStr_get(void) { | |
3230 | PyObject *pyobj; | |
3231 | ||
3232 | { | |
3233 | #if wxUSE_UNICODE | |
3234 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3235 | #else | |
3236 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3237 | #endif | |
3238 | } | |
3239 | return pyobj; | |
3240 | } | |
3241 | ||
3242 | ||
3243 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
3244 | PyObject *resultobj; | |
3245 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3246 | int arg2 = (int) -1 ; | |
3247 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3248 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
3249 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3250 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3251 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3252 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3253 | long arg6 = (long) 0 ; | |
3254 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3255 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3256 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
3257 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3258 | wxCheckBox *result; | |
3259 | bool temp3 = false ; | |
3260 | wxPoint temp4 ; | |
3261 | wxSize temp5 ; | |
3262 | bool temp8 = false ; | |
3263 | PyObject * obj0 = 0 ; | |
3264 | PyObject * obj1 = 0 ; | |
3265 | PyObject * obj2 = 0 ; | |
3266 | PyObject * obj3 = 0 ; | |
3267 | PyObject * obj4 = 0 ; | |
3268 | PyObject * obj5 = 0 ; | |
3269 | PyObject * obj6 = 0 ; | |
3270 | PyObject * obj7 = 0 ; | |
3271 | char *kwnames[] = { | |
3272 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3273 | }; | |
3274 | ||
3275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3276 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3277 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3278 | if (obj1) { | |
3279 | { | |
3280 | arg2 = (int)(SWIG_As_int(obj1)); | |
3281 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3282 | } | |
3283 | } | |
3284 | if (obj2) { | |
3285 | { | |
3286 | arg3 = wxString_in_helper(obj2); | |
3287 | if (arg3 == NULL) SWIG_fail; | |
3288 | temp3 = true; | |
3289 | } | |
3290 | } | |
3291 | if (obj3) { | |
3292 | { | |
3293 | arg4 = &temp4; | |
3294 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3295 | } | |
3296 | } | |
3297 | if (obj4) { | |
3298 | { | |
3299 | arg5 = &temp5; | |
3300 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3301 | } | |
3302 | } | |
3303 | if (obj5) { | |
3304 | { | |
3305 | arg6 = (long)(SWIG_As_long(obj5)); | |
3306 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3307 | } | |
3308 | } | |
3309 | if (obj6) { | |
3310 | { | |
3311 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3312 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3313 | if (arg7 == NULL) { | |
3314 | SWIG_null_ref("wxValidator"); | |
3315 | } | |
3316 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3317 | } | |
3318 | } | |
3319 | if (obj7) { | |
3320 | { | |
3321 | arg8 = wxString_in_helper(obj7); | |
3322 | if (arg8 == NULL) SWIG_fail; | |
3323 | temp8 = true; | |
3324 | } | |
3325 | } | |
3326 | { | |
3327 | if (!wxPyCheckForApp()) SWIG_fail; | |
3328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3329 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3330 | ||
3331 | wxPyEndAllowThreads(__tstate); | |
3332 | if (PyErr_Occurred()) SWIG_fail; | |
3333 | } | |
3334 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
3335 | { | |
3336 | if (temp3) | |
3337 | delete arg3; | |
3338 | } | |
3339 | { | |
3340 | if (temp8) | |
3341 | delete arg8; | |
3342 | } | |
3343 | return resultobj; | |
3344 | fail: | |
3345 | { | |
3346 | if (temp3) | |
3347 | delete arg3; | |
3348 | } | |
3349 | { | |
3350 | if (temp8) | |
3351 | delete arg8; | |
3352 | } | |
3353 | return NULL; | |
3354 | } | |
3355 | ||
3356 | ||
3357 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
3358 | PyObject *resultobj; | |
3359 | wxCheckBox *result; | |
3360 | char *kwnames[] = { | |
3361 | NULL | |
3362 | }; | |
3363 | ||
3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
3365 | { | |
3366 | if (!wxPyCheckForApp()) SWIG_fail; | |
3367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3368 | result = (wxCheckBox *)new wxCheckBox(); | |
3369 | ||
3370 | wxPyEndAllowThreads(__tstate); | |
3371 | if (PyErr_Occurred()) SWIG_fail; | |
3372 | } | |
3373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
3374 | return resultobj; | |
3375 | fail: | |
3376 | return NULL; | |
3377 | } | |
3378 | ||
3379 | ||
3380 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
3381 | PyObject *resultobj; | |
3382 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3383 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3384 | int arg3 = (int) -1 ; | |
3385 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3386 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3387 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3388 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3389 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3390 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3391 | long arg7 = (long) 0 ; | |
3392 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3393 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3394 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
3395 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3396 | bool result; | |
3397 | bool temp4 = false ; | |
3398 | wxPoint temp5 ; | |
3399 | wxSize temp6 ; | |
3400 | bool temp9 = false ; | |
3401 | PyObject * obj0 = 0 ; | |
3402 | PyObject * obj1 = 0 ; | |
3403 | PyObject * obj2 = 0 ; | |
3404 | PyObject * obj3 = 0 ; | |
3405 | PyObject * obj4 = 0 ; | |
3406 | PyObject * obj5 = 0 ; | |
3407 | PyObject * obj6 = 0 ; | |
3408 | PyObject * obj7 = 0 ; | |
3409 | PyObject * obj8 = 0 ; | |
3410 | char *kwnames[] = { | |
3411 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3412 | }; | |
3413 | ||
3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3415 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); | |
3416 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3417 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3418 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3419 | if (obj2) { | |
3420 | { | |
3421 | arg3 = (int)(SWIG_As_int(obj2)); | |
3422 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3423 | } | |
3424 | } | |
3425 | if (obj3) { | |
3426 | { | |
3427 | arg4 = wxString_in_helper(obj3); | |
3428 | if (arg4 == NULL) SWIG_fail; | |
3429 | temp4 = true; | |
3430 | } | |
3431 | } | |
3432 | if (obj4) { | |
3433 | { | |
3434 | arg5 = &temp5; | |
3435 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3436 | } | |
3437 | } | |
3438 | if (obj5) { | |
3439 | { | |
3440 | arg6 = &temp6; | |
3441 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3442 | } | |
3443 | } | |
3444 | if (obj6) { | |
3445 | { | |
3446 | arg7 = (long)(SWIG_As_long(obj6)); | |
3447 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3448 | } | |
3449 | } | |
3450 | if (obj7) { | |
3451 | { | |
3452 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3453 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3454 | if (arg8 == NULL) { | |
3455 | SWIG_null_ref("wxValidator"); | |
3456 | } | |
3457 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3458 | } | |
3459 | } | |
3460 | if (obj8) { | |
3461 | { | |
3462 | arg9 = wxString_in_helper(obj8); | |
3463 | if (arg9 == NULL) SWIG_fail; | |
3464 | temp9 = true; | |
3465 | } | |
3466 | } | |
3467 | { | |
3468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3469 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3470 | ||
3471 | wxPyEndAllowThreads(__tstate); | |
3472 | if (PyErr_Occurred()) SWIG_fail; | |
3473 | } | |
3474 | { | |
3475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3476 | } | |
3477 | { | |
3478 | if (temp4) | |
3479 | delete arg4; | |
3480 | } | |
3481 | { | |
3482 | if (temp9) | |
3483 | delete arg9; | |
3484 | } | |
3485 | return resultobj; | |
3486 | fail: | |
3487 | { | |
3488 | if (temp4) | |
3489 | delete arg4; | |
3490 | } | |
3491 | { | |
3492 | if (temp9) | |
3493 | delete arg9; | |
3494 | } | |
3495 | return NULL; | |
3496 | } | |
3497 | ||
3498 | ||
3499 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
3500 | PyObject *resultobj; | |
3501 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3502 | bool result; | |
3503 | PyObject * obj0 = 0 ; | |
3504 | char *kwnames[] = { | |
3505 | (char *) "self", NULL | |
3506 | }; | |
3507 | ||
3508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
3509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); | |
3510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3511 | { | |
3512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3513 | result = (bool)(arg1)->GetValue(); | |
3514 | ||
3515 | wxPyEndAllowThreads(__tstate); | |
3516 | if (PyErr_Occurred()) SWIG_fail; | |
3517 | } | |
3518 | { | |
3519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3520 | } | |
3521 | return resultobj; | |
3522 | fail: | |
3523 | return NULL; | |
3524 | } | |
3525 | ||
3526 | ||
3527 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { | |
3528 | PyObject *resultobj; | |
3529 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3530 | bool result; | |
3531 | PyObject * obj0 = 0 ; | |
3532 | char *kwnames[] = { | |
3533 | (char *) "self", NULL | |
3534 | }; | |
3535 | ||
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
3537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); | |
3538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3539 | { | |
3540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3541 | result = (bool)(arg1)->IsChecked(); | |
3542 | ||
3543 | wxPyEndAllowThreads(__tstate); | |
3544 | if (PyErr_Occurred()) SWIG_fail; | |
3545 | } | |
3546 | { | |
3547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3548 | } | |
3549 | return resultobj; | |
3550 | fail: | |
3551 | return NULL; | |
3552 | } | |
3553 | ||
3554 | ||
3555 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
3556 | PyObject *resultobj; | |
3557 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3558 | bool arg2 ; | |
3559 | PyObject * obj0 = 0 ; | |
3560 | PyObject * obj1 = 0 ; | |
3561 | char *kwnames[] = { | |
3562 | (char *) "self",(char *) "state", NULL | |
3563 | }; | |
3564 | ||
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); | |
3567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3568 | { | |
3569 | arg2 = (bool const)(SWIG_As_bool(obj1)); | |
3570 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3571 | } | |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | (arg1)->SetValue(arg2); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | Py_INCREF(Py_None); resultobj = Py_None; | |
3580 | return resultobj; | |
3581 | fail: | |
3582 | return NULL; | |
3583 | } | |
3584 | ||
3585 | ||
3586 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
3587 | PyObject *resultobj; | |
3588 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3589 | wxCheckBoxState result; | |
3590 | PyObject * obj0 = 0 ; | |
3591 | char *kwnames[] = { | |
3592 | (char *) "self", NULL | |
3593 | }; | |
3594 | ||
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
3596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); | |
3597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3598 | { | |
3599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3600 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); | |
3601 | ||
3602 | wxPyEndAllowThreads(__tstate); | |
3603 | if (PyErr_Occurred()) SWIG_fail; | |
3604 | } | |
3605 | resultobj = SWIG_From_int((result)); | |
3606 | return resultobj; | |
3607 | fail: | |
3608 | return NULL; | |
3609 | } | |
3610 | ||
3611 | ||
3612 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
3613 | PyObject *resultobj; | |
3614 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3615 | wxCheckBoxState arg2 ; | |
3616 | PyObject * obj0 = 0 ; | |
3617 | PyObject * obj1 = 0 ; | |
3618 | char *kwnames[] = { | |
3619 | (char *) "self",(char *) "state", NULL | |
3620 | }; | |
3621 | ||
3622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
3623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); | |
3624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3625 | { | |
3626 | arg2 = (wxCheckBoxState)(SWIG_As_int(obj1)); | |
3627 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3628 | } | |
3629 | { | |
3630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3631 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
3632 | ||
3633 | wxPyEndAllowThreads(__tstate); | |
3634 | if (PyErr_Occurred()) SWIG_fail; | |
3635 | } | |
3636 | Py_INCREF(Py_None); resultobj = Py_None; | |
3637 | return resultobj; | |
3638 | fail: | |
3639 | return NULL; | |
3640 | } | |
3641 | ||
3642 | ||
3643 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject *resultobj; | |
3645 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3646 | bool result; | |
3647 | PyObject * obj0 = 0 ; | |
3648 | char *kwnames[] = { | |
3649 | (char *) "self", NULL | |
3650 | }; | |
3651 | ||
3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
3653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); | |
3654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3655 | { | |
3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3657 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
3658 | ||
3659 | wxPyEndAllowThreads(__tstate); | |
3660 | if (PyErr_Occurred()) SWIG_fail; | |
3661 | } | |
3662 | { | |
3663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3664 | } | |
3665 | return resultobj; | |
3666 | fail: | |
3667 | return NULL; | |
3668 | } | |
3669 | ||
3670 | ||
3671 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { | |
3672 | PyObject *resultobj; | |
3673 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
3674 | bool result; | |
3675 | PyObject * obj0 = 0 ; | |
3676 | char *kwnames[] = { | |
3677 | (char *) "self", NULL | |
3678 | }; | |
3679 | ||
3680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
3681 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); | |
3682 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3683 | { | |
3684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3685 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
3686 | ||
3687 | wxPyEndAllowThreads(__tstate); | |
3688 | if (PyErr_Occurred()) SWIG_fail; | |
3689 | } | |
3690 | { | |
3691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3692 | } | |
3693 | return resultobj; | |
3694 | fail: | |
3695 | return NULL; | |
3696 | } | |
3697 | ||
3698 | ||
3699 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
3700 | PyObject *resultobj; | |
3701 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
3702 | wxVisualAttributes result; | |
3703 | PyObject * obj0 = 0 ; | |
3704 | char *kwnames[] = { | |
3705 | (char *) "variant", NULL | |
3706 | }; | |
3707 | ||
3708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3709 | if (obj0) { | |
3710 | { | |
3711 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
3712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3713 | } | |
3714 | } | |
3715 | { | |
3716 | if (!wxPyCheckForApp()) SWIG_fail; | |
3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3718 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3719 | ||
3720 | wxPyEndAllowThreads(__tstate); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
3723 | { | |
3724 | wxVisualAttributes * resultptr; | |
3725 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
3726 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3727 | } | |
3728 | return resultobj; | |
3729 | fail: | |
3730 | return NULL; | |
3731 | } | |
3732 | ||
3733 | ||
3734 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { | |
3735 | PyObject *obj; | |
3736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3737 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
3738 | Py_INCREF(obj); | |
3739 | return Py_BuildValue((char *)""); | |
3740 | } | |
3741 | static int _wrap_ChoiceNameStr_set(PyObject *) { | |
3742 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
3743 | return 1; | |
3744 | } | |
3745 | ||
3746 | ||
3747 | static PyObject *_wrap_ChoiceNameStr_get(void) { | |
3748 | PyObject *pyobj; | |
3749 | ||
3750 | { | |
3751 | #if wxUSE_UNICODE | |
3752 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3753 | #else | |
3754 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3755 | #endif | |
3756 | } | |
3757 | return pyobj; | |
3758 | } | |
3759 | ||
3760 | ||
3761 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { | |
3762 | PyObject *resultobj; | |
3763 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3764 | int arg2 = (int) -1 ; | |
3765 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
3766 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3767 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3768 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3769 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
3770 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
3771 | long arg6 = (long) 0 ; | |
3772 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3773 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3774 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
3775 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3776 | wxChoice *result; | |
3777 | wxPoint temp3 ; | |
3778 | wxSize temp4 ; | |
3779 | bool temp5 = false ; | |
3780 | bool temp8 = false ; | |
3781 | PyObject * obj0 = 0 ; | |
3782 | PyObject * obj1 = 0 ; | |
3783 | PyObject * obj2 = 0 ; | |
3784 | PyObject * obj3 = 0 ; | |
3785 | PyObject * obj4 = 0 ; | |
3786 | PyObject * obj5 = 0 ; | |
3787 | PyObject * obj6 = 0 ; | |
3788 | PyObject * obj7 = 0 ; | |
3789 | char *kwnames[] = { | |
3790 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3791 | }; | |
3792 | ||
3793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3796 | if (obj1) { | |
3797 | { | |
3798 | arg2 = (int)(SWIG_As_int(obj1)); | |
3799 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3800 | } | |
3801 | } | |
3802 | if (obj2) { | |
3803 | { | |
3804 | arg3 = &temp3; | |
3805 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3806 | } | |
3807 | } | |
3808 | if (obj3) { | |
3809 | { | |
3810 | arg4 = &temp4; | |
3811 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3812 | } | |
3813 | } | |
3814 | if (obj4) { | |
3815 | { | |
3816 | if (! PySequence_Check(obj4)) { | |
3817 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3818 | SWIG_fail; | |
3819 | } | |
3820 | arg5 = new wxArrayString; | |
3821 | temp5 = true; | |
3822 | int i, len=PySequence_Length(obj4); | |
3823 | for (i=0; i<len; i++) { | |
3824 | PyObject* item = PySequence_GetItem(obj4, i); | |
3825 | #if wxUSE_UNICODE | |
3826 | PyObject* str = PyObject_Unicode(item); | |
3827 | #else | |
3828 | PyObject* str = PyObject_Str(item); | |
3829 | #endif | |
3830 | if (PyErr_Occurred()) SWIG_fail; | |
3831 | arg5->Add(Py2wxString(str)); | |
3832 | Py_DECREF(item); | |
3833 | Py_DECREF(str); | |
3834 | } | |
3835 | } | |
3836 | } | |
3837 | if (obj5) { | |
3838 | { | |
3839 | arg6 = (long)(SWIG_As_long(obj5)); | |
3840 | if (SWIG_arg_fail(6)) SWIG_fail; | |
3841 | } | |
3842 | } | |
3843 | if (obj6) { | |
3844 | { | |
3845 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3846 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3847 | if (arg7 == NULL) { | |
3848 | SWIG_null_ref("wxValidator"); | |
3849 | } | |
3850 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3851 | } | |
3852 | } | |
3853 | if (obj7) { | |
3854 | { | |
3855 | arg8 = wxString_in_helper(obj7); | |
3856 | if (arg8 == NULL) SWIG_fail; | |
3857 | temp8 = true; | |
3858 | } | |
3859 | } | |
3860 | { | |
3861 | if (!wxPyCheckForApp()) SWIG_fail; | |
3862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3863 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3864 | ||
3865 | wxPyEndAllowThreads(__tstate); | |
3866 | if (PyErr_Occurred()) SWIG_fail; | |
3867 | } | |
3868 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
3869 | { | |
3870 | if (temp5) delete arg5; | |
3871 | } | |
3872 | { | |
3873 | if (temp8) | |
3874 | delete arg8; | |
3875 | } | |
3876 | return resultobj; | |
3877 | fail: | |
3878 | { | |
3879 | if (temp5) delete arg5; | |
3880 | } | |
3881 | { | |
3882 | if (temp8) | |
3883 | delete arg8; | |
3884 | } | |
3885 | return NULL; | |
3886 | } | |
3887 | ||
3888 | ||
3889 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { | |
3890 | PyObject *resultobj; | |
3891 | wxChoice *result; | |
3892 | char *kwnames[] = { | |
3893 | NULL | |
3894 | }; | |
3895 | ||
3896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
3897 | { | |
3898 | if (!wxPyCheckForApp()) SWIG_fail; | |
3899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3900 | result = (wxChoice *)new wxChoice(); | |
3901 | ||
3902 | wxPyEndAllowThreads(__tstate); | |
3903 | if (PyErr_Occurred()) SWIG_fail; | |
3904 | } | |
3905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
3906 | return resultobj; | |
3907 | fail: | |
3908 | return NULL; | |
3909 | } | |
3910 | ||
3911 | ||
3912 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
3913 | PyObject *resultobj; | |
3914 | wxChoice *arg1 = (wxChoice *) 0 ; | |
3915 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3916 | int arg3 = (int) -1 ; | |
3917 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3918 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3919 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3920 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3921 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
3922 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
3923 | long arg7 = (long) 0 ; | |
3924 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3925 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3926 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
3927 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3928 | bool result; | |
3929 | wxPoint temp4 ; | |
3930 | wxSize temp5 ; | |
3931 | bool temp6 = false ; | |
3932 | bool temp9 = false ; | |
3933 | PyObject * obj0 = 0 ; | |
3934 | PyObject * obj1 = 0 ; | |
3935 | PyObject * obj2 = 0 ; | |
3936 | PyObject * obj3 = 0 ; | |
3937 | PyObject * obj4 = 0 ; | |
3938 | PyObject * obj5 = 0 ; | |
3939 | PyObject * obj6 = 0 ; | |
3940 | PyObject * obj7 = 0 ; | |
3941 | PyObject * obj8 = 0 ; | |
3942 | char *kwnames[] = { | |
3943 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3944 | }; | |
3945 | ||
3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); | |
3948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3949 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3950 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3951 | if (obj2) { | |
3952 | { | |
3953 | arg3 = (int)(SWIG_As_int(obj2)); | |
3954 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3955 | } | |
3956 | } | |
3957 | if (obj3) { | |
3958 | { | |
3959 | arg4 = &temp4; | |
3960 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3961 | } | |
3962 | } | |
3963 | if (obj4) { | |
3964 | { | |
3965 | arg5 = &temp5; | |
3966 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3967 | } | |
3968 | } | |
3969 | if (obj5) { | |
3970 | { | |
3971 | if (! PySequence_Check(obj5)) { | |
3972 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3973 | SWIG_fail; | |
3974 | } | |
3975 | arg6 = new wxArrayString; | |
3976 | temp6 = true; | |
3977 | int i, len=PySequence_Length(obj5); | |
3978 | for (i=0; i<len; i++) { | |
3979 | PyObject* item = PySequence_GetItem(obj5, i); | |
3980 | #if wxUSE_UNICODE | |
3981 | PyObject* str = PyObject_Unicode(item); | |
3982 | #else | |
3983 | PyObject* str = PyObject_Str(item); | |
3984 | #endif | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | arg6->Add(Py2wxString(str)); | |
3987 | Py_DECREF(item); | |
3988 | Py_DECREF(str); | |
3989 | } | |
3990 | } | |
3991 | } | |
3992 | if (obj6) { | |
3993 | { | |
3994 | arg7 = (long)(SWIG_As_long(obj6)); | |
3995 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3996 | } | |
3997 | } | |
3998 | if (obj7) { | |
3999 | { | |
4000 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4001 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4002 | if (arg8 == NULL) { | |
4003 | SWIG_null_ref("wxValidator"); | |
4004 | } | |
4005 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4006 | } | |
4007 | } | |
4008 | if (obj8) { | |
4009 | { | |
4010 | arg9 = wxString_in_helper(obj8); | |
4011 | if (arg9 == NULL) SWIG_fail; | |
4012 | temp9 = true; | |
4013 | } | |
4014 | } | |
4015 | { | |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
4022 | { | |
4023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4024 | } | |
4025 | { | |
4026 | if (temp6) delete arg6; | |
4027 | } | |
4028 | { | |
4029 | if (temp9) | |
4030 | delete arg9; | |
4031 | } | |
4032 | return resultobj; | |
4033 | fail: | |
4034 | { | |
4035 | if (temp6) delete arg6; | |
4036 | } | |
4037 | { | |
4038 | if (temp9) | |
4039 | delete arg9; | |
4040 | } | |
4041 | return NULL; | |
4042 | } | |
4043 | ||
4044 | ||
4045 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
4046 | PyObject *resultobj; | |
4047 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
4048 | wxVisualAttributes result; | |
4049 | PyObject * obj0 = 0 ; | |
4050 | char *kwnames[] = { | |
4051 | (char *) "variant", NULL | |
4052 | }; | |
4053 | ||
4054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4055 | if (obj0) { | |
4056 | { | |
4057 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
4058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4059 | } | |
4060 | } | |
4061 | { | |
4062 | if (!wxPyCheckForApp()) SWIG_fail; | |
4063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4064 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4065 | ||
4066 | wxPyEndAllowThreads(__tstate); | |
4067 | if (PyErr_Occurred()) SWIG_fail; | |
4068 | } | |
4069 | { | |
4070 | wxVisualAttributes * resultptr; | |
4071 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
4072 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4073 | } | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
4080 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { | |
4081 | PyObject *obj; | |
4082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4083 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
4084 | Py_INCREF(obj); | |
4085 | return Py_BuildValue((char *)""); | |
4086 | } | |
4087 | static int _wrap_ComboBoxNameStr_set(PyObject *) { | |
4088 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
4089 | return 1; | |
4090 | } | |
4091 | ||
4092 | ||
4093 | static PyObject *_wrap_ComboBoxNameStr_get(void) { | |
4094 | PyObject *pyobj; | |
4095 | ||
4096 | { | |
4097 | #if wxUSE_UNICODE | |
4098 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4099 | #else | |
4100 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4101 | #endif | |
4102 | } | |
4103 | return pyobj; | |
4104 | } | |
4105 | ||
4106 | ||
4107 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
4108 | PyObject *resultobj; | |
4109 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4110 | int arg2 = (int) -1 ; | |
4111 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4112 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4113 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4114 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4115 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4116 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4117 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
4118 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
4119 | long arg7 = (long) 0 ; | |
4120 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4121 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4122 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
4123 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4124 | wxComboBox *result; | |
4125 | bool temp3 = false ; | |
4126 | wxPoint temp4 ; | |
4127 | wxSize temp5 ; | |
4128 | bool temp6 = false ; | |
4129 | bool temp9 = false ; | |
4130 | PyObject * obj0 = 0 ; | |
4131 | PyObject * obj1 = 0 ; | |
4132 | PyObject * obj2 = 0 ; | |
4133 | PyObject * obj3 = 0 ; | |
4134 | PyObject * obj4 = 0 ; | |
4135 | PyObject * obj5 = 0 ; | |
4136 | PyObject * obj6 = 0 ; | |
4137 | PyObject * obj7 = 0 ; | |
4138 | PyObject * obj8 = 0 ; | |
4139 | char *kwnames[] = { | |
4140 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4141 | }; | |
4142 | ||
4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
4144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4146 | if (obj1) { | |
4147 | { | |
4148 | arg2 = (int)(SWIG_As_int(obj1)); | |
4149 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4150 | } | |
4151 | } | |
4152 | if (obj2) { | |
4153 | { | |
4154 | arg3 = wxString_in_helper(obj2); | |
4155 | if (arg3 == NULL) SWIG_fail; | |
4156 | temp3 = true; | |
4157 | } | |
4158 | } | |
4159 | if (obj3) { | |
4160 | { | |
4161 | arg4 = &temp4; | |
4162 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4163 | } | |
4164 | } | |
4165 | if (obj4) { | |
4166 | { | |
4167 | arg5 = &temp5; | |
4168 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4169 | } | |
4170 | } | |
4171 | if (obj5) { | |
4172 | { | |
4173 | if (! PySequence_Check(obj5)) { | |
4174 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4175 | SWIG_fail; | |
4176 | } | |
4177 | arg6 = new wxArrayString; | |
4178 | temp6 = true; | |
4179 | int i, len=PySequence_Length(obj5); | |
4180 | for (i=0; i<len; i++) { | |
4181 | PyObject* item = PySequence_GetItem(obj5, i); | |
4182 | #if wxUSE_UNICODE | |
4183 | PyObject* str = PyObject_Unicode(item); | |
4184 | #else | |
4185 | PyObject* str = PyObject_Str(item); | |
4186 | #endif | |
4187 | if (PyErr_Occurred()) SWIG_fail; | |
4188 | arg6->Add(Py2wxString(str)); | |
4189 | Py_DECREF(item); | |
4190 | Py_DECREF(str); | |
4191 | } | |
4192 | } | |
4193 | } | |
4194 | if (obj6) { | |
4195 | { | |
4196 | arg7 = (long)(SWIG_As_long(obj6)); | |
4197 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4198 | } | |
4199 | } | |
4200 | if (obj7) { | |
4201 | { | |
4202 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4203 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4204 | if (arg8 == NULL) { | |
4205 | SWIG_null_ref("wxValidator"); | |
4206 | } | |
4207 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4208 | } | |
4209 | } | |
4210 | if (obj8) { | |
4211 | { | |
4212 | arg9 = wxString_in_helper(obj8); | |
4213 | if (arg9 == NULL) SWIG_fail; | |
4214 | temp9 = true; | |
4215 | } | |
4216 | } | |
4217 | { | |
4218 | if (!wxPyCheckForApp()) SWIG_fail; | |
4219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4220 | 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); | |
4221 | ||
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
4226 | { | |
4227 | if (temp3) | |
4228 | delete arg3; | |
4229 | } | |
4230 | { | |
4231 | if (temp6) delete arg6; | |
4232 | } | |
4233 | { | |
4234 | if (temp9) | |
4235 | delete arg9; | |
4236 | } | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | { | |
4240 | if (temp3) | |
4241 | delete arg3; | |
4242 | } | |
4243 | { | |
4244 | if (temp6) delete arg6; | |
4245 | } | |
4246 | { | |
4247 | if (temp9) | |
4248 | delete arg9; | |
4249 | } | |
4250 | return NULL; | |
4251 | } | |
4252 | ||
4253 | ||
4254 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
4255 | PyObject *resultobj; | |
4256 | wxComboBox *result; | |
4257 | char *kwnames[] = { | |
4258 | NULL | |
4259 | }; | |
4260 | ||
4261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
4262 | { | |
4263 | if (!wxPyCheckForApp()) SWIG_fail; | |
4264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4265 | result = (wxComboBox *)new wxComboBox(); | |
4266 | ||
4267 | wxPyEndAllowThreads(__tstate); | |
4268 | if (PyErr_Occurred()) SWIG_fail; | |
4269 | } | |
4270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
4271 | return resultobj; | |
4272 | fail: | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
4277 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
4278 | PyObject *resultobj; | |
4279 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4280 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4281 | int arg3 = (int) -1 ; | |
4282 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4283 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4284 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4285 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4286 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4287 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4288 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
4289 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
4290 | long arg8 = (long) 0 ; | |
4291 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4292 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
4293 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
4294 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
4295 | bool result; | |
4296 | bool temp4 = false ; | |
4297 | wxPoint temp5 ; | |
4298 | wxSize temp6 ; | |
4299 | bool temp7 = false ; | |
4300 | bool temp10 = false ; | |
4301 | PyObject * obj0 = 0 ; | |
4302 | PyObject * obj1 = 0 ; | |
4303 | PyObject * obj2 = 0 ; | |
4304 | PyObject * obj3 = 0 ; | |
4305 | PyObject * obj4 = 0 ; | |
4306 | PyObject * obj5 = 0 ; | |
4307 | PyObject * obj6 = 0 ; | |
4308 | PyObject * obj7 = 0 ; | |
4309 | PyObject * obj8 = 0 ; | |
4310 | PyObject * obj9 = 0 ; | |
4311 | char *kwnames[] = { | |
4312 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4313 | }; | |
4314 | ||
4315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
4316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4318 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4319 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4320 | if (obj2) { | |
4321 | { | |
4322 | arg3 = (int)(SWIG_As_int(obj2)); | |
4323 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4324 | } | |
4325 | } | |
4326 | if (obj3) { | |
4327 | { | |
4328 | arg4 = wxString_in_helper(obj3); | |
4329 | if (arg4 == NULL) SWIG_fail; | |
4330 | temp4 = true; | |
4331 | } | |
4332 | } | |
4333 | if (obj4) { | |
4334 | { | |
4335 | arg5 = &temp5; | |
4336 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4337 | } | |
4338 | } | |
4339 | if (obj5) { | |
4340 | { | |
4341 | arg6 = &temp6; | |
4342 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4343 | } | |
4344 | } | |
4345 | if (obj6) { | |
4346 | { | |
4347 | if (! PySequence_Check(obj6)) { | |
4348 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4349 | SWIG_fail; | |
4350 | } | |
4351 | arg7 = new wxArrayString; | |
4352 | temp7 = true; | |
4353 | int i, len=PySequence_Length(obj6); | |
4354 | for (i=0; i<len; i++) { | |
4355 | PyObject* item = PySequence_GetItem(obj6, i); | |
4356 | #if wxUSE_UNICODE | |
4357 | PyObject* str = PyObject_Unicode(item); | |
4358 | #else | |
4359 | PyObject* str = PyObject_Str(item); | |
4360 | #endif | |
4361 | if (PyErr_Occurred()) SWIG_fail; | |
4362 | arg7->Add(Py2wxString(str)); | |
4363 | Py_DECREF(item); | |
4364 | Py_DECREF(str); | |
4365 | } | |
4366 | } | |
4367 | } | |
4368 | if (obj7) { | |
4369 | { | |
4370 | arg8 = (long)(SWIG_As_long(obj7)); | |
4371 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4372 | } | |
4373 | } | |
4374 | if (obj8) { | |
4375 | { | |
4376 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4377 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4378 | if (arg9 == NULL) { | |
4379 | SWIG_null_ref("wxValidator"); | |
4380 | } | |
4381 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4382 | } | |
4383 | } | |
4384 | if (obj9) { | |
4385 | { | |
4386 | arg10 = wxString_in_helper(obj9); | |
4387 | if (arg10 == NULL) SWIG_fail; | |
4388 | temp10 = true; | |
4389 | } | |
4390 | } | |
4391 | { | |
4392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4393 | 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); | |
4394 | ||
4395 | wxPyEndAllowThreads(__tstate); | |
4396 | if (PyErr_Occurred()) SWIG_fail; | |
4397 | } | |
4398 | { | |
4399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4400 | } | |
4401 | { | |
4402 | if (temp4) | |
4403 | delete arg4; | |
4404 | } | |
4405 | { | |
4406 | if (temp7) delete arg7; | |
4407 | } | |
4408 | { | |
4409 | if (temp10) | |
4410 | delete arg10; | |
4411 | } | |
4412 | return resultobj; | |
4413 | fail: | |
4414 | { | |
4415 | if (temp4) | |
4416 | delete arg4; | |
4417 | } | |
4418 | { | |
4419 | if (temp7) delete arg7; | |
4420 | } | |
4421 | { | |
4422 | if (temp10) | |
4423 | delete arg10; | |
4424 | } | |
4425 | return NULL; | |
4426 | } | |
4427 | ||
4428 | ||
4429 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
4430 | PyObject *resultobj; | |
4431 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4432 | wxString result; | |
4433 | PyObject * obj0 = 0 ; | |
4434 | char *kwnames[] = { | |
4435 | (char *) "self", NULL | |
4436 | }; | |
4437 | ||
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
4439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4441 | { | |
4442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4443 | result = ((wxComboBox const *)arg1)->GetValue(); | |
4444 | ||
4445 | wxPyEndAllowThreads(__tstate); | |
4446 | if (PyErr_Occurred()) SWIG_fail; | |
4447 | } | |
4448 | { | |
4449 | #if wxUSE_UNICODE | |
4450 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4451 | #else | |
4452 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4453 | #endif | |
4454 | } | |
4455 | return resultobj; | |
4456 | fail: | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
4461 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
4462 | PyObject *resultobj; | |
4463 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4464 | wxString *arg2 = 0 ; | |
4465 | bool temp2 = false ; | |
4466 | PyObject * obj0 = 0 ; | |
4467 | PyObject * obj1 = 0 ; | |
4468 | char *kwnames[] = { | |
4469 | (char *) "self",(char *) "value", NULL | |
4470 | }; | |
4471 | ||
4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
4473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4475 | { | |
4476 | arg2 = wxString_in_helper(obj1); | |
4477 | if (arg2 == NULL) SWIG_fail; | |
4478 | temp2 = true; | |
4479 | } | |
4480 | { | |
4481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4482 | (arg1)->SetValue((wxString const &)*arg2); | |
4483 | ||
4484 | wxPyEndAllowThreads(__tstate); | |
4485 | if (PyErr_Occurred()) SWIG_fail; | |
4486 | } | |
4487 | Py_INCREF(Py_None); resultobj = Py_None; | |
4488 | { | |
4489 | if (temp2) | |
4490 | delete arg2; | |
4491 | } | |
4492 | return resultobj; | |
4493 | fail: | |
4494 | { | |
4495 | if (temp2) | |
4496 | delete arg2; | |
4497 | } | |
4498 | return NULL; | |
4499 | } | |
4500 | ||
4501 | ||
4502 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject *resultobj; | |
4504 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4505 | PyObject * obj0 = 0 ; | |
4506 | char *kwnames[] = { | |
4507 | (char *) "self", NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
4511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4513 | { | |
4514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4515 | (arg1)->Copy(); | |
4516 | ||
4517 | wxPyEndAllowThreads(__tstate); | |
4518 | if (PyErr_Occurred()) SWIG_fail; | |
4519 | } | |
4520 | Py_INCREF(Py_None); resultobj = Py_None; | |
4521 | return resultobj; | |
4522 | fail: | |
4523 | return NULL; | |
4524 | } | |
4525 | ||
4526 | ||
4527 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { | |
4528 | PyObject *resultobj; | |
4529 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4530 | PyObject * obj0 = 0 ; | |
4531 | char *kwnames[] = { | |
4532 | (char *) "self", NULL | |
4533 | }; | |
4534 | ||
4535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
4536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4538 | { | |
4539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4540 | (arg1)->Cut(); | |
4541 | ||
4542 | wxPyEndAllowThreads(__tstate); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
4545 | Py_INCREF(Py_None); resultobj = Py_None; | |
4546 | return resultobj; | |
4547 | fail: | |
4548 | return NULL; | |
4549 | } | |
4550 | ||
4551 | ||
4552 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { | |
4553 | PyObject *resultobj; | |
4554 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4555 | PyObject * obj0 = 0 ; | |
4556 | char *kwnames[] = { | |
4557 | (char *) "self", NULL | |
4558 | }; | |
4559 | ||
4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
4561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4563 | { | |
4564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4565 | (arg1)->Paste(); | |
4566 | ||
4567 | wxPyEndAllowThreads(__tstate); | |
4568 | if (PyErr_Occurred()) SWIG_fail; | |
4569 | } | |
4570 | Py_INCREF(Py_None); resultobj = Py_None; | |
4571 | return resultobj; | |
4572 | fail: | |
4573 | return NULL; | |
4574 | } | |
4575 | ||
4576 | ||
4577 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
4578 | PyObject *resultobj; | |
4579 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4580 | long arg2 ; | |
4581 | PyObject * obj0 = 0 ; | |
4582 | PyObject * obj1 = 0 ; | |
4583 | char *kwnames[] = { | |
4584 | (char *) "self",(char *) "pos", NULL | |
4585 | }; | |
4586 | ||
4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
4588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4590 | { | |
4591 | arg2 = (long)(SWIG_As_long(obj1)); | |
4592 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4593 | } | |
4594 | { | |
4595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4596 | (arg1)->SetInsertionPoint(arg2); | |
4597 | ||
4598 | wxPyEndAllowThreads(__tstate); | |
4599 | if (PyErr_Occurred()) SWIG_fail; | |
4600 | } | |
4601 | Py_INCREF(Py_None); resultobj = Py_None; | |
4602 | return resultobj; | |
4603 | fail: | |
4604 | return NULL; | |
4605 | } | |
4606 | ||
4607 | ||
4608 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
4609 | PyObject *resultobj; | |
4610 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4611 | long result; | |
4612 | PyObject * obj0 = 0 ; | |
4613 | char *kwnames[] = { | |
4614 | (char *) "self", NULL | |
4615 | }; | |
4616 | ||
4617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
4618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4620 | { | |
4621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4622 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
4623 | ||
4624 | wxPyEndAllowThreads(__tstate); | |
4625 | if (PyErr_Occurred()) SWIG_fail; | |
4626 | } | |
4627 | { | |
4628 | resultobj = SWIG_From_long((long)(result)); | |
4629 | } | |
4630 | return resultobj; | |
4631 | fail: | |
4632 | return NULL; | |
4633 | } | |
4634 | ||
4635 | ||
4636 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
4637 | PyObject *resultobj; | |
4638 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4639 | long result; | |
4640 | PyObject * obj0 = 0 ; | |
4641 | char *kwnames[] = { | |
4642 | (char *) "self", NULL | |
4643 | }; | |
4644 | ||
4645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
4646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4648 | { | |
4649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4650 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
4651 | ||
4652 | wxPyEndAllowThreads(__tstate); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | { | |
4656 | resultobj = SWIG_From_long((long)(result)); | |
4657 | } | |
4658 | return resultobj; | |
4659 | fail: | |
4660 | return NULL; | |
4661 | } | |
4662 | ||
4663 | ||
4664 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject *resultobj; | |
4666 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4667 | long arg2 ; | |
4668 | long arg3 ; | |
4669 | wxString *arg4 = 0 ; | |
4670 | bool temp4 = false ; | |
4671 | PyObject * obj0 = 0 ; | |
4672 | PyObject * obj1 = 0 ; | |
4673 | PyObject * obj2 = 0 ; | |
4674 | PyObject * obj3 = 0 ; | |
4675 | char *kwnames[] = { | |
4676 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
4677 | }; | |
4678 | ||
4679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4682 | { | |
4683 | arg2 = (long)(SWIG_As_long(obj1)); | |
4684 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4685 | } | |
4686 | { | |
4687 | arg3 = (long)(SWIG_As_long(obj2)); | |
4688 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4689 | } | |
4690 | { | |
4691 | arg4 = wxString_in_helper(obj3); | |
4692 | if (arg4 == NULL) SWIG_fail; | |
4693 | temp4 = true; | |
4694 | } | |
4695 | { | |
4696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4697 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
4698 | ||
4699 | wxPyEndAllowThreads(__tstate); | |
4700 | if (PyErr_Occurred()) SWIG_fail; | |
4701 | } | |
4702 | Py_INCREF(Py_None); resultobj = Py_None; | |
4703 | { | |
4704 | if (temp4) | |
4705 | delete arg4; | |
4706 | } | |
4707 | return resultobj; | |
4708 | fail: | |
4709 | { | |
4710 | if (temp4) | |
4711 | delete arg4; | |
4712 | } | |
4713 | return NULL; | |
4714 | } | |
4715 | ||
4716 | ||
4717 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
4718 | PyObject *resultobj; | |
4719 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4720 | int arg2 ; | |
4721 | PyObject * obj0 = 0 ; | |
4722 | PyObject * obj1 = 0 ; | |
4723 | char *kwnames[] = { | |
4724 | (char *) "self",(char *) "n", NULL | |
4725 | }; | |
4726 | ||
4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
4728 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4729 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4730 | { | |
4731 | arg2 = (int)(SWIG_As_int(obj1)); | |
4732 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4733 | } | |
4734 | { | |
4735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4736 | (arg1)->SetSelection(arg2); | |
4737 | ||
4738 | wxPyEndAllowThreads(__tstate); | |
4739 | if (PyErr_Occurred()) SWIG_fail; | |
4740 | } | |
4741 | Py_INCREF(Py_None); resultobj = Py_None; | |
4742 | return resultobj; | |
4743 | fail: | |
4744 | return NULL; | |
4745 | } | |
4746 | ||
4747 | ||
4748 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { | |
4749 | PyObject *resultobj; | |
4750 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4751 | long arg2 ; | |
4752 | long arg3 ; | |
4753 | PyObject * obj0 = 0 ; | |
4754 | PyObject * obj1 = 0 ; | |
4755 | PyObject * obj2 = 0 ; | |
4756 | char *kwnames[] = { | |
4757 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4758 | }; | |
4759 | ||
4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4763 | { | |
4764 | arg2 = (long)(SWIG_As_long(obj1)); | |
4765 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4766 | } | |
4767 | { | |
4768 | arg3 = (long)(SWIG_As_long(obj2)); | |
4769 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4770 | } | |
4771 | { | |
4772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4773 | (arg1)->SetSelection(arg2,arg3); | |
4774 | ||
4775 | wxPyEndAllowThreads(__tstate); | |
4776 | if (PyErr_Occurred()) SWIG_fail; | |
4777 | } | |
4778 | Py_INCREF(Py_None); resultobj = Py_None; | |
4779 | return resultobj; | |
4780 | fail: | |
4781 | return NULL; | |
4782 | } | |
4783 | ||
4784 | ||
4785 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
4786 | PyObject *resultobj; | |
4787 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4788 | wxString *arg2 = 0 ; | |
4789 | bool result; | |
4790 | bool temp2 = false ; | |
4791 | PyObject * obj0 = 0 ; | |
4792 | PyObject * obj1 = 0 ; | |
4793 | char *kwnames[] = { | |
4794 | (char *) "self",(char *) "string", NULL | |
4795 | }; | |
4796 | ||
4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
4798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4800 | { | |
4801 | arg2 = wxString_in_helper(obj1); | |
4802 | if (arg2 == NULL) SWIG_fail; | |
4803 | temp2 = true; | |
4804 | } | |
4805 | { | |
4806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4807 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
4808 | ||
4809 | wxPyEndAllowThreads(__tstate); | |
4810 | if (PyErr_Occurred()) SWIG_fail; | |
4811 | } | |
4812 | { | |
4813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4814 | } | |
4815 | { | |
4816 | if (temp2) | |
4817 | delete arg2; | |
4818 | } | |
4819 | return resultobj; | |
4820 | fail: | |
4821 | { | |
4822 | if (temp2) | |
4823 | delete arg2; | |
4824 | } | |
4825 | return NULL; | |
4826 | } | |
4827 | ||
4828 | ||
4829 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { | |
4830 | PyObject *resultobj; | |
4831 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4832 | int arg2 ; | |
4833 | wxString *arg3 = 0 ; | |
4834 | bool temp3 = false ; | |
4835 | PyObject * obj0 = 0 ; | |
4836 | PyObject * obj1 = 0 ; | |
4837 | PyObject * obj2 = 0 ; | |
4838 | char *kwnames[] = { | |
4839 | (char *) "self",(char *) "n",(char *) "string", NULL | |
4840 | }; | |
4841 | ||
4842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4845 | { | |
4846 | arg2 = (int)(SWIG_As_int(obj1)); | |
4847 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4848 | } | |
4849 | { | |
4850 | arg3 = wxString_in_helper(obj2); | |
4851 | if (arg3 == NULL) SWIG_fail; | |
4852 | temp3 = true; | |
4853 | } | |
4854 | { | |
4855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4856 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
4857 | ||
4858 | wxPyEndAllowThreads(__tstate); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | } | |
4861 | Py_INCREF(Py_None); resultobj = Py_None; | |
4862 | { | |
4863 | if (temp3) | |
4864 | delete arg3; | |
4865 | } | |
4866 | return resultobj; | |
4867 | fail: | |
4868 | { | |
4869 | if (temp3) | |
4870 | delete arg3; | |
4871 | } | |
4872 | return NULL; | |
4873 | } | |
4874 | ||
4875 | ||
4876 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { | |
4877 | PyObject *resultobj; | |
4878 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4879 | bool arg2 ; | |
4880 | PyObject * obj0 = 0 ; | |
4881 | PyObject * obj1 = 0 ; | |
4882 | char *kwnames[] = { | |
4883 | (char *) "self",(char *) "editable", NULL | |
4884 | }; | |
4885 | ||
4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
4887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4889 | { | |
4890 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
4891 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4892 | } | |
4893 | { | |
4894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4895 | (arg1)->SetEditable(arg2); | |
4896 | ||
4897 | wxPyEndAllowThreads(__tstate); | |
4898 | if (PyErr_Occurred()) SWIG_fail; | |
4899 | } | |
4900 | Py_INCREF(Py_None); resultobj = Py_None; | |
4901 | return resultobj; | |
4902 | fail: | |
4903 | return NULL; | |
4904 | } | |
4905 | ||
4906 | ||
4907 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { | |
4908 | PyObject *resultobj; | |
4909 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4910 | PyObject * obj0 = 0 ; | |
4911 | char *kwnames[] = { | |
4912 | (char *) "self", NULL | |
4913 | }; | |
4914 | ||
4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
4916 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4917 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4918 | { | |
4919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4920 | (arg1)->SetInsertionPointEnd(); | |
4921 | ||
4922 | wxPyEndAllowThreads(__tstate); | |
4923 | if (PyErr_Occurred()) SWIG_fail; | |
4924 | } | |
4925 | Py_INCREF(Py_None); resultobj = Py_None; | |
4926 | return resultobj; | |
4927 | fail: | |
4928 | return NULL; | |
4929 | } | |
4930 | ||
4931 | ||
4932 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { | |
4933 | PyObject *resultobj; | |
4934 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4935 | long arg2 ; | |
4936 | long arg3 ; | |
4937 | PyObject * obj0 = 0 ; | |
4938 | PyObject * obj1 = 0 ; | |
4939 | PyObject * obj2 = 0 ; | |
4940 | char *kwnames[] = { | |
4941 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4942 | }; | |
4943 | ||
4944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4947 | { | |
4948 | arg2 = (long)(SWIG_As_long(obj1)); | |
4949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
4950 | } | |
4951 | { | |
4952 | arg3 = (long)(SWIG_As_long(obj2)); | |
4953 | if (SWIG_arg_fail(3)) SWIG_fail; | |
4954 | } | |
4955 | { | |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | (arg1)->Remove(arg2,arg3); | |
4958 | ||
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | Py_INCREF(Py_None); resultobj = Py_None; | |
4963 | return resultobj; | |
4964 | fail: | |
4965 | return NULL; | |
4966 | } | |
4967 | ||
4968 | ||
4969 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { | |
4970 | PyObject *resultobj; | |
4971 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
4972 | bool result; | |
4973 | PyObject * obj0 = 0 ; | |
4974 | char *kwnames[] = { | |
4975 | (char *) "self", NULL | |
4976 | }; | |
4977 | ||
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
4979 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4980 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4981 | { | |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | { | |
4989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4990 | } | |
4991 | return resultobj; | |
4992 | fail: | |
4993 | return NULL; | |
4994 | } | |
4995 | ||
4996 | ||
4997 | static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
4998 | PyObject *resultobj; | |
4999 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5000 | PyObject * obj0 = 0 ; | |
5001 | char *kwnames[] = { | |
5002 | (char *) "self", NULL | |
5003 | }; | |
5004 | ||
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail; | |
5006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5008 | { | |
5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5010 | (arg1)->Undo(); | |
5011 | ||
5012 | wxPyEndAllowThreads(__tstate); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
5014 | } | |
5015 | Py_INCREF(Py_None); resultobj = Py_None; | |
5016 | return resultobj; | |
5017 | fail: | |
5018 | return NULL; | |
5019 | } | |
5020 | ||
5021 | ||
5022 | static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject *resultobj; | |
5024 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5025 | PyObject * obj0 = 0 ; | |
5026 | char *kwnames[] = { | |
5027 | (char *) "self", NULL | |
5028 | }; | |
5029 | ||
5030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail; | |
5031 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5032 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5033 | { | |
5034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5035 | (arg1)->Redo(); | |
5036 | ||
5037 | wxPyEndAllowThreads(__tstate); | |
5038 | if (PyErr_Occurred()) SWIG_fail; | |
5039 | } | |
5040 | Py_INCREF(Py_None); resultobj = Py_None; | |
5041 | return resultobj; | |
5042 | fail: | |
5043 | return NULL; | |
5044 | } | |
5045 | ||
5046 | ||
5047 | static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
5048 | PyObject *resultobj; | |
5049 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5050 | PyObject * obj0 = 0 ; | |
5051 | char *kwnames[] = { | |
5052 | (char *) "self", NULL | |
5053 | }; | |
5054 | ||
5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
5056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5058 | { | |
5059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5060 | (arg1)->SelectAll(); | |
5061 | ||
5062 | wxPyEndAllowThreads(__tstate); | |
5063 | if (PyErr_Occurred()) SWIG_fail; | |
5064 | } | |
5065 | Py_INCREF(Py_None); resultobj = Py_None; | |
5066 | return resultobj; | |
5067 | fail: | |
5068 | return NULL; | |
5069 | } | |
5070 | ||
5071 | ||
5072 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
5073 | PyObject *resultobj; | |
5074 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5075 | bool result; | |
5076 | PyObject * obj0 = 0 ; | |
5077 | char *kwnames[] = { | |
5078 | (char *) "self", NULL | |
5079 | }; | |
5080 | ||
5081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
5082 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5083 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5084 | { | |
5085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5086 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
5087 | ||
5088 | wxPyEndAllowThreads(__tstate); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
5090 | } | |
5091 | { | |
5092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5093 | } | |
5094 | return resultobj; | |
5095 | fail: | |
5096 | return NULL; | |
5097 | } | |
5098 | ||
5099 | ||
5100 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
5101 | PyObject *resultobj; | |
5102 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5103 | bool result; | |
5104 | PyObject * obj0 = 0 ; | |
5105 | char *kwnames[] = { | |
5106 | (char *) "self", NULL | |
5107 | }; | |
5108 | ||
5109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
5110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5112 | { | |
5113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5114 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
5115 | ||
5116 | wxPyEndAllowThreads(__tstate); | |
5117 | if (PyErr_Occurred()) SWIG_fail; | |
5118 | } | |
5119 | { | |
5120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5121 | } | |
5122 | return resultobj; | |
5123 | fail: | |
5124 | return NULL; | |
5125 | } | |
5126 | ||
5127 | ||
5128 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
5129 | PyObject *resultobj; | |
5130 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5131 | bool result; | |
5132 | PyObject * obj0 = 0 ; | |
5133 | char *kwnames[] = { | |
5134 | (char *) "self", NULL | |
5135 | }; | |
5136 | ||
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
5138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5140 | { | |
5141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5142 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
5143 | ||
5144 | wxPyEndAllowThreads(__tstate); | |
5145 | if (PyErr_Occurred()) SWIG_fail; | |
5146 | } | |
5147 | { | |
5148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5149 | } | |
5150 | return resultobj; | |
5151 | fail: | |
5152 | return NULL; | |
5153 | } | |
5154 | ||
5155 | ||
5156 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5157 | PyObject *resultobj; | |
5158 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5159 | bool result; | |
5160 | PyObject * obj0 = 0 ; | |
5161 | char *kwnames[] = { | |
5162 | (char *) "self", NULL | |
5163 | }; | |
5164 | ||
5165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
5166 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5167 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5168 | { | |
5169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5170 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
5171 | ||
5172 | wxPyEndAllowThreads(__tstate); | |
5173 | if (PyErr_Occurred()) SWIG_fail; | |
5174 | } | |
5175 | { | |
5176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5177 | } | |
5178 | return resultobj; | |
5179 | fail: | |
5180 | return NULL; | |
5181 | } | |
5182 | ||
5183 | ||
5184 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
5185 | PyObject *resultobj; | |
5186 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
5187 | bool result; | |
5188 | PyObject * obj0 = 0 ; | |
5189 | char *kwnames[] = { | |
5190 | (char *) "self", NULL | |
5191 | }; | |
5192 | ||
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
5194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
5199 | ||
5200 | wxPyEndAllowThreads(__tstate); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | } | |
5203 | { | |
5204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5205 | } | |
5206 | return resultobj; | |
5207 | fail: | |
5208 | return NULL; | |
5209 | } | |
5210 | ||
5211 | ||
5212 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
5213 | PyObject *resultobj; | |
5214 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5215 | wxVisualAttributes result; | |
5216 | PyObject * obj0 = 0 ; | |
5217 | char *kwnames[] = { | |
5218 | (char *) "variant", NULL | |
5219 | }; | |
5220 | ||
5221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5222 | if (obj0) { | |
5223 | { | |
5224 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5226 | } | |
5227 | } | |
5228 | { | |
5229 | if (!wxPyCheckForApp()) SWIG_fail; | |
5230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5231 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5232 | ||
5233 | wxPyEndAllowThreads(__tstate); | |
5234 | if (PyErr_Occurred()) SWIG_fail; | |
5235 | } | |
5236 | { | |
5237 | wxVisualAttributes * resultptr; | |
5238 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
5239 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5240 | } | |
5241 | return resultobj; | |
5242 | fail: | |
5243 | return NULL; | |
5244 | } | |
5245 | ||
5246 | ||
5247 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { | |
5248 | PyObject *obj; | |
5249 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5250 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
5251 | Py_INCREF(obj); | |
5252 | return Py_BuildValue((char *)""); | |
5253 | } | |
5254 | static int _wrap_GaugeNameStr_set(PyObject *) { | |
5255 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
5256 | return 1; | |
5257 | } | |
5258 | ||
5259 | ||
5260 | static PyObject *_wrap_GaugeNameStr_get(void) { | |
5261 | PyObject *pyobj; | |
5262 | ||
5263 | { | |
5264 | #if wxUSE_UNICODE | |
5265 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5266 | #else | |
5267 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5268 | #endif | |
5269 | } | |
5270 | return pyobj; | |
5271 | } | |
5272 | ||
5273 | ||
5274 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { | |
5275 | PyObject *resultobj; | |
5276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5277 | int arg2 = (int) -1 ; | |
5278 | int arg3 = (int) 100 ; | |
5279 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5280 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5281 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5282 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5283 | long arg6 = (long) wxGA_HORIZONTAL ; | |
5284 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5285 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5286 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
5287 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5288 | wxGauge *result; | |
5289 | wxPoint temp4 ; | |
5290 | wxSize temp5 ; | |
5291 | bool temp8 = false ; | |
5292 | PyObject * obj0 = 0 ; | |
5293 | PyObject * obj1 = 0 ; | |
5294 | PyObject * obj2 = 0 ; | |
5295 | PyObject * obj3 = 0 ; | |
5296 | PyObject * obj4 = 0 ; | |
5297 | PyObject * obj5 = 0 ; | |
5298 | PyObject * obj6 = 0 ; | |
5299 | PyObject * obj7 = 0 ; | |
5300 | char *kwnames[] = { | |
5301 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5302 | }; | |
5303 | ||
5304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
5305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5307 | if (obj1) { | |
5308 | { | |
5309 | arg2 = (int)(SWIG_As_int(obj1)); | |
5310 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5311 | } | |
5312 | } | |
5313 | if (obj2) { | |
5314 | { | |
5315 | arg3 = (int)(SWIG_As_int(obj2)); | |
5316 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5317 | } | |
5318 | } | |
5319 | if (obj3) { | |
5320 | { | |
5321 | arg4 = &temp4; | |
5322 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5323 | } | |
5324 | } | |
5325 | if (obj4) { | |
5326 | { | |
5327 | arg5 = &temp5; | |
5328 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5329 | } | |
5330 | } | |
5331 | if (obj5) { | |
5332 | { | |
5333 | arg6 = (long)(SWIG_As_long(obj5)); | |
5334 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5335 | } | |
5336 | } | |
5337 | if (obj6) { | |
5338 | { | |
5339 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5340 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5341 | if (arg7 == NULL) { | |
5342 | SWIG_null_ref("wxValidator"); | |
5343 | } | |
5344 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5345 | } | |
5346 | } | |
5347 | if (obj7) { | |
5348 | { | |
5349 | arg8 = wxString_in_helper(obj7); | |
5350 | if (arg8 == NULL) SWIG_fail; | |
5351 | temp8 = true; | |
5352 | } | |
5353 | } | |
5354 | { | |
5355 | if (!wxPyCheckForApp()) SWIG_fail; | |
5356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5357 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5358 | ||
5359 | wxPyEndAllowThreads(__tstate); | |
5360 | if (PyErr_Occurred()) SWIG_fail; | |
5361 | } | |
5362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
5363 | { | |
5364 | if (temp8) | |
5365 | delete arg8; | |
5366 | } | |
5367 | return resultobj; | |
5368 | fail: | |
5369 | { | |
5370 | if (temp8) | |
5371 | delete arg8; | |
5372 | } | |
5373 | return NULL; | |
5374 | } | |
5375 | ||
5376 | ||
5377 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { | |
5378 | PyObject *resultobj; | |
5379 | wxGauge *result; | |
5380 | char *kwnames[] = { | |
5381 | NULL | |
5382 | }; | |
5383 | ||
5384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
5385 | { | |
5386 | if (!wxPyCheckForApp()) SWIG_fail; | |
5387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5388 | result = (wxGauge *)new wxGauge(); | |
5389 | ||
5390 | wxPyEndAllowThreads(__tstate); | |
5391 | if (PyErr_Occurred()) SWIG_fail; | |
5392 | } | |
5393 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
5394 | return resultobj; | |
5395 | fail: | |
5396 | return NULL; | |
5397 | } | |
5398 | ||
5399 | ||
5400 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
5401 | PyObject *resultobj; | |
5402 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5403 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5404 | int arg3 = (int) -1 ; | |
5405 | int arg4 = (int) 100 ; | |
5406 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
5407 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5408 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5409 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5410 | long arg7 = (long) wxGA_HORIZONTAL ; | |
5411 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5412 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5413 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
5414 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5415 | bool result; | |
5416 | wxPoint temp5 ; | |
5417 | wxSize temp6 ; | |
5418 | bool temp9 = false ; | |
5419 | PyObject * obj0 = 0 ; | |
5420 | PyObject * obj1 = 0 ; | |
5421 | PyObject * obj2 = 0 ; | |
5422 | PyObject * obj3 = 0 ; | |
5423 | PyObject * obj4 = 0 ; | |
5424 | PyObject * obj5 = 0 ; | |
5425 | PyObject * obj6 = 0 ; | |
5426 | PyObject * obj7 = 0 ; | |
5427 | PyObject * obj8 = 0 ; | |
5428 | char *kwnames[] = { | |
5429 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5430 | }; | |
5431 | ||
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
5433 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5434 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5435 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5436 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5437 | if (obj2) { | |
5438 | { | |
5439 | arg3 = (int)(SWIG_As_int(obj2)); | |
5440 | if (SWIG_arg_fail(3)) SWIG_fail; | |
5441 | } | |
5442 | } | |
5443 | if (obj3) { | |
5444 | { | |
5445 | arg4 = (int)(SWIG_As_int(obj3)); | |
5446 | if (SWIG_arg_fail(4)) SWIG_fail; | |
5447 | } | |
5448 | } | |
5449 | if (obj4) { | |
5450 | { | |
5451 | arg5 = &temp5; | |
5452 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5453 | } | |
5454 | } | |
5455 | if (obj5) { | |
5456 | { | |
5457 | arg6 = &temp6; | |
5458 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5459 | } | |
5460 | } | |
5461 | if (obj6) { | |
5462 | { | |
5463 | arg7 = (long)(SWIG_As_long(obj6)); | |
5464 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5465 | } | |
5466 | } | |
5467 | if (obj7) { | |
5468 | { | |
5469 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5470 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5471 | if (arg8 == NULL) { | |
5472 | SWIG_null_ref("wxValidator"); | |
5473 | } | |
5474 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5475 | } | |
5476 | } | |
5477 | if (obj8) { | |
5478 | { | |
5479 | arg9 = wxString_in_helper(obj8); | |
5480 | if (arg9 == NULL) SWIG_fail; | |
5481 | temp9 = true; | |
5482 | } | |
5483 | } | |
5484 | { | |
5485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5486 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5487 | ||
5488 | wxPyEndAllowThreads(__tstate); | |
5489 | if (PyErr_Occurred()) SWIG_fail; | |
5490 | } | |
5491 | { | |
5492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5493 | } | |
5494 | { | |
5495 | if (temp9) | |
5496 | delete arg9; | |
5497 | } | |
5498 | return resultobj; | |
5499 | fail: | |
5500 | { | |
5501 | if (temp9) | |
5502 | delete arg9; | |
5503 | } | |
5504 | return NULL; | |
5505 | } | |
5506 | ||
5507 | ||
5508 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
5509 | PyObject *resultobj; | |
5510 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5511 | int arg2 ; | |
5512 | PyObject * obj0 = 0 ; | |
5513 | PyObject * obj1 = 0 ; | |
5514 | char *kwnames[] = { | |
5515 | (char *) "self",(char *) "range", NULL | |
5516 | }; | |
5517 | ||
5518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
5519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5521 | { | |
5522 | arg2 = (int)(SWIG_As_int(obj1)); | |
5523 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5524 | } | |
5525 | { | |
5526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5527 | (arg1)->SetRange(arg2); | |
5528 | ||
5529 | wxPyEndAllowThreads(__tstate); | |
5530 | if (PyErr_Occurred()) SWIG_fail; | |
5531 | } | |
5532 | Py_INCREF(Py_None); resultobj = Py_None; | |
5533 | return resultobj; | |
5534 | fail: | |
5535 | return NULL; | |
5536 | } | |
5537 | ||
5538 | ||
5539 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
5540 | PyObject *resultobj; | |
5541 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5542 | int result; | |
5543 | PyObject * obj0 = 0 ; | |
5544 | char *kwnames[] = { | |
5545 | (char *) "self", NULL | |
5546 | }; | |
5547 | ||
5548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
5549 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5550 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5551 | { | |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
5554 | ||
5555 | wxPyEndAllowThreads(__tstate); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
5558 | { | |
5559 | resultobj = SWIG_From_int((int)(result)); | |
5560 | } | |
5561 | return resultobj; | |
5562 | fail: | |
5563 | return NULL; | |
5564 | } | |
5565 | ||
5566 | ||
5567 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
5568 | PyObject *resultobj; | |
5569 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5570 | int arg2 ; | |
5571 | PyObject * obj0 = 0 ; | |
5572 | PyObject * obj1 = 0 ; | |
5573 | char *kwnames[] = { | |
5574 | (char *) "self",(char *) "pos", NULL | |
5575 | }; | |
5576 | ||
5577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
5578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5580 | { | |
5581 | arg2 = (int)(SWIG_As_int(obj1)); | |
5582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5583 | } | |
5584 | { | |
5585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5586 | (arg1)->SetValue(arg2); | |
5587 | ||
5588 | wxPyEndAllowThreads(__tstate); | |
5589 | if (PyErr_Occurred()) SWIG_fail; | |
5590 | } | |
5591 | Py_INCREF(Py_None); resultobj = Py_None; | |
5592 | return resultobj; | |
5593 | fail: | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
5598 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
5599 | PyObject *resultobj; | |
5600 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5601 | int result; | |
5602 | PyObject * obj0 = 0 ; | |
5603 | char *kwnames[] = { | |
5604 | (char *) "self", NULL | |
5605 | }; | |
5606 | ||
5607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
5608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5610 | { | |
5611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5612 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
5613 | ||
5614 | wxPyEndAllowThreads(__tstate); | |
5615 | if (PyErr_Occurred()) SWIG_fail; | |
5616 | } | |
5617 | { | |
5618 | resultobj = SWIG_From_int((int)(result)); | |
5619 | } | |
5620 | return resultobj; | |
5621 | fail: | |
5622 | return NULL; | |
5623 | } | |
5624 | ||
5625 | ||
5626 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
5627 | PyObject *resultobj; | |
5628 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5629 | bool result; | |
5630 | PyObject * obj0 = 0 ; | |
5631 | char *kwnames[] = { | |
5632 | (char *) "self", NULL | |
5633 | }; | |
5634 | ||
5635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
5636 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5637 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5638 | { | |
5639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5640 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
5641 | ||
5642 | wxPyEndAllowThreads(__tstate); | |
5643 | if (PyErr_Occurred()) SWIG_fail; | |
5644 | } | |
5645 | { | |
5646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5647 | } | |
5648 | return resultobj; | |
5649 | fail: | |
5650 | return NULL; | |
5651 | } | |
5652 | ||
5653 | ||
5654 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
5655 | PyObject *resultobj; | |
5656 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5657 | int arg2 ; | |
5658 | PyObject * obj0 = 0 ; | |
5659 | PyObject * obj1 = 0 ; | |
5660 | char *kwnames[] = { | |
5661 | (char *) "self",(char *) "w", NULL | |
5662 | }; | |
5663 | ||
5664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
5665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5667 | { | |
5668 | arg2 = (int)(SWIG_As_int(obj1)); | |
5669 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5670 | } | |
5671 | { | |
5672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5673 | (arg1)->SetShadowWidth(arg2); | |
5674 | ||
5675 | wxPyEndAllowThreads(__tstate); | |
5676 | if (PyErr_Occurred()) SWIG_fail; | |
5677 | } | |
5678 | Py_INCREF(Py_None); resultobj = Py_None; | |
5679 | return resultobj; | |
5680 | fail: | |
5681 | return NULL; | |
5682 | } | |
5683 | ||
5684 | ||
5685 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
5686 | PyObject *resultobj; | |
5687 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5688 | int result; | |
5689 | PyObject * obj0 = 0 ; | |
5690 | char *kwnames[] = { | |
5691 | (char *) "self", NULL | |
5692 | }; | |
5693 | ||
5694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
5695 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5697 | { | |
5698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5699 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
5700 | ||
5701 | wxPyEndAllowThreads(__tstate); | |
5702 | if (PyErr_Occurred()) SWIG_fail; | |
5703 | } | |
5704 | { | |
5705 | resultobj = SWIG_From_int((int)(result)); | |
5706 | } | |
5707 | return resultobj; | |
5708 | fail: | |
5709 | return NULL; | |
5710 | } | |
5711 | ||
5712 | ||
5713 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { | |
5714 | PyObject *resultobj; | |
5715 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5716 | int arg2 ; | |
5717 | PyObject * obj0 = 0 ; | |
5718 | PyObject * obj1 = 0 ; | |
5719 | char *kwnames[] = { | |
5720 | (char *) "self",(char *) "w", NULL | |
5721 | }; | |
5722 | ||
5723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
5724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5726 | { | |
5727 | arg2 = (int)(SWIG_As_int(obj1)); | |
5728 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5729 | } | |
5730 | { | |
5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5732 | (arg1)->SetBezelFace(arg2); | |
5733 | ||
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
5736 | } | |
5737 | Py_INCREF(Py_None); resultobj = Py_None; | |
5738 | return resultobj; | |
5739 | fail: | |
5740 | return NULL; | |
5741 | } | |
5742 | ||
5743 | ||
5744 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { | |
5745 | PyObject *resultobj; | |
5746 | wxGauge *arg1 = (wxGauge *) 0 ; | |
5747 | int result; | |
5748 | PyObject * obj0 = 0 ; | |
5749 | char *kwnames[] = { | |
5750 | (char *) "self", NULL | |
5751 | }; | |
5752 | ||
5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
5754 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); | |
5755 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5756 | { | |
5757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5758 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
5759 | ||
5760 | wxPyEndAllowThreads(__tstate); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
5763 | { | |
5764 | resultobj = SWIG_From_int((int)(result)); | |
5765 | } | |
5766 | return resultobj; | |
5767 | fail: | |
5768 | return NULL; | |
5769 | } | |
5770 | ||
5771 | ||
5772 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject *resultobj; | |
5774 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
5775 | wxVisualAttributes result; | |
5776 | PyObject * obj0 = 0 ; | |
5777 | char *kwnames[] = { | |
5778 | (char *) "variant", NULL | |
5779 | }; | |
5780 | ||
5781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5782 | if (obj0) { | |
5783 | { | |
5784 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
5785 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5786 | } | |
5787 | } | |
5788 | { | |
5789 | if (!wxPyCheckForApp()) SWIG_fail; | |
5790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5791 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5792 | ||
5793 | wxPyEndAllowThreads(__tstate); | |
5794 | if (PyErr_Occurred()) SWIG_fail; | |
5795 | } | |
5796 | { | |
5797 | wxVisualAttributes * resultptr; | |
5798 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
5799 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5800 | } | |
5801 | return resultobj; | |
5802 | fail: | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
5807 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { | |
5808 | PyObject *obj; | |
5809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5810 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
5811 | Py_INCREF(obj); | |
5812 | return Py_BuildValue((char *)""); | |
5813 | } | |
5814 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { | |
5815 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
5816 | return 1; | |
5817 | } | |
5818 | ||
5819 | ||
5820 | static PyObject *_wrap_StaticBitmapNameStr_get(void) { | |
5821 | PyObject *pyobj; | |
5822 | ||
5823 | { | |
5824 | #if wxUSE_UNICODE | |
5825 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5826 | #else | |
5827 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
5828 | #endif | |
5829 | } | |
5830 | return pyobj; | |
5831 | } | |
5832 | ||
5833 | ||
5834 | static int _wrap_StaticBoxNameStr_set(PyObject *) { | |
5835 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
5836 | return 1; | |
5837 | } | |
5838 | ||
5839 | ||
5840 | static PyObject *_wrap_StaticBoxNameStr_get(void) { | |
5841 | PyObject *pyobj; | |
5842 | ||
5843 | { | |
5844 | #if wxUSE_UNICODE | |
5845 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5846 | #else | |
5847 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
5848 | #endif | |
5849 | } | |
5850 | return pyobj; | |
5851 | } | |
5852 | ||
5853 | ||
5854 | static int _wrap_StaticTextNameStr_set(PyObject *) { | |
5855 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
5856 | return 1; | |
5857 | } | |
5858 | ||
5859 | ||
5860 | static PyObject *_wrap_StaticTextNameStr_get(void) { | |
5861 | PyObject *pyobj; | |
5862 | ||
5863 | { | |
5864 | #if wxUSE_UNICODE | |
5865 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5866 | #else | |
5867 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
5868 | #endif | |
5869 | } | |
5870 | return pyobj; | |
5871 | } | |
5872 | ||
5873 | ||
5874 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
5875 | PyObject *resultobj; | |
5876 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5877 | int arg2 = (int) -1 ; | |
5878 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5879 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5880 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5881 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5882 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5883 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5884 | long arg6 = (long) 0 ; | |
5885 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
5886 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5887 | wxStaticBox *result; | |
5888 | bool temp3 = false ; | |
5889 | wxPoint temp4 ; | |
5890 | wxSize temp5 ; | |
5891 | bool temp7 = false ; | |
5892 | PyObject * obj0 = 0 ; | |
5893 | PyObject * obj1 = 0 ; | |
5894 | PyObject * obj2 = 0 ; | |
5895 | PyObject * obj3 = 0 ; | |
5896 | PyObject * obj4 = 0 ; | |
5897 | PyObject * obj5 = 0 ; | |
5898 | PyObject * obj6 = 0 ; | |
5899 | char *kwnames[] = { | |
5900 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5901 | }; | |
5902 | ||
5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5906 | if (obj1) { | |
5907 | { | |
5908 | arg2 = (int)(SWIG_As_int(obj1)); | |
5909 | if (SWIG_arg_fail(2)) SWIG_fail; | |
5910 | } | |
5911 | } | |
5912 | if (obj2) { | |
5913 | { | |
5914 | arg3 = wxString_in_helper(obj2); | |
5915 | if (arg3 == NULL) SWIG_fail; | |
5916 | temp3 = true; | |
5917 | } | |
5918 | } | |
5919 | if (obj3) { | |
5920 | { | |
5921 | arg4 = &temp4; | |
5922 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5923 | } | |
5924 | } | |
5925 | if (obj4) { | |
5926 | { | |
5927 | arg5 = &temp5; | |
5928 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5929 | } | |
5930 | } | |
5931 | if (obj5) { | |
5932 | { | |
5933 | arg6 = (long)(SWIG_As_long(obj5)); | |
5934 | if (SWIG_arg_fail(6)) SWIG_fail; | |
5935 | } | |
5936 | } | |
5937 | if (obj6) { | |
5938 | { | |
5939 | arg7 = wxString_in_helper(obj6); | |
5940 | if (arg7 == NULL) SWIG_fail; | |
5941 | temp7 = true; | |
5942 | } | |
5943 | } | |
5944 | { | |
5945 | if (!wxPyCheckForApp()) SWIG_fail; | |
5946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5947 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5948 | ||
5949 | wxPyEndAllowThreads(__tstate); | |
5950 | if (PyErr_Occurred()) SWIG_fail; | |
5951 | } | |
5952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); | |
5953 | { | |
5954 | if (temp3) | |
5955 | delete arg3; | |
5956 | } | |
5957 | { | |
5958 | if (temp7) | |
5959 | delete arg7; | |
5960 | } | |
5961 | return resultobj; | |
5962 | fail: | |
5963 | { | |
5964 | if (temp3) | |
5965 | delete arg3; | |
5966 | } | |
5967 | { | |
5968 | if (temp7) | |
5969 | delete arg7; | |
5970 | } | |
5971 | return NULL; | |
5972 | } | |
5973 | ||
5974 | ||
5975 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
5976 | PyObject *resultobj; | |
5977 | wxStaticBox *result; | |
5978 | char *kwnames[] = { | |
5979 | NULL | |
5980 | }; | |
5981 | ||
5982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
5983 | { | |
5984 | if (!wxPyCheckForApp()) SWIG_fail; | |
5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5986 | result = (wxStaticBox *)new wxStaticBox(); | |
5987 | ||
5988 | wxPyEndAllowThreads(__tstate); | |
5989 | if (PyErr_Occurred()) SWIG_fail; | |
5990 | } | |
5991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); | |
5992 | return resultobj; | |
5993 | fail: | |
5994 | return NULL; | |
5995 | } | |
5996 | ||
5997 | ||
5998 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
5999 | PyObject *resultobj; | |
6000 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
6001 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6002 | int arg3 = (int) -1 ; | |
6003 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6004 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6005 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6006 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6007 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6008 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6009 | long arg7 = (long) 0 ; | |
6010 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
6011 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6012 | bool result; | |
6013 | bool temp4 = false ; | |
6014 | wxPoint temp5 ; | |
6015 | wxSize temp6 ; | |
6016 | bool temp8 = false ; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | PyObject * obj1 = 0 ; | |
6019 | PyObject * obj2 = 0 ; | |
6020 | PyObject * obj3 = 0 ; | |
6021 | PyObject * obj4 = 0 ; | |
6022 | PyObject * obj5 = 0 ; | |
6023 | PyObject * obj6 = 0 ; | |
6024 | PyObject * obj7 = 0 ; | |
6025 | char *kwnames[] = { | |
6026 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6027 | }; | |
6028 | ||
6029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
6030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); | |
6031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6032 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6033 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6034 | if (obj2) { | |
6035 | { | |
6036 | arg3 = (int)(SWIG_As_int(obj2)); | |
6037 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6038 | } | |
6039 | } | |
6040 | if (obj3) { | |
6041 | { | |
6042 | arg4 = wxString_in_helper(obj3); | |
6043 | if (arg4 == NULL) SWIG_fail; | |
6044 | temp4 = true; | |
6045 | } | |
6046 | } | |
6047 | if (obj4) { | |
6048 | { | |
6049 | arg5 = &temp5; | |
6050 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6051 | } | |
6052 | } | |
6053 | if (obj5) { | |
6054 | { | |
6055 | arg6 = &temp6; | |
6056 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6057 | } | |
6058 | } | |
6059 | if (obj6) { | |
6060 | { | |
6061 | arg7 = (long)(SWIG_As_long(obj6)); | |
6062 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6063 | } | |
6064 | } | |
6065 | if (obj7) { | |
6066 | { | |
6067 | arg8 = wxString_in_helper(obj7); | |
6068 | if (arg8 == NULL) SWIG_fail; | |
6069 | temp8 = true; | |
6070 | } | |
6071 | } | |
6072 | { | |
6073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6074 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6075 | ||
6076 | wxPyEndAllowThreads(__tstate); | |
6077 | if (PyErr_Occurred()) SWIG_fail; | |
6078 | } | |
6079 | { | |
6080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6081 | } | |
6082 | { | |
6083 | if (temp4) | |
6084 | delete arg4; | |
6085 | } | |
6086 | { | |
6087 | if (temp8) | |
6088 | delete arg8; | |
6089 | } | |
6090 | return resultobj; | |
6091 | fail: | |
6092 | { | |
6093 | if (temp4) | |
6094 | delete arg4; | |
6095 | } | |
6096 | { | |
6097 | if (temp8) | |
6098 | delete arg8; | |
6099 | } | |
6100 | return NULL; | |
6101 | } | |
6102 | ||
6103 | ||
6104 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
6105 | PyObject *resultobj; | |
6106 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6107 | wxVisualAttributes result; | |
6108 | PyObject * obj0 = 0 ; | |
6109 | char *kwnames[] = { | |
6110 | (char *) "variant", NULL | |
6111 | }; | |
6112 | ||
6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6114 | if (obj0) { | |
6115 | { | |
6116 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6117 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6118 | } | |
6119 | } | |
6120 | { | |
6121 | if (!wxPyCheckForApp()) SWIG_fail; | |
6122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6123 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6124 | ||
6125 | wxPyEndAllowThreads(__tstate); | |
6126 | if (PyErr_Occurred()) SWIG_fail; | |
6127 | } | |
6128 | { | |
6129 | wxVisualAttributes * resultptr; | |
6130 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
6131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6132 | } | |
6133 | return resultobj; | |
6134 | fail: | |
6135 | return NULL; | |
6136 | } | |
6137 | ||
6138 | ||
6139 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { | |
6140 | PyObject *obj; | |
6141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6142 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
6143 | Py_INCREF(obj); | |
6144 | return Py_BuildValue((char *)""); | |
6145 | } | |
6146 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
6147 | PyObject *resultobj; | |
6148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6149 | int arg2 = (int) -1 ; | |
6150 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
6151 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6152 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6153 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6154 | long arg5 = (long) wxLI_HORIZONTAL ; | |
6155 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
6156 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6157 | wxStaticLine *result; | |
6158 | wxPoint temp3 ; | |
6159 | wxSize temp4 ; | |
6160 | bool temp6 = false ; | |
6161 | PyObject * obj0 = 0 ; | |
6162 | PyObject * obj1 = 0 ; | |
6163 | PyObject * obj2 = 0 ; | |
6164 | PyObject * obj3 = 0 ; | |
6165 | PyObject * obj4 = 0 ; | |
6166 | PyObject * obj5 = 0 ; | |
6167 | char *kwnames[] = { | |
6168 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6169 | }; | |
6170 | ||
6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
6172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6174 | if (obj1) { | |
6175 | { | |
6176 | arg2 = (int)(SWIG_As_int(obj1)); | |
6177 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6178 | } | |
6179 | } | |
6180 | if (obj2) { | |
6181 | { | |
6182 | arg3 = &temp3; | |
6183 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6184 | } | |
6185 | } | |
6186 | if (obj3) { | |
6187 | { | |
6188 | arg4 = &temp4; | |
6189 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6190 | } | |
6191 | } | |
6192 | if (obj4) { | |
6193 | { | |
6194 | arg5 = (long)(SWIG_As_long(obj4)); | |
6195 | if (SWIG_arg_fail(5)) SWIG_fail; | |
6196 | } | |
6197 | } | |
6198 | if (obj5) { | |
6199 | { | |
6200 | arg6 = wxString_in_helper(obj5); | |
6201 | if (arg6 == NULL) SWIG_fail; | |
6202 | temp6 = true; | |
6203 | } | |
6204 | } | |
6205 | { | |
6206 | if (!wxPyCheckForApp()) SWIG_fail; | |
6207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6208 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6209 | ||
6210 | wxPyEndAllowThreads(__tstate); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | } | |
6213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
6214 | { | |
6215 | if (temp6) | |
6216 | delete arg6; | |
6217 | } | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | { | |
6221 | if (temp6) | |
6222 | delete arg6; | |
6223 | } | |
6224 | return NULL; | |
6225 | } | |
6226 | ||
6227 | ||
6228 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
6229 | PyObject *resultobj; | |
6230 | wxStaticLine *result; | |
6231 | char *kwnames[] = { | |
6232 | NULL | |
6233 | }; | |
6234 | ||
6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
6236 | { | |
6237 | if (!wxPyCheckForApp()) SWIG_fail; | |
6238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6239 | result = (wxStaticLine *)new wxStaticLine(); | |
6240 | ||
6241 | wxPyEndAllowThreads(__tstate); | |
6242 | if (PyErr_Occurred()) SWIG_fail; | |
6243 | } | |
6244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
6245 | return resultobj; | |
6246 | fail: | |
6247 | return NULL; | |
6248 | } | |
6249 | ||
6250 | ||
6251 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
6252 | PyObject *resultobj; | |
6253 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6255 | int arg3 = (int) -1 ; | |
6256 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6257 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6258 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6259 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6260 | long arg6 = (long) wxLI_HORIZONTAL ; | |
6261 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6262 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6263 | bool result; | |
6264 | wxPoint temp4 ; | |
6265 | wxSize temp5 ; | |
6266 | bool temp7 = false ; | |
6267 | PyObject * obj0 = 0 ; | |
6268 | PyObject * obj1 = 0 ; | |
6269 | PyObject * obj2 = 0 ; | |
6270 | PyObject * obj3 = 0 ; | |
6271 | PyObject * obj4 = 0 ; | |
6272 | PyObject * obj5 = 0 ; | |
6273 | PyObject * obj6 = 0 ; | |
6274 | char *kwnames[] = { | |
6275 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6276 | }; | |
6277 | ||
6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
6279 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); | |
6280 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6281 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6282 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6283 | if (obj2) { | |
6284 | { | |
6285 | arg3 = (int)(SWIG_As_int(obj2)); | |
6286 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6287 | } | |
6288 | } | |
6289 | if (obj3) { | |
6290 | { | |
6291 | arg4 = &temp4; | |
6292 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6293 | } | |
6294 | } | |
6295 | if (obj4) { | |
6296 | { | |
6297 | arg5 = &temp5; | |
6298 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6299 | } | |
6300 | } | |
6301 | if (obj5) { | |
6302 | { | |
6303 | arg6 = (long)(SWIG_As_long(obj5)); | |
6304 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6305 | } | |
6306 | } | |
6307 | if (obj6) { | |
6308 | { | |
6309 | arg7 = wxString_in_helper(obj6); | |
6310 | if (arg7 == NULL) SWIG_fail; | |
6311 | temp7 = true; | |
6312 | } | |
6313 | } | |
6314 | { | |
6315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6316 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6317 | ||
6318 | wxPyEndAllowThreads(__tstate); | |
6319 | if (PyErr_Occurred()) SWIG_fail; | |
6320 | } | |
6321 | { | |
6322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6323 | } | |
6324 | { | |
6325 | if (temp7) | |
6326 | delete arg7; | |
6327 | } | |
6328 | return resultobj; | |
6329 | fail: | |
6330 | { | |
6331 | if (temp7) | |
6332 | delete arg7; | |
6333 | } | |
6334 | return NULL; | |
6335 | } | |
6336 | ||
6337 | ||
6338 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
6339 | PyObject *resultobj; | |
6340 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
6341 | bool result; | |
6342 | PyObject * obj0 = 0 ; | |
6343 | char *kwnames[] = { | |
6344 | (char *) "self", NULL | |
6345 | }; | |
6346 | ||
6347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
6348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); | |
6349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6350 | { | |
6351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6352 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
6353 | ||
6354 | wxPyEndAllowThreads(__tstate); | |
6355 | if (PyErr_Occurred()) SWIG_fail; | |
6356 | } | |
6357 | { | |
6358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6359 | } | |
6360 | return resultobj; | |
6361 | fail: | |
6362 | return NULL; | |
6363 | } | |
6364 | ||
6365 | ||
6366 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6367 | PyObject *resultobj; | |
6368 | int result; | |
6369 | char *kwnames[] = { | |
6370 | NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
6374 | { | |
6375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6376 | result = (int)wxStaticLine::GetDefaultSize(); | |
6377 | ||
6378 | wxPyEndAllowThreads(__tstate); | |
6379 | if (PyErr_Occurred()) SWIG_fail; | |
6380 | } | |
6381 | { | |
6382 | resultobj = SWIG_From_int((int)(result)); | |
6383 | } | |
6384 | return resultobj; | |
6385 | fail: | |
6386 | return NULL; | |
6387 | } | |
6388 | ||
6389 | ||
6390 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
6391 | PyObject *resultobj; | |
6392 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6393 | wxVisualAttributes result; | |
6394 | PyObject * obj0 = 0 ; | |
6395 | char *kwnames[] = { | |
6396 | (char *) "variant", NULL | |
6397 | }; | |
6398 | ||
6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6400 | if (obj0) { | |
6401 | { | |
6402 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6404 | } | |
6405 | } | |
6406 | { | |
6407 | if (!wxPyCheckForApp()) SWIG_fail; | |
6408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6409 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6410 | ||
6411 | wxPyEndAllowThreads(__tstate); | |
6412 | if (PyErr_Occurred()) SWIG_fail; | |
6413 | } | |
6414 | { | |
6415 | wxVisualAttributes * resultptr; | |
6416 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
6417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6418 | } | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | return NULL; | |
6422 | } | |
6423 | ||
6424 | ||
6425 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { | |
6426 | PyObject *obj; | |
6427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6428 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
6429 | Py_INCREF(obj); | |
6430 | return Py_BuildValue((char *)""); | |
6431 | } | |
6432 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { | |
6433 | PyObject *resultobj; | |
6434 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6435 | int arg2 = (int) -1 ; | |
6436 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6437 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6438 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6439 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6440 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6441 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6442 | long arg6 = (long) 0 ; | |
6443 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6444 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6445 | wxStaticText *result; | |
6446 | bool temp3 = false ; | |
6447 | wxPoint temp4 ; | |
6448 | wxSize temp5 ; | |
6449 | bool temp7 = false ; | |
6450 | PyObject * obj0 = 0 ; | |
6451 | PyObject * obj1 = 0 ; | |
6452 | PyObject * obj2 = 0 ; | |
6453 | PyObject * obj3 = 0 ; | |
6454 | PyObject * obj4 = 0 ; | |
6455 | PyObject * obj5 = 0 ; | |
6456 | PyObject * obj6 = 0 ; | |
6457 | char *kwnames[] = { | |
6458 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6459 | }; | |
6460 | ||
6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
6462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6464 | if (obj1) { | |
6465 | { | |
6466 | arg2 = (int)(SWIG_As_int(obj1)); | |
6467 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6468 | } | |
6469 | } | |
6470 | if (obj2) { | |
6471 | { | |
6472 | arg3 = wxString_in_helper(obj2); | |
6473 | if (arg3 == NULL) SWIG_fail; | |
6474 | temp3 = true; | |
6475 | } | |
6476 | } | |
6477 | if (obj3) { | |
6478 | { | |
6479 | arg4 = &temp4; | |
6480 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6481 | } | |
6482 | } | |
6483 | if (obj4) { | |
6484 | { | |
6485 | arg5 = &temp5; | |
6486 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6487 | } | |
6488 | } | |
6489 | if (obj5) { | |
6490 | { | |
6491 | arg6 = (long)(SWIG_As_long(obj5)); | |
6492 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6493 | } | |
6494 | } | |
6495 | if (obj6) { | |
6496 | { | |
6497 | arg7 = wxString_in_helper(obj6); | |
6498 | if (arg7 == NULL) SWIG_fail; | |
6499 | temp7 = true; | |
6500 | } | |
6501 | } | |
6502 | { | |
6503 | if (!wxPyCheckForApp()) SWIG_fail; | |
6504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6505 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6506 | ||
6507 | wxPyEndAllowThreads(__tstate); | |
6508 | if (PyErr_Occurred()) SWIG_fail; | |
6509 | } | |
6510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
6511 | { | |
6512 | if (temp3) | |
6513 | delete arg3; | |
6514 | } | |
6515 | { | |
6516 | if (temp7) | |
6517 | delete arg7; | |
6518 | } | |
6519 | return resultobj; | |
6520 | fail: | |
6521 | { | |
6522 | if (temp3) | |
6523 | delete arg3; | |
6524 | } | |
6525 | { | |
6526 | if (temp7) | |
6527 | delete arg7; | |
6528 | } | |
6529 | return NULL; | |
6530 | } | |
6531 | ||
6532 | ||
6533 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { | |
6534 | PyObject *resultobj; | |
6535 | wxStaticText *result; | |
6536 | char *kwnames[] = { | |
6537 | NULL | |
6538 | }; | |
6539 | ||
6540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
6541 | { | |
6542 | if (!wxPyCheckForApp()) SWIG_fail; | |
6543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6544 | result = (wxStaticText *)new wxStaticText(); | |
6545 | ||
6546 | wxPyEndAllowThreads(__tstate); | |
6547 | if (PyErr_Occurred()) SWIG_fail; | |
6548 | } | |
6549 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
6550 | return resultobj; | |
6551 | fail: | |
6552 | return NULL; | |
6553 | } | |
6554 | ||
6555 | ||
6556 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
6557 | PyObject *resultobj; | |
6558 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
6559 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6560 | int arg3 = (int) -1 ; | |
6561 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6562 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6563 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6564 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6565 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6566 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6567 | long arg7 = (long) 0 ; | |
6568 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
6569 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6570 | bool result; | |
6571 | bool temp4 = false ; | |
6572 | wxPoint temp5 ; | |
6573 | wxSize temp6 ; | |
6574 | bool temp8 = false ; | |
6575 | PyObject * obj0 = 0 ; | |
6576 | PyObject * obj1 = 0 ; | |
6577 | PyObject * obj2 = 0 ; | |
6578 | PyObject * obj3 = 0 ; | |
6579 | PyObject * obj4 = 0 ; | |
6580 | PyObject * obj5 = 0 ; | |
6581 | PyObject * obj6 = 0 ; | |
6582 | PyObject * obj7 = 0 ; | |
6583 | char *kwnames[] = { | |
6584 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6585 | }; | |
6586 | ||
6587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
6588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); | |
6589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6590 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6591 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6592 | if (obj2) { | |
6593 | { | |
6594 | arg3 = (int)(SWIG_As_int(obj2)); | |
6595 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6596 | } | |
6597 | } | |
6598 | if (obj3) { | |
6599 | { | |
6600 | arg4 = wxString_in_helper(obj3); | |
6601 | if (arg4 == NULL) SWIG_fail; | |
6602 | temp4 = true; | |
6603 | } | |
6604 | } | |
6605 | if (obj4) { | |
6606 | { | |
6607 | arg5 = &temp5; | |
6608 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6609 | } | |
6610 | } | |
6611 | if (obj5) { | |
6612 | { | |
6613 | arg6 = &temp6; | |
6614 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6615 | } | |
6616 | } | |
6617 | if (obj6) { | |
6618 | { | |
6619 | arg7 = (long)(SWIG_As_long(obj6)); | |
6620 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6621 | } | |
6622 | } | |
6623 | if (obj7) { | |
6624 | { | |
6625 | arg8 = wxString_in_helper(obj7); | |
6626 | if (arg8 == NULL) SWIG_fail; | |
6627 | temp8 = true; | |
6628 | } | |
6629 | } | |
6630 | { | |
6631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6632 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6633 | ||
6634 | wxPyEndAllowThreads(__tstate); | |
6635 | if (PyErr_Occurred()) SWIG_fail; | |
6636 | } | |
6637 | { | |
6638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6639 | } | |
6640 | { | |
6641 | if (temp4) | |
6642 | delete arg4; | |
6643 | } | |
6644 | { | |
6645 | if (temp8) | |
6646 | delete arg8; | |
6647 | } | |
6648 | return resultobj; | |
6649 | fail: | |
6650 | { | |
6651 | if (temp4) | |
6652 | delete arg4; | |
6653 | } | |
6654 | { | |
6655 | if (temp8) | |
6656 | delete arg8; | |
6657 | } | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
6663 | PyObject *resultobj; | |
6664 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
6665 | wxVisualAttributes result; | |
6666 | PyObject * obj0 = 0 ; | |
6667 | char *kwnames[] = { | |
6668 | (char *) "variant", NULL | |
6669 | }; | |
6670 | ||
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6672 | if (obj0) { | |
6673 | { | |
6674 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
6675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6676 | } | |
6677 | } | |
6678 | { | |
6679 | if (!wxPyCheckForApp()) SWIG_fail; | |
6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6681 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6682 | ||
6683 | wxPyEndAllowThreads(__tstate); | |
6684 | if (PyErr_Occurred()) SWIG_fail; | |
6685 | } | |
6686 | { | |
6687 | wxVisualAttributes * resultptr; | |
6688 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
6689 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6690 | } | |
6691 | return resultobj; | |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { | |
6698 | PyObject *obj; | |
6699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6700 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
6701 | Py_INCREF(obj); | |
6702 | return Py_BuildValue((char *)""); | |
6703 | } | |
6704 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
6705 | PyObject *resultobj; | |
6706 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6707 | int arg2 = (int) -1 ; | |
6708 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
6709 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
6710 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6711 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6712 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6713 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6714 | long arg6 = (long) 0 ; | |
6715 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
6716 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6717 | wxStaticBitmap *result; | |
6718 | wxPoint temp4 ; | |
6719 | wxSize temp5 ; | |
6720 | bool temp7 = false ; | |
6721 | PyObject * obj0 = 0 ; | |
6722 | PyObject * obj1 = 0 ; | |
6723 | PyObject * obj2 = 0 ; | |
6724 | PyObject * obj3 = 0 ; | |
6725 | PyObject * obj4 = 0 ; | |
6726 | PyObject * obj5 = 0 ; | |
6727 | PyObject * obj6 = 0 ; | |
6728 | char *kwnames[] = { | |
6729 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6730 | }; | |
6731 | ||
6732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
6733 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6734 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6735 | if (obj1) { | |
6736 | { | |
6737 | arg2 = (int)(SWIG_As_int(obj1)); | |
6738 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6739 | } | |
6740 | } | |
6741 | if (obj2) { | |
6742 | { | |
6743 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6744 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6745 | if (arg3 == NULL) { | |
6746 | SWIG_null_ref("wxBitmap"); | |
6747 | } | |
6748 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6749 | } | |
6750 | } | |
6751 | if (obj3) { | |
6752 | { | |
6753 | arg4 = &temp4; | |
6754 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6755 | } | |
6756 | } | |
6757 | if (obj4) { | |
6758 | { | |
6759 | arg5 = &temp5; | |
6760 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6761 | } | |
6762 | } | |
6763 | if (obj5) { | |
6764 | { | |
6765 | arg6 = (long)(SWIG_As_long(obj5)); | |
6766 | if (SWIG_arg_fail(6)) SWIG_fail; | |
6767 | } | |
6768 | } | |
6769 | if (obj6) { | |
6770 | { | |
6771 | arg7 = wxString_in_helper(obj6); | |
6772 | if (arg7 == NULL) SWIG_fail; | |
6773 | temp7 = true; | |
6774 | } | |
6775 | } | |
6776 | { | |
6777 | if (!wxPyCheckForApp()) SWIG_fail; | |
6778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6779 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6780 | ||
6781 | wxPyEndAllowThreads(__tstate); | |
6782 | if (PyErr_Occurred()) SWIG_fail; | |
6783 | } | |
6784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
6785 | { | |
6786 | if (temp7) | |
6787 | delete arg7; | |
6788 | } | |
6789 | return resultobj; | |
6790 | fail: | |
6791 | { | |
6792 | if (temp7) | |
6793 | delete arg7; | |
6794 | } | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj; | |
6801 | wxStaticBitmap *result; | |
6802 | char *kwnames[] = { | |
6803 | NULL | |
6804 | }; | |
6805 | ||
6806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
6807 | { | |
6808 | if (!wxPyCheckForApp()) SWIG_fail; | |
6809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6810 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
6811 | ||
6812 | wxPyEndAllowThreads(__tstate); | |
6813 | if (PyErr_Occurred()) SWIG_fail; | |
6814 | } | |
6815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
6816 | return resultobj; | |
6817 | fail: | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
6822 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
6823 | PyObject *resultobj; | |
6824 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6825 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6826 | int arg3 = (int) -1 ; | |
6827 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
6828 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
6829 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6830 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6831 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6832 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6833 | long arg7 = (long) 0 ; | |
6834 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
6835 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6836 | bool result; | |
6837 | wxPoint temp5 ; | |
6838 | wxSize temp6 ; | |
6839 | bool temp8 = false ; | |
6840 | PyObject * obj0 = 0 ; | |
6841 | PyObject * obj1 = 0 ; | |
6842 | PyObject * obj2 = 0 ; | |
6843 | PyObject * obj3 = 0 ; | |
6844 | PyObject * obj4 = 0 ; | |
6845 | PyObject * obj5 = 0 ; | |
6846 | PyObject * obj6 = 0 ; | |
6847 | PyObject * obj7 = 0 ; | |
6848 | char *kwnames[] = { | |
6849 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6850 | }; | |
6851 | ||
6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
6853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6855 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6856 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6857 | if (obj2) { | |
6858 | { | |
6859 | arg3 = (int)(SWIG_As_int(obj2)); | |
6860 | if (SWIG_arg_fail(3)) SWIG_fail; | |
6861 | } | |
6862 | } | |
6863 | if (obj3) { | |
6864 | { | |
6865 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6866 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6867 | if (arg4 == NULL) { | |
6868 | SWIG_null_ref("wxBitmap"); | |
6869 | } | |
6870 | if (SWIG_arg_fail(4)) SWIG_fail; | |
6871 | } | |
6872 | } | |
6873 | if (obj4) { | |
6874 | { | |
6875 | arg5 = &temp5; | |
6876 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6877 | } | |
6878 | } | |
6879 | if (obj5) { | |
6880 | { | |
6881 | arg6 = &temp6; | |
6882 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6883 | } | |
6884 | } | |
6885 | if (obj6) { | |
6886 | { | |
6887 | arg7 = (long)(SWIG_As_long(obj6)); | |
6888 | if (SWIG_arg_fail(7)) SWIG_fail; | |
6889 | } | |
6890 | } | |
6891 | if (obj7) { | |
6892 | { | |
6893 | arg8 = wxString_in_helper(obj7); | |
6894 | if (arg8 == NULL) SWIG_fail; | |
6895 | temp8 = true; | |
6896 | } | |
6897 | } | |
6898 | { | |
6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6900 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6901 | ||
6902 | wxPyEndAllowThreads(__tstate); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | { | |
6906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6907 | } | |
6908 | { | |
6909 | if (temp8) | |
6910 | delete arg8; | |
6911 | } | |
6912 | return resultobj; | |
6913 | fail: | |
6914 | { | |
6915 | if (temp8) | |
6916 | delete arg8; | |
6917 | } | |
6918 | return NULL; | |
6919 | } | |
6920 | ||
6921 | ||
6922 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
6923 | PyObject *resultobj; | |
6924 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6925 | wxBitmap result; | |
6926 | PyObject * obj0 = 0 ; | |
6927 | char *kwnames[] = { | |
6928 | (char *) "self", NULL | |
6929 | }; | |
6930 | ||
6931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
6932 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6933 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6934 | { | |
6935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6936 | result = (arg1)->GetBitmap(); | |
6937 | ||
6938 | wxPyEndAllowThreads(__tstate); | |
6939 | if (PyErr_Occurred()) SWIG_fail; | |
6940 | } | |
6941 | { | |
6942 | wxBitmap * resultptr; | |
6943 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
6944 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
6945 | } | |
6946 | return resultobj; | |
6947 | fail: | |
6948 | return NULL; | |
6949 | } | |
6950 | ||
6951 | ||
6952 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
6953 | PyObject *resultobj; | |
6954 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6955 | wxBitmap *arg2 = 0 ; | |
6956 | PyObject * obj0 = 0 ; | |
6957 | PyObject * obj1 = 0 ; | |
6958 | char *kwnames[] = { | |
6959 | (char *) "self",(char *) "bitmap", NULL | |
6960 | }; | |
6961 | ||
6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
6963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6965 | { | |
6966 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6967 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6968 | if (arg2 == NULL) { | |
6969 | SWIG_null_ref("wxBitmap"); | |
6970 | } | |
6971 | if (SWIG_arg_fail(2)) SWIG_fail; | |
6972 | } | |
6973 | { | |
6974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6975 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
6976 | ||
6977 | wxPyEndAllowThreads(__tstate); | |
6978 | if (PyErr_Occurred()) SWIG_fail; | |
6979 | } | |
6980 | Py_INCREF(Py_None); resultobj = Py_None; | |
6981 | return resultobj; | |
6982 | fail: | |
6983 | return NULL; | |
6984 | } | |
6985 | ||
6986 | ||
6987 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
6988 | PyObject *resultobj; | |
6989 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
6990 | wxIcon *arg2 = 0 ; | |
6991 | PyObject * obj0 = 0 ; | |
6992 | PyObject * obj1 = 0 ; | |
6993 | char *kwnames[] = { | |
6994 | (char *) "self",(char *) "icon", NULL | |
6995 | }; | |
6996 | ||
6997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
6998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); | |
6999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7000 | { | |
7001 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
7002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7003 | if (arg2 == NULL) { | |
7004 | SWIG_null_ref("wxIcon"); | |
7005 | } | |
7006 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7007 | } | |
7008 | { | |
7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7010 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
7011 | ||
7012 | wxPyEndAllowThreads(__tstate); | |
7013 | if (PyErr_Occurred()) SWIG_fail; | |
7014 | } | |
7015 | Py_INCREF(Py_None); resultobj = Py_None; | |
7016 | return resultobj; | |
7017 | fail: | |
7018 | return NULL; | |
7019 | } | |
7020 | ||
7021 | ||
7022 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
7023 | PyObject *resultobj; | |
7024 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
7025 | wxVisualAttributes result; | |
7026 | PyObject * obj0 = 0 ; | |
7027 | char *kwnames[] = { | |
7028 | (char *) "variant", NULL | |
7029 | }; | |
7030 | ||
7031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
7032 | if (obj0) { | |
7033 | { | |
7034 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
7035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7036 | } | |
7037 | } | |
7038 | { | |
7039 | if (!wxPyCheckForApp()) SWIG_fail; | |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | { | |
7047 | wxVisualAttributes * resultptr; | |
7048 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
7049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
7050 | } | |
7051 | return resultobj; | |
7052 | fail: | |
7053 | return NULL; | |
7054 | } | |
7055 | ||
7056 | ||
7057 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { | |
7058 | PyObject *obj; | |
7059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7060 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
7061 | Py_INCREF(obj); | |
7062 | return Py_BuildValue((char *)""); | |
7063 | } | |
7064 | static int _wrap_ListBoxNameStr_set(PyObject *) { | |
7065 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
7066 | return 1; | |
7067 | } | |
7068 | ||
7069 | ||
7070 | static PyObject *_wrap_ListBoxNameStr_get(void) { | |
7071 | PyObject *pyobj; | |
7072 | ||
7073 | { | |
7074 | #if wxUSE_UNICODE | |
7075 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7076 | #else | |
7077 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7078 | #endif | |
7079 | } | |
7080 | return pyobj; | |
7081 | } | |
7082 | ||
7083 | ||
7084 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
7085 | PyObject *resultobj; | |
7086 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7087 | int arg2 = (int) -1 ; | |
7088 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
7089 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7090 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7091 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7092 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
7093 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
7094 | long arg6 = (long) 0 ; | |
7095 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7096 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7097 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
7098 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7099 | wxListBox *result; | |
7100 | wxPoint temp3 ; | |
7101 | wxSize temp4 ; | |
7102 | bool temp5 = false ; | |
7103 | bool temp8 = false ; | |
7104 | PyObject * obj0 = 0 ; | |
7105 | PyObject * obj1 = 0 ; | |
7106 | PyObject * obj2 = 0 ; | |
7107 | PyObject * obj3 = 0 ; | |
7108 | PyObject * obj4 = 0 ; | |
7109 | PyObject * obj5 = 0 ; | |
7110 | PyObject * obj6 = 0 ; | |
7111 | PyObject * obj7 = 0 ; | |
7112 | char *kwnames[] = { | |
7113 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7114 | }; | |
7115 | ||
7116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
7117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7119 | if (obj1) { | |
7120 | { | |
7121 | arg2 = (int)(SWIG_As_int(obj1)); | |
7122 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7123 | } | |
7124 | } | |
7125 | if (obj2) { | |
7126 | { | |
7127 | arg3 = &temp3; | |
7128 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7129 | } | |
7130 | } | |
7131 | if (obj3) { | |
7132 | { | |
7133 | arg4 = &temp4; | |
7134 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7135 | } | |
7136 | } | |
7137 | if (obj4) { | |
7138 | { | |
7139 | if (! PySequence_Check(obj4)) { | |
7140 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7141 | SWIG_fail; | |
7142 | } | |
7143 | arg5 = new wxArrayString; | |
7144 | temp5 = true; | |
7145 | int i, len=PySequence_Length(obj4); | |
7146 | for (i=0; i<len; i++) { | |
7147 | PyObject* item = PySequence_GetItem(obj4, i); | |
7148 | #if wxUSE_UNICODE | |
7149 | PyObject* str = PyObject_Unicode(item); | |
7150 | #else | |
7151 | PyObject* str = PyObject_Str(item); | |
7152 | #endif | |
7153 | if (PyErr_Occurred()) SWIG_fail; | |
7154 | arg5->Add(Py2wxString(str)); | |
7155 | Py_DECREF(item); | |
7156 | Py_DECREF(str); | |
7157 | } | |
7158 | } | |
7159 | } | |
7160 | if (obj5) { | |
7161 | { | |
7162 | arg6 = (long)(SWIG_As_long(obj5)); | |
7163 | if (SWIG_arg_fail(6)) SWIG_fail; | |
7164 | } | |
7165 | } | |
7166 | if (obj6) { | |
7167 | { | |
7168 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7169 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7170 | if (arg7 == NULL) { | |
7171 | SWIG_null_ref("wxValidator"); | |
7172 | } | |
7173 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7174 | } | |
7175 | } | |
7176 | if (obj7) { | |
7177 | { | |
7178 | arg8 = wxString_in_helper(obj7); | |
7179 | if (arg8 == NULL) SWIG_fail; | |
7180 | temp8 = true; | |
7181 | } | |
7182 | } | |
7183 | { | |
7184 | if (!wxPyCheckForApp()) SWIG_fail; | |
7185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7186 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7187 | ||
7188 | wxPyEndAllowThreads(__tstate); | |
7189 | if (PyErr_Occurred()) SWIG_fail; | |
7190 | } | |
7191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
7192 | { | |
7193 | if (temp5) delete arg5; | |
7194 | } | |
7195 | { | |
7196 | if (temp8) | |
7197 | delete arg8; | |
7198 | } | |
7199 | return resultobj; | |
7200 | fail: | |
7201 | { | |
7202 | if (temp5) delete arg5; | |
7203 | } | |
7204 | { | |
7205 | if (temp8) | |
7206 | delete arg8; | |
7207 | } | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
7213 | PyObject *resultobj; | |
7214 | wxListBox *result; | |
7215 | char *kwnames[] = { | |
7216 | NULL | |
7217 | }; | |
7218 | ||
7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
7220 | { | |
7221 | if (!wxPyCheckForApp()) SWIG_fail; | |
7222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7223 | result = (wxListBox *)new wxListBox(); | |
7224 | ||
7225 | wxPyEndAllowThreads(__tstate); | |
7226 | if (PyErr_Occurred()) SWIG_fail; | |
7227 | } | |
7228 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
7229 | return resultobj; | |
7230 | fail: | |
7231 | return NULL; | |
7232 | } | |
7233 | ||
7234 | ||
7235 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
7236 | PyObject *resultobj; | |
7237 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7238 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7239 | int arg3 = (int) -1 ; | |
7240 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7241 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7242 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7243 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7244 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
7245 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7246 | long arg7 = (long) 0 ; | |
7247 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7248 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7249 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7250 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7251 | bool result; | |
7252 | wxPoint temp4 ; | |
7253 | wxSize temp5 ; | |
7254 | bool temp6 = false ; | |
7255 | bool temp9 = false ; | |
7256 | PyObject * obj0 = 0 ; | |
7257 | PyObject * obj1 = 0 ; | |
7258 | PyObject * obj2 = 0 ; | |
7259 | PyObject * obj3 = 0 ; | |
7260 | PyObject * obj4 = 0 ; | |
7261 | PyObject * obj5 = 0 ; | |
7262 | PyObject * obj6 = 0 ; | |
7263 | PyObject * obj7 = 0 ; | |
7264 | PyObject * obj8 = 0 ; | |
7265 | char *kwnames[] = { | |
7266 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7267 | }; | |
7268 | ||
7269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
7270 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7271 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7272 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7274 | if (obj2) { | |
7275 | { | |
7276 | arg3 = (int)(SWIG_As_int(obj2)); | |
7277 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7278 | } | |
7279 | } | |
7280 | if (obj3) { | |
7281 | { | |
7282 | arg4 = &temp4; | |
7283 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7284 | } | |
7285 | } | |
7286 | if (obj4) { | |
7287 | { | |
7288 | arg5 = &temp5; | |
7289 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7290 | } | |
7291 | } | |
7292 | if (obj5) { | |
7293 | { | |
7294 | if (! PySequence_Check(obj5)) { | |
7295 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7296 | SWIG_fail; | |
7297 | } | |
7298 | arg6 = new wxArrayString; | |
7299 | temp6 = true; | |
7300 | int i, len=PySequence_Length(obj5); | |
7301 | for (i=0; i<len; i++) { | |
7302 | PyObject* item = PySequence_GetItem(obj5, i); | |
7303 | #if wxUSE_UNICODE | |
7304 | PyObject* str = PyObject_Unicode(item); | |
7305 | #else | |
7306 | PyObject* str = PyObject_Str(item); | |
7307 | #endif | |
7308 | if (PyErr_Occurred()) SWIG_fail; | |
7309 | arg6->Add(Py2wxString(str)); | |
7310 | Py_DECREF(item); | |
7311 | Py_DECREF(str); | |
7312 | } | |
7313 | } | |
7314 | } | |
7315 | if (obj6) { | |
7316 | { | |
7317 | arg7 = (long)(SWIG_As_long(obj6)); | |
7318 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7319 | } | |
7320 | } | |
7321 | if (obj7) { | |
7322 | { | |
7323 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7324 | if (SWIG_arg_fail(8)) SWIG_fail; | |
7325 | if (arg8 == NULL) { | |
7326 | SWIG_null_ref("wxValidator"); | |
7327 | } | |
7328 | if (SWIG_arg_fail(8)) SWIG_fail; | |
7329 | } | |
7330 | } | |
7331 | if (obj8) { | |
7332 | { | |
7333 | arg9 = wxString_in_helper(obj8); | |
7334 | if (arg9 == NULL) SWIG_fail; | |
7335 | temp9 = true; | |
7336 | } | |
7337 | } | |
7338 | { | |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | { | |
7346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7347 | } | |
7348 | { | |
7349 | if (temp6) delete arg6; | |
7350 | } | |
7351 | { | |
7352 | if (temp9) | |
7353 | delete arg9; | |
7354 | } | |
7355 | return resultobj; | |
7356 | fail: | |
7357 | { | |
7358 | if (temp6) delete arg6; | |
7359 | } | |
7360 | { | |
7361 | if (temp9) | |
7362 | delete arg9; | |
7363 | } | |
7364 | return NULL; | |
7365 | } | |
7366 | ||
7367 | ||
7368 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { | |
7369 | PyObject *resultobj; | |
7370 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7371 | wxString *arg2 = 0 ; | |
7372 | int arg3 ; | |
7373 | PyObject *arg4 = (PyObject *) NULL ; | |
7374 | bool temp2 = false ; | |
7375 | PyObject * obj0 = 0 ; | |
7376 | PyObject * obj1 = 0 ; | |
7377 | PyObject * obj2 = 0 ; | |
7378 | PyObject * obj3 = 0 ; | |
7379 | char *kwnames[] = { | |
7380 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
7381 | }; | |
7382 | ||
7383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7384 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7385 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7386 | { | |
7387 | arg2 = wxString_in_helper(obj1); | |
7388 | if (arg2 == NULL) SWIG_fail; | |
7389 | temp2 = true; | |
7390 | } | |
7391 | { | |
7392 | arg3 = (int)(SWIG_As_int(obj2)); | |
7393 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7394 | } | |
7395 | if (obj3) { | |
7396 | arg4 = obj3; | |
7397 | } | |
7398 | { | |
7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7400 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
7401 | ||
7402 | wxPyEndAllowThreads(__tstate); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | } | |
7405 | Py_INCREF(Py_None); resultobj = Py_None; | |
7406 | { | |
7407 | if (temp2) | |
7408 | delete arg2; | |
7409 | } | |
7410 | return resultobj; | |
7411 | fail: | |
7412 | { | |
7413 | if (temp2) | |
7414 | delete arg2; | |
7415 | } | |
7416 | return NULL; | |
7417 | } | |
7418 | ||
7419 | ||
7420 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { | |
7421 | PyObject *resultobj; | |
7422 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7423 | wxArrayString *arg2 = 0 ; | |
7424 | int arg3 ; | |
7425 | bool temp2 = false ; | |
7426 | PyObject * obj0 = 0 ; | |
7427 | PyObject * obj1 = 0 ; | |
7428 | PyObject * obj2 = 0 ; | |
7429 | char *kwnames[] = { | |
7430 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
7431 | }; | |
7432 | ||
7433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7436 | { | |
7437 | if (! PySequence_Check(obj1)) { | |
7438 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7439 | SWIG_fail; | |
7440 | } | |
7441 | arg2 = new wxArrayString; | |
7442 | temp2 = true; | |
7443 | int i, len=PySequence_Length(obj1); | |
7444 | for (i=0; i<len; i++) { | |
7445 | PyObject* item = PySequence_GetItem(obj1, i); | |
7446 | #if wxUSE_UNICODE | |
7447 | PyObject* str = PyObject_Unicode(item); | |
7448 | #else | |
7449 | PyObject* str = PyObject_Str(item); | |
7450 | #endif | |
7451 | if (PyErr_Occurred()) SWIG_fail; | |
7452 | arg2->Add(Py2wxString(str)); | |
7453 | Py_DECREF(item); | |
7454 | Py_DECREF(str); | |
7455 | } | |
7456 | } | |
7457 | { | |
7458 | arg3 = (int)(SWIG_As_int(obj2)); | |
7459 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7460 | } | |
7461 | { | |
7462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7463 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
7464 | ||
7465 | wxPyEndAllowThreads(__tstate); | |
7466 | if (PyErr_Occurred()) SWIG_fail; | |
7467 | } | |
7468 | Py_INCREF(Py_None); resultobj = Py_None; | |
7469 | { | |
7470 | if (temp2) delete arg2; | |
7471 | } | |
7472 | return resultobj; | |
7473 | fail: | |
7474 | { | |
7475 | if (temp2) delete arg2; | |
7476 | } | |
7477 | return NULL; | |
7478 | } | |
7479 | ||
7480 | ||
7481 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
7482 | PyObject *resultobj; | |
7483 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7484 | wxArrayString *arg2 = 0 ; | |
7485 | bool temp2 = false ; | |
7486 | PyObject * obj0 = 0 ; | |
7487 | PyObject * obj1 = 0 ; | |
7488 | char *kwnames[] = { | |
7489 | (char *) "self",(char *) "items", NULL | |
7490 | }; | |
7491 | ||
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
7493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7495 | { | |
7496 | if (! PySequence_Check(obj1)) { | |
7497 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7498 | SWIG_fail; | |
7499 | } | |
7500 | arg2 = new wxArrayString; | |
7501 | temp2 = true; | |
7502 | int i, len=PySequence_Length(obj1); | |
7503 | for (i=0; i<len; i++) { | |
7504 | PyObject* item = PySequence_GetItem(obj1, i); | |
7505 | #if wxUSE_UNICODE | |
7506 | PyObject* str = PyObject_Unicode(item); | |
7507 | #else | |
7508 | PyObject* str = PyObject_Str(item); | |
7509 | #endif | |
7510 | if (PyErr_Occurred()) SWIG_fail; | |
7511 | arg2->Add(Py2wxString(str)); | |
7512 | Py_DECREF(item); | |
7513 | Py_DECREF(str); | |
7514 | } | |
7515 | } | |
7516 | { | |
7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7518 | (arg1)->Set((wxArrayString const &)*arg2); | |
7519 | ||
7520 | wxPyEndAllowThreads(__tstate); | |
7521 | if (PyErr_Occurred()) SWIG_fail; | |
7522 | } | |
7523 | Py_INCREF(Py_None); resultobj = Py_None; | |
7524 | { | |
7525 | if (temp2) delete arg2; | |
7526 | } | |
7527 | return resultobj; | |
7528 | fail: | |
7529 | { | |
7530 | if (temp2) delete arg2; | |
7531 | } | |
7532 | return NULL; | |
7533 | } | |
7534 | ||
7535 | ||
7536 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
7537 | PyObject *resultobj; | |
7538 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7539 | int arg2 ; | |
7540 | bool result; | |
7541 | PyObject * obj0 = 0 ; | |
7542 | PyObject * obj1 = 0 ; | |
7543 | char *kwnames[] = { | |
7544 | (char *) "self",(char *) "n", NULL | |
7545 | }; | |
7546 | ||
7547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
7548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7550 | { | |
7551 | arg2 = (int)(SWIG_As_int(obj1)); | |
7552 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7553 | } | |
7554 | { | |
7555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7556 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
7557 | ||
7558 | wxPyEndAllowThreads(__tstate); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
7561 | { | |
7562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7563 | } | |
7564 | return resultobj; | |
7565 | fail: | |
7566 | return NULL; | |
7567 | } | |
7568 | ||
7569 | ||
7570 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
7571 | PyObject *resultobj; | |
7572 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7573 | int arg2 ; | |
7574 | bool arg3 = (bool) true ; | |
7575 | PyObject * obj0 = 0 ; | |
7576 | PyObject * obj1 = 0 ; | |
7577 | PyObject * obj2 = 0 ; | |
7578 | char *kwnames[] = { | |
7579 | (char *) "self",(char *) "n",(char *) "select", NULL | |
7580 | }; | |
7581 | ||
7582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7583 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7584 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7585 | { | |
7586 | arg2 = (int)(SWIG_As_int(obj1)); | |
7587 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7588 | } | |
7589 | if (obj2) { | |
7590 | { | |
7591 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7592 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7593 | } | |
7594 | } | |
7595 | { | |
7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7597 | (arg1)->SetSelection(arg2,arg3); | |
7598 | ||
7599 | wxPyEndAllowThreads(__tstate); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | } | |
7602 | Py_INCREF(Py_None); resultobj = Py_None; | |
7603 | return resultobj; | |
7604 | fail: | |
7605 | return NULL; | |
7606 | } | |
7607 | ||
7608 | ||
7609 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { | |
7610 | PyObject *resultobj; | |
7611 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7612 | int arg2 ; | |
7613 | PyObject * obj0 = 0 ; | |
7614 | PyObject * obj1 = 0 ; | |
7615 | char *kwnames[] = { | |
7616 | (char *) "self",(char *) "n", NULL | |
7617 | }; | |
7618 | ||
7619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
7620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7622 | { | |
7623 | arg2 = (int)(SWIG_As_int(obj1)); | |
7624 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7625 | } | |
7626 | { | |
7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7628 | (arg1)->Select(arg2); | |
7629 | ||
7630 | wxPyEndAllowThreads(__tstate); | |
7631 | if (PyErr_Occurred()) SWIG_fail; | |
7632 | } | |
7633 | Py_INCREF(Py_None); resultobj = Py_None; | |
7634 | return resultobj; | |
7635 | fail: | |
7636 | return NULL; | |
7637 | } | |
7638 | ||
7639 | ||
7640 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { | |
7641 | PyObject *resultobj; | |
7642 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7643 | int arg2 ; | |
7644 | PyObject * obj0 = 0 ; | |
7645 | PyObject * obj1 = 0 ; | |
7646 | char *kwnames[] = { | |
7647 | (char *) "self",(char *) "n", NULL | |
7648 | }; | |
7649 | ||
7650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
7651 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7652 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7653 | { | |
7654 | arg2 = (int)(SWIG_As_int(obj1)); | |
7655 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7656 | } | |
7657 | { | |
7658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7659 | (arg1)->Deselect(arg2); | |
7660 | ||
7661 | wxPyEndAllowThreads(__tstate); | |
7662 | if (PyErr_Occurred()) SWIG_fail; | |
7663 | } | |
7664 | Py_INCREF(Py_None); resultobj = Py_None; | |
7665 | return resultobj; | |
7666 | fail: | |
7667 | return NULL; | |
7668 | } | |
7669 | ||
7670 | ||
7671 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
7672 | PyObject *resultobj; | |
7673 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7674 | int arg2 = (int) -1 ; | |
7675 | PyObject * obj0 = 0 ; | |
7676 | PyObject * obj1 = 0 ; | |
7677 | char *kwnames[] = { | |
7678 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
7679 | }; | |
7680 | ||
7681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
7682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7684 | if (obj1) { | |
7685 | { | |
7686 | arg2 = (int)(SWIG_As_int(obj1)); | |
7687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7688 | } | |
7689 | } | |
7690 | { | |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | (arg1)->DeselectAll(arg2); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
7697 | Py_INCREF(Py_None); resultobj = Py_None; | |
7698 | return resultobj; | |
7699 | fail: | |
7700 | return NULL; | |
7701 | } | |
7702 | ||
7703 | ||
7704 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
7705 | PyObject *resultobj; | |
7706 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7707 | wxString *arg2 = 0 ; | |
7708 | bool arg3 = (bool) true ; | |
7709 | bool result; | |
7710 | bool temp2 = false ; | |
7711 | PyObject * obj0 = 0 ; | |
7712 | PyObject * obj1 = 0 ; | |
7713 | PyObject * obj2 = 0 ; | |
7714 | char *kwnames[] = { | |
7715 | (char *) "self",(char *) "s",(char *) "select", NULL | |
7716 | }; | |
7717 | ||
7718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7721 | { | |
7722 | arg2 = wxString_in_helper(obj1); | |
7723 | if (arg2 == NULL) SWIG_fail; | |
7724 | temp2 = true; | |
7725 | } | |
7726 | if (obj2) { | |
7727 | { | |
7728 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
7729 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7730 | } | |
7731 | } | |
7732 | { | |
7733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7734 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
7735 | ||
7736 | wxPyEndAllowThreads(__tstate); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | { | |
7740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7741 | } | |
7742 | { | |
7743 | if (temp2) | |
7744 | delete arg2; | |
7745 | } | |
7746 | return resultobj; | |
7747 | fail: | |
7748 | { | |
7749 | if (temp2) | |
7750 | delete arg2; | |
7751 | } | |
7752 | return NULL; | |
7753 | } | |
7754 | ||
7755 | ||
7756 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { | |
7757 | PyObject *resultobj; | |
7758 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7759 | PyObject *result; | |
7760 | PyObject * obj0 = 0 ; | |
7761 | char *kwnames[] = { | |
7762 | (char *) "self", NULL | |
7763 | }; | |
7764 | ||
7765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
7766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7768 | { | |
7769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7770 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
7771 | ||
7772 | wxPyEndAllowThreads(__tstate); | |
7773 | if (PyErr_Occurred()) SWIG_fail; | |
7774 | } | |
7775 | resultobj = result; | |
7776 | return resultobj; | |
7777 | fail: | |
7778 | return NULL; | |
7779 | } | |
7780 | ||
7781 | ||
7782 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
7783 | PyObject *resultobj; | |
7784 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7785 | int arg2 ; | |
7786 | PyObject * obj0 = 0 ; | |
7787 | PyObject * obj1 = 0 ; | |
7788 | char *kwnames[] = { | |
7789 | (char *) "self",(char *) "n", NULL | |
7790 | }; | |
7791 | ||
7792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
7793 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7794 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7795 | { | |
7796 | arg2 = (int)(SWIG_As_int(obj1)); | |
7797 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7798 | } | |
7799 | { | |
7800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7801 | (arg1)->SetFirstItem(arg2); | |
7802 | ||
7803 | wxPyEndAllowThreads(__tstate); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | Py_INCREF(Py_None); resultobj = Py_None; | |
7807 | return resultobj; | |
7808 | fail: | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
7813 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { | |
7814 | PyObject *resultobj; | |
7815 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7816 | wxString *arg2 = 0 ; | |
7817 | bool temp2 = false ; | |
7818 | PyObject * obj0 = 0 ; | |
7819 | PyObject * obj1 = 0 ; | |
7820 | char *kwnames[] = { | |
7821 | (char *) "self",(char *) "s", NULL | |
7822 | }; | |
7823 | ||
7824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
7825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7827 | { | |
7828 | arg2 = wxString_in_helper(obj1); | |
7829 | if (arg2 == NULL) SWIG_fail; | |
7830 | temp2 = true; | |
7831 | } | |
7832 | { | |
7833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7834 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
7835 | ||
7836 | wxPyEndAllowThreads(__tstate); | |
7837 | if (PyErr_Occurred()) SWIG_fail; | |
7838 | } | |
7839 | Py_INCREF(Py_None); resultobj = Py_None; | |
7840 | { | |
7841 | if (temp2) | |
7842 | delete arg2; | |
7843 | } | |
7844 | return resultobj; | |
7845 | fail: | |
7846 | { | |
7847 | if (temp2) | |
7848 | delete arg2; | |
7849 | } | |
7850 | return NULL; | |
7851 | } | |
7852 | ||
7853 | ||
7854 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
7855 | PyObject *resultobj; | |
7856 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7857 | int arg2 ; | |
7858 | PyObject * obj0 = 0 ; | |
7859 | PyObject * obj1 = 0 ; | |
7860 | char *kwnames[] = { | |
7861 | (char *) "self",(char *) "n", NULL | |
7862 | }; | |
7863 | ||
7864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
7865 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7866 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7867 | { | |
7868 | arg2 = (int)(SWIG_As_int(obj1)); | |
7869 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7870 | } | |
7871 | { | |
7872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7873 | (arg1)->EnsureVisible(arg2); | |
7874 | ||
7875 | wxPyEndAllowThreads(__tstate); | |
7876 | if (PyErr_Occurred()) SWIG_fail; | |
7877 | } | |
7878 | Py_INCREF(Py_None); resultobj = Py_None; | |
7879 | return resultobj; | |
7880 | fail: | |
7881 | return NULL; | |
7882 | } | |
7883 | ||
7884 | ||
7885 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
7886 | PyObject *resultobj; | |
7887 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7888 | wxString *arg2 = 0 ; | |
7889 | bool temp2 = false ; | |
7890 | PyObject * obj0 = 0 ; | |
7891 | PyObject * obj1 = 0 ; | |
7892 | char *kwnames[] = { | |
7893 | (char *) "self",(char *) "s", NULL | |
7894 | }; | |
7895 | ||
7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
7897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7899 | { | |
7900 | arg2 = wxString_in_helper(obj1); | |
7901 | if (arg2 == NULL) SWIG_fail; | |
7902 | temp2 = true; | |
7903 | } | |
7904 | { | |
7905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7906 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
7907 | ||
7908 | wxPyEndAllowThreads(__tstate); | |
7909 | if (PyErr_Occurred()) SWIG_fail; | |
7910 | } | |
7911 | Py_INCREF(Py_None); resultobj = Py_None; | |
7912 | { | |
7913 | if (temp2) | |
7914 | delete arg2; | |
7915 | } | |
7916 | return resultobj; | |
7917 | fail: | |
7918 | { | |
7919 | if (temp2) | |
7920 | delete arg2; | |
7921 | } | |
7922 | return NULL; | |
7923 | } | |
7924 | ||
7925 | ||
7926 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { | |
7927 | PyObject *resultobj; | |
7928 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7929 | bool result; | |
7930 | PyObject * obj0 = 0 ; | |
7931 | char *kwnames[] = { | |
7932 | (char *) "self", NULL | |
7933 | }; | |
7934 | ||
7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
7936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7938 | { | |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
7945 | { | |
7946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7947 | } | |
7948 | return resultobj; | |
7949 | fail: | |
7950 | return NULL; | |
7951 | } | |
7952 | ||
7953 | ||
7954 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
7955 | PyObject *resultobj; | |
7956 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7957 | int arg2 ; | |
7958 | wxColour *arg3 = 0 ; | |
7959 | wxColour temp3 ; | |
7960 | PyObject * obj0 = 0 ; | |
7961 | PyObject * obj1 = 0 ; | |
7962 | PyObject * obj2 = 0 ; | |
7963 | char *kwnames[] = { | |
7964 | (char *) "self",(char *) "item",(char *) "c", NULL | |
7965 | }; | |
7966 | ||
7967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7968 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
7969 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7970 | { | |
7971 | arg2 = (int)(SWIG_As_int(obj1)); | |
7972 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7973 | } | |
7974 | { | |
7975 | arg3 = &temp3; | |
7976 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
7977 | } | |
7978 | { | |
7979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7980 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
7981 | ||
7982 | wxPyEndAllowThreads(__tstate); | |
7983 | if (PyErr_Occurred()) SWIG_fail; | |
7984 | } | |
7985 | Py_INCREF(Py_None); resultobj = Py_None; | |
7986 | return resultobj; | |
7987 | fail: | |
7988 | return NULL; | |
7989 | } | |
7990 | ||
7991 | ||
7992 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
7993 | PyObject *resultobj; | |
7994 | wxListBox *arg1 = (wxListBox *) 0 ; | |
7995 | int arg2 ; | |
7996 | wxColour *arg3 = 0 ; | |
7997 | wxColour temp3 ; | |
7998 | PyObject * obj0 = 0 ; | |
7999 | PyObject * obj1 = 0 ; | |
8000 | PyObject * obj2 = 0 ; | |
8001 | char *kwnames[] = { | |
8002 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8003 | }; | |
8004 | ||
8005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8006 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
8007 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8008 | { | |
8009 | arg2 = (int)(SWIG_As_int(obj1)); | |
8010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8011 | } | |
8012 | { | |
8013 | arg3 = &temp3; | |
8014 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8015 | } | |
8016 | { | |
8017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8018 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8019 | ||
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
8023 | Py_INCREF(Py_None); resultobj = Py_None; | |
8024 | return resultobj; | |
8025 | fail: | |
8026 | return NULL; | |
8027 | } | |
8028 | ||
8029 | ||
8030 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
8031 | PyObject *resultobj; | |
8032 | wxListBox *arg1 = (wxListBox *) 0 ; | |
8033 | int arg2 ; | |
8034 | wxFont *arg3 = 0 ; | |
8035 | PyObject * obj0 = 0 ; | |
8036 | PyObject * obj1 = 0 ; | |
8037 | PyObject * obj2 = 0 ; | |
8038 | char *kwnames[] = { | |
8039 | (char *) "self",(char *) "item",(char *) "f", NULL | |
8040 | }; | |
8041 | ||
8042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8043 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); | |
8044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8045 | { | |
8046 | arg2 = (int)(SWIG_As_int(obj1)); | |
8047 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8048 | } | |
8049 | { | |
8050 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8051 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8052 | if (arg3 == NULL) { | |
8053 | SWIG_null_ref("wxFont"); | |
8054 | } | |
8055 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8056 | } | |
8057 | { | |
8058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8059 | wxListBox_SetItemFont(arg1,arg2,(wxFont 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 | ||
8071 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
8072 | PyObject *resultobj; | |
8073 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
8074 | wxVisualAttributes result; | |
8075 | PyObject * obj0 = 0 ; | |
8076 | char *kwnames[] = { | |
8077 | (char *) "variant", NULL | |
8078 | }; | |
8079 | ||
8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
8081 | if (obj0) { | |
8082 | { | |
8083 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
8084 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8085 | } | |
8086 | } | |
8087 | { | |
8088 | if (!wxPyCheckForApp()) SWIG_fail; | |
8089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8090 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
8091 | ||
8092 | wxPyEndAllowThreads(__tstate); | |
8093 | if (PyErr_Occurred()) SWIG_fail; | |
8094 | } | |
8095 | { | |
8096 | wxVisualAttributes * resultptr; | |
8097 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
8098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
8099 | } | |
8100 | return resultobj; | |
8101 | fail: | |
8102 | return NULL; | |
8103 | } | |
8104 | ||
8105 | ||
8106 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { | |
8107 | PyObject *obj; | |
8108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8109 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
8110 | Py_INCREF(obj); | |
8111 | return Py_BuildValue((char *)""); | |
8112 | } | |
8113 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
8114 | PyObject *resultobj; | |
8115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8116 | int arg2 = (int) -1 ; | |
8117 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
8118 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8119 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8120 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8121 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
8122 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8123 | long arg6 = (long) 0 ; | |
8124 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8125 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8126 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8127 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8128 | wxCheckListBox *result; | |
8129 | wxPoint temp3 ; | |
8130 | wxSize temp4 ; | |
8131 | bool temp5 = false ; | |
8132 | bool temp8 = false ; | |
8133 | PyObject * obj0 = 0 ; | |
8134 | PyObject * obj1 = 0 ; | |
8135 | PyObject * obj2 = 0 ; | |
8136 | PyObject * obj3 = 0 ; | |
8137 | PyObject * obj4 = 0 ; | |
8138 | PyObject * obj5 = 0 ; | |
8139 | PyObject * obj6 = 0 ; | |
8140 | PyObject * obj7 = 0 ; | |
8141 | char *kwnames[] = { | |
8142 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8143 | }; | |
8144 | ||
8145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
8146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8148 | if (obj1) { | |
8149 | { | |
8150 | arg2 = (int)(SWIG_As_int(obj1)); | |
8151 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8152 | } | |
8153 | } | |
8154 | if (obj2) { | |
8155 | { | |
8156 | arg3 = &temp3; | |
8157 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8158 | } | |
8159 | } | |
8160 | if (obj3) { | |
8161 | { | |
8162 | arg4 = &temp4; | |
8163 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8164 | } | |
8165 | } | |
8166 | if (obj4) { | |
8167 | { | |
8168 | if (! PySequence_Check(obj4)) { | |
8169 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8170 | SWIG_fail; | |
8171 | } | |
8172 | arg5 = new wxArrayString; | |
8173 | temp5 = true; | |
8174 | int i, len=PySequence_Length(obj4); | |
8175 | for (i=0; i<len; i++) { | |
8176 | PyObject* item = PySequence_GetItem(obj4, i); | |
8177 | #if wxUSE_UNICODE | |
8178 | PyObject* str = PyObject_Unicode(item); | |
8179 | #else | |
8180 | PyObject* str = PyObject_Str(item); | |
8181 | #endif | |
8182 | if (PyErr_Occurred()) SWIG_fail; | |
8183 | arg5->Add(Py2wxString(str)); | |
8184 | Py_DECREF(item); | |
8185 | Py_DECREF(str); | |
8186 | } | |
8187 | } | |
8188 | } | |
8189 | if (obj5) { | |
8190 | { | |
8191 | arg6 = (long)(SWIG_As_long(obj5)); | |
8192 | if (SWIG_arg_fail(6)) SWIG_fail; | |
8193 | } | |
8194 | } | |
8195 | if (obj6) { | |
8196 | { | |
8197 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8198 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8199 | if (arg7 == NULL) { | |
8200 | SWIG_null_ref("wxValidator"); | |
8201 | } | |
8202 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8203 | } | |
8204 | } | |
8205 | if (obj7) { | |
8206 | { | |
8207 | arg8 = wxString_in_helper(obj7); | |
8208 | if (arg8 == NULL) SWIG_fail; | |
8209 | temp8 = true; | |
8210 | } | |
8211 | } | |
8212 | { | |
8213 | if (!wxPyCheckForApp()) SWIG_fail; | |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8215 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
8218 | if (PyErr_Occurred()) SWIG_fail; | |
8219 | } | |
8220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
8221 | { | |
8222 | if (temp5) delete arg5; | |
8223 | } | |
8224 | { | |
8225 | if (temp8) | |
8226 | delete arg8; | |
8227 | } | |
8228 | return resultobj; | |
8229 | fail: | |
8230 | { | |
8231 | if (temp5) delete arg5; | |
8232 | } | |
8233 | { | |
8234 | if (temp8) | |
8235 | delete arg8; | |
8236 | } | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
8241 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject *resultobj; | |
8243 | wxCheckListBox *result; | |
8244 | char *kwnames[] = { | |
8245 | NULL | |
8246 | }; | |
8247 | ||
8248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
8249 | { | |
8250 | if (!wxPyCheckForApp()) SWIG_fail; | |
8251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8252 | result = (wxCheckListBox *)new wxCheckListBox(); | |
8253 | ||
8254 | wxPyEndAllowThreads(__tstate); | |
8255 | if (PyErr_Occurred()) SWIG_fail; | |
8256 | } | |
8257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
8258 | return resultobj; | |
8259 | fail: | |
8260 | return NULL; | |
8261 | } | |
8262 | ||
8263 | ||
8264 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
8265 | PyObject *resultobj; | |
8266 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8267 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8268 | int arg3 = (int) -1 ; | |
8269 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8270 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8271 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8272 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8273 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
8274 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8275 | long arg7 = (long) 0 ; | |
8276 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8277 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8278 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8279 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8280 | bool result; | |
8281 | wxPoint temp4 ; | |
8282 | wxSize temp5 ; | |
8283 | bool temp6 = false ; | |
8284 | bool temp9 = false ; | |
8285 | PyObject * obj0 = 0 ; | |
8286 | PyObject * obj1 = 0 ; | |
8287 | PyObject * obj2 = 0 ; | |
8288 | PyObject * obj3 = 0 ; | |
8289 | PyObject * obj4 = 0 ; | |
8290 | PyObject * obj5 = 0 ; | |
8291 | PyObject * obj6 = 0 ; | |
8292 | PyObject * obj7 = 0 ; | |
8293 | PyObject * obj8 = 0 ; | |
8294 | char *kwnames[] = { | |
8295 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8296 | }; | |
8297 | ||
8298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
8299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); | |
8300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8301 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8302 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8303 | if (obj2) { | |
8304 | { | |
8305 | arg3 = (int)(SWIG_As_int(obj2)); | |
8306 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8307 | } | |
8308 | } | |
8309 | if (obj3) { | |
8310 | { | |
8311 | arg4 = &temp4; | |
8312 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8313 | } | |
8314 | } | |
8315 | if (obj4) { | |
8316 | { | |
8317 | arg5 = &temp5; | |
8318 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8319 | } | |
8320 | } | |
8321 | if (obj5) { | |
8322 | { | |
8323 | if (! PySequence_Check(obj5)) { | |
8324 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8325 | SWIG_fail; | |
8326 | } | |
8327 | arg6 = new wxArrayString; | |
8328 | temp6 = true; | |
8329 | int i, len=PySequence_Length(obj5); | |
8330 | for (i=0; i<len; i++) { | |
8331 | PyObject* item = PySequence_GetItem(obj5, i); | |
8332 | #if wxUSE_UNICODE | |
8333 | PyObject* str = PyObject_Unicode(item); | |
8334 | #else | |
8335 | PyObject* str = PyObject_Str(item); | |
8336 | #endif | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | arg6->Add(Py2wxString(str)); | |
8339 | Py_DECREF(item); | |
8340 | Py_DECREF(str); | |
8341 | } | |
8342 | } | |
8343 | } | |
8344 | if (obj6) { | |
8345 | { | |
8346 | arg7 = (long)(SWIG_As_long(obj6)); | |
8347 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8348 | } | |
8349 | } | |
8350 | if (obj7) { | |
8351 | { | |
8352 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8353 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8354 | if (arg8 == NULL) { | |
8355 | SWIG_null_ref("wxValidator"); | |
8356 | } | |
8357 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8358 | } | |
8359 | } | |
8360 | if (obj8) { | |
8361 | { | |
8362 | arg9 = wxString_in_helper(obj8); | |
8363 | if (arg9 == NULL) SWIG_fail; | |
8364 | temp9 = true; | |
8365 | } | |
8366 | } | |
8367 | { | |
8368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8369 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8370 | ||
8371 | wxPyEndAllowThreads(__tstate); | |
8372 | if (PyErr_Occurred()) SWIG_fail; | |
8373 | } | |
8374 | { | |
8375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8376 | } | |
8377 | { | |
8378 | if (temp6) delete arg6; | |
8379 | } | |
8380 | { | |
8381 | if (temp9) | |
8382 | delete arg9; | |
8383 | } | |
8384 | return resultobj; | |
8385 | fail: | |
8386 | { | |
8387 | if (temp6) delete arg6; | |
8388 | } | |
8389 | { | |
8390 | if (temp9) | |
8391 | delete arg9; | |
8392 | } | |
8393 | return NULL; | |
8394 | } | |
8395 | ||
8396 | ||
8397 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { | |
8398 | PyObject *resultobj; | |
8399 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8400 | int arg2 ; | |
8401 | bool result; | |
8402 | PyObject * obj0 = 0 ; | |
8403 | PyObject * obj1 = 0 ; | |
8404 | char *kwnames[] = { | |
8405 | (char *) "self",(char *) "index", NULL | |
8406 | }; | |
8407 | ||
8408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
8409 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); | |
8410 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8411 | { | |
8412 | arg2 = (int)(SWIG_As_int(obj1)); | |
8413 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8414 | } | |
8415 | { | |
8416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8417 | result = (bool)(arg1)->IsChecked(arg2); | |
8418 | ||
8419 | wxPyEndAllowThreads(__tstate); | |
8420 | if (PyErr_Occurred()) SWIG_fail; | |
8421 | } | |
8422 | { | |
8423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8424 | } | |
8425 | return resultobj; | |
8426 | fail: | |
8427 | return NULL; | |
8428 | } | |
8429 | ||
8430 | ||
8431 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { | |
8432 | PyObject *resultobj; | |
8433 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8434 | int arg2 ; | |
8435 | int arg3 = (int) true ; | |
8436 | PyObject * obj0 = 0 ; | |
8437 | PyObject * obj1 = 0 ; | |
8438 | PyObject * obj2 = 0 ; | |
8439 | char *kwnames[] = { | |
8440 | (char *) "self",(char *) "index",(char *) "check", NULL | |
8441 | }; | |
8442 | ||
8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8444 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); | |
8445 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8446 | { | |
8447 | arg2 = (int)(SWIG_As_int(obj1)); | |
8448 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8449 | } | |
8450 | if (obj2) { | |
8451 | { | |
8452 | arg3 = (int)(SWIG_As_int(obj2)); | |
8453 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8454 | } | |
8455 | } | |
8456 | { | |
8457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8458 | (arg1)->Check(arg2,arg3); | |
8459 | ||
8460 | wxPyEndAllowThreads(__tstate); | |
8461 | if (PyErr_Occurred()) SWIG_fail; | |
8462 | } | |
8463 | Py_INCREF(Py_None); resultobj = Py_None; | |
8464 | return resultobj; | |
8465 | fail: | |
8466 | return NULL; | |
8467 | } | |
8468 | ||
8469 | ||
8470 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
8471 | PyObject *resultobj; | |
8472 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8473 | wxPoint *arg2 = 0 ; | |
8474 | int result; | |
8475 | wxPoint temp2 ; | |
8476 | PyObject * obj0 = 0 ; | |
8477 | PyObject * obj1 = 0 ; | |
8478 | char *kwnames[] = { | |
8479 | (char *) "self",(char *) "pt", NULL | |
8480 | }; | |
8481 | ||
8482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8483 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); | |
8484 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8485 | { | |
8486 | arg2 = &temp2; | |
8487 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8488 | } | |
8489 | { | |
8490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8491 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
8492 | ||
8493 | wxPyEndAllowThreads(__tstate); | |
8494 | if (PyErr_Occurred()) SWIG_fail; | |
8495 | } | |
8496 | { | |
8497 | resultobj = SWIG_From_int((int)(result)); | |
8498 | } | |
8499 | return resultobj; | |
8500 | fail: | |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
8505 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { | |
8506 | PyObject *resultobj; | |
8507 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
8508 | int arg2 ; | |
8509 | int arg3 ; | |
8510 | int result; | |
8511 | PyObject * obj0 = 0 ; | |
8512 | PyObject * obj1 = 0 ; | |
8513 | PyObject * obj2 = 0 ; | |
8514 | char *kwnames[] = { | |
8515 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8516 | }; | |
8517 | ||
8518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); | |
8520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8521 | { | |
8522 | arg2 = (int)(SWIG_As_int(obj1)); | |
8523 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8524 | } | |
8525 | { | |
8526 | arg3 = (int)(SWIG_As_int(obj2)); | |
8527 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8528 | } | |
8529 | { | |
8530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8531 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
8532 | ||
8533 | wxPyEndAllowThreads(__tstate); | |
8534 | if (PyErr_Occurred()) SWIG_fail; | |
8535 | } | |
8536 | { | |
8537 | resultobj = SWIG_From_int((int)(result)); | |
8538 | } | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
8545 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { | |
8546 | PyObject *obj; | |
8547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8548 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
8549 | Py_INCREF(obj); | |
8550 | return Py_BuildValue((char *)""); | |
8551 | } | |
8552 | static int _wrap_TextCtrlNameStr_set(PyObject *) { | |
8553 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
8554 | return 1; | |
8555 | } | |
8556 | ||
8557 | ||
8558 | static PyObject *_wrap_TextCtrlNameStr_get(void) { | |
8559 | PyObject *pyobj; | |
8560 | ||
8561 | { | |
8562 | #if wxUSE_UNICODE | |
8563 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8564 | #else | |
8565 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8566 | #endif | |
8567 | } | |
8568 | return pyobj; | |
8569 | } | |
8570 | ||
8571 | ||
8572 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { | |
8573 | PyObject *resultobj; | |
8574 | wxColour const &arg1_defvalue = wxNullColour ; | |
8575 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
8576 | wxColour const &arg2_defvalue = wxNullColour ; | |
8577 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8578 | wxFont const &arg3_defvalue = wxNullFont ; | |
8579 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
8580 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; | |
8581 | wxTextAttr *result; | |
8582 | wxColour temp1 ; | |
8583 | wxColour temp2 ; | |
8584 | PyObject * obj0 = 0 ; | |
8585 | PyObject * obj1 = 0 ; | |
8586 | PyObject * obj2 = 0 ; | |
8587 | PyObject * obj3 = 0 ; | |
8588 | char *kwnames[] = { | |
8589 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
8590 | }; | |
8591 | ||
8592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8593 | if (obj0) { | |
8594 | { | |
8595 | arg1 = &temp1; | |
8596 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
8597 | } | |
8598 | } | |
8599 | if (obj1) { | |
8600 | { | |
8601 | arg2 = &temp2; | |
8602 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8603 | } | |
8604 | } | |
8605 | if (obj2) { | |
8606 | { | |
8607 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8608 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8609 | if (arg3 == NULL) { | |
8610 | SWIG_null_ref("wxFont"); | |
8611 | } | |
8612 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8613 | } | |
8614 | } | |
8615 | if (obj3) { | |
8616 | { | |
8617 | arg4 = (wxTextAttrAlignment)(SWIG_As_int(obj3)); | |
8618 | if (SWIG_arg_fail(4)) SWIG_fail; | |
8619 | } | |
8620 | } | |
8621 | { | |
8622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8623 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
8624 | ||
8625 | wxPyEndAllowThreads(__tstate); | |
8626 | if (PyErr_Occurred()) SWIG_fail; | |
8627 | } | |
8628 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
8629 | return resultobj; | |
8630 | fail: | |
8631 | return NULL; | |
8632 | } | |
8633 | ||
8634 | ||
8635 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { | |
8636 | PyObject *resultobj; | |
8637 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8638 | PyObject * obj0 = 0 ; | |
8639 | char *kwnames[] = { | |
8640 | (char *) "self", NULL | |
8641 | }; | |
8642 | ||
8643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
8644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8646 | { | |
8647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8648 | delete arg1; | |
8649 | ||
8650 | wxPyEndAllowThreads(__tstate); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | } | |
8653 | Py_INCREF(Py_None); resultobj = Py_None; | |
8654 | return resultobj; | |
8655 | fail: | |
8656 | return NULL; | |
8657 | } | |
8658 | ||
8659 | ||
8660 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { | |
8661 | PyObject *resultobj; | |
8662 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8663 | PyObject * obj0 = 0 ; | |
8664 | char *kwnames[] = { | |
8665 | (char *) "self", NULL | |
8666 | }; | |
8667 | ||
8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
8669 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8670 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8671 | { | |
8672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8673 | (arg1)->Init(); | |
8674 | ||
8675 | wxPyEndAllowThreads(__tstate); | |
8676 | if (PyErr_Occurred()) SWIG_fail; | |
8677 | } | |
8678 | Py_INCREF(Py_None); resultobj = Py_None; | |
8679 | return resultobj; | |
8680 | fail: | |
8681 | return NULL; | |
8682 | } | |
8683 | ||
8684 | ||
8685 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
8686 | PyObject *resultobj; | |
8687 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8688 | wxColour *arg2 = 0 ; | |
8689 | wxColour temp2 ; | |
8690 | PyObject * obj0 = 0 ; | |
8691 | PyObject * obj1 = 0 ; | |
8692 | char *kwnames[] = { | |
8693 | (char *) "self",(char *) "colText", NULL | |
8694 | }; | |
8695 | ||
8696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
8697 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8698 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8699 | { | |
8700 | arg2 = &temp2; | |
8701 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8702 | } | |
8703 | { | |
8704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8705 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
8706 | ||
8707 | wxPyEndAllowThreads(__tstate); | |
8708 | if (PyErr_Occurred()) SWIG_fail; | |
8709 | } | |
8710 | Py_INCREF(Py_None); resultobj = Py_None; | |
8711 | return resultobj; | |
8712 | fail: | |
8713 | return NULL; | |
8714 | } | |
8715 | ||
8716 | ||
8717 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
8718 | PyObject *resultobj; | |
8719 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8720 | wxColour *arg2 = 0 ; | |
8721 | wxColour temp2 ; | |
8722 | PyObject * obj0 = 0 ; | |
8723 | PyObject * obj1 = 0 ; | |
8724 | char *kwnames[] = { | |
8725 | (char *) "self",(char *) "colBack", NULL | |
8726 | }; | |
8727 | ||
8728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
8729 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8730 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8731 | { | |
8732 | arg2 = &temp2; | |
8733 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8734 | } | |
8735 | { | |
8736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8737 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
8738 | ||
8739 | wxPyEndAllowThreads(__tstate); | |
8740 | if (PyErr_Occurred()) SWIG_fail; | |
8741 | } | |
8742 | Py_INCREF(Py_None); resultobj = Py_None; | |
8743 | return resultobj; | |
8744 | fail: | |
8745 | return NULL; | |
8746 | } | |
8747 | ||
8748 | ||
8749 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
8750 | PyObject *resultobj; | |
8751 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8752 | wxFont *arg2 = 0 ; | |
8753 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
8754 | PyObject * obj0 = 0 ; | |
8755 | PyObject * obj1 = 0 ; | |
8756 | PyObject * obj2 = 0 ; | |
8757 | char *kwnames[] = { | |
8758 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
8759 | }; | |
8760 | ||
8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8764 | { | |
8765 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8766 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8767 | if (arg2 == NULL) { | |
8768 | SWIG_null_ref("wxFont"); | |
8769 | } | |
8770 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8771 | } | |
8772 | if (obj2) { | |
8773 | { | |
8774 | arg3 = (long)(SWIG_As_long(obj2)); | |
8775 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8776 | } | |
8777 | } | |
8778 | { | |
8779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8780 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
8781 | ||
8782 | wxPyEndAllowThreads(__tstate); | |
8783 | if (PyErr_Occurred()) SWIG_fail; | |
8784 | } | |
8785 | Py_INCREF(Py_None); resultobj = Py_None; | |
8786 | return resultobj; | |
8787 | fail: | |
8788 | return NULL; | |
8789 | } | |
8790 | ||
8791 | ||
8792 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { | |
8793 | PyObject *resultobj; | |
8794 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8795 | wxTextAttrAlignment arg2 ; | |
8796 | PyObject * obj0 = 0 ; | |
8797 | PyObject * obj1 = 0 ; | |
8798 | char *kwnames[] = { | |
8799 | (char *) "self",(char *) "alignment", NULL | |
8800 | }; | |
8801 | ||
8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8805 | { | |
8806 | arg2 = (wxTextAttrAlignment)(SWIG_As_int(obj1)); | |
8807 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8808 | } | |
8809 | { | |
8810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8811 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
8812 | ||
8813 | wxPyEndAllowThreads(__tstate); | |
8814 | if (PyErr_Occurred()) SWIG_fail; | |
8815 | } | |
8816 | Py_INCREF(Py_None); resultobj = Py_None; | |
8817 | return resultobj; | |
8818 | fail: | |
8819 | return NULL; | |
8820 | } | |
8821 | ||
8822 | ||
8823 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { | |
8824 | PyObject *resultobj; | |
8825 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8826 | wxArrayInt *arg2 = 0 ; | |
8827 | bool temp2 = false ; | |
8828 | PyObject * obj0 = 0 ; | |
8829 | PyObject * obj1 = 0 ; | |
8830 | char *kwnames[] = { | |
8831 | (char *) "self",(char *) "tabs", NULL | |
8832 | }; | |
8833 | ||
8834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
8835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8837 | { | |
8838 | if (! PySequence_Check(obj1)) { | |
8839 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
8840 | SWIG_fail; | |
8841 | } | |
8842 | arg2 = new wxArrayInt; | |
8843 | temp2 = true; | |
8844 | int i, len=PySequence_Length(obj1); | |
8845 | for (i=0; i<len; i++) { | |
8846 | PyObject* item = PySequence_GetItem(obj1, i); | |
8847 | PyObject* number = PyNumber_Int(item); | |
8848 | arg2->Add(PyInt_AS_LONG(number)); | |
8849 | Py_DECREF(item); | |
8850 | Py_DECREF(number); | |
8851 | } | |
8852 | } | |
8853 | { | |
8854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8855 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
8856 | ||
8857 | wxPyEndAllowThreads(__tstate); | |
8858 | if (PyErr_Occurred()) SWIG_fail; | |
8859 | } | |
8860 | Py_INCREF(Py_None); resultobj = Py_None; | |
8861 | { | |
8862 | if (temp2) delete arg2; | |
8863 | } | |
8864 | return resultobj; | |
8865 | fail: | |
8866 | { | |
8867 | if (temp2) delete arg2; | |
8868 | } | |
8869 | return NULL; | |
8870 | } | |
8871 | ||
8872 | ||
8873 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
8874 | PyObject *resultobj; | |
8875 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8876 | int arg2 ; | |
8877 | int arg3 = (int) 0 ; | |
8878 | PyObject * obj0 = 0 ; | |
8879 | PyObject * obj1 = 0 ; | |
8880 | PyObject * obj2 = 0 ; | |
8881 | char *kwnames[] = { | |
8882 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL | |
8883 | }; | |
8884 | ||
8885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8888 | { | |
8889 | arg2 = (int)(SWIG_As_int(obj1)); | |
8890 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8891 | } | |
8892 | if (obj2) { | |
8893 | { | |
8894 | arg3 = (int)(SWIG_As_int(obj2)); | |
8895 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8896 | } | |
8897 | } | |
8898 | { | |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | (arg1)->SetLeftIndent(arg2,arg3); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
8905 | Py_INCREF(Py_None); resultobj = Py_None; | |
8906 | return resultobj; | |
8907 | fail: | |
8908 | return NULL; | |
8909 | } | |
8910 | ||
8911 | ||
8912 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
8913 | PyObject *resultobj; | |
8914 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8915 | int arg2 ; | |
8916 | PyObject * obj0 = 0 ; | |
8917 | PyObject * obj1 = 0 ; | |
8918 | char *kwnames[] = { | |
8919 | (char *) "self",(char *) "indent", NULL | |
8920 | }; | |
8921 | ||
8922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
8923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8925 | { | |
8926 | arg2 = (int)(SWIG_As_int(obj1)); | |
8927 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8928 | } | |
8929 | { | |
8930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8931 | (arg1)->SetRightIndent(arg2); | |
8932 | ||
8933 | wxPyEndAllowThreads(__tstate); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | } | |
8936 | Py_INCREF(Py_None); resultobj = Py_None; | |
8937 | return resultobj; | |
8938 | fail: | |
8939 | return NULL; | |
8940 | } | |
8941 | ||
8942 | ||
8943 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
8944 | PyObject *resultobj; | |
8945 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8946 | long arg2 ; | |
8947 | PyObject * obj0 = 0 ; | |
8948 | PyObject * obj1 = 0 ; | |
8949 | char *kwnames[] = { | |
8950 | (char *) "self",(char *) "flags", NULL | |
8951 | }; | |
8952 | ||
8953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
8954 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8955 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8956 | { | |
8957 | arg2 = (long)(SWIG_As_long(obj1)); | |
8958 | if (SWIG_arg_fail(2)) SWIG_fail; | |
8959 | } | |
8960 | { | |
8961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8962 | (arg1)->SetFlags(arg2); | |
8963 | ||
8964 | wxPyEndAllowThreads(__tstate); | |
8965 | if (PyErr_Occurred()) SWIG_fail; | |
8966 | } | |
8967 | Py_INCREF(Py_None); resultobj = Py_None; | |
8968 | return resultobj; | |
8969 | fail: | |
8970 | return NULL; | |
8971 | } | |
8972 | ||
8973 | ||
8974 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
8975 | PyObject *resultobj; | |
8976 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
8977 | bool result; | |
8978 | PyObject * obj0 = 0 ; | |
8979 | char *kwnames[] = { | |
8980 | (char *) "self", NULL | |
8981 | }; | |
8982 | ||
8983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
8984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
8985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8986 | { | |
8987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8988 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
8989 | ||
8990 | wxPyEndAllowThreads(__tstate); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
8992 | } | |
8993 | { | |
8994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8995 | } | |
8996 | return resultobj; | |
8997 | fail: | |
8998 | return NULL; | |
8999 | } | |
9000 | ||
9001 | ||
9002 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
9003 | PyObject *resultobj; | |
9004 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9005 | bool result; | |
9006 | PyObject * obj0 = 0 ; | |
9007 | char *kwnames[] = { | |
9008 | (char *) "self", NULL | |
9009 | }; | |
9010 | ||
9011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
9012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9014 | { | |
9015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9016 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
9017 | ||
9018 | wxPyEndAllowThreads(__tstate); | |
9019 | if (PyErr_Occurred()) SWIG_fail; | |
9020 | } | |
9021 | { | |
9022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9023 | } | |
9024 | return resultobj; | |
9025 | fail: | |
9026 | return NULL; | |
9027 | } | |
9028 | ||
9029 | ||
9030 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
9031 | PyObject *resultobj; | |
9032 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9033 | bool result; | |
9034 | PyObject * obj0 = 0 ; | |
9035 | char *kwnames[] = { | |
9036 | (char *) "self", NULL | |
9037 | }; | |
9038 | ||
9039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
9040 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9041 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9042 | { | |
9043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9044 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
9045 | ||
9046 | wxPyEndAllowThreads(__tstate); | |
9047 | if (PyErr_Occurred()) SWIG_fail; | |
9048 | } | |
9049 | { | |
9050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9051 | } | |
9052 | return resultobj; | |
9053 | fail: | |
9054 | return NULL; | |
9055 | } | |
9056 | ||
9057 | ||
9058 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { | |
9059 | PyObject *resultobj; | |
9060 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9061 | bool result; | |
9062 | PyObject * obj0 = 0 ; | |
9063 | char *kwnames[] = { | |
9064 | (char *) "self", NULL | |
9065 | }; | |
9066 | ||
9067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
9068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9070 | { | |
9071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9072 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
9073 | ||
9074 | wxPyEndAllowThreads(__tstate); | |
9075 | if (PyErr_Occurred()) SWIG_fail; | |
9076 | } | |
9077 | { | |
9078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9079 | } | |
9080 | return resultobj; | |
9081 | fail: | |
9082 | return NULL; | |
9083 | } | |
9084 | ||
9085 | ||
9086 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { | |
9087 | PyObject *resultobj; | |
9088 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9089 | bool result; | |
9090 | PyObject * obj0 = 0 ; | |
9091 | char *kwnames[] = { | |
9092 | (char *) "self", NULL | |
9093 | }; | |
9094 | ||
9095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
9096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9098 | { | |
9099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9100 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
9101 | ||
9102 | wxPyEndAllowThreads(__tstate); | |
9103 | if (PyErr_Occurred()) SWIG_fail; | |
9104 | } | |
9105 | { | |
9106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9107 | } | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
9115 | PyObject *resultobj; | |
9116 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9117 | bool result; | |
9118 | PyObject * obj0 = 0 ; | |
9119 | char *kwnames[] = { | |
9120 | (char *) "self", NULL | |
9121 | }; | |
9122 | ||
9123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
9124 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9125 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9126 | { | |
9127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9128 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
9129 | ||
9130 | wxPyEndAllowThreads(__tstate); | |
9131 | if (PyErr_Occurred()) SWIG_fail; | |
9132 | } | |
9133 | { | |
9134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9135 | } | |
9136 | return resultobj; | |
9137 | fail: | |
9138 | return NULL; | |
9139 | } | |
9140 | ||
9141 | ||
9142 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
9143 | PyObject *resultobj; | |
9144 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9145 | bool result; | |
9146 | PyObject * obj0 = 0 ; | |
9147 | char *kwnames[] = { | |
9148 | (char *) "self", NULL | |
9149 | }; | |
9150 | ||
9151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
9152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9154 | { | |
9155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9156 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
9157 | ||
9158 | wxPyEndAllowThreads(__tstate); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | } | |
9161 | { | |
9162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9163 | } | |
9164 | return resultobj; | |
9165 | fail: | |
9166 | return NULL; | |
9167 | } | |
9168 | ||
9169 | ||
9170 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { | |
9171 | PyObject *resultobj; | |
9172 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9173 | long arg2 ; | |
9174 | bool result; | |
9175 | PyObject * obj0 = 0 ; | |
9176 | PyObject * obj1 = 0 ; | |
9177 | char *kwnames[] = { | |
9178 | (char *) "self",(char *) "flag", NULL | |
9179 | }; | |
9180 | ||
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
9182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9184 | { | |
9185 | arg2 = (long)(SWIG_As_long(obj1)); | |
9186 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9187 | } | |
9188 | { | |
9189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9190 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
9191 | ||
9192 | wxPyEndAllowThreads(__tstate); | |
9193 | if (PyErr_Occurred()) SWIG_fail; | |
9194 | } | |
9195 | { | |
9196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9197 | } | |
9198 | return resultobj; | |
9199 | fail: | |
9200 | return NULL; | |
9201 | } | |
9202 | ||
9203 | ||
9204 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
9205 | PyObject *resultobj; | |
9206 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9207 | wxColour *result; | |
9208 | PyObject * obj0 = 0 ; | |
9209 | char *kwnames[] = { | |
9210 | (char *) "self", NULL | |
9211 | }; | |
9212 | ||
9213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
9214 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9215 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9216 | { | |
9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9218 | { | |
9219 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
9220 | result = (wxColour *) &_result_ref; | |
9221 | } | |
9222 | ||
9223 | wxPyEndAllowThreads(__tstate); | |
9224 | if (PyErr_Occurred()) SWIG_fail; | |
9225 | } | |
9226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
9227 | return resultobj; | |
9228 | fail: | |
9229 | return NULL; | |
9230 | } | |
9231 | ||
9232 | ||
9233 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
9234 | PyObject *resultobj; | |
9235 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9236 | wxColour *result; | |
9237 | PyObject * obj0 = 0 ; | |
9238 | char *kwnames[] = { | |
9239 | (char *) "self", NULL | |
9240 | }; | |
9241 | ||
9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
9243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9245 | { | |
9246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9247 | { | |
9248 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
9249 | result = (wxColour *) &_result_ref; | |
9250 | } | |
9251 | ||
9252 | wxPyEndAllowThreads(__tstate); | |
9253 | if (PyErr_Occurred()) SWIG_fail; | |
9254 | } | |
9255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
9256 | return resultobj; | |
9257 | fail: | |
9258 | return NULL; | |
9259 | } | |
9260 | ||
9261 | ||
9262 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
9263 | PyObject *resultobj; | |
9264 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9265 | wxFont *result; | |
9266 | PyObject * obj0 = 0 ; | |
9267 | char *kwnames[] = { | |
9268 | (char *) "self", NULL | |
9269 | }; | |
9270 | ||
9271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
9272 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9273 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9274 | { | |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | { | |
9277 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
9278 | result = (wxFont *) &_result_ref; | |
9279 | } | |
9280 | ||
9281 | wxPyEndAllowThreads(__tstate); | |
9282 | if (PyErr_Occurred()) SWIG_fail; | |
9283 | } | |
9284 | { | |
9285 | wxFont* resultptr = new wxFont(*result); | |
9286 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
9287 | } | |
9288 | return resultobj; | |
9289 | fail: | |
9290 | return NULL; | |
9291 | } | |
9292 | ||
9293 | ||
9294 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { | |
9295 | PyObject *resultobj; | |
9296 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9297 | wxTextAttrAlignment result; | |
9298 | PyObject * obj0 = 0 ; | |
9299 | char *kwnames[] = { | |
9300 | (char *) "self", NULL | |
9301 | }; | |
9302 | ||
9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
9304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9306 | { | |
9307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9308 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); | |
9309 | ||
9310 | wxPyEndAllowThreads(__tstate); | |
9311 | if (PyErr_Occurred()) SWIG_fail; | |
9312 | } | |
9313 | resultobj = SWIG_From_int((result)); | |
9314 | return resultobj; | |
9315 | fail: | |
9316 | return NULL; | |
9317 | } | |
9318 | ||
9319 | ||
9320 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { | |
9321 | PyObject *resultobj; | |
9322 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9323 | wxArrayInt *result; | |
9324 | PyObject * obj0 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
9330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9332 | { | |
9333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9334 | { | |
9335 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
9336 | result = (wxArrayInt *) &_result_ref; | |
9337 | } | |
9338 | ||
9339 | wxPyEndAllowThreads(__tstate); | |
9340 | if (PyErr_Occurred()) SWIG_fail; | |
9341 | } | |
9342 | { | |
9343 | resultobj = PyList_New(0); | |
9344 | size_t idx; | |
9345 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
9346 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
9347 | PyList_Append(resultobj, val); | |
9348 | Py_DECREF(val); | |
9349 | } | |
9350 | } | |
9351 | return resultobj; | |
9352 | fail: | |
9353 | return NULL; | |
9354 | } | |
9355 | ||
9356 | ||
9357 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
9358 | PyObject *resultobj; | |
9359 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9360 | long result; | |
9361 | PyObject * obj0 = 0 ; | |
9362 | char *kwnames[] = { | |
9363 | (char *) "self", NULL | |
9364 | }; | |
9365 | ||
9366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
9367 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9368 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9369 | { | |
9370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9371 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
9372 | ||
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | { | |
9377 | resultobj = SWIG_From_long((long)(result)); | |
9378 | } | |
9379 | return resultobj; | |
9380 | fail: | |
9381 | return NULL; | |
9382 | } | |
9383 | ||
9384 | ||
9385 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
9386 | PyObject *resultobj; | |
9387 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9388 | long result; | |
9389 | PyObject * obj0 = 0 ; | |
9390 | char *kwnames[] = { | |
9391 | (char *) "self", NULL | |
9392 | }; | |
9393 | ||
9394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
9395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9397 | { | |
9398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9399 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
9400 | ||
9401 | wxPyEndAllowThreads(__tstate); | |
9402 | if (PyErr_Occurred()) SWIG_fail; | |
9403 | } | |
9404 | { | |
9405 | resultobj = SWIG_From_long((long)(result)); | |
9406 | } | |
9407 | return resultobj; | |
9408 | fail: | |
9409 | return NULL; | |
9410 | } | |
9411 | ||
9412 | ||
9413 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
9414 | PyObject *resultobj; | |
9415 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9416 | long result; | |
9417 | PyObject * obj0 = 0 ; | |
9418 | char *kwnames[] = { | |
9419 | (char *) "self", NULL | |
9420 | }; | |
9421 | ||
9422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
9423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9425 | { | |
9426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9427 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
9428 | ||
9429 | wxPyEndAllowThreads(__tstate); | |
9430 | if (PyErr_Occurred()) SWIG_fail; | |
9431 | } | |
9432 | { | |
9433 | resultobj = SWIG_From_long((long)(result)); | |
9434 | } | |
9435 | return resultobj; | |
9436 | fail: | |
9437 | return NULL; | |
9438 | } | |
9439 | ||
9440 | ||
9441 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { | |
9442 | PyObject *resultobj; | |
9443 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9444 | long result; | |
9445 | PyObject * obj0 = 0 ; | |
9446 | char *kwnames[] = { | |
9447 | (char *) "self", NULL | |
9448 | }; | |
9449 | ||
9450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
9451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9453 | { | |
9454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9455 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
9456 | ||
9457 | wxPyEndAllowThreads(__tstate); | |
9458 | if (PyErr_Occurred()) SWIG_fail; | |
9459 | } | |
9460 | { | |
9461 | resultobj = SWIG_From_long((long)(result)); | |
9462 | } | |
9463 | return resultobj; | |
9464 | fail: | |
9465 | return NULL; | |
9466 | } | |
9467 | ||
9468 | ||
9469 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { | |
9470 | PyObject *resultobj; | |
9471 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
9472 | bool result; | |
9473 | PyObject * obj0 = 0 ; | |
9474 | char *kwnames[] = { | |
9475 | (char *) "self", NULL | |
9476 | }; | |
9477 | ||
9478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
9479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9481 | { | |
9482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9483 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
9484 | ||
9485 | wxPyEndAllowThreads(__tstate); | |
9486 | if (PyErr_Occurred()) SWIG_fail; | |
9487 | } | |
9488 | { | |
9489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9490 | } | |
9491 | return resultobj; | |
9492 | fail: | |
9493 | return NULL; | |
9494 | } | |
9495 | ||
9496 | ||
9497 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { | |
9498 | PyObject *resultobj; | |
9499 | wxTextAttr *arg1 = 0 ; | |
9500 | wxTextAttr *arg2 = 0 ; | |
9501 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
9502 | wxTextAttr result; | |
9503 | PyObject * obj0 = 0 ; | |
9504 | PyObject * obj1 = 0 ; | |
9505 | PyObject * obj2 = 0 ; | |
9506 | char *kwnames[] = { | |
9507 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
9508 | }; | |
9509 | ||
9510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9511 | { | |
9512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9514 | if (arg1 == NULL) { | |
9515 | SWIG_null_ref("wxTextAttr"); | |
9516 | } | |
9517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9518 | } | |
9519 | { | |
9520 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9521 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9522 | if (arg2 == NULL) { | |
9523 | SWIG_null_ref("wxTextAttr"); | |
9524 | } | |
9525 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9526 | } | |
9527 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
9528 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9529 | { | |
9530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9531 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
9532 | ||
9533 | wxPyEndAllowThreads(__tstate); | |
9534 | if (PyErr_Occurred()) SWIG_fail; | |
9535 | } | |
9536 | { | |
9537 | wxTextAttr * resultptr; | |
9538 | resultptr = new wxTextAttr((wxTextAttr &)(result)); | |
9539 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); | |
9540 | } | |
9541 | return resultobj; | |
9542 | fail: | |
9543 | return NULL; | |
9544 | } | |
9545 | ||
9546 | ||
9547 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { | |
9548 | PyObject *obj; | |
9549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9550 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
9551 | Py_INCREF(obj); | |
9552 | return Py_BuildValue((char *)""); | |
9553 | } | |
9554 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
9555 | PyObject *resultobj; | |
9556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9557 | int arg2 = (int) -1 ; | |
9558 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9559 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9560 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9561 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9562 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9563 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9564 | long arg6 = (long) 0 ; | |
9565 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9566 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9567 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
9568 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9569 | wxTextCtrl *result; | |
9570 | bool temp3 = false ; | |
9571 | wxPoint temp4 ; | |
9572 | wxSize temp5 ; | |
9573 | bool temp8 = false ; | |
9574 | PyObject * obj0 = 0 ; | |
9575 | PyObject * obj1 = 0 ; | |
9576 | PyObject * obj2 = 0 ; | |
9577 | PyObject * obj3 = 0 ; | |
9578 | PyObject * obj4 = 0 ; | |
9579 | PyObject * obj5 = 0 ; | |
9580 | PyObject * obj6 = 0 ; | |
9581 | PyObject * obj7 = 0 ; | |
9582 | char *kwnames[] = { | |
9583 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9584 | }; | |
9585 | ||
9586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
9587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9589 | if (obj1) { | |
9590 | { | |
9591 | arg2 = (int)(SWIG_As_int(obj1)); | |
9592 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9593 | } | |
9594 | } | |
9595 | if (obj2) { | |
9596 | { | |
9597 | arg3 = wxString_in_helper(obj2); | |
9598 | if (arg3 == NULL) SWIG_fail; | |
9599 | temp3 = true; | |
9600 | } | |
9601 | } | |
9602 | if (obj3) { | |
9603 | { | |
9604 | arg4 = &temp4; | |
9605 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9606 | } | |
9607 | } | |
9608 | if (obj4) { | |
9609 | { | |
9610 | arg5 = &temp5; | |
9611 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9612 | } | |
9613 | } | |
9614 | if (obj5) { | |
9615 | { | |
9616 | arg6 = (long)(SWIG_As_long(obj5)); | |
9617 | if (SWIG_arg_fail(6)) SWIG_fail; | |
9618 | } | |
9619 | } | |
9620 | if (obj6) { | |
9621 | { | |
9622 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9623 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9624 | if (arg7 == NULL) { | |
9625 | SWIG_null_ref("wxValidator"); | |
9626 | } | |
9627 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9628 | } | |
9629 | } | |
9630 | if (obj7) { | |
9631 | { | |
9632 | arg8 = wxString_in_helper(obj7); | |
9633 | if (arg8 == NULL) SWIG_fail; | |
9634 | temp8 = true; | |
9635 | } | |
9636 | } | |
9637 | { | |
9638 | if (!wxPyCheckForApp()) SWIG_fail; | |
9639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9640 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9641 | ||
9642 | wxPyEndAllowThreads(__tstate); | |
9643 | if (PyErr_Occurred()) SWIG_fail; | |
9644 | } | |
9645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); | |
9646 | { | |
9647 | if (temp3) | |
9648 | delete arg3; | |
9649 | } | |
9650 | { | |
9651 | if (temp8) | |
9652 | delete arg8; | |
9653 | } | |
9654 | return resultobj; | |
9655 | fail: | |
9656 | { | |
9657 | if (temp3) | |
9658 | delete arg3; | |
9659 | } | |
9660 | { | |
9661 | if (temp8) | |
9662 | delete arg8; | |
9663 | } | |
9664 | return NULL; | |
9665 | } | |
9666 | ||
9667 | ||
9668 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
9669 | PyObject *resultobj; | |
9670 | wxTextCtrl *result; | |
9671 | char *kwnames[] = { | |
9672 | NULL | |
9673 | }; | |
9674 | ||
9675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
9676 | { | |
9677 | if (!wxPyCheckForApp()) SWIG_fail; | |
9678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9679 | result = (wxTextCtrl *)new wxTextCtrl(); | |
9680 | ||
9681 | wxPyEndAllowThreads(__tstate); | |
9682 | if (PyErr_Occurred()) SWIG_fail; | |
9683 | } | |
9684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); | |
9685 | return resultobj; | |
9686 | fail: | |
9687 | return NULL; | |
9688 | } | |
9689 | ||
9690 | ||
9691 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
9692 | PyObject *resultobj; | |
9693 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9694 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9695 | int arg3 = (int) -1 ; | |
9696 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9697 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9698 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9699 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9700 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9701 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9702 | long arg7 = (long) 0 ; | |
9703 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9704 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
9705 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
9706 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
9707 | bool result; | |
9708 | bool temp4 = false ; | |
9709 | wxPoint temp5 ; | |
9710 | wxSize temp6 ; | |
9711 | bool temp9 = false ; | |
9712 | PyObject * obj0 = 0 ; | |
9713 | PyObject * obj1 = 0 ; | |
9714 | PyObject * obj2 = 0 ; | |
9715 | PyObject * obj3 = 0 ; | |
9716 | PyObject * obj4 = 0 ; | |
9717 | PyObject * obj5 = 0 ; | |
9718 | PyObject * obj6 = 0 ; | |
9719 | PyObject * obj7 = 0 ; | |
9720 | PyObject * obj8 = 0 ; | |
9721 | char *kwnames[] = { | |
9722 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9723 | }; | |
9724 | ||
9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
9726 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
9727 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9728 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
9729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9730 | if (obj2) { | |
9731 | { | |
9732 | arg3 = (int)(SWIG_As_int(obj2)); | |
9733 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9734 | } | |
9735 | } | |
9736 | if (obj3) { | |
9737 | { | |
9738 | arg4 = wxString_in_helper(obj3); | |
9739 | if (arg4 == NULL) SWIG_fail; | |
9740 | temp4 = true; | |
9741 | } | |
9742 | } | |
9743 | if (obj4) { | |
9744 | { | |
9745 | arg5 = &temp5; | |
9746 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9747 | } | |
9748 | } | |
9749 | if (obj5) { | |
9750 | { | |
9751 | arg6 = &temp6; | |
9752 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9753 | } | |
9754 | } | |
9755 | if (obj6) { | |
9756 | { | |
9757 | arg7 = (long)(SWIG_As_long(obj6)); | |
9758 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9759 | } | |
9760 | } | |
9761 | if (obj7) { | |
9762 | { | |
9763 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9764 | if (SWIG_arg_fail(8)) SWIG_fail; | |
9765 | if (arg8 == NULL) { | |
9766 | SWIG_null_ref("wxValidator"); | |
9767 | } | |
9768 | if (SWIG_arg_fail(8)) SWIG_fail; | |
9769 | } | |
9770 | } | |
9771 | if (obj8) { | |
9772 | { | |
9773 | arg9 = wxString_in_helper(obj8); | |
9774 | if (arg9 == NULL) SWIG_fail; | |
9775 | temp9 = true; | |
9776 | } | |
9777 | } | |
9778 | { | |
9779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9780 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
9781 | ||
9782 | wxPyEndAllowThreads(__tstate); | |
9783 | if (PyErr_Occurred()) SWIG_fail; | |
9784 | } | |
9785 | { | |
9786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9787 | } | |
9788 | { | |
9789 | if (temp4) | |
9790 | delete arg4; | |
9791 | } | |
9792 | { | |
9793 | if (temp9) | |
9794 | delete arg9; | |
9795 | } | |
9796 | return resultobj; | |
9797 | fail: | |
9798 | { | |
9799 | if (temp4) | |
9800 | delete arg4; | |
9801 | } | |
9802 | { | |
9803 | if (temp9) | |
9804 | delete arg9; | |
9805 | } | |
9806 | return NULL; | |
9807 | } | |
9808 | ||
9809 | ||
9810 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
9811 | PyObject *resultobj; | |
9812 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9813 | wxString result; | |
9814 | PyObject * obj0 = 0 ; | |
9815 | char *kwnames[] = { | |
9816 | (char *) "self", NULL | |
9817 | }; | |
9818 | ||
9819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
9820 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
9821 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9822 | { | |
9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9824 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
9825 | ||
9826 | wxPyEndAllowThreads(__tstate); | |
9827 | if (PyErr_Occurred()) SWIG_fail; | |
9828 | } | |
9829 | { | |
9830 | #if wxUSE_UNICODE | |
9831 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9832 | #else | |
9833 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9834 | #endif | |
9835 | } | |
9836 | return resultobj; | |
9837 | fail: | |
9838 | return NULL; | |
9839 | } | |
9840 | ||
9841 | ||
9842 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
9843 | PyObject *resultobj; | |
9844 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9845 | wxString *arg2 = 0 ; | |
9846 | bool temp2 = false ; | |
9847 | PyObject * obj0 = 0 ; | |
9848 | PyObject * obj1 = 0 ; | |
9849 | char *kwnames[] = { | |
9850 | (char *) "self",(char *) "value", NULL | |
9851 | }; | |
9852 | ||
9853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
9854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
9855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9856 | { | |
9857 | arg2 = wxString_in_helper(obj1); | |
9858 | if (arg2 == NULL) SWIG_fail; | |
9859 | temp2 = true; | |
9860 | } | |
9861 | { | |
9862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9863 | (arg1)->SetValue((wxString const &)*arg2); | |
9864 | ||
9865 | wxPyEndAllowThreads(__tstate); | |
9866 | if (PyErr_Occurred()) SWIG_fail; | |
9867 | } | |
9868 | Py_INCREF(Py_None); resultobj = Py_None; | |
9869 | { | |
9870 | if (temp2) | |
9871 | delete arg2; | |
9872 | } | |
9873 | return resultobj; | |
9874 | fail: | |
9875 | { | |
9876 | if (temp2) | |
9877 | delete arg2; | |
9878 | } | |
9879 | return NULL; | |
9880 | } | |
9881 | ||
9882 | ||
9883 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
9884 | PyObject *resultobj; | |
9885 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9886 | long arg2 ; | |
9887 | long arg3 ; | |
9888 | wxString result; | |
9889 | PyObject * obj0 = 0 ; | |
9890 | PyObject * obj1 = 0 ; | |
9891 | PyObject * obj2 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
9898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9899 | { | |
9900 | arg2 = (long)(SWIG_As_long(obj1)); | |
9901 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9902 | } | |
9903 | { | |
9904 | arg3 = (long)(SWIG_As_long(obj2)); | |
9905 | if (SWIG_arg_fail(3)) SWIG_fail; | |
9906 | } | |
9907 | { | |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
9910 | ||
9911 | wxPyEndAllowThreads(__tstate); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
9914 | { | |
9915 | #if wxUSE_UNICODE | |
9916 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9917 | #else | |
9918 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9919 | #endif | |
9920 | } | |
9921 | return resultobj; | |
9922 | fail: | |
9923 | return NULL; | |
9924 | } | |
9925 | ||
9926 | ||
9927 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
9928 | PyObject *resultobj; | |
9929 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9930 | long arg2 ; | |
9931 | int result; | |
9932 | PyObject * obj0 = 0 ; | |
9933 | PyObject * obj1 = 0 ; | |
9934 | char *kwnames[] = { | |
9935 | (char *) "self",(char *) "lineNo", NULL | |
9936 | }; | |
9937 | ||
9938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
9939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
9940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9941 | { | |
9942 | arg2 = (long)(SWIG_As_long(obj1)); | |
9943 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9944 | } | |
9945 | { | |
9946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9947 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
9948 | ||
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) SWIG_fail; | |
9951 | } | |
9952 | { | |
9953 | resultobj = SWIG_From_int((int)(result)); | |
9954 | } | |
9955 | return resultobj; | |
9956 | fail: | |
9957 | return NULL; | |
9958 | } | |
9959 | ||
9960 | ||
9961 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { | |
9962 | PyObject *resultobj; | |
9963 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9964 | long arg2 ; | |
9965 | wxString result; | |
9966 | PyObject * obj0 = 0 ; | |
9967 | PyObject * obj1 = 0 ; | |
9968 | char *kwnames[] = { | |
9969 | (char *) "self",(char *) "lineNo", NULL | |
9970 | }; | |
9971 | ||
9972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
9973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
9974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9975 | { | |
9976 | arg2 = (long)(SWIG_As_long(obj1)); | |
9977 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9978 | } | |
9979 | { | |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
9982 | ||
9983 | wxPyEndAllowThreads(__tstate); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
9985 | } | |
9986 | { | |
9987 | #if wxUSE_UNICODE | |
9988 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9989 | #else | |
9990 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9991 | #endif | |
9992 | } | |
9993 | return resultobj; | |
9994 | fail: | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
9999 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { | |
10000 | PyObject *resultobj; | |
10001 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10002 | int result; | |
10003 | PyObject * obj0 = 0 ; | |
10004 | char *kwnames[] = { | |
10005 | (char *) "self", NULL | |
10006 | }; | |
10007 | ||
10008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
10009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10011 | { | |
10012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10013 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
10014 | ||
10015 | wxPyEndAllowThreads(__tstate); | |
10016 | if (PyErr_Occurred()) SWIG_fail; | |
10017 | } | |
10018 | { | |
10019 | resultobj = SWIG_From_int((int)(result)); | |
10020 | } | |
10021 | return resultobj; | |
10022 | fail: | |
10023 | return NULL; | |
10024 | } | |
10025 | ||
10026 | ||
10027 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { | |
10028 | PyObject *resultobj; | |
10029 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10030 | bool result; | |
10031 | PyObject * obj0 = 0 ; | |
10032 | char *kwnames[] = { | |
10033 | (char *) "self", NULL | |
10034 | }; | |
10035 | ||
10036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
10037 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10038 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10039 | { | |
10040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10041 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
10042 | ||
10043 | wxPyEndAllowThreads(__tstate); | |
10044 | if (PyErr_Occurred()) SWIG_fail; | |
10045 | } | |
10046 | { | |
10047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10048 | } | |
10049 | return resultobj; | |
10050 | fail: | |
10051 | return NULL; | |
10052 | } | |
10053 | ||
10054 | ||
10055 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { | |
10056 | PyObject *resultobj; | |
10057 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10058 | bool result; | |
10059 | PyObject * obj0 = 0 ; | |
10060 | char *kwnames[] = { | |
10061 | (char *) "self", NULL | |
10062 | }; | |
10063 | ||
10064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
10065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10067 | { | |
10068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10069 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
10070 | ||
10071 | wxPyEndAllowThreads(__tstate); | |
10072 | if (PyErr_Occurred()) SWIG_fail; | |
10073 | } | |
10074 | { | |
10075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10076 | } | |
10077 | return resultobj; | |
10078 | fail: | |
10079 | return NULL; | |
10080 | } | |
10081 | ||
10082 | ||
10083 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
10084 | PyObject *resultobj; | |
10085 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10086 | bool result; | |
10087 | PyObject * obj0 = 0 ; | |
10088 | char *kwnames[] = { | |
10089 | (char *) "self", NULL | |
10090 | }; | |
10091 | ||
10092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
10093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10095 | { | |
10096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10097 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
10098 | ||
10099 | wxPyEndAllowThreads(__tstate); | |
10100 | if (PyErr_Occurred()) SWIG_fail; | |
10101 | } | |
10102 | { | |
10103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10104 | } | |
10105 | return resultobj; | |
10106 | fail: | |
10107 | return NULL; | |
10108 | } | |
10109 | ||
10110 | ||
10111 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
10112 | PyObject *resultobj; | |
10113 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10114 | bool result; | |
10115 | PyObject * obj0 = 0 ; | |
10116 | char *kwnames[] = { | |
10117 | (char *) "self", NULL | |
10118 | }; | |
10119 | ||
10120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
10121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10123 | { | |
10124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10125 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
10126 | ||
10127 | wxPyEndAllowThreads(__tstate); | |
10128 | if (PyErr_Occurred()) SWIG_fail; | |
10129 | } | |
10130 | { | |
10131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10132 | } | |
10133 | return resultobj; | |
10134 | fail: | |
10135 | return NULL; | |
10136 | } | |
10137 | ||
10138 | ||
10139 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
10140 | PyObject *resultobj; | |
10141 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10142 | long *arg2 = (long *) 0 ; | |
10143 | long *arg3 = (long *) 0 ; | |
10144 | long temp2 ; | |
10145 | int res2 = 0 ; | |
10146 | long temp3 ; | |
10147 | int res3 = 0 ; | |
10148 | PyObject * obj0 = 0 ; | |
10149 | char *kwnames[] = { | |
10150 | (char *) "self", NULL | |
10151 | }; | |
10152 | ||
10153 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
10154 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
10156 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10157 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
10161 | ||
10162 | wxPyEndAllowThreads(__tstate); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | } | |
10165 | Py_INCREF(Py_None); resultobj = Py_None; | |
10166 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
10167 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
10168 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10169 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10170 | return resultobj; | |
10171 | fail: | |
10172 | return NULL; | |
10173 | } | |
10174 | ||
10175 | ||
10176 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
10177 | PyObject *resultobj; | |
10178 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10179 | wxString result; | |
10180 | PyObject * obj0 = 0 ; | |
10181 | char *kwnames[] = { | |
10182 | (char *) "self", NULL | |
10183 | }; | |
10184 | ||
10185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
10186 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10187 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10188 | { | |
10189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10190 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
10191 | ||
10192 | wxPyEndAllowThreads(__tstate); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | } | |
10195 | { | |
10196 | #if wxUSE_UNICODE | |
10197 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10198 | #else | |
10199 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10200 | #endif | |
10201 | } | |
10202 | return resultobj; | |
10203 | fail: | |
10204 | return NULL; | |
10205 | } | |
10206 | ||
10207 | ||
10208 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { | |
10209 | PyObject *resultobj; | |
10210 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10211 | PyObject * obj0 = 0 ; | |
10212 | char *kwnames[] = { | |
10213 | (char *) "self", NULL | |
10214 | }; | |
10215 | ||
10216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
10217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10219 | { | |
10220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10221 | (arg1)->Clear(); | |
10222 | ||
10223 | wxPyEndAllowThreads(__tstate); | |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
10225 | } | |
10226 | Py_INCREF(Py_None); resultobj = Py_None; | |
10227 | return resultobj; | |
10228 | fail: | |
10229 | return NULL; | |
10230 | } | |
10231 | ||
10232 | ||
10233 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { | |
10234 | PyObject *resultobj; | |
10235 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10236 | long arg2 ; | |
10237 | long arg3 ; | |
10238 | wxString *arg4 = 0 ; | |
10239 | bool temp4 = false ; | |
10240 | PyObject * obj0 = 0 ; | |
10241 | PyObject * obj1 = 0 ; | |
10242 | PyObject * obj2 = 0 ; | |
10243 | PyObject * obj3 = 0 ; | |
10244 | char *kwnames[] = { | |
10245 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
10246 | }; | |
10247 | ||
10248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10251 | { | |
10252 | arg2 = (long)(SWIG_As_long(obj1)); | |
10253 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10254 | } | |
10255 | { | |
10256 | arg3 = (long)(SWIG_As_long(obj2)); | |
10257 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10258 | } | |
10259 | { | |
10260 | arg4 = wxString_in_helper(obj3); | |
10261 | if (arg4 == NULL) SWIG_fail; | |
10262 | temp4 = true; | |
10263 | } | |
10264 | { | |
10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10266 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
10267 | ||
10268 | wxPyEndAllowThreads(__tstate); | |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | } | |
10271 | Py_INCREF(Py_None); resultobj = Py_None; | |
10272 | { | |
10273 | if (temp4) | |
10274 | delete arg4; | |
10275 | } | |
10276 | return resultobj; | |
10277 | fail: | |
10278 | { | |
10279 | if (temp4) | |
10280 | delete arg4; | |
10281 | } | |
10282 | return NULL; | |
10283 | } | |
10284 | ||
10285 | ||
10286 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { | |
10287 | PyObject *resultobj; | |
10288 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10289 | long arg2 ; | |
10290 | long arg3 ; | |
10291 | PyObject * obj0 = 0 ; | |
10292 | PyObject * obj1 = 0 ; | |
10293 | PyObject * obj2 = 0 ; | |
10294 | char *kwnames[] = { | |
10295 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10296 | }; | |
10297 | ||
10298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10301 | { | |
10302 | arg2 = (long)(SWIG_As_long(obj1)); | |
10303 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10304 | } | |
10305 | { | |
10306 | arg3 = (long)(SWIG_As_long(obj2)); | |
10307 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10308 | } | |
10309 | { | |
10310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10311 | (arg1)->Remove(arg2,arg3); | |
10312 | ||
10313 | wxPyEndAllowThreads(__tstate); | |
10314 | if (PyErr_Occurred()) SWIG_fail; | |
10315 | } | |
10316 | Py_INCREF(Py_None); resultobj = Py_None; | |
10317 | return resultobj; | |
10318 | fail: | |
10319 | return NULL; | |
10320 | } | |
10321 | ||
10322 | ||
10323 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
10324 | PyObject *resultobj; | |
10325 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10326 | wxString *arg2 = 0 ; | |
10327 | bool result; | |
10328 | bool temp2 = false ; | |
10329 | PyObject * obj0 = 0 ; | |
10330 | PyObject * obj1 = 0 ; | |
10331 | char *kwnames[] = { | |
10332 | (char *) "self",(char *) "file", NULL | |
10333 | }; | |
10334 | ||
10335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
10336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10338 | { | |
10339 | arg2 = wxString_in_helper(obj1); | |
10340 | if (arg2 == NULL) SWIG_fail; | |
10341 | temp2 = true; | |
10342 | } | |
10343 | { | |
10344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10345 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
10346 | ||
10347 | wxPyEndAllowThreads(__tstate); | |
10348 | if (PyErr_Occurred()) SWIG_fail; | |
10349 | } | |
10350 | { | |
10351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10352 | } | |
10353 | { | |
10354 | if (temp2) | |
10355 | delete arg2; | |
10356 | } | |
10357 | return resultobj; | |
10358 | fail: | |
10359 | { | |
10360 | if (temp2) | |
10361 | delete arg2; | |
10362 | } | |
10363 | return NULL; | |
10364 | } | |
10365 | ||
10366 | ||
10367 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
10368 | PyObject *resultobj; | |
10369 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10370 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10371 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10372 | bool result; | |
10373 | bool temp2 = false ; | |
10374 | PyObject * obj0 = 0 ; | |
10375 | PyObject * obj1 = 0 ; | |
10376 | char *kwnames[] = { | |
10377 | (char *) "self",(char *) "file", NULL | |
10378 | }; | |
10379 | ||
10380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
10381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10383 | if (obj1) { | |
10384 | { | |
10385 | arg2 = wxString_in_helper(obj1); | |
10386 | if (arg2 == NULL) SWIG_fail; | |
10387 | temp2 = true; | |
10388 | } | |
10389 | } | |
10390 | { | |
10391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10392 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
10393 | ||
10394 | wxPyEndAllowThreads(__tstate); | |
10395 | if (PyErr_Occurred()) SWIG_fail; | |
10396 | } | |
10397 | { | |
10398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10399 | } | |
10400 | { | |
10401 | if (temp2) | |
10402 | delete arg2; | |
10403 | } | |
10404 | return resultobj; | |
10405 | fail: | |
10406 | { | |
10407 | if (temp2) | |
10408 | delete arg2; | |
10409 | } | |
10410 | return NULL; | |
10411 | } | |
10412 | ||
10413 | ||
10414 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { | |
10415 | PyObject *resultobj; | |
10416 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10417 | PyObject * obj0 = 0 ; | |
10418 | char *kwnames[] = { | |
10419 | (char *) "self", NULL | |
10420 | }; | |
10421 | ||
10422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
10423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10425 | { | |
10426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10427 | (arg1)->MarkDirty(); | |
10428 | ||
10429 | wxPyEndAllowThreads(__tstate); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
10432 | Py_INCREF(Py_None); resultobj = Py_None; | |
10433 | return resultobj; | |
10434 | fail: | |
10435 | return NULL; | |
10436 | } | |
10437 | ||
10438 | ||
10439 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { | |
10440 | PyObject *resultobj; | |
10441 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10442 | PyObject * obj0 = 0 ; | |
10443 | char *kwnames[] = { | |
10444 | (char *) "self", NULL | |
10445 | }; | |
10446 | ||
10447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
10448 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10449 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10450 | { | |
10451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10452 | (arg1)->DiscardEdits(); | |
10453 | ||
10454 | wxPyEndAllowThreads(__tstate); | |
10455 | if (PyErr_Occurred()) SWIG_fail; | |
10456 | } | |
10457 | Py_INCREF(Py_None); resultobj = Py_None; | |
10458 | return resultobj; | |
10459 | fail: | |
10460 | return NULL; | |
10461 | } | |
10462 | ||
10463 | ||
10464 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
10465 | PyObject *resultobj; | |
10466 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10467 | unsigned long arg2 ; | |
10468 | PyObject * obj0 = 0 ; | |
10469 | PyObject * obj1 = 0 ; | |
10470 | char *kwnames[] = { | |
10471 | (char *) "self",(char *) "len", NULL | |
10472 | }; | |
10473 | ||
10474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
10475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10477 | { | |
10478 | arg2 = (unsigned long)(SWIG_As_unsigned_SS_long(obj1)); | |
10479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10480 | } | |
10481 | { | |
10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10483 | (arg1)->SetMaxLength(arg2); | |
10484 | ||
10485 | wxPyEndAllowThreads(__tstate); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
10488 | Py_INCREF(Py_None); resultobj = Py_None; | |
10489 | return resultobj; | |
10490 | fail: | |
10491 | return NULL; | |
10492 | } | |
10493 | ||
10494 | ||
10495 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { | |
10496 | PyObject *resultobj; | |
10497 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10498 | wxString *arg2 = 0 ; | |
10499 | bool temp2 = false ; | |
10500 | PyObject * obj0 = 0 ; | |
10501 | PyObject * obj1 = 0 ; | |
10502 | char *kwnames[] = { | |
10503 | (char *) "self",(char *) "text", NULL | |
10504 | }; | |
10505 | ||
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
10507 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10508 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10509 | { | |
10510 | arg2 = wxString_in_helper(obj1); | |
10511 | if (arg2 == NULL) SWIG_fail; | |
10512 | temp2 = true; | |
10513 | } | |
10514 | { | |
10515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10516 | (arg1)->WriteText((wxString const &)*arg2); | |
10517 | ||
10518 | wxPyEndAllowThreads(__tstate); | |
10519 | if (PyErr_Occurred()) SWIG_fail; | |
10520 | } | |
10521 | Py_INCREF(Py_None); resultobj = Py_None; | |
10522 | { | |
10523 | if (temp2) | |
10524 | delete arg2; | |
10525 | } | |
10526 | return resultobj; | |
10527 | fail: | |
10528 | { | |
10529 | if (temp2) | |
10530 | delete arg2; | |
10531 | } | |
10532 | return NULL; | |
10533 | } | |
10534 | ||
10535 | ||
10536 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { | |
10537 | PyObject *resultobj; | |
10538 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10539 | wxString *arg2 = 0 ; | |
10540 | bool temp2 = false ; | |
10541 | PyObject * obj0 = 0 ; | |
10542 | PyObject * obj1 = 0 ; | |
10543 | char *kwnames[] = { | |
10544 | (char *) "self",(char *) "text", NULL | |
10545 | }; | |
10546 | ||
10547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
10548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10550 | { | |
10551 | arg2 = wxString_in_helper(obj1); | |
10552 | if (arg2 == NULL) SWIG_fail; | |
10553 | temp2 = true; | |
10554 | } | |
10555 | { | |
10556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10557 | (arg1)->AppendText((wxString const &)*arg2); | |
10558 | ||
10559 | wxPyEndAllowThreads(__tstate); | |
10560 | if (PyErr_Occurred()) SWIG_fail; | |
10561 | } | |
10562 | Py_INCREF(Py_None); resultobj = Py_None; | |
10563 | { | |
10564 | if (temp2) | |
10565 | delete arg2; | |
10566 | } | |
10567 | return resultobj; | |
10568 | fail: | |
10569 | { | |
10570 | if (temp2) | |
10571 | delete arg2; | |
10572 | } | |
10573 | return NULL; | |
10574 | } | |
10575 | ||
10576 | ||
10577 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { | |
10578 | PyObject *resultobj; | |
10579 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10580 | wxKeyEvent *arg2 = 0 ; | |
10581 | bool result; | |
10582 | PyObject * obj0 = 0 ; | |
10583 | PyObject * obj1 = 0 ; | |
10584 | char *kwnames[] = { | |
10585 | (char *) "self",(char *) "event", NULL | |
10586 | }; | |
10587 | ||
10588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
10589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10591 | { | |
10592 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
10593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10594 | if (arg2 == NULL) { | |
10595 | SWIG_null_ref("wxKeyEvent"); | |
10596 | } | |
10597 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10598 | } | |
10599 | { | |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10601 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
10602 | ||
10603 | wxPyEndAllowThreads(__tstate); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
10605 | } | |
10606 | { | |
10607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10608 | } | |
10609 | return resultobj; | |
10610 | fail: | |
10611 | return NULL; | |
10612 | } | |
10613 | ||
10614 | ||
10615 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
10616 | PyObject *resultobj; | |
10617 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10618 | long arg2 ; | |
10619 | long arg3 ; | |
10620 | wxTextAttr *arg4 = 0 ; | |
10621 | bool result; | |
10622 | PyObject * obj0 = 0 ; | |
10623 | PyObject * obj1 = 0 ; | |
10624 | PyObject * obj2 = 0 ; | |
10625 | PyObject * obj3 = 0 ; | |
10626 | char *kwnames[] = { | |
10627 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
10628 | }; | |
10629 | ||
10630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10633 | { | |
10634 | arg2 = (long)(SWIG_As_long(obj1)); | |
10635 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10636 | } | |
10637 | { | |
10638 | arg3 = (long)(SWIG_As_long(obj2)); | |
10639 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10640 | } | |
10641 | { | |
10642 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10643 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10644 | if (arg4 == NULL) { | |
10645 | SWIG_null_ref("wxTextAttr"); | |
10646 | } | |
10647 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10648 | } | |
10649 | { | |
10650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10651 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
10652 | ||
10653 | wxPyEndAllowThreads(__tstate); | |
10654 | if (PyErr_Occurred()) SWIG_fail; | |
10655 | } | |
10656 | { | |
10657 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10658 | } | |
10659 | return resultobj; | |
10660 | fail: | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
10665 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
10666 | PyObject *resultobj; | |
10667 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10668 | long arg2 ; | |
10669 | wxTextAttr *arg3 = 0 ; | |
10670 | bool result; | |
10671 | PyObject * obj0 = 0 ; | |
10672 | PyObject * obj1 = 0 ; | |
10673 | PyObject * obj2 = 0 ; | |
10674 | char *kwnames[] = { | |
10675 | (char *) "self",(char *) "position",(char *) "style", NULL | |
10676 | }; | |
10677 | ||
10678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10679 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10680 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10681 | { | |
10682 | arg2 = (long)(SWIG_As_long(obj1)); | |
10683 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10684 | } | |
10685 | { | |
10686 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10687 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10688 | if (arg3 == NULL) { | |
10689 | SWIG_null_ref("wxTextAttr"); | |
10690 | } | |
10691 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10692 | } | |
10693 | { | |
10694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10695 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
10696 | ||
10697 | wxPyEndAllowThreads(__tstate); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | } | |
10700 | { | |
10701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10702 | } | |
10703 | return resultobj; | |
10704 | fail: | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
10709 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
10710 | PyObject *resultobj; | |
10711 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10712 | wxTextAttr *arg2 = 0 ; | |
10713 | bool result; | |
10714 | PyObject * obj0 = 0 ; | |
10715 | PyObject * obj1 = 0 ; | |
10716 | char *kwnames[] = { | |
10717 | (char *) "self",(char *) "style", NULL | |
10718 | }; | |
10719 | ||
10720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
10721 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10722 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10723 | { | |
10724 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10725 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10726 | if (arg2 == NULL) { | |
10727 | SWIG_null_ref("wxTextAttr"); | |
10728 | } | |
10729 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10730 | } | |
10731 | { | |
10732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10733 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
10734 | ||
10735 | wxPyEndAllowThreads(__tstate); | |
10736 | if (PyErr_Occurred()) SWIG_fail; | |
10737 | } | |
10738 | { | |
10739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10740 | } | |
10741 | return resultobj; | |
10742 | fail: | |
10743 | return NULL; | |
10744 | } | |
10745 | ||
10746 | ||
10747 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
10748 | PyObject *resultobj; | |
10749 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10750 | wxTextAttr *result; | |
10751 | PyObject * obj0 = 0 ; | |
10752 | char *kwnames[] = { | |
10753 | (char *) "self", NULL | |
10754 | }; | |
10755 | ||
10756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
10757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10759 | { | |
10760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10761 | { | |
10762 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
10763 | result = (wxTextAttr *) &_result_ref; | |
10764 | } | |
10765 | ||
10766 | wxPyEndAllowThreads(__tstate); | |
10767 | if (PyErr_Occurred()) SWIG_fail; | |
10768 | } | |
10769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
10770 | return resultobj; | |
10771 | fail: | |
10772 | return NULL; | |
10773 | } | |
10774 | ||
10775 | ||
10776 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10777 | PyObject *resultobj; | |
10778 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10779 | long arg2 ; | |
10780 | long arg3 ; | |
10781 | long result; | |
10782 | PyObject * obj0 = 0 ; | |
10783 | PyObject * obj1 = 0 ; | |
10784 | PyObject * obj2 = 0 ; | |
10785 | char *kwnames[] = { | |
10786 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10787 | }; | |
10788 | ||
10789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10792 | { | |
10793 | arg2 = (long)(SWIG_As_long(obj1)); | |
10794 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10795 | } | |
10796 | { | |
10797 | arg3 = (long)(SWIG_As_long(obj2)); | |
10798 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10799 | } | |
10800 | { | |
10801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10802 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
10803 | ||
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | { | |
10808 | resultobj = SWIG_From_long((long)(result)); | |
10809 | } | |
10810 | return resultobj; | |
10811 | fail: | |
10812 | return NULL; | |
10813 | } | |
10814 | ||
10815 | ||
10816 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { | |
10817 | PyObject *resultobj; | |
10818 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10819 | long arg2 ; | |
10820 | long *arg3 = (long *) 0 ; | |
10821 | long *arg4 = (long *) 0 ; | |
10822 | long temp3 ; | |
10823 | int res3 = 0 ; | |
10824 | long temp4 ; | |
10825 | int res4 = 0 ; | |
10826 | PyObject * obj0 = 0 ; | |
10827 | PyObject * obj1 = 0 ; | |
10828 | char *kwnames[] = { | |
10829 | (char *) "self",(char *) "pos", NULL | |
10830 | }; | |
10831 | ||
10832 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
10833 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
10834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; | |
10835 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10836 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10837 | { | |
10838 | arg2 = (long)(SWIG_As_long(obj1)); | |
10839 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10840 | } | |
10841 | { | |
10842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10843 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
10844 | ||
10845 | wxPyEndAllowThreads(__tstate); | |
10846 | if (PyErr_Occurred()) SWIG_fail; | |
10847 | } | |
10848 | Py_INCREF(Py_None); resultobj = Py_None; | |
10849 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10850 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10851 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10852 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
10853 | return resultobj; | |
10854 | fail: | |
10855 | return NULL; | |
10856 | } | |
10857 | ||
10858 | ||
10859 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
10860 | PyObject *resultobj; | |
10861 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10862 | long arg2 ; | |
10863 | PyObject * obj0 = 0 ; | |
10864 | PyObject * obj1 = 0 ; | |
10865 | char *kwnames[] = { | |
10866 | (char *) "self",(char *) "pos", NULL | |
10867 | }; | |
10868 | ||
10869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
10870 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10871 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10872 | { | |
10873 | arg2 = (long)(SWIG_As_long(obj1)); | |
10874 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10875 | } | |
10876 | { | |
10877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10878 | (arg1)->ShowPosition(arg2); | |
10879 | ||
10880 | wxPyEndAllowThreads(__tstate); | |
10881 | if (PyErr_Occurred()) SWIG_fail; | |
10882 | } | |
10883 | Py_INCREF(Py_None); resultobj = Py_None; | |
10884 | return resultobj; | |
10885 | fail: | |
10886 | return NULL; | |
10887 | } | |
10888 | ||
10889 | ||
10890 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
10891 | PyObject *resultobj; | |
10892 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10893 | wxPoint *arg2 = 0 ; | |
10894 | long *arg3 = (long *) 0 ; | |
10895 | long *arg4 = (long *) 0 ; | |
10896 | wxTextCtrlHitTestResult result; | |
10897 | wxPoint temp2 ; | |
10898 | long temp3 ; | |
10899 | int res3 = 0 ; | |
10900 | long temp4 ; | |
10901 | int res4 = 0 ; | |
10902 | PyObject * obj0 = 0 ; | |
10903 | PyObject * obj1 = 0 ; | |
10904 | char *kwnames[] = { | |
10905 | (char *) "self",(char *) "pt", NULL | |
10906 | }; | |
10907 | ||
10908 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
10909 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
10911 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10912 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10913 | { | |
10914 | arg2 = &temp2; | |
10915 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10916 | } | |
10917 | { | |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
10920 | ||
10921 | wxPyEndAllowThreads(__tstate); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | resultobj = SWIG_From_int((result)); | |
10925 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10926 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10927 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
10928 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
10929 | return resultobj; | |
10930 | fail: | |
10931 | return NULL; | |
10932 | } | |
10933 | ||
10934 | ||
10935 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { | |
10936 | PyObject *resultobj; | |
10937 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10938 | wxPoint *arg2 = 0 ; | |
10939 | long *arg3 = (long *) 0 ; | |
10940 | wxTextCtrlHitTestResult result; | |
10941 | wxPoint temp2 ; | |
10942 | long temp3 ; | |
10943 | int res3 = 0 ; | |
10944 | PyObject * obj0 = 0 ; | |
10945 | PyObject * obj1 = 0 ; | |
10946 | char *kwnames[] = { | |
10947 | (char *) "self",(char *) "pt", NULL | |
10948 | }; | |
10949 | ||
10950 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; | |
10952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10954 | { | |
10955 | arg2 = &temp2; | |
10956 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10957 | } | |
10958 | { | |
10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10960 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
10961 | ||
10962 | wxPyEndAllowThreads(__tstate); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
10965 | resultobj = SWIG_From_int((result)); | |
10966 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10967 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
10968 | return resultobj; | |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
10974 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { | |
10975 | PyObject *resultobj; | |
10976 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
10977 | PyObject * obj0 = 0 ; | |
10978 | char *kwnames[] = { | |
10979 | (char *) "self", NULL | |
10980 | }; | |
10981 | ||
10982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
10983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
10984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10985 | { | |
10986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10987 | (arg1)->Copy(); | |
10988 | ||
10989 | wxPyEndAllowThreads(__tstate); | |
10990 | if (PyErr_Occurred()) SWIG_fail; | |
10991 | } | |
10992 | Py_INCREF(Py_None); resultobj = Py_None; | |
10993 | return resultobj; | |
10994 | fail: | |
10995 | return NULL; | |
10996 | } | |
10997 | ||
10998 | ||
10999 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { | |
11000 | PyObject *resultobj; | |
11001 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11002 | PyObject * obj0 = 0 ; | |
11003 | char *kwnames[] = { | |
11004 | (char *) "self", NULL | |
11005 | }; | |
11006 | ||
11007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
11008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11010 | { | |
11011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11012 | (arg1)->Cut(); | |
11013 | ||
11014 | wxPyEndAllowThreads(__tstate); | |
11015 | if (PyErr_Occurred()) SWIG_fail; | |
11016 | } | |
11017 | Py_INCREF(Py_None); resultobj = Py_None; | |
11018 | return resultobj; | |
11019 | fail: | |
11020 | return NULL; | |
11021 | } | |
11022 | ||
11023 | ||
11024 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { | |
11025 | PyObject *resultobj; | |
11026 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11027 | PyObject * obj0 = 0 ; | |
11028 | char *kwnames[] = { | |
11029 | (char *) "self", NULL | |
11030 | }; | |
11031 | ||
11032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
11033 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11034 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11035 | { | |
11036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11037 | (arg1)->Paste(); | |
11038 | ||
11039 | wxPyEndAllowThreads(__tstate); | |
11040 | if (PyErr_Occurred()) SWIG_fail; | |
11041 | } | |
11042 | Py_INCREF(Py_None); resultobj = Py_None; | |
11043 | return resultobj; | |
11044 | fail: | |
11045 | return NULL; | |
11046 | } | |
11047 | ||
11048 | ||
11049 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
11050 | PyObject *resultobj; | |
11051 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11052 | bool result; | |
11053 | PyObject * obj0 = 0 ; | |
11054 | char *kwnames[] = { | |
11055 | (char *) "self", NULL | |
11056 | }; | |
11057 | ||
11058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
11059 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11060 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11061 | { | |
11062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11063 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
11064 | ||
11065 | wxPyEndAllowThreads(__tstate); | |
11066 | if (PyErr_Occurred()) SWIG_fail; | |
11067 | } | |
11068 | { | |
11069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11070 | } | |
11071 | return resultobj; | |
11072 | fail: | |
11073 | return NULL; | |
11074 | } | |
11075 | ||
11076 | ||
11077 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
11078 | PyObject *resultobj; | |
11079 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11080 | bool result; | |
11081 | PyObject * obj0 = 0 ; | |
11082 | char *kwnames[] = { | |
11083 | (char *) "self", NULL | |
11084 | }; | |
11085 | ||
11086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
11087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11089 | { | |
11090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11091 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
11092 | ||
11093 | wxPyEndAllowThreads(__tstate); | |
11094 | if (PyErr_Occurred()) SWIG_fail; | |
11095 | } | |
11096 | { | |
11097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11098 | } | |
11099 | return resultobj; | |
11100 | fail: | |
11101 | return NULL; | |
11102 | } | |
11103 | ||
11104 | ||
11105 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
11106 | PyObject *resultobj; | |
11107 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11108 | bool result; | |
11109 | PyObject * obj0 = 0 ; | |
11110 | char *kwnames[] = { | |
11111 | (char *) "self", NULL | |
11112 | }; | |
11113 | ||
11114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
11115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11117 | { | |
11118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11119 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
11120 | ||
11121 | wxPyEndAllowThreads(__tstate); | |
11122 | if (PyErr_Occurred()) SWIG_fail; | |
11123 | } | |
11124 | { | |
11125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11126 | } | |
11127 | return resultobj; | |
11128 | fail: | |
11129 | return NULL; | |
11130 | } | |
11131 | ||
11132 | ||
11133 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
11134 | PyObject *resultobj; | |
11135 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11136 | PyObject * obj0 = 0 ; | |
11137 | char *kwnames[] = { | |
11138 | (char *) "self", NULL | |
11139 | }; | |
11140 | ||
11141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
11142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11144 | { | |
11145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11146 | (arg1)->Undo(); | |
11147 | ||
11148 | wxPyEndAllowThreads(__tstate); | |
11149 | if (PyErr_Occurred()) SWIG_fail; | |
11150 | } | |
11151 | Py_INCREF(Py_None); resultobj = Py_None; | |
11152 | return resultobj; | |
11153 | fail: | |
11154 | return NULL; | |
11155 | } | |
11156 | ||
11157 | ||
11158 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
11159 | PyObject *resultobj; | |
11160 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11161 | PyObject * obj0 = 0 ; | |
11162 | char *kwnames[] = { | |
11163 | (char *) "self", NULL | |
11164 | }; | |
11165 | ||
11166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
11167 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11168 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11169 | { | |
11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11171 | (arg1)->Redo(); | |
11172 | ||
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | Py_INCREF(Py_None); resultobj = Py_None; | |
11177 | return resultobj; | |
11178 | fail: | |
11179 | return NULL; | |
11180 | } | |
11181 | ||
11182 | ||
11183 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
11184 | PyObject *resultobj; | |
11185 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11186 | bool result; | |
11187 | PyObject * obj0 = 0 ; | |
11188 | char *kwnames[] = { | |
11189 | (char *) "self", NULL | |
11190 | }; | |
11191 | ||
11192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
11193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11195 | { | |
11196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11197 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
11198 | ||
11199 | wxPyEndAllowThreads(__tstate); | |
11200 | if (PyErr_Occurred()) SWIG_fail; | |
11201 | } | |
11202 | { | |
11203 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11204 | } | |
11205 | return resultobj; | |
11206 | fail: | |
11207 | return NULL; | |
11208 | } | |
11209 | ||
11210 | ||
11211 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
11212 | PyObject *resultobj; | |
11213 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11214 | bool result; | |
11215 | PyObject * obj0 = 0 ; | |
11216 | char *kwnames[] = { | |
11217 | (char *) "self", NULL | |
11218 | }; | |
11219 | ||
11220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
11221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11223 | { | |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11225 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
11226 | ||
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) SWIG_fail; | |
11229 | } | |
11230 | { | |
11231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11232 | } | |
11233 | return resultobj; | |
11234 | fail: | |
11235 | return NULL; | |
11236 | } | |
11237 | ||
11238 | ||
11239 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11240 | PyObject *resultobj; | |
11241 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11242 | long arg2 ; | |
11243 | PyObject * obj0 = 0 ; | |
11244 | PyObject * obj1 = 0 ; | |
11245 | char *kwnames[] = { | |
11246 | (char *) "self",(char *) "pos", NULL | |
11247 | }; | |
11248 | ||
11249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
11250 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11251 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11252 | { | |
11253 | arg2 = (long)(SWIG_As_long(obj1)); | |
11254 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11255 | } | |
11256 | { | |
11257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11258 | (arg1)->SetInsertionPoint(arg2); | |
11259 | ||
11260 | wxPyEndAllowThreads(__tstate); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | } | |
11263 | Py_INCREF(Py_None); resultobj = Py_None; | |
11264 | return resultobj; | |
11265 | fail: | |
11266 | return NULL; | |
11267 | } | |
11268 | ||
11269 | ||
11270 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { | |
11271 | PyObject *resultobj; | |
11272 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11273 | PyObject * obj0 = 0 ; | |
11274 | char *kwnames[] = { | |
11275 | (char *) "self", NULL | |
11276 | }; | |
11277 | ||
11278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
11279 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11280 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11281 | { | |
11282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11283 | (arg1)->SetInsertionPointEnd(); | |
11284 | ||
11285 | wxPyEndAllowThreads(__tstate); | |
11286 | if (PyErr_Occurred()) SWIG_fail; | |
11287 | } | |
11288 | Py_INCREF(Py_None); resultobj = Py_None; | |
11289 | return resultobj; | |
11290 | fail: | |
11291 | return NULL; | |
11292 | } | |
11293 | ||
11294 | ||
11295 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11296 | PyObject *resultobj; | |
11297 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11298 | long result; | |
11299 | PyObject * obj0 = 0 ; | |
11300 | char *kwnames[] = { | |
11301 | (char *) "self", NULL | |
11302 | }; | |
11303 | ||
11304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
11305 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11306 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11307 | { | |
11308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11309 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
11310 | ||
11311 | wxPyEndAllowThreads(__tstate); | |
11312 | if (PyErr_Occurred()) SWIG_fail; | |
11313 | } | |
11314 | { | |
11315 | resultobj = SWIG_From_long((long)(result)); | |
11316 | } | |
11317 | return resultobj; | |
11318 | fail: | |
11319 | return NULL; | |
11320 | } | |
11321 | ||
11322 | ||
11323 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
11324 | PyObject *resultobj; | |
11325 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11326 | long result; | |
11327 | PyObject * obj0 = 0 ; | |
11328 | char *kwnames[] = { | |
11329 | (char *) "self", NULL | |
11330 | }; | |
11331 | ||
11332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
11333 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11335 | { | |
11336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11337 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
11338 | ||
11339 | wxPyEndAllowThreads(__tstate); | |
11340 | if (PyErr_Occurred()) SWIG_fail; | |
11341 | } | |
11342 | { | |
11343 | resultobj = SWIG_From_long((long)(result)); | |
11344 | } | |
11345 | return resultobj; | |
11346 | fail: | |
11347 | return NULL; | |
11348 | } | |
11349 | ||
11350 | ||
11351 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
11352 | PyObject *resultobj; | |
11353 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11354 | long arg2 ; | |
11355 | long arg3 ; | |
11356 | PyObject * obj0 = 0 ; | |
11357 | PyObject * obj1 = 0 ; | |
11358 | PyObject * obj2 = 0 ; | |
11359 | char *kwnames[] = { | |
11360 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11361 | }; | |
11362 | ||
11363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11366 | { | |
11367 | arg2 = (long)(SWIG_As_long(obj1)); | |
11368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11369 | } | |
11370 | { | |
11371 | arg3 = (long)(SWIG_As_long(obj2)); | |
11372 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11373 | } | |
11374 | { | |
11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11376 | (arg1)->SetSelection(arg2,arg3); | |
11377 | ||
11378 | wxPyEndAllowThreads(__tstate); | |
11379 | if (PyErr_Occurred()) SWIG_fail; | |
11380 | } | |
11381 | Py_INCREF(Py_None); resultobj = Py_None; | |
11382 | return resultobj; | |
11383 | fail: | |
11384 | return NULL; | |
11385 | } | |
11386 | ||
11387 | ||
11388 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
11389 | PyObject *resultobj; | |
11390 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11391 | PyObject * obj0 = 0 ; | |
11392 | char *kwnames[] = { | |
11393 | (char *) "self", NULL | |
11394 | }; | |
11395 | ||
11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
11397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11399 | { | |
11400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11401 | (arg1)->SelectAll(); | |
11402 | ||
11403 | wxPyEndAllowThreads(__tstate); | |
11404 | if (PyErr_Occurred()) SWIG_fail; | |
11405 | } | |
11406 | Py_INCREF(Py_None); resultobj = Py_None; | |
11407 | return resultobj; | |
11408 | fail: | |
11409 | return NULL; | |
11410 | } | |
11411 | ||
11412 | ||
11413 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { | |
11414 | PyObject *resultobj; | |
11415 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11416 | bool arg2 ; | |
11417 | PyObject * obj0 = 0 ; | |
11418 | PyObject * obj1 = 0 ; | |
11419 | char *kwnames[] = { | |
11420 | (char *) "self",(char *) "editable", NULL | |
11421 | }; | |
11422 | ||
11423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
11424 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11425 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11426 | { | |
11427 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
11428 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11429 | } | |
11430 | { | |
11431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11432 | (arg1)->SetEditable(arg2); | |
11433 | ||
11434 | wxPyEndAllowThreads(__tstate); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
11437 | Py_INCREF(Py_None); resultobj = Py_None; | |
11438 | return resultobj; | |
11439 | fail: | |
11440 | return NULL; | |
11441 | } | |
11442 | ||
11443 | ||
11444 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { | |
11445 | PyObject *resultobj; | |
11446 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11447 | wxString *arg2 = 0 ; | |
11448 | bool temp2 = false ; | |
11449 | PyObject * obj0 = 0 ; | |
11450 | PyObject * obj1 = 0 ; | |
11451 | char *kwnames[] = { | |
11452 | (char *) "self",(char *) "text", NULL | |
11453 | }; | |
11454 | ||
11455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
11456 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11457 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11458 | { | |
11459 | arg2 = wxString_in_helper(obj1); | |
11460 | if (arg2 == NULL) SWIG_fail; | |
11461 | temp2 = true; | |
11462 | } | |
11463 | { | |
11464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11465 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
11466 | ||
11467 | wxPyEndAllowThreads(__tstate); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
11470 | Py_INCREF(Py_None); resultobj = Py_None; | |
11471 | { | |
11472 | if (temp2) | |
11473 | delete arg2; | |
11474 | } | |
11475 | return resultobj; | |
11476 | fail: | |
11477 | { | |
11478 | if (temp2) | |
11479 | delete arg2; | |
11480 | } | |
11481 | return NULL; | |
11482 | } | |
11483 | ||
11484 | ||
11485 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { | |
11486 | PyObject *resultobj; | |
11487 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
11488 | long arg2 ; | |
11489 | long arg3 ; | |
11490 | wxString result; | |
11491 | PyObject * obj0 = 0 ; | |
11492 | PyObject * obj1 = 0 ; | |
11493 | PyObject * obj2 = 0 ; | |
11494 | char *kwnames[] = { | |
11495 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11496 | }; | |
11497 | ||
11498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); | |
11500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11501 | { | |
11502 | arg2 = (long)(SWIG_As_long(obj1)); | |
11503 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11504 | } | |
11505 | { | |
11506 | arg3 = (long)(SWIG_As_long(obj2)); | |
11507 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11508 | } | |
11509 | { | |
11510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11511 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
11512 | ||
11513 | wxPyEndAllowThreads(__tstate); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | { | |
11517 | #if wxUSE_UNICODE | |
11518 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11519 | #else | |
11520 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11521 | #endif | |
11522 | } | |
11523 | return resultobj; | |
11524 | fail: | |
11525 | return NULL; | |
11526 | } | |
11527 | ||
11528 | ||
11529 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
11530 | PyObject *resultobj; | |
11531 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
11532 | wxVisualAttributes result; | |
11533 | PyObject * obj0 = 0 ; | |
11534 | char *kwnames[] = { | |
11535 | (char *) "variant", NULL | |
11536 | }; | |
11537 | ||
11538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11539 | if (obj0) { | |
11540 | { | |
11541 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
11542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11543 | } | |
11544 | } | |
11545 | { | |
11546 | if (!wxPyCheckForApp()) SWIG_fail; | |
11547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11548 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11549 | ||
11550 | wxPyEndAllowThreads(__tstate); | |
11551 | if (PyErr_Occurred()) SWIG_fail; | |
11552 | } | |
11553 | { | |
11554 | wxVisualAttributes * resultptr; | |
11555 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
11556 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11557 | } | |
11558 | return resultobj; | |
11559 | fail: | |
11560 | return NULL; | |
11561 | } | |
11562 | ||
11563 | ||
11564 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { | |
11565 | PyObject *obj; | |
11566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11567 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
11568 | Py_INCREF(obj); | |
11569 | return Py_BuildValue((char *)""); | |
11570 | } | |
11571 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
11572 | PyObject *resultobj; | |
11573 | int arg1 ; | |
11574 | wxMouseEvent *arg2 = 0 ; | |
11575 | long arg3 ; | |
11576 | long arg4 ; | |
11577 | wxTextUrlEvent *result; | |
11578 | PyObject * obj0 = 0 ; | |
11579 | PyObject * obj1 = 0 ; | |
11580 | PyObject * obj2 = 0 ; | |
11581 | PyObject * obj3 = 0 ; | |
11582 | char *kwnames[] = { | |
11583 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
11584 | }; | |
11585 | ||
11586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11587 | { | |
11588 | arg1 = (int)(SWIG_As_int(obj0)); | |
11589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11590 | } | |
11591 | { | |
11592 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); | |
11593 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11594 | if (arg2 == NULL) { | |
11595 | SWIG_null_ref("wxMouseEvent"); | |
11596 | } | |
11597 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11598 | } | |
11599 | { | |
11600 | arg3 = (long)(SWIG_As_long(obj2)); | |
11601 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11602 | } | |
11603 | { | |
11604 | arg4 = (long)(SWIG_As_long(obj3)); | |
11605 | if (SWIG_arg_fail(4)) SWIG_fail; | |
11606 | } | |
11607 | { | |
11608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11609 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
11610 | ||
11611 | wxPyEndAllowThreads(__tstate); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
11614 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
11615 | return resultobj; | |
11616 | fail: | |
11617 | return NULL; | |
11618 | } | |
11619 | ||
11620 | ||
11621 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
11622 | PyObject *resultobj; | |
11623 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11624 | wxMouseEvent *result; | |
11625 | PyObject * obj0 = 0 ; | |
11626 | char *kwnames[] = { | |
11627 | (char *) "self", NULL | |
11628 | }; | |
11629 | ||
11630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
11631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); | |
11632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11633 | { | |
11634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11635 | { | |
11636 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
11637 | result = (wxMouseEvent *) &_result_ref; | |
11638 | } | |
11639 | ||
11640 | wxPyEndAllowThreads(__tstate); | |
11641 | if (PyErr_Occurred()) SWIG_fail; | |
11642 | } | |
11643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
11644 | return resultobj; | |
11645 | fail: | |
11646 | return NULL; | |
11647 | } | |
11648 | ||
11649 | ||
11650 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { | |
11651 | PyObject *resultobj; | |
11652 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11653 | long result; | |
11654 | PyObject * obj0 = 0 ; | |
11655 | char *kwnames[] = { | |
11656 | (char *) "self", NULL | |
11657 | }; | |
11658 | ||
11659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
11660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); | |
11661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11662 | { | |
11663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11664 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
11665 | ||
11666 | wxPyEndAllowThreads(__tstate); | |
11667 | if (PyErr_Occurred()) SWIG_fail; | |
11668 | } | |
11669 | { | |
11670 | resultobj = SWIG_From_long((long)(result)); | |
11671 | } | |
11672 | return resultobj; | |
11673 | fail: | |
11674 | return NULL; | |
11675 | } | |
11676 | ||
11677 | ||
11678 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { | |
11679 | PyObject *resultobj; | |
11680 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
11681 | long result; | |
11682 | PyObject * obj0 = 0 ; | |
11683 | char *kwnames[] = { | |
11684 | (char *) "self", NULL | |
11685 | }; | |
11686 | ||
11687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
11688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); | |
11689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11690 | { | |
11691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11692 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
11693 | ||
11694 | wxPyEndAllowThreads(__tstate); | |
11695 | if (PyErr_Occurred()) SWIG_fail; | |
11696 | } | |
11697 | { | |
11698 | resultobj = SWIG_From_long((long)(result)); | |
11699 | } | |
11700 | return resultobj; | |
11701 | fail: | |
11702 | return NULL; | |
11703 | } | |
11704 | ||
11705 | ||
11706 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { | |
11707 | PyObject *obj; | |
11708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11709 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
11710 | Py_INCREF(obj); | |
11711 | return Py_BuildValue((char *)""); | |
11712 | } | |
11713 | static int _wrap_ScrollBarNameStr_set(PyObject *) { | |
11714 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
11715 | return 1; | |
11716 | } | |
11717 | ||
11718 | ||
11719 | static PyObject *_wrap_ScrollBarNameStr_get(void) { | |
11720 | PyObject *pyobj; | |
11721 | ||
11722 | { | |
11723 | #if wxUSE_UNICODE | |
11724 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11725 | #else | |
11726 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
11727 | #endif | |
11728 | } | |
11729 | return pyobj; | |
11730 | } | |
11731 | ||
11732 | ||
11733 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
11734 | PyObject *resultobj; | |
11735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11736 | int arg2 = (int) -1 ; | |
11737 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
11738 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
11739 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
11740 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
11741 | long arg5 = (long) wxSB_HORIZONTAL ; | |
11742 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
11743 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
11744 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
11745 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11746 | wxScrollBar *result; | |
11747 | wxPoint temp3 ; | |
11748 | wxSize temp4 ; | |
11749 | bool temp7 = false ; | |
11750 | PyObject * obj0 = 0 ; | |
11751 | PyObject * obj1 = 0 ; | |
11752 | PyObject * obj2 = 0 ; | |
11753 | PyObject * obj3 = 0 ; | |
11754 | PyObject * obj4 = 0 ; | |
11755 | PyObject * obj5 = 0 ; | |
11756 | PyObject * obj6 = 0 ; | |
11757 | char *kwnames[] = { | |
11758 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11759 | }; | |
11760 | ||
11761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
11763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11764 | if (obj1) { | |
11765 | { | |
11766 | arg2 = (int)(SWIG_As_int(obj1)); | |
11767 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11768 | } | |
11769 | } | |
11770 | if (obj2) { | |
11771 | { | |
11772 | arg3 = &temp3; | |
11773 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11774 | } | |
11775 | } | |
11776 | if (obj3) { | |
11777 | { | |
11778 | arg4 = &temp4; | |
11779 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
11780 | } | |
11781 | } | |
11782 | if (obj4) { | |
11783 | { | |
11784 | arg5 = (long)(SWIG_As_long(obj4)); | |
11785 | if (SWIG_arg_fail(5)) SWIG_fail; | |
11786 | } | |
11787 | } | |
11788 | if (obj5) { | |
11789 | { | |
11790 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
11791 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11792 | if (arg6 == NULL) { | |
11793 | SWIG_null_ref("wxValidator"); | |
11794 | } | |
11795 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11796 | } | |
11797 | } | |
11798 | if (obj6) { | |
11799 | { | |
11800 | arg7 = wxString_in_helper(obj6); | |
11801 | if (arg7 == NULL) SWIG_fail; | |
11802 | temp7 = true; | |
11803 | } | |
11804 | } | |
11805 | { | |
11806 | if (!wxPyCheckForApp()) SWIG_fail; | |
11807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11808 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
11809 | ||
11810 | wxPyEndAllowThreads(__tstate); | |
11811 | if (PyErr_Occurred()) SWIG_fail; | |
11812 | } | |
11813 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
11814 | { | |
11815 | if (temp7) | |
11816 | delete arg7; | |
11817 | } | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | { | |
11821 | if (temp7) | |
11822 | delete arg7; | |
11823 | } | |
11824 | return NULL; | |
11825 | } | |
11826 | ||
11827 | ||
11828 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
11829 | PyObject *resultobj; | |
11830 | wxScrollBar *result; | |
11831 | char *kwnames[] = { | |
11832 | NULL | |
11833 | }; | |
11834 | ||
11835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
11836 | { | |
11837 | if (!wxPyCheckForApp()) SWIG_fail; | |
11838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11839 | result = (wxScrollBar *)new wxScrollBar(); | |
11840 | ||
11841 | wxPyEndAllowThreads(__tstate); | |
11842 | if (PyErr_Occurred()) SWIG_fail; | |
11843 | } | |
11844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
11845 | return resultobj; | |
11846 | fail: | |
11847 | return NULL; | |
11848 | } | |
11849 | ||
11850 | ||
11851 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
11852 | PyObject *resultobj; | |
11853 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
11854 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11855 | int arg3 = (int) -1 ; | |
11856 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11857 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11858 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11859 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11860 | long arg6 = (long) wxSB_HORIZONTAL ; | |
11861 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11862 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11863 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
11864 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11865 | bool result; | |
11866 | wxPoint temp4 ; | |
11867 | wxSize temp5 ; | |
11868 | bool temp8 = false ; | |
11869 | PyObject * obj0 = 0 ; | |
11870 | PyObject * obj1 = 0 ; | |
11871 | PyObject * obj2 = 0 ; | |
11872 | PyObject * obj3 = 0 ; | |
11873 | PyObject * obj4 = 0 ; | |
11874 | PyObject * obj5 = 0 ; | |
11875 | PyObject * obj6 = 0 ; | |
11876 | PyObject * obj7 = 0 ; | |
11877 | char *kwnames[] = { | |
11878 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11879 | }; | |
11880 | ||
11881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
11882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); | |
11883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11884 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
11885 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11886 | if (obj2) { | |
11887 | { | |
11888 | arg3 = (int)(SWIG_As_int(obj2)); | |
11889 | if (SWIG_arg_fail(3)) SWIG_fail; | |
11890 | } | |
11891 | } | |
11892 | if (obj3) { | |
11893 | { | |
11894 | arg4 = &temp4; | |
11895 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11896 | } | |
11897 | } | |
11898 | if (obj4) { | |
11899 | { | |
11900 | arg5 = &temp5; | |
11901 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11902 | } | |
11903 | } | |
11904 | if (obj5) { | |
11905 | { | |
11906 | arg6 = (long)(SWIG_As_long(obj5)); | |
11907 | if (SWIG_arg_fail(6)) SWIG_fail; | |
11908 | } | |
11909 | } | |
11910 | if (obj6) { | |
11911 | { | |
11912 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
11913 | if (SWIG_arg_fail(7)) SWIG_fail; | |
11914 | if (arg7 == NULL) { | |
11915 | SWIG_null_ref("wxValidator"); | |
11916 | } | |
11917 | if (SWIG_arg_fail(7)) SWIG_fail; | |
11918 | } | |
11919 | } | |
11920 | if (obj7) { | |
11921 | { | |
11922 | arg8 = wxString_in_helper(obj7); | |
11923 | if (arg8 == NULL) SWIG_fail; | |
11924 | temp8 = true; | |
11925 | } | |
11926 | } | |
11927 | { | |
11928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11929 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11930 | ||
11931 | wxPyEndAllowThreads(__tstate); | |
11932 | if (PyErr_Occurred()) SWIG_fail; | |
11933 | } | |
11934 | { | |
11935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11936 | } | |
11937 | { | |
11938 | if (temp8) | |
11939 | delete arg8; | |
11940 | } | |
11941 | return resultobj; | |
11942 | fail: | |
11943 | { | |
11944 | if (temp8) | |
11945 | delete arg8; | |
11946 | } | |
11947 | return NULL; | |
11948 | } | |
11949 | ||
11950 | ||
11951 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
11952 | PyObject *resultobj; | |
11953 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
11954 | int result; | |
11955 | PyObject * obj0 = 0 ; | |
11956 | char *kwnames[] = { | |
11957 | (char *) "self", NULL | |
11958 | }; | |
11959 | ||
11960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
11961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); | |
11962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11963 | { | |
11964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11965 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
11966 | ||
11967 | wxPyEndAllowThreads(__tstate); | |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
11969 | } | |
11970 | { | |
11971 | resultobj = SWIG_From_int((int)(result)); | |
11972 | } | |
11973 | return resultobj; | |
11974 | fail: | |
11975 | return NULL; | |
11976 | } | |
11977 | ||
11978 | ||
11979 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
11980 | PyObject *resultobj; | |
11981 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
11982 | int result; | |
11983 | PyObject * obj0 = 0 ; | |
11984 | char *kwnames[] = { | |
11985 | (char *) "self", NULL | |
11986 | }; | |
11987 | ||
11988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
11989 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); | |
11990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11991 | { | |
11992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11993 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
11994 | ||
11995 | wxPyEndAllowThreads(__tstate); | |
11996 | if (PyErr_Occurred()) SWIG_fail; | |
11997 | } | |
11998 | { | |
11999 | resultobj = SWIG_From_int((int)(result)); | |
12000 | } | |
12001 | return resultobj; | |
12002 | fail: | |
12003 | return NULL; | |
12004 | } | |
12005 | ||
12006 | ||
12007 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
12008 | PyObject *resultobj; | |
12009 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12010 | int result; | |
12011 | PyObject * obj0 = 0 ; | |
12012 | char *kwnames[] = { | |
12013 | (char *) "self", NULL | |
12014 | }; | |
12015 | ||
12016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
12017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); | |
12018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12019 | { | |
12020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12021 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
12022 | ||
12023 | wxPyEndAllowThreads(__tstate); | |
12024 | if (PyErr_Occurred()) SWIG_fail; | |
12025 | } | |
12026 | { | |
12027 | resultobj = SWIG_From_int((int)(result)); | |
12028 | } | |
12029 | return resultobj; | |
12030 | fail: | |
12031 | return NULL; | |
12032 | } | |
12033 | ||
12034 | ||
12035 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
12036 | PyObject *resultobj; | |
12037 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12038 | int result; | |
12039 | PyObject * obj0 = 0 ; | |
12040 | char *kwnames[] = { | |
12041 | (char *) "self", NULL | |
12042 | }; | |
12043 | ||
12044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
12045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); | |
12046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12047 | { | |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | { | |
12055 | resultobj = SWIG_From_int((int)(result)); | |
12056 | } | |
12057 | return resultobj; | |
12058 | fail: | |
12059 | return NULL; | |
12060 | } | |
12061 | ||
12062 | ||
12063 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
12064 | PyObject *resultobj; | |
12065 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12066 | bool result; | |
12067 | PyObject * obj0 = 0 ; | |
12068 | char *kwnames[] = { | |
12069 | (char *) "self", NULL | |
12070 | }; | |
12071 | ||
12072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
12073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); | |
12074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12075 | { | |
12076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12077 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
12078 | ||
12079 | wxPyEndAllowThreads(__tstate); | |
12080 | if (PyErr_Occurred()) SWIG_fail; | |
12081 | } | |
12082 | { | |
12083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12084 | } | |
12085 | return resultobj; | |
12086 | fail: | |
12087 | return NULL; | |
12088 | } | |
12089 | ||
12090 | ||
12091 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
12092 | PyObject *resultobj; | |
12093 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12094 | int arg2 ; | |
12095 | PyObject * obj0 = 0 ; | |
12096 | PyObject * obj1 = 0 ; | |
12097 | char *kwnames[] = { | |
12098 | (char *) "self",(char *) "viewStart", NULL | |
12099 | }; | |
12100 | ||
12101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
12102 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); | |
12103 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12104 | { | |
12105 | arg2 = (int)(SWIG_As_int(obj1)); | |
12106 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12107 | } | |
12108 | { | |
12109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12110 | (arg1)->SetThumbPosition(arg2); | |
12111 | ||
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | Py_INCREF(Py_None); resultobj = Py_None; | |
12116 | return resultobj; | |
12117 | fail: | |
12118 | return NULL; | |
12119 | } | |
12120 | ||
12121 | ||
12122 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { | |
12123 | PyObject *resultobj; | |
12124 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
12125 | int arg2 ; | |
12126 | int arg3 ; | |
12127 | int arg4 ; | |
12128 | int arg5 ; | |
12129 | bool arg6 = (bool) true ; | |
12130 | PyObject * obj0 = 0 ; | |
12131 | PyObject * obj1 = 0 ; | |
12132 | PyObject * obj2 = 0 ; | |
12133 | PyObject * obj3 = 0 ; | |
12134 | PyObject * obj4 = 0 ; | |
12135 | PyObject * obj5 = 0 ; | |
12136 | char *kwnames[] = { | |
12137 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
12138 | }; | |
12139 | ||
12140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12141 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); | |
12142 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12143 | { | |
12144 | arg2 = (int)(SWIG_As_int(obj1)); | |
12145 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12146 | } | |
12147 | { | |
12148 | arg3 = (int)(SWIG_As_int(obj2)); | |
12149 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12150 | } | |
12151 | { | |
12152 | arg4 = (int)(SWIG_As_int(obj3)); | |
12153 | if (SWIG_arg_fail(4)) SWIG_fail; | |
12154 | } | |
12155 | { | |
12156 | arg5 = (int)(SWIG_As_int(obj4)); | |
12157 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12158 | } | |
12159 | if (obj5) { | |
12160 | { | |
12161 | arg6 = (bool)(SWIG_As_bool(obj5)); | |
12162 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12163 | } | |
12164 | } | |
12165 | { | |
12166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12167 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
12168 | ||
12169 | wxPyEndAllowThreads(__tstate); | |
12170 | if (PyErr_Occurred()) SWIG_fail; | |
12171 | } | |
12172 | Py_INCREF(Py_None); resultobj = Py_None; | |
12173 | return resultobj; | |
12174 | fail: | |
12175 | return NULL; | |
12176 | } | |
12177 | ||
12178 | ||
12179 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
12180 | PyObject *resultobj; | |
12181 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
12182 | wxVisualAttributes result; | |
12183 | PyObject * obj0 = 0 ; | |
12184 | char *kwnames[] = { | |
12185 | (char *) "variant", NULL | |
12186 | }; | |
12187 | ||
12188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12189 | if (obj0) { | |
12190 | { | |
12191 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12193 | } | |
12194 | } | |
12195 | { | |
12196 | if (!wxPyCheckForApp()) SWIG_fail; | |
12197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12198 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12199 | ||
12200 | wxPyEndAllowThreads(__tstate); | |
12201 | if (PyErr_Occurred()) SWIG_fail; | |
12202 | } | |
12203 | { | |
12204 | wxVisualAttributes * resultptr; | |
12205 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
12206 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12207 | } | |
12208 | return resultobj; | |
12209 | fail: | |
12210 | return NULL; | |
12211 | } | |
12212 | ||
12213 | ||
12214 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { | |
12215 | PyObject *obj; | |
12216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12217 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
12218 | Py_INCREF(obj); | |
12219 | return Py_BuildValue((char *)""); | |
12220 | } | |
12221 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { | |
12222 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
12223 | return 1; | |
12224 | } | |
12225 | ||
12226 | ||
12227 | static PyObject *_wrap_SPIN_BUTTON_NAME_get(void) { | |
12228 | PyObject *pyobj; | |
12229 | ||
12230 | { | |
12231 | #if wxUSE_UNICODE | |
12232 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12233 | #else | |
12234 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12235 | #endif | |
12236 | } | |
12237 | return pyobj; | |
12238 | } | |
12239 | ||
12240 | ||
12241 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { | |
12242 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
12243 | return 1; | |
12244 | } | |
12245 | ||
12246 | ||
12247 | static PyObject *_wrap_SpinCtrlNameStr_get(void) { | |
12248 | PyObject *pyobj; | |
12249 | ||
12250 | { | |
12251 | #if wxUSE_UNICODE | |
12252 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12253 | #else | |
12254 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12255 | #endif | |
12256 | } | |
12257 | return pyobj; | |
12258 | } | |
12259 | ||
12260 | ||
12261 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
12262 | PyObject *resultobj; | |
12263 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12264 | int arg2 = (int) -1 ; | |
12265 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
12266 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12267 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12268 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12269 | long arg5 = (long) wxSP_HORIZONTAL ; | |
12270 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
12271 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12272 | wxSpinButton *result; | |
12273 | wxPoint temp3 ; | |
12274 | wxSize temp4 ; | |
12275 | bool temp6 = false ; | |
12276 | PyObject * obj0 = 0 ; | |
12277 | PyObject * obj1 = 0 ; | |
12278 | PyObject * obj2 = 0 ; | |
12279 | PyObject * obj3 = 0 ; | |
12280 | PyObject * obj4 = 0 ; | |
12281 | PyObject * obj5 = 0 ; | |
12282 | char *kwnames[] = { | |
12283 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12284 | }; | |
12285 | ||
12286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12289 | if (obj1) { | |
12290 | { | |
12291 | arg2 = (int)(SWIG_As_int(obj1)); | |
12292 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12293 | } | |
12294 | } | |
12295 | if (obj2) { | |
12296 | { | |
12297 | arg3 = &temp3; | |
12298 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12299 | } | |
12300 | } | |
12301 | if (obj3) { | |
12302 | { | |
12303 | arg4 = &temp4; | |
12304 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12305 | } | |
12306 | } | |
12307 | if (obj4) { | |
12308 | { | |
12309 | arg5 = (long)(SWIG_As_long(obj4)); | |
12310 | if (SWIG_arg_fail(5)) SWIG_fail; | |
12311 | } | |
12312 | } | |
12313 | if (obj5) { | |
12314 | { | |
12315 | arg6 = wxString_in_helper(obj5); | |
12316 | if (arg6 == NULL) SWIG_fail; | |
12317 | temp6 = true; | |
12318 | } | |
12319 | } | |
12320 | { | |
12321 | if (!wxPyCheckForApp()) SWIG_fail; | |
12322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12323 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12324 | ||
12325 | wxPyEndAllowThreads(__tstate); | |
12326 | if (PyErr_Occurred()) SWIG_fail; | |
12327 | } | |
12328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
12329 | { | |
12330 | if (temp6) | |
12331 | delete arg6; | |
12332 | } | |
12333 | return resultobj; | |
12334 | fail: | |
12335 | { | |
12336 | if (temp6) | |
12337 | delete arg6; | |
12338 | } | |
12339 | return NULL; | |
12340 | } | |
12341 | ||
12342 | ||
12343 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
12344 | PyObject *resultobj; | |
12345 | wxSpinButton *result; | |
12346 | char *kwnames[] = { | |
12347 | NULL | |
12348 | }; | |
12349 | ||
12350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
12351 | { | |
12352 | if (!wxPyCheckForApp()) SWIG_fail; | |
12353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12354 | result = (wxSpinButton *)new wxSpinButton(); | |
12355 | ||
12356 | wxPyEndAllowThreads(__tstate); | |
12357 | if (PyErr_Occurred()) SWIG_fail; | |
12358 | } | |
12359 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
12360 | return resultobj; | |
12361 | fail: | |
12362 | return NULL; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
12367 | PyObject *resultobj; | |
12368 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12369 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12370 | int arg3 = (int) -1 ; | |
12371 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12372 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12373 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12374 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12375 | long arg6 = (long) wxSP_HORIZONTAL ; | |
12376 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
12377 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12378 | bool result; | |
12379 | wxPoint temp4 ; | |
12380 | wxSize temp5 ; | |
12381 | bool temp7 = false ; | |
12382 | PyObject * obj0 = 0 ; | |
12383 | PyObject * obj1 = 0 ; | |
12384 | PyObject * obj2 = 0 ; | |
12385 | PyObject * obj3 = 0 ; | |
12386 | PyObject * obj4 = 0 ; | |
12387 | PyObject * obj5 = 0 ; | |
12388 | PyObject * obj6 = 0 ; | |
12389 | char *kwnames[] = { | |
12390 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12391 | }; | |
12392 | ||
12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
12394 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12395 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12396 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12397 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12398 | if (obj2) { | |
12399 | { | |
12400 | arg3 = (int)(SWIG_As_int(obj2)); | |
12401 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12402 | } | |
12403 | } | |
12404 | if (obj3) { | |
12405 | { | |
12406 | arg4 = &temp4; | |
12407 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12408 | } | |
12409 | } | |
12410 | if (obj4) { | |
12411 | { | |
12412 | arg5 = &temp5; | |
12413 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12414 | } | |
12415 | } | |
12416 | if (obj5) { | |
12417 | { | |
12418 | arg6 = (long)(SWIG_As_long(obj5)); | |
12419 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12420 | } | |
12421 | } | |
12422 | if (obj6) { | |
12423 | { | |
12424 | arg7 = wxString_in_helper(obj6); | |
12425 | if (arg7 == NULL) SWIG_fail; | |
12426 | temp7 = true; | |
12427 | } | |
12428 | } | |
12429 | { | |
12430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12431 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12432 | ||
12433 | wxPyEndAllowThreads(__tstate); | |
12434 | if (PyErr_Occurred()) SWIG_fail; | |
12435 | } | |
12436 | { | |
12437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12438 | } | |
12439 | { | |
12440 | if (temp7) | |
12441 | delete arg7; | |
12442 | } | |
12443 | return resultobj; | |
12444 | fail: | |
12445 | { | |
12446 | if (temp7) | |
12447 | delete arg7; | |
12448 | } | |
12449 | return NULL; | |
12450 | } | |
12451 | ||
12452 | ||
12453 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
12454 | PyObject *resultobj; | |
12455 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12456 | int result; | |
12457 | PyObject * obj0 = 0 ; | |
12458 | char *kwnames[] = { | |
12459 | (char *) "self", NULL | |
12460 | }; | |
12461 | ||
12462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
12463 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12464 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12465 | { | |
12466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12467 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
12468 | ||
12469 | wxPyEndAllowThreads(__tstate); | |
12470 | if (PyErr_Occurred()) SWIG_fail; | |
12471 | } | |
12472 | { | |
12473 | resultobj = SWIG_From_int((int)(result)); | |
12474 | } | |
12475 | return resultobj; | |
12476 | fail: | |
12477 | return NULL; | |
12478 | } | |
12479 | ||
12480 | ||
12481 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
12482 | PyObject *resultobj; | |
12483 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12484 | int result; | |
12485 | PyObject * obj0 = 0 ; | |
12486 | char *kwnames[] = { | |
12487 | (char *) "self", NULL | |
12488 | }; | |
12489 | ||
12490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
12491 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12492 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12493 | { | |
12494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12495 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
12496 | ||
12497 | wxPyEndAllowThreads(__tstate); | |
12498 | if (PyErr_Occurred()) SWIG_fail; | |
12499 | } | |
12500 | { | |
12501 | resultobj = SWIG_From_int((int)(result)); | |
12502 | } | |
12503 | return resultobj; | |
12504 | fail: | |
12505 | return NULL; | |
12506 | } | |
12507 | ||
12508 | ||
12509 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
12510 | PyObject *resultobj; | |
12511 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12512 | int result; | |
12513 | PyObject * obj0 = 0 ; | |
12514 | char *kwnames[] = { | |
12515 | (char *) "self", NULL | |
12516 | }; | |
12517 | ||
12518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
12519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12521 | { | |
12522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12523 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
12524 | ||
12525 | wxPyEndAllowThreads(__tstate); | |
12526 | if (PyErr_Occurred()) SWIG_fail; | |
12527 | } | |
12528 | { | |
12529 | resultobj = SWIG_From_int((int)(result)); | |
12530 | } | |
12531 | return resultobj; | |
12532 | fail: | |
12533 | return NULL; | |
12534 | } | |
12535 | ||
12536 | ||
12537 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
12538 | PyObject *resultobj; | |
12539 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12540 | int arg2 ; | |
12541 | PyObject * obj0 = 0 ; | |
12542 | PyObject * obj1 = 0 ; | |
12543 | char *kwnames[] = { | |
12544 | (char *) "self",(char *) "val", NULL | |
12545 | }; | |
12546 | ||
12547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12550 | { | |
12551 | arg2 = (int)(SWIG_As_int(obj1)); | |
12552 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12553 | } | |
12554 | { | |
12555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12556 | (arg1)->SetValue(arg2); | |
12557 | ||
12558 | wxPyEndAllowThreads(__tstate); | |
12559 | if (PyErr_Occurred()) SWIG_fail; | |
12560 | } | |
12561 | Py_INCREF(Py_None); resultobj = Py_None; | |
12562 | return resultobj; | |
12563 | fail: | |
12564 | return NULL; | |
12565 | } | |
12566 | ||
12567 | ||
12568 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
12569 | PyObject *resultobj; | |
12570 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12571 | int arg2 ; | |
12572 | PyObject * obj0 = 0 ; | |
12573 | PyObject * obj1 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self",(char *) "minVal", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
12579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12581 | { | |
12582 | arg2 = (int)(SWIG_As_int(obj1)); | |
12583 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12584 | } | |
12585 | { | |
12586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12587 | (arg1)->SetMin(arg2); | |
12588 | ||
12589 | wxPyEndAllowThreads(__tstate); | |
12590 | if (PyErr_Occurred()) SWIG_fail; | |
12591 | } | |
12592 | Py_INCREF(Py_None); resultobj = Py_None; | |
12593 | return resultobj; | |
12594 | fail: | |
12595 | return NULL; | |
12596 | } | |
12597 | ||
12598 | ||
12599 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
12600 | PyObject *resultobj; | |
12601 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12602 | int arg2 ; | |
12603 | PyObject * obj0 = 0 ; | |
12604 | PyObject * obj1 = 0 ; | |
12605 | char *kwnames[] = { | |
12606 | (char *) "self",(char *) "maxVal", NULL | |
12607 | }; | |
12608 | ||
12609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
12610 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12612 | { | |
12613 | arg2 = (int)(SWIG_As_int(obj1)); | |
12614 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12615 | } | |
12616 | { | |
12617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12618 | (arg1)->SetMax(arg2); | |
12619 | ||
12620 | wxPyEndAllowThreads(__tstate); | |
12621 | if (PyErr_Occurred()) SWIG_fail; | |
12622 | } | |
12623 | Py_INCREF(Py_None); resultobj = Py_None; | |
12624 | return resultobj; | |
12625 | fail: | |
12626 | return NULL; | |
12627 | } | |
12628 | ||
12629 | ||
12630 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
12631 | PyObject *resultobj; | |
12632 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12633 | int arg2 ; | |
12634 | int arg3 ; | |
12635 | PyObject * obj0 = 0 ; | |
12636 | PyObject * obj1 = 0 ; | |
12637 | PyObject * obj2 = 0 ; | |
12638 | char *kwnames[] = { | |
12639 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
12640 | }; | |
12641 | ||
12642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12645 | { | |
12646 | arg2 = (int)(SWIG_As_int(obj1)); | |
12647 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12648 | } | |
12649 | { | |
12650 | arg3 = (int)(SWIG_As_int(obj2)); | |
12651 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12652 | } | |
12653 | { | |
12654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12655 | (arg1)->SetRange(arg2,arg3); | |
12656 | ||
12657 | wxPyEndAllowThreads(__tstate); | |
12658 | if (PyErr_Occurred()) SWIG_fail; | |
12659 | } | |
12660 | Py_INCREF(Py_None); resultobj = Py_None; | |
12661 | return resultobj; | |
12662 | fail: | |
12663 | return NULL; | |
12664 | } | |
12665 | ||
12666 | ||
12667 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
12668 | PyObject *resultobj; | |
12669 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
12670 | bool result; | |
12671 | PyObject * obj0 = 0 ; | |
12672 | char *kwnames[] = { | |
12673 | (char *) "self", NULL | |
12674 | }; | |
12675 | ||
12676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
12677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); | |
12678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12679 | { | |
12680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12681 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
12682 | ||
12683 | wxPyEndAllowThreads(__tstate); | |
12684 | if (PyErr_Occurred()) SWIG_fail; | |
12685 | } | |
12686 | { | |
12687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12688 | } | |
12689 | return resultobj; | |
12690 | fail: | |
12691 | return NULL; | |
12692 | } | |
12693 | ||
12694 | ||
12695 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
12696 | PyObject *resultobj; | |
12697 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
12698 | wxVisualAttributes result; | |
12699 | PyObject * obj0 = 0 ; | |
12700 | char *kwnames[] = { | |
12701 | (char *) "variant", NULL | |
12702 | }; | |
12703 | ||
12704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12705 | if (obj0) { | |
12706 | { | |
12707 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
12708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12709 | } | |
12710 | } | |
12711 | { | |
12712 | if (!wxPyCheckForApp()) SWIG_fail; | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
12719 | { | |
12720 | wxVisualAttributes * resultptr; | |
12721 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
12722 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12723 | } | |
12724 | return resultobj; | |
12725 | fail: | |
12726 | return NULL; | |
12727 | } | |
12728 | ||
12729 | ||
12730 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { | |
12731 | PyObject *obj; | |
12732 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12733 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
12734 | Py_INCREF(obj); | |
12735 | return Py_BuildValue((char *)""); | |
12736 | } | |
12737 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
12738 | PyObject *resultobj; | |
12739 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12740 | int arg2 = (int) -1 ; | |
12741 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12742 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12743 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12744 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12745 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12746 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12747 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
12748 | int arg7 = (int) 0 ; | |
12749 | int arg8 = (int) 100 ; | |
12750 | int arg9 = (int) 0 ; | |
12751 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
12752 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12753 | wxSpinCtrl *result; | |
12754 | bool temp3 = false ; | |
12755 | wxPoint temp4 ; | |
12756 | wxSize temp5 ; | |
12757 | bool temp10 = false ; | |
12758 | PyObject * obj0 = 0 ; | |
12759 | PyObject * obj1 = 0 ; | |
12760 | PyObject * obj2 = 0 ; | |
12761 | PyObject * obj3 = 0 ; | |
12762 | PyObject * obj4 = 0 ; | |
12763 | PyObject * obj5 = 0 ; | |
12764 | PyObject * obj6 = 0 ; | |
12765 | PyObject * obj7 = 0 ; | |
12766 | PyObject * obj8 = 0 ; | |
12767 | PyObject * obj9 = 0 ; | |
12768 | char *kwnames[] = { | |
12769 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
12770 | }; | |
12771 | ||
12772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
12773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12775 | if (obj1) { | |
12776 | { | |
12777 | arg2 = (int)(SWIG_As_int(obj1)); | |
12778 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12779 | } | |
12780 | } | |
12781 | if (obj2) { | |
12782 | { | |
12783 | arg3 = wxString_in_helper(obj2); | |
12784 | if (arg3 == NULL) SWIG_fail; | |
12785 | temp3 = true; | |
12786 | } | |
12787 | } | |
12788 | if (obj3) { | |
12789 | { | |
12790 | arg4 = &temp4; | |
12791 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12792 | } | |
12793 | } | |
12794 | if (obj4) { | |
12795 | { | |
12796 | arg5 = &temp5; | |
12797 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12798 | } | |
12799 | } | |
12800 | if (obj5) { | |
12801 | { | |
12802 | arg6 = (long)(SWIG_As_long(obj5)); | |
12803 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12804 | } | |
12805 | } | |
12806 | if (obj6) { | |
12807 | { | |
12808 | arg7 = (int)(SWIG_As_int(obj6)); | |
12809 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12810 | } | |
12811 | } | |
12812 | if (obj7) { | |
12813 | { | |
12814 | arg8 = (int)(SWIG_As_int(obj7)); | |
12815 | if (SWIG_arg_fail(8)) SWIG_fail; | |
12816 | } | |
12817 | } | |
12818 | if (obj8) { | |
12819 | { | |
12820 | arg9 = (int)(SWIG_As_int(obj8)); | |
12821 | if (SWIG_arg_fail(9)) SWIG_fail; | |
12822 | } | |
12823 | } | |
12824 | if (obj9) { | |
12825 | { | |
12826 | arg10 = wxString_in_helper(obj9); | |
12827 | if (arg10 == NULL) SWIG_fail; | |
12828 | temp10 = true; | |
12829 | } | |
12830 | } | |
12831 | { | |
12832 | if (!wxPyCheckForApp()) SWIG_fail; | |
12833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12834 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
12835 | ||
12836 | wxPyEndAllowThreads(__tstate); | |
12837 | if (PyErr_Occurred()) SWIG_fail; | |
12838 | } | |
12839 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
12840 | { | |
12841 | if (temp3) | |
12842 | delete arg3; | |
12843 | } | |
12844 | { | |
12845 | if (temp10) | |
12846 | delete arg10; | |
12847 | } | |
12848 | return resultobj; | |
12849 | fail: | |
12850 | { | |
12851 | if (temp3) | |
12852 | delete arg3; | |
12853 | } | |
12854 | { | |
12855 | if (temp10) | |
12856 | delete arg10; | |
12857 | } | |
12858 | return NULL; | |
12859 | } | |
12860 | ||
12861 | ||
12862 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
12863 | PyObject *resultobj; | |
12864 | wxSpinCtrl *result; | |
12865 | char *kwnames[] = { | |
12866 | NULL | |
12867 | }; | |
12868 | ||
12869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
12870 | { | |
12871 | if (!wxPyCheckForApp()) SWIG_fail; | |
12872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12873 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
12874 | ||
12875 | wxPyEndAllowThreads(__tstate); | |
12876 | if (PyErr_Occurred()) SWIG_fail; | |
12877 | } | |
12878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
12879 | return resultobj; | |
12880 | fail: | |
12881 | return NULL; | |
12882 | } | |
12883 | ||
12884 | ||
12885 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
12886 | PyObject *resultobj; | |
12887 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
12888 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12889 | int arg3 = (int) -1 ; | |
12890 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12891 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12892 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12893 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12894 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12895 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12896 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
12897 | int arg8 = (int) 0 ; | |
12898 | int arg9 = (int) 100 ; | |
12899 | int arg10 = (int) 0 ; | |
12900 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
12901 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12902 | bool result; | |
12903 | bool temp4 = false ; | |
12904 | wxPoint temp5 ; | |
12905 | wxSize temp6 ; | |
12906 | bool temp11 = false ; | |
12907 | PyObject * obj0 = 0 ; | |
12908 | PyObject * obj1 = 0 ; | |
12909 | PyObject * obj2 = 0 ; | |
12910 | PyObject * obj3 = 0 ; | |
12911 | PyObject * obj4 = 0 ; | |
12912 | PyObject * obj5 = 0 ; | |
12913 | PyObject * obj6 = 0 ; | |
12914 | PyObject * obj7 = 0 ; | |
12915 | PyObject * obj8 = 0 ; | |
12916 | PyObject * obj9 = 0 ; | |
12917 | PyObject * obj10 = 0 ; | |
12918 | char *kwnames[] = { | |
12919 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
12920 | }; | |
12921 | ||
12922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
12923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); | |
12924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12925 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12926 | if (SWIG_arg_fail(2)) SWIG_fail; | |
12927 | if (obj2) { | |
12928 | { | |
12929 | arg3 = (int)(SWIG_As_int(obj2)); | |
12930 | if (SWIG_arg_fail(3)) SWIG_fail; | |
12931 | } | |
12932 | } | |
12933 | if (obj3) { | |
12934 | { | |
12935 | arg4 = wxString_in_helper(obj3); | |
12936 | if (arg4 == NULL) SWIG_fail; | |
12937 | temp4 = true; | |
12938 | } | |
12939 | } | |
12940 | if (obj4) { | |
12941 | { | |
12942 | arg5 = &temp5; | |
12943 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12944 | } | |
12945 | } | |
12946 | if (obj5) { | |
12947 | { | |
12948 | arg6 = &temp6; | |
12949 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12950 | } | |
12951 | } | |
12952 | if (obj6) { | |
12953 | { | |
12954 | arg7 = (long)(SWIG_As_long(obj6)); | |
12955 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12956 | } | |
12957 | } | |
12958 | if (obj7) { | |
12959 | { | |
12960 | arg8 = (int)(SWIG_As_int(obj7)); | |
12961 | if (SWIG_arg_fail(8)) SWIG_fail; | |
12962 | } | |
12963 | } | |
12964 | if (obj8) { | |
12965 | { | |
12966 | arg9 = (int)(SWIG_As_int(obj8)); | |
12967 | if (SWIG_arg_fail(9)) SWIG_fail; | |
12968 | } | |
12969 | } | |
12970 | if (obj9) { | |
12971 | { | |
12972 | arg10 = (int)(SWIG_As_int(obj9)); | |
12973 | if (SWIG_arg_fail(10)) SWIG_fail; | |
12974 | } | |
12975 | } | |
12976 | if (obj10) { | |
12977 | { | |
12978 | arg11 = wxString_in_helper(obj10); | |
12979 | if (arg11 == NULL) SWIG_fail; | |
12980 | temp11 = true; | |
12981 | } | |
12982 | } | |
12983 | { | |
12984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12985 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
12986 | ||
12987 | wxPyEndAllowThreads(__tstate); | |
12988 | if (PyErr_Occurred()) SWIG_fail; | |
12989 | } | |
12990 | { | |
12991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12992 | } | |
12993 | { | |
12994 | if (temp4) | |
12995 | delete arg4; | |
12996 | } | |
12997 | { | |
12998 | if (temp11) | |
12999 | delete arg11; | |
13000 | } | |
13001 | return resultobj; | |
13002 | fail: | |
13003 | { | |
13004 | if (temp4) | |
13005 | delete arg4; | |
13006 | } | |
13007 | { | |
13008 | if (temp11) | |
13009 | delete arg11; | |
13010 | } | |
13011 | return NULL; | |
13012 | } | |
13013 | ||
13014 | ||
13015 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
13016 | PyObject *resultobj; | |
13017 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13018 | int result; | |
13019 | PyObject * obj0 = 0 ; | |
13020 | char *kwnames[] = { | |
13021 | (char *) "self", NULL | |
13022 | }; | |
13023 | ||
13024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
13025 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); | |
13026 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13027 | { | |
13028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13029 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
13030 | ||
13031 | wxPyEndAllowThreads(__tstate); | |
13032 | if (PyErr_Occurred()) SWIG_fail; | |
13033 | } | |
13034 | { | |
13035 | resultobj = SWIG_From_int((int)(result)); | |
13036 | } | |
13037 | return resultobj; | |
13038 | fail: | |
13039 | return NULL; | |
13040 | } | |
13041 | ||
13042 | ||
13043 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
13044 | PyObject *resultobj; | |
13045 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13046 | int arg2 ; | |
13047 | PyObject * obj0 = 0 ; | |
13048 | PyObject * obj1 = 0 ; | |
13049 | char *kwnames[] = { | |
13050 | (char *) "self",(char *) "value", NULL | |
13051 | }; | |
13052 | ||
13053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); | |
13055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13056 | { | |
13057 | arg2 = (int)(SWIG_As_int(obj1)); | |
13058 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13059 | } | |
13060 | { | |
13061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13062 | (arg1)->SetValue(arg2); | |
13063 | ||
13064 | wxPyEndAllowThreads(__tstate); | |
13065 | if (PyErr_Occurred()) SWIG_fail; | |
13066 | } | |
13067 | Py_INCREF(Py_None); resultobj = Py_None; | |
13068 | return resultobj; | |
13069 | fail: | |
13070 | return NULL; | |
13071 | } | |
13072 | ||
13073 | ||
13074 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13075 | PyObject *resultobj; | |
13076 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13077 | wxString *arg2 = 0 ; | |
13078 | bool temp2 = false ; | |
13079 | PyObject * obj0 = 0 ; | |
13080 | PyObject * obj1 = 0 ; | |
13081 | char *kwnames[] = { | |
13082 | (char *) "self",(char *) "text", NULL | |
13083 | }; | |
13084 | ||
13085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
13086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); | |
13087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13088 | { | |
13089 | arg2 = wxString_in_helper(obj1); | |
13090 | if (arg2 == NULL) SWIG_fail; | |
13091 | temp2 = true; | |
13092 | } | |
13093 | { | |
13094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13095 | (arg1)->SetValue((wxString const &)*arg2); | |
13096 | ||
13097 | wxPyEndAllowThreads(__tstate); | |
13098 | if (PyErr_Occurred()) SWIG_fail; | |
13099 | } | |
13100 | Py_INCREF(Py_None); resultobj = Py_None; | |
13101 | { | |
13102 | if (temp2) | |
13103 | delete arg2; | |
13104 | } | |
13105 | return resultobj; | |
13106 | fail: | |
13107 | { | |
13108 | if (temp2) | |
13109 | delete arg2; | |
13110 | } | |
13111 | return NULL; | |
13112 | } | |
13113 | ||
13114 | ||
13115 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
13116 | PyObject *resultobj; | |
13117 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13118 | int arg2 ; | |
13119 | int arg3 ; | |
13120 | PyObject * obj0 = 0 ; | |
13121 | PyObject * obj1 = 0 ; | |
13122 | PyObject * obj2 = 0 ; | |
13123 | char *kwnames[] = { | |
13124 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
13125 | }; | |
13126 | ||
13127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); | |
13129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13130 | { | |
13131 | arg2 = (int)(SWIG_As_int(obj1)); | |
13132 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13133 | } | |
13134 | { | |
13135 | arg3 = (int)(SWIG_As_int(obj2)); | |
13136 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13137 | } | |
13138 | { | |
13139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13140 | (arg1)->SetRange(arg2,arg3); | |
13141 | ||
13142 | wxPyEndAllowThreads(__tstate); | |
13143 | if (PyErr_Occurred()) SWIG_fail; | |
13144 | } | |
13145 | Py_INCREF(Py_None); resultobj = Py_None; | |
13146 | return resultobj; | |
13147 | fail: | |
13148 | return NULL; | |
13149 | } | |
13150 | ||
13151 | ||
13152 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
13153 | PyObject *resultobj; | |
13154 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13155 | int result; | |
13156 | PyObject * obj0 = 0 ; | |
13157 | char *kwnames[] = { | |
13158 | (char *) "self", NULL | |
13159 | }; | |
13160 | ||
13161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
13162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); | |
13163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13164 | { | |
13165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13166 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
13167 | ||
13168 | wxPyEndAllowThreads(__tstate); | |
13169 | if (PyErr_Occurred()) SWIG_fail; | |
13170 | } | |
13171 | { | |
13172 | resultobj = SWIG_From_int((int)(result)); | |
13173 | } | |
13174 | return resultobj; | |
13175 | fail: | |
13176 | return NULL; | |
13177 | } | |
13178 | ||
13179 | ||
13180 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
13181 | PyObject *resultobj; | |
13182 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13183 | int result; | |
13184 | PyObject * obj0 = 0 ; | |
13185 | char *kwnames[] = { | |
13186 | (char *) "self", NULL | |
13187 | }; | |
13188 | ||
13189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
13190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); | |
13191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13192 | { | |
13193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13194 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
13195 | ||
13196 | wxPyEndAllowThreads(__tstate); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | } | |
13199 | { | |
13200 | resultobj = SWIG_From_int((int)(result)); | |
13201 | } | |
13202 | return resultobj; | |
13203 | fail: | |
13204 | return NULL; | |
13205 | } | |
13206 | ||
13207 | ||
13208 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
13209 | PyObject *resultobj; | |
13210 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
13211 | long arg2 ; | |
13212 | long arg3 ; | |
13213 | PyObject * obj0 = 0 ; | |
13214 | PyObject * obj1 = 0 ; | |
13215 | PyObject * obj2 = 0 ; | |
13216 | char *kwnames[] = { | |
13217 | (char *) "self",(char *) "from",(char *) "to", NULL | |
13218 | }; | |
13219 | ||
13220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); | |
13222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13223 | { | |
13224 | arg2 = (long)(SWIG_As_long(obj1)); | |
13225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13226 | } | |
13227 | { | |
13228 | arg3 = (long)(SWIG_As_long(obj2)); | |
13229 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13230 | } | |
13231 | { | |
13232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13233 | (arg1)->SetSelection(arg2,arg3); | |
13234 | ||
13235 | wxPyEndAllowThreads(__tstate); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
13237 | } | |
13238 | Py_INCREF(Py_None); resultobj = Py_None; | |
13239 | return resultobj; | |
13240 | fail: | |
13241 | return NULL; | |
13242 | } | |
13243 | ||
13244 | ||
13245 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
13246 | PyObject *resultobj; | |
13247 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
13248 | wxVisualAttributes result; | |
13249 | PyObject * obj0 = 0 ; | |
13250 | char *kwnames[] = { | |
13251 | (char *) "variant", NULL | |
13252 | }; | |
13253 | ||
13254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13255 | if (obj0) { | |
13256 | { | |
13257 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
13258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13259 | } | |
13260 | } | |
13261 | { | |
13262 | if (!wxPyCheckForApp()) SWIG_fail; | |
13263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13264 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13265 | ||
13266 | wxPyEndAllowThreads(__tstate); | |
13267 | if (PyErr_Occurred()) SWIG_fail; | |
13268 | } | |
13269 | { | |
13270 | wxVisualAttributes * resultptr; | |
13271 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
13272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13273 | } | |
13274 | return resultobj; | |
13275 | fail: | |
13276 | return NULL; | |
13277 | } | |
13278 | ||
13279 | ||
13280 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { | |
13281 | PyObject *obj; | |
13282 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13283 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
13284 | Py_INCREF(obj); | |
13285 | return Py_BuildValue((char *)""); | |
13286 | } | |
13287 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
13288 | PyObject *resultobj; | |
13289 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13290 | int arg2 = (int) 0 ; | |
13291 | wxSpinEvent *result; | |
13292 | PyObject * obj0 = 0 ; | |
13293 | PyObject * obj1 = 0 ; | |
13294 | char *kwnames[] = { | |
13295 | (char *) "commandType",(char *) "winid", NULL | |
13296 | }; | |
13297 | ||
13298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
13299 | if (obj0) { | |
13300 | { | |
13301 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
13302 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13303 | } | |
13304 | } | |
13305 | if (obj1) { | |
13306 | { | |
13307 | arg2 = (int)(SWIG_As_int(obj1)); | |
13308 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13309 | } | |
13310 | } | |
13311 | { | |
13312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13313 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
13314 | ||
13315 | wxPyEndAllowThreads(__tstate); | |
13316 | if (PyErr_Occurred()) SWIG_fail; | |
13317 | } | |
13318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
13319 | return resultobj; | |
13320 | fail: | |
13321 | return NULL; | |
13322 | } | |
13323 | ||
13324 | ||
13325 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
13326 | PyObject *resultobj; | |
13327 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13328 | int result; | |
13329 | PyObject * obj0 = 0 ; | |
13330 | char *kwnames[] = { | |
13331 | (char *) "self", NULL | |
13332 | }; | |
13333 | ||
13334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); | |
13336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13337 | { | |
13338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13339 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
13340 | ||
13341 | wxPyEndAllowThreads(__tstate); | |
13342 | if (PyErr_Occurred()) SWIG_fail; | |
13343 | } | |
13344 | { | |
13345 | resultobj = SWIG_From_int((int)(result)); | |
13346 | } | |
13347 | return resultobj; | |
13348 | fail: | |
13349 | return NULL; | |
13350 | } | |
13351 | ||
13352 | ||
13353 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
13354 | PyObject *resultobj; | |
13355 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
13356 | int arg2 ; | |
13357 | PyObject * obj0 = 0 ; | |
13358 | PyObject * obj1 = 0 ; | |
13359 | char *kwnames[] = { | |
13360 | (char *) "self",(char *) "pos", NULL | |
13361 | }; | |
13362 | ||
13363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); | |
13365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13366 | { | |
13367 | arg2 = (int)(SWIG_As_int(obj1)); | |
13368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13369 | } | |
13370 | { | |
13371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13372 | (arg1)->SetPosition(arg2); | |
13373 | ||
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
13377 | Py_INCREF(Py_None); resultobj = Py_None; | |
13378 | return resultobj; | |
13379 | fail: | |
13380 | return NULL; | |
13381 | } | |
13382 | ||
13383 | ||
13384 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { | |
13385 | PyObject *obj; | |
13386 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13387 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
13388 | Py_INCREF(obj); | |
13389 | return Py_BuildValue((char *)""); | |
13390 | } | |
13391 | static int _wrap_RadioBoxNameStr_set(PyObject *) { | |
13392 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
13393 | return 1; | |
13394 | } | |
13395 | ||
13396 | ||
13397 | static PyObject *_wrap_RadioBoxNameStr_get(void) { | |
13398 | PyObject *pyobj; | |
13399 | ||
13400 | { | |
13401 | #if wxUSE_UNICODE | |
13402 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13403 | #else | |
13404 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13405 | #endif | |
13406 | } | |
13407 | return pyobj; | |
13408 | } | |
13409 | ||
13410 | ||
13411 | static int _wrap_RadioButtonNameStr_set(PyObject *) { | |
13412 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
13413 | return 1; | |
13414 | } | |
13415 | ||
13416 | ||
13417 | static PyObject *_wrap_RadioButtonNameStr_get(void) { | |
13418 | PyObject *pyobj; | |
13419 | ||
13420 | { | |
13421 | #if wxUSE_UNICODE | |
13422 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13423 | #else | |
13424 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13425 | #endif | |
13426 | } | |
13427 | return pyobj; | |
13428 | } | |
13429 | ||
13430 | ||
13431 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
13432 | PyObject *resultobj; | |
13433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13434 | int arg2 = (int) -1 ; | |
13435 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13436 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13437 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13438 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13439 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13440 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13441 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
13442 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
13443 | int arg7 = (int) 0 ; | |
13444 | long arg8 = (long) wxRA_HORIZONTAL ; | |
13445 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13446 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13447 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
13448 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
13449 | wxRadioBox *result; | |
13450 | bool temp3 = false ; | |
13451 | wxPoint temp4 ; | |
13452 | wxSize temp5 ; | |
13453 | bool temp6 = false ; | |
13454 | bool temp10 = false ; | |
13455 | PyObject * obj0 = 0 ; | |
13456 | PyObject * obj1 = 0 ; | |
13457 | PyObject * obj2 = 0 ; | |
13458 | PyObject * obj3 = 0 ; | |
13459 | PyObject * obj4 = 0 ; | |
13460 | PyObject * obj5 = 0 ; | |
13461 | PyObject * obj6 = 0 ; | |
13462 | PyObject * obj7 = 0 ; | |
13463 | PyObject * obj8 = 0 ; | |
13464 | PyObject * obj9 = 0 ; | |
13465 | char *kwnames[] = { | |
13466 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13467 | }; | |
13468 | ||
13469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
13470 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13471 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13472 | if (obj1) { | |
13473 | { | |
13474 | arg2 = (int)(SWIG_As_int(obj1)); | |
13475 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13476 | } | |
13477 | } | |
13478 | if (obj2) { | |
13479 | { | |
13480 | arg3 = wxString_in_helper(obj2); | |
13481 | if (arg3 == NULL) SWIG_fail; | |
13482 | temp3 = true; | |
13483 | } | |
13484 | } | |
13485 | if (obj3) { | |
13486 | { | |
13487 | arg4 = &temp4; | |
13488 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13489 | } | |
13490 | } | |
13491 | if (obj4) { | |
13492 | { | |
13493 | arg5 = &temp5; | |
13494 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13495 | } | |
13496 | } | |
13497 | if (obj5) { | |
13498 | { | |
13499 | if (! PySequence_Check(obj5)) { | |
13500 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13501 | SWIG_fail; | |
13502 | } | |
13503 | arg6 = new wxArrayString; | |
13504 | temp6 = true; | |
13505 | int i, len=PySequence_Length(obj5); | |
13506 | for (i=0; i<len; i++) { | |
13507 | PyObject* item = PySequence_GetItem(obj5, i); | |
13508 | #if wxUSE_UNICODE | |
13509 | PyObject* str = PyObject_Unicode(item); | |
13510 | #else | |
13511 | PyObject* str = PyObject_Str(item); | |
13512 | #endif | |
13513 | if (PyErr_Occurred()) SWIG_fail; | |
13514 | arg6->Add(Py2wxString(str)); | |
13515 | Py_DECREF(item); | |
13516 | Py_DECREF(str); | |
13517 | } | |
13518 | } | |
13519 | } | |
13520 | if (obj6) { | |
13521 | { | |
13522 | arg7 = (int)(SWIG_As_int(obj6)); | |
13523 | if (SWIG_arg_fail(7)) SWIG_fail; | |
13524 | } | |
13525 | } | |
13526 | if (obj7) { | |
13527 | { | |
13528 | arg8 = (long)(SWIG_As_long(obj7)); | |
13529 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13530 | } | |
13531 | } | |
13532 | if (obj8) { | |
13533 | { | |
13534 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13535 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13536 | if (arg9 == NULL) { | |
13537 | SWIG_null_ref("wxValidator"); | |
13538 | } | |
13539 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13540 | } | |
13541 | } | |
13542 | if (obj9) { | |
13543 | { | |
13544 | arg10 = wxString_in_helper(obj9); | |
13545 | if (arg10 == NULL) SWIG_fail; | |
13546 | temp10 = true; | |
13547 | } | |
13548 | } | |
13549 | { | |
13550 | if (!wxPyCheckForApp()) SWIG_fail; | |
13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13552 | 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); | |
13553 | ||
13554 | wxPyEndAllowThreads(__tstate); | |
13555 | if (PyErr_Occurred()) SWIG_fail; | |
13556 | } | |
13557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
13558 | { | |
13559 | if (temp3) | |
13560 | delete arg3; | |
13561 | } | |
13562 | { | |
13563 | if (temp6) delete arg6; | |
13564 | } | |
13565 | { | |
13566 | if (temp10) | |
13567 | delete arg10; | |
13568 | } | |
13569 | return resultobj; | |
13570 | fail: | |
13571 | { | |
13572 | if (temp3) | |
13573 | delete arg3; | |
13574 | } | |
13575 | { | |
13576 | if (temp6) delete arg6; | |
13577 | } | |
13578 | { | |
13579 | if (temp10) | |
13580 | delete arg10; | |
13581 | } | |
13582 | return NULL; | |
13583 | } | |
13584 | ||
13585 | ||
13586 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
13587 | PyObject *resultobj; | |
13588 | wxRadioBox *result; | |
13589 | char *kwnames[] = { | |
13590 | NULL | |
13591 | }; | |
13592 | ||
13593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
13594 | { | |
13595 | if (!wxPyCheckForApp()) SWIG_fail; | |
13596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13597 | result = (wxRadioBox *)new wxRadioBox(); | |
13598 | ||
13599 | wxPyEndAllowThreads(__tstate); | |
13600 | if (PyErr_Occurred()) SWIG_fail; | |
13601 | } | |
13602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
13603 | return resultobj; | |
13604 | fail: | |
13605 | return NULL; | |
13606 | } | |
13607 | ||
13608 | ||
13609 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
13610 | PyObject *resultobj; | |
13611 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13612 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13613 | int arg3 = (int) -1 ; | |
13614 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13615 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13616 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13617 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13618 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13619 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13620 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
13621 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
13622 | int arg8 = (int) 0 ; | |
13623 | long arg9 = (long) wxRA_HORIZONTAL ; | |
13624 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13625 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13626 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
13627 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13628 | bool result; | |
13629 | bool temp4 = false ; | |
13630 | wxPoint temp5 ; | |
13631 | wxSize temp6 ; | |
13632 | bool temp7 = false ; | |
13633 | bool temp11 = false ; | |
13634 | PyObject * obj0 = 0 ; | |
13635 | PyObject * obj1 = 0 ; | |
13636 | PyObject * obj2 = 0 ; | |
13637 | PyObject * obj3 = 0 ; | |
13638 | PyObject * obj4 = 0 ; | |
13639 | PyObject * obj5 = 0 ; | |
13640 | PyObject * obj6 = 0 ; | |
13641 | PyObject * obj7 = 0 ; | |
13642 | PyObject * obj8 = 0 ; | |
13643 | PyObject * obj9 = 0 ; | |
13644 | PyObject * obj10 = 0 ; | |
13645 | char *kwnames[] = { | |
13646 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13647 | }; | |
13648 | ||
13649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
13650 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
13651 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13652 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13653 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13654 | if (obj2) { | |
13655 | { | |
13656 | arg3 = (int)(SWIG_As_int(obj2)); | |
13657 | if (SWIG_arg_fail(3)) SWIG_fail; | |
13658 | } | |
13659 | } | |
13660 | if (obj3) { | |
13661 | { | |
13662 | arg4 = wxString_in_helper(obj3); | |
13663 | if (arg4 == NULL) SWIG_fail; | |
13664 | temp4 = true; | |
13665 | } | |
13666 | } | |
13667 | if (obj4) { | |
13668 | { | |
13669 | arg5 = &temp5; | |
13670 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13671 | } | |
13672 | } | |
13673 | if (obj5) { | |
13674 | { | |
13675 | arg6 = &temp6; | |
13676 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13677 | } | |
13678 | } | |
13679 | if (obj6) { | |
13680 | { | |
13681 | if (! PySequence_Check(obj6)) { | |
13682 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13683 | SWIG_fail; | |
13684 | } | |
13685 | arg7 = new wxArrayString; | |
13686 | temp7 = true; | |
13687 | int i, len=PySequence_Length(obj6); | |
13688 | for (i=0; i<len; i++) { | |
13689 | PyObject* item = PySequence_GetItem(obj6, i); | |
13690 | #if wxUSE_UNICODE | |
13691 | PyObject* str = PyObject_Unicode(item); | |
13692 | #else | |
13693 | PyObject* str = PyObject_Str(item); | |
13694 | #endif | |
13695 | if (PyErr_Occurred()) SWIG_fail; | |
13696 | arg7->Add(Py2wxString(str)); | |
13697 | Py_DECREF(item); | |
13698 | Py_DECREF(str); | |
13699 | } | |
13700 | } | |
13701 | } | |
13702 | if (obj7) { | |
13703 | { | |
13704 | arg8 = (int)(SWIG_As_int(obj7)); | |
13705 | if (SWIG_arg_fail(8)) SWIG_fail; | |
13706 | } | |
13707 | } | |
13708 | if (obj8) { | |
13709 | { | |
13710 | arg9 = (long)(SWIG_As_long(obj8)); | |
13711 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13712 | } | |
13713 | } | |
13714 | if (obj9) { | |
13715 | { | |
13716 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13717 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13718 | if (arg10 == NULL) { | |
13719 | SWIG_null_ref("wxValidator"); | |
13720 | } | |
13721 | if (SWIG_arg_fail(10)) SWIG_fail; | |
13722 | } | |
13723 | } | |
13724 | if (obj10) { | |
13725 | { | |
13726 | arg11 = wxString_in_helper(obj10); | |
13727 | if (arg11 == NULL) SWIG_fail; | |
13728 | temp11 = true; | |
13729 | } | |
13730 | } | |
13731 | { | |
13732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13733 | 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); | |
13734 | ||
13735 | wxPyEndAllowThreads(__tstate); | |
13736 | if (PyErr_Occurred()) SWIG_fail; | |
13737 | } | |
13738 | { | |
13739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13740 | } | |
13741 | { | |
13742 | if (temp4) | |
13743 | delete arg4; | |
13744 | } | |
13745 | { | |
13746 | if (temp7) delete arg7; | |
13747 | } | |
13748 | { | |
13749 | if (temp11) | |
13750 | delete arg11; | |
13751 | } | |
13752 | return resultobj; | |
13753 | fail: | |
13754 | { | |
13755 | if (temp4) | |
13756 | delete arg4; | |
13757 | } | |
13758 | { | |
13759 | if (temp7) delete arg7; | |
13760 | } | |
13761 | { | |
13762 | if (temp11) | |
13763 | delete arg11; | |
13764 | } | |
13765 | return NULL; | |
13766 | } | |
13767 | ||
13768 | ||
13769 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
13770 | PyObject *resultobj; | |
13771 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13772 | int arg2 ; | |
13773 | PyObject * obj0 = 0 ; | |
13774 | PyObject * obj1 = 0 ; | |
13775 | char *kwnames[] = { | |
13776 | (char *) "self",(char *) "n", NULL | |
13777 | }; | |
13778 | ||
13779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
13780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
13781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13782 | { | |
13783 | arg2 = (int)(SWIG_As_int(obj1)); | |
13784 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13785 | } | |
13786 | { | |
13787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13788 | (arg1)->SetSelection(arg2); | |
13789 | ||
13790 | wxPyEndAllowThreads(__tstate); | |
13791 | if (PyErr_Occurred()) SWIG_fail; | |
13792 | } | |
13793 | Py_INCREF(Py_None); resultobj = Py_None; | |
13794 | return resultobj; | |
13795 | fail: | |
13796 | return NULL; | |
13797 | } | |
13798 | ||
13799 | ||
13800 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
13801 | PyObject *resultobj; | |
13802 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13803 | int result; | |
13804 | PyObject * obj0 = 0 ; | |
13805 | char *kwnames[] = { | |
13806 | (char *) "self", NULL | |
13807 | }; | |
13808 | ||
13809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
13810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
13811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13812 | { | |
13813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13814 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
13815 | ||
13816 | wxPyEndAllowThreads(__tstate); | |
13817 | if (PyErr_Occurred()) SWIG_fail; | |
13818 | } | |
13819 | { | |
13820 | resultobj = SWIG_From_int((int)(result)); | |
13821 | } | |
13822 | return resultobj; | |
13823 | fail: | |
13824 | return NULL; | |
13825 | } | |
13826 | ||
13827 | ||
13828 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
13829 | PyObject *resultobj; | |
13830 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13831 | wxString result; | |
13832 | PyObject * obj0 = 0 ; | |
13833 | char *kwnames[] = { | |
13834 | (char *) "self", NULL | |
13835 | }; | |
13836 | ||
13837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
13838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
13839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13840 | { | |
13841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13842 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
13843 | ||
13844 | wxPyEndAllowThreads(__tstate); | |
13845 | if (PyErr_Occurred()) SWIG_fail; | |
13846 | } | |
13847 | { | |
13848 | #if wxUSE_UNICODE | |
13849 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13850 | #else | |
13851 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13852 | #endif | |
13853 | } | |
13854 | return resultobj; | |
13855 | fail: | |
13856 | return NULL; | |
13857 | } | |
13858 | ||
13859 | ||
13860 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
13861 | PyObject *resultobj; | |
13862 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13863 | wxString *arg2 = 0 ; | |
13864 | bool result; | |
13865 | bool temp2 = false ; | |
13866 | PyObject * obj0 = 0 ; | |
13867 | PyObject * obj1 = 0 ; | |
13868 | char *kwnames[] = { | |
13869 | (char *) "self",(char *) "s", NULL | |
13870 | }; | |
13871 | ||
13872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
13873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
13874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13875 | { | |
13876 | arg2 = wxString_in_helper(obj1); | |
13877 | if (arg2 == NULL) SWIG_fail; | |
13878 | temp2 = true; | |
13879 | } | |
13880 | { | |
13881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13882 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
13883 | ||
13884 | wxPyEndAllowThreads(__tstate); | |
13885 | if (PyErr_Occurred()) SWIG_fail; | |
13886 | } | |
13887 | { | |
13888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13889 | } | |
13890 | { | |
13891 | if (temp2) | |
13892 | delete arg2; | |
13893 | } | |
13894 | return resultobj; | |
13895 | fail: | |
13896 | { | |
13897 | if (temp2) | |
13898 | delete arg2; | |
13899 | } | |
13900 | return NULL; | |
13901 | } | |
13902 | ||
13903 | ||
13904 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
13905 | PyObject *resultobj; | |
13906 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13907 | int result; | |
13908 | PyObject * obj0 = 0 ; | |
13909 | char *kwnames[] = { | |
13910 | (char *) "self", NULL | |
13911 | }; | |
13912 | ||
13913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
13914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
13915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13916 | { | |
13917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13918 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
13919 | ||
13920 | wxPyEndAllowThreads(__tstate); | |
13921 | if (PyErr_Occurred()) SWIG_fail; | |
13922 | } | |
13923 | { | |
13924 | resultobj = SWIG_From_int((int)(result)); | |
13925 | } | |
13926 | return resultobj; | |
13927 | fail: | |
13928 | return NULL; | |
13929 | } | |
13930 | ||
13931 | ||
13932 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13933 | PyObject *resultobj; | |
13934 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13935 | wxString *arg2 = 0 ; | |
13936 | int result; | |
13937 | bool temp2 = false ; | |
13938 | PyObject * obj0 = 0 ; | |
13939 | PyObject * obj1 = 0 ; | |
13940 | char *kwnames[] = { | |
13941 | (char *) "self",(char *) "s", NULL | |
13942 | }; | |
13943 | ||
13944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
13945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
13946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13947 | { | |
13948 | arg2 = wxString_in_helper(obj1); | |
13949 | if (arg2 == NULL) SWIG_fail; | |
13950 | temp2 = true; | |
13951 | } | |
13952 | { | |
13953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13954 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
13955 | ||
13956 | wxPyEndAllowThreads(__tstate); | |
13957 | if (PyErr_Occurred()) SWIG_fail; | |
13958 | } | |
13959 | { | |
13960 | resultobj = SWIG_From_int((int)(result)); | |
13961 | } | |
13962 | { | |
13963 | if (temp2) | |
13964 | delete arg2; | |
13965 | } | |
13966 | return resultobj; | |
13967 | fail: | |
13968 | { | |
13969 | if (temp2) | |
13970 | delete arg2; | |
13971 | } | |
13972 | return NULL; | |
13973 | } | |
13974 | ||
13975 | ||
13976 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { | |
13977 | PyObject *resultobj; | |
13978 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
13979 | int arg2 ; | |
13980 | wxString result; | |
13981 | PyObject * obj0 = 0 ; | |
13982 | PyObject * obj1 = 0 ; | |
13983 | char *kwnames[] = { | |
13984 | (char *) "self",(char *) "n", NULL | |
13985 | }; | |
13986 | ||
13987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
13988 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
13989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13990 | { | |
13991 | arg2 = (int)(SWIG_As_int(obj1)); | |
13992 | if (SWIG_arg_fail(2)) SWIG_fail; | |
13993 | } | |
13994 | { | |
13995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13996 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
13997 | ||
13998 | wxPyEndAllowThreads(__tstate); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
14001 | { | |
14002 | #if wxUSE_UNICODE | |
14003 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14004 | #else | |
14005 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14006 | #endif | |
14007 | } | |
14008 | return resultobj; | |
14009 | fail: | |
14010 | return NULL; | |
14011 | } | |
14012 | ||
14013 | ||
14014 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { | |
14015 | PyObject *resultobj; | |
14016 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14017 | int arg2 ; | |
14018 | wxString *arg3 = 0 ; | |
14019 | bool temp3 = false ; | |
14020 | PyObject * obj0 = 0 ; | |
14021 | PyObject * obj1 = 0 ; | |
14022 | PyObject * obj2 = 0 ; | |
14023 | char *kwnames[] = { | |
14024 | (char *) "self",(char *) "n",(char *) "label", NULL | |
14025 | }; | |
14026 | ||
14027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
14029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14030 | { | |
14031 | arg2 = (int)(SWIG_As_int(obj1)); | |
14032 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14033 | } | |
14034 | { | |
14035 | arg3 = wxString_in_helper(obj2); | |
14036 | if (arg3 == NULL) SWIG_fail; | |
14037 | temp3 = true; | |
14038 | } | |
14039 | { | |
14040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14041 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
14042 | ||
14043 | wxPyEndAllowThreads(__tstate); | |
14044 | if (PyErr_Occurred()) SWIG_fail; | |
14045 | } | |
14046 | Py_INCREF(Py_None); resultobj = Py_None; | |
14047 | { | |
14048 | if (temp3) | |
14049 | delete arg3; | |
14050 | } | |
14051 | return resultobj; | |
14052 | fail: | |
14053 | { | |
14054 | if (temp3) | |
14055 | delete arg3; | |
14056 | } | |
14057 | return NULL; | |
14058 | } | |
14059 | ||
14060 | ||
14061 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
14062 | PyObject *resultobj; | |
14063 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14064 | int arg2 ; | |
14065 | bool arg3 = (bool) true ; | |
14066 | PyObject * obj0 = 0 ; | |
14067 | PyObject * obj1 = 0 ; | |
14068 | PyObject * obj2 = 0 ; | |
14069 | char *kwnames[] = { | |
14070 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
14071 | }; | |
14072 | ||
14073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
14075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14076 | { | |
14077 | arg2 = (int)(SWIG_As_int(obj1)); | |
14078 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14079 | } | |
14080 | if (obj2) { | |
14081 | { | |
14082 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14083 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14084 | } | |
14085 | } | |
14086 | { | |
14087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14088 | (arg1)->Enable(arg2,arg3); | |
14089 | ||
14090 | wxPyEndAllowThreads(__tstate); | |
14091 | if (PyErr_Occurred()) SWIG_fail; | |
14092 | } | |
14093 | Py_INCREF(Py_None); resultobj = Py_None; | |
14094 | return resultobj; | |
14095 | fail: | |
14096 | return NULL; | |
14097 | } | |
14098 | ||
14099 | ||
14100 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
14101 | PyObject *resultobj; | |
14102 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14103 | int arg2 ; | |
14104 | bool arg3 = (bool) true ; | |
14105 | PyObject * obj0 = 0 ; | |
14106 | PyObject * obj1 = 0 ; | |
14107 | PyObject * obj2 = 0 ; | |
14108 | char *kwnames[] = { | |
14109 | (char *) "self",(char *) "n",(char *) "show", NULL | |
14110 | }; | |
14111 | ||
14112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14113 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
14114 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14115 | { | |
14116 | arg2 = (int)(SWIG_As_int(obj1)); | |
14117 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14118 | } | |
14119 | if (obj2) { | |
14120 | { | |
14121 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
14122 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14123 | } | |
14124 | } | |
14125 | { | |
14126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14127 | (arg1)->Show(arg2,arg3); | |
14128 | ||
14129 | wxPyEndAllowThreads(__tstate); | |
14130 | if (PyErr_Occurred()) SWIG_fail; | |
14131 | } | |
14132 | Py_INCREF(Py_None); resultobj = Py_None; | |
14133 | return resultobj; | |
14134 | fail: | |
14135 | return NULL; | |
14136 | } | |
14137 | ||
14138 | ||
14139 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
14140 | PyObject *resultobj; | |
14141 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14142 | int result; | |
14143 | PyObject * obj0 = 0 ; | |
14144 | char *kwnames[] = { | |
14145 | (char *) "self", NULL | |
14146 | }; | |
14147 | ||
14148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
14149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
14150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14151 | { | |
14152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14153 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
14154 | ||
14155 | wxPyEndAllowThreads(__tstate); | |
14156 | if (PyErr_Occurred()) SWIG_fail; | |
14157 | } | |
14158 | { | |
14159 | resultobj = SWIG_From_int((int)(result)); | |
14160 | } | |
14161 | return resultobj; | |
14162 | fail: | |
14163 | return NULL; | |
14164 | } | |
14165 | ||
14166 | ||
14167 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
14168 | PyObject *resultobj; | |
14169 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14170 | int result; | |
14171 | PyObject * obj0 = 0 ; | |
14172 | char *kwnames[] = { | |
14173 | (char *) "self", NULL | |
14174 | }; | |
14175 | ||
14176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
14177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
14178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14179 | { | |
14180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14181 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
14182 | ||
14183 | wxPyEndAllowThreads(__tstate); | |
14184 | if (PyErr_Occurred()) SWIG_fail; | |
14185 | } | |
14186 | { | |
14187 | resultobj = SWIG_From_int((int)(result)); | |
14188 | } | |
14189 | return resultobj; | |
14190 | fail: | |
14191 | return NULL; | |
14192 | } | |
14193 | ||
14194 | ||
14195 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
14196 | PyObject *resultobj; | |
14197 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
14198 | int arg2 ; | |
14199 | wxDirection arg3 ; | |
14200 | long arg4 ; | |
14201 | int result; | |
14202 | PyObject * obj0 = 0 ; | |
14203 | PyObject * obj1 = 0 ; | |
14204 | PyObject * obj2 = 0 ; | |
14205 | PyObject * obj3 = 0 ; | |
14206 | char *kwnames[] = { | |
14207 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
14208 | }; | |
14209 | ||
14210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); | |
14212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14213 | { | |
14214 | arg2 = (int)(SWIG_As_int(obj1)); | |
14215 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14216 | } | |
14217 | { | |
14218 | arg3 = (wxDirection)(SWIG_As_int(obj2)); | |
14219 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14220 | } | |
14221 | { | |
14222 | arg4 = (long)(SWIG_As_long(obj3)); | |
14223 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14224 | } | |
14225 | { | |
14226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14227 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
14228 | ||
14229 | wxPyEndAllowThreads(__tstate); | |
14230 | if (PyErr_Occurred()) SWIG_fail; | |
14231 | } | |
14232 | { | |
14233 | resultobj = SWIG_From_int((int)(result)); | |
14234 | } | |
14235 | return resultobj; | |
14236 | fail: | |
14237 | return NULL; | |
14238 | } | |
14239 | ||
14240 | ||
14241 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
14242 | PyObject *resultobj; | |
14243 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14244 | wxVisualAttributes result; | |
14245 | PyObject * obj0 = 0 ; | |
14246 | char *kwnames[] = { | |
14247 | (char *) "variant", NULL | |
14248 | }; | |
14249 | ||
14250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14251 | if (obj0) { | |
14252 | { | |
14253 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14254 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14255 | } | |
14256 | } | |
14257 | { | |
14258 | if (!wxPyCheckForApp()) SWIG_fail; | |
14259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14260 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14261 | ||
14262 | wxPyEndAllowThreads(__tstate); | |
14263 | if (PyErr_Occurred()) SWIG_fail; | |
14264 | } | |
14265 | { | |
14266 | wxVisualAttributes * resultptr; | |
14267 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
14268 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14269 | } | |
14270 | return resultobj; | |
14271 | fail: | |
14272 | return NULL; | |
14273 | } | |
14274 | ||
14275 | ||
14276 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { | |
14277 | PyObject *obj; | |
14278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14279 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
14280 | Py_INCREF(obj); | |
14281 | return Py_BuildValue((char *)""); | |
14282 | } | |
14283 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
14284 | PyObject *resultobj; | |
14285 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14286 | int arg2 = (int) -1 ; | |
14287 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14288 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14289 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14290 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14291 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14292 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14293 | long arg6 = (long) 0 ; | |
14294 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14295 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14296 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
14297 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14298 | wxRadioButton *result; | |
14299 | bool temp3 = false ; | |
14300 | wxPoint temp4 ; | |
14301 | wxSize temp5 ; | |
14302 | bool temp8 = false ; | |
14303 | PyObject * obj0 = 0 ; | |
14304 | PyObject * obj1 = 0 ; | |
14305 | PyObject * obj2 = 0 ; | |
14306 | PyObject * obj3 = 0 ; | |
14307 | PyObject * obj4 = 0 ; | |
14308 | PyObject * obj5 = 0 ; | |
14309 | PyObject * obj6 = 0 ; | |
14310 | PyObject * obj7 = 0 ; | |
14311 | char *kwnames[] = { | |
14312 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14313 | }; | |
14314 | ||
14315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
14316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14318 | if (obj1) { | |
14319 | { | |
14320 | arg2 = (int)(SWIG_As_int(obj1)); | |
14321 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14322 | } | |
14323 | } | |
14324 | if (obj2) { | |
14325 | { | |
14326 | arg3 = wxString_in_helper(obj2); | |
14327 | if (arg3 == NULL) SWIG_fail; | |
14328 | temp3 = true; | |
14329 | } | |
14330 | } | |
14331 | if (obj3) { | |
14332 | { | |
14333 | arg4 = &temp4; | |
14334 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14335 | } | |
14336 | } | |
14337 | if (obj4) { | |
14338 | { | |
14339 | arg5 = &temp5; | |
14340 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14341 | } | |
14342 | } | |
14343 | if (obj5) { | |
14344 | { | |
14345 | arg6 = (long)(SWIG_As_long(obj5)); | |
14346 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14347 | } | |
14348 | } | |
14349 | if (obj6) { | |
14350 | { | |
14351 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14352 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14353 | if (arg7 == NULL) { | |
14354 | SWIG_null_ref("wxValidator"); | |
14355 | } | |
14356 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14357 | } | |
14358 | } | |
14359 | if (obj7) { | |
14360 | { | |
14361 | arg8 = wxString_in_helper(obj7); | |
14362 | if (arg8 == NULL) SWIG_fail; | |
14363 | temp8 = true; | |
14364 | } | |
14365 | } | |
14366 | { | |
14367 | if (!wxPyCheckForApp()) SWIG_fail; | |
14368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14369 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14370 | ||
14371 | wxPyEndAllowThreads(__tstate); | |
14372 | if (PyErr_Occurred()) SWIG_fail; | |
14373 | } | |
14374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
14375 | { | |
14376 | if (temp3) | |
14377 | delete arg3; | |
14378 | } | |
14379 | { | |
14380 | if (temp8) | |
14381 | delete arg8; | |
14382 | } | |
14383 | return resultobj; | |
14384 | fail: | |
14385 | { | |
14386 | if (temp3) | |
14387 | delete arg3; | |
14388 | } | |
14389 | { | |
14390 | if (temp8) | |
14391 | delete arg8; | |
14392 | } | |
14393 | return NULL; | |
14394 | } | |
14395 | ||
14396 | ||
14397 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
14398 | PyObject *resultobj; | |
14399 | wxRadioButton *result; | |
14400 | char *kwnames[] = { | |
14401 | NULL | |
14402 | }; | |
14403 | ||
14404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
14405 | { | |
14406 | if (!wxPyCheckForApp()) SWIG_fail; | |
14407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14408 | result = (wxRadioButton *)new wxRadioButton(); | |
14409 | ||
14410 | wxPyEndAllowThreads(__tstate); | |
14411 | if (PyErr_Occurred()) SWIG_fail; | |
14412 | } | |
14413 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
14414 | return resultobj; | |
14415 | fail: | |
14416 | return NULL; | |
14417 | } | |
14418 | ||
14419 | ||
14420 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
14421 | PyObject *resultobj; | |
14422 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14423 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14424 | int arg3 = (int) -1 ; | |
14425 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14426 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14427 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14428 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14429 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14430 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14431 | long arg7 = (long) 0 ; | |
14432 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14433 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14434 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
14435 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14436 | bool result; | |
14437 | bool temp4 = false ; | |
14438 | wxPoint temp5 ; | |
14439 | wxSize temp6 ; | |
14440 | bool temp9 = false ; | |
14441 | PyObject * obj0 = 0 ; | |
14442 | PyObject * obj1 = 0 ; | |
14443 | PyObject * obj2 = 0 ; | |
14444 | PyObject * obj3 = 0 ; | |
14445 | PyObject * obj4 = 0 ; | |
14446 | PyObject * obj5 = 0 ; | |
14447 | PyObject * obj6 = 0 ; | |
14448 | PyObject * obj7 = 0 ; | |
14449 | PyObject * obj8 = 0 ; | |
14450 | char *kwnames[] = { | |
14451 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14452 | }; | |
14453 | ||
14454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
14455 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); | |
14456 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14457 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14458 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14459 | if (obj2) { | |
14460 | { | |
14461 | arg3 = (int)(SWIG_As_int(obj2)); | |
14462 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14463 | } | |
14464 | } | |
14465 | if (obj3) { | |
14466 | { | |
14467 | arg4 = wxString_in_helper(obj3); | |
14468 | if (arg4 == NULL) SWIG_fail; | |
14469 | temp4 = true; | |
14470 | } | |
14471 | } | |
14472 | if (obj4) { | |
14473 | { | |
14474 | arg5 = &temp5; | |
14475 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14476 | } | |
14477 | } | |
14478 | if (obj5) { | |
14479 | { | |
14480 | arg6 = &temp6; | |
14481 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14482 | } | |
14483 | } | |
14484 | if (obj6) { | |
14485 | { | |
14486 | arg7 = (long)(SWIG_As_long(obj6)); | |
14487 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14488 | } | |
14489 | } | |
14490 | if (obj7) { | |
14491 | { | |
14492 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14493 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14494 | if (arg8 == NULL) { | |
14495 | SWIG_null_ref("wxValidator"); | |
14496 | } | |
14497 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14498 | } | |
14499 | } | |
14500 | if (obj8) { | |
14501 | { | |
14502 | arg9 = wxString_in_helper(obj8); | |
14503 | if (arg9 == NULL) SWIG_fail; | |
14504 | temp9 = true; | |
14505 | } | |
14506 | } | |
14507 | { | |
14508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14509 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14510 | ||
14511 | wxPyEndAllowThreads(__tstate); | |
14512 | if (PyErr_Occurred()) SWIG_fail; | |
14513 | } | |
14514 | { | |
14515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14516 | } | |
14517 | { | |
14518 | if (temp4) | |
14519 | delete arg4; | |
14520 | } | |
14521 | { | |
14522 | if (temp9) | |
14523 | delete arg9; | |
14524 | } | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | { | |
14528 | if (temp4) | |
14529 | delete arg4; | |
14530 | } | |
14531 | { | |
14532 | if (temp9) | |
14533 | delete arg9; | |
14534 | } | |
14535 | return NULL; | |
14536 | } | |
14537 | ||
14538 | ||
14539 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
14540 | PyObject *resultobj; | |
14541 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14542 | bool result; | |
14543 | PyObject * obj0 = 0 ; | |
14544 | char *kwnames[] = { | |
14545 | (char *) "self", NULL | |
14546 | }; | |
14547 | ||
14548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
14549 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); | |
14550 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14551 | { | |
14552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14553 | result = (bool)(arg1)->GetValue(); | |
14554 | ||
14555 | wxPyEndAllowThreads(__tstate); | |
14556 | if (PyErr_Occurred()) SWIG_fail; | |
14557 | } | |
14558 | { | |
14559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14560 | } | |
14561 | return resultobj; | |
14562 | fail: | |
14563 | return NULL; | |
14564 | } | |
14565 | ||
14566 | ||
14567 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
14568 | PyObject *resultobj; | |
14569 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
14570 | bool arg2 ; | |
14571 | PyObject * obj0 = 0 ; | |
14572 | PyObject * obj1 = 0 ; | |
14573 | char *kwnames[] = { | |
14574 | (char *) "self",(char *) "value", NULL | |
14575 | }; | |
14576 | ||
14577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
14578 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); | |
14579 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14580 | { | |
14581 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
14582 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14583 | } | |
14584 | { | |
14585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14586 | (arg1)->SetValue(arg2); | |
14587 | ||
14588 | wxPyEndAllowThreads(__tstate); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
14591 | Py_INCREF(Py_None); resultobj = Py_None; | |
14592 | return resultobj; | |
14593 | fail: | |
14594 | return NULL; | |
14595 | } | |
14596 | ||
14597 | ||
14598 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
14599 | PyObject *resultobj; | |
14600 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
14601 | wxVisualAttributes result; | |
14602 | PyObject * obj0 = 0 ; | |
14603 | char *kwnames[] = { | |
14604 | (char *) "variant", NULL | |
14605 | }; | |
14606 | ||
14607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14608 | if (obj0) { | |
14609 | { | |
14610 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
14611 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14612 | } | |
14613 | } | |
14614 | { | |
14615 | if (!wxPyCheckForApp()) SWIG_fail; | |
14616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14617 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14618 | ||
14619 | wxPyEndAllowThreads(__tstate); | |
14620 | if (PyErr_Occurred()) SWIG_fail; | |
14621 | } | |
14622 | { | |
14623 | wxVisualAttributes * resultptr; | |
14624 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
14625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14626 | } | |
14627 | return resultobj; | |
14628 | fail: | |
14629 | return NULL; | |
14630 | } | |
14631 | ||
14632 | ||
14633 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { | |
14634 | PyObject *obj; | |
14635 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14636 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
14637 | Py_INCREF(obj); | |
14638 | return Py_BuildValue((char *)""); | |
14639 | } | |
14640 | static int _wrap_SliderNameStr_set(PyObject *) { | |
14641 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
14642 | return 1; | |
14643 | } | |
14644 | ||
14645 | ||
14646 | static PyObject *_wrap_SliderNameStr_get(void) { | |
14647 | PyObject *pyobj; | |
14648 | ||
14649 | { | |
14650 | #if wxUSE_UNICODE | |
14651 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14652 | #else | |
14653 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14654 | #endif | |
14655 | } | |
14656 | return pyobj; | |
14657 | } | |
14658 | ||
14659 | ||
14660 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { | |
14661 | PyObject *resultobj; | |
14662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14663 | int arg2 = (int) -1 ; | |
14664 | int arg3 = (int) 0 ; | |
14665 | int arg4 = (int) 0 ; | |
14666 | int arg5 = (int) 100 ; | |
14667 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
14668 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
14669 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
14670 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
14671 | long arg8 = (long) wxSL_HORIZONTAL ; | |
14672 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
14673 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
14674 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
14675 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
14676 | wxSlider *result; | |
14677 | wxPoint temp6 ; | |
14678 | wxSize temp7 ; | |
14679 | bool temp10 = false ; | |
14680 | PyObject * obj0 = 0 ; | |
14681 | PyObject * obj1 = 0 ; | |
14682 | PyObject * obj2 = 0 ; | |
14683 | PyObject * obj3 = 0 ; | |
14684 | PyObject * obj4 = 0 ; | |
14685 | PyObject * obj5 = 0 ; | |
14686 | PyObject * obj6 = 0 ; | |
14687 | PyObject * obj7 = 0 ; | |
14688 | PyObject * obj8 = 0 ; | |
14689 | PyObject * obj9 = 0 ; | |
14690 | char *kwnames[] = { | |
14691 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14692 | }; | |
14693 | ||
14694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
14695 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14697 | if (obj1) { | |
14698 | { | |
14699 | arg2 = (int)(SWIG_As_int(obj1)); | |
14700 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14701 | } | |
14702 | } | |
14703 | if (obj2) { | |
14704 | { | |
14705 | arg3 = (int)(SWIG_As_int(obj2)); | |
14706 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14707 | } | |
14708 | } | |
14709 | if (obj3) { | |
14710 | { | |
14711 | arg4 = (int)(SWIG_As_int(obj3)); | |
14712 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14713 | } | |
14714 | } | |
14715 | if (obj4) { | |
14716 | { | |
14717 | arg5 = (int)(SWIG_As_int(obj4)); | |
14718 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14719 | } | |
14720 | } | |
14721 | if (obj5) { | |
14722 | { | |
14723 | arg6 = &temp6; | |
14724 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
14725 | } | |
14726 | } | |
14727 | if (obj6) { | |
14728 | { | |
14729 | arg7 = &temp7; | |
14730 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
14731 | } | |
14732 | } | |
14733 | if (obj7) { | |
14734 | { | |
14735 | arg8 = (long)(SWIG_As_long(obj7)); | |
14736 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14737 | } | |
14738 | } | |
14739 | if (obj8) { | |
14740 | { | |
14741 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14742 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14743 | if (arg9 == NULL) { | |
14744 | SWIG_null_ref("wxValidator"); | |
14745 | } | |
14746 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14747 | } | |
14748 | } | |
14749 | if (obj9) { | |
14750 | { | |
14751 | arg10 = wxString_in_helper(obj9); | |
14752 | if (arg10 == NULL) SWIG_fail; | |
14753 | temp10 = true; | |
14754 | } | |
14755 | } | |
14756 | { | |
14757 | if (!wxPyCheckForApp()) SWIG_fail; | |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14759 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
14760 | ||
14761 | wxPyEndAllowThreads(__tstate); | |
14762 | if (PyErr_Occurred()) SWIG_fail; | |
14763 | } | |
14764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
14765 | { | |
14766 | if (temp10) | |
14767 | delete arg10; | |
14768 | } | |
14769 | return resultobj; | |
14770 | fail: | |
14771 | { | |
14772 | if (temp10) | |
14773 | delete arg10; | |
14774 | } | |
14775 | return NULL; | |
14776 | } | |
14777 | ||
14778 | ||
14779 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { | |
14780 | PyObject *resultobj; | |
14781 | wxSlider *result; | |
14782 | char *kwnames[] = { | |
14783 | NULL | |
14784 | }; | |
14785 | ||
14786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
14787 | { | |
14788 | if (!wxPyCheckForApp()) SWIG_fail; | |
14789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14790 | result = (wxSlider *)new wxSlider(); | |
14791 | ||
14792 | wxPyEndAllowThreads(__tstate); | |
14793 | if (PyErr_Occurred()) SWIG_fail; | |
14794 | } | |
14795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
14796 | return resultobj; | |
14797 | fail: | |
14798 | return NULL; | |
14799 | } | |
14800 | ||
14801 | ||
14802 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
14803 | PyObject *resultobj; | |
14804 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14805 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14806 | int arg3 = (int) -1 ; | |
14807 | int arg4 = (int) 0 ; | |
14808 | int arg5 = (int) 0 ; | |
14809 | int arg6 = (int) 100 ; | |
14810 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
14811 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
14812 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
14813 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
14814 | long arg9 = (long) wxSL_HORIZONTAL ; | |
14815 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
14816 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
14817 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
14818 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
14819 | bool result; | |
14820 | wxPoint temp7 ; | |
14821 | wxSize temp8 ; | |
14822 | bool temp11 = false ; | |
14823 | PyObject * obj0 = 0 ; | |
14824 | PyObject * obj1 = 0 ; | |
14825 | PyObject * obj2 = 0 ; | |
14826 | PyObject * obj3 = 0 ; | |
14827 | PyObject * obj4 = 0 ; | |
14828 | PyObject * obj5 = 0 ; | |
14829 | PyObject * obj6 = 0 ; | |
14830 | PyObject * obj7 = 0 ; | |
14831 | PyObject * obj8 = 0 ; | |
14832 | PyObject * obj9 = 0 ; | |
14833 | PyObject * obj10 = 0 ; | |
14834 | char *kwnames[] = { | |
14835 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14836 | }; | |
14837 | ||
14838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
14839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
14840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14841 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14842 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14843 | if (obj2) { | |
14844 | { | |
14845 | arg3 = (int)(SWIG_As_int(obj2)); | |
14846 | if (SWIG_arg_fail(3)) SWIG_fail; | |
14847 | } | |
14848 | } | |
14849 | if (obj3) { | |
14850 | { | |
14851 | arg4 = (int)(SWIG_As_int(obj3)); | |
14852 | if (SWIG_arg_fail(4)) SWIG_fail; | |
14853 | } | |
14854 | } | |
14855 | if (obj4) { | |
14856 | { | |
14857 | arg5 = (int)(SWIG_As_int(obj4)); | |
14858 | if (SWIG_arg_fail(5)) SWIG_fail; | |
14859 | } | |
14860 | } | |
14861 | if (obj5) { | |
14862 | { | |
14863 | arg6 = (int)(SWIG_As_int(obj5)); | |
14864 | if (SWIG_arg_fail(6)) SWIG_fail; | |
14865 | } | |
14866 | } | |
14867 | if (obj6) { | |
14868 | { | |
14869 | arg7 = &temp7; | |
14870 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
14871 | } | |
14872 | } | |
14873 | if (obj7) { | |
14874 | { | |
14875 | arg8 = &temp8; | |
14876 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
14877 | } | |
14878 | } | |
14879 | if (obj8) { | |
14880 | { | |
14881 | arg9 = (long)(SWIG_As_long(obj8)); | |
14882 | if (SWIG_arg_fail(9)) SWIG_fail; | |
14883 | } | |
14884 | } | |
14885 | if (obj9) { | |
14886 | { | |
14887 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14888 | if (SWIG_arg_fail(10)) SWIG_fail; | |
14889 | if (arg10 == NULL) { | |
14890 | SWIG_null_ref("wxValidator"); | |
14891 | } | |
14892 | if (SWIG_arg_fail(10)) SWIG_fail; | |
14893 | } | |
14894 | } | |
14895 | if (obj10) { | |
14896 | { | |
14897 | arg11 = wxString_in_helper(obj10); | |
14898 | if (arg11 == NULL) SWIG_fail; | |
14899 | temp11 = true; | |
14900 | } | |
14901 | } | |
14902 | { | |
14903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14904 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
14905 | ||
14906 | wxPyEndAllowThreads(__tstate); | |
14907 | if (PyErr_Occurred()) SWIG_fail; | |
14908 | } | |
14909 | { | |
14910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14911 | } | |
14912 | { | |
14913 | if (temp11) | |
14914 | delete arg11; | |
14915 | } | |
14916 | return resultobj; | |
14917 | fail: | |
14918 | { | |
14919 | if (temp11) | |
14920 | delete arg11; | |
14921 | } | |
14922 | return NULL; | |
14923 | } | |
14924 | ||
14925 | ||
14926 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
14927 | PyObject *resultobj; | |
14928 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14929 | int result; | |
14930 | PyObject * obj0 = 0 ; | |
14931 | char *kwnames[] = { | |
14932 | (char *) "self", NULL | |
14933 | }; | |
14934 | ||
14935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
14936 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
14937 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14938 | { | |
14939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14940 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
14941 | ||
14942 | wxPyEndAllowThreads(__tstate); | |
14943 | if (PyErr_Occurred()) SWIG_fail; | |
14944 | } | |
14945 | { | |
14946 | resultobj = SWIG_From_int((int)(result)); | |
14947 | } | |
14948 | return resultobj; | |
14949 | fail: | |
14950 | return NULL; | |
14951 | } | |
14952 | ||
14953 | ||
14954 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
14955 | PyObject *resultobj; | |
14956 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14957 | int arg2 ; | |
14958 | PyObject * obj0 = 0 ; | |
14959 | PyObject * obj1 = 0 ; | |
14960 | char *kwnames[] = { | |
14961 | (char *) "self",(char *) "value", NULL | |
14962 | }; | |
14963 | ||
14964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
14965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
14966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14967 | { | |
14968 | arg2 = (int)(SWIG_As_int(obj1)); | |
14969 | if (SWIG_arg_fail(2)) SWIG_fail; | |
14970 | } | |
14971 | { | |
14972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14973 | (arg1)->SetValue(arg2); | |
14974 | ||
14975 | wxPyEndAllowThreads(__tstate); | |
14976 | if (PyErr_Occurred()) SWIG_fail; | |
14977 | } | |
14978 | Py_INCREF(Py_None); resultobj = Py_None; | |
14979 | return resultobj; | |
14980 | fail: | |
14981 | return NULL; | |
14982 | } | |
14983 | ||
14984 | ||
14985 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
14986 | PyObject *resultobj; | |
14987 | wxSlider *arg1 = (wxSlider *) 0 ; | |
14988 | int arg2 ; | |
14989 | int arg3 ; | |
14990 | PyObject * obj0 = 0 ; | |
14991 | PyObject * obj1 = 0 ; | |
14992 | PyObject * obj2 = 0 ; | |
14993 | char *kwnames[] = { | |
14994 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
14995 | }; | |
14996 | ||
14997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
14999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15000 | { | |
15001 | arg2 = (int)(SWIG_As_int(obj1)); | |
15002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15003 | } | |
15004 | { | |
15005 | arg3 = (int)(SWIG_As_int(obj2)); | |
15006 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15007 | } | |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | (arg1)->SetRange(arg2,arg3); | |
15011 | ||
15012 | wxPyEndAllowThreads(__tstate); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
15015 | Py_INCREF(Py_None); resultobj = Py_None; | |
15016 | return resultobj; | |
15017 | fail: | |
15018 | return NULL; | |
15019 | } | |
15020 | ||
15021 | ||
15022 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
15023 | PyObject *resultobj; | |
15024 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15025 | int result; | |
15026 | PyObject * obj0 = 0 ; | |
15027 | char *kwnames[] = { | |
15028 | (char *) "self", NULL | |
15029 | }; | |
15030 | ||
15031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
15032 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15033 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15034 | { | |
15035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15036 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
15037 | ||
15038 | wxPyEndAllowThreads(__tstate); | |
15039 | if (PyErr_Occurred()) SWIG_fail; | |
15040 | } | |
15041 | { | |
15042 | resultobj = SWIG_From_int((int)(result)); | |
15043 | } | |
15044 | return resultobj; | |
15045 | fail: | |
15046 | return NULL; | |
15047 | } | |
15048 | ||
15049 | ||
15050 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
15051 | PyObject *resultobj; | |
15052 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15053 | int result; | |
15054 | PyObject * obj0 = 0 ; | |
15055 | char *kwnames[] = { | |
15056 | (char *) "self", NULL | |
15057 | }; | |
15058 | ||
15059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
15060 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15061 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15062 | { | |
15063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15064 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
15065 | ||
15066 | wxPyEndAllowThreads(__tstate); | |
15067 | if (PyErr_Occurred()) SWIG_fail; | |
15068 | } | |
15069 | { | |
15070 | resultobj = SWIG_From_int((int)(result)); | |
15071 | } | |
15072 | return resultobj; | |
15073 | fail: | |
15074 | return NULL; | |
15075 | } | |
15076 | ||
15077 | ||
15078 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
15079 | PyObject *resultobj; | |
15080 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15081 | int arg2 ; | |
15082 | PyObject * obj0 = 0 ; | |
15083 | PyObject * obj1 = 0 ; | |
15084 | char *kwnames[] = { | |
15085 | (char *) "self",(char *) "minValue", NULL | |
15086 | }; | |
15087 | ||
15088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
15089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15091 | { | |
15092 | arg2 = (int)(SWIG_As_int(obj1)); | |
15093 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15094 | } | |
15095 | { | |
15096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15097 | (arg1)->SetMin(arg2); | |
15098 | ||
15099 | wxPyEndAllowThreads(__tstate); | |
15100 | if (PyErr_Occurred()) SWIG_fail; | |
15101 | } | |
15102 | Py_INCREF(Py_None); resultobj = Py_None; | |
15103 | return resultobj; | |
15104 | fail: | |
15105 | return NULL; | |
15106 | } | |
15107 | ||
15108 | ||
15109 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { | |
15110 | PyObject *resultobj; | |
15111 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15112 | int arg2 ; | |
15113 | PyObject * obj0 = 0 ; | |
15114 | PyObject * obj1 = 0 ; | |
15115 | char *kwnames[] = { | |
15116 | (char *) "self",(char *) "maxValue", NULL | |
15117 | }; | |
15118 | ||
15119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
15120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15122 | { | |
15123 | arg2 = (int)(SWIG_As_int(obj1)); | |
15124 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15125 | } | |
15126 | { | |
15127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15128 | (arg1)->SetMax(arg2); | |
15129 | ||
15130 | wxPyEndAllowThreads(__tstate); | |
15131 | if (PyErr_Occurred()) SWIG_fail; | |
15132 | } | |
15133 | Py_INCREF(Py_None); resultobj = Py_None; | |
15134 | return resultobj; | |
15135 | fail: | |
15136 | return NULL; | |
15137 | } | |
15138 | ||
15139 | ||
15140 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15141 | PyObject *resultobj; | |
15142 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15143 | int arg2 ; | |
15144 | PyObject * obj0 = 0 ; | |
15145 | PyObject * obj1 = 0 ; | |
15146 | char *kwnames[] = { | |
15147 | (char *) "self",(char *) "lineSize", NULL | |
15148 | }; | |
15149 | ||
15150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
15151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15153 | { | |
15154 | arg2 = (int)(SWIG_As_int(obj1)); | |
15155 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15156 | } | |
15157 | { | |
15158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15159 | (arg1)->SetLineSize(arg2); | |
15160 | ||
15161 | wxPyEndAllowThreads(__tstate); | |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
15164 | Py_INCREF(Py_None); resultobj = Py_None; | |
15165 | return resultobj; | |
15166 | fail: | |
15167 | return NULL; | |
15168 | } | |
15169 | ||
15170 | ||
15171 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15172 | PyObject *resultobj; | |
15173 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15174 | int arg2 ; | |
15175 | PyObject * obj0 = 0 ; | |
15176 | PyObject * obj1 = 0 ; | |
15177 | char *kwnames[] = { | |
15178 | (char *) "self",(char *) "pageSize", NULL | |
15179 | }; | |
15180 | ||
15181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
15182 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15183 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15184 | { | |
15185 | arg2 = (int)(SWIG_As_int(obj1)); | |
15186 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15187 | } | |
15188 | { | |
15189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15190 | (arg1)->SetPageSize(arg2); | |
15191 | ||
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | Py_INCREF(Py_None); resultobj = Py_None; | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
15202 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15203 | PyObject *resultobj; | |
15204 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15205 | int result; | |
15206 | PyObject * obj0 = 0 ; | |
15207 | char *kwnames[] = { | |
15208 | (char *) "self", NULL | |
15209 | }; | |
15210 | ||
15211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
15212 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15213 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15214 | { | |
15215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15216 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
15217 | ||
15218 | wxPyEndAllowThreads(__tstate); | |
15219 | if (PyErr_Occurred()) SWIG_fail; | |
15220 | } | |
15221 | { | |
15222 | resultobj = SWIG_From_int((int)(result)); | |
15223 | } | |
15224 | return resultobj; | |
15225 | fail: | |
15226 | return NULL; | |
15227 | } | |
15228 | ||
15229 | ||
15230 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
15231 | PyObject *resultobj; | |
15232 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15233 | int result; | |
15234 | PyObject * obj0 = 0 ; | |
15235 | char *kwnames[] = { | |
15236 | (char *) "self", NULL | |
15237 | }; | |
15238 | ||
15239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
15240 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15241 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15242 | { | |
15243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15244 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
15245 | ||
15246 | wxPyEndAllowThreads(__tstate); | |
15247 | if (PyErr_Occurred()) SWIG_fail; | |
15248 | } | |
15249 | { | |
15250 | resultobj = SWIG_From_int((int)(result)); | |
15251 | } | |
15252 | return resultobj; | |
15253 | fail: | |
15254 | return NULL; | |
15255 | } | |
15256 | ||
15257 | ||
15258 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
15259 | PyObject *resultobj; | |
15260 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15261 | int arg2 ; | |
15262 | PyObject * obj0 = 0 ; | |
15263 | PyObject * obj1 = 0 ; | |
15264 | char *kwnames[] = { | |
15265 | (char *) "self",(char *) "lenPixels", NULL | |
15266 | }; | |
15267 | ||
15268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
15269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15271 | { | |
15272 | arg2 = (int)(SWIG_As_int(obj1)); | |
15273 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15274 | } | |
15275 | { | |
15276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15277 | (arg1)->SetThumbLength(arg2); | |
15278 | ||
15279 | wxPyEndAllowThreads(__tstate); | |
15280 | if (PyErr_Occurred()) SWIG_fail; | |
15281 | } | |
15282 | Py_INCREF(Py_None); resultobj = Py_None; | |
15283 | return resultobj; | |
15284 | fail: | |
15285 | return NULL; | |
15286 | } | |
15287 | ||
15288 | ||
15289 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { | |
15290 | PyObject *resultobj; | |
15291 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15292 | int result; | |
15293 | PyObject * obj0 = 0 ; | |
15294 | char *kwnames[] = { | |
15295 | (char *) "self", NULL | |
15296 | }; | |
15297 | ||
15298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
15299 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15300 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15301 | { | |
15302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15303 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
15304 | ||
15305 | wxPyEndAllowThreads(__tstate); | |
15306 | if (PyErr_Occurred()) SWIG_fail; | |
15307 | } | |
15308 | { | |
15309 | resultobj = SWIG_From_int((int)(result)); | |
15310 | } | |
15311 | return resultobj; | |
15312 | fail: | |
15313 | return NULL; | |
15314 | } | |
15315 | ||
15316 | ||
15317 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { | |
15318 | PyObject *resultobj; | |
15319 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15320 | int arg2 ; | |
15321 | int arg3 = (int) 1 ; | |
15322 | PyObject * obj0 = 0 ; | |
15323 | PyObject * obj1 = 0 ; | |
15324 | PyObject * obj2 = 0 ; | |
15325 | char *kwnames[] = { | |
15326 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
15327 | }; | |
15328 | ||
15329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15332 | { | |
15333 | arg2 = (int)(SWIG_As_int(obj1)); | |
15334 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15335 | } | |
15336 | if (obj2) { | |
15337 | { | |
15338 | arg3 = (int)(SWIG_As_int(obj2)); | |
15339 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15340 | } | |
15341 | } | |
15342 | { | |
15343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15344 | (arg1)->SetTickFreq(arg2,arg3); | |
15345 | ||
15346 | wxPyEndAllowThreads(__tstate); | |
15347 | if (PyErr_Occurred()) SWIG_fail; | |
15348 | } | |
15349 | Py_INCREF(Py_None); resultobj = Py_None; | |
15350 | return resultobj; | |
15351 | fail: | |
15352 | return NULL; | |
15353 | } | |
15354 | ||
15355 | ||
15356 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { | |
15357 | PyObject *resultobj; | |
15358 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15359 | int result; | |
15360 | PyObject * obj0 = 0 ; | |
15361 | char *kwnames[] = { | |
15362 | (char *) "self", NULL | |
15363 | }; | |
15364 | ||
15365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
15366 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15367 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15368 | { | |
15369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15370 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
15371 | ||
15372 | wxPyEndAllowThreads(__tstate); | |
15373 | if (PyErr_Occurred()) SWIG_fail; | |
15374 | } | |
15375 | { | |
15376 | resultobj = SWIG_From_int((int)(result)); | |
15377 | } | |
15378 | return resultobj; | |
15379 | fail: | |
15380 | return NULL; | |
15381 | } | |
15382 | ||
15383 | ||
15384 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { | |
15385 | PyObject *resultobj; | |
15386 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15387 | PyObject * obj0 = 0 ; | |
15388 | char *kwnames[] = { | |
15389 | (char *) "self", NULL | |
15390 | }; | |
15391 | ||
15392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
15393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15395 | { | |
15396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15397 | (arg1)->ClearTicks(); | |
15398 | ||
15399 | wxPyEndAllowThreads(__tstate); | |
15400 | if (PyErr_Occurred()) SWIG_fail; | |
15401 | } | |
15402 | Py_INCREF(Py_None); resultobj = Py_None; | |
15403 | return resultobj; | |
15404 | fail: | |
15405 | return NULL; | |
15406 | } | |
15407 | ||
15408 | ||
15409 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { | |
15410 | PyObject *resultobj; | |
15411 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15412 | int arg2 ; | |
15413 | PyObject * obj0 = 0 ; | |
15414 | PyObject * obj1 = 0 ; | |
15415 | char *kwnames[] = { | |
15416 | (char *) "self",(char *) "tickPos", NULL | |
15417 | }; | |
15418 | ||
15419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
15420 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15421 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15422 | { | |
15423 | arg2 = (int)(SWIG_As_int(obj1)); | |
15424 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15425 | } | |
15426 | { | |
15427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15428 | (arg1)->SetTick(arg2); | |
15429 | ||
15430 | wxPyEndAllowThreads(__tstate); | |
15431 | if (PyErr_Occurred()) SWIG_fail; | |
15432 | } | |
15433 | Py_INCREF(Py_None); resultobj = Py_None; | |
15434 | return resultobj; | |
15435 | fail: | |
15436 | return NULL; | |
15437 | } | |
15438 | ||
15439 | ||
15440 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { | |
15441 | PyObject *resultobj; | |
15442 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15443 | PyObject * obj0 = 0 ; | |
15444 | char *kwnames[] = { | |
15445 | (char *) "self", NULL | |
15446 | }; | |
15447 | ||
15448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
15449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15451 | { | |
15452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15453 | (arg1)->ClearSel(); | |
15454 | ||
15455 | wxPyEndAllowThreads(__tstate); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | Py_INCREF(Py_None); resultobj = Py_None; | |
15459 | return resultobj; | |
15460 | fail: | |
15461 | return NULL; | |
15462 | } | |
15463 | ||
15464 | ||
15465 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { | |
15466 | PyObject *resultobj; | |
15467 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15468 | int result; | |
15469 | PyObject * obj0 = 0 ; | |
15470 | char *kwnames[] = { | |
15471 | (char *) "self", NULL | |
15472 | }; | |
15473 | ||
15474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
15475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15477 | { | |
15478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15479 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
15480 | ||
15481 | wxPyEndAllowThreads(__tstate); | |
15482 | if (PyErr_Occurred()) SWIG_fail; | |
15483 | } | |
15484 | { | |
15485 | resultobj = SWIG_From_int((int)(result)); | |
15486 | } | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { | |
15494 | PyObject *resultobj; | |
15495 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15496 | int result; | |
15497 | PyObject * obj0 = 0 ; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "self", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
15503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15505 | { | |
15506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15507 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
15508 | ||
15509 | wxPyEndAllowThreads(__tstate); | |
15510 | if (PyErr_Occurred()) SWIG_fail; | |
15511 | } | |
15512 | { | |
15513 | resultobj = SWIG_From_int((int)(result)); | |
15514 | } | |
15515 | return resultobj; | |
15516 | fail: | |
15517 | return NULL; | |
15518 | } | |
15519 | ||
15520 | ||
15521 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
15522 | PyObject *resultobj; | |
15523 | wxSlider *arg1 = (wxSlider *) 0 ; | |
15524 | int arg2 ; | |
15525 | int arg3 ; | |
15526 | PyObject * obj0 = 0 ; | |
15527 | PyObject * obj1 = 0 ; | |
15528 | PyObject * obj2 = 0 ; | |
15529 | char *kwnames[] = { | |
15530 | (char *) "self",(char *) "min",(char *) "max", NULL | |
15531 | }; | |
15532 | ||
15533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); | |
15535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15536 | { | |
15537 | arg2 = (int)(SWIG_As_int(obj1)); | |
15538 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15539 | } | |
15540 | { | |
15541 | arg3 = (int)(SWIG_As_int(obj2)); | |
15542 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15543 | } | |
15544 | { | |
15545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15546 | (arg1)->SetSelection(arg2,arg3); | |
15547 | ||
15548 | wxPyEndAllowThreads(__tstate); | |
15549 | if (PyErr_Occurred()) SWIG_fail; | |
15550 | } | |
15551 | Py_INCREF(Py_None); resultobj = Py_None; | |
15552 | return resultobj; | |
15553 | fail: | |
15554 | return NULL; | |
15555 | } | |
15556 | ||
15557 | ||
15558 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
15559 | PyObject *resultobj; | |
15560 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15561 | wxVisualAttributes result; | |
15562 | PyObject * obj0 = 0 ; | |
15563 | char *kwnames[] = { | |
15564 | (char *) "variant", NULL | |
15565 | }; | |
15566 | ||
15567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15568 | if (obj0) { | |
15569 | { | |
15570 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
15571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15572 | } | |
15573 | } | |
15574 | { | |
15575 | if (!wxPyCheckForApp()) SWIG_fail; | |
15576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15577 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15578 | ||
15579 | wxPyEndAllowThreads(__tstate); | |
15580 | if (PyErr_Occurred()) SWIG_fail; | |
15581 | } | |
15582 | { | |
15583 | wxVisualAttributes * resultptr; | |
15584 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
15585 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15586 | } | |
15587 | return resultobj; | |
15588 | fail: | |
15589 | return NULL; | |
15590 | } | |
15591 | ||
15592 | ||
15593 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { | |
15594 | PyObject *obj; | |
15595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15596 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
15597 | Py_INCREF(obj); | |
15598 | return Py_BuildValue((char *)""); | |
15599 | } | |
15600 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { | |
15601 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
15602 | return 1; | |
15603 | } | |
15604 | ||
15605 | ||
15606 | static PyObject *_wrap_ToggleButtonNameStr_get(void) { | |
15607 | PyObject *pyobj; | |
15608 | ||
15609 | { | |
15610 | #if wxUSE_UNICODE | |
15611 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15612 | #else | |
15613 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15614 | #endif | |
15615 | } | |
15616 | return pyobj; | |
15617 | } | |
15618 | ||
15619 | ||
15620 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
15621 | PyObject *resultobj; | |
15622 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15623 | int arg2 = (int) -1 ; | |
15624 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15625 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15626 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
15627 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15628 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15629 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15630 | long arg6 = (long) 0 ; | |
15631 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
15632 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
15633 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
15634 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15635 | wxToggleButton *result; | |
15636 | bool temp3 = false ; | |
15637 | wxPoint temp4 ; | |
15638 | wxSize temp5 ; | |
15639 | bool temp8 = false ; | |
15640 | PyObject * obj0 = 0 ; | |
15641 | PyObject * obj1 = 0 ; | |
15642 | PyObject * obj2 = 0 ; | |
15643 | PyObject * obj3 = 0 ; | |
15644 | PyObject * obj4 = 0 ; | |
15645 | PyObject * obj5 = 0 ; | |
15646 | PyObject * obj6 = 0 ; | |
15647 | PyObject * obj7 = 0 ; | |
15648 | char *kwnames[] = { | |
15649 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15650 | }; | |
15651 | ||
15652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
15653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15655 | if (obj1) { | |
15656 | { | |
15657 | arg2 = (int)(SWIG_As_int(obj1)); | |
15658 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15659 | } | |
15660 | } | |
15661 | if (obj2) { | |
15662 | { | |
15663 | arg3 = wxString_in_helper(obj2); | |
15664 | if (arg3 == NULL) SWIG_fail; | |
15665 | temp3 = true; | |
15666 | } | |
15667 | } | |
15668 | if (obj3) { | |
15669 | { | |
15670 | arg4 = &temp4; | |
15671 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15672 | } | |
15673 | } | |
15674 | if (obj4) { | |
15675 | { | |
15676 | arg5 = &temp5; | |
15677 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15678 | } | |
15679 | } | |
15680 | if (obj5) { | |
15681 | { | |
15682 | arg6 = (long)(SWIG_As_long(obj5)); | |
15683 | if (SWIG_arg_fail(6)) SWIG_fail; | |
15684 | } | |
15685 | } | |
15686 | if (obj6) { | |
15687 | { | |
15688 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15689 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15690 | if (arg7 == NULL) { | |
15691 | SWIG_null_ref("wxValidator"); | |
15692 | } | |
15693 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15694 | } | |
15695 | } | |
15696 | if (obj7) { | |
15697 | { | |
15698 | arg8 = wxString_in_helper(obj7); | |
15699 | if (arg8 == NULL) SWIG_fail; | |
15700 | temp8 = true; | |
15701 | } | |
15702 | } | |
15703 | { | |
15704 | if (!wxPyCheckForApp()) SWIG_fail; | |
15705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15706 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
15707 | ||
15708 | wxPyEndAllowThreads(__tstate); | |
15709 | if (PyErr_Occurred()) SWIG_fail; | |
15710 | } | |
15711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
15712 | { | |
15713 | if (temp3) | |
15714 | delete arg3; | |
15715 | } | |
15716 | { | |
15717 | if (temp8) | |
15718 | delete arg8; | |
15719 | } | |
15720 | return resultobj; | |
15721 | fail: | |
15722 | { | |
15723 | if (temp3) | |
15724 | delete arg3; | |
15725 | } | |
15726 | { | |
15727 | if (temp8) | |
15728 | delete arg8; | |
15729 | } | |
15730 | return NULL; | |
15731 | } | |
15732 | ||
15733 | ||
15734 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
15735 | PyObject *resultobj; | |
15736 | wxToggleButton *result; | |
15737 | char *kwnames[] = { | |
15738 | NULL | |
15739 | }; | |
15740 | ||
15741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
15742 | { | |
15743 | if (!wxPyCheckForApp()) SWIG_fail; | |
15744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15745 | result = (wxToggleButton *)new wxToggleButton(); | |
15746 | ||
15747 | wxPyEndAllowThreads(__tstate); | |
15748 | if (PyErr_Occurred()) SWIG_fail; | |
15749 | } | |
15750 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
15751 | return resultobj; | |
15752 | fail: | |
15753 | return NULL; | |
15754 | } | |
15755 | ||
15756 | ||
15757 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
15758 | PyObject *resultobj; | |
15759 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15760 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15761 | int arg3 = (int) -1 ; | |
15762 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15763 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15764 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
15765 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15766 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15767 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15768 | long arg7 = (long) 0 ; | |
15769 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
15770 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
15771 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
15772 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
15773 | bool result; | |
15774 | bool temp4 = false ; | |
15775 | wxPoint temp5 ; | |
15776 | wxSize temp6 ; | |
15777 | bool temp9 = false ; | |
15778 | PyObject * obj0 = 0 ; | |
15779 | PyObject * obj1 = 0 ; | |
15780 | PyObject * obj2 = 0 ; | |
15781 | PyObject * obj3 = 0 ; | |
15782 | PyObject * obj4 = 0 ; | |
15783 | PyObject * obj5 = 0 ; | |
15784 | PyObject * obj6 = 0 ; | |
15785 | PyObject * obj7 = 0 ; | |
15786 | PyObject * obj8 = 0 ; | |
15787 | char *kwnames[] = { | |
15788 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15789 | }; | |
15790 | ||
15791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
15792 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); | |
15793 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15794 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15795 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15796 | if (obj2) { | |
15797 | { | |
15798 | arg3 = (int)(SWIG_As_int(obj2)); | |
15799 | if (SWIG_arg_fail(3)) SWIG_fail; | |
15800 | } | |
15801 | } | |
15802 | if (obj3) { | |
15803 | { | |
15804 | arg4 = wxString_in_helper(obj3); | |
15805 | if (arg4 == NULL) SWIG_fail; | |
15806 | temp4 = true; | |
15807 | } | |
15808 | } | |
15809 | if (obj4) { | |
15810 | { | |
15811 | arg5 = &temp5; | |
15812 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15813 | } | |
15814 | } | |
15815 | if (obj5) { | |
15816 | { | |
15817 | arg6 = &temp6; | |
15818 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15819 | } | |
15820 | } | |
15821 | if (obj6) { | |
15822 | { | |
15823 | arg7 = (long)(SWIG_As_long(obj6)); | |
15824 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15825 | } | |
15826 | } | |
15827 | if (obj7) { | |
15828 | { | |
15829 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15830 | if (SWIG_arg_fail(8)) SWIG_fail; | |
15831 | if (arg8 == NULL) { | |
15832 | SWIG_null_ref("wxValidator"); | |
15833 | } | |
15834 | if (SWIG_arg_fail(8)) SWIG_fail; | |
15835 | } | |
15836 | } | |
15837 | if (obj8) { | |
15838 | { | |
15839 | arg9 = wxString_in_helper(obj8); | |
15840 | if (arg9 == NULL) SWIG_fail; | |
15841 | temp9 = true; | |
15842 | } | |
15843 | } | |
15844 | { | |
15845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15846 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
15847 | ||
15848 | wxPyEndAllowThreads(__tstate); | |
15849 | if (PyErr_Occurred()) SWIG_fail; | |
15850 | } | |
15851 | { | |
15852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15853 | } | |
15854 | { | |
15855 | if (temp4) | |
15856 | delete arg4; | |
15857 | } | |
15858 | { | |
15859 | if (temp9) | |
15860 | delete arg9; | |
15861 | } | |
15862 | return resultobj; | |
15863 | fail: | |
15864 | { | |
15865 | if (temp4) | |
15866 | delete arg4; | |
15867 | } | |
15868 | { | |
15869 | if (temp9) | |
15870 | delete arg9; | |
15871 | } | |
15872 | return NULL; | |
15873 | } | |
15874 | ||
15875 | ||
15876 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
15877 | PyObject *resultobj; | |
15878 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15879 | bool arg2 ; | |
15880 | PyObject * obj0 = 0 ; | |
15881 | PyObject * obj1 = 0 ; | |
15882 | char *kwnames[] = { | |
15883 | (char *) "self",(char *) "value", NULL | |
15884 | }; | |
15885 | ||
15886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15887 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); | |
15888 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15889 | { | |
15890 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
15891 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15892 | } | |
15893 | { | |
15894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15895 | (arg1)->SetValue(arg2); | |
15896 | ||
15897 | wxPyEndAllowThreads(__tstate); | |
15898 | if (PyErr_Occurred()) SWIG_fail; | |
15899 | } | |
15900 | Py_INCREF(Py_None); resultobj = Py_None; | |
15901 | return resultobj; | |
15902 | fail: | |
15903 | return NULL; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
15908 | PyObject *resultobj; | |
15909 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15910 | bool result; | |
15911 | PyObject * obj0 = 0 ; | |
15912 | char *kwnames[] = { | |
15913 | (char *) "self", NULL | |
15914 | }; | |
15915 | ||
15916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
15917 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); | |
15918 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15919 | { | |
15920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15921 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
15922 | ||
15923 | wxPyEndAllowThreads(__tstate); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | } | |
15926 | { | |
15927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15928 | } | |
15929 | return resultobj; | |
15930 | fail: | |
15931 | return NULL; | |
15932 | } | |
15933 | ||
15934 | ||
15935 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
15936 | PyObject *resultobj; | |
15937 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
15938 | wxString *arg2 = 0 ; | |
15939 | bool temp2 = false ; | |
15940 | PyObject * obj0 = 0 ; | |
15941 | PyObject * obj1 = 0 ; | |
15942 | char *kwnames[] = { | |
15943 | (char *) "self",(char *) "label", NULL | |
15944 | }; | |
15945 | ||
15946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15947 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); | |
15948 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15949 | { | |
15950 | arg2 = wxString_in_helper(obj1); | |
15951 | if (arg2 == NULL) SWIG_fail; | |
15952 | temp2 = true; | |
15953 | } | |
15954 | { | |
15955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15956 | (arg1)->SetLabel((wxString const &)*arg2); | |
15957 | ||
15958 | wxPyEndAllowThreads(__tstate); | |
15959 | if (PyErr_Occurred()) SWIG_fail; | |
15960 | } | |
15961 | Py_INCREF(Py_None); resultobj = Py_None; | |
15962 | { | |
15963 | if (temp2) | |
15964 | delete arg2; | |
15965 | } | |
15966 | return resultobj; | |
15967 | fail: | |
15968 | { | |
15969 | if (temp2) | |
15970 | delete arg2; | |
15971 | } | |
15972 | return NULL; | |
15973 | } | |
15974 | ||
15975 | ||
15976 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
15977 | PyObject *resultobj; | |
15978 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
15979 | wxVisualAttributes result; | |
15980 | PyObject * obj0 = 0 ; | |
15981 | char *kwnames[] = { | |
15982 | (char *) "variant", NULL | |
15983 | }; | |
15984 | ||
15985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15986 | if (obj0) { | |
15987 | { | |
15988 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
15989 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15990 | } | |
15991 | } | |
15992 | { | |
15993 | if (!wxPyCheckForApp()) SWIG_fail; | |
15994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15995 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15996 | ||
15997 | wxPyEndAllowThreads(__tstate); | |
15998 | if (PyErr_Occurred()) SWIG_fail; | |
15999 | } | |
16000 | { | |
16001 | wxVisualAttributes * resultptr; | |
16002 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
16003 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
16004 | } | |
16005 | return resultobj; | |
16006 | fail: | |
16007 | return NULL; | |
16008 | } | |
16009 | ||
16010 | ||
16011 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { | |
16012 | PyObject *obj; | |
16013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16014 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
16015 | Py_INCREF(obj); | |
16016 | return Py_BuildValue((char *)""); | |
16017 | } | |
16018 | static int _wrap_NotebookNameStr_set(PyObject *) { | |
16019 | PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only."); | |
16020 | return 1; | |
16021 | } | |
16022 | ||
16023 | ||
16024 | static PyObject *_wrap_NotebookNameStr_get(void) { | |
16025 | PyObject *pyobj; | |
16026 | ||
16027 | { | |
16028 | #if wxUSE_UNICODE | |
16029 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); | |
16030 | #else | |
16031 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); | |
16032 | #endif | |
16033 | } | |
16034 | return pyobj; | |
16035 | } | |
16036 | ||
16037 | ||
16038 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
16039 | PyObject *resultobj; | |
16040 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16041 | size_t result; | |
16042 | PyObject * obj0 = 0 ; | |
16043 | char *kwnames[] = { | |
16044 | (char *) "self", NULL | |
16045 | }; | |
16046 | ||
16047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; | |
16048 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16049 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16050 | { | |
16051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16052 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); | |
16053 | ||
16054 | wxPyEndAllowThreads(__tstate); | |
16055 | if (PyErr_Occurred()) SWIG_fail; | |
16056 | } | |
16057 | { | |
16058 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
16059 | } | |
16060 | return resultobj; | |
16061 | fail: | |
16062 | return NULL; | |
16063 | } | |
16064 | ||
16065 | ||
16066 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16067 | PyObject *resultobj; | |
16068 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16069 | size_t arg2 ; | |
16070 | wxWindow *result; | |
16071 | PyObject * obj0 = 0 ; | |
16072 | PyObject * obj1 = 0 ; | |
16073 | char *kwnames[] = { | |
16074 | (char *) "self",(char *) "n", NULL | |
16075 | }; | |
16076 | ||
16077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
16078 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16079 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16080 | { | |
16081 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16082 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16083 | } | |
16084 | { | |
16085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16086 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
16087 | ||
16088 | wxPyEndAllowThreads(__tstate); | |
16089 | if (PyErr_Occurred()) SWIG_fail; | |
16090 | } | |
16091 | { | |
16092 | resultobj = wxPyMake_wxObject(result, 0); | |
16093 | } | |
16094 | return resultobj; | |
16095 | fail: | |
16096 | return NULL; | |
16097 | } | |
16098 | ||
16099 | ||
16100 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16101 | PyObject *resultobj; | |
16102 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16103 | wxWindow *result; | |
16104 | PyObject * obj0 = 0 ; | |
16105 | char *kwnames[] = { | |
16106 | (char *) "self", NULL | |
16107 | }; | |
16108 | ||
16109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; | |
16110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16112 | { | |
16113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16114 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); | |
16115 | ||
16116 | wxPyEndAllowThreads(__tstate); | |
16117 | if (PyErr_Occurred()) SWIG_fail; | |
16118 | } | |
16119 | { | |
16120 | resultobj = wxPyMake_wxObject(result, 0); | |
16121 | } | |
16122 | return resultobj; | |
16123 | fail: | |
16124 | return NULL; | |
16125 | } | |
16126 | ||
16127 | ||
16128 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
16129 | PyObject *resultobj; | |
16130 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16131 | int result; | |
16132 | PyObject * obj0 = 0 ; | |
16133 | char *kwnames[] = { | |
16134 | (char *) "self", NULL | |
16135 | }; | |
16136 | ||
16137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; | |
16138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16140 | { | |
16141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16142 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); | |
16143 | ||
16144 | wxPyEndAllowThreads(__tstate); | |
16145 | if (PyErr_Occurred()) SWIG_fail; | |
16146 | } | |
16147 | { | |
16148 | resultobj = SWIG_From_int((int)(result)); | |
16149 | } | |
16150 | return resultobj; | |
16151 | fail: | |
16152 | return NULL; | |
16153 | } | |
16154 | ||
16155 | ||
16156 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { | |
16157 | PyObject *resultobj; | |
16158 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16159 | size_t arg2 ; | |
16160 | wxString *arg3 = 0 ; | |
16161 | bool result; | |
16162 | bool temp3 = false ; | |
16163 | PyObject * obj0 = 0 ; | |
16164 | PyObject * obj1 = 0 ; | |
16165 | PyObject * obj2 = 0 ; | |
16166 | char *kwnames[] = { | |
16167 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
16168 | }; | |
16169 | ||
16170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16171 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16172 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16173 | { | |
16174 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16175 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16176 | } | |
16177 | { | |
16178 | arg3 = wxString_in_helper(obj2); | |
16179 | if (arg3 == NULL) SWIG_fail; | |
16180 | temp3 = true; | |
16181 | } | |
16182 | { | |
16183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16184 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
16185 | ||
16186 | wxPyEndAllowThreads(__tstate); | |
16187 | if (PyErr_Occurred()) SWIG_fail; | |
16188 | } | |
16189 | { | |
16190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16191 | } | |
16192 | { | |
16193 | if (temp3) | |
16194 | delete arg3; | |
16195 | } | |
16196 | return resultobj; | |
16197 | fail: | |
16198 | { | |
16199 | if (temp3) | |
16200 | delete arg3; | |
16201 | } | |
16202 | return NULL; | |
16203 | } | |
16204 | ||
16205 | ||
16206 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { | |
16207 | PyObject *resultobj; | |
16208 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16209 | size_t arg2 ; | |
16210 | wxString result; | |
16211 | PyObject * obj0 = 0 ; | |
16212 | PyObject * obj1 = 0 ; | |
16213 | char *kwnames[] = { | |
16214 | (char *) "self",(char *) "n", NULL | |
16215 | }; | |
16216 | ||
16217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
16218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16220 | { | |
16221 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16222 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16223 | } | |
16224 | { | |
16225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16226 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); | |
16227 | ||
16228 | wxPyEndAllowThreads(__tstate); | |
16229 | if (PyErr_Occurred()) SWIG_fail; | |
16230 | } | |
16231 | { | |
16232 | #if wxUSE_UNICODE | |
16233 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16234 | #else | |
16235 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16236 | #endif | |
16237 | } | |
16238 | return resultobj; | |
16239 | fail: | |
16240 | return NULL; | |
16241 | } | |
16242 | ||
16243 | ||
16244 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
16245 | PyObject *resultobj; | |
16246 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16247 | wxImageList *arg2 = (wxImageList *) 0 ; | |
16248 | PyObject * obj0 = 0 ; | |
16249 | PyObject * obj1 = 0 ; | |
16250 | char *kwnames[] = { | |
16251 | (char *) "self",(char *) "imageList", NULL | |
16252 | }; | |
16253 | ||
16254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
16255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16257 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
16258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16259 | { | |
16260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16261 | (arg1)->SetImageList(arg2); | |
16262 | ||
16263 | wxPyEndAllowThreads(__tstate); | |
16264 | if (PyErr_Occurred()) SWIG_fail; | |
16265 | } | |
16266 | Py_INCREF(Py_None); resultobj = Py_None; | |
16267 | return resultobj; | |
16268 | fail: | |
16269 | return NULL; | |
16270 | } | |
16271 | ||
16272 | ||
16273 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
16274 | PyObject *resultobj; | |
16275 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16276 | wxImageList *arg2 = (wxImageList *) 0 ; | |
16277 | PyObject * obj0 = 0 ; | |
16278 | PyObject * obj1 = 0 ; | |
16279 | char *kwnames[] = { | |
16280 | (char *) "self",(char *) "imageList", NULL | |
16281 | }; | |
16282 | ||
16283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
16284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16286 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
16287 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16288 | { | |
16289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16290 | (arg1)->AssignImageList(arg2); | |
16291 | ||
16292 | wxPyEndAllowThreads(__tstate); | |
16293 | if (PyErr_Occurred()) SWIG_fail; | |
16294 | } | |
16295 | Py_INCREF(Py_None); resultobj = Py_None; | |
16296 | return resultobj; | |
16297 | fail: | |
16298 | return NULL; | |
16299 | } | |
16300 | ||
16301 | ||
16302 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
16303 | PyObject *resultobj; | |
16304 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16305 | wxImageList *result; | |
16306 | PyObject * obj0 = 0 ; | |
16307 | char *kwnames[] = { | |
16308 | (char *) "self", NULL | |
16309 | }; | |
16310 | ||
16311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; | |
16312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16314 | { | |
16315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16316 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); | |
16317 | ||
16318 | wxPyEndAllowThreads(__tstate); | |
16319 | if (PyErr_Occurred()) SWIG_fail; | |
16320 | } | |
16321 | { | |
16322 | resultobj = wxPyMake_wxObject(result, 0); | |
16323 | } | |
16324 | return resultobj; | |
16325 | fail: | |
16326 | return NULL; | |
16327 | } | |
16328 | ||
16329 | ||
16330 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16331 | PyObject *resultobj; | |
16332 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16333 | size_t arg2 ; | |
16334 | int result; | |
16335 | PyObject * obj0 = 0 ; | |
16336 | PyObject * obj1 = 0 ; | |
16337 | char *kwnames[] = { | |
16338 | (char *) "self",(char *) "n", NULL | |
16339 | }; | |
16340 | ||
16341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
16342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16344 | { | |
16345 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16346 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16347 | } | |
16348 | { | |
16349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16350 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); | |
16351 | ||
16352 | wxPyEndAllowThreads(__tstate); | |
16353 | if (PyErr_Occurred()) SWIG_fail; | |
16354 | } | |
16355 | { | |
16356 | resultobj = SWIG_From_int((int)(result)); | |
16357 | } | |
16358 | return resultobj; | |
16359 | fail: | |
16360 | return NULL; | |
16361 | } | |
16362 | ||
16363 | ||
16364 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16365 | PyObject *resultobj; | |
16366 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16367 | size_t arg2 ; | |
16368 | int arg3 ; | |
16369 | bool result; | |
16370 | PyObject * obj0 = 0 ; | |
16371 | PyObject * obj1 = 0 ; | |
16372 | PyObject * obj2 = 0 ; | |
16373 | char *kwnames[] = { | |
16374 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
16375 | }; | |
16376 | ||
16377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16380 | { | |
16381 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16382 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16383 | } | |
16384 | { | |
16385 | arg3 = (int)(SWIG_As_int(obj2)); | |
16386 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16387 | } | |
16388 | { | |
16389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16390 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
16391 | ||
16392 | wxPyEndAllowThreads(__tstate); | |
16393 | if (PyErr_Occurred()) SWIG_fail; | |
16394 | } | |
16395 | { | |
16396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16397 | } | |
16398 | return resultobj; | |
16399 | fail: | |
16400 | return NULL; | |
16401 | } | |
16402 | ||
16403 | ||
16404 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
16405 | PyObject *resultobj; | |
16406 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16407 | wxSize *arg2 = 0 ; | |
16408 | wxSize temp2 ; | |
16409 | PyObject * obj0 = 0 ; | |
16410 | PyObject * obj1 = 0 ; | |
16411 | char *kwnames[] = { | |
16412 | (char *) "self",(char *) "size", NULL | |
16413 | }; | |
16414 | ||
16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
16416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16418 | { | |
16419 | arg2 = &temp2; | |
16420 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16421 | } | |
16422 | { | |
16423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16424 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
16425 | ||
16426 | wxPyEndAllowThreads(__tstate); | |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
16429 | Py_INCREF(Py_None); resultobj = Py_None; | |
16430 | return resultobj; | |
16431 | fail: | |
16432 | return NULL; | |
16433 | } | |
16434 | ||
16435 | ||
16436 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16437 | PyObject *resultobj; | |
16438 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16439 | wxSize *arg2 = 0 ; | |
16440 | wxSize result; | |
16441 | wxSize temp2 ; | |
16442 | PyObject * obj0 = 0 ; | |
16443 | PyObject * obj1 = 0 ; | |
16444 | char *kwnames[] = { | |
16445 | (char *) "self",(char *) "sizePage", NULL | |
16446 | }; | |
16447 | ||
16448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
16449 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16450 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16451 | { | |
16452 | arg2 = &temp2; | |
16453 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16454 | } | |
16455 | { | |
16456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16457 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
16458 | ||
16459 | wxPyEndAllowThreads(__tstate); | |
16460 | if (PyErr_Occurred()) SWIG_fail; | |
16461 | } | |
16462 | { | |
16463 | wxSize * resultptr; | |
16464 | resultptr = new wxSize((wxSize &)(result)); | |
16465 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16466 | } | |
16467 | return resultobj; | |
16468 | fail: | |
16469 | return NULL; | |
16470 | } | |
16471 | ||
16472 | ||
16473 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16474 | PyObject *resultobj; | |
16475 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16476 | size_t arg2 ; | |
16477 | bool result; | |
16478 | PyObject * obj0 = 0 ; | |
16479 | PyObject * obj1 = 0 ; | |
16480 | char *kwnames[] = { | |
16481 | (char *) "self",(char *) "n", NULL | |
16482 | }; | |
16483 | ||
16484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
16485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16487 | { | |
16488 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16489 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16490 | } | |
16491 | { | |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | result = (bool)(arg1)->DeletePage(arg2); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | { | |
16499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16500 | } | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | return NULL; | |
16504 | } | |
16505 | ||
16506 | ||
16507 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16508 | PyObject *resultobj; | |
16509 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16510 | size_t arg2 ; | |
16511 | bool result; | |
16512 | PyObject * obj0 = 0 ; | |
16513 | PyObject * obj1 = 0 ; | |
16514 | char *kwnames[] = { | |
16515 | (char *) "self",(char *) "n", NULL | |
16516 | }; | |
16517 | ||
16518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
16519 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16520 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16521 | { | |
16522 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16523 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16524 | } | |
16525 | { | |
16526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16527 | result = (bool)(arg1)->RemovePage(arg2); | |
16528 | ||
16529 | wxPyEndAllowThreads(__tstate); | |
16530 | if (PyErr_Occurred()) SWIG_fail; | |
16531 | } | |
16532 | { | |
16533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16534 | } | |
16535 | return resultobj; | |
16536 | fail: | |
16537 | return NULL; | |
16538 | } | |
16539 | ||
16540 | ||
16541 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
16542 | PyObject *resultobj; | |
16543 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16544 | bool result; | |
16545 | PyObject * obj0 = 0 ; | |
16546 | char *kwnames[] = { | |
16547 | (char *) "self", NULL | |
16548 | }; | |
16549 | ||
16550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; | |
16551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16553 | { | |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | result = (bool)(arg1)->DeleteAllPages(); | |
16556 | ||
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
16560 | { | |
16561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16562 | } | |
16563 | return resultobj; | |
16564 | fail: | |
16565 | return NULL; | |
16566 | } | |
16567 | ||
16568 | ||
16569 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16570 | PyObject *resultobj; | |
16571 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16572 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16573 | wxString *arg3 = 0 ; | |
16574 | bool arg4 = (bool) false ; | |
16575 | int arg5 = (int) -1 ; | |
16576 | bool result; | |
16577 | bool temp3 = false ; | |
16578 | PyObject * obj0 = 0 ; | |
16579 | PyObject * obj1 = 0 ; | |
16580 | PyObject * obj2 = 0 ; | |
16581 | PyObject * obj3 = 0 ; | |
16582 | PyObject * obj4 = 0 ; | |
16583 | char *kwnames[] = { | |
16584 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16585 | }; | |
16586 | ||
16587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16590 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16591 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16592 | { | |
16593 | arg3 = wxString_in_helper(obj2); | |
16594 | if (arg3 == NULL) SWIG_fail; | |
16595 | temp3 = true; | |
16596 | } | |
16597 | if (obj3) { | |
16598 | { | |
16599 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
16600 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16601 | } | |
16602 | } | |
16603 | if (obj4) { | |
16604 | { | |
16605 | arg5 = (int)(SWIG_As_int(obj4)); | |
16606 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16607 | } | |
16608 | } | |
16609 | { | |
16610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16611 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
16612 | ||
16613 | wxPyEndAllowThreads(__tstate); | |
16614 | if (PyErr_Occurred()) SWIG_fail; | |
16615 | } | |
16616 | { | |
16617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16618 | } | |
16619 | { | |
16620 | if (temp3) | |
16621 | delete arg3; | |
16622 | } | |
16623 | return resultobj; | |
16624 | fail: | |
16625 | { | |
16626 | if (temp3) | |
16627 | delete arg3; | |
16628 | } | |
16629 | return NULL; | |
16630 | } | |
16631 | ||
16632 | ||
16633 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
16634 | PyObject *resultobj; | |
16635 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16636 | size_t arg2 ; | |
16637 | wxWindow *arg3 = (wxWindow *) 0 ; | |
16638 | wxString *arg4 = 0 ; | |
16639 | bool arg5 = (bool) false ; | |
16640 | int arg6 = (int) -1 ; | |
16641 | bool result; | |
16642 | bool temp4 = false ; | |
16643 | PyObject * obj0 = 0 ; | |
16644 | PyObject * obj1 = 0 ; | |
16645 | PyObject * obj2 = 0 ; | |
16646 | PyObject * obj3 = 0 ; | |
16647 | PyObject * obj4 = 0 ; | |
16648 | PyObject * obj5 = 0 ; | |
16649 | char *kwnames[] = { | |
16650 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
16651 | }; | |
16652 | ||
16653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16656 | { | |
16657 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16658 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16659 | } | |
16660 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16661 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16662 | { | |
16663 | arg4 = wxString_in_helper(obj3); | |
16664 | if (arg4 == NULL) SWIG_fail; | |
16665 | temp4 = true; | |
16666 | } | |
16667 | if (obj4) { | |
16668 | { | |
16669 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
16670 | if (SWIG_arg_fail(5)) SWIG_fail; | |
16671 | } | |
16672 | } | |
16673 | if (obj5) { | |
16674 | { | |
16675 | arg6 = (int)(SWIG_As_int(obj5)); | |
16676 | if (SWIG_arg_fail(6)) SWIG_fail; | |
16677 | } | |
16678 | } | |
16679 | { | |
16680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16681 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
16682 | ||
16683 | wxPyEndAllowThreads(__tstate); | |
16684 | if (PyErr_Occurred()) SWIG_fail; | |
16685 | } | |
16686 | { | |
16687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16688 | } | |
16689 | { | |
16690 | if (temp4) | |
16691 | delete arg4; | |
16692 | } | |
16693 | return resultobj; | |
16694 | fail: | |
16695 | { | |
16696 | if (temp4) | |
16697 | delete arg4; | |
16698 | } | |
16699 | return NULL; | |
16700 | } | |
16701 | ||
16702 | ||
16703 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
16704 | PyObject *resultobj; | |
16705 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16706 | size_t arg2 ; | |
16707 | int result; | |
16708 | PyObject * obj0 = 0 ; | |
16709 | PyObject * obj1 = 0 ; | |
16710 | char *kwnames[] = { | |
16711 | (char *) "self",(char *) "n", NULL | |
16712 | }; | |
16713 | ||
16714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
16715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16717 | { | |
16718 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
16719 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16720 | } | |
16721 | { | |
16722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16723 | result = (int)(arg1)->SetSelection(arg2); | |
16724 | ||
16725 | wxPyEndAllowThreads(__tstate); | |
16726 | if (PyErr_Occurred()) SWIG_fail; | |
16727 | } | |
16728 | { | |
16729 | resultobj = SWIG_From_int((int)(result)); | |
16730 | } | |
16731 | return resultobj; | |
16732 | fail: | |
16733 | return NULL; | |
16734 | } | |
16735 | ||
16736 | ||
16737 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
16738 | PyObject *resultobj; | |
16739 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16740 | bool arg2 = (bool) true ; | |
16741 | PyObject * obj0 = 0 ; | |
16742 | PyObject * obj1 = 0 ; | |
16743 | char *kwnames[] = { | |
16744 | (char *) "self",(char *) "forward", NULL | |
16745 | }; | |
16746 | ||
16747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
16748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16750 | if (obj1) { | |
16751 | { | |
16752 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
16753 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16754 | } | |
16755 | } | |
16756 | { | |
16757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16758 | (arg1)->AdvanceSelection(arg2); | |
16759 | ||
16760 | wxPyEndAllowThreads(__tstate); | |
16761 | if (PyErr_Occurred()) SWIG_fail; | |
16762 | } | |
16763 | Py_INCREF(Py_None); resultobj = Py_None; | |
16764 | return resultobj; | |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
16771 | PyObject *resultobj; | |
16772 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
16773 | wxVisualAttributes result; | |
16774 | PyObject * obj0 = 0 ; | |
16775 | char *kwnames[] = { | |
16776 | (char *) "variant", NULL | |
16777 | }; | |
16778 | ||
16779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
16780 | if (obj0) { | |
16781 | { | |
16782 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
16783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16784 | } | |
16785 | } | |
16786 | { | |
16787 | if (!wxPyCheckForApp()) SWIG_fail; | |
16788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16789 | result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
16790 | ||
16791 | wxPyEndAllowThreads(__tstate); | |
16792 | if (PyErr_Occurred()) SWIG_fail; | |
16793 | } | |
16794 | { | |
16795 | wxVisualAttributes * resultptr; | |
16796 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
16797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
16798 | } | |
16799 | return resultobj; | |
16800 | fail: | |
16801 | return NULL; | |
16802 | } | |
16803 | ||
16804 | ||
16805 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { | |
16806 | PyObject *obj; | |
16807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16808 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); | |
16809 | Py_INCREF(obj); | |
16810 | return Py_BuildValue((char *)""); | |
16811 | } | |
16812 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
16813 | PyObject *resultobj; | |
16814 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16815 | int arg2 = (int) 0 ; | |
16816 | int arg3 = (int) -1 ; | |
16817 | int arg4 = (int) -1 ; | |
16818 | wxBookCtrlBaseEvent *result; | |
16819 | PyObject * obj0 = 0 ; | |
16820 | PyObject * obj1 = 0 ; | |
16821 | PyObject * obj2 = 0 ; | |
16822 | PyObject * obj3 = 0 ; | |
16823 | char *kwnames[] = { | |
16824 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
16825 | }; | |
16826 | ||
16827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16828 | if (obj0) { | |
16829 | { | |
16830 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
16831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16832 | } | |
16833 | } | |
16834 | if (obj1) { | |
16835 | { | |
16836 | arg2 = (int)(SWIG_As_int(obj1)); | |
16837 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16838 | } | |
16839 | } | |
16840 | if (obj2) { | |
16841 | { | |
16842 | arg3 = (int)(SWIG_As_int(obj2)); | |
16843 | if (SWIG_arg_fail(3)) SWIG_fail; | |
16844 | } | |
16845 | } | |
16846 | if (obj3) { | |
16847 | { | |
16848 | arg4 = (int)(SWIG_As_int(obj3)); | |
16849 | if (SWIG_arg_fail(4)) SWIG_fail; | |
16850 | } | |
16851 | } | |
16852 | { | |
16853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16854 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); | |
16855 | ||
16856 | wxPyEndAllowThreads(__tstate); | |
16857 | if (PyErr_Occurred()) SWIG_fail; | |
16858 | } | |
16859 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); | |
16860 | return resultobj; | |
16861 | fail: | |
16862 | return NULL; | |
16863 | } | |
16864 | ||
16865 | ||
16866 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
16867 | PyObject *resultobj; | |
16868 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
16869 | int result; | |
16870 | PyObject * obj0 = 0 ; | |
16871 | char *kwnames[] = { | |
16872 | (char *) "self", NULL | |
16873 | }; | |
16874 | ||
16875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; | |
16876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); | |
16877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16878 | { | |
16879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16880 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); | |
16881 | ||
16882 | wxPyEndAllowThreads(__tstate); | |
16883 | if (PyErr_Occurred()) SWIG_fail; | |
16884 | } | |
16885 | { | |
16886 | resultobj = SWIG_From_int((int)(result)); | |
16887 | } | |
16888 | return resultobj; | |
16889 | fail: | |
16890 | return NULL; | |
16891 | } | |
16892 | ||
16893 | ||
16894 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
16895 | PyObject *resultobj; | |
16896 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
16897 | int arg2 ; | |
16898 | PyObject * obj0 = 0 ; | |
16899 | PyObject * obj1 = 0 ; | |
16900 | char *kwnames[] = { | |
16901 | (char *) "self",(char *) "nSel", NULL | |
16902 | }; | |
16903 | ||
16904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
16905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); | |
16906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16907 | { | |
16908 | arg2 = (int)(SWIG_As_int(obj1)); | |
16909 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16910 | } | |
16911 | { | |
16912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16913 | (arg1)->SetSelection(arg2); | |
16914 | ||
16915 | wxPyEndAllowThreads(__tstate); | |
16916 | if (PyErr_Occurred()) SWIG_fail; | |
16917 | } | |
16918 | Py_INCREF(Py_None); resultobj = Py_None; | |
16919 | return resultobj; | |
16920 | fail: | |
16921 | return NULL; | |
16922 | } | |
16923 | ||
16924 | ||
16925 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
16926 | PyObject *resultobj; | |
16927 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
16928 | int result; | |
16929 | PyObject * obj0 = 0 ; | |
16930 | char *kwnames[] = { | |
16931 | (char *) "self", NULL | |
16932 | }; | |
16933 | ||
16934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
16935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); | |
16936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16937 | { | |
16938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16939 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); | |
16940 | ||
16941 | wxPyEndAllowThreads(__tstate); | |
16942 | if (PyErr_Occurred()) SWIG_fail; | |
16943 | } | |
16944 | { | |
16945 | resultobj = SWIG_From_int((int)(result)); | |
16946 | } | |
16947 | return resultobj; | |
16948 | fail: | |
16949 | return NULL; | |
16950 | } | |
16951 | ||
16952 | ||
16953 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
16954 | PyObject *resultobj; | |
16955 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; | |
16956 | int arg2 ; | |
16957 | PyObject * obj0 = 0 ; | |
16958 | PyObject * obj1 = 0 ; | |
16959 | char *kwnames[] = { | |
16960 | (char *) "self",(char *) "nOldSel", NULL | |
16961 | }; | |
16962 | ||
16963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; | |
16964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); | |
16965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16966 | { | |
16967 | arg2 = (int)(SWIG_As_int(obj1)); | |
16968 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16969 | } | |
16970 | { | |
16971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16972 | (arg1)->SetOldSelection(arg2); | |
16973 | ||
16974 | wxPyEndAllowThreads(__tstate); | |
16975 | if (PyErr_Occurred()) SWIG_fail; | |
16976 | } | |
16977 | Py_INCREF(Py_None); resultobj = Py_None; | |
16978 | return resultobj; | |
16979 | fail: | |
16980 | return NULL; | |
16981 | } | |
16982 | ||
16983 | ||
16984 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { | |
16985 | PyObject *obj; | |
16986 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16987 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); | |
16988 | Py_INCREF(obj); | |
16989 | return Py_BuildValue((char *)""); | |
16990 | } | |
16991 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
16992 | PyObject *resultobj; | |
16993 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16994 | int arg2 = (int) -1 ; | |
16995 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
16996 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16997 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16998 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16999 | long arg5 = (long) 0 ; | |
17000 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; | |
17001 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17002 | wxNotebook *result; | |
17003 | wxPoint temp3 ; | |
17004 | wxSize temp4 ; | |
17005 | bool temp6 = false ; | |
17006 | PyObject * obj0 = 0 ; | |
17007 | PyObject * obj1 = 0 ; | |
17008 | PyObject * obj2 = 0 ; | |
17009 | PyObject * obj3 = 0 ; | |
17010 | PyObject * obj4 = 0 ; | |
17011 | PyObject * obj5 = 0 ; | |
17012 | char *kwnames[] = { | |
17013 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17014 | }; | |
17015 | ||
17016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17019 | if (obj1) { | |
17020 | { | |
17021 | arg2 = (int)(SWIG_As_int(obj1)); | |
17022 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17023 | } | |
17024 | } | |
17025 | if (obj2) { | |
17026 | { | |
17027 | arg3 = &temp3; | |
17028 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17029 | } | |
17030 | } | |
17031 | if (obj3) { | |
17032 | { | |
17033 | arg4 = &temp4; | |
17034 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17035 | } | |
17036 | } | |
17037 | if (obj4) { | |
17038 | { | |
17039 | arg5 = (long)(SWIG_As_long(obj4)); | |
17040 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17041 | } | |
17042 | } | |
17043 | if (obj5) { | |
17044 | { | |
17045 | arg6 = wxString_in_helper(obj5); | |
17046 | if (arg6 == NULL) SWIG_fail; | |
17047 | temp6 = true; | |
17048 | } | |
17049 | } | |
17050 | { | |
17051 | if (!wxPyCheckForApp()) SWIG_fail; | |
17052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17053 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17054 | ||
17055 | wxPyEndAllowThreads(__tstate); | |
17056 | if (PyErr_Occurred()) SWIG_fail; | |
17057 | } | |
17058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); | |
17059 | { | |
17060 | if (temp6) | |
17061 | delete arg6; | |
17062 | } | |
17063 | return resultobj; | |
17064 | fail: | |
17065 | { | |
17066 | if (temp6) | |
17067 | delete arg6; | |
17068 | } | |
17069 | return NULL; | |
17070 | } | |
17071 | ||
17072 | ||
17073 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
17074 | PyObject *resultobj; | |
17075 | wxNotebook *result; | |
17076 | char *kwnames[] = { | |
17077 | NULL | |
17078 | }; | |
17079 | ||
17080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
17081 | { | |
17082 | if (!wxPyCheckForApp()) SWIG_fail; | |
17083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17084 | result = (wxNotebook *)new wxNotebook(); | |
17085 | ||
17086 | wxPyEndAllowThreads(__tstate); | |
17087 | if (PyErr_Occurred()) SWIG_fail; | |
17088 | } | |
17089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); | |
17090 | return resultobj; | |
17091 | fail: | |
17092 | return NULL; | |
17093 | } | |
17094 | ||
17095 | ||
17096 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
17097 | PyObject *resultobj; | |
17098 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17099 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17100 | int arg3 = (int) -1 ; | |
17101 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17102 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17103 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17104 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17105 | long arg6 = (long) 0 ; | |
17106 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; | |
17107 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17108 | bool result; | |
17109 | wxPoint temp4 ; | |
17110 | wxSize temp5 ; | |
17111 | bool temp7 = false ; | |
17112 | PyObject * obj0 = 0 ; | |
17113 | PyObject * obj1 = 0 ; | |
17114 | PyObject * obj2 = 0 ; | |
17115 | PyObject * obj3 = 0 ; | |
17116 | PyObject * obj4 = 0 ; | |
17117 | PyObject * obj5 = 0 ; | |
17118 | PyObject * obj6 = 0 ; | |
17119 | char *kwnames[] = { | |
17120 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17121 | }; | |
17122 | ||
17123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17124 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17125 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17126 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17127 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17128 | if (obj2) { | |
17129 | { | |
17130 | arg3 = (int)(SWIG_As_int(obj2)); | |
17131 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17132 | } | |
17133 | } | |
17134 | if (obj3) { | |
17135 | { | |
17136 | arg4 = &temp4; | |
17137 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17138 | } | |
17139 | } | |
17140 | if (obj4) { | |
17141 | { | |
17142 | arg5 = &temp5; | |
17143 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17144 | } | |
17145 | } | |
17146 | if (obj5) { | |
17147 | { | |
17148 | arg6 = (long)(SWIG_As_long(obj5)); | |
17149 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17150 | } | |
17151 | } | |
17152 | if (obj6) { | |
17153 | { | |
17154 | arg7 = wxString_in_helper(obj6); | |
17155 | if (arg7 == NULL) SWIG_fail; | |
17156 | temp7 = true; | |
17157 | } | |
17158 | } | |
17159 | { | |
17160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17161 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17162 | ||
17163 | wxPyEndAllowThreads(__tstate); | |
17164 | if (PyErr_Occurred()) SWIG_fail; | |
17165 | } | |
17166 | { | |
17167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17168 | } | |
17169 | { | |
17170 | if (temp7) | |
17171 | delete arg7; | |
17172 | } | |
17173 | return resultobj; | |
17174 | fail: | |
17175 | { | |
17176 | if (temp7) | |
17177 | delete arg7; | |
17178 | } | |
17179 | return NULL; | |
17180 | } | |
17181 | ||
17182 | ||
17183 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
17184 | PyObject *resultobj; | |
17185 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17186 | int result; | |
17187 | PyObject * obj0 = 0 ; | |
17188 | char *kwnames[] = { | |
17189 | (char *) "self", NULL | |
17190 | }; | |
17191 | ||
17192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
17193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17195 | { | |
17196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17197 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
17198 | ||
17199 | wxPyEndAllowThreads(__tstate); | |
17200 | if (PyErr_Occurred()) SWIG_fail; | |
17201 | } | |
17202 | { | |
17203 | resultobj = SWIG_From_int((int)(result)); | |
17204 | } | |
17205 | return resultobj; | |
17206 | fail: | |
17207 | return NULL; | |
17208 | } | |
17209 | ||
17210 | ||
17211 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { | |
17212 | PyObject *resultobj; | |
17213 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17214 | wxSize *arg2 = 0 ; | |
17215 | wxSize temp2 ; | |
17216 | PyObject * obj0 = 0 ; | |
17217 | PyObject * obj1 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "self",(char *) "padding", NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
17223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17225 | { | |
17226 | arg2 = &temp2; | |
17227 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17228 | } | |
17229 | { | |
17230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17231 | (arg1)->SetPadding((wxSize const &)*arg2); | |
17232 | ||
17233 | wxPyEndAllowThreads(__tstate); | |
17234 | if (PyErr_Occurred()) SWIG_fail; | |
17235 | } | |
17236 | Py_INCREF(Py_None); resultobj = Py_None; | |
17237 | return resultobj; | |
17238 | fail: | |
17239 | return NULL; | |
17240 | } | |
17241 | ||
17242 | ||
17243 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
17244 | PyObject *resultobj; | |
17245 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17246 | wxSize *arg2 = 0 ; | |
17247 | wxSize temp2 ; | |
17248 | PyObject * obj0 = 0 ; | |
17249 | PyObject * obj1 = 0 ; | |
17250 | char *kwnames[] = { | |
17251 | (char *) "self",(char *) "sz", NULL | |
17252 | }; | |
17253 | ||
17254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
17255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17257 | { | |
17258 | arg2 = &temp2; | |
17259 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17260 | } | |
17261 | { | |
17262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17263 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
17264 | ||
17265 | wxPyEndAllowThreads(__tstate); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
17268 | Py_INCREF(Py_None); resultobj = Py_None; | |
17269 | return resultobj; | |
17270 | fail: | |
17271 | return NULL; | |
17272 | } | |
17273 | ||
17274 | ||
17275 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
17276 | PyObject *resultobj; | |
17277 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17278 | wxPoint *arg2 = 0 ; | |
17279 | long *arg3 = (long *) 0 ; | |
17280 | int result; | |
17281 | wxPoint temp2 ; | |
17282 | long temp3 ; | |
17283 | int res3 = 0 ; | |
17284 | PyObject * obj0 = 0 ; | |
17285 | PyObject * obj1 = 0 ; | |
17286 | char *kwnames[] = { | |
17287 | (char *) "self",(char *) "pt", NULL | |
17288 | }; | |
17289 | ||
17290 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
17291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
17292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17294 | { | |
17295 | arg2 = &temp2; | |
17296 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17297 | } | |
17298 | { | |
17299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17300 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
17301 | ||
17302 | wxPyEndAllowThreads(__tstate); | |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
17304 | } | |
17305 | { | |
17306 | resultobj = SWIG_From_int((int)(result)); | |
17307 | } | |
17308 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
17309 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
17310 | return resultobj; | |
17311 | fail: | |
17312 | return NULL; | |
17313 | } | |
17314 | ||
17315 | ||
17316 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
17317 | PyObject *resultobj; | |
17318 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17319 | wxSize *arg2 = 0 ; | |
17320 | wxSize result; | |
17321 | wxSize temp2 ; | |
17322 | PyObject * obj0 = 0 ; | |
17323 | PyObject * obj1 = 0 ; | |
17324 | char *kwnames[] = { | |
17325 | (char *) "self",(char *) "sizePage", NULL | |
17326 | }; | |
17327 | ||
17328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
17329 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17330 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17331 | { | |
17332 | arg2 = &temp2; | |
17333 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17334 | } | |
17335 | { | |
17336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17337 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
17338 | ||
17339 | wxPyEndAllowThreads(__tstate); | |
17340 | if (PyErr_Occurred()) SWIG_fail; | |
17341 | } | |
17342 | { | |
17343 | wxSize * resultptr; | |
17344 | resultptr = new wxSize((wxSize &)(result)); | |
17345 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17346 | } | |
17347 | return resultobj; | |
17348 | fail: | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
17353 | static PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
17354 | PyObject *resultobj; | |
17355 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
17356 | wxColour result; | |
17357 | PyObject * obj0 = 0 ; | |
17358 | char *kwnames[] = { | |
17359 | (char *) "self", NULL | |
17360 | }; | |
17361 | ||
17362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetThemeBackgroundColour",kwnames,&obj0)) goto fail; | |
17363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17365 | { | |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17367 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
17370 | if (PyErr_Occurred()) SWIG_fail; | |
17371 | } | |
17372 | { | |
17373 | wxColour * resultptr; | |
17374 | resultptr = new wxColour((wxColour &)(result)); | |
17375 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17376 | } | |
17377 | return resultobj; | |
17378 | fail: | |
17379 | return NULL; | |
17380 | } | |
17381 | ||
17382 | ||
17383 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
17384 | PyObject *resultobj; | |
17385 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
17386 | wxVisualAttributes result; | |
17387 | PyObject * obj0 = 0 ; | |
17388 | char *kwnames[] = { | |
17389 | (char *) "variant", NULL | |
17390 | }; | |
17391 | ||
17392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
17393 | if (obj0) { | |
17394 | { | |
17395 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
17396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17397 | } | |
17398 | } | |
17399 | { | |
17400 | if (!wxPyCheckForApp()) SWIG_fail; | |
17401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17402 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
17403 | ||
17404 | wxPyEndAllowThreads(__tstate); | |
17405 | if (PyErr_Occurred()) SWIG_fail; | |
17406 | } | |
17407 | { | |
17408 | wxVisualAttributes * resultptr; | |
17409 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
17410 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
17411 | } | |
17412 | return resultobj; | |
17413 | fail: | |
17414 | return NULL; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { | |
17419 | PyObject *obj; | |
17420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17421 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
17422 | Py_INCREF(obj); | |
17423 | return Py_BuildValue((char *)""); | |
17424 | } | |
17425 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
17426 | PyObject *resultobj; | |
17427 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17428 | int arg2 = (int) 0 ; | |
17429 | int arg3 = (int) -1 ; | |
17430 | int arg4 = (int) -1 ; | |
17431 | wxNotebookEvent *result; | |
17432 | PyObject * obj0 = 0 ; | |
17433 | PyObject * obj1 = 0 ; | |
17434 | PyObject * obj2 = 0 ; | |
17435 | PyObject * obj3 = 0 ; | |
17436 | char *kwnames[] = { | |
17437 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17438 | }; | |
17439 | ||
17440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17441 | if (obj0) { | |
17442 | { | |
17443 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17445 | } | |
17446 | } | |
17447 | if (obj1) { | |
17448 | { | |
17449 | arg2 = (int)(SWIG_As_int(obj1)); | |
17450 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17451 | } | |
17452 | } | |
17453 | if (obj2) { | |
17454 | { | |
17455 | arg3 = (int)(SWIG_As_int(obj2)); | |
17456 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17457 | } | |
17458 | } | |
17459 | if (obj3) { | |
17460 | { | |
17461 | arg4 = (int)(SWIG_As_int(obj3)); | |
17462 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17463 | } | |
17464 | } | |
17465 | { | |
17466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17467 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
17468 | ||
17469 | wxPyEndAllowThreads(__tstate); | |
17470 | if (PyErr_Occurred()) SWIG_fail; | |
17471 | } | |
17472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
17473 | return resultobj; | |
17474 | fail: | |
17475 | return NULL; | |
17476 | } | |
17477 | ||
17478 | ||
17479 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { | |
17480 | PyObject *obj; | |
17481 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17482 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
17483 | Py_INCREF(obj); | |
17484 | return Py_BuildValue((char *)""); | |
17485 | } | |
17486 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { | |
17487 | PyObject *resultobj; | |
17488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17489 | int arg2 = (int) -1 ; | |
17490 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17491 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17492 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17493 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17494 | long arg5 = (long) 0 ; | |
17495 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17496 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17497 | wxListbook *result; | |
17498 | wxPoint temp3 ; | |
17499 | wxSize temp4 ; | |
17500 | bool temp6 = false ; | |
17501 | PyObject * obj0 = 0 ; | |
17502 | PyObject * obj1 = 0 ; | |
17503 | PyObject * obj2 = 0 ; | |
17504 | PyObject * obj3 = 0 ; | |
17505 | PyObject * obj4 = 0 ; | |
17506 | PyObject * obj5 = 0 ; | |
17507 | char *kwnames[] = { | |
17508 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17509 | }; | |
17510 | ||
17511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17514 | if (obj1) { | |
17515 | { | |
17516 | arg2 = (int)(SWIG_As_int(obj1)); | |
17517 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17518 | } | |
17519 | } | |
17520 | if (obj2) { | |
17521 | { | |
17522 | arg3 = &temp3; | |
17523 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17524 | } | |
17525 | } | |
17526 | if (obj3) { | |
17527 | { | |
17528 | arg4 = &temp4; | |
17529 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17530 | } | |
17531 | } | |
17532 | if (obj4) { | |
17533 | { | |
17534 | arg5 = (long)(SWIG_As_long(obj4)); | |
17535 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17536 | } | |
17537 | } | |
17538 | if (obj5) { | |
17539 | { | |
17540 | arg6 = wxString_in_helper(obj5); | |
17541 | if (arg6 == NULL) SWIG_fail; | |
17542 | temp6 = true; | |
17543 | } | |
17544 | } | |
17545 | { | |
17546 | if (!wxPyCheckForApp()) SWIG_fail; | |
17547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17548 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17549 | ||
17550 | wxPyEndAllowThreads(__tstate); | |
17551 | if (PyErr_Occurred()) SWIG_fail; | |
17552 | } | |
17553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
17554 | { | |
17555 | if (temp6) | |
17556 | delete arg6; | |
17557 | } | |
17558 | return resultobj; | |
17559 | fail: | |
17560 | { | |
17561 | if (temp6) | |
17562 | delete arg6; | |
17563 | } | |
17564 | return NULL; | |
17565 | } | |
17566 | ||
17567 | ||
17568 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { | |
17569 | PyObject *resultobj; | |
17570 | wxListbook *result; | |
17571 | char *kwnames[] = { | |
17572 | NULL | |
17573 | }; | |
17574 | ||
17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
17576 | { | |
17577 | if (!wxPyCheckForApp()) SWIG_fail; | |
17578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17579 | result = (wxListbook *)new wxListbook(); | |
17580 | ||
17581 | wxPyEndAllowThreads(__tstate); | |
17582 | if (PyErr_Occurred()) SWIG_fail; | |
17583 | } | |
17584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
17585 | return resultobj; | |
17586 | fail: | |
17587 | return NULL; | |
17588 | } | |
17589 | ||
17590 | ||
17591 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
17592 | PyObject *resultobj; | |
17593 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17594 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17595 | int arg3 = (int) -1 ; | |
17596 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17597 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17598 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17599 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17600 | long arg6 = (long) 0 ; | |
17601 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17602 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17603 | bool result; | |
17604 | wxPoint temp4 ; | |
17605 | wxSize temp5 ; | |
17606 | bool temp7 = false ; | |
17607 | PyObject * obj0 = 0 ; | |
17608 | PyObject * obj1 = 0 ; | |
17609 | PyObject * obj2 = 0 ; | |
17610 | PyObject * obj3 = 0 ; | |
17611 | PyObject * obj4 = 0 ; | |
17612 | PyObject * obj5 = 0 ; | |
17613 | PyObject * obj6 = 0 ; | |
17614 | char *kwnames[] = { | |
17615 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17616 | }; | |
17617 | ||
17618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); | |
17620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17621 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17622 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17623 | if (obj2) { | |
17624 | { | |
17625 | arg3 = (int)(SWIG_As_int(obj2)); | |
17626 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17627 | } | |
17628 | } | |
17629 | if (obj3) { | |
17630 | { | |
17631 | arg4 = &temp4; | |
17632 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17633 | } | |
17634 | } | |
17635 | if (obj4) { | |
17636 | { | |
17637 | arg5 = &temp5; | |
17638 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17639 | } | |
17640 | } | |
17641 | if (obj5) { | |
17642 | { | |
17643 | arg6 = (long)(SWIG_As_long(obj5)); | |
17644 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17645 | } | |
17646 | } | |
17647 | if (obj6) { | |
17648 | { | |
17649 | arg7 = wxString_in_helper(obj6); | |
17650 | if (arg7 == NULL) SWIG_fail; | |
17651 | temp7 = true; | |
17652 | } | |
17653 | } | |
17654 | { | |
17655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17656 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17657 | ||
17658 | wxPyEndAllowThreads(__tstate); | |
17659 | if (PyErr_Occurred()) SWIG_fail; | |
17660 | } | |
17661 | { | |
17662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17663 | } | |
17664 | { | |
17665 | if (temp7) | |
17666 | delete arg7; | |
17667 | } | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | { | |
17671 | if (temp7) | |
17672 | delete arg7; | |
17673 | } | |
17674 | return NULL; | |
17675 | } | |
17676 | ||
17677 | ||
17678 | static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
17679 | PyObject *resultobj; | |
17680 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17681 | bool result; | |
17682 | PyObject * obj0 = 0 ; | |
17683 | char *kwnames[] = { | |
17684 | (char *) "self", NULL | |
17685 | }; | |
17686 | ||
17687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
17688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); | |
17689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17690 | { | |
17691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17692 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
17693 | ||
17694 | wxPyEndAllowThreads(__tstate); | |
17695 | if (PyErr_Occurred()) SWIG_fail; | |
17696 | } | |
17697 | { | |
17698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17699 | } | |
17700 | return resultobj; | |
17701 | fail: | |
17702 | return NULL; | |
17703 | } | |
17704 | ||
17705 | ||
17706 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { | |
17707 | PyObject *resultobj; | |
17708 | wxListbook *arg1 = (wxListbook *) 0 ; | |
17709 | wxListView *result; | |
17710 | PyObject * obj0 = 0 ; | |
17711 | char *kwnames[] = { | |
17712 | (char *) "self", NULL | |
17713 | }; | |
17714 | ||
17715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
17716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); | |
17717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17718 | { | |
17719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17720 | result = (wxListView *)(arg1)->GetListView(); | |
17721 | ||
17722 | wxPyEndAllowThreads(__tstate); | |
17723 | if (PyErr_Occurred()) SWIG_fail; | |
17724 | } | |
17725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
17726 | return resultobj; | |
17727 | fail: | |
17728 | return NULL; | |
17729 | } | |
17730 | ||
17731 | ||
17732 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { | |
17733 | PyObject *obj; | |
17734 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17735 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
17736 | Py_INCREF(obj); | |
17737 | return Py_BuildValue((char *)""); | |
17738 | } | |
17739 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
17740 | PyObject *resultobj; | |
17741 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17742 | int arg2 = (int) 0 ; | |
17743 | int arg3 = (int) -1 ; | |
17744 | int arg4 = (int) -1 ; | |
17745 | wxListbookEvent *result; | |
17746 | PyObject * obj0 = 0 ; | |
17747 | PyObject * obj1 = 0 ; | |
17748 | PyObject * obj2 = 0 ; | |
17749 | PyObject * obj3 = 0 ; | |
17750 | char *kwnames[] = { | |
17751 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17752 | }; | |
17753 | ||
17754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17755 | if (obj0) { | |
17756 | { | |
17757 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
17758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17759 | } | |
17760 | } | |
17761 | if (obj1) { | |
17762 | { | |
17763 | arg2 = (int)(SWIG_As_int(obj1)); | |
17764 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17765 | } | |
17766 | } | |
17767 | if (obj2) { | |
17768 | { | |
17769 | arg3 = (int)(SWIG_As_int(obj2)); | |
17770 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17771 | } | |
17772 | } | |
17773 | if (obj3) { | |
17774 | { | |
17775 | arg4 = (int)(SWIG_As_int(obj3)); | |
17776 | if (SWIG_arg_fail(4)) SWIG_fail; | |
17777 | } | |
17778 | } | |
17779 | { | |
17780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17781 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
17782 | ||
17783 | wxPyEndAllowThreads(__tstate); | |
17784 | if (PyErr_Occurred()) SWIG_fail; | |
17785 | } | |
17786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
17787 | return resultobj; | |
17788 | fail: | |
17789 | return NULL; | |
17790 | } | |
17791 | ||
17792 | ||
17793 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { | |
17794 | PyObject *obj; | |
17795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17796 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
17797 | Py_INCREF(obj); | |
17798 | return Py_BuildValue((char *)""); | |
17799 | } | |
17800 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
17801 | PyObject *resultobj; | |
17802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17803 | int arg2 ; | |
17804 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17805 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17806 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17807 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17808 | long arg5 = (long) 0 ; | |
17809 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17810 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17811 | wxChoicebook *result; | |
17812 | wxPoint temp3 ; | |
17813 | wxSize temp4 ; | |
17814 | bool temp6 = false ; | |
17815 | PyObject * obj0 = 0 ; | |
17816 | PyObject * obj1 = 0 ; | |
17817 | PyObject * obj2 = 0 ; | |
17818 | PyObject * obj3 = 0 ; | |
17819 | PyObject * obj4 = 0 ; | |
17820 | PyObject * obj5 = 0 ; | |
17821 | char *kwnames[] = { | |
17822 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17823 | }; | |
17824 | ||
17825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17828 | { | |
17829 | arg2 = (int)(SWIG_As_int(obj1)); | |
17830 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17831 | } | |
17832 | if (obj2) { | |
17833 | { | |
17834 | arg3 = &temp3; | |
17835 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17836 | } | |
17837 | } | |
17838 | if (obj3) { | |
17839 | { | |
17840 | arg4 = &temp4; | |
17841 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17842 | } | |
17843 | } | |
17844 | if (obj4) { | |
17845 | { | |
17846 | arg5 = (long)(SWIG_As_long(obj4)); | |
17847 | if (SWIG_arg_fail(5)) SWIG_fail; | |
17848 | } | |
17849 | } | |
17850 | if (obj5) { | |
17851 | { | |
17852 | arg6 = wxString_in_helper(obj5); | |
17853 | if (arg6 == NULL) SWIG_fail; | |
17854 | temp6 = true; | |
17855 | } | |
17856 | } | |
17857 | { | |
17858 | if (!wxPyCheckForApp()) SWIG_fail; | |
17859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17860 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17861 | ||
17862 | wxPyEndAllowThreads(__tstate); | |
17863 | if (PyErr_Occurred()) SWIG_fail; | |
17864 | } | |
17865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
17866 | { | |
17867 | if (temp6) | |
17868 | delete arg6; | |
17869 | } | |
17870 | return resultobj; | |
17871 | fail: | |
17872 | { | |
17873 | if (temp6) | |
17874 | delete arg6; | |
17875 | } | |
17876 | return NULL; | |
17877 | } | |
17878 | ||
17879 | ||
17880 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
17881 | PyObject *resultobj; | |
17882 | wxChoicebook *result; | |
17883 | char *kwnames[] = { | |
17884 | NULL | |
17885 | }; | |
17886 | ||
17887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
17888 | { | |
17889 | if (!wxPyCheckForApp()) SWIG_fail; | |
17890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17891 | result = (wxChoicebook *)new wxChoicebook(); | |
17892 | ||
17893 | wxPyEndAllowThreads(__tstate); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
17896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
17897 | return resultobj; | |
17898 | fail: | |
17899 | return NULL; | |
17900 | } | |
17901 | ||
17902 | ||
17903 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
17904 | PyObject *resultobj; | |
17905 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
17906 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17907 | int arg3 ; | |
17908 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17909 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17910 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17911 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17912 | long arg6 = (long) 0 ; | |
17913 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17914 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17915 | bool result; | |
17916 | wxPoint temp4 ; | |
17917 | wxSize temp5 ; | |
17918 | bool temp7 = false ; | |
17919 | PyObject * obj0 = 0 ; | |
17920 | PyObject * obj1 = 0 ; | |
17921 | PyObject * obj2 = 0 ; | |
17922 | PyObject * obj3 = 0 ; | |
17923 | PyObject * obj4 = 0 ; | |
17924 | PyObject * obj5 = 0 ; | |
17925 | PyObject * obj6 = 0 ; | |
17926 | char *kwnames[] = { | |
17927 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17928 | }; | |
17929 | ||
17930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
17932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17933 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17934 | if (SWIG_arg_fail(2)) SWIG_fail; | |
17935 | { | |
17936 | arg3 = (int)(SWIG_As_int(obj2)); | |
17937 | if (SWIG_arg_fail(3)) SWIG_fail; | |
17938 | } | |
17939 | if (obj3) { | |
17940 | { | |
17941 | arg4 = &temp4; | |
17942 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17943 | } | |
17944 | } | |
17945 | if (obj4) { | |
17946 | { | |
17947 | arg5 = &temp5; | |
17948 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17949 | } | |
17950 | } | |
17951 | if (obj5) { | |
17952 | { | |
17953 | arg6 = (long)(SWIG_As_long(obj5)); | |
17954 | if (SWIG_arg_fail(6)) SWIG_fail; | |
17955 | } | |
17956 | } | |
17957 | if (obj6) { | |
17958 | { | |
17959 | arg7 = wxString_in_helper(obj6); | |
17960 | if (arg7 == NULL) SWIG_fail; | |
17961 | temp7 = true; | |
17962 | } | |
17963 | } | |
17964 | { | |
17965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17966 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17967 | ||
17968 | wxPyEndAllowThreads(__tstate); | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | } | |
17971 | { | |
17972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17973 | } | |
17974 | { | |
17975 | if (temp7) | |
17976 | delete arg7; | |
17977 | } | |
17978 | return resultobj; | |
17979 | fail: | |
17980 | { | |
17981 | if (temp7) | |
17982 | delete arg7; | |
17983 | } | |
17984 | return NULL; | |
17985 | } | |
17986 | ||
17987 | ||
17988 | static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
17989 | PyObject *resultobj; | |
17990 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
17991 | bool result; | |
17992 | PyObject * obj0 = 0 ; | |
17993 | char *kwnames[] = { | |
17994 | (char *) "self", NULL | |
17995 | }; | |
17996 | ||
17997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail; | |
17998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
17999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18000 | { | |
18001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18002 | result = (bool)((wxChoicebook const *)arg1)->IsVertical(); | |
18003 | ||
18004 | wxPyEndAllowThreads(__tstate); | |
18005 | if (PyErr_Occurred()) SWIG_fail; | |
18006 | } | |
18007 | { | |
18008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18009 | } | |
18010 | return resultobj; | |
18011 | fail: | |
18012 | return NULL; | |
18013 | } | |
18014 | ||
18015 | ||
18016 | static PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
18017 | PyObject *resultobj; | |
18018 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18019 | wxChoice *result; | |
18020 | PyObject * obj0 = 0 ; | |
18021 | char *kwnames[] = { | |
18022 | (char *) "self", NULL | |
18023 | }; | |
18024 | ||
18025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_GetChoiceCtrl",kwnames,&obj0)) goto fail; | |
18026 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18027 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18028 | { | |
18029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18030 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
18031 | ||
18032 | wxPyEndAllowThreads(__tstate); | |
18033 | if (PyErr_Occurred()) SWIG_fail; | |
18034 | } | |
18035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 0); | |
18036 | return resultobj; | |
18037 | fail: | |
18038 | return NULL; | |
18039 | } | |
18040 | ||
18041 | ||
18042 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
18043 | PyObject *resultobj; | |
18044 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18045 | bool result; | |
18046 | PyObject * obj0 = 0 ; | |
18047 | char *kwnames[] = { | |
18048 | (char *) "self", NULL | |
18049 | }; | |
18050 | ||
18051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
18052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18054 | { | |
18055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18056 | result = (bool)(arg1)->DeleteAllPages(); | |
18057 | ||
18058 | wxPyEndAllowThreads(__tstate); | |
18059 | if (PyErr_Occurred()) SWIG_fail; | |
18060 | } | |
18061 | { | |
18062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18063 | } | |
18064 | return resultobj; | |
18065 | fail: | |
18066 | return NULL; | |
18067 | } | |
18068 | ||
18069 | ||
18070 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
18071 | PyObject *obj; | |
18072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18073 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
18074 | Py_INCREF(obj); | |
18075 | return Py_BuildValue((char *)""); | |
18076 | } | |
18077 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
18078 | PyObject *resultobj; | |
18079 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18080 | int arg2 = (int) 0 ; | |
18081 | int arg3 = (int) -1 ; | |
18082 | int arg4 = (int) -1 ; | |
18083 | wxChoicebookEvent *result; | |
18084 | PyObject * obj0 = 0 ; | |
18085 | PyObject * obj1 = 0 ; | |
18086 | PyObject * obj2 = 0 ; | |
18087 | PyObject * obj3 = 0 ; | |
18088 | char *kwnames[] = { | |
18089 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18090 | }; | |
18091 | ||
18092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18093 | if (obj0) { | |
18094 | { | |
18095 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
18096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18097 | } | |
18098 | } | |
18099 | if (obj1) { | |
18100 | { | |
18101 | arg2 = (int)(SWIG_As_int(obj1)); | |
18102 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18103 | } | |
18104 | } | |
18105 | if (obj2) { | |
18106 | { | |
18107 | arg3 = (int)(SWIG_As_int(obj2)); | |
18108 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18109 | } | |
18110 | } | |
18111 | if (obj3) { | |
18112 | { | |
18113 | arg4 = (int)(SWIG_As_int(obj3)); | |
18114 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18115 | } | |
18116 | } | |
18117 | { | |
18118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18119 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
18120 | ||
18121 | wxPyEndAllowThreads(__tstate); | |
18122 | if (PyErr_Occurred()) SWIG_fail; | |
18123 | } | |
18124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
18125 | return resultobj; | |
18126 | fail: | |
18127 | return NULL; | |
18128 | } | |
18129 | ||
18130 | ||
18131 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
18132 | PyObject *obj; | |
18133 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18134 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
18135 | Py_INCREF(obj); | |
18136 | return Py_BuildValue((char *)""); | |
18137 | } | |
18138 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) { | |
18139 | PyObject *resultobj; | |
18140 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
18141 | wxBookCtrlSizer *result; | |
18142 | PyObject * obj0 = 0 ; | |
18143 | char *kwnames[] = { | |
18144 | (char *) "nb", NULL | |
18145 | }; | |
18146 | ||
18147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
18148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
18149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18150 | { | |
18151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18152 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
18153 | ||
18154 | wxPyEndAllowThreads(__tstate); | |
18155 | if (PyErr_Occurred()) SWIG_fail; | |
18156 | } | |
18157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); | |
18158 | return resultobj; | |
18159 | fail: | |
18160 | return NULL; | |
18161 | } | |
18162 | ||
18163 | ||
18164 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { | |
18165 | PyObject *resultobj; | |
18166 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
18167 | PyObject * obj0 = 0 ; | |
18168 | char *kwnames[] = { | |
18169 | (char *) "self", NULL | |
18170 | }; | |
18171 | ||
18172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
18173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); | |
18174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | (arg1)->RecalcSizes(); | |
18178 | ||
18179 | wxPyEndAllowThreads(__tstate); | |
18180 | if (PyErr_Occurred()) SWIG_fail; | |
18181 | } | |
18182 | Py_INCREF(Py_None); resultobj = Py_None; | |
18183 | return resultobj; | |
18184 | fail: | |
18185 | return NULL; | |
18186 | } | |
18187 | ||
18188 | ||
18189 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
18190 | PyObject *resultobj; | |
18191 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
18192 | wxSize result; | |
18193 | PyObject * obj0 = 0 ; | |
18194 | char *kwnames[] = { | |
18195 | (char *) "self", NULL | |
18196 | }; | |
18197 | ||
18198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
18199 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); | |
18200 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18201 | { | |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | result = (arg1)->CalcMin(); | |
18204 | ||
18205 | wxPyEndAllowThreads(__tstate); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | } | |
18208 | { | |
18209 | wxSize * resultptr; | |
18210 | resultptr = new wxSize((wxSize &)(result)); | |
18211 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18212 | } | |
18213 | return resultobj; | |
18214 | fail: | |
18215 | return NULL; | |
18216 | } | |
18217 | ||
18218 | ||
18219 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
18220 | PyObject *resultobj; | |
18221 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
18222 | wxBookCtrlBase *result; | |
18223 | PyObject * obj0 = 0 ; | |
18224 | char *kwnames[] = { | |
18225 | (char *) "self", NULL | |
18226 | }; | |
18227 | ||
18228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
18229 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlSizer, SWIG_POINTER_EXCEPTION | 0); | |
18230 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18231 | { | |
18232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18233 | result = (wxBookCtrlBase *)(arg1)->GetControl(); | |
18234 | ||
18235 | wxPyEndAllowThreads(__tstate); | |
18236 | if (PyErr_Occurred()) SWIG_fail; | |
18237 | } | |
18238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBase, 0); | |
18239 | return resultobj; | |
18240 | fail: | |
18241 | return NULL; | |
18242 | } | |
18243 | ||
18244 | ||
18245 | static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) { | |
18246 | PyObject *obj; | |
18247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18248 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
18249 | Py_INCREF(obj); | |
18250 | return Py_BuildValue((char *)""); | |
18251 | } | |
18252 | static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) { | |
18253 | PyObject *resultobj; | |
18254 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
18255 | wxNotebookSizer *result; | |
18256 | PyObject * obj0 = 0 ; | |
18257 | char *kwnames[] = { | |
18258 | (char *) "nb", NULL | |
18259 | }; | |
18260 | ||
18261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
18262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
18263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18264 | { | |
18265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18266 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
18267 | ||
18268 | wxPyEndAllowThreads(__tstate); | |
18269 | if (PyErr_Occurred()) SWIG_fail; | |
18270 | } | |
18271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); | |
18272 | return resultobj; | |
18273 | fail: | |
18274 | return NULL; | |
18275 | } | |
18276 | ||
18277 | ||
18278 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { | |
18279 | PyObject *resultobj; | |
18280 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18281 | PyObject * obj0 = 0 ; | |
18282 | char *kwnames[] = { | |
18283 | (char *) "self", NULL | |
18284 | }; | |
18285 | ||
18286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
18287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); | |
18288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18289 | { | |
18290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18291 | (arg1)->RecalcSizes(); | |
18292 | ||
18293 | wxPyEndAllowThreads(__tstate); | |
18294 | if (PyErr_Occurred()) SWIG_fail; | |
18295 | } | |
18296 | Py_INCREF(Py_None); resultobj = Py_None; | |
18297 | return resultobj; | |
18298 | fail: | |
18299 | return NULL; | |
18300 | } | |
18301 | ||
18302 | ||
18303 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { | |
18304 | PyObject *resultobj; | |
18305 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18306 | wxSize result; | |
18307 | PyObject * obj0 = 0 ; | |
18308 | char *kwnames[] = { | |
18309 | (char *) "self", NULL | |
18310 | }; | |
18311 | ||
18312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
18313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); | |
18314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18315 | { | |
18316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18317 | result = (arg1)->CalcMin(); | |
18318 | ||
18319 | wxPyEndAllowThreads(__tstate); | |
18320 | if (PyErr_Occurred()) SWIG_fail; | |
18321 | } | |
18322 | { | |
18323 | wxSize * resultptr; | |
18324 | resultptr = new wxSize((wxSize &)(result)); | |
18325 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18326 | } | |
18327 | return resultobj; | |
18328 | fail: | |
18329 | return NULL; | |
18330 | } | |
18331 | ||
18332 | ||
18333 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
18334 | PyObject *resultobj; | |
18335 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
18336 | wxNotebook *result; | |
18337 | PyObject * obj0 = 0 ; | |
18338 | char *kwnames[] = { | |
18339 | (char *) "self", NULL | |
18340 | }; | |
18341 | ||
18342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
18343 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebookSizer, SWIG_POINTER_EXCEPTION | 0); | |
18344 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18345 | { | |
18346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18347 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
18348 | ||
18349 | wxPyEndAllowThreads(__tstate); | |
18350 | if (PyErr_Occurred()) SWIG_fail; | |
18351 | } | |
18352 | { | |
18353 | resultobj = wxPyMake_wxObject(result, 0); | |
18354 | } | |
18355 | return resultobj; | |
18356 | fail: | |
18357 | return NULL; | |
18358 | } | |
18359 | ||
18360 | ||
18361 | static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) { | |
18362 | PyObject *obj; | |
18363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18364 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
18365 | Py_INCREF(obj); | |
18366 | return Py_BuildValue((char *)""); | |
18367 | } | |
18368 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
18369 | PyObject *resultobj; | |
18370 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18371 | int result; | |
18372 | PyObject * obj0 = 0 ; | |
18373 | char *kwnames[] = { | |
18374 | (char *) "self", NULL | |
18375 | }; | |
18376 | ||
18377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
18378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18380 | { | |
18381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18382 | result = (int)(arg1)->GetId(); | |
18383 | ||
18384 | wxPyEndAllowThreads(__tstate); | |
18385 | if (PyErr_Occurred()) SWIG_fail; | |
18386 | } | |
18387 | { | |
18388 | resultobj = SWIG_From_int((int)(result)); | |
18389 | } | |
18390 | return resultobj; | |
18391 | fail: | |
18392 | return NULL; | |
18393 | } | |
18394 | ||
18395 | ||
18396 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
18397 | PyObject *resultobj; | |
18398 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18399 | wxControl *result; | |
18400 | PyObject * obj0 = 0 ; | |
18401 | char *kwnames[] = { | |
18402 | (char *) "self", NULL | |
18403 | }; | |
18404 | ||
18405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
18406 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18407 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18408 | { | |
18409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18410 | result = (wxControl *)(arg1)->GetControl(); | |
18411 | ||
18412 | wxPyEndAllowThreads(__tstate); | |
18413 | if (PyErr_Occurred()) SWIG_fail; | |
18414 | } | |
18415 | { | |
18416 | resultobj = wxPyMake_wxObject(result, 0); | |
18417 | } | |
18418 | return resultobj; | |
18419 | fail: | |
18420 | return NULL; | |
18421 | } | |
18422 | ||
18423 | ||
18424 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
18425 | PyObject *resultobj; | |
18426 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18427 | wxToolBarBase *result; | |
18428 | PyObject * obj0 = 0 ; | |
18429 | char *kwnames[] = { | |
18430 | (char *) "self", NULL | |
18431 | }; | |
18432 | ||
18433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
18434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18436 | { | |
18437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18438 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
18439 | ||
18440 | wxPyEndAllowThreads(__tstate); | |
18441 | if (PyErr_Occurred()) SWIG_fail; | |
18442 | } | |
18443 | { | |
18444 | resultobj = wxPyMake_wxObject(result, 0); | |
18445 | } | |
18446 | return resultobj; | |
18447 | fail: | |
18448 | return NULL; | |
18449 | } | |
18450 | ||
18451 | ||
18452 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
18453 | PyObject *resultobj; | |
18454 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18455 | int result; | |
18456 | PyObject * obj0 = 0 ; | |
18457 | char *kwnames[] = { | |
18458 | (char *) "self", NULL | |
18459 | }; | |
18460 | ||
18461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
18462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18464 | { | |
18465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18466 | result = (int)(arg1)->IsButton(); | |
18467 | ||
18468 | wxPyEndAllowThreads(__tstate); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
18471 | { | |
18472 | resultobj = SWIG_From_int((int)(result)); | |
18473 | } | |
18474 | return resultobj; | |
18475 | fail: | |
18476 | return NULL; | |
18477 | } | |
18478 | ||
18479 | ||
18480 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
18481 | PyObject *resultobj; | |
18482 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18483 | int result; | |
18484 | PyObject * obj0 = 0 ; | |
18485 | char *kwnames[] = { | |
18486 | (char *) "self", NULL | |
18487 | }; | |
18488 | ||
18489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
18490 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18491 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18492 | { | |
18493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18494 | result = (int)(arg1)->IsControl(); | |
18495 | ||
18496 | wxPyEndAllowThreads(__tstate); | |
18497 | if (PyErr_Occurred()) SWIG_fail; | |
18498 | } | |
18499 | { | |
18500 | resultobj = SWIG_From_int((int)(result)); | |
18501 | } | |
18502 | return resultobj; | |
18503 | fail: | |
18504 | return NULL; | |
18505 | } | |
18506 | ||
18507 | ||
18508 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { | |
18509 | PyObject *resultobj; | |
18510 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18511 | int result; | |
18512 | PyObject * obj0 = 0 ; | |
18513 | char *kwnames[] = { | |
18514 | (char *) "self", NULL | |
18515 | }; | |
18516 | ||
18517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
18518 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18519 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18520 | { | |
18521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18522 | result = (int)(arg1)->IsSeparator(); | |
18523 | ||
18524 | wxPyEndAllowThreads(__tstate); | |
18525 | if (PyErr_Occurred()) SWIG_fail; | |
18526 | } | |
18527 | { | |
18528 | resultobj = SWIG_From_int((int)(result)); | |
18529 | } | |
18530 | return resultobj; | |
18531 | fail: | |
18532 | return NULL; | |
18533 | } | |
18534 | ||
18535 | ||
18536 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
18537 | PyObject *resultobj; | |
18538 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18539 | int result; | |
18540 | PyObject * obj0 = 0 ; | |
18541 | char *kwnames[] = { | |
18542 | (char *) "self", NULL | |
18543 | }; | |
18544 | ||
18545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
18546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18548 | { | |
18549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18550 | result = (int)(arg1)->GetStyle(); | |
18551 | ||
18552 | wxPyEndAllowThreads(__tstate); | |
18553 | if (PyErr_Occurred()) SWIG_fail; | |
18554 | } | |
18555 | { | |
18556 | resultobj = SWIG_From_int((int)(result)); | |
18557 | } | |
18558 | return resultobj; | |
18559 | fail: | |
18560 | return NULL; | |
18561 | } | |
18562 | ||
18563 | ||
18564 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { | |
18565 | PyObject *resultobj; | |
18566 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18567 | wxItemKind result; | |
18568 | PyObject * obj0 = 0 ; | |
18569 | char *kwnames[] = { | |
18570 | (char *) "self", NULL | |
18571 | }; | |
18572 | ||
18573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
18574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18576 | { | |
18577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18578 | result = (wxItemKind)(arg1)->GetKind(); | |
18579 | ||
18580 | wxPyEndAllowThreads(__tstate); | |
18581 | if (PyErr_Occurred()) SWIG_fail; | |
18582 | } | |
18583 | resultobj = SWIG_From_int((result)); | |
18584 | return resultobj; | |
18585 | fail: | |
18586 | return NULL; | |
18587 | } | |
18588 | ||
18589 | ||
18590 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { | |
18591 | PyObject *resultobj; | |
18592 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18593 | bool result; | |
18594 | PyObject * obj0 = 0 ; | |
18595 | char *kwnames[] = { | |
18596 | (char *) "self", NULL | |
18597 | }; | |
18598 | ||
18599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
18600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18602 | { | |
18603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18604 | result = (bool)(arg1)->IsEnabled(); | |
18605 | ||
18606 | wxPyEndAllowThreads(__tstate); | |
18607 | if (PyErr_Occurred()) SWIG_fail; | |
18608 | } | |
18609 | { | |
18610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18611 | } | |
18612 | return resultobj; | |
18613 | fail: | |
18614 | return NULL; | |
18615 | } | |
18616 | ||
18617 | ||
18618 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { | |
18619 | PyObject *resultobj; | |
18620 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18621 | bool result; | |
18622 | PyObject * obj0 = 0 ; | |
18623 | char *kwnames[] = { | |
18624 | (char *) "self", NULL | |
18625 | }; | |
18626 | ||
18627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
18628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18630 | { | |
18631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18632 | result = (bool)(arg1)->IsToggled(); | |
18633 | ||
18634 | wxPyEndAllowThreads(__tstate); | |
18635 | if (PyErr_Occurred()) SWIG_fail; | |
18636 | } | |
18637 | { | |
18638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18639 | } | |
18640 | return resultobj; | |
18641 | fail: | |
18642 | return NULL; | |
18643 | } | |
18644 | ||
18645 | ||
18646 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { | |
18647 | PyObject *resultobj; | |
18648 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18649 | bool result; | |
18650 | PyObject * obj0 = 0 ; | |
18651 | char *kwnames[] = { | |
18652 | (char *) "self", NULL | |
18653 | }; | |
18654 | ||
18655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
18656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18658 | { | |
18659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18660 | result = (bool)(arg1)->CanBeToggled(); | |
18661 | ||
18662 | wxPyEndAllowThreads(__tstate); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
18664 | } | |
18665 | { | |
18666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18667 | } | |
18668 | return resultobj; | |
18669 | fail: | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
18674 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
18675 | PyObject *resultobj; | |
18676 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18677 | wxBitmap *result; | |
18678 | PyObject * obj0 = 0 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "self", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
18684 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18685 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18686 | { | |
18687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18688 | { | |
18689 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
18690 | result = (wxBitmap *) &_result_ref; | |
18691 | } | |
18692 | ||
18693 | wxPyEndAllowThreads(__tstate); | |
18694 | if (PyErr_Occurred()) SWIG_fail; | |
18695 | } | |
18696 | { | |
18697 | wxBitmap* resultptr = new wxBitmap(*result); | |
18698 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18699 | } | |
18700 | return resultobj; | |
18701 | fail: | |
18702 | return NULL; | |
18703 | } | |
18704 | ||
18705 | ||
18706 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
18707 | PyObject *resultobj; | |
18708 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18709 | wxBitmap *result; | |
18710 | PyObject * obj0 = 0 ; | |
18711 | char *kwnames[] = { | |
18712 | (char *) "self", NULL | |
18713 | }; | |
18714 | ||
18715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
18716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18718 | { | |
18719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18720 | { | |
18721 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
18722 | result = (wxBitmap *) &_result_ref; | |
18723 | } | |
18724 | ||
18725 | wxPyEndAllowThreads(__tstate); | |
18726 | if (PyErr_Occurred()) SWIG_fail; | |
18727 | } | |
18728 | { | |
18729 | wxBitmap* resultptr = new wxBitmap(*result); | |
18730 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18731 | } | |
18732 | return resultobj; | |
18733 | fail: | |
18734 | return NULL; | |
18735 | } | |
18736 | ||
18737 | ||
18738 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
18739 | PyObject *resultobj; | |
18740 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18741 | wxBitmap result; | |
18742 | PyObject * obj0 = 0 ; | |
18743 | char *kwnames[] = { | |
18744 | (char *) "self", NULL | |
18745 | }; | |
18746 | ||
18747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
18748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18750 | { | |
18751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18752 | result = (arg1)->GetBitmap(); | |
18753 | ||
18754 | wxPyEndAllowThreads(__tstate); | |
18755 | if (PyErr_Occurred()) SWIG_fail; | |
18756 | } | |
18757 | { | |
18758 | wxBitmap * resultptr; | |
18759 | resultptr = new wxBitmap((wxBitmap &)(result)); | |
18760 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
18761 | } | |
18762 | return resultobj; | |
18763 | fail: | |
18764 | return NULL; | |
18765 | } | |
18766 | ||
18767 | ||
18768 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
18769 | PyObject *resultobj; | |
18770 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18771 | wxString result; | |
18772 | PyObject * obj0 = 0 ; | |
18773 | char *kwnames[] = { | |
18774 | (char *) "self", NULL | |
18775 | }; | |
18776 | ||
18777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
18778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18780 | { | |
18781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18782 | result = (arg1)->GetLabel(); | |
18783 | ||
18784 | wxPyEndAllowThreads(__tstate); | |
18785 | if (PyErr_Occurred()) SWIG_fail; | |
18786 | } | |
18787 | { | |
18788 | #if wxUSE_UNICODE | |
18789 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18790 | #else | |
18791 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18792 | #endif | |
18793 | } | |
18794 | return resultobj; | |
18795 | fail: | |
18796 | return NULL; | |
18797 | } | |
18798 | ||
18799 | ||
18800 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
18801 | PyObject *resultobj; | |
18802 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18803 | wxString result; | |
18804 | PyObject * obj0 = 0 ; | |
18805 | char *kwnames[] = { | |
18806 | (char *) "self", NULL | |
18807 | }; | |
18808 | ||
18809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
18810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18812 | { | |
18813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18814 | result = (arg1)->GetShortHelp(); | |
18815 | ||
18816 | wxPyEndAllowThreads(__tstate); | |
18817 | if (PyErr_Occurred()) SWIG_fail; | |
18818 | } | |
18819 | { | |
18820 | #if wxUSE_UNICODE | |
18821 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18822 | #else | |
18823 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18824 | #endif | |
18825 | } | |
18826 | return resultobj; | |
18827 | fail: | |
18828 | return NULL; | |
18829 | } | |
18830 | ||
18831 | ||
18832 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
18833 | PyObject *resultobj; | |
18834 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18835 | wxString result; | |
18836 | PyObject * obj0 = 0 ; | |
18837 | char *kwnames[] = { | |
18838 | (char *) "self", NULL | |
18839 | }; | |
18840 | ||
18841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
18842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18844 | { | |
18845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18846 | result = (arg1)->GetLongHelp(); | |
18847 | ||
18848 | wxPyEndAllowThreads(__tstate); | |
18849 | if (PyErr_Occurred()) SWIG_fail; | |
18850 | } | |
18851 | { | |
18852 | #if wxUSE_UNICODE | |
18853 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18854 | #else | |
18855 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18856 | #endif | |
18857 | } | |
18858 | return resultobj; | |
18859 | fail: | |
18860 | return NULL; | |
18861 | } | |
18862 | ||
18863 | ||
18864 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { | |
18865 | PyObject *resultobj; | |
18866 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18867 | bool arg2 ; | |
18868 | bool result; | |
18869 | PyObject * obj0 = 0 ; | |
18870 | PyObject * obj1 = 0 ; | |
18871 | char *kwnames[] = { | |
18872 | (char *) "self",(char *) "enable", NULL | |
18873 | }; | |
18874 | ||
18875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
18876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18878 | { | |
18879 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18880 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18881 | } | |
18882 | { | |
18883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18884 | result = (bool)(arg1)->Enable(arg2); | |
18885 | ||
18886 | wxPyEndAllowThreads(__tstate); | |
18887 | if (PyErr_Occurred()) SWIG_fail; | |
18888 | } | |
18889 | { | |
18890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18891 | } | |
18892 | return resultobj; | |
18893 | fail: | |
18894 | return NULL; | |
18895 | } | |
18896 | ||
18897 | ||
18898 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { | |
18899 | PyObject *resultobj; | |
18900 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18901 | PyObject * obj0 = 0 ; | |
18902 | char *kwnames[] = { | |
18903 | (char *) "self", NULL | |
18904 | }; | |
18905 | ||
18906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
18907 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18908 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18909 | { | |
18910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18911 | (arg1)->Toggle(); | |
18912 | ||
18913 | wxPyEndAllowThreads(__tstate); | |
18914 | if (PyErr_Occurred()) SWIG_fail; | |
18915 | } | |
18916 | Py_INCREF(Py_None); resultobj = Py_None; | |
18917 | return resultobj; | |
18918 | fail: | |
18919 | return NULL; | |
18920 | } | |
18921 | ||
18922 | ||
18923 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { | |
18924 | PyObject *resultobj; | |
18925 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18926 | bool arg2 ; | |
18927 | bool result; | |
18928 | PyObject * obj0 = 0 ; | |
18929 | PyObject * obj1 = 0 ; | |
18930 | char *kwnames[] = { | |
18931 | (char *) "self",(char *) "toggle", NULL | |
18932 | }; | |
18933 | ||
18934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
18935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18937 | { | |
18938 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
18939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18940 | } | |
18941 | { | |
18942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18943 | result = (bool)(arg1)->SetToggle(arg2); | |
18944 | ||
18945 | wxPyEndAllowThreads(__tstate); | |
18946 | if (PyErr_Occurred()) SWIG_fail; | |
18947 | } | |
18948 | { | |
18949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18950 | } | |
18951 | return resultobj; | |
18952 | fail: | |
18953 | return NULL; | |
18954 | } | |
18955 | ||
18956 | ||
18957 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
18958 | PyObject *resultobj; | |
18959 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
18960 | wxString *arg2 = 0 ; | |
18961 | bool result; | |
18962 | bool temp2 = false ; | |
18963 | PyObject * obj0 = 0 ; | |
18964 | PyObject * obj1 = 0 ; | |
18965 | char *kwnames[] = { | |
18966 | (char *) "self",(char *) "help", NULL | |
18967 | }; | |
18968 | ||
18969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
18970 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
18971 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18972 | { | |
18973 | arg2 = wxString_in_helper(obj1); | |
18974 | if (arg2 == NULL) SWIG_fail; | |
18975 | temp2 = true; | |
18976 | } | |
18977 | { | |
18978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18979 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
18980 | ||
18981 | wxPyEndAllowThreads(__tstate); | |
18982 | if (PyErr_Occurred()) SWIG_fail; | |
18983 | } | |
18984 | { | |
18985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18986 | } | |
18987 | { | |
18988 | if (temp2) | |
18989 | delete arg2; | |
18990 | } | |
18991 | return resultobj; | |
18992 | fail: | |
18993 | { | |
18994 | if (temp2) | |
18995 | delete arg2; | |
18996 | } | |
18997 | return NULL; | |
18998 | } | |
18999 | ||
19000 | ||
19001 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
19002 | PyObject *resultobj; | |
19003 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19004 | wxString *arg2 = 0 ; | |
19005 | bool result; | |
19006 | bool temp2 = false ; | |
19007 | PyObject * obj0 = 0 ; | |
19008 | PyObject * obj1 = 0 ; | |
19009 | char *kwnames[] = { | |
19010 | (char *) "self",(char *) "help", NULL | |
19011 | }; | |
19012 | ||
19013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
19014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19016 | { | |
19017 | arg2 = wxString_in_helper(obj1); | |
19018 | if (arg2 == NULL) SWIG_fail; | |
19019 | temp2 = true; | |
19020 | } | |
19021 | { | |
19022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19023 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
19024 | ||
19025 | wxPyEndAllowThreads(__tstate); | |
19026 | if (PyErr_Occurred()) SWIG_fail; | |
19027 | } | |
19028 | { | |
19029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19030 | } | |
19031 | { | |
19032 | if (temp2) | |
19033 | delete arg2; | |
19034 | } | |
19035 | return resultobj; | |
19036 | fail: | |
19037 | { | |
19038 | if (temp2) | |
19039 | delete arg2; | |
19040 | } | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj; | |
19047 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19048 | wxBitmap *arg2 = 0 ; | |
19049 | PyObject * obj0 = 0 ; | |
19050 | PyObject * obj1 = 0 ; | |
19051 | char *kwnames[] = { | |
19052 | (char *) "self",(char *) "bmp", NULL | |
19053 | }; | |
19054 | ||
19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
19056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19058 | { | |
19059 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19060 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19061 | if (arg2 == NULL) { | |
19062 | SWIG_null_ref("wxBitmap"); | |
19063 | } | |
19064 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19065 | } | |
19066 | { | |
19067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19068 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
19069 | ||
19070 | wxPyEndAllowThreads(__tstate); | |
19071 | if (PyErr_Occurred()) SWIG_fail; | |
19072 | } | |
19073 | Py_INCREF(Py_None); resultobj = Py_None; | |
19074 | return resultobj; | |
19075 | fail: | |
19076 | return NULL; | |
19077 | } | |
19078 | ||
19079 | ||
19080 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
19081 | PyObject *resultobj; | |
19082 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19083 | wxBitmap *arg2 = 0 ; | |
19084 | PyObject * obj0 = 0 ; | |
19085 | PyObject * obj1 = 0 ; | |
19086 | char *kwnames[] = { | |
19087 | (char *) "self",(char *) "bmp", NULL | |
19088 | }; | |
19089 | ||
19090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
19091 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19092 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19093 | { | |
19094 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19095 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19096 | if (arg2 == NULL) { | |
19097 | SWIG_null_ref("wxBitmap"); | |
19098 | } | |
19099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19100 | } | |
19101 | { | |
19102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19103 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
19104 | ||
19105 | wxPyEndAllowThreads(__tstate); | |
19106 | if (PyErr_Occurred()) SWIG_fail; | |
19107 | } | |
19108 | Py_INCREF(Py_None); resultobj = Py_None; | |
19109 | return resultobj; | |
19110 | fail: | |
19111 | return NULL; | |
19112 | } | |
19113 | ||
19114 | ||
19115 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
19116 | PyObject *resultobj; | |
19117 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19118 | wxString *arg2 = 0 ; | |
19119 | bool temp2 = false ; | |
19120 | PyObject * obj0 = 0 ; | |
19121 | PyObject * obj1 = 0 ; | |
19122 | char *kwnames[] = { | |
19123 | (char *) "self",(char *) "label", NULL | |
19124 | }; | |
19125 | ||
19126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
19127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19129 | { | |
19130 | arg2 = wxString_in_helper(obj1); | |
19131 | if (arg2 == NULL) SWIG_fail; | |
19132 | temp2 = true; | |
19133 | } | |
19134 | { | |
19135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19136 | (arg1)->SetLabel((wxString const &)*arg2); | |
19137 | ||
19138 | wxPyEndAllowThreads(__tstate); | |
19139 | if (PyErr_Occurred()) SWIG_fail; | |
19140 | } | |
19141 | Py_INCREF(Py_None); resultobj = Py_None; | |
19142 | { | |
19143 | if (temp2) | |
19144 | delete arg2; | |
19145 | } | |
19146 | return resultobj; | |
19147 | fail: | |
19148 | { | |
19149 | if (temp2) | |
19150 | delete arg2; | |
19151 | } | |
19152 | return NULL; | |
19153 | } | |
19154 | ||
19155 | ||
19156 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { | |
19157 | PyObject *resultobj; | |
19158 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19159 | PyObject * obj0 = 0 ; | |
19160 | char *kwnames[] = { | |
19161 | (char *) "self", NULL | |
19162 | }; | |
19163 | ||
19164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
19165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19167 | { | |
19168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19169 | (arg1)->Detach(); | |
19170 | ||
19171 | wxPyEndAllowThreads(__tstate); | |
19172 | if (PyErr_Occurred()) SWIG_fail; | |
19173 | } | |
19174 | Py_INCREF(Py_None); resultobj = Py_None; | |
19175 | return resultobj; | |
19176 | fail: | |
19177 | return NULL; | |
19178 | } | |
19179 | ||
19180 | ||
19181 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { | |
19182 | PyObject *resultobj; | |
19183 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19184 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
19185 | PyObject * obj0 = 0 ; | |
19186 | PyObject * obj1 = 0 ; | |
19187 | char *kwnames[] = { | |
19188 | (char *) "self",(char *) "tbar", NULL | |
19189 | }; | |
19190 | ||
19191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
19192 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19193 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19194 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19195 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19196 | { | |
19197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19198 | (arg1)->Attach(arg2); | |
19199 | ||
19200 | wxPyEndAllowThreads(__tstate); | |
19201 | if (PyErr_Occurred()) SWIG_fail; | |
19202 | } | |
19203 | Py_INCREF(Py_None); resultobj = Py_None; | |
19204 | return resultobj; | |
19205 | fail: | |
19206 | return NULL; | |
19207 | } | |
19208 | ||
19209 | ||
19210 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { | |
19211 | PyObject *resultobj; | |
19212 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19213 | PyObject *result; | |
19214 | PyObject * obj0 = 0 ; | |
19215 | char *kwnames[] = { | |
19216 | (char *) "self", NULL | |
19217 | }; | |
19218 | ||
19219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
19220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19222 | { | |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
19225 | ||
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
19229 | resultobj = result; | |
19230 | return resultobj; | |
19231 | fail: | |
19232 | return NULL; | |
19233 | } | |
19234 | ||
19235 | ||
19236 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { | |
19237 | PyObject *resultobj; | |
19238 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
19239 | PyObject *arg2 = (PyObject *) 0 ; | |
19240 | PyObject * obj0 = 0 ; | |
19241 | PyObject * obj1 = 0 ; | |
19242 | char *kwnames[] = { | |
19243 | (char *) "self",(char *) "clientData", NULL | |
19244 | }; | |
19245 | ||
19246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
19247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19249 | arg2 = obj1; | |
19250 | { | |
19251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19252 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
19253 | ||
19254 | wxPyEndAllowThreads(__tstate); | |
19255 | if (PyErr_Occurred()) SWIG_fail; | |
19256 | } | |
19257 | Py_INCREF(Py_None); resultobj = Py_None; | |
19258 | return resultobj; | |
19259 | fail: | |
19260 | return NULL; | |
19261 | } | |
19262 | ||
19263 | ||
19264 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { | |
19265 | PyObject *obj; | |
19266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19267 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
19268 | Py_INCREF(obj); | |
19269 | return Py_BuildValue((char *)""); | |
19270 | } | |
19271 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { | |
19272 | PyObject *resultobj; | |
19273 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19274 | int arg2 ; | |
19275 | wxString *arg3 = 0 ; | |
19276 | wxBitmap *arg4 = 0 ; | |
19277 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
19278 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
19279 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; | |
19280 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
19281 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19282 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
19283 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19284 | PyObject *arg9 = (PyObject *) NULL ; | |
19285 | wxToolBarToolBase *result; | |
19286 | bool temp3 = false ; | |
19287 | bool temp7 = false ; | |
19288 | bool temp8 = false ; | |
19289 | PyObject * obj0 = 0 ; | |
19290 | PyObject * obj1 = 0 ; | |
19291 | PyObject * obj2 = 0 ; | |
19292 | PyObject * obj3 = 0 ; | |
19293 | PyObject * obj4 = 0 ; | |
19294 | PyObject * obj5 = 0 ; | |
19295 | PyObject * obj6 = 0 ; | |
19296 | PyObject * obj7 = 0 ; | |
19297 | PyObject * obj8 = 0 ; | |
19298 | char *kwnames[] = { | |
19299 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19300 | }; | |
19301 | ||
19302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
19303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19305 | { | |
19306 | arg2 = (int)(SWIG_As_int(obj1)); | |
19307 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19308 | } | |
19309 | { | |
19310 | arg3 = wxString_in_helper(obj2); | |
19311 | if (arg3 == NULL) SWIG_fail; | |
19312 | temp3 = true; | |
19313 | } | |
19314 | { | |
19315 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19316 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19317 | if (arg4 == NULL) { | |
19318 | SWIG_null_ref("wxBitmap"); | |
19319 | } | |
19320 | if (SWIG_arg_fail(4)) SWIG_fail; | |
19321 | } | |
19322 | if (obj4) { | |
19323 | { | |
19324 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19325 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19326 | if (arg5 == NULL) { | |
19327 | SWIG_null_ref("wxBitmap"); | |
19328 | } | |
19329 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19330 | } | |
19331 | } | |
19332 | if (obj5) { | |
19333 | { | |
19334 | arg6 = (wxItemKind)(SWIG_As_int(obj5)); | |
19335 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19336 | } | |
19337 | } | |
19338 | if (obj6) { | |
19339 | { | |
19340 | arg7 = wxString_in_helper(obj6); | |
19341 | if (arg7 == NULL) SWIG_fail; | |
19342 | temp7 = true; | |
19343 | } | |
19344 | } | |
19345 | if (obj7) { | |
19346 | { | |
19347 | arg8 = wxString_in_helper(obj7); | |
19348 | if (arg8 == NULL) SWIG_fail; | |
19349 | temp8 = true; | |
19350 | } | |
19351 | } | |
19352 | if (obj8) { | |
19353 | arg9 = obj8; | |
19354 | } | |
19355 | { | |
19356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19357 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
19358 | ||
19359 | wxPyEndAllowThreads(__tstate); | |
19360 | if (PyErr_Occurred()) SWIG_fail; | |
19361 | } | |
19362 | { | |
19363 | resultobj = wxPyMake_wxObject(result, 0); | |
19364 | } | |
19365 | { | |
19366 | if (temp3) | |
19367 | delete arg3; | |
19368 | } | |
19369 | { | |
19370 | if (temp7) | |
19371 | delete arg7; | |
19372 | } | |
19373 | { | |
19374 | if (temp8) | |
19375 | delete arg8; | |
19376 | } | |
19377 | return resultobj; | |
19378 | fail: | |
19379 | { | |
19380 | if (temp3) | |
19381 | delete arg3; | |
19382 | } | |
19383 | { | |
19384 | if (temp7) | |
19385 | delete arg7; | |
19386 | } | |
19387 | { | |
19388 | if (temp8) | |
19389 | delete arg8; | |
19390 | } | |
19391 | return NULL; | |
19392 | } | |
19393 | ||
19394 | ||
19395 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { | |
19396 | PyObject *resultobj; | |
19397 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19398 | size_t arg2 ; | |
19399 | int arg3 ; | |
19400 | wxString *arg4 = 0 ; | |
19401 | wxBitmap *arg5 = 0 ; | |
19402 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
19403 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
19404 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; | |
19405 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
19406 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19407 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
19408 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
19409 | PyObject *arg10 = (PyObject *) NULL ; | |
19410 | wxToolBarToolBase *result; | |
19411 | bool temp4 = false ; | |
19412 | bool temp8 = false ; | |
19413 | bool temp9 = false ; | |
19414 | PyObject * obj0 = 0 ; | |
19415 | PyObject * obj1 = 0 ; | |
19416 | PyObject * obj2 = 0 ; | |
19417 | PyObject * obj3 = 0 ; | |
19418 | PyObject * obj4 = 0 ; | |
19419 | PyObject * obj5 = 0 ; | |
19420 | PyObject * obj6 = 0 ; | |
19421 | PyObject * obj7 = 0 ; | |
19422 | PyObject * obj8 = 0 ; | |
19423 | PyObject * obj9 = 0 ; | |
19424 | char *kwnames[] = { | |
19425 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
19426 | }; | |
19427 | ||
19428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
19429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19431 | { | |
19432 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19433 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19434 | } | |
19435 | { | |
19436 | arg3 = (int)(SWIG_As_int(obj2)); | |
19437 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19438 | } | |
19439 | { | |
19440 | arg4 = wxString_in_helper(obj3); | |
19441 | if (arg4 == NULL) SWIG_fail; | |
19442 | temp4 = true; | |
19443 | } | |
19444 | { | |
19445 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19446 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19447 | if (arg5 == NULL) { | |
19448 | SWIG_null_ref("wxBitmap"); | |
19449 | } | |
19450 | if (SWIG_arg_fail(5)) SWIG_fail; | |
19451 | } | |
19452 | if (obj5) { | |
19453 | { | |
19454 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
19455 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19456 | if (arg6 == NULL) { | |
19457 | SWIG_null_ref("wxBitmap"); | |
19458 | } | |
19459 | if (SWIG_arg_fail(6)) SWIG_fail; | |
19460 | } | |
19461 | } | |
19462 | if (obj6) { | |
19463 | { | |
19464 | arg7 = (wxItemKind)(SWIG_As_int(obj6)); | |
19465 | if (SWIG_arg_fail(7)) SWIG_fail; | |
19466 | } | |
19467 | } | |
19468 | if (obj7) { | |
19469 | { | |
19470 | arg8 = wxString_in_helper(obj7); | |
19471 | if (arg8 == NULL) SWIG_fail; | |
19472 | temp8 = true; | |
19473 | } | |
19474 | } | |
19475 | if (obj8) { | |
19476 | { | |
19477 | arg9 = wxString_in_helper(obj8); | |
19478 | if (arg9 == NULL) SWIG_fail; | |
19479 | temp9 = true; | |
19480 | } | |
19481 | } | |
19482 | if (obj9) { | |
19483 | arg10 = obj9; | |
19484 | } | |
19485 | { | |
19486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19487 | 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); | |
19488 | ||
19489 | wxPyEndAllowThreads(__tstate); | |
19490 | if (PyErr_Occurred()) SWIG_fail; | |
19491 | } | |
19492 | { | |
19493 | resultobj = wxPyMake_wxObject(result, 0); | |
19494 | } | |
19495 | { | |
19496 | if (temp4) | |
19497 | delete arg4; | |
19498 | } | |
19499 | { | |
19500 | if (temp8) | |
19501 | delete arg8; | |
19502 | } | |
19503 | { | |
19504 | if (temp9) | |
19505 | delete arg9; | |
19506 | } | |
19507 | return resultobj; | |
19508 | fail: | |
19509 | { | |
19510 | if (temp4) | |
19511 | delete arg4; | |
19512 | } | |
19513 | { | |
19514 | if (temp8) | |
19515 | delete arg8; | |
19516 | } | |
19517 | { | |
19518 | if (temp9) | |
19519 | delete arg9; | |
19520 | } | |
19521 | return NULL; | |
19522 | } | |
19523 | ||
19524 | ||
19525 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
19526 | PyObject *resultobj; | |
19527 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19528 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
19529 | wxToolBarToolBase *result; | |
19530 | PyObject * obj0 = 0 ; | |
19531 | PyObject * obj1 = 0 ; | |
19532 | char *kwnames[] = { | |
19533 | (char *) "self",(char *) "tool", NULL | |
19534 | }; | |
19535 | ||
19536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
19537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19539 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19540 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19541 | { | |
19542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19543 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
19544 | ||
19545 | wxPyEndAllowThreads(__tstate); | |
19546 | if (PyErr_Occurred()) SWIG_fail; | |
19547 | } | |
19548 | { | |
19549 | resultobj = wxPyMake_wxObject(result, 0); | |
19550 | } | |
19551 | return resultobj; | |
19552 | fail: | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
19557 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
19558 | PyObject *resultobj; | |
19559 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19560 | size_t arg2 ; | |
19561 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
19562 | wxToolBarToolBase *result; | |
19563 | PyObject * obj0 = 0 ; | |
19564 | PyObject * obj1 = 0 ; | |
19565 | PyObject * obj2 = 0 ; | |
19566 | char *kwnames[] = { | |
19567 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
19568 | }; | |
19569 | ||
19570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19573 | { | |
19574 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19575 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19576 | } | |
19577 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
19578 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19579 | { | |
19580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19581 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
19582 | ||
19583 | wxPyEndAllowThreads(__tstate); | |
19584 | if (PyErr_Occurred()) SWIG_fail; | |
19585 | } | |
19586 | { | |
19587 | resultobj = wxPyMake_wxObject(result, 0); | |
19588 | } | |
19589 | return resultobj; | |
19590 | fail: | |
19591 | return NULL; | |
19592 | } | |
19593 | ||
19594 | ||
19595 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
19596 | PyObject *resultobj; | |
19597 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19598 | wxControl *arg2 = (wxControl *) 0 ; | |
19599 | wxToolBarToolBase *result; | |
19600 | PyObject * obj0 = 0 ; | |
19601 | PyObject * obj1 = 0 ; | |
19602 | char *kwnames[] = { | |
19603 | (char *) "self",(char *) "control", NULL | |
19604 | }; | |
19605 | ||
19606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
19607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19609 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19610 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19611 | { | |
19612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19613 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
19614 | ||
19615 | wxPyEndAllowThreads(__tstate); | |
19616 | if (PyErr_Occurred()) SWIG_fail; | |
19617 | } | |
19618 | { | |
19619 | resultobj = wxPyMake_wxObject(result, 0); | |
19620 | } | |
19621 | return resultobj; | |
19622 | fail: | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
19627 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
19628 | PyObject *resultobj; | |
19629 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19630 | size_t arg2 ; | |
19631 | wxControl *arg3 = (wxControl *) 0 ; | |
19632 | wxToolBarToolBase *result; | |
19633 | PyObject * obj0 = 0 ; | |
19634 | PyObject * obj1 = 0 ; | |
19635 | PyObject * obj2 = 0 ; | |
19636 | char *kwnames[] = { | |
19637 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
19638 | }; | |
19639 | ||
19640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19643 | { | |
19644 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19645 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19646 | } | |
19647 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
19648 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19649 | { | |
19650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19651 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
19656 | { | |
19657 | resultobj = wxPyMake_wxObject(result, 0); | |
19658 | } | |
19659 | return resultobj; | |
19660 | fail: | |
19661 | return NULL; | |
19662 | } | |
19663 | ||
19664 | ||
19665 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
19666 | PyObject *resultobj; | |
19667 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19668 | int arg2 ; | |
19669 | wxControl *result; | |
19670 | PyObject * obj0 = 0 ; | |
19671 | PyObject * obj1 = 0 ; | |
19672 | char *kwnames[] = { | |
19673 | (char *) "self",(char *) "id", NULL | |
19674 | }; | |
19675 | ||
19676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
19677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19679 | { | |
19680 | arg2 = (int)(SWIG_As_int(obj1)); | |
19681 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19682 | } | |
19683 | { | |
19684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19685 | result = (wxControl *)(arg1)->FindControl(arg2); | |
19686 | ||
19687 | wxPyEndAllowThreads(__tstate); | |
19688 | if (PyErr_Occurred()) SWIG_fail; | |
19689 | } | |
19690 | { | |
19691 | resultobj = wxPyMake_wxObject(result, 0); | |
19692 | } | |
19693 | return resultobj; | |
19694 | fail: | |
19695 | return NULL; | |
19696 | } | |
19697 | ||
19698 | ||
19699 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { | |
19700 | PyObject *resultobj; | |
19701 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19702 | wxToolBarToolBase *result; | |
19703 | PyObject * obj0 = 0 ; | |
19704 | char *kwnames[] = { | |
19705 | (char *) "self", NULL | |
19706 | }; | |
19707 | ||
19708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
19709 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19710 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19711 | { | |
19712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19713 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
19714 | ||
19715 | wxPyEndAllowThreads(__tstate); | |
19716 | if (PyErr_Occurred()) SWIG_fail; | |
19717 | } | |
19718 | { | |
19719 | resultobj = wxPyMake_wxObject(result, 0); | |
19720 | } | |
19721 | return resultobj; | |
19722 | fail: | |
19723 | return NULL; | |
19724 | } | |
19725 | ||
19726 | ||
19727 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { | |
19728 | PyObject *resultobj; | |
19729 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19730 | size_t arg2 ; | |
19731 | wxToolBarToolBase *result; | |
19732 | PyObject * obj0 = 0 ; | |
19733 | PyObject * obj1 = 0 ; | |
19734 | char *kwnames[] = { | |
19735 | (char *) "self",(char *) "pos", NULL | |
19736 | }; | |
19737 | ||
19738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
19739 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19740 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19741 | { | |
19742 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19743 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19744 | } | |
19745 | { | |
19746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19747 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
19748 | ||
19749 | wxPyEndAllowThreads(__tstate); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | } | |
19752 | { | |
19753 | resultobj = wxPyMake_wxObject(result, 0); | |
19754 | } | |
19755 | return resultobj; | |
19756 | fail: | |
19757 | return NULL; | |
19758 | } | |
19759 | ||
19760 | ||
19761 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { | |
19762 | PyObject *resultobj; | |
19763 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19764 | int arg2 ; | |
19765 | wxToolBarToolBase *result; | |
19766 | PyObject * obj0 = 0 ; | |
19767 | PyObject * obj1 = 0 ; | |
19768 | char *kwnames[] = { | |
19769 | (char *) "self",(char *) "id", NULL | |
19770 | }; | |
19771 | ||
19772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
19773 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19774 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19775 | { | |
19776 | arg2 = (int)(SWIG_As_int(obj1)); | |
19777 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19778 | } | |
19779 | { | |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
19782 | ||
19783 | wxPyEndAllowThreads(__tstate); | |
19784 | if (PyErr_Occurred()) SWIG_fail; | |
19785 | } | |
19786 | { | |
19787 | resultobj = wxPyMake_wxObject(result, 0); | |
19788 | } | |
19789 | return resultobj; | |
19790 | fail: | |
19791 | return NULL; | |
19792 | } | |
19793 | ||
19794 | ||
19795 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { | |
19796 | PyObject *resultobj; | |
19797 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19798 | size_t arg2 ; | |
19799 | bool result; | |
19800 | PyObject * obj0 = 0 ; | |
19801 | PyObject * obj1 = 0 ; | |
19802 | char *kwnames[] = { | |
19803 | (char *) "self",(char *) "pos", NULL | |
19804 | }; | |
19805 | ||
19806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
19807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19809 | { | |
19810 | arg2 = (size_t)(SWIG_As_unsigned_SS_long(obj1)); | |
19811 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19812 | } | |
19813 | { | |
19814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19815 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
19816 | ||
19817 | wxPyEndAllowThreads(__tstate); | |
19818 | if (PyErr_Occurred()) SWIG_fail; | |
19819 | } | |
19820 | { | |
19821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19822 | } | |
19823 | return resultobj; | |
19824 | fail: | |
19825 | return NULL; | |
19826 | } | |
19827 | ||
19828 | ||
19829 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { | |
19830 | PyObject *resultobj; | |
19831 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19832 | int arg2 ; | |
19833 | bool result; | |
19834 | PyObject * obj0 = 0 ; | |
19835 | PyObject * obj1 = 0 ; | |
19836 | char *kwnames[] = { | |
19837 | (char *) "self",(char *) "id", NULL | |
19838 | }; | |
19839 | ||
19840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
19841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19843 | { | |
19844 | arg2 = (int)(SWIG_As_int(obj1)); | |
19845 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19846 | } | |
19847 | { | |
19848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19849 | result = (bool)(arg1)->DeleteTool(arg2); | |
19850 | ||
19851 | wxPyEndAllowThreads(__tstate); | |
19852 | if (PyErr_Occurred()) SWIG_fail; | |
19853 | } | |
19854 | { | |
19855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19856 | } | |
19857 | return resultobj; | |
19858 | fail: | |
19859 | return NULL; | |
19860 | } | |
19861 | ||
19862 | ||
19863 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { | |
19864 | PyObject *resultobj; | |
19865 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19866 | PyObject * obj0 = 0 ; | |
19867 | char *kwnames[] = { | |
19868 | (char *) "self", NULL | |
19869 | }; | |
19870 | ||
19871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
19872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19874 | { | |
19875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19876 | (arg1)->ClearTools(); | |
19877 | ||
19878 | wxPyEndAllowThreads(__tstate); | |
19879 | if (PyErr_Occurred()) SWIG_fail; | |
19880 | } | |
19881 | Py_INCREF(Py_None); resultobj = Py_None; | |
19882 | return resultobj; | |
19883 | fail: | |
19884 | return NULL; | |
19885 | } | |
19886 | ||
19887 | ||
19888 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { | |
19889 | PyObject *resultobj; | |
19890 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19891 | bool result; | |
19892 | PyObject * obj0 = 0 ; | |
19893 | char *kwnames[] = { | |
19894 | (char *) "self", NULL | |
19895 | }; | |
19896 | ||
19897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
19898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19900 | { | |
19901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19902 | result = (bool)(arg1)->Realize(); | |
19903 | ||
19904 | wxPyEndAllowThreads(__tstate); | |
19905 | if (PyErr_Occurred()) SWIG_fail; | |
19906 | } | |
19907 | { | |
19908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19909 | } | |
19910 | return resultobj; | |
19911 | fail: | |
19912 | return NULL; | |
19913 | } | |
19914 | ||
19915 | ||
19916 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { | |
19917 | PyObject *resultobj; | |
19918 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19919 | int arg2 ; | |
19920 | bool arg3 ; | |
19921 | PyObject * obj0 = 0 ; | |
19922 | PyObject * obj1 = 0 ; | |
19923 | PyObject * obj2 = 0 ; | |
19924 | char *kwnames[] = { | |
19925 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
19926 | }; | |
19927 | ||
19928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19931 | { | |
19932 | arg2 = (int)(SWIG_As_int(obj1)); | |
19933 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19934 | } | |
19935 | { | |
19936 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
19937 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19938 | } | |
19939 | { | |
19940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19941 | (arg1)->EnableTool(arg2,arg3); | |
19942 | ||
19943 | wxPyEndAllowThreads(__tstate); | |
19944 | if (PyErr_Occurred()) SWIG_fail; | |
19945 | } | |
19946 | Py_INCREF(Py_None); resultobj = Py_None; | |
19947 | return resultobj; | |
19948 | fail: | |
19949 | return NULL; | |
19950 | } | |
19951 | ||
19952 | ||
19953 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { | |
19954 | PyObject *resultobj; | |
19955 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19956 | int arg2 ; | |
19957 | bool arg3 ; | |
19958 | PyObject * obj0 = 0 ; | |
19959 | PyObject * obj1 = 0 ; | |
19960 | PyObject * obj2 = 0 ; | |
19961 | char *kwnames[] = { | |
19962 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
19963 | }; | |
19964 | ||
19965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19966 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
19967 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19968 | { | |
19969 | arg2 = (int)(SWIG_As_int(obj1)); | |
19970 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19971 | } | |
19972 | { | |
19973 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
19974 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19975 | } | |
19976 | { | |
19977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19978 | (arg1)->ToggleTool(arg2,arg3); | |
19979 | ||
19980 | wxPyEndAllowThreads(__tstate); | |
19981 | if (PyErr_Occurred()) SWIG_fail; | |
19982 | } | |
19983 | Py_INCREF(Py_None); resultobj = Py_None; | |
19984 | return resultobj; | |
19985 | fail: | |
19986 | return NULL; | |
19987 | } | |
19988 | ||
19989 | ||
19990 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { | |
19991 | PyObject *resultobj; | |
19992 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
19993 | int arg2 ; | |
19994 | bool arg3 ; | |
19995 | PyObject * obj0 = 0 ; | |
19996 | PyObject * obj1 = 0 ; | |
19997 | PyObject * obj2 = 0 ; | |
19998 | char *kwnames[] = { | |
19999 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
20000 | }; | |
20001 | ||
20002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20003 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20004 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20005 | { | |
20006 | arg2 = (int)(SWIG_As_int(obj1)); | |
20007 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20008 | } | |
20009 | { | |
20010 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
20011 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20012 | } | |
20013 | { | |
20014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20015 | (arg1)->SetToggle(arg2,arg3); | |
20016 | ||
20017 | wxPyEndAllowThreads(__tstate); | |
20018 | if (PyErr_Occurred()) SWIG_fail; | |
20019 | } | |
20020 | Py_INCREF(Py_None); resultobj = Py_None; | |
20021 | return resultobj; | |
20022 | fail: | |
20023 | return NULL; | |
20024 | } | |
20025 | ||
20026 | ||
20027 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { | |
20028 | PyObject *resultobj; | |
20029 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20030 | int arg2 ; | |
20031 | PyObject *result; | |
20032 | PyObject * obj0 = 0 ; | |
20033 | PyObject * obj1 = 0 ; | |
20034 | char *kwnames[] = { | |
20035 | (char *) "self",(char *) "id", NULL | |
20036 | }; | |
20037 | ||
20038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
20039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20041 | { | |
20042 | arg2 = (int)(SWIG_As_int(obj1)); | |
20043 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20044 | } | |
20045 | { | |
20046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20047 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
20048 | ||
20049 | wxPyEndAllowThreads(__tstate); | |
20050 | if (PyErr_Occurred()) SWIG_fail; | |
20051 | } | |
20052 | resultobj = result; | |
20053 | return resultobj; | |
20054 | fail: | |
20055 | return NULL; | |
20056 | } | |
20057 | ||
20058 | ||
20059 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { | |
20060 | PyObject *resultobj; | |
20061 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20062 | int arg2 ; | |
20063 | PyObject *arg3 = (PyObject *) 0 ; | |
20064 | PyObject * obj0 = 0 ; | |
20065 | PyObject * obj1 = 0 ; | |
20066 | PyObject * obj2 = 0 ; | |
20067 | char *kwnames[] = { | |
20068 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
20069 | }; | |
20070 | ||
20071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
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 | arg3 = obj2; | |
20079 | { | |
20080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20081 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
20082 | ||
20083 | wxPyEndAllowThreads(__tstate); | |
20084 | if (PyErr_Occurred()) SWIG_fail; | |
20085 | } | |
20086 | Py_INCREF(Py_None); resultobj = Py_None; | |
20087 | return resultobj; | |
20088 | fail: | |
20089 | return NULL; | |
20090 | } | |
20091 | ||
20092 | ||
20093 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { | |
20094 | PyObject *resultobj; | |
20095 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20096 | int arg2 ; | |
20097 | int result; | |
20098 | PyObject * obj0 = 0 ; | |
20099 | PyObject * obj1 = 0 ; | |
20100 | char *kwnames[] = { | |
20101 | (char *) "self",(char *) "id", NULL | |
20102 | }; | |
20103 | ||
20104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
20105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20107 | { | |
20108 | arg2 = (int)(SWIG_As_int(obj1)); | |
20109 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20110 | } | |
20111 | { | |
20112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20113 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
20114 | ||
20115 | wxPyEndAllowThreads(__tstate); | |
20116 | if (PyErr_Occurred()) SWIG_fail; | |
20117 | } | |
20118 | { | |
20119 | resultobj = SWIG_From_int((int)(result)); | |
20120 | } | |
20121 | return resultobj; | |
20122 | fail: | |
20123 | return NULL; | |
20124 | } | |
20125 | ||
20126 | ||
20127 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { | |
20128 | PyObject *resultobj; | |
20129 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20130 | int arg2 ; | |
20131 | bool result; | |
20132 | PyObject * obj0 = 0 ; | |
20133 | PyObject * obj1 = 0 ; | |
20134 | char *kwnames[] = { | |
20135 | (char *) "self",(char *) "id", NULL | |
20136 | }; | |
20137 | ||
20138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
20139 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20140 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20141 | { | |
20142 | arg2 = (int)(SWIG_As_int(obj1)); | |
20143 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20144 | } | |
20145 | { | |
20146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20147 | result = (bool)(arg1)->GetToolState(arg2); | |
20148 | ||
20149 | wxPyEndAllowThreads(__tstate); | |
20150 | if (PyErr_Occurred()) SWIG_fail; | |
20151 | } | |
20152 | { | |
20153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20154 | } | |
20155 | return resultobj; | |
20156 | fail: | |
20157 | return NULL; | |
20158 | } | |
20159 | ||
20160 | ||
20161 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { | |
20162 | PyObject *resultobj; | |
20163 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20164 | int arg2 ; | |
20165 | bool result; | |
20166 | PyObject * obj0 = 0 ; | |
20167 | PyObject * obj1 = 0 ; | |
20168 | char *kwnames[] = { | |
20169 | (char *) "self",(char *) "id", NULL | |
20170 | }; | |
20171 | ||
20172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
20173 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20174 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20175 | { | |
20176 | arg2 = (int)(SWIG_As_int(obj1)); | |
20177 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20178 | } | |
20179 | { | |
20180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20181 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
20182 | ||
20183 | wxPyEndAllowThreads(__tstate); | |
20184 | if (PyErr_Occurred()) SWIG_fail; | |
20185 | } | |
20186 | { | |
20187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20188 | } | |
20189 | return resultobj; | |
20190 | fail: | |
20191 | return NULL; | |
20192 | } | |
20193 | ||
20194 | ||
20195 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
20196 | PyObject *resultobj; | |
20197 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20198 | int arg2 ; | |
20199 | wxString *arg3 = 0 ; | |
20200 | bool temp3 = false ; | |
20201 | PyObject * obj0 = 0 ; | |
20202 | PyObject * obj1 = 0 ; | |
20203 | PyObject * obj2 = 0 ; | |
20204 | char *kwnames[] = { | |
20205 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20206 | }; | |
20207 | ||
20208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20211 | { | |
20212 | arg2 = (int)(SWIG_As_int(obj1)); | |
20213 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20214 | } | |
20215 | { | |
20216 | arg3 = wxString_in_helper(obj2); | |
20217 | if (arg3 == NULL) SWIG_fail; | |
20218 | temp3 = true; | |
20219 | } | |
20220 | { | |
20221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20222 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
20223 | ||
20224 | wxPyEndAllowThreads(__tstate); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
20226 | } | |
20227 | Py_INCREF(Py_None); resultobj = Py_None; | |
20228 | { | |
20229 | if (temp3) | |
20230 | delete arg3; | |
20231 | } | |
20232 | return resultobj; | |
20233 | fail: | |
20234 | { | |
20235 | if (temp3) | |
20236 | delete arg3; | |
20237 | } | |
20238 | return NULL; | |
20239 | } | |
20240 | ||
20241 | ||
20242 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
20243 | PyObject *resultobj; | |
20244 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20245 | int arg2 ; | |
20246 | wxString result; | |
20247 | PyObject * obj0 = 0 ; | |
20248 | PyObject * obj1 = 0 ; | |
20249 | char *kwnames[] = { | |
20250 | (char *) "self",(char *) "id", NULL | |
20251 | }; | |
20252 | ||
20253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
20254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20256 | { | |
20257 | arg2 = (int)(SWIG_As_int(obj1)); | |
20258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20259 | } | |
20260 | { | |
20261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20262 | result = (arg1)->GetToolShortHelp(arg2); | |
20263 | ||
20264 | wxPyEndAllowThreads(__tstate); | |
20265 | if (PyErr_Occurred()) SWIG_fail; | |
20266 | } | |
20267 | { | |
20268 | #if wxUSE_UNICODE | |
20269 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20270 | #else | |
20271 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20272 | #endif | |
20273 | } | |
20274 | return resultobj; | |
20275 | fail: | |
20276 | return NULL; | |
20277 | } | |
20278 | ||
20279 | ||
20280 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
20281 | PyObject *resultobj; | |
20282 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20283 | int arg2 ; | |
20284 | wxString *arg3 = 0 ; | |
20285 | bool temp3 = false ; | |
20286 | PyObject * obj0 = 0 ; | |
20287 | PyObject * obj1 = 0 ; | |
20288 | PyObject * obj2 = 0 ; | |
20289 | char *kwnames[] = { | |
20290 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
20291 | }; | |
20292 | ||
20293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20296 | { | |
20297 | arg2 = (int)(SWIG_As_int(obj1)); | |
20298 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20299 | } | |
20300 | { | |
20301 | arg3 = wxString_in_helper(obj2); | |
20302 | if (arg3 == NULL) SWIG_fail; | |
20303 | temp3 = true; | |
20304 | } | |
20305 | { | |
20306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20307 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
20308 | ||
20309 | wxPyEndAllowThreads(__tstate); | |
20310 | if (PyErr_Occurred()) SWIG_fail; | |
20311 | } | |
20312 | Py_INCREF(Py_None); resultobj = Py_None; | |
20313 | { | |
20314 | if (temp3) | |
20315 | delete arg3; | |
20316 | } | |
20317 | return resultobj; | |
20318 | fail: | |
20319 | { | |
20320 | if (temp3) | |
20321 | delete arg3; | |
20322 | } | |
20323 | return NULL; | |
20324 | } | |
20325 | ||
20326 | ||
20327 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
20328 | PyObject *resultobj; | |
20329 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20330 | int arg2 ; | |
20331 | wxString result; | |
20332 | PyObject * obj0 = 0 ; | |
20333 | PyObject * obj1 = 0 ; | |
20334 | char *kwnames[] = { | |
20335 | (char *) "self",(char *) "id", NULL | |
20336 | }; | |
20337 | ||
20338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
20339 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20340 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20341 | { | |
20342 | arg2 = (int)(SWIG_As_int(obj1)); | |
20343 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20344 | } | |
20345 | { | |
20346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20347 | result = (arg1)->GetToolLongHelp(arg2); | |
20348 | ||
20349 | wxPyEndAllowThreads(__tstate); | |
20350 | if (PyErr_Occurred()) SWIG_fail; | |
20351 | } | |
20352 | { | |
20353 | #if wxUSE_UNICODE | |
20354 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20355 | #else | |
20356 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20357 | #endif | |
20358 | } | |
20359 | return resultobj; | |
20360 | fail: | |
20361 | return NULL; | |
20362 | } | |
20363 | ||
20364 | ||
20365 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { | |
20366 | PyObject *resultobj; | |
20367 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20368 | int arg2 ; | |
20369 | int arg3 ; | |
20370 | PyObject * obj0 = 0 ; | |
20371 | PyObject * obj1 = 0 ; | |
20372 | PyObject * obj2 = 0 ; | |
20373 | char *kwnames[] = { | |
20374 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20375 | }; | |
20376 | ||
20377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20378 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20379 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20380 | { | |
20381 | arg2 = (int)(SWIG_As_int(obj1)); | |
20382 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20383 | } | |
20384 | { | |
20385 | arg3 = (int)(SWIG_As_int(obj2)); | |
20386 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20387 | } | |
20388 | { | |
20389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20390 | (arg1)->SetMargins(arg2,arg3); | |
20391 | ||
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | Py_INCREF(Py_None); resultobj = Py_None; | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
20402 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
20403 | PyObject *resultobj; | |
20404 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20405 | wxSize *arg2 = 0 ; | |
20406 | wxSize temp2 ; | |
20407 | PyObject * obj0 = 0 ; | |
20408 | PyObject * obj1 = 0 ; | |
20409 | char *kwnames[] = { | |
20410 | (char *) "self",(char *) "size", NULL | |
20411 | }; | |
20412 | ||
20413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
20414 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20415 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20416 | { | |
20417 | arg2 = &temp2; | |
20418 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20419 | } | |
20420 | { | |
20421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20422 | (arg1)->SetMargins((wxSize const &)*arg2); | |
20423 | ||
20424 | wxPyEndAllowThreads(__tstate); | |
20425 | if (PyErr_Occurred()) SWIG_fail; | |
20426 | } | |
20427 | Py_INCREF(Py_None); resultobj = Py_None; | |
20428 | return resultobj; | |
20429 | fail: | |
20430 | return NULL; | |
20431 | } | |
20432 | ||
20433 | ||
20434 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { | |
20435 | PyObject *resultobj; | |
20436 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20437 | int arg2 ; | |
20438 | PyObject * obj0 = 0 ; | |
20439 | PyObject * obj1 = 0 ; | |
20440 | char *kwnames[] = { | |
20441 | (char *) "self",(char *) "packing", NULL | |
20442 | }; | |
20443 | ||
20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
20445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20447 | { | |
20448 | arg2 = (int)(SWIG_As_int(obj1)); | |
20449 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20450 | } | |
20451 | { | |
20452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20453 | (arg1)->SetToolPacking(arg2); | |
20454 | ||
20455 | wxPyEndAllowThreads(__tstate); | |
20456 | if (PyErr_Occurred()) SWIG_fail; | |
20457 | } | |
20458 | Py_INCREF(Py_None); resultobj = Py_None; | |
20459 | return resultobj; | |
20460 | fail: | |
20461 | return NULL; | |
20462 | } | |
20463 | ||
20464 | ||
20465 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { | |
20466 | PyObject *resultobj; | |
20467 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20468 | int arg2 ; | |
20469 | PyObject * obj0 = 0 ; | |
20470 | PyObject * obj1 = 0 ; | |
20471 | char *kwnames[] = { | |
20472 | (char *) "self",(char *) "separation", NULL | |
20473 | }; | |
20474 | ||
20475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
20476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20478 | { | |
20479 | arg2 = (int)(SWIG_As_int(obj1)); | |
20480 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20481 | } | |
20482 | { | |
20483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20484 | (arg1)->SetToolSeparation(arg2); | |
20485 | ||
20486 | wxPyEndAllowThreads(__tstate); | |
20487 | if (PyErr_Occurred()) SWIG_fail; | |
20488 | } | |
20489 | Py_INCREF(Py_None); resultobj = Py_None; | |
20490 | return resultobj; | |
20491 | fail: | |
20492 | return NULL; | |
20493 | } | |
20494 | ||
20495 | ||
20496 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
20497 | PyObject *resultobj; | |
20498 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20499 | wxSize result; | |
20500 | PyObject * obj0 = 0 ; | |
20501 | char *kwnames[] = { | |
20502 | (char *) "self", NULL | |
20503 | }; | |
20504 | ||
20505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
20506 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20507 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20508 | { | |
20509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20510 | result = (arg1)->GetToolMargins(); | |
20511 | ||
20512 | wxPyEndAllowThreads(__tstate); | |
20513 | if (PyErr_Occurred()) SWIG_fail; | |
20514 | } | |
20515 | { | |
20516 | wxSize * resultptr; | |
20517 | resultptr = new wxSize((wxSize &)(result)); | |
20518 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
20519 | } | |
20520 | return resultobj; | |
20521 | fail: | |
20522 | return NULL; | |
20523 | } | |
20524 | ||
20525 | ||
20526 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { | |
20527 | PyObject *resultobj; | |
20528 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20529 | wxSize result; | |
20530 | PyObject * obj0 = 0 ; | |
20531 | char *kwnames[] = { | |
20532 | (char *) "self", NULL | |
20533 | }; | |
20534 | ||
20535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
20536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20538 | { | |
20539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20540 | result = (arg1)->GetMargins(); | |
20541 | ||
20542 | wxPyEndAllowThreads(__tstate); | |
20543 | if (PyErr_Occurred()) SWIG_fail; | |
20544 | } | |
20545 | { | |
20546 | wxSize * resultptr; | |
20547 | resultptr = new wxSize((wxSize &)(result)); | |
20548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
20549 | } | |
20550 | return resultobj; | |
20551 | fail: | |
20552 | return NULL; | |
20553 | } | |
20554 | ||
20555 | ||
20556 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { | |
20557 | PyObject *resultobj; | |
20558 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20559 | int result; | |
20560 | PyObject * obj0 = 0 ; | |
20561 | char *kwnames[] = { | |
20562 | (char *) "self", NULL | |
20563 | }; | |
20564 | ||
20565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
20566 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20567 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20568 | { | |
20569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20570 | result = (int)(arg1)->GetToolPacking(); | |
20571 | ||
20572 | wxPyEndAllowThreads(__tstate); | |
20573 | if (PyErr_Occurred()) SWIG_fail; | |
20574 | } | |
20575 | { | |
20576 | resultobj = SWIG_From_int((int)(result)); | |
20577 | } | |
20578 | return resultobj; | |
20579 | fail: | |
20580 | return NULL; | |
20581 | } | |
20582 | ||
20583 | ||
20584 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { | |
20585 | PyObject *resultobj; | |
20586 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20587 | int result; | |
20588 | PyObject * obj0 = 0 ; | |
20589 | char *kwnames[] = { | |
20590 | (char *) "self", NULL | |
20591 | }; | |
20592 | ||
20593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
20594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20596 | { | |
20597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20598 | result = (int)(arg1)->GetToolSeparation(); | |
20599 | ||
20600 | wxPyEndAllowThreads(__tstate); | |
20601 | if (PyErr_Occurred()) SWIG_fail; | |
20602 | } | |
20603 | { | |
20604 | resultobj = SWIG_From_int((int)(result)); | |
20605 | } | |
20606 | return resultobj; | |
20607 | fail: | |
20608 | return NULL; | |
20609 | } | |
20610 | ||
20611 | ||
20612 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { | |
20613 | PyObject *resultobj; | |
20614 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20615 | int arg2 ; | |
20616 | PyObject * obj0 = 0 ; | |
20617 | PyObject * obj1 = 0 ; | |
20618 | char *kwnames[] = { | |
20619 | (char *) "self",(char *) "nRows", NULL | |
20620 | }; | |
20621 | ||
20622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
20623 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20624 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20625 | { | |
20626 | arg2 = (int)(SWIG_As_int(obj1)); | |
20627 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20628 | } | |
20629 | { | |
20630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20631 | (arg1)->SetRows(arg2); | |
20632 | ||
20633 | wxPyEndAllowThreads(__tstate); | |
20634 | if (PyErr_Occurred()) SWIG_fail; | |
20635 | } | |
20636 | Py_INCREF(Py_None); resultobj = Py_None; | |
20637 | return resultobj; | |
20638 | fail: | |
20639 | return NULL; | |
20640 | } | |
20641 | ||
20642 | ||
20643 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { | |
20644 | PyObject *resultobj; | |
20645 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20646 | int arg2 ; | |
20647 | int arg3 ; | |
20648 | PyObject * obj0 = 0 ; | |
20649 | PyObject * obj1 = 0 ; | |
20650 | PyObject * obj2 = 0 ; | |
20651 | char *kwnames[] = { | |
20652 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
20653 | }; | |
20654 | ||
20655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20658 | { | |
20659 | arg2 = (int)(SWIG_As_int(obj1)); | |
20660 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20661 | } | |
20662 | { | |
20663 | arg3 = (int)(SWIG_As_int(obj2)); | |
20664 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20665 | } | |
20666 | { | |
20667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20668 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
20669 | ||
20670 | wxPyEndAllowThreads(__tstate); | |
20671 | if (PyErr_Occurred()) SWIG_fail; | |
20672 | } | |
20673 | Py_INCREF(Py_None); resultobj = Py_None; | |
20674 | return resultobj; | |
20675 | fail: | |
20676 | return NULL; | |
20677 | } | |
20678 | ||
20679 | ||
20680 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { | |
20681 | PyObject *resultobj; | |
20682 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20683 | int result; | |
20684 | PyObject * obj0 = 0 ; | |
20685 | char *kwnames[] = { | |
20686 | (char *) "self", NULL | |
20687 | }; | |
20688 | ||
20689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
20690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20692 | { | |
20693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20694 | result = (int)(arg1)->GetMaxRows(); | |
20695 | ||
20696 | wxPyEndAllowThreads(__tstate); | |
20697 | if (PyErr_Occurred()) SWIG_fail; | |
20698 | } | |
20699 | { | |
20700 | resultobj = SWIG_From_int((int)(result)); | |
20701 | } | |
20702 | return resultobj; | |
20703 | fail: | |
20704 | return NULL; | |
20705 | } | |
20706 | ||
20707 | ||
20708 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { | |
20709 | PyObject *resultobj; | |
20710 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20711 | int result; | |
20712 | PyObject * obj0 = 0 ; | |
20713 | char *kwnames[] = { | |
20714 | (char *) "self", NULL | |
20715 | }; | |
20716 | ||
20717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
20718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20720 | { | |
20721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20722 | result = (int)(arg1)->GetMaxCols(); | |
20723 | ||
20724 | wxPyEndAllowThreads(__tstate); | |
20725 | if (PyErr_Occurred()) SWIG_fail; | |
20726 | } | |
20727 | { | |
20728 | resultobj = SWIG_From_int((int)(result)); | |
20729 | } | |
20730 | return resultobj; | |
20731 | fail: | |
20732 | return NULL; | |
20733 | } | |
20734 | ||
20735 | ||
20736 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
20737 | PyObject *resultobj; | |
20738 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20739 | wxSize *arg2 = 0 ; | |
20740 | wxSize temp2 ; | |
20741 | PyObject * obj0 = 0 ; | |
20742 | PyObject * obj1 = 0 ; | |
20743 | char *kwnames[] = { | |
20744 | (char *) "self",(char *) "size", NULL | |
20745 | }; | |
20746 | ||
20747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
20748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20750 | { | |
20751 | arg2 = &temp2; | |
20752 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20753 | } | |
20754 | { | |
20755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20756 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
20757 | ||
20758 | wxPyEndAllowThreads(__tstate); | |
20759 | if (PyErr_Occurred()) SWIG_fail; | |
20760 | } | |
20761 | Py_INCREF(Py_None); resultobj = Py_None; | |
20762 | return resultobj; | |
20763 | fail: | |
20764 | return NULL; | |
20765 | } | |
20766 | ||
20767 | ||
20768 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
20769 | PyObject *resultobj; | |
20770 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20771 | wxSize result; | |
20772 | PyObject * obj0 = 0 ; | |
20773 | char *kwnames[] = { | |
20774 | (char *) "self", NULL | |
20775 | }; | |
20776 | ||
20777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
20778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20780 | { | |
20781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20782 | result = (arg1)->GetToolBitmapSize(); | |
20783 | ||
20784 | wxPyEndAllowThreads(__tstate); | |
20785 | if (PyErr_Occurred()) SWIG_fail; | |
20786 | } | |
20787 | { | |
20788 | wxSize * resultptr; | |
20789 | resultptr = new wxSize((wxSize &)(result)); | |
20790 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
20791 | } | |
20792 | return resultobj; | |
20793 | fail: | |
20794 | return NULL; | |
20795 | } | |
20796 | ||
20797 | ||
20798 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
20799 | PyObject *resultobj; | |
20800 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20801 | wxSize result; | |
20802 | PyObject * obj0 = 0 ; | |
20803 | char *kwnames[] = { | |
20804 | (char *) "self", NULL | |
20805 | }; | |
20806 | ||
20807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
20808 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20809 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20810 | { | |
20811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20812 | result = (arg1)->GetToolSize(); | |
20813 | ||
20814 | wxPyEndAllowThreads(__tstate); | |
20815 | if (PyErr_Occurred()) SWIG_fail; | |
20816 | } | |
20817 | { | |
20818 | wxSize * resultptr; | |
20819 | resultptr = new wxSize((wxSize &)(result)); | |
20820 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
20821 | } | |
20822 | return resultobj; | |
20823 | fail: | |
20824 | return NULL; | |
20825 | } | |
20826 | ||
20827 | ||
20828 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
20829 | PyObject *resultobj; | |
20830 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20831 | int arg2 ; | |
20832 | int arg3 ; | |
20833 | wxToolBarToolBase *result; | |
20834 | PyObject * obj0 = 0 ; | |
20835 | PyObject * obj1 = 0 ; | |
20836 | PyObject * obj2 = 0 ; | |
20837 | char *kwnames[] = { | |
20838 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20839 | }; | |
20840 | ||
20841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20842 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20843 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20844 | { | |
20845 | arg2 = (int)(SWIG_As_int(obj1)); | |
20846 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20847 | } | |
20848 | { | |
20849 | arg3 = (int)(SWIG_As_int(obj2)); | |
20850 | if (SWIG_arg_fail(3)) SWIG_fail; | |
20851 | } | |
20852 | { | |
20853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20854 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
20855 | ||
20856 | wxPyEndAllowThreads(__tstate); | |
20857 | if (PyErr_Occurred()) SWIG_fail; | |
20858 | } | |
20859 | { | |
20860 | resultobj = wxPyMake_wxObject(result, 0); | |
20861 | } | |
20862 | return resultobj; | |
20863 | fail: | |
20864 | return NULL; | |
20865 | } | |
20866 | ||
20867 | ||
20868 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { | |
20869 | PyObject *resultobj; | |
20870 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20871 | int arg2 ; | |
20872 | wxToolBarToolBase *result; | |
20873 | PyObject * obj0 = 0 ; | |
20874 | PyObject * obj1 = 0 ; | |
20875 | char *kwnames[] = { | |
20876 | (char *) "self",(char *) "toolid", NULL | |
20877 | }; | |
20878 | ||
20879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
20880 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20881 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20882 | { | |
20883 | arg2 = (int)(SWIG_As_int(obj1)); | |
20884 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20885 | } | |
20886 | { | |
20887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20888 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
20889 | ||
20890 | wxPyEndAllowThreads(__tstate); | |
20891 | if (PyErr_Occurred()) SWIG_fail; | |
20892 | } | |
20893 | { | |
20894 | resultobj = wxPyMake_wxObject(result, 0); | |
20895 | } | |
20896 | return resultobj; | |
20897 | fail: | |
20898 | return NULL; | |
20899 | } | |
20900 | ||
20901 | ||
20902 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
20903 | PyObject *resultobj; | |
20904 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
20905 | bool result; | |
20906 | PyObject * obj0 = 0 ; | |
20907 | char *kwnames[] = { | |
20908 | (char *) "self", NULL | |
20909 | }; | |
20910 | ||
20911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
20912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20914 | { | |
20915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20916 | result = (bool)(arg1)->IsVertical(); | |
20917 | ||
20918 | wxPyEndAllowThreads(__tstate); | |
20919 | if (PyErr_Occurred()) SWIG_fail; | |
20920 | } | |
20921 | { | |
20922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20923 | } | |
20924 | return resultobj; | |
20925 | fail: | |
20926 | return NULL; | |
20927 | } | |
20928 | ||
20929 | ||
20930 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { | |
20931 | PyObject *obj; | |
20932 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20933 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
20934 | Py_INCREF(obj); | |
20935 | return Py_BuildValue((char *)""); | |
20936 | } | |
20937 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
20938 | PyObject *resultobj; | |
20939 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20940 | int arg2 = (int) -1 ; | |
20941 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20942 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20943 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20944 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20945 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
20946 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
20947 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20948 | wxToolBar *result; | |
20949 | wxPoint temp3 ; | |
20950 | wxSize temp4 ; | |
20951 | bool temp6 = false ; | |
20952 | PyObject * obj0 = 0 ; | |
20953 | PyObject * obj1 = 0 ; | |
20954 | PyObject * obj2 = 0 ; | |
20955 | PyObject * obj3 = 0 ; | |
20956 | PyObject * obj4 = 0 ; | |
20957 | PyObject * obj5 = 0 ; | |
20958 | char *kwnames[] = { | |
20959 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20960 | }; | |
20961 | ||
20962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
20963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
20964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20965 | if (obj1) { | |
20966 | { | |
20967 | arg2 = (int)(SWIG_As_int(obj1)); | |
20968 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20969 | } | |
20970 | } | |
20971 | if (obj2) { | |
20972 | { | |
20973 | arg3 = &temp3; | |
20974 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20975 | } | |
20976 | } | |
20977 | if (obj3) { | |
20978 | { | |
20979 | arg4 = &temp4; | |
20980 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20981 | } | |
20982 | } | |
20983 | if (obj4) { | |
20984 | { | |
20985 | arg5 = (long)(SWIG_As_long(obj4)); | |
20986 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20987 | } | |
20988 | } | |
20989 | if (obj5) { | |
20990 | { | |
20991 | arg6 = wxString_in_helper(obj5); | |
20992 | if (arg6 == NULL) SWIG_fail; | |
20993 | temp6 = true; | |
20994 | } | |
20995 | } | |
20996 | { | |
20997 | if (!wxPyCheckForApp()) SWIG_fail; | |
20998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20999 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21000 | ||
21001 | wxPyEndAllowThreads(__tstate); | |
21002 | if (PyErr_Occurred()) SWIG_fail; | |
21003 | } | |
21004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); | |
21005 | { | |
21006 | if (temp6) | |
21007 | delete arg6; | |
21008 | } | |
21009 | return resultobj; | |
21010 | fail: | |
21011 | { | |
21012 | if (temp6) | |
21013 | delete arg6; | |
21014 | } | |
21015 | return NULL; | |
21016 | } | |
21017 | ||
21018 | ||
21019 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { | |
21020 | PyObject *resultobj; | |
21021 | wxToolBar *result; | |
21022 | char *kwnames[] = { | |
21023 | NULL | |
21024 | }; | |
21025 | ||
21026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
21027 | { | |
21028 | if (!wxPyCheckForApp()) SWIG_fail; | |
21029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21030 | result = (wxToolBar *)new wxToolBar(); | |
21031 | ||
21032 | wxPyEndAllowThreads(__tstate); | |
21033 | if (PyErr_Occurred()) SWIG_fail; | |
21034 | } | |
21035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); | |
21036 | return resultobj; | |
21037 | fail: | |
21038 | return NULL; | |
21039 | } | |
21040 | ||
21041 | ||
21042 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
21043 | PyObject *resultobj; | |
21044 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
21045 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21046 | int arg3 = (int) -1 ; | |
21047 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21048 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21049 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21050 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21051 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
21052 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
21053 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21054 | bool result; | |
21055 | wxPoint temp4 ; | |
21056 | wxSize temp5 ; | |
21057 | bool temp7 = false ; | |
21058 | PyObject * obj0 = 0 ; | |
21059 | PyObject * obj1 = 0 ; | |
21060 | PyObject * obj2 = 0 ; | |
21061 | PyObject * obj3 = 0 ; | |
21062 | PyObject * obj4 = 0 ; | |
21063 | PyObject * obj5 = 0 ; | |
21064 | PyObject * obj6 = 0 ; | |
21065 | char *kwnames[] = { | |
21066 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21067 | }; | |
21068 | ||
21069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); | |
21071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21072 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
21073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21074 | if (obj2) { | |
21075 | { | |
21076 | arg3 = (int)(SWIG_As_int(obj2)); | |
21077 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21078 | } | |
21079 | } | |
21080 | if (obj3) { | |
21081 | { | |
21082 | arg4 = &temp4; | |
21083 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21084 | } | |
21085 | } | |
21086 | if (obj4) { | |
21087 | { | |
21088 | arg5 = &temp5; | |
21089 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21090 | } | |
21091 | } | |
21092 | if (obj5) { | |
21093 | { | |
21094 | arg6 = (long)(SWIG_As_long(obj5)); | |
21095 | if (SWIG_arg_fail(6)) SWIG_fail; | |
21096 | } | |
21097 | } | |
21098 | if (obj6) { | |
21099 | { | |
21100 | arg7 = wxString_in_helper(obj6); | |
21101 | if (arg7 == NULL) SWIG_fail; | |
21102 | temp7 = true; | |
21103 | } | |
21104 | } | |
21105 | { | |
21106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21107 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21108 | ||
21109 | wxPyEndAllowThreads(__tstate); | |
21110 | if (PyErr_Occurred()) SWIG_fail; | |
21111 | } | |
21112 | { | |
21113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21114 | } | |
21115 | { | |
21116 | if (temp7) | |
21117 | delete arg7; | |
21118 | } | |
21119 | return resultobj; | |
21120 | fail: | |
21121 | { | |
21122 | if (temp7) | |
21123 | delete arg7; | |
21124 | } | |
21125 | return NULL; | |
21126 | } | |
21127 | ||
21128 | ||
21129 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
21130 | PyObject *resultobj; | |
21131 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
21132 | int arg2 ; | |
21133 | int arg3 ; | |
21134 | wxToolBarToolBase *result; | |
21135 | PyObject * obj0 = 0 ; | |
21136 | PyObject * obj1 = 0 ; | |
21137 | PyObject * obj2 = 0 ; | |
21138 | char *kwnames[] = { | |
21139 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21140 | }; | |
21141 | ||
21142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21143 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); | |
21144 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21145 | { | |
21146 | arg2 = (int)(SWIG_As_int(obj1)); | |
21147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21148 | } | |
21149 | { | |
21150 | arg3 = (int)(SWIG_As_int(obj2)); | |
21151 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21152 | } | |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
21156 | ||
21157 | wxPyEndAllowThreads(__tstate); | |
21158 | if (PyErr_Occurred()) SWIG_fail; | |
21159 | } | |
21160 | { | |
21161 | resultobj = wxPyMake_wxObject(result, 0); | |
21162 | } | |
21163 | return resultobj; | |
21164 | fail: | |
21165 | return NULL; | |
21166 | } | |
21167 | ||
21168 | ||
21169 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
21170 | PyObject *resultobj; | |
21171 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
21172 | wxVisualAttributes result; | |
21173 | PyObject * obj0 = 0 ; | |
21174 | char *kwnames[] = { | |
21175 | (char *) "variant", NULL | |
21176 | }; | |
21177 | ||
21178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
21179 | if (obj0) { | |
21180 | { | |
21181 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
21182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21183 | } | |
21184 | } | |
21185 | { | |
21186 | if (!wxPyCheckForApp()) SWIG_fail; | |
21187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21188 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
21189 | ||
21190 | wxPyEndAllowThreads(__tstate); | |
21191 | if (PyErr_Occurred()) SWIG_fail; | |
21192 | } | |
21193 | { | |
21194 | wxVisualAttributes * resultptr; | |
21195 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
21196 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
21197 | } | |
21198 | return resultobj; | |
21199 | fail: | |
21200 | return NULL; | |
21201 | } | |
21202 | ||
21203 | ||
21204 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { | |
21205 | PyObject *obj; | |
21206 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21207 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
21208 | Py_INCREF(obj); | |
21209 | return Py_BuildValue((char *)""); | |
21210 | } | |
21211 | static int _wrap_ListCtrlNameStr_set(PyObject *) { | |
21212 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
21213 | return 1; | |
21214 | } | |
21215 | ||
21216 | ||
21217 | static PyObject *_wrap_ListCtrlNameStr_get(void) { | |
21218 | PyObject *pyobj; | |
21219 | ||
21220 | { | |
21221 | #if wxUSE_UNICODE | |
21222 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21223 | #else | |
21224 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
21225 | #endif | |
21226 | } | |
21227 | return pyobj; | |
21228 | } | |
21229 | ||
21230 | ||
21231 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { | |
21232 | PyObject *resultobj; | |
21233 | wxColour const &arg1_defvalue = wxNullColour ; | |
21234 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
21235 | wxColour const &arg2_defvalue = wxNullColour ; | |
21236 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
21237 | wxFont const &arg3_defvalue = wxNullFont ; | |
21238 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
21239 | wxListItemAttr *result; | |
21240 | wxColour temp1 ; | |
21241 | wxColour temp2 ; | |
21242 | PyObject * obj0 = 0 ; | |
21243 | PyObject * obj1 = 0 ; | |
21244 | PyObject * obj2 = 0 ; | |
21245 | char *kwnames[] = { | |
21246 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
21247 | }; | |
21248 | ||
21249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21250 | if (obj0) { | |
21251 | { | |
21252 | arg1 = &temp1; | |
21253 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
21254 | } | |
21255 | } | |
21256 | if (obj1) { | |
21257 | { | |
21258 | arg2 = &temp2; | |
21259 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21260 | } | |
21261 | } | |
21262 | if (obj2) { | |
21263 | { | |
21264 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21265 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21266 | if (arg3 == NULL) { | |
21267 | SWIG_null_ref("wxFont"); | |
21268 | } | |
21269 | if (SWIG_arg_fail(3)) SWIG_fail; | |
21270 | } | |
21271 | } | |
21272 | { | |
21273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21274 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
21275 | ||
21276 | wxPyEndAllowThreads(__tstate); | |
21277 | if (PyErr_Occurred()) SWIG_fail; | |
21278 | } | |
21279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
21280 | return resultobj; | |
21281 | fail: | |
21282 | return NULL; | |
21283 | } | |
21284 | ||
21285 | ||
21286 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
21287 | PyObject *resultobj; | |
21288 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21289 | wxColour *arg2 = 0 ; | |
21290 | wxColour temp2 ; | |
21291 | PyObject * obj0 = 0 ; | |
21292 | PyObject * obj1 = 0 ; | |
21293 | char *kwnames[] = { | |
21294 | (char *) "self",(char *) "colText", NULL | |
21295 | }; | |
21296 | ||
21297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21298 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21299 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21300 | { | |
21301 | arg2 = &temp2; | |
21302 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21303 | } | |
21304 | { | |
21305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21306 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21307 | ||
21308 | wxPyEndAllowThreads(__tstate); | |
21309 | if (PyErr_Occurred()) SWIG_fail; | |
21310 | } | |
21311 | Py_INCREF(Py_None); resultobj = Py_None; | |
21312 | return resultobj; | |
21313 | fail: | |
21314 | return NULL; | |
21315 | } | |
21316 | ||
21317 | ||
21318 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
21319 | PyObject *resultobj; | |
21320 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21321 | wxColour *arg2 = 0 ; | |
21322 | wxColour temp2 ; | |
21323 | PyObject * obj0 = 0 ; | |
21324 | PyObject * obj1 = 0 ; | |
21325 | char *kwnames[] = { | |
21326 | (char *) "self",(char *) "colBack", NULL | |
21327 | }; | |
21328 | ||
21329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21330 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21331 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21332 | { | |
21333 | arg2 = &temp2; | |
21334 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21335 | } | |
21336 | { | |
21337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21338 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21339 | ||
21340 | wxPyEndAllowThreads(__tstate); | |
21341 | if (PyErr_Occurred()) SWIG_fail; | |
21342 | } | |
21343 | Py_INCREF(Py_None); resultobj = Py_None; | |
21344 | return resultobj; | |
21345 | fail: | |
21346 | return NULL; | |
21347 | } | |
21348 | ||
21349 | ||
21350 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
21351 | PyObject *resultobj; | |
21352 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21353 | wxFont *arg2 = 0 ; | |
21354 | PyObject * obj0 = 0 ; | |
21355 | PyObject * obj1 = 0 ; | |
21356 | char *kwnames[] = { | |
21357 | (char *) "self",(char *) "font", NULL | |
21358 | }; | |
21359 | ||
21360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
21361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21363 | { | |
21364 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
21365 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21366 | if (arg2 == NULL) { | |
21367 | SWIG_null_ref("wxFont"); | |
21368 | } | |
21369 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21370 | } | |
21371 | { | |
21372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21373 | (arg1)->SetFont((wxFont const &)*arg2); | |
21374 | ||
21375 | wxPyEndAllowThreads(__tstate); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | } | |
21378 | Py_INCREF(Py_None); resultobj = Py_None; | |
21379 | return resultobj; | |
21380 | fail: | |
21381 | return NULL; | |
21382 | } | |
21383 | ||
21384 | ||
21385 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
21386 | PyObject *resultobj; | |
21387 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21388 | bool result; | |
21389 | PyObject * obj0 = 0 ; | |
21390 | char *kwnames[] = { | |
21391 | (char *) "self", NULL | |
21392 | }; | |
21393 | ||
21394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
21395 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21396 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21397 | { | |
21398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21399 | result = (bool)(arg1)->HasTextColour(); | |
21400 | ||
21401 | wxPyEndAllowThreads(__tstate); | |
21402 | if (PyErr_Occurred()) SWIG_fail; | |
21403 | } | |
21404 | { | |
21405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21406 | } | |
21407 | return resultobj; | |
21408 | fail: | |
21409 | return NULL; | |
21410 | } | |
21411 | ||
21412 | ||
21413 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
21414 | PyObject *resultobj; | |
21415 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21416 | bool result; | |
21417 | PyObject * obj0 = 0 ; | |
21418 | char *kwnames[] = { | |
21419 | (char *) "self", NULL | |
21420 | }; | |
21421 | ||
21422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
21423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21425 | { | |
21426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21427 | result = (bool)(arg1)->HasBackgroundColour(); | |
21428 | ||
21429 | wxPyEndAllowThreads(__tstate); | |
21430 | if (PyErr_Occurred()) SWIG_fail; | |
21431 | } | |
21432 | { | |
21433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21434 | } | |
21435 | return resultobj; | |
21436 | fail: | |
21437 | return NULL; | |
21438 | } | |
21439 | ||
21440 | ||
21441 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
21442 | PyObject *resultobj; | |
21443 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21444 | bool result; | |
21445 | PyObject * obj0 = 0 ; | |
21446 | char *kwnames[] = { | |
21447 | (char *) "self", NULL | |
21448 | }; | |
21449 | ||
21450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
21451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21453 | { | |
21454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21455 | result = (bool)(arg1)->HasFont(); | |
21456 | ||
21457 | wxPyEndAllowThreads(__tstate); | |
21458 | if (PyErr_Occurred()) SWIG_fail; | |
21459 | } | |
21460 | { | |
21461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21462 | } | |
21463 | return resultobj; | |
21464 | fail: | |
21465 | return NULL; | |
21466 | } | |
21467 | ||
21468 | ||
21469 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
21470 | PyObject *resultobj; | |
21471 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21472 | wxColour result; | |
21473 | PyObject * obj0 = 0 ; | |
21474 | char *kwnames[] = { | |
21475 | (char *) "self", NULL | |
21476 | }; | |
21477 | ||
21478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
21479 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21480 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21481 | { | |
21482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21483 | result = (arg1)->GetTextColour(); | |
21484 | ||
21485 | wxPyEndAllowThreads(__tstate); | |
21486 | if (PyErr_Occurred()) SWIG_fail; | |
21487 | } | |
21488 | { | |
21489 | wxColour * resultptr; | |
21490 | resultptr = new wxColour((wxColour &)(result)); | |
21491 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
21492 | } | |
21493 | return resultobj; | |
21494 | fail: | |
21495 | return NULL; | |
21496 | } | |
21497 | ||
21498 | ||
21499 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
21500 | PyObject *resultobj; | |
21501 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21502 | wxColour result; | |
21503 | PyObject * obj0 = 0 ; | |
21504 | char *kwnames[] = { | |
21505 | (char *) "self", NULL | |
21506 | }; | |
21507 | ||
21508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
21509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21511 | { | |
21512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21513 | result = (arg1)->GetBackgroundColour(); | |
21514 | ||
21515 | wxPyEndAllowThreads(__tstate); | |
21516 | if (PyErr_Occurred()) SWIG_fail; | |
21517 | } | |
21518 | { | |
21519 | wxColour * resultptr; | |
21520 | resultptr = new wxColour((wxColour &)(result)); | |
21521 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
21522 | } | |
21523 | return resultobj; | |
21524 | fail: | |
21525 | return NULL; | |
21526 | } | |
21527 | ||
21528 | ||
21529 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
21530 | PyObject *resultobj; | |
21531 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21532 | wxFont result; | |
21533 | PyObject * obj0 = 0 ; | |
21534 | char *kwnames[] = { | |
21535 | (char *) "self", NULL | |
21536 | }; | |
21537 | ||
21538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
21539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21541 | { | |
21542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21543 | result = (arg1)->GetFont(); | |
21544 | ||
21545 | wxPyEndAllowThreads(__tstate); | |
21546 | if (PyErr_Occurred()) SWIG_fail; | |
21547 | } | |
21548 | { | |
21549 | wxFont * resultptr; | |
21550 | resultptr = new wxFont((wxFont &)(result)); | |
21551 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
21552 | } | |
21553 | return resultobj; | |
21554 | fail: | |
21555 | return NULL; | |
21556 | } | |
21557 | ||
21558 | ||
21559 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { | |
21560 | PyObject *resultobj; | |
21561 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
21562 | PyObject * obj0 = 0 ; | |
21563 | char *kwnames[] = { | |
21564 | (char *) "self", NULL | |
21565 | }; | |
21566 | ||
21567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
21568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
21569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21570 | { | |
21571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21572 | wxListItemAttr_Destroy(arg1); | |
21573 | ||
21574 | wxPyEndAllowThreads(__tstate); | |
21575 | if (PyErr_Occurred()) SWIG_fail; | |
21576 | } | |
21577 | Py_INCREF(Py_None); resultobj = Py_None; | |
21578 | return resultobj; | |
21579 | fail: | |
21580 | return NULL; | |
21581 | } | |
21582 | ||
21583 | ||
21584 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { | |
21585 | PyObject *obj; | |
21586 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21587 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
21588 | Py_INCREF(obj); | |
21589 | return Py_BuildValue((char *)""); | |
21590 | } | |
21591 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
21592 | PyObject *resultobj; | |
21593 | wxListItem *result; | |
21594 | char *kwnames[] = { | |
21595 | NULL | |
21596 | }; | |
21597 | ||
21598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
21599 | { | |
21600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21601 | result = (wxListItem *)new wxListItem(); | |
21602 | ||
21603 | wxPyEndAllowThreads(__tstate); | |
21604 | if (PyErr_Occurred()) SWIG_fail; | |
21605 | } | |
21606 | { | |
21607 | resultobj = wxPyMake_wxObject(result, 1); | |
21608 | } | |
21609 | return resultobj; | |
21610 | fail: | |
21611 | return NULL; | |
21612 | } | |
21613 | ||
21614 | ||
21615 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
21616 | PyObject *resultobj; | |
21617 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21618 | PyObject * obj0 = 0 ; | |
21619 | char *kwnames[] = { | |
21620 | (char *) "self", NULL | |
21621 | }; | |
21622 | ||
21623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
21624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21626 | { | |
21627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21628 | delete arg1; | |
21629 | ||
21630 | wxPyEndAllowThreads(__tstate); | |
21631 | if (PyErr_Occurred()) SWIG_fail; | |
21632 | } | |
21633 | Py_INCREF(Py_None); resultobj = Py_None; | |
21634 | return resultobj; | |
21635 | fail: | |
21636 | return NULL; | |
21637 | } | |
21638 | ||
21639 | ||
21640 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { | |
21641 | PyObject *resultobj; | |
21642 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21643 | PyObject * obj0 = 0 ; | |
21644 | char *kwnames[] = { | |
21645 | (char *) "self", NULL | |
21646 | }; | |
21647 | ||
21648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
21649 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21650 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21651 | { | |
21652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21653 | (arg1)->Clear(); | |
21654 | ||
21655 | wxPyEndAllowThreads(__tstate); | |
21656 | if (PyErr_Occurred()) SWIG_fail; | |
21657 | } | |
21658 | Py_INCREF(Py_None); resultobj = Py_None; | |
21659 | return resultobj; | |
21660 | fail: | |
21661 | return NULL; | |
21662 | } | |
21663 | ||
21664 | ||
21665 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
21666 | PyObject *resultobj; | |
21667 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21668 | PyObject * obj0 = 0 ; | |
21669 | char *kwnames[] = { | |
21670 | (char *) "self", NULL | |
21671 | }; | |
21672 | ||
21673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
21674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21676 | { | |
21677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21678 | (arg1)->ClearAttributes(); | |
21679 | ||
21680 | wxPyEndAllowThreads(__tstate); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | } | |
21683 | Py_INCREF(Py_None); resultobj = Py_None; | |
21684 | return resultobj; | |
21685 | fail: | |
21686 | return NULL; | |
21687 | } | |
21688 | ||
21689 | ||
21690 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
21691 | PyObject *resultobj; | |
21692 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21693 | long arg2 ; | |
21694 | PyObject * obj0 = 0 ; | |
21695 | PyObject * obj1 = 0 ; | |
21696 | char *kwnames[] = { | |
21697 | (char *) "self",(char *) "mask", NULL | |
21698 | }; | |
21699 | ||
21700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
21701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21703 | { | |
21704 | arg2 = (long)(SWIG_As_long(obj1)); | |
21705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21706 | } | |
21707 | { | |
21708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21709 | (arg1)->SetMask(arg2); | |
21710 | ||
21711 | wxPyEndAllowThreads(__tstate); | |
21712 | if (PyErr_Occurred()) SWIG_fail; | |
21713 | } | |
21714 | Py_INCREF(Py_None); resultobj = Py_None; | |
21715 | return resultobj; | |
21716 | fail: | |
21717 | return NULL; | |
21718 | } | |
21719 | ||
21720 | ||
21721 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
21722 | PyObject *resultobj; | |
21723 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21724 | long arg2 ; | |
21725 | PyObject * obj0 = 0 ; | |
21726 | PyObject * obj1 = 0 ; | |
21727 | char *kwnames[] = { | |
21728 | (char *) "self",(char *) "id", NULL | |
21729 | }; | |
21730 | ||
21731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
21732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21734 | { | |
21735 | arg2 = (long)(SWIG_As_long(obj1)); | |
21736 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21737 | } | |
21738 | { | |
21739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21740 | (arg1)->SetId(arg2); | |
21741 | ||
21742 | wxPyEndAllowThreads(__tstate); | |
21743 | if (PyErr_Occurred()) SWIG_fail; | |
21744 | } | |
21745 | Py_INCREF(Py_None); resultobj = Py_None; | |
21746 | return resultobj; | |
21747 | fail: | |
21748 | return NULL; | |
21749 | } | |
21750 | ||
21751 | ||
21752 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { | |
21753 | PyObject *resultobj; | |
21754 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21755 | int arg2 ; | |
21756 | PyObject * obj0 = 0 ; | |
21757 | PyObject * obj1 = 0 ; | |
21758 | char *kwnames[] = { | |
21759 | (char *) "self",(char *) "col", NULL | |
21760 | }; | |
21761 | ||
21762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
21763 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21764 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21765 | { | |
21766 | arg2 = (int)(SWIG_As_int(obj1)); | |
21767 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21768 | } | |
21769 | { | |
21770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21771 | (arg1)->SetColumn(arg2); | |
21772 | ||
21773 | wxPyEndAllowThreads(__tstate); | |
21774 | if (PyErr_Occurred()) SWIG_fail; | |
21775 | } | |
21776 | Py_INCREF(Py_None); resultobj = Py_None; | |
21777 | return resultobj; | |
21778 | fail: | |
21779 | return NULL; | |
21780 | } | |
21781 | ||
21782 | ||
21783 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { | |
21784 | PyObject *resultobj; | |
21785 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21786 | long arg2 ; | |
21787 | PyObject * obj0 = 0 ; | |
21788 | PyObject * obj1 = 0 ; | |
21789 | char *kwnames[] = { | |
21790 | (char *) "self",(char *) "state", NULL | |
21791 | }; | |
21792 | ||
21793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
21794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21796 | { | |
21797 | arg2 = (long)(SWIG_As_long(obj1)); | |
21798 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21799 | } | |
21800 | { | |
21801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21802 | (arg1)->SetState(arg2); | |
21803 | ||
21804 | wxPyEndAllowThreads(__tstate); | |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
21806 | } | |
21807 | Py_INCREF(Py_None); resultobj = Py_None; | |
21808 | return resultobj; | |
21809 | fail: | |
21810 | return NULL; | |
21811 | } | |
21812 | ||
21813 | ||
21814 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
21815 | PyObject *resultobj; | |
21816 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21817 | long arg2 ; | |
21818 | PyObject * obj0 = 0 ; | |
21819 | PyObject * obj1 = 0 ; | |
21820 | char *kwnames[] = { | |
21821 | (char *) "self",(char *) "stateMask", NULL | |
21822 | }; | |
21823 | ||
21824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
21825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21827 | { | |
21828 | arg2 = (long)(SWIG_As_long(obj1)); | |
21829 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21830 | } | |
21831 | { | |
21832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21833 | (arg1)->SetStateMask(arg2); | |
21834 | ||
21835 | wxPyEndAllowThreads(__tstate); | |
21836 | if (PyErr_Occurred()) SWIG_fail; | |
21837 | } | |
21838 | Py_INCREF(Py_None); resultobj = Py_None; | |
21839 | return resultobj; | |
21840 | fail: | |
21841 | return NULL; | |
21842 | } | |
21843 | ||
21844 | ||
21845 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
21846 | PyObject *resultobj; | |
21847 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21848 | wxString *arg2 = 0 ; | |
21849 | bool temp2 = false ; | |
21850 | PyObject * obj0 = 0 ; | |
21851 | PyObject * obj1 = 0 ; | |
21852 | char *kwnames[] = { | |
21853 | (char *) "self",(char *) "text", NULL | |
21854 | }; | |
21855 | ||
21856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
21857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21859 | { | |
21860 | arg2 = wxString_in_helper(obj1); | |
21861 | if (arg2 == NULL) SWIG_fail; | |
21862 | temp2 = true; | |
21863 | } | |
21864 | { | |
21865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21866 | (arg1)->SetText((wxString const &)*arg2); | |
21867 | ||
21868 | wxPyEndAllowThreads(__tstate); | |
21869 | if (PyErr_Occurred()) SWIG_fail; | |
21870 | } | |
21871 | Py_INCREF(Py_None); resultobj = Py_None; | |
21872 | { | |
21873 | if (temp2) | |
21874 | delete arg2; | |
21875 | } | |
21876 | return resultobj; | |
21877 | fail: | |
21878 | { | |
21879 | if (temp2) | |
21880 | delete arg2; | |
21881 | } | |
21882 | return NULL; | |
21883 | } | |
21884 | ||
21885 | ||
21886 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
21887 | PyObject *resultobj; | |
21888 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21889 | int arg2 ; | |
21890 | PyObject * obj0 = 0 ; | |
21891 | PyObject * obj1 = 0 ; | |
21892 | char *kwnames[] = { | |
21893 | (char *) "self",(char *) "image", NULL | |
21894 | }; | |
21895 | ||
21896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
21897 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21898 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21899 | { | |
21900 | arg2 = (int)(SWIG_As_int(obj1)); | |
21901 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21902 | } | |
21903 | { | |
21904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21905 | (arg1)->SetImage(arg2); | |
21906 | ||
21907 | wxPyEndAllowThreads(__tstate); | |
21908 | if (PyErr_Occurred()) SWIG_fail; | |
21909 | } | |
21910 | Py_INCREF(Py_None); resultobj = Py_None; | |
21911 | return resultobj; | |
21912 | fail: | |
21913 | return NULL; | |
21914 | } | |
21915 | ||
21916 | ||
21917 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
21918 | PyObject *resultobj; | |
21919 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21920 | long arg2 ; | |
21921 | PyObject * obj0 = 0 ; | |
21922 | PyObject * obj1 = 0 ; | |
21923 | char *kwnames[] = { | |
21924 | (char *) "self",(char *) "data", NULL | |
21925 | }; | |
21926 | ||
21927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
21928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21930 | { | |
21931 | arg2 = (long)(SWIG_As_long(obj1)); | |
21932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21933 | } | |
21934 | { | |
21935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21936 | (arg1)->SetData(arg2); | |
21937 | ||
21938 | wxPyEndAllowThreads(__tstate); | |
21939 | if (PyErr_Occurred()) SWIG_fail; | |
21940 | } | |
21941 | Py_INCREF(Py_None); resultobj = Py_None; | |
21942 | return resultobj; | |
21943 | fail: | |
21944 | return NULL; | |
21945 | } | |
21946 | ||
21947 | ||
21948 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
21949 | PyObject *resultobj; | |
21950 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21951 | int arg2 ; | |
21952 | PyObject * obj0 = 0 ; | |
21953 | PyObject * obj1 = 0 ; | |
21954 | char *kwnames[] = { | |
21955 | (char *) "self",(char *) "width", NULL | |
21956 | }; | |
21957 | ||
21958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
21959 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21960 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21961 | { | |
21962 | arg2 = (int)(SWIG_As_int(obj1)); | |
21963 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21964 | } | |
21965 | { | |
21966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21967 | (arg1)->SetWidth(arg2); | |
21968 | ||
21969 | wxPyEndAllowThreads(__tstate); | |
21970 | if (PyErr_Occurred()) SWIG_fail; | |
21971 | } | |
21972 | Py_INCREF(Py_None); resultobj = Py_None; | |
21973 | return resultobj; | |
21974 | fail: | |
21975 | return NULL; | |
21976 | } | |
21977 | ||
21978 | ||
21979 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { | |
21980 | PyObject *resultobj; | |
21981 | wxListItem *arg1 = (wxListItem *) 0 ; | |
21982 | wxListColumnFormat arg2 ; | |
21983 | PyObject * obj0 = 0 ; | |
21984 | PyObject * obj1 = 0 ; | |
21985 | char *kwnames[] = { | |
21986 | (char *) "self",(char *) "align", NULL | |
21987 | }; | |
21988 | ||
21989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
21990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
21991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21992 | { | |
21993 | arg2 = (wxListColumnFormat)(SWIG_As_int(obj1)); | |
21994 | if (SWIG_arg_fail(2)) SWIG_fail; | |
21995 | } | |
21996 | { | |
21997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21998 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
21999 | ||
22000 | wxPyEndAllowThreads(__tstate); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
22002 | } | |
22003 | Py_INCREF(Py_None); resultobj = Py_None; | |
22004 | return resultobj; | |
22005 | fail: | |
22006 | return NULL; | |
22007 | } | |
22008 | ||
22009 | ||
22010 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
22011 | PyObject *resultobj; | |
22012 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22013 | wxColour *arg2 = 0 ; | |
22014 | wxColour temp2 ; | |
22015 | PyObject * obj0 = 0 ; | |
22016 | PyObject * obj1 = 0 ; | |
22017 | char *kwnames[] = { | |
22018 | (char *) "self",(char *) "colText", NULL | |
22019 | }; | |
22020 | ||
22021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
22022 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22023 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22024 | { | |
22025 | arg2 = &temp2; | |
22026 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22027 | } | |
22028 | { | |
22029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22030 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22031 | ||
22032 | wxPyEndAllowThreads(__tstate); | |
22033 | if (PyErr_Occurred()) SWIG_fail; | |
22034 | } | |
22035 | Py_INCREF(Py_None); resultobj = Py_None; | |
22036 | return resultobj; | |
22037 | fail: | |
22038 | return NULL; | |
22039 | } | |
22040 | ||
22041 | ||
22042 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
22043 | PyObject *resultobj; | |
22044 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22045 | wxColour *arg2 = 0 ; | |
22046 | wxColour temp2 ; | |
22047 | PyObject * obj0 = 0 ; | |
22048 | PyObject * obj1 = 0 ; | |
22049 | char *kwnames[] = { | |
22050 | (char *) "self",(char *) "colBack", NULL | |
22051 | }; | |
22052 | ||
22053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22056 | { | |
22057 | arg2 = &temp2; | |
22058 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22059 | } | |
22060 | { | |
22061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22062 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22063 | ||
22064 | wxPyEndAllowThreads(__tstate); | |
22065 | if (PyErr_Occurred()) SWIG_fail; | |
22066 | } | |
22067 | Py_INCREF(Py_None); resultobj = Py_None; | |
22068 | return resultobj; | |
22069 | fail: | |
22070 | return NULL; | |
22071 | } | |
22072 | ||
22073 | ||
22074 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
22075 | PyObject *resultobj; | |
22076 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22077 | wxFont *arg2 = 0 ; | |
22078 | PyObject * obj0 = 0 ; | |
22079 | PyObject * obj1 = 0 ; | |
22080 | char *kwnames[] = { | |
22081 | (char *) "self",(char *) "font", NULL | |
22082 | }; | |
22083 | ||
22084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
22085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22087 | { | |
22088 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
22089 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22090 | if (arg2 == NULL) { | |
22091 | SWIG_null_ref("wxFont"); | |
22092 | } | |
22093 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22094 | } | |
22095 | { | |
22096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22097 | (arg1)->SetFont((wxFont const &)*arg2); | |
22098 | ||
22099 | wxPyEndAllowThreads(__tstate); | |
22100 | if (PyErr_Occurred()) SWIG_fail; | |
22101 | } | |
22102 | Py_INCREF(Py_None); resultobj = Py_None; | |
22103 | return resultobj; | |
22104 | fail: | |
22105 | return NULL; | |
22106 | } | |
22107 | ||
22108 | ||
22109 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
22110 | PyObject *resultobj; | |
22111 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22112 | long result; | |
22113 | PyObject * obj0 = 0 ; | |
22114 | char *kwnames[] = { | |
22115 | (char *) "self", NULL | |
22116 | }; | |
22117 | ||
22118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
22119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22121 | { | |
22122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22123 | result = (long)(arg1)->GetMask(); | |
22124 | ||
22125 | wxPyEndAllowThreads(__tstate); | |
22126 | if (PyErr_Occurred()) SWIG_fail; | |
22127 | } | |
22128 | { | |
22129 | resultobj = SWIG_From_long((long)(result)); | |
22130 | } | |
22131 | return resultobj; | |
22132 | fail: | |
22133 | return NULL; | |
22134 | } | |
22135 | ||
22136 | ||
22137 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
22138 | PyObject *resultobj; | |
22139 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22140 | long result; | |
22141 | PyObject * obj0 = 0 ; | |
22142 | char *kwnames[] = { | |
22143 | (char *) "self", NULL | |
22144 | }; | |
22145 | ||
22146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
22147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22149 | { | |
22150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22151 | result = (long)(arg1)->GetId(); | |
22152 | ||
22153 | wxPyEndAllowThreads(__tstate); | |
22154 | if (PyErr_Occurred()) SWIG_fail; | |
22155 | } | |
22156 | { | |
22157 | resultobj = SWIG_From_long((long)(result)); | |
22158 | } | |
22159 | return resultobj; | |
22160 | fail: | |
22161 | return NULL; | |
22162 | } | |
22163 | ||
22164 | ||
22165 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { | |
22166 | PyObject *resultobj; | |
22167 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22168 | int result; | |
22169 | PyObject * obj0 = 0 ; | |
22170 | char *kwnames[] = { | |
22171 | (char *) "self", NULL | |
22172 | }; | |
22173 | ||
22174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
22175 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22176 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22177 | { | |
22178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22179 | result = (int)(arg1)->GetColumn(); | |
22180 | ||
22181 | wxPyEndAllowThreads(__tstate); | |
22182 | if (PyErr_Occurred()) SWIG_fail; | |
22183 | } | |
22184 | { | |
22185 | resultobj = SWIG_From_int((int)(result)); | |
22186 | } | |
22187 | return resultobj; | |
22188 | fail: | |
22189 | return NULL; | |
22190 | } | |
22191 | ||
22192 | ||
22193 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { | |
22194 | PyObject *resultobj; | |
22195 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22196 | long result; | |
22197 | PyObject * obj0 = 0 ; | |
22198 | char *kwnames[] = { | |
22199 | (char *) "self", NULL | |
22200 | }; | |
22201 | ||
22202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
22203 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22204 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22205 | { | |
22206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22207 | result = (long)(arg1)->GetState(); | |
22208 | ||
22209 | wxPyEndAllowThreads(__tstate); | |
22210 | if (PyErr_Occurred()) SWIG_fail; | |
22211 | } | |
22212 | { | |
22213 | resultobj = SWIG_From_long((long)(result)); | |
22214 | } | |
22215 | return resultobj; | |
22216 | fail: | |
22217 | return NULL; | |
22218 | } | |
22219 | ||
22220 | ||
22221 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
22222 | PyObject *resultobj; | |
22223 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22224 | wxString *result; | |
22225 | PyObject * obj0 = 0 ; | |
22226 | char *kwnames[] = { | |
22227 | (char *) "self", NULL | |
22228 | }; | |
22229 | ||
22230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
22231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22233 | { | |
22234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22235 | { | |
22236 | wxString const &_result_ref = (arg1)->GetText(); | |
22237 | result = (wxString *) &_result_ref; | |
22238 | } | |
22239 | ||
22240 | wxPyEndAllowThreads(__tstate); | |
22241 | if (PyErr_Occurred()) SWIG_fail; | |
22242 | } | |
22243 | { | |
22244 | #if wxUSE_UNICODE | |
22245 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22246 | #else | |
22247 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22248 | #endif | |
22249 | } | |
22250 | return resultobj; | |
22251 | fail: | |
22252 | return NULL; | |
22253 | } | |
22254 | ||
22255 | ||
22256 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
22257 | PyObject *resultobj; | |
22258 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22259 | int result; | |
22260 | PyObject * obj0 = 0 ; | |
22261 | char *kwnames[] = { | |
22262 | (char *) "self", NULL | |
22263 | }; | |
22264 | ||
22265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
22266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22268 | { | |
22269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22270 | result = (int)(arg1)->GetImage(); | |
22271 | ||
22272 | wxPyEndAllowThreads(__tstate); | |
22273 | if (PyErr_Occurred()) SWIG_fail; | |
22274 | } | |
22275 | { | |
22276 | resultobj = SWIG_From_int((int)(result)); | |
22277 | } | |
22278 | return resultobj; | |
22279 | fail: | |
22280 | return NULL; | |
22281 | } | |
22282 | ||
22283 | ||
22284 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
22285 | PyObject *resultobj; | |
22286 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22287 | long result; | |
22288 | PyObject * obj0 = 0 ; | |
22289 | char *kwnames[] = { | |
22290 | (char *) "self", NULL | |
22291 | }; | |
22292 | ||
22293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
22294 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22295 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22296 | { | |
22297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22298 | result = (long)(arg1)->GetData(); | |
22299 | ||
22300 | wxPyEndAllowThreads(__tstate); | |
22301 | if (PyErr_Occurred()) SWIG_fail; | |
22302 | } | |
22303 | { | |
22304 | resultobj = SWIG_From_long((long)(result)); | |
22305 | } | |
22306 | return resultobj; | |
22307 | fail: | |
22308 | return NULL; | |
22309 | } | |
22310 | ||
22311 | ||
22312 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
22313 | PyObject *resultobj; | |
22314 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22315 | int result; | |
22316 | PyObject * obj0 = 0 ; | |
22317 | char *kwnames[] = { | |
22318 | (char *) "self", NULL | |
22319 | }; | |
22320 | ||
22321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
22322 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22323 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22324 | { | |
22325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22326 | result = (int)(arg1)->GetWidth(); | |
22327 | ||
22328 | wxPyEndAllowThreads(__tstate); | |
22329 | if (PyErr_Occurred()) SWIG_fail; | |
22330 | } | |
22331 | { | |
22332 | resultobj = SWIG_From_int((int)(result)); | |
22333 | } | |
22334 | return resultobj; | |
22335 | fail: | |
22336 | return NULL; | |
22337 | } | |
22338 | ||
22339 | ||
22340 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { | |
22341 | PyObject *resultobj; | |
22342 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22343 | wxListColumnFormat result; | |
22344 | PyObject * obj0 = 0 ; | |
22345 | char *kwnames[] = { | |
22346 | (char *) "self", NULL | |
22347 | }; | |
22348 | ||
22349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
22350 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22351 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22352 | { | |
22353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22354 | result = (wxListColumnFormat)(arg1)->GetAlign(); | |
22355 | ||
22356 | wxPyEndAllowThreads(__tstate); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
22359 | resultobj = SWIG_From_int((result)); | |
22360 | return resultobj; | |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
22366 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
22367 | PyObject *resultobj; | |
22368 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22369 | wxListItemAttr *result; | |
22370 | PyObject * obj0 = 0 ; | |
22371 | char *kwnames[] = { | |
22372 | (char *) "self", NULL | |
22373 | }; | |
22374 | ||
22375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
22376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22378 | { | |
22379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22380 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
22381 | ||
22382 | wxPyEndAllowThreads(__tstate); | |
22383 | if (PyErr_Occurred()) SWIG_fail; | |
22384 | } | |
22385 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
22386 | return resultobj; | |
22387 | fail: | |
22388 | return NULL; | |
22389 | } | |
22390 | ||
22391 | ||
22392 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
22393 | PyObject *resultobj; | |
22394 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22395 | bool result; | |
22396 | PyObject * obj0 = 0 ; | |
22397 | char *kwnames[] = { | |
22398 | (char *) "self", NULL | |
22399 | }; | |
22400 | ||
22401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
22402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22404 | { | |
22405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22406 | result = (bool)(arg1)->HasAttributes(); | |
22407 | ||
22408 | wxPyEndAllowThreads(__tstate); | |
22409 | if (PyErr_Occurred()) SWIG_fail; | |
22410 | } | |
22411 | { | |
22412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22413 | } | |
22414 | return resultobj; | |
22415 | fail: | |
22416 | return NULL; | |
22417 | } | |
22418 | ||
22419 | ||
22420 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
22421 | PyObject *resultobj; | |
22422 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22423 | wxColour result; | |
22424 | PyObject * obj0 = 0 ; | |
22425 | char *kwnames[] = { | |
22426 | (char *) "self", NULL | |
22427 | }; | |
22428 | ||
22429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
22430 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22431 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22432 | { | |
22433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22434 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
22435 | ||
22436 | wxPyEndAllowThreads(__tstate); | |
22437 | if (PyErr_Occurred()) SWIG_fail; | |
22438 | } | |
22439 | { | |
22440 | wxColour * resultptr; | |
22441 | resultptr = new wxColour((wxColour &)(result)); | |
22442 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22443 | } | |
22444 | return resultobj; | |
22445 | fail: | |
22446 | return NULL; | |
22447 | } | |
22448 | ||
22449 | ||
22450 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
22451 | PyObject *resultobj; | |
22452 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22453 | wxColour result; | |
22454 | PyObject * obj0 = 0 ; | |
22455 | char *kwnames[] = { | |
22456 | (char *) "self", NULL | |
22457 | }; | |
22458 | ||
22459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
22460 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22461 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22462 | { | |
22463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22464 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
22465 | ||
22466 | wxPyEndAllowThreads(__tstate); | |
22467 | if (PyErr_Occurred()) SWIG_fail; | |
22468 | } | |
22469 | { | |
22470 | wxColour * resultptr; | |
22471 | resultptr = new wxColour((wxColour &)(result)); | |
22472 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22473 | } | |
22474 | return resultobj; | |
22475 | fail: | |
22476 | return NULL; | |
22477 | } | |
22478 | ||
22479 | ||
22480 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
22481 | PyObject *resultobj; | |
22482 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22483 | wxFont result; | |
22484 | PyObject * obj0 = 0 ; | |
22485 | char *kwnames[] = { | |
22486 | (char *) "self", NULL | |
22487 | }; | |
22488 | ||
22489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
22490 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22491 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22492 | { | |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | result = ((wxListItem const *)arg1)->GetFont(); | |
22495 | ||
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | { | |
22500 | wxFont * resultptr; | |
22501 | resultptr = new wxFont((wxFont &)(result)); | |
22502 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22503 | } | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | return NULL; | |
22507 | } | |
22508 | ||
22509 | ||
22510 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22511 | PyObject *resultobj; | |
22512 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22513 | long arg2 ; | |
22514 | PyObject * obj0 = 0 ; | |
22515 | PyObject * obj1 = 0 ; | |
22516 | char *kwnames[] = { | |
22517 | (char *) "self",(char *) "m_mask", NULL | |
22518 | }; | |
22519 | ||
22520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
22521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22523 | { | |
22524 | arg2 = (long)(SWIG_As_long(obj1)); | |
22525 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22526 | } | |
22527 | if (arg1) (arg1)->m_mask = arg2; | |
22528 | ||
22529 | Py_INCREF(Py_None); resultobj = Py_None; | |
22530 | return resultobj; | |
22531 | fail: | |
22532 | return NULL; | |
22533 | } | |
22534 | ||
22535 | ||
22536 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22537 | PyObject *resultobj; | |
22538 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22539 | long result; | |
22540 | PyObject * obj0 = 0 ; | |
22541 | char *kwnames[] = { | |
22542 | (char *) "self", NULL | |
22543 | }; | |
22544 | ||
22545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
22546 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22547 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22548 | result = (long) ((arg1)->m_mask); | |
22549 | ||
22550 | { | |
22551 | resultobj = SWIG_From_long((long)(result)); | |
22552 | } | |
22553 | return resultobj; | |
22554 | fail: | |
22555 | return NULL; | |
22556 | } | |
22557 | ||
22558 | ||
22559 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22560 | PyObject *resultobj; | |
22561 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22562 | long arg2 ; | |
22563 | PyObject * obj0 = 0 ; | |
22564 | PyObject * obj1 = 0 ; | |
22565 | char *kwnames[] = { | |
22566 | (char *) "self",(char *) "m_itemId", NULL | |
22567 | }; | |
22568 | ||
22569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
22570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22572 | { | |
22573 | arg2 = (long)(SWIG_As_long(obj1)); | |
22574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22575 | } | |
22576 | if (arg1) (arg1)->m_itemId = arg2; | |
22577 | ||
22578 | Py_INCREF(Py_None); resultobj = Py_None; | |
22579 | return resultobj; | |
22580 | fail: | |
22581 | return NULL; | |
22582 | } | |
22583 | ||
22584 | ||
22585 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22586 | PyObject *resultobj; | |
22587 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22588 | long result; | |
22589 | PyObject * obj0 = 0 ; | |
22590 | char *kwnames[] = { | |
22591 | (char *) "self", NULL | |
22592 | }; | |
22593 | ||
22594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
22595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22597 | result = (long) ((arg1)->m_itemId); | |
22598 | ||
22599 | { | |
22600 | resultobj = SWIG_From_long((long)(result)); | |
22601 | } | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj; | |
22610 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22611 | int arg2 ; | |
22612 | PyObject * obj0 = 0 ; | |
22613 | PyObject * obj1 = 0 ; | |
22614 | char *kwnames[] = { | |
22615 | (char *) "self",(char *) "m_col", NULL | |
22616 | }; | |
22617 | ||
22618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
22619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22621 | { | |
22622 | arg2 = (int)(SWIG_As_int(obj1)); | |
22623 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22624 | } | |
22625 | if (arg1) (arg1)->m_col = arg2; | |
22626 | ||
22627 | Py_INCREF(Py_None); resultobj = Py_None; | |
22628 | return resultobj; | |
22629 | fail: | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
22634 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22635 | PyObject *resultobj; | |
22636 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22637 | int result; | |
22638 | PyObject * obj0 = 0 ; | |
22639 | char *kwnames[] = { | |
22640 | (char *) "self", NULL | |
22641 | }; | |
22642 | ||
22643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
22644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22646 | result = (int) ((arg1)->m_col); | |
22647 | ||
22648 | { | |
22649 | resultobj = SWIG_From_int((int)(result)); | |
22650 | } | |
22651 | return resultobj; | |
22652 | fail: | |
22653 | return NULL; | |
22654 | } | |
22655 | ||
22656 | ||
22657 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22658 | PyObject *resultobj; | |
22659 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22660 | long arg2 ; | |
22661 | PyObject * obj0 = 0 ; | |
22662 | PyObject * obj1 = 0 ; | |
22663 | char *kwnames[] = { | |
22664 | (char *) "self",(char *) "m_state", NULL | |
22665 | }; | |
22666 | ||
22667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
22668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22670 | { | |
22671 | arg2 = (long)(SWIG_As_long(obj1)); | |
22672 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22673 | } | |
22674 | if (arg1) (arg1)->m_state = arg2; | |
22675 | ||
22676 | Py_INCREF(Py_None); resultobj = Py_None; | |
22677 | return resultobj; | |
22678 | fail: | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
22683 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22684 | PyObject *resultobj; | |
22685 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22686 | long result; | |
22687 | PyObject * obj0 = 0 ; | |
22688 | char *kwnames[] = { | |
22689 | (char *) "self", NULL | |
22690 | }; | |
22691 | ||
22692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
22693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22695 | result = (long) ((arg1)->m_state); | |
22696 | ||
22697 | { | |
22698 | resultobj = SWIG_From_long((long)(result)); | |
22699 | } | |
22700 | return resultobj; | |
22701 | fail: | |
22702 | return NULL; | |
22703 | } | |
22704 | ||
22705 | ||
22706 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22707 | PyObject *resultobj; | |
22708 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22709 | long arg2 ; | |
22710 | PyObject * obj0 = 0 ; | |
22711 | PyObject * obj1 = 0 ; | |
22712 | char *kwnames[] = { | |
22713 | (char *) "self",(char *) "m_stateMask", NULL | |
22714 | }; | |
22715 | ||
22716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
22717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22719 | { | |
22720 | arg2 = (long)(SWIG_As_long(obj1)); | |
22721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22722 | } | |
22723 | if (arg1) (arg1)->m_stateMask = arg2; | |
22724 | ||
22725 | Py_INCREF(Py_None); resultobj = Py_None; | |
22726 | return resultobj; | |
22727 | fail: | |
22728 | return NULL; | |
22729 | } | |
22730 | ||
22731 | ||
22732 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22733 | PyObject *resultobj; | |
22734 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22735 | long result; | |
22736 | PyObject * obj0 = 0 ; | |
22737 | char *kwnames[] = { | |
22738 | (char *) "self", NULL | |
22739 | }; | |
22740 | ||
22741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
22742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22744 | result = (long) ((arg1)->m_stateMask); | |
22745 | ||
22746 | { | |
22747 | resultobj = SWIG_From_long((long)(result)); | |
22748 | } | |
22749 | return resultobj; | |
22750 | fail: | |
22751 | return NULL; | |
22752 | } | |
22753 | ||
22754 | ||
22755 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22756 | PyObject *resultobj; | |
22757 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22758 | wxString *arg2 = (wxString *) 0 ; | |
22759 | bool temp2 = false ; | |
22760 | PyObject * obj0 = 0 ; | |
22761 | PyObject * obj1 = 0 ; | |
22762 | char *kwnames[] = { | |
22763 | (char *) "self",(char *) "m_text", NULL | |
22764 | }; | |
22765 | ||
22766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
22767 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22768 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22769 | { | |
22770 | arg2 = wxString_in_helper(obj1); | |
22771 | if (arg2 == NULL) SWIG_fail; | |
22772 | temp2 = true; | |
22773 | } | |
22774 | if (arg1) (arg1)->m_text = *arg2; | |
22775 | ||
22776 | Py_INCREF(Py_None); resultobj = Py_None; | |
22777 | { | |
22778 | if (temp2) | |
22779 | delete arg2; | |
22780 | } | |
22781 | return resultobj; | |
22782 | fail: | |
22783 | { | |
22784 | if (temp2) | |
22785 | delete arg2; | |
22786 | } | |
22787 | return NULL; | |
22788 | } | |
22789 | ||
22790 | ||
22791 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22792 | PyObject *resultobj; | |
22793 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22794 | wxString *result; | |
22795 | PyObject * obj0 = 0 ; | |
22796 | char *kwnames[] = { | |
22797 | (char *) "self", NULL | |
22798 | }; | |
22799 | ||
22800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
22801 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22802 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22803 | result = (wxString *)& ((arg1)->m_text); | |
22804 | ||
22805 | { | |
22806 | #if wxUSE_UNICODE | |
22807 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
22808 | #else | |
22809 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
22810 | #endif | |
22811 | } | |
22812 | return resultobj; | |
22813 | fail: | |
22814 | return NULL; | |
22815 | } | |
22816 | ||
22817 | ||
22818 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22819 | PyObject *resultobj; | |
22820 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22821 | int arg2 ; | |
22822 | PyObject * obj0 = 0 ; | |
22823 | PyObject * obj1 = 0 ; | |
22824 | char *kwnames[] = { | |
22825 | (char *) "self",(char *) "m_image", NULL | |
22826 | }; | |
22827 | ||
22828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
22829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22831 | { | |
22832 | arg2 = (int)(SWIG_As_int(obj1)); | |
22833 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22834 | } | |
22835 | if (arg1) (arg1)->m_image = arg2; | |
22836 | ||
22837 | Py_INCREF(Py_None); resultobj = Py_None; | |
22838 | return resultobj; | |
22839 | fail: | |
22840 | return NULL; | |
22841 | } | |
22842 | ||
22843 | ||
22844 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22845 | PyObject *resultobj; | |
22846 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22847 | int result; | |
22848 | PyObject * obj0 = 0 ; | |
22849 | char *kwnames[] = { | |
22850 | (char *) "self", NULL | |
22851 | }; | |
22852 | ||
22853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
22854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22856 | result = (int) ((arg1)->m_image); | |
22857 | ||
22858 | { | |
22859 | resultobj = SWIG_From_int((int)(result)); | |
22860 | } | |
22861 | return resultobj; | |
22862 | fail: | |
22863 | return NULL; | |
22864 | } | |
22865 | ||
22866 | ||
22867 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22868 | PyObject *resultobj; | |
22869 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22870 | long arg2 ; | |
22871 | PyObject * obj0 = 0 ; | |
22872 | PyObject * obj1 = 0 ; | |
22873 | char *kwnames[] = { | |
22874 | (char *) "self",(char *) "m_data", NULL | |
22875 | }; | |
22876 | ||
22877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
22878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22880 | { | |
22881 | arg2 = (long)(SWIG_As_long(obj1)); | |
22882 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22883 | } | |
22884 | if (arg1) (arg1)->m_data = arg2; | |
22885 | ||
22886 | Py_INCREF(Py_None); resultobj = Py_None; | |
22887 | return resultobj; | |
22888 | fail: | |
22889 | return NULL; | |
22890 | } | |
22891 | ||
22892 | ||
22893 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22894 | PyObject *resultobj; | |
22895 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22896 | long result; | |
22897 | PyObject * obj0 = 0 ; | |
22898 | char *kwnames[] = { | |
22899 | (char *) "self", NULL | |
22900 | }; | |
22901 | ||
22902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
22903 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22904 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22905 | result = (long) ((arg1)->m_data); | |
22906 | ||
22907 | { | |
22908 | resultobj = SWIG_From_long((long)(result)); | |
22909 | } | |
22910 | return resultobj; | |
22911 | fail: | |
22912 | return NULL; | |
22913 | } | |
22914 | ||
22915 | ||
22916 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22917 | PyObject *resultobj; | |
22918 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22919 | int arg2 ; | |
22920 | PyObject * obj0 = 0 ; | |
22921 | PyObject * obj1 = 0 ; | |
22922 | char *kwnames[] = { | |
22923 | (char *) "self",(char *) "m_format", NULL | |
22924 | }; | |
22925 | ||
22926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
22927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22929 | { | |
22930 | arg2 = (int)(SWIG_As_int(obj1)); | |
22931 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22932 | } | |
22933 | if (arg1) (arg1)->m_format = arg2; | |
22934 | ||
22935 | Py_INCREF(Py_None); resultobj = Py_None; | |
22936 | return resultobj; | |
22937 | fail: | |
22938 | return NULL; | |
22939 | } | |
22940 | ||
22941 | ||
22942 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22943 | PyObject *resultobj; | |
22944 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22945 | int result; | |
22946 | PyObject * obj0 = 0 ; | |
22947 | char *kwnames[] = { | |
22948 | (char *) "self", NULL | |
22949 | }; | |
22950 | ||
22951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
22952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22954 | result = (int) ((arg1)->m_format); | |
22955 | ||
22956 | { | |
22957 | resultobj = SWIG_From_int((int)(result)); | |
22958 | } | |
22959 | return resultobj; | |
22960 | fail: | |
22961 | return NULL; | |
22962 | } | |
22963 | ||
22964 | ||
22965 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
22966 | PyObject *resultobj; | |
22967 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22968 | int arg2 ; | |
22969 | PyObject * obj0 = 0 ; | |
22970 | PyObject * obj1 = 0 ; | |
22971 | char *kwnames[] = { | |
22972 | (char *) "self",(char *) "m_width", NULL | |
22973 | }; | |
22974 | ||
22975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
22976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
22977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22978 | { | |
22979 | arg2 = (int)(SWIG_As_int(obj1)); | |
22980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22981 | } | |
22982 | if (arg1) (arg1)->m_width = arg2; | |
22983 | ||
22984 | Py_INCREF(Py_None); resultobj = Py_None; | |
22985 | return resultobj; | |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
22991 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
22992 | PyObject *resultobj; | |
22993 | wxListItem *arg1 = (wxListItem *) 0 ; | |
22994 | int result; | |
22995 | PyObject * obj0 = 0 ; | |
22996 | char *kwnames[] = { | |
22997 | (char *) "self", NULL | |
22998 | }; | |
22999 | ||
23000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
23001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
23002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23003 | result = (int) ((arg1)->m_width); | |
23004 | ||
23005 | { | |
23006 | resultobj = SWIG_From_int((int)(result)); | |
23007 | } | |
23008 | return resultobj; | |
23009 | fail: | |
23010 | return NULL; | |
23011 | } | |
23012 | ||
23013 | ||
23014 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { | |
23015 | PyObject *obj; | |
23016 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23017 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
23018 | Py_INCREF(obj); | |
23019 | return Py_BuildValue((char *)""); | |
23020 | } | |
23021 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
23022 | PyObject *resultobj; | |
23023 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23024 | int arg2 = (int) 0 ; | |
23025 | wxListEvent *result; | |
23026 | PyObject * obj0 = 0 ; | |
23027 | PyObject * obj1 = 0 ; | |
23028 | char *kwnames[] = { | |
23029 | (char *) "commandType",(char *) "id", NULL | |
23030 | }; | |
23031 | ||
23032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
23033 | if (obj0) { | |
23034 | { | |
23035 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
23036 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23037 | } | |
23038 | } | |
23039 | if (obj1) { | |
23040 | { | |
23041 | arg2 = (int)(SWIG_As_int(obj1)); | |
23042 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23043 | } | |
23044 | } | |
23045 | { | |
23046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23047 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
23048 | ||
23049 | wxPyEndAllowThreads(__tstate); | |
23050 | if (PyErr_Occurred()) SWIG_fail; | |
23051 | } | |
23052 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
23053 | return resultobj; | |
23054 | fail: | |
23055 | return NULL; | |
23056 | } | |
23057 | ||
23058 | ||
23059 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
23060 | PyObject *resultobj; | |
23061 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23062 | int arg2 ; | |
23063 | PyObject * obj0 = 0 ; | |
23064 | PyObject * obj1 = 0 ; | |
23065 | char *kwnames[] = { | |
23066 | (char *) "self",(char *) "m_code", NULL | |
23067 | }; | |
23068 | ||
23069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
23070 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23071 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23072 | { | |
23073 | arg2 = (int)(SWIG_As_int(obj1)); | |
23074 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23075 | } | |
23076 | if (arg1) (arg1)->m_code = arg2; | |
23077 | ||
23078 | Py_INCREF(Py_None); resultobj = Py_None; | |
23079 | return resultobj; | |
23080 | fail: | |
23081 | return NULL; | |
23082 | } | |
23083 | ||
23084 | ||
23085 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
23086 | PyObject *resultobj; | |
23087 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23088 | int result; | |
23089 | PyObject * obj0 = 0 ; | |
23090 | char *kwnames[] = { | |
23091 | (char *) "self", NULL | |
23092 | }; | |
23093 | ||
23094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
23095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23097 | result = (int) ((arg1)->m_code); | |
23098 | ||
23099 | { | |
23100 | resultobj = SWIG_From_int((int)(result)); | |
23101 | } | |
23102 | return resultobj; | |
23103 | fail: | |
23104 | return NULL; | |
23105 | } | |
23106 | ||
23107 | ||
23108 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
23109 | PyObject *resultobj; | |
23110 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23111 | long arg2 ; | |
23112 | PyObject * obj0 = 0 ; | |
23113 | PyObject * obj1 = 0 ; | |
23114 | char *kwnames[] = { | |
23115 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
23116 | }; | |
23117 | ||
23118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
23119 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23120 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23121 | { | |
23122 | arg2 = (long)(SWIG_As_long(obj1)); | |
23123 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23124 | } | |
23125 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
23126 | ||
23127 | Py_INCREF(Py_None); resultobj = Py_None; | |
23128 | return resultobj; | |
23129 | fail: | |
23130 | return NULL; | |
23131 | } | |
23132 | ||
23133 | ||
23134 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
23135 | PyObject *resultobj; | |
23136 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23137 | long result; | |
23138 | PyObject * obj0 = 0 ; | |
23139 | char *kwnames[] = { | |
23140 | (char *) "self", NULL | |
23141 | }; | |
23142 | ||
23143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
23144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23146 | result = (long) ((arg1)->m_oldItemIndex); | |
23147 | ||
23148 | { | |
23149 | resultobj = SWIG_From_long((long)(result)); | |
23150 | } | |
23151 | return resultobj; | |
23152 | fail: | |
23153 | return NULL; | |
23154 | } | |
23155 | ||
23156 | ||
23157 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
23158 | PyObject *resultobj; | |
23159 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23160 | long arg2 ; | |
23161 | PyObject * obj0 = 0 ; | |
23162 | PyObject * obj1 = 0 ; | |
23163 | char *kwnames[] = { | |
23164 | (char *) "self",(char *) "m_itemIndex", NULL | |
23165 | }; | |
23166 | ||
23167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
23168 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23169 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23170 | { | |
23171 | arg2 = (long)(SWIG_As_long(obj1)); | |
23172 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23173 | } | |
23174 | if (arg1) (arg1)->m_itemIndex = arg2; | |
23175 | ||
23176 | Py_INCREF(Py_None); resultobj = Py_None; | |
23177 | return resultobj; | |
23178 | fail: | |
23179 | return NULL; | |
23180 | } | |
23181 | ||
23182 | ||
23183 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
23184 | PyObject *resultobj; | |
23185 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23186 | long result; | |
23187 | PyObject * obj0 = 0 ; | |
23188 | char *kwnames[] = { | |
23189 | (char *) "self", NULL | |
23190 | }; | |
23191 | ||
23192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
23193 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23194 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23195 | result = (long) ((arg1)->m_itemIndex); | |
23196 | ||
23197 | { | |
23198 | resultobj = SWIG_From_long((long)(result)); | |
23199 | } | |
23200 | return resultobj; | |
23201 | fail: | |
23202 | return NULL; | |
23203 | } | |
23204 | ||
23205 | ||
23206 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
23207 | PyObject *resultobj; | |
23208 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23209 | int arg2 ; | |
23210 | PyObject * obj0 = 0 ; | |
23211 | PyObject * obj1 = 0 ; | |
23212 | char *kwnames[] = { | |
23213 | (char *) "self",(char *) "m_col", NULL | |
23214 | }; | |
23215 | ||
23216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
23217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23219 | { | |
23220 | arg2 = (int)(SWIG_As_int(obj1)); | |
23221 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23222 | } | |
23223 | if (arg1) (arg1)->m_col = arg2; | |
23224 | ||
23225 | Py_INCREF(Py_None); resultobj = Py_None; | |
23226 | return resultobj; | |
23227 | fail: | |
23228 | return NULL; | |
23229 | } | |
23230 | ||
23231 | ||
23232 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
23233 | PyObject *resultobj; | |
23234 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23235 | int result; | |
23236 | PyObject * obj0 = 0 ; | |
23237 | char *kwnames[] = { | |
23238 | (char *) "self", NULL | |
23239 | }; | |
23240 | ||
23241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
23242 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23243 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23244 | result = (int) ((arg1)->m_col); | |
23245 | ||
23246 | { | |
23247 | resultobj = SWIG_From_int((int)(result)); | |
23248 | } | |
23249 | return resultobj; | |
23250 | fail: | |
23251 | return NULL; | |
23252 | } | |
23253 | ||
23254 | ||
23255 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
23256 | PyObject *resultobj; | |
23257 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23258 | wxPoint *arg2 = (wxPoint *) 0 ; | |
23259 | PyObject * obj0 = 0 ; | |
23260 | PyObject * obj1 = 0 ; | |
23261 | char *kwnames[] = { | |
23262 | (char *) "self",(char *) "m_pointDrag", NULL | |
23263 | }; | |
23264 | ||
23265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
23266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23268 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); | |
23269 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23270 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
23271 | ||
23272 | Py_INCREF(Py_None); resultobj = Py_None; | |
23273 | return resultobj; | |
23274 | fail: | |
23275 | return NULL; | |
23276 | } | |
23277 | ||
23278 | ||
23279 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
23280 | PyObject *resultobj; | |
23281 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23282 | wxPoint *result; | |
23283 | PyObject * obj0 = 0 ; | |
23284 | char *kwnames[] = { | |
23285 | (char *) "self", NULL | |
23286 | }; | |
23287 | ||
23288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
23289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23291 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
23292 | ||
23293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
23294 | return resultobj; | |
23295 | fail: | |
23296 | return NULL; | |
23297 | } | |
23298 | ||
23299 | ||
23300 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
23301 | PyObject *resultobj; | |
23302 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23303 | wxListItem *result; | |
23304 | PyObject * obj0 = 0 ; | |
23305 | char *kwnames[] = { | |
23306 | (char *) "self", NULL | |
23307 | }; | |
23308 | ||
23309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
23310 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23311 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23312 | result = (wxListItem *)& ((arg1)->m_item); | |
23313 | ||
23314 | { | |
23315 | resultobj = wxPyMake_wxObject(result, 0); | |
23316 | } | |
23317 | return resultobj; | |
23318 | fail: | |
23319 | return NULL; | |
23320 | } | |
23321 | ||
23322 | ||
23323 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { | |
23324 | PyObject *resultobj; | |
23325 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23326 | int result; | |
23327 | PyObject * obj0 = 0 ; | |
23328 | char *kwnames[] = { | |
23329 | (char *) "self", NULL | |
23330 | }; | |
23331 | ||
23332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
23333 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23334 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23335 | { | |
23336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23337 | result = (int)(arg1)->GetKeyCode(); | |
23338 | ||
23339 | wxPyEndAllowThreads(__tstate); | |
23340 | if (PyErr_Occurred()) SWIG_fail; | |
23341 | } | |
23342 | { | |
23343 | resultobj = SWIG_From_int((int)(result)); | |
23344 | } | |
23345 | return resultobj; | |
23346 | fail: | |
23347 | return NULL; | |
23348 | } | |
23349 | ||
23350 | ||
23351 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
23352 | PyObject *resultobj; | |
23353 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23354 | long result; | |
23355 | PyObject * obj0 = 0 ; | |
23356 | char *kwnames[] = { | |
23357 | (char *) "self", NULL | |
23358 | }; | |
23359 | ||
23360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
23361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23363 | { | |
23364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23365 | result = (long)(arg1)->GetIndex(); | |
23366 | ||
23367 | wxPyEndAllowThreads(__tstate); | |
23368 | if (PyErr_Occurred()) SWIG_fail; | |
23369 | } | |
23370 | { | |
23371 | resultobj = SWIG_From_long((long)(result)); | |
23372 | } | |
23373 | return resultobj; | |
23374 | fail: | |
23375 | return NULL; | |
23376 | } | |
23377 | ||
23378 | ||
23379 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { | |
23380 | PyObject *resultobj; | |
23381 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23382 | int result; | |
23383 | PyObject * obj0 = 0 ; | |
23384 | char *kwnames[] = { | |
23385 | (char *) "self", NULL | |
23386 | }; | |
23387 | ||
23388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
23389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23391 | { | |
23392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23393 | result = (int)(arg1)->GetColumn(); | |
23394 | ||
23395 | wxPyEndAllowThreads(__tstate); | |
23396 | if (PyErr_Occurred()) SWIG_fail; | |
23397 | } | |
23398 | { | |
23399 | resultobj = SWIG_From_int((int)(result)); | |
23400 | } | |
23401 | return resultobj; | |
23402 | fail: | |
23403 | return NULL; | |
23404 | } | |
23405 | ||
23406 | ||
23407 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
23408 | PyObject *resultobj; | |
23409 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23410 | wxPoint result; | |
23411 | PyObject * obj0 = 0 ; | |
23412 | char *kwnames[] = { | |
23413 | (char *) "self", NULL | |
23414 | }; | |
23415 | ||
23416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23419 | { | |
23420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23421 | result = (arg1)->GetPoint(); | |
23422 | ||
23423 | wxPyEndAllowThreads(__tstate); | |
23424 | if (PyErr_Occurred()) SWIG_fail; | |
23425 | } | |
23426 | { | |
23427 | wxPoint * resultptr; | |
23428 | resultptr = new wxPoint((wxPoint &)(result)); | |
23429 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23430 | } | |
23431 | return resultobj; | |
23432 | fail: | |
23433 | return NULL; | |
23434 | } | |
23435 | ||
23436 | ||
23437 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
23438 | PyObject *resultobj; | |
23439 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23440 | wxString *result; | |
23441 | PyObject * obj0 = 0 ; | |
23442 | char *kwnames[] = { | |
23443 | (char *) "self", NULL | |
23444 | }; | |
23445 | ||
23446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
23447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23449 | { | |
23450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23451 | { | |
23452 | wxString const &_result_ref = (arg1)->GetLabel(); | |
23453 | result = (wxString *) &_result_ref; | |
23454 | } | |
23455 | ||
23456 | wxPyEndAllowThreads(__tstate); | |
23457 | if (PyErr_Occurred()) SWIG_fail; | |
23458 | } | |
23459 | { | |
23460 | #if wxUSE_UNICODE | |
23461 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23462 | #else | |
23463 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23464 | #endif | |
23465 | } | |
23466 | return resultobj; | |
23467 | fail: | |
23468 | return NULL; | |
23469 | } | |
23470 | ||
23471 | ||
23472 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { | |
23473 | PyObject *resultobj; | |
23474 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23475 | wxString *result; | |
23476 | PyObject * obj0 = 0 ; | |
23477 | char *kwnames[] = { | |
23478 | (char *) "self", NULL | |
23479 | }; | |
23480 | ||
23481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
23482 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23483 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23484 | { | |
23485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23486 | { | |
23487 | wxString const &_result_ref = (arg1)->GetText(); | |
23488 | result = (wxString *) &_result_ref; | |
23489 | } | |
23490 | ||
23491 | wxPyEndAllowThreads(__tstate); | |
23492 | if (PyErr_Occurred()) SWIG_fail; | |
23493 | } | |
23494 | { | |
23495 | #if wxUSE_UNICODE | |
23496 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23497 | #else | |
23498 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23499 | #endif | |
23500 | } | |
23501 | return resultobj; | |
23502 | fail: | |
23503 | return NULL; | |
23504 | } | |
23505 | ||
23506 | ||
23507 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
23508 | PyObject *resultobj; | |
23509 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23510 | int result; | |
23511 | PyObject * obj0 = 0 ; | |
23512 | char *kwnames[] = { | |
23513 | (char *) "self", NULL | |
23514 | }; | |
23515 | ||
23516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
23517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23519 | { | |
23520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23521 | result = (int)(arg1)->GetImage(); | |
23522 | ||
23523 | wxPyEndAllowThreads(__tstate); | |
23524 | if (PyErr_Occurred()) SWIG_fail; | |
23525 | } | |
23526 | { | |
23527 | resultobj = SWIG_From_int((int)(result)); | |
23528 | } | |
23529 | return resultobj; | |
23530 | fail: | |
23531 | return NULL; | |
23532 | } | |
23533 | ||
23534 | ||
23535 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
23536 | PyObject *resultobj; | |
23537 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23538 | long result; | |
23539 | PyObject * obj0 = 0 ; | |
23540 | char *kwnames[] = { | |
23541 | (char *) "self", NULL | |
23542 | }; | |
23543 | ||
23544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
23545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23547 | { | |
23548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23549 | result = (long)(arg1)->GetData(); | |
23550 | ||
23551 | wxPyEndAllowThreads(__tstate); | |
23552 | if (PyErr_Occurred()) SWIG_fail; | |
23553 | } | |
23554 | { | |
23555 | resultobj = SWIG_From_long((long)(result)); | |
23556 | } | |
23557 | return resultobj; | |
23558 | fail: | |
23559 | return NULL; | |
23560 | } | |
23561 | ||
23562 | ||
23563 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
23564 | PyObject *resultobj; | |
23565 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23566 | long result; | |
23567 | PyObject * obj0 = 0 ; | |
23568 | char *kwnames[] = { | |
23569 | (char *) "self", NULL | |
23570 | }; | |
23571 | ||
23572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
23573 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23574 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23575 | { | |
23576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23577 | result = (long)(arg1)->GetMask(); | |
23578 | ||
23579 | wxPyEndAllowThreads(__tstate); | |
23580 | if (PyErr_Occurred()) SWIG_fail; | |
23581 | } | |
23582 | { | |
23583 | resultobj = SWIG_From_long((long)(result)); | |
23584 | } | |
23585 | return resultobj; | |
23586 | fail: | |
23587 | return NULL; | |
23588 | } | |
23589 | ||
23590 | ||
23591 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
23592 | PyObject *resultobj; | |
23593 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23594 | wxListItem *result; | |
23595 | PyObject * obj0 = 0 ; | |
23596 | char *kwnames[] = { | |
23597 | (char *) "self", NULL | |
23598 | }; | |
23599 | ||
23600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
23601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23603 | { | |
23604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23605 | { | |
23606 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
23607 | result = (wxListItem *) &_result_ref; | |
23608 | } | |
23609 | ||
23610 | wxPyEndAllowThreads(__tstate); | |
23611 | if (PyErr_Occurred()) SWIG_fail; | |
23612 | } | |
23613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
23614 | return resultobj; | |
23615 | fail: | |
23616 | return NULL; | |
23617 | } | |
23618 | ||
23619 | ||
23620 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { | |
23621 | PyObject *resultobj; | |
23622 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23623 | long result; | |
23624 | PyObject * obj0 = 0 ; | |
23625 | char *kwnames[] = { | |
23626 | (char *) "self", NULL | |
23627 | }; | |
23628 | ||
23629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
23630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23632 | { | |
23633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23634 | result = (long)(arg1)->GetCacheFrom(); | |
23635 | ||
23636 | wxPyEndAllowThreads(__tstate); | |
23637 | if (PyErr_Occurred()) SWIG_fail; | |
23638 | } | |
23639 | { | |
23640 | resultobj = SWIG_From_long((long)(result)); | |
23641 | } | |
23642 | return resultobj; | |
23643 | fail: | |
23644 | return NULL; | |
23645 | } | |
23646 | ||
23647 | ||
23648 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
23649 | PyObject *resultobj; | |
23650 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23651 | long result; | |
23652 | PyObject * obj0 = 0 ; | |
23653 | char *kwnames[] = { | |
23654 | (char *) "self", NULL | |
23655 | }; | |
23656 | ||
23657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
23658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23660 | { | |
23661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23662 | result = (long)(arg1)->GetCacheTo(); | |
23663 | ||
23664 | wxPyEndAllowThreads(__tstate); | |
23665 | if (PyErr_Occurred()) SWIG_fail; | |
23666 | } | |
23667 | { | |
23668 | resultobj = SWIG_From_long((long)(result)); | |
23669 | } | |
23670 | return resultobj; | |
23671 | fail: | |
23672 | return NULL; | |
23673 | } | |
23674 | ||
23675 | ||
23676 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { | |
23677 | PyObject *resultobj; | |
23678 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23679 | bool result; | |
23680 | PyObject * obj0 = 0 ; | |
23681 | char *kwnames[] = { | |
23682 | (char *) "self", NULL | |
23683 | }; | |
23684 | ||
23685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
23686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23688 | { | |
23689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23690 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
23691 | ||
23692 | wxPyEndAllowThreads(__tstate); | |
23693 | if (PyErr_Occurred()) SWIG_fail; | |
23694 | } | |
23695 | { | |
23696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23697 | } | |
23698 | return resultobj; | |
23699 | fail: | |
23700 | return NULL; | |
23701 | } | |
23702 | ||
23703 | ||
23704 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { | |
23705 | PyObject *resultobj; | |
23706 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
23707 | bool arg2 ; | |
23708 | PyObject * obj0 = 0 ; | |
23709 | PyObject * obj1 = 0 ; | |
23710 | char *kwnames[] = { | |
23711 | (char *) "self",(char *) "editCancelled", NULL | |
23712 | }; | |
23713 | ||
23714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
23715 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); | |
23716 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23717 | { | |
23718 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
23719 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23720 | } | |
23721 | { | |
23722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23723 | (arg1)->SetEditCanceled(arg2); | |
23724 | ||
23725 | wxPyEndAllowThreads(__tstate); | |
23726 | if (PyErr_Occurred()) SWIG_fail; | |
23727 | } | |
23728 | Py_INCREF(Py_None); resultobj = Py_None; | |
23729 | return resultobj; | |
23730 | fail: | |
23731 | return NULL; | |
23732 | } | |
23733 | ||
23734 | ||
23735 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { | |
23736 | PyObject *obj; | |
23737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23738 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
23739 | Py_INCREF(obj); | |
23740 | return Py_BuildValue((char *)""); | |
23741 | } | |
23742 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
23743 | PyObject *resultobj; | |
23744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23745 | int arg2 = (int) -1 ; | |
23746 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23747 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23748 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23749 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23750 | long arg5 = (long) wxLC_ICON ; | |
23751 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23752 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23753 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23754 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23755 | wxPyListCtrl *result; | |
23756 | wxPoint temp3 ; | |
23757 | wxSize temp4 ; | |
23758 | bool temp7 = false ; | |
23759 | PyObject * obj0 = 0 ; | |
23760 | PyObject * obj1 = 0 ; | |
23761 | PyObject * obj2 = 0 ; | |
23762 | PyObject * obj3 = 0 ; | |
23763 | PyObject * obj4 = 0 ; | |
23764 | PyObject * obj5 = 0 ; | |
23765 | PyObject * obj6 = 0 ; | |
23766 | char *kwnames[] = { | |
23767 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23768 | }; | |
23769 | ||
23770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23771 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23772 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23773 | if (obj1) { | |
23774 | { | |
23775 | arg2 = (int)(SWIG_As_int(obj1)); | |
23776 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23777 | } | |
23778 | } | |
23779 | if (obj2) { | |
23780 | { | |
23781 | arg3 = &temp3; | |
23782 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23783 | } | |
23784 | } | |
23785 | if (obj3) { | |
23786 | { | |
23787 | arg4 = &temp4; | |
23788 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23789 | } | |
23790 | } | |
23791 | if (obj4) { | |
23792 | { | |
23793 | arg5 = (long)(SWIG_As_long(obj4)); | |
23794 | if (SWIG_arg_fail(5)) SWIG_fail; | |
23795 | } | |
23796 | } | |
23797 | if (obj5) { | |
23798 | { | |
23799 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23800 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23801 | if (arg6 == NULL) { | |
23802 | SWIG_null_ref("wxValidator"); | |
23803 | } | |
23804 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23805 | } | |
23806 | } | |
23807 | if (obj6) { | |
23808 | { | |
23809 | arg7 = wxString_in_helper(obj6); | |
23810 | if (arg7 == NULL) SWIG_fail; | |
23811 | temp7 = true; | |
23812 | } | |
23813 | } | |
23814 | { | |
23815 | if (!wxPyCheckForApp()) SWIG_fail; | |
23816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23817 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23818 | ||
23819 | wxPyEndAllowThreads(__tstate); | |
23820 | if (PyErr_Occurred()) SWIG_fail; | |
23821 | } | |
23822 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
23823 | { | |
23824 | if (temp7) | |
23825 | delete arg7; | |
23826 | } | |
23827 | return resultobj; | |
23828 | fail: | |
23829 | { | |
23830 | if (temp7) | |
23831 | delete arg7; | |
23832 | } | |
23833 | return NULL; | |
23834 | } | |
23835 | ||
23836 | ||
23837 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
23838 | PyObject *resultobj; | |
23839 | wxPyListCtrl *result; | |
23840 | char *kwnames[] = { | |
23841 | NULL | |
23842 | }; | |
23843 | ||
23844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
23845 | { | |
23846 | if (!wxPyCheckForApp()) SWIG_fail; | |
23847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23848 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
23849 | ||
23850 | wxPyEndAllowThreads(__tstate); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
23852 | } | |
23853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
23854 | return resultobj; | |
23855 | fail: | |
23856 | return NULL; | |
23857 | } | |
23858 | ||
23859 | ||
23860 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
23861 | PyObject *resultobj; | |
23862 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23863 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23864 | int arg3 = (int) -1 ; | |
23865 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23866 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23867 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23868 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23869 | long arg6 = (long) wxLC_ICON ; | |
23870 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23871 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23872 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23873 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23874 | bool result; | |
23875 | wxPoint temp4 ; | |
23876 | wxSize temp5 ; | |
23877 | bool temp8 = false ; | |
23878 | PyObject * obj0 = 0 ; | |
23879 | PyObject * obj1 = 0 ; | |
23880 | PyObject * obj2 = 0 ; | |
23881 | PyObject * obj3 = 0 ; | |
23882 | PyObject * obj4 = 0 ; | |
23883 | PyObject * obj5 = 0 ; | |
23884 | PyObject * obj6 = 0 ; | |
23885 | PyObject * obj7 = 0 ; | |
23886 | char *kwnames[] = { | |
23887 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23888 | }; | |
23889 | ||
23890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
23891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
23892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23893 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
23894 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23895 | if (obj2) { | |
23896 | { | |
23897 | arg3 = (int)(SWIG_As_int(obj2)); | |
23898 | if (SWIG_arg_fail(3)) SWIG_fail; | |
23899 | } | |
23900 | } | |
23901 | if (obj3) { | |
23902 | { | |
23903 | arg4 = &temp4; | |
23904 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23905 | } | |
23906 | } | |
23907 | if (obj4) { | |
23908 | { | |
23909 | arg5 = &temp5; | |
23910 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23911 | } | |
23912 | } | |
23913 | if (obj5) { | |
23914 | { | |
23915 | arg6 = (long)(SWIG_As_long(obj5)); | |
23916 | if (SWIG_arg_fail(6)) SWIG_fail; | |
23917 | } | |
23918 | } | |
23919 | if (obj6) { | |
23920 | { | |
23921 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
23922 | if (SWIG_arg_fail(7)) SWIG_fail; | |
23923 | if (arg7 == NULL) { | |
23924 | SWIG_null_ref("wxValidator"); | |
23925 | } | |
23926 | if (SWIG_arg_fail(7)) SWIG_fail; | |
23927 | } | |
23928 | } | |
23929 | if (obj7) { | |
23930 | { | |
23931 | arg8 = wxString_in_helper(obj7); | |
23932 | if (arg8 == NULL) SWIG_fail; | |
23933 | temp8 = true; | |
23934 | } | |
23935 | } | |
23936 | { | |
23937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23938 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23939 | ||
23940 | wxPyEndAllowThreads(__tstate); | |
23941 | if (PyErr_Occurred()) SWIG_fail; | |
23942 | } | |
23943 | { | |
23944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23945 | } | |
23946 | { | |
23947 | if (temp8) | |
23948 | delete arg8; | |
23949 | } | |
23950 | return resultobj; | |
23951 | fail: | |
23952 | { | |
23953 | if (temp8) | |
23954 | delete arg8; | |
23955 | } | |
23956 | return NULL; | |
23957 | } | |
23958 | ||
23959 | ||
23960 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
23961 | PyObject *resultobj; | |
23962 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23963 | PyObject *arg2 = (PyObject *) 0 ; | |
23964 | PyObject *arg3 = (PyObject *) 0 ; | |
23965 | PyObject * obj0 = 0 ; | |
23966 | PyObject * obj1 = 0 ; | |
23967 | PyObject * obj2 = 0 ; | |
23968 | char *kwnames[] = { | |
23969 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23970 | }; | |
23971 | ||
23972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23973 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
23974 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23975 | arg2 = obj1; | |
23976 | arg3 = obj2; | |
23977 | { | |
23978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23979 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23980 | ||
23981 | wxPyEndAllowThreads(__tstate); | |
23982 | if (PyErr_Occurred()) SWIG_fail; | |
23983 | } | |
23984 | Py_INCREF(Py_None); resultobj = Py_None; | |
23985 | return resultobj; | |
23986 | fail: | |
23987 | return NULL; | |
23988 | } | |
23989 | ||
23990 | ||
23991 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
23992 | PyObject *resultobj; | |
23993 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23994 | wxColour *arg2 = 0 ; | |
23995 | bool result; | |
23996 | wxColour temp2 ; | |
23997 | PyObject * obj0 = 0 ; | |
23998 | PyObject * obj1 = 0 ; | |
23999 | char *kwnames[] = { | |
24000 | (char *) "self",(char *) "col", NULL | |
24001 | }; | |
24002 | ||
24003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24004 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24005 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24006 | { | |
24007 | arg2 = &temp2; | |
24008 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24009 | } | |
24010 | { | |
24011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24012 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
24013 | ||
24014 | wxPyEndAllowThreads(__tstate); | |
24015 | if (PyErr_Occurred()) SWIG_fail; | |
24016 | } | |
24017 | { | |
24018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24019 | } | |
24020 | return resultobj; | |
24021 | fail: | |
24022 | return NULL; | |
24023 | } | |
24024 | ||
24025 | ||
24026 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
24027 | PyObject *resultobj; | |
24028 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24029 | wxColour *arg2 = 0 ; | |
24030 | bool result; | |
24031 | wxColour temp2 ; | |
24032 | PyObject * obj0 = 0 ; | |
24033 | PyObject * obj1 = 0 ; | |
24034 | char *kwnames[] = { | |
24035 | (char *) "self",(char *) "col", NULL | |
24036 | }; | |
24037 | ||
24038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24039 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24040 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24041 | { | |
24042 | arg2 = &temp2; | |
24043 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24044 | } | |
24045 | { | |
24046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24047 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
24048 | ||
24049 | wxPyEndAllowThreads(__tstate); | |
24050 | if (PyErr_Occurred()) SWIG_fail; | |
24051 | } | |
24052 | { | |
24053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24054 | } | |
24055 | return resultobj; | |
24056 | fail: | |
24057 | return NULL; | |
24058 | } | |
24059 | ||
24060 | ||
24061 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { | |
24062 | PyObject *resultobj; | |
24063 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24064 | int arg2 ; | |
24065 | wxListItem *result; | |
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_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
24073 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24074 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24075 | { | |
24076 | arg2 = (int)(SWIG_As_int(obj1)); | |
24077 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24078 | } | |
24079 | { | |
24080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24081 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
24082 | ||
24083 | wxPyEndAllowThreads(__tstate); | |
24084 | if (PyErr_Occurred()) SWIG_fail; | |
24085 | } | |
24086 | { | |
24087 | resultobj = wxPyMake_wxObject(result, 0); | |
24088 | } | |
24089 | return resultobj; | |
24090 | fail: | |
24091 | return NULL; | |
24092 | } | |
24093 | ||
24094 | ||
24095 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { | |
24096 | PyObject *resultobj; | |
24097 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24098 | int arg2 ; | |
24099 | wxListItem *arg3 = 0 ; | |
24100 | bool result; | |
24101 | PyObject * obj0 = 0 ; | |
24102 | PyObject * obj1 = 0 ; | |
24103 | PyObject * obj2 = 0 ; | |
24104 | char *kwnames[] = { | |
24105 | (char *) "self",(char *) "col",(char *) "item", NULL | |
24106 | }; | |
24107 | ||
24108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24111 | { | |
24112 | arg2 = (int)(SWIG_As_int(obj1)); | |
24113 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24114 | } | |
24115 | { | |
24116 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24117 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24118 | if (arg3 == NULL) { | |
24119 | SWIG_null_ref("wxListItem"); | |
24120 | } | |
24121 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24122 | } | |
24123 | { | |
24124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24125 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
24126 | ||
24127 | wxPyEndAllowThreads(__tstate); | |
24128 | if (PyErr_Occurred()) SWIG_fail; | |
24129 | } | |
24130 | { | |
24131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24132 | } | |
24133 | return resultobj; | |
24134 | fail: | |
24135 | return NULL; | |
24136 | } | |
24137 | ||
24138 | ||
24139 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
24140 | PyObject *resultobj; | |
24141 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24142 | int arg2 ; | |
24143 | int result; | |
24144 | PyObject * obj0 = 0 ; | |
24145 | PyObject * obj1 = 0 ; | |
24146 | char *kwnames[] = { | |
24147 | (char *) "self",(char *) "col", NULL | |
24148 | }; | |
24149 | ||
24150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
24151 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24152 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24153 | { | |
24154 | arg2 = (int)(SWIG_As_int(obj1)); | |
24155 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24156 | } | |
24157 | { | |
24158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24159 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
24160 | ||
24161 | wxPyEndAllowThreads(__tstate); | |
24162 | if (PyErr_Occurred()) SWIG_fail; | |
24163 | } | |
24164 | { | |
24165 | resultobj = SWIG_From_int((int)(result)); | |
24166 | } | |
24167 | return resultobj; | |
24168 | fail: | |
24169 | return NULL; | |
24170 | } | |
24171 | ||
24172 | ||
24173 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
24174 | PyObject *resultobj; | |
24175 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24176 | int arg2 ; | |
24177 | int arg3 ; | |
24178 | bool result; | |
24179 | PyObject * obj0 = 0 ; | |
24180 | PyObject * obj1 = 0 ; | |
24181 | PyObject * obj2 = 0 ; | |
24182 | char *kwnames[] = { | |
24183 | (char *) "self",(char *) "col",(char *) "width", NULL | |
24184 | }; | |
24185 | ||
24186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24189 | { | |
24190 | arg2 = (int)(SWIG_As_int(obj1)); | |
24191 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24192 | } | |
24193 | { | |
24194 | arg3 = (int)(SWIG_As_int(obj2)); | |
24195 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24196 | } | |
24197 | { | |
24198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24199 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
24200 | ||
24201 | wxPyEndAllowThreads(__tstate); | |
24202 | if (PyErr_Occurred()) SWIG_fail; | |
24203 | } | |
24204 | { | |
24205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24206 | } | |
24207 | return resultobj; | |
24208 | fail: | |
24209 | return NULL; | |
24210 | } | |
24211 | ||
24212 | ||
24213 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
24214 | PyObject *resultobj; | |
24215 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24216 | int result; | |
24217 | PyObject * obj0 = 0 ; | |
24218 | char *kwnames[] = { | |
24219 | (char *) "self", NULL | |
24220 | }; | |
24221 | ||
24222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
24223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24225 | { | |
24226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24227 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
24228 | ||
24229 | wxPyEndAllowThreads(__tstate); | |
24230 | if (PyErr_Occurred()) SWIG_fail; | |
24231 | } | |
24232 | { | |
24233 | resultobj = SWIG_From_int((int)(result)); | |
24234 | } | |
24235 | return resultobj; | |
24236 | fail: | |
24237 | return NULL; | |
24238 | } | |
24239 | ||
24240 | ||
24241 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
24242 | PyObject *resultobj; | |
24243 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24244 | wxRect result; | |
24245 | PyObject * obj0 = 0 ; | |
24246 | char *kwnames[] = { | |
24247 | (char *) "self", NULL | |
24248 | }; | |
24249 | ||
24250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
24251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24253 | { | |
24254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24255 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
24256 | ||
24257 | wxPyEndAllowThreads(__tstate); | |
24258 | if (PyErr_Occurred()) SWIG_fail; | |
24259 | } | |
24260 | { | |
24261 | wxRect * resultptr; | |
24262 | resultptr = new wxRect((wxRect &)(result)); | |
24263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
24264 | } | |
24265 | return resultobj; | |
24266 | fail: | |
24267 | return NULL; | |
24268 | } | |
24269 | ||
24270 | ||
24271 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
24272 | PyObject *resultobj; | |
24273 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24274 | long arg2 ; | |
24275 | int arg3 = (int) 0 ; | |
24276 | wxListItem *result; | |
24277 | PyObject * obj0 = 0 ; | |
24278 | PyObject * obj1 = 0 ; | |
24279 | PyObject * obj2 = 0 ; | |
24280 | char *kwnames[] = { | |
24281 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
24282 | }; | |
24283 | ||
24284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24287 | { | |
24288 | arg2 = (long)(SWIG_As_long(obj1)); | |
24289 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24290 | } | |
24291 | if (obj2) { | |
24292 | { | |
24293 | arg3 = (int)(SWIG_As_int(obj2)); | |
24294 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24295 | } | |
24296 | } | |
24297 | { | |
24298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24299 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
24300 | ||
24301 | wxPyEndAllowThreads(__tstate); | |
24302 | if (PyErr_Occurred()) SWIG_fail; | |
24303 | } | |
24304 | { | |
24305 | resultobj = wxPyMake_wxObject(result, 0); | |
24306 | } | |
24307 | return resultobj; | |
24308 | fail: | |
24309 | return NULL; | |
24310 | } | |
24311 | ||
24312 | ||
24313 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
24314 | PyObject *resultobj; | |
24315 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24316 | wxListItem *arg2 = 0 ; | |
24317 | bool result; | |
24318 | PyObject * obj0 = 0 ; | |
24319 | PyObject * obj1 = 0 ; | |
24320 | char *kwnames[] = { | |
24321 | (char *) "self",(char *) "info", NULL | |
24322 | }; | |
24323 | ||
24324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
24325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24327 | { | |
24328 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
24329 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24330 | if (arg2 == NULL) { | |
24331 | SWIG_null_ref("wxListItem"); | |
24332 | } | |
24333 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24334 | } | |
24335 | { | |
24336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24337 | result = (bool)(arg1)->SetItem(*arg2); | |
24338 | ||
24339 | wxPyEndAllowThreads(__tstate); | |
24340 | if (PyErr_Occurred()) SWIG_fail; | |
24341 | } | |
24342 | { | |
24343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24344 | } | |
24345 | return resultobj; | |
24346 | fail: | |
24347 | return NULL; | |
24348 | } | |
24349 | ||
24350 | ||
24351 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
24352 | PyObject *resultobj; | |
24353 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24354 | long arg2 ; | |
24355 | int arg3 ; | |
24356 | wxString *arg4 = 0 ; | |
24357 | int arg5 = (int) -1 ; | |
24358 | long result; | |
24359 | bool temp4 = false ; | |
24360 | PyObject * obj0 = 0 ; | |
24361 | PyObject * obj1 = 0 ; | |
24362 | PyObject * obj2 = 0 ; | |
24363 | PyObject * obj3 = 0 ; | |
24364 | PyObject * obj4 = 0 ; | |
24365 | char *kwnames[] = { | |
24366 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
24367 | }; | |
24368 | ||
24369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
24370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24372 | { | |
24373 | arg2 = (long)(SWIG_As_long(obj1)); | |
24374 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24375 | } | |
24376 | { | |
24377 | arg3 = (int)(SWIG_As_int(obj2)); | |
24378 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24379 | } | |
24380 | { | |
24381 | arg4 = wxString_in_helper(obj3); | |
24382 | if (arg4 == NULL) SWIG_fail; | |
24383 | temp4 = true; | |
24384 | } | |
24385 | if (obj4) { | |
24386 | { | |
24387 | arg5 = (int)(SWIG_As_int(obj4)); | |
24388 | if (SWIG_arg_fail(5)) SWIG_fail; | |
24389 | } | |
24390 | } | |
24391 | { | |
24392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24393 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
24394 | ||
24395 | wxPyEndAllowThreads(__tstate); | |
24396 | if (PyErr_Occurred()) SWIG_fail; | |
24397 | } | |
24398 | { | |
24399 | resultobj = SWIG_From_long((long)(result)); | |
24400 | } | |
24401 | { | |
24402 | if (temp4) | |
24403 | delete arg4; | |
24404 | } | |
24405 | return resultobj; | |
24406 | fail: | |
24407 | { | |
24408 | if (temp4) | |
24409 | delete arg4; | |
24410 | } | |
24411 | return NULL; | |
24412 | } | |
24413 | ||
24414 | ||
24415 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { | |
24416 | PyObject *resultobj; | |
24417 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24418 | long arg2 ; | |
24419 | long arg3 ; | |
24420 | int result; | |
24421 | PyObject * obj0 = 0 ; | |
24422 | PyObject * obj1 = 0 ; | |
24423 | PyObject * obj2 = 0 ; | |
24424 | char *kwnames[] = { | |
24425 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
24426 | }; | |
24427 | ||
24428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24431 | { | |
24432 | arg2 = (long)(SWIG_As_long(obj1)); | |
24433 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24434 | } | |
24435 | { | |
24436 | arg3 = (long)(SWIG_As_long(obj2)); | |
24437 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24438 | } | |
24439 | { | |
24440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24441 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
24442 | ||
24443 | wxPyEndAllowThreads(__tstate); | |
24444 | if (PyErr_Occurred()) SWIG_fail; | |
24445 | } | |
24446 | { | |
24447 | resultobj = SWIG_From_int((int)(result)); | |
24448 | } | |
24449 | return resultobj; | |
24450 | fail: | |
24451 | return NULL; | |
24452 | } | |
24453 | ||
24454 | ||
24455 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { | |
24456 | PyObject *resultobj; | |
24457 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24458 | long arg2 ; | |
24459 | long arg3 ; | |
24460 | long arg4 ; | |
24461 | bool result; | |
24462 | PyObject * obj0 = 0 ; | |
24463 | PyObject * obj1 = 0 ; | |
24464 | PyObject * obj2 = 0 ; | |
24465 | PyObject * obj3 = 0 ; | |
24466 | char *kwnames[] = { | |
24467 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
24468 | }; | |
24469 | ||
24470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24471 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24472 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24473 | { | |
24474 | arg2 = (long)(SWIG_As_long(obj1)); | |
24475 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24476 | } | |
24477 | { | |
24478 | arg3 = (long)(SWIG_As_long(obj2)); | |
24479 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24480 | } | |
24481 | { | |
24482 | arg4 = (long)(SWIG_As_long(obj3)); | |
24483 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24484 | } | |
24485 | { | |
24486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24487 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
24488 | ||
24489 | wxPyEndAllowThreads(__tstate); | |
24490 | if (PyErr_Occurred()) SWIG_fail; | |
24491 | } | |
24492 | { | |
24493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24494 | } | |
24495 | return resultobj; | |
24496 | fail: | |
24497 | return NULL; | |
24498 | } | |
24499 | ||
24500 | ||
24501 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
24502 | PyObject *resultobj; | |
24503 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24504 | long arg2 ; | |
24505 | int arg3 ; | |
24506 | int arg4 = (int) -1 ; | |
24507 | bool result; | |
24508 | PyObject * obj0 = 0 ; | |
24509 | PyObject * obj1 = 0 ; | |
24510 | PyObject * obj2 = 0 ; | |
24511 | PyObject * obj3 = 0 ; | |
24512 | char *kwnames[] = { | |
24513 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
24514 | }; | |
24515 | ||
24516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24517 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24518 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24519 | { | |
24520 | arg2 = (long)(SWIG_As_long(obj1)); | |
24521 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24522 | } | |
24523 | { | |
24524 | arg3 = (int)(SWIG_As_int(obj2)); | |
24525 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24526 | } | |
24527 | if (obj3) { | |
24528 | { | |
24529 | arg4 = (int)(SWIG_As_int(obj3)); | |
24530 | if (SWIG_arg_fail(4)) SWIG_fail; | |
24531 | } | |
24532 | } | |
24533 | { | |
24534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24535 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
24536 | ||
24537 | wxPyEndAllowThreads(__tstate); | |
24538 | if (PyErr_Occurred()) SWIG_fail; | |
24539 | } | |
24540 | { | |
24541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24542 | } | |
24543 | return resultobj; | |
24544 | fail: | |
24545 | return NULL; | |
24546 | } | |
24547 | ||
24548 | ||
24549 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { | |
24550 | PyObject *resultobj; | |
24551 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24552 | long arg2 ; | |
24553 | wxString result; | |
24554 | PyObject * obj0 = 0 ; | |
24555 | PyObject * obj1 = 0 ; | |
24556 | char *kwnames[] = { | |
24557 | (char *) "self",(char *) "item", NULL | |
24558 | }; | |
24559 | ||
24560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
24561 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24562 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24563 | { | |
24564 | arg2 = (long)(SWIG_As_long(obj1)); | |
24565 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24566 | } | |
24567 | { | |
24568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24569 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
24570 | ||
24571 | wxPyEndAllowThreads(__tstate); | |
24572 | if (PyErr_Occurred()) SWIG_fail; | |
24573 | } | |
24574 | { | |
24575 | #if wxUSE_UNICODE | |
24576 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24577 | #else | |
24578 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24579 | #endif | |
24580 | } | |
24581 | return resultobj; | |
24582 | fail: | |
24583 | return NULL; | |
24584 | } | |
24585 | ||
24586 | ||
24587 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { | |
24588 | PyObject *resultobj; | |
24589 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24590 | long arg2 ; | |
24591 | wxString *arg3 = 0 ; | |
24592 | bool temp3 = false ; | |
24593 | PyObject * obj0 = 0 ; | |
24594 | PyObject * obj1 = 0 ; | |
24595 | PyObject * obj2 = 0 ; | |
24596 | char *kwnames[] = { | |
24597 | (char *) "self",(char *) "item",(char *) "str", NULL | |
24598 | }; | |
24599 | ||
24600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24601 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24602 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24603 | { | |
24604 | arg2 = (long)(SWIG_As_long(obj1)); | |
24605 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24606 | } | |
24607 | { | |
24608 | arg3 = wxString_in_helper(obj2); | |
24609 | if (arg3 == NULL) SWIG_fail; | |
24610 | temp3 = true; | |
24611 | } | |
24612 | { | |
24613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24614 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
24615 | ||
24616 | wxPyEndAllowThreads(__tstate); | |
24617 | if (PyErr_Occurred()) SWIG_fail; | |
24618 | } | |
24619 | Py_INCREF(Py_None); resultobj = Py_None; | |
24620 | { | |
24621 | if (temp3) | |
24622 | delete arg3; | |
24623 | } | |
24624 | return resultobj; | |
24625 | fail: | |
24626 | { | |
24627 | if (temp3) | |
24628 | delete arg3; | |
24629 | } | |
24630 | return NULL; | |
24631 | } | |
24632 | ||
24633 | ||
24634 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { | |
24635 | PyObject *resultobj; | |
24636 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24637 | long arg2 ; | |
24638 | long result; | |
24639 | PyObject * obj0 = 0 ; | |
24640 | PyObject * obj1 = 0 ; | |
24641 | char *kwnames[] = { | |
24642 | (char *) "self",(char *) "item", NULL | |
24643 | }; | |
24644 | ||
24645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
24646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24648 | { | |
24649 | arg2 = (long)(SWIG_As_long(obj1)); | |
24650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24651 | } | |
24652 | { | |
24653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24654 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
24655 | ||
24656 | wxPyEndAllowThreads(__tstate); | |
24657 | if (PyErr_Occurred()) SWIG_fail; | |
24658 | } | |
24659 | { | |
24660 | resultobj = SWIG_From_long((long)(result)); | |
24661 | } | |
24662 | return resultobj; | |
24663 | fail: | |
24664 | return NULL; | |
24665 | } | |
24666 | ||
24667 | ||
24668 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { | |
24669 | PyObject *resultobj; | |
24670 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24671 | long arg2 ; | |
24672 | long arg3 ; | |
24673 | bool result; | |
24674 | PyObject * obj0 = 0 ; | |
24675 | PyObject * obj1 = 0 ; | |
24676 | PyObject * obj2 = 0 ; | |
24677 | char *kwnames[] = { | |
24678 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24679 | }; | |
24680 | ||
24681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24684 | { | |
24685 | arg2 = (long)(SWIG_As_long(obj1)); | |
24686 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24687 | } | |
24688 | { | |
24689 | arg3 = (long)(SWIG_As_long(obj2)); | |
24690 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24691 | } | |
24692 | { | |
24693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24694 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
24695 | ||
24696 | wxPyEndAllowThreads(__tstate); | |
24697 | if (PyErr_Occurred()) SWIG_fail; | |
24698 | } | |
24699 | { | |
24700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24701 | } | |
24702 | return resultobj; | |
24703 | fail: | |
24704 | return NULL; | |
24705 | } | |
24706 | ||
24707 | ||
24708 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
24709 | PyObject *resultobj; | |
24710 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24711 | long arg2 ; | |
24712 | wxPoint result; | |
24713 | PyObject * obj0 = 0 ; | |
24714 | PyObject * obj1 = 0 ; | |
24715 | char *kwnames[] = { | |
24716 | (char *) "self",(char *) "item", NULL | |
24717 | }; | |
24718 | ||
24719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
24720 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24721 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24722 | { | |
24723 | arg2 = (long)(SWIG_As_long(obj1)); | |
24724 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24725 | } | |
24726 | { | |
24727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24728 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
24729 | ||
24730 | wxPyEndAllowThreads(__tstate); | |
24731 | if (PyErr_Occurred()) SWIG_fail; | |
24732 | } | |
24733 | { | |
24734 | wxPoint * resultptr; | |
24735 | resultptr = new wxPoint((wxPoint &)(result)); | |
24736 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
24737 | } | |
24738 | return resultobj; | |
24739 | fail: | |
24740 | return NULL; | |
24741 | } | |
24742 | ||
24743 | ||
24744 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
24745 | PyObject *resultobj; | |
24746 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24747 | long arg2 ; | |
24748 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
24749 | wxRect result; | |
24750 | PyObject * obj0 = 0 ; | |
24751 | PyObject * obj1 = 0 ; | |
24752 | PyObject * obj2 = 0 ; | |
24753 | char *kwnames[] = { | |
24754 | (char *) "self",(char *) "item",(char *) "code", NULL | |
24755 | }; | |
24756 | ||
24757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24760 | { | |
24761 | arg2 = (long)(SWIG_As_long(obj1)); | |
24762 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24763 | } | |
24764 | if (obj2) { | |
24765 | { | |
24766 | arg3 = (int)(SWIG_As_int(obj2)); | |
24767 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24768 | } | |
24769 | } | |
24770 | { | |
24771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24772 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
24773 | ||
24774 | wxPyEndAllowThreads(__tstate); | |
24775 | if (PyErr_Occurred()) SWIG_fail; | |
24776 | } | |
24777 | { | |
24778 | wxRect * resultptr; | |
24779 | resultptr = new wxRect((wxRect &)(result)); | |
24780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
24781 | } | |
24782 | return resultobj; | |
24783 | fail: | |
24784 | return NULL; | |
24785 | } | |
24786 | ||
24787 | ||
24788 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
24789 | PyObject *resultobj; | |
24790 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24791 | long arg2 ; | |
24792 | wxPoint *arg3 = 0 ; | |
24793 | bool result; | |
24794 | wxPoint temp3 ; | |
24795 | PyObject * obj0 = 0 ; | |
24796 | PyObject * obj1 = 0 ; | |
24797 | PyObject * obj2 = 0 ; | |
24798 | char *kwnames[] = { | |
24799 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
24800 | }; | |
24801 | ||
24802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24805 | { | |
24806 | arg2 = (long)(SWIG_As_long(obj1)); | |
24807 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24808 | } | |
24809 | { | |
24810 | arg3 = &temp3; | |
24811 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24812 | } | |
24813 | { | |
24814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24815 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
24816 | ||
24817 | wxPyEndAllowThreads(__tstate); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | { | |
24821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24822 | } | |
24823 | return resultobj; | |
24824 | fail: | |
24825 | return NULL; | |
24826 | } | |
24827 | ||
24828 | ||
24829 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
24830 | PyObject *resultobj; | |
24831 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24832 | int result; | |
24833 | PyObject * obj0 = 0 ; | |
24834 | char *kwnames[] = { | |
24835 | (char *) "self", NULL | |
24836 | }; | |
24837 | ||
24838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
24839 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24840 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24841 | { | |
24842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24843 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
24844 | ||
24845 | wxPyEndAllowThreads(__tstate); | |
24846 | if (PyErr_Occurred()) SWIG_fail; | |
24847 | } | |
24848 | { | |
24849 | resultobj = SWIG_From_int((int)(result)); | |
24850 | } | |
24851 | return resultobj; | |
24852 | fail: | |
24853 | return NULL; | |
24854 | } | |
24855 | ||
24856 | ||
24857 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
24858 | PyObject *resultobj; | |
24859 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24860 | int result; | |
24861 | PyObject * obj0 = 0 ; | |
24862 | char *kwnames[] = { | |
24863 | (char *) "self", NULL | |
24864 | }; | |
24865 | ||
24866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
24867 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24868 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24869 | { | |
24870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24871 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
24872 | ||
24873 | wxPyEndAllowThreads(__tstate); | |
24874 | if (PyErr_Occurred()) SWIG_fail; | |
24875 | } | |
24876 | { | |
24877 | resultobj = SWIG_From_int((int)(result)); | |
24878 | } | |
24879 | return resultobj; | |
24880 | fail: | |
24881 | return NULL; | |
24882 | } | |
24883 | ||
24884 | ||
24885 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
24886 | PyObject *resultobj; | |
24887 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24888 | wxSize result; | |
24889 | PyObject * obj0 = 0 ; | |
24890 | char *kwnames[] = { | |
24891 | (char *) "self", NULL | |
24892 | }; | |
24893 | ||
24894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
24895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24897 | { | |
24898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24899 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
24900 | ||
24901 | wxPyEndAllowThreads(__tstate); | |
24902 | if (PyErr_Occurred()) SWIG_fail; | |
24903 | } | |
24904 | { | |
24905 | wxSize * resultptr; | |
24906 | resultptr = new wxSize((wxSize &)(result)); | |
24907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24908 | } | |
24909 | return resultobj; | |
24910 | fail: | |
24911 | return NULL; | |
24912 | } | |
24913 | ||
24914 | ||
24915 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
24916 | PyObject *resultobj; | |
24917 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24918 | int arg2 ; | |
24919 | bool arg3 = (bool) false ; | |
24920 | PyObject * obj0 = 0 ; | |
24921 | PyObject * obj1 = 0 ; | |
24922 | PyObject * obj2 = 0 ; | |
24923 | char *kwnames[] = { | |
24924 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
24925 | }; | |
24926 | ||
24927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24930 | { | |
24931 | arg2 = (int)(SWIG_As_int(obj1)); | |
24932 | if (SWIG_arg_fail(2)) SWIG_fail; | |
24933 | } | |
24934 | if (obj2) { | |
24935 | { | |
24936 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
24937 | if (SWIG_arg_fail(3)) SWIG_fail; | |
24938 | } | |
24939 | } | |
24940 | { | |
24941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24942 | (arg1)->SetItemSpacing(arg2,arg3); | |
24943 | ||
24944 | wxPyEndAllowThreads(__tstate); | |
24945 | if (PyErr_Occurred()) SWIG_fail; | |
24946 | } | |
24947 | Py_INCREF(Py_None); resultobj = Py_None; | |
24948 | return resultobj; | |
24949 | fail: | |
24950 | return NULL; | |
24951 | } | |
24952 | ||
24953 | ||
24954 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
24955 | PyObject *resultobj; | |
24956 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24957 | int result; | |
24958 | PyObject * obj0 = 0 ; | |
24959 | char *kwnames[] = { | |
24960 | (char *) "self", NULL | |
24961 | }; | |
24962 | ||
24963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
24964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24966 | { | |
24967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24968 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
24969 | ||
24970 | wxPyEndAllowThreads(__tstate); | |
24971 | if (PyErr_Occurred()) SWIG_fail; | |
24972 | } | |
24973 | { | |
24974 | resultobj = SWIG_From_int((int)(result)); | |
24975 | } | |
24976 | return resultobj; | |
24977 | fail: | |
24978 | return NULL; | |
24979 | } | |
24980 | ||
24981 | ||
24982 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
24983 | PyObject *resultobj; | |
24984 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
24985 | wxColour result; | |
24986 | PyObject * obj0 = 0 ; | |
24987 | char *kwnames[] = { | |
24988 | (char *) "self", NULL | |
24989 | }; | |
24990 | ||
24991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
24992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
24993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24994 | { | |
24995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24996 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
24997 | ||
24998 | wxPyEndAllowThreads(__tstate); | |
24999 | if (PyErr_Occurred()) SWIG_fail; | |
25000 | } | |
25001 | { | |
25002 | wxColour * resultptr; | |
25003 | resultptr = new wxColour((wxColour &)(result)); | |
25004 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25005 | } | |
25006 | return resultobj; | |
25007 | fail: | |
25008 | return NULL; | |
25009 | } | |
25010 | ||
25011 | ||
25012 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
25013 | PyObject *resultobj; | |
25014 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25015 | wxColour *arg2 = 0 ; | |
25016 | wxColour temp2 ; | |
25017 | PyObject * obj0 = 0 ; | |
25018 | PyObject * obj1 = 0 ; | |
25019 | char *kwnames[] = { | |
25020 | (char *) "self",(char *) "col", NULL | |
25021 | }; | |
25022 | ||
25023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
25024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25026 | { | |
25027 | arg2 = &temp2; | |
25028 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25029 | } | |
25030 | { | |
25031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25032 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
25033 | ||
25034 | wxPyEndAllowThreads(__tstate); | |
25035 | if (PyErr_Occurred()) SWIG_fail; | |
25036 | } | |
25037 | Py_INCREF(Py_None); resultobj = Py_None; | |
25038 | return resultobj; | |
25039 | fail: | |
25040 | return NULL; | |
25041 | } | |
25042 | ||
25043 | ||
25044 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25045 | PyObject *resultobj; | |
25046 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25047 | long result; | |
25048 | PyObject * obj0 = 0 ; | |
25049 | char *kwnames[] = { | |
25050 | (char *) "self", NULL | |
25051 | }; | |
25052 | ||
25053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
25054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25056 | { | |
25057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25058 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
25059 | ||
25060 | wxPyEndAllowThreads(__tstate); | |
25061 | if (PyErr_Occurred()) SWIG_fail; | |
25062 | } | |
25063 | { | |
25064 | resultobj = SWIG_From_long((long)(result)); | |
25065 | } | |
25066 | return resultobj; | |
25067 | fail: | |
25068 | return NULL; | |
25069 | } | |
25070 | ||
25071 | ||
25072 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
25073 | PyObject *resultobj; | |
25074 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25075 | long arg2 ; | |
25076 | bool arg3 = (bool) true ; | |
25077 | PyObject * obj0 = 0 ; | |
25078 | PyObject * obj1 = 0 ; | |
25079 | PyObject * obj2 = 0 ; | |
25080 | char *kwnames[] = { | |
25081 | (char *) "self",(char *) "style",(char *) "add", NULL | |
25082 | }; | |
25083 | ||
25084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25087 | { | |
25088 | arg2 = (long)(SWIG_As_long(obj1)); | |
25089 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25090 | } | |
25091 | if (obj2) { | |
25092 | { | |
25093 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
25094 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25095 | } | |
25096 | } | |
25097 | { | |
25098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25099 | (arg1)->SetSingleStyle(arg2,arg3); | |
25100 | ||
25101 | wxPyEndAllowThreads(__tstate); | |
25102 | if (PyErr_Occurred()) SWIG_fail; | |
25103 | } | |
25104 | Py_INCREF(Py_None); resultobj = Py_None; | |
25105 | return resultobj; | |
25106 | fail: | |
25107 | return NULL; | |
25108 | } | |
25109 | ||
25110 | ||
25111 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { | |
25112 | PyObject *resultobj; | |
25113 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25114 | long arg2 ; | |
25115 | PyObject * obj0 = 0 ; | |
25116 | PyObject * obj1 = 0 ; | |
25117 | char *kwnames[] = { | |
25118 | (char *) "self",(char *) "style", NULL | |
25119 | }; | |
25120 | ||
25121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
25122 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25123 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25124 | { | |
25125 | arg2 = (long)(SWIG_As_long(obj1)); | |
25126 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25127 | } | |
25128 | { | |
25129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25130 | (arg1)->SetWindowStyleFlag(arg2); | |
25131 | ||
25132 | wxPyEndAllowThreads(__tstate); | |
25133 | if (PyErr_Occurred()) SWIG_fail; | |
25134 | } | |
25135 | Py_INCREF(Py_None); resultobj = Py_None; | |
25136 | return resultobj; | |
25137 | fail: | |
25138 | return NULL; | |
25139 | } | |
25140 | ||
25141 | ||
25142 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25143 | PyObject *resultobj; | |
25144 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25145 | long arg2 ; | |
25146 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
25147 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
25148 | long result; | |
25149 | PyObject * obj0 = 0 ; | |
25150 | PyObject * obj1 = 0 ; | |
25151 | PyObject * obj2 = 0 ; | |
25152 | PyObject * obj3 = 0 ; | |
25153 | char *kwnames[] = { | |
25154 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
25155 | }; | |
25156 | ||
25157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25158 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25159 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25160 | { | |
25161 | arg2 = (long)(SWIG_As_long(obj1)); | |
25162 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25163 | } | |
25164 | if (obj2) { | |
25165 | { | |
25166 | arg3 = (int)(SWIG_As_int(obj2)); | |
25167 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25168 | } | |
25169 | } | |
25170 | if (obj3) { | |
25171 | { | |
25172 | arg4 = (int)(SWIG_As_int(obj3)); | |
25173 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25174 | } | |
25175 | } | |
25176 | { | |
25177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25178 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
25179 | ||
25180 | wxPyEndAllowThreads(__tstate); | |
25181 | if (PyErr_Occurred()) SWIG_fail; | |
25182 | } | |
25183 | { | |
25184 | resultobj = SWIG_From_long((long)(result)); | |
25185 | } | |
25186 | return resultobj; | |
25187 | fail: | |
25188 | return NULL; | |
25189 | } | |
25190 | ||
25191 | ||
25192 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
25193 | PyObject *resultobj; | |
25194 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25195 | int arg2 ; | |
25196 | wxImageList *result; | |
25197 | PyObject * obj0 = 0 ; | |
25198 | PyObject * obj1 = 0 ; | |
25199 | char *kwnames[] = { | |
25200 | (char *) "self",(char *) "which", NULL | |
25201 | }; | |
25202 | ||
25203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
25204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25206 | { | |
25207 | arg2 = (int)(SWIG_As_int(obj1)); | |
25208 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25209 | } | |
25210 | { | |
25211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25212 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
25213 | ||
25214 | wxPyEndAllowThreads(__tstate); | |
25215 | if (PyErr_Occurred()) SWIG_fail; | |
25216 | } | |
25217 | { | |
25218 | resultobj = wxPyMake_wxObject(result, 0); | |
25219 | } | |
25220 | return resultobj; | |
25221 | fail: | |
25222 | return NULL; | |
25223 | } | |
25224 | ||
25225 | ||
25226 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
25227 | PyObject *resultobj; | |
25228 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25229 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25230 | int arg3 ; | |
25231 | PyObject * obj0 = 0 ; | |
25232 | PyObject * obj1 = 0 ; | |
25233 | PyObject * obj2 = 0 ; | |
25234 | char *kwnames[] = { | |
25235 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25236 | }; | |
25237 | ||
25238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25241 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
25242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25243 | { | |
25244 | arg3 = (int)(SWIG_As_int(obj2)); | |
25245 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25246 | } | |
25247 | { | |
25248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25249 | (arg1)->SetImageList(arg2,arg3); | |
25250 | ||
25251 | wxPyEndAllowThreads(__tstate); | |
25252 | if (PyErr_Occurred()) SWIG_fail; | |
25253 | } | |
25254 | Py_INCREF(Py_None); resultobj = Py_None; | |
25255 | return resultobj; | |
25256 | fail: | |
25257 | return NULL; | |
25258 | } | |
25259 | ||
25260 | ||
25261 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
25262 | PyObject *resultobj; | |
25263 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25264 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25265 | int arg3 ; | |
25266 | PyObject * obj0 = 0 ; | |
25267 | PyObject * obj1 = 0 ; | |
25268 | PyObject * obj2 = 0 ; | |
25269 | char *kwnames[] = { | |
25270 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
25271 | }; | |
25272 | ||
25273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25276 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
25277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25278 | { | |
25279 | arg3 = (int)(SWIG_As_int(obj2)); | |
25280 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25281 | } | |
25282 | { | |
25283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25284 | (arg1)->AssignImageList(arg2,arg3); | |
25285 | ||
25286 | wxPyEndAllowThreads(__tstate); | |
25287 | if (PyErr_Occurred()) SWIG_fail; | |
25288 | } | |
25289 | Py_INCREF(Py_None); resultobj = Py_None; | |
25290 | return resultobj; | |
25291 | fail: | |
25292 | return NULL; | |
25293 | } | |
25294 | ||
25295 | ||
25296 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { | |
25297 | PyObject *resultobj; | |
25298 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25299 | bool result; | |
25300 | PyObject * obj0 = 0 ; | |
25301 | char *kwnames[] = { | |
25302 | (char *) "self", NULL | |
25303 | }; | |
25304 | ||
25305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
25306 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25307 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25308 | { | |
25309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25310 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
25311 | ||
25312 | wxPyEndAllowThreads(__tstate); | |
25313 | if (PyErr_Occurred()) SWIG_fail; | |
25314 | } | |
25315 | { | |
25316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25317 | } | |
25318 | return resultobj; | |
25319 | fail: | |
25320 | return NULL; | |
25321 | } | |
25322 | ||
25323 | ||
25324 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { | |
25325 | PyObject *resultobj; | |
25326 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25327 | bool result; | |
25328 | PyObject * obj0 = 0 ; | |
25329 | char *kwnames[] = { | |
25330 | (char *) "self", NULL | |
25331 | }; | |
25332 | ||
25333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
25334 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25335 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25336 | { | |
25337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25338 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
25339 | ||
25340 | wxPyEndAllowThreads(__tstate); | |
25341 | if (PyErr_Occurred()) SWIG_fail; | |
25342 | } | |
25343 | { | |
25344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25345 | } | |
25346 | return resultobj; | |
25347 | fail: | |
25348 | return NULL; | |
25349 | } | |
25350 | ||
25351 | ||
25352 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25353 | PyObject *resultobj; | |
25354 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25355 | long arg2 ; | |
25356 | PyObject * obj0 = 0 ; | |
25357 | PyObject * obj1 = 0 ; | |
25358 | char *kwnames[] = { | |
25359 | (char *) "self",(char *) "item", NULL | |
25360 | }; | |
25361 | ||
25362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
25363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25365 | { | |
25366 | arg2 = (long)(SWIG_As_long(obj1)); | |
25367 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25368 | } | |
25369 | { | |
25370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25371 | (arg1)->RefreshItem(arg2); | |
25372 | ||
25373 | wxPyEndAllowThreads(__tstate); | |
25374 | if (PyErr_Occurred()) SWIG_fail; | |
25375 | } | |
25376 | Py_INCREF(Py_None); resultobj = Py_None; | |
25377 | return resultobj; | |
25378 | fail: | |
25379 | return NULL; | |
25380 | } | |
25381 | ||
25382 | ||
25383 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { | |
25384 | PyObject *resultobj; | |
25385 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25386 | long arg2 ; | |
25387 | long arg3 ; | |
25388 | PyObject * obj0 = 0 ; | |
25389 | PyObject * obj1 = 0 ; | |
25390 | PyObject * obj2 = 0 ; | |
25391 | char *kwnames[] = { | |
25392 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
25393 | }; | |
25394 | ||
25395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25398 | { | |
25399 | arg2 = (long)(SWIG_As_long(obj1)); | |
25400 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25401 | } | |
25402 | { | |
25403 | arg3 = (long)(SWIG_As_long(obj2)); | |
25404 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25405 | } | |
25406 | { | |
25407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25408 | (arg1)->RefreshItems(arg2,arg3); | |
25409 | ||
25410 | wxPyEndAllowThreads(__tstate); | |
25411 | if (PyErr_Occurred()) SWIG_fail; | |
25412 | } | |
25413 | Py_INCREF(Py_None); resultobj = Py_None; | |
25414 | return resultobj; | |
25415 | fail: | |
25416 | return NULL; | |
25417 | } | |
25418 | ||
25419 | ||
25420 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { | |
25421 | PyObject *resultobj; | |
25422 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25423 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
25424 | bool result; | |
25425 | PyObject * obj0 = 0 ; | |
25426 | PyObject * obj1 = 0 ; | |
25427 | char *kwnames[] = { | |
25428 | (char *) "self",(char *) "flag", NULL | |
25429 | }; | |
25430 | ||
25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
25432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25434 | if (obj1) { | |
25435 | { | |
25436 | arg2 = (int)(SWIG_As_int(obj1)); | |
25437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25438 | } | |
25439 | } | |
25440 | { | |
25441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25442 | result = (bool)(arg1)->Arrange(arg2); | |
25443 | ||
25444 | wxPyEndAllowThreads(__tstate); | |
25445 | if (PyErr_Occurred()) SWIG_fail; | |
25446 | } | |
25447 | { | |
25448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25449 | } | |
25450 | return resultobj; | |
25451 | fail: | |
25452 | return NULL; | |
25453 | } | |
25454 | ||
25455 | ||
25456 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25457 | PyObject *resultobj; | |
25458 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25459 | long arg2 ; | |
25460 | bool result; | |
25461 | PyObject * obj0 = 0 ; | |
25462 | PyObject * obj1 = 0 ; | |
25463 | char *kwnames[] = { | |
25464 | (char *) "self",(char *) "item", NULL | |
25465 | }; | |
25466 | ||
25467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
25468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25470 | { | |
25471 | arg2 = (long)(SWIG_As_long(obj1)); | |
25472 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25473 | } | |
25474 | { | |
25475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25476 | result = (bool)(arg1)->DeleteItem(arg2); | |
25477 | ||
25478 | wxPyEndAllowThreads(__tstate); | |
25479 | if (PyErr_Occurred()) SWIG_fail; | |
25480 | } | |
25481 | { | |
25482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25483 | } | |
25484 | return resultobj; | |
25485 | fail: | |
25486 | return NULL; | |
25487 | } | |
25488 | ||
25489 | ||
25490 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { | |
25491 | PyObject *resultobj; | |
25492 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25493 | bool result; | |
25494 | PyObject * obj0 = 0 ; | |
25495 | char *kwnames[] = { | |
25496 | (char *) "self", NULL | |
25497 | }; | |
25498 | ||
25499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
25500 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25501 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25502 | { | |
25503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25504 | result = (bool)(arg1)->DeleteAllItems(); | |
25505 | ||
25506 | wxPyEndAllowThreads(__tstate); | |
25507 | if (PyErr_Occurred()) SWIG_fail; | |
25508 | } | |
25509 | { | |
25510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25511 | } | |
25512 | return resultobj; | |
25513 | fail: | |
25514 | return NULL; | |
25515 | } | |
25516 | ||
25517 | ||
25518 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { | |
25519 | PyObject *resultobj; | |
25520 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25521 | int arg2 ; | |
25522 | bool result; | |
25523 | PyObject * obj0 = 0 ; | |
25524 | PyObject * obj1 = 0 ; | |
25525 | char *kwnames[] = { | |
25526 | (char *) "self",(char *) "col", NULL | |
25527 | }; | |
25528 | ||
25529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
25530 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25531 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25532 | { | |
25533 | arg2 = (int)(SWIG_As_int(obj1)); | |
25534 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25535 | } | |
25536 | { | |
25537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25538 | result = (bool)(arg1)->DeleteColumn(arg2); | |
25539 | ||
25540 | wxPyEndAllowThreads(__tstate); | |
25541 | if (PyErr_Occurred()) SWIG_fail; | |
25542 | } | |
25543 | { | |
25544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25545 | } | |
25546 | return resultobj; | |
25547 | fail: | |
25548 | return NULL; | |
25549 | } | |
25550 | ||
25551 | ||
25552 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { | |
25553 | PyObject *resultobj; | |
25554 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25555 | bool result; | |
25556 | PyObject * obj0 = 0 ; | |
25557 | char *kwnames[] = { | |
25558 | (char *) "self", NULL | |
25559 | }; | |
25560 | ||
25561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
25562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25564 | { | |
25565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25566 | result = (bool)(arg1)->DeleteAllColumns(); | |
25567 | ||
25568 | wxPyEndAllowThreads(__tstate); | |
25569 | if (PyErr_Occurred()) SWIG_fail; | |
25570 | } | |
25571 | { | |
25572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25573 | } | |
25574 | return resultobj; | |
25575 | fail: | |
25576 | return NULL; | |
25577 | } | |
25578 | ||
25579 | ||
25580 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
25581 | PyObject *resultobj; | |
25582 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25583 | PyObject * obj0 = 0 ; | |
25584 | char *kwnames[] = { | |
25585 | (char *) "self", NULL | |
25586 | }; | |
25587 | ||
25588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
25589 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25590 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25591 | { | |
25592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25593 | (arg1)->ClearAll(); | |
25594 | ||
25595 | wxPyEndAllowThreads(__tstate); | |
25596 | if (PyErr_Occurred()) SWIG_fail; | |
25597 | } | |
25598 | Py_INCREF(Py_None); resultobj = Py_None; | |
25599 | return resultobj; | |
25600 | fail: | |
25601 | return NULL; | |
25602 | } | |
25603 | ||
25604 | ||
25605 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
25606 | PyObject *resultobj; | |
25607 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25608 | long arg2 ; | |
25609 | PyObject * obj0 = 0 ; | |
25610 | PyObject * obj1 = 0 ; | |
25611 | char *kwnames[] = { | |
25612 | (char *) "self",(char *) "item", NULL | |
25613 | }; | |
25614 | ||
25615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
25616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25618 | { | |
25619 | arg2 = (long)(SWIG_As_long(obj1)); | |
25620 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25621 | } | |
25622 | { | |
25623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25624 | (arg1)->EditLabel(arg2); | |
25625 | ||
25626 | wxPyEndAllowThreads(__tstate); | |
25627 | if (PyErr_Occurred()) SWIG_fail; | |
25628 | } | |
25629 | Py_INCREF(Py_None); resultobj = Py_None; | |
25630 | return resultobj; | |
25631 | fail: | |
25632 | return NULL; | |
25633 | } | |
25634 | ||
25635 | ||
25636 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
25637 | PyObject *resultobj; | |
25638 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25639 | long arg2 ; | |
25640 | bool result; | |
25641 | PyObject * obj0 = 0 ; | |
25642 | PyObject * obj1 = 0 ; | |
25643 | char *kwnames[] = { | |
25644 | (char *) "self",(char *) "item", NULL | |
25645 | }; | |
25646 | ||
25647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
25648 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25649 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25650 | { | |
25651 | arg2 = (long)(SWIG_As_long(obj1)); | |
25652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25653 | } | |
25654 | { | |
25655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25656 | result = (bool)(arg1)->EnsureVisible(arg2); | |
25657 | ||
25658 | wxPyEndAllowThreads(__tstate); | |
25659 | if (PyErr_Occurred()) SWIG_fail; | |
25660 | } | |
25661 | { | |
25662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25663 | } | |
25664 | return resultobj; | |
25665 | fail: | |
25666 | return NULL; | |
25667 | } | |
25668 | ||
25669 | ||
25670 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25671 | PyObject *resultobj; | |
25672 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25673 | long arg2 ; | |
25674 | wxString *arg3 = 0 ; | |
25675 | bool arg4 = (bool) false ; | |
25676 | long result; | |
25677 | bool temp3 = false ; | |
25678 | PyObject * obj0 = 0 ; | |
25679 | PyObject * obj1 = 0 ; | |
25680 | PyObject * obj2 = 0 ; | |
25681 | PyObject * obj3 = 0 ; | |
25682 | char *kwnames[] = { | |
25683 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
25684 | }; | |
25685 | ||
25686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25687 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25688 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25689 | { | |
25690 | arg2 = (long)(SWIG_As_long(obj1)); | |
25691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25692 | } | |
25693 | { | |
25694 | arg3 = wxString_in_helper(obj2); | |
25695 | if (arg3 == NULL) SWIG_fail; | |
25696 | temp3 = true; | |
25697 | } | |
25698 | if (obj3) { | |
25699 | { | |
25700 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
25701 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25702 | } | |
25703 | } | |
25704 | { | |
25705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25706 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
25707 | ||
25708 | wxPyEndAllowThreads(__tstate); | |
25709 | if (PyErr_Occurred()) SWIG_fail; | |
25710 | } | |
25711 | { | |
25712 | resultobj = SWIG_From_long((long)(result)); | |
25713 | } | |
25714 | { | |
25715 | if (temp3) | |
25716 | delete arg3; | |
25717 | } | |
25718 | return resultobj; | |
25719 | fail: | |
25720 | { | |
25721 | if (temp3) | |
25722 | delete arg3; | |
25723 | } | |
25724 | return NULL; | |
25725 | } | |
25726 | ||
25727 | ||
25728 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { | |
25729 | PyObject *resultobj; | |
25730 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25731 | long arg2 ; | |
25732 | long arg3 ; | |
25733 | long result; | |
25734 | PyObject * obj0 = 0 ; | |
25735 | PyObject * obj1 = 0 ; | |
25736 | PyObject * obj2 = 0 ; | |
25737 | char *kwnames[] = { | |
25738 | (char *) "self",(char *) "start",(char *) "data", NULL | |
25739 | }; | |
25740 | ||
25741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25744 | { | |
25745 | arg2 = (long)(SWIG_As_long(obj1)); | |
25746 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25747 | } | |
25748 | { | |
25749 | arg3 = (long)(SWIG_As_long(obj2)); | |
25750 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25751 | } | |
25752 | { | |
25753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25754 | result = (long)(arg1)->FindItem(arg2,arg3); | |
25755 | ||
25756 | wxPyEndAllowThreads(__tstate); | |
25757 | if (PyErr_Occurred()) SWIG_fail; | |
25758 | } | |
25759 | { | |
25760 | resultobj = SWIG_From_long((long)(result)); | |
25761 | } | |
25762 | return resultobj; | |
25763 | fail: | |
25764 | return NULL; | |
25765 | } | |
25766 | ||
25767 | ||
25768 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { | |
25769 | PyObject *resultobj; | |
25770 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25771 | long arg2 ; | |
25772 | wxPoint *arg3 = 0 ; | |
25773 | int arg4 ; | |
25774 | long result; | |
25775 | wxPoint temp3 ; | |
25776 | PyObject * obj0 = 0 ; | |
25777 | PyObject * obj1 = 0 ; | |
25778 | PyObject * obj2 = 0 ; | |
25779 | PyObject * obj3 = 0 ; | |
25780 | char *kwnames[] = { | |
25781 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
25782 | }; | |
25783 | ||
25784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25787 | { | |
25788 | arg2 = (long)(SWIG_As_long(obj1)); | |
25789 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25790 | } | |
25791 | { | |
25792 | arg3 = &temp3; | |
25793 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25794 | } | |
25795 | { | |
25796 | arg4 = (int)(SWIG_As_int(obj3)); | |
25797 | if (SWIG_arg_fail(4)) SWIG_fail; | |
25798 | } | |
25799 | { | |
25800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25801 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
25802 | ||
25803 | wxPyEndAllowThreads(__tstate); | |
25804 | if (PyErr_Occurred()) SWIG_fail; | |
25805 | } | |
25806 | { | |
25807 | resultobj = SWIG_From_long((long)(result)); | |
25808 | } | |
25809 | return resultobj; | |
25810 | fail: | |
25811 | return NULL; | |
25812 | } | |
25813 | ||
25814 | ||
25815 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
25816 | PyObject *resultobj; | |
25817 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25818 | wxPoint *arg2 = 0 ; | |
25819 | int *arg3 = 0 ; | |
25820 | long result; | |
25821 | wxPoint temp2 ; | |
25822 | int temp3 ; | |
25823 | int res3 = 0 ; | |
25824 | PyObject * obj0 = 0 ; | |
25825 | PyObject * obj1 = 0 ; | |
25826 | char *kwnames[] = { | |
25827 | (char *) "self",(char *) "point", NULL | |
25828 | }; | |
25829 | ||
25830 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
25831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
25832 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25833 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25834 | { | |
25835 | arg2 = &temp2; | |
25836 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25837 | } | |
25838 | { | |
25839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25840 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
25841 | ||
25842 | wxPyEndAllowThreads(__tstate); | |
25843 | if (PyErr_Occurred()) SWIG_fail; | |
25844 | } | |
25845 | { | |
25846 | resultobj = SWIG_From_long((long)(result)); | |
25847 | } | |
25848 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
25849 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
25850 | return resultobj; | |
25851 | fail: | |
25852 | return NULL; | |
25853 | } | |
25854 | ||
25855 | ||
25856 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25857 | PyObject *resultobj; | |
25858 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25859 | wxListItem *arg2 = 0 ; | |
25860 | long result; | |
25861 | PyObject * obj0 = 0 ; | |
25862 | PyObject * obj1 = 0 ; | |
25863 | char *kwnames[] = { | |
25864 | (char *) "self",(char *) "info", NULL | |
25865 | }; | |
25866 | ||
25867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
25868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25870 | { | |
25871 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25872 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25873 | if (arg2 == NULL) { | |
25874 | SWIG_null_ref("wxListItem"); | |
25875 | } | |
25876 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25877 | } | |
25878 | { | |
25879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25880 | result = (long)(arg1)->InsertItem(*arg2); | |
25881 | ||
25882 | wxPyEndAllowThreads(__tstate); | |
25883 | if (PyErr_Occurred()) SWIG_fail; | |
25884 | } | |
25885 | { | |
25886 | resultobj = SWIG_From_long((long)(result)); | |
25887 | } | |
25888 | return resultobj; | |
25889 | fail: | |
25890 | return NULL; | |
25891 | } | |
25892 | ||
25893 | ||
25894 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25895 | PyObject *resultobj; | |
25896 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25897 | long arg2 ; | |
25898 | wxString *arg3 = 0 ; | |
25899 | long result; | |
25900 | bool temp3 = false ; | |
25901 | PyObject * obj0 = 0 ; | |
25902 | PyObject * obj1 = 0 ; | |
25903 | PyObject * obj2 = 0 ; | |
25904 | char *kwnames[] = { | |
25905 | (char *) "self",(char *) "index",(char *) "label", NULL | |
25906 | }; | |
25907 | ||
25908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25909 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25910 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25911 | { | |
25912 | arg2 = (long)(SWIG_As_long(obj1)); | |
25913 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25914 | } | |
25915 | { | |
25916 | arg3 = wxString_in_helper(obj2); | |
25917 | if (arg3 == NULL) SWIG_fail; | |
25918 | temp3 = true; | |
25919 | } | |
25920 | { | |
25921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25922 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
25923 | ||
25924 | wxPyEndAllowThreads(__tstate); | |
25925 | if (PyErr_Occurred()) SWIG_fail; | |
25926 | } | |
25927 | { | |
25928 | resultobj = SWIG_From_long((long)(result)); | |
25929 | } | |
25930 | { | |
25931 | if (temp3) | |
25932 | delete arg3; | |
25933 | } | |
25934 | return resultobj; | |
25935 | fail: | |
25936 | { | |
25937 | if (temp3) | |
25938 | delete arg3; | |
25939 | } | |
25940 | return NULL; | |
25941 | } | |
25942 | ||
25943 | ||
25944 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25945 | PyObject *resultobj; | |
25946 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25947 | long arg2 ; | |
25948 | int arg3 ; | |
25949 | long result; | |
25950 | PyObject * obj0 = 0 ; | |
25951 | PyObject * obj1 = 0 ; | |
25952 | PyObject * obj2 = 0 ; | |
25953 | char *kwnames[] = { | |
25954 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
25955 | }; | |
25956 | ||
25957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25958 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
25959 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25960 | { | |
25961 | arg2 = (long)(SWIG_As_long(obj1)); | |
25962 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25963 | } | |
25964 | { | |
25965 | arg3 = (int)(SWIG_As_int(obj2)); | |
25966 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25967 | } | |
25968 | { | |
25969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25970 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
25971 | ||
25972 | wxPyEndAllowThreads(__tstate); | |
25973 | if (PyErr_Occurred()) SWIG_fail; | |
25974 | } | |
25975 | { | |
25976 | resultobj = SWIG_From_long((long)(result)); | |
25977 | } | |
25978 | return resultobj; | |
25979 | fail: | |
25980 | return NULL; | |
25981 | } | |
25982 | ||
25983 | ||
25984 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
25985 | PyObject *resultobj; | |
25986 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
25987 | long arg2 ; | |
25988 | wxString *arg3 = 0 ; | |
25989 | int arg4 ; | |
25990 | long result; | |
25991 | bool temp3 = false ; | |
25992 | PyObject * obj0 = 0 ; | |
25993 | PyObject * obj1 = 0 ; | |
25994 | PyObject * obj2 = 0 ; | |
25995 | PyObject * obj3 = 0 ; | |
25996 | char *kwnames[] = { | |
25997 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
25998 | }; | |
25999 | ||
26000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26001 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26002 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26003 | { | |
26004 | arg2 = (long)(SWIG_As_long(obj1)); | |
26005 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26006 | } | |
26007 | { | |
26008 | arg3 = wxString_in_helper(obj2); | |
26009 | if (arg3 == NULL) SWIG_fail; | |
26010 | temp3 = true; | |
26011 | } | |
26012 | { | |
26013 | arg4 = (int)(SWIG_As_int(obj3)); | |
26014 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26015 | } | |
26016 | { | |
26017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26018 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
26019 | ||
26020 | wxPyEndAllowThreads(__tstate); | |
26021 | if (PyErr_Occurred()) SWIG_fail; | |
26022 | } | |
26023 | { | |
26024 | resultobj = SWIG_From_long((long)(result)); | |
26025 | } | |
26026 | { | |
26027 | if (temp3) | |
26028 | delete arg3; | |
26029 | } | |
26030 | return resultobj; | |
26031 | fail: | |
26032 | { | |
26033 | if (temp3) | |
26034 | delete arg3; | |
26035 | } | |
26036 | return NULL; | |
26037 | } | |
26038 | ||
26039 | ||
26040 | static PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
26041 | PyObject *resultobj; | |
26042 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26043 | long arg2 ; | |
26044 | wxListItem *arg3 = 0 ; | |
26045 | long result; | |
26046 | PyObject * obj0 = 0 ; | |
26047 | PyObject * obj1 = 0 ; | |
26048 | PyObject * obj2 = 0 ; | |
26049 | char *kwnames[] = { | |
26050 | (char *) "self",(char *) "col",(char *) "info", NULL | |
26051 | }; | |
26052 | ||
26053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26056 | { | |
26057 | arg2 = (long)(SWIG_As_long(obj1)); | |
26058 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26059 | } | |
26060 | { | |
26061 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
26062 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26063 | if (arg3 == NULL) { | |
26064 | SWIG_null_ref("wxListItem"); | |
26065 | } | |
26066 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26067 | } | |
26068 | { | |
26069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26070 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
26071 | ||
26072 | wxPyEndAllowThreads(__tstate); | |
26073 | if (PyErr_Occurred()) SWIG_fail; | |
26074 | } | |
26075 | { | |
26076 | resultobj = SWIG_From_long((long)(result)); | |
26077 | } | |
26078 | return resultobj; | |
26079 | fail: | |
26080 | return NULL; | |
26081 | } | |
26082 | ||
26083 | ||
26084 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { | |
26085 | PyObject *resultobj; | |
26086 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26087 | long arg2 ; | |
26088 | wxString *arg3 = 0 ; | |
26089 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
26090 | int arg5 = (int) -1 ; | |
26091 | long result; | |
26092 | bool temp3 = false ; | |
26093 | PyObject * obj0 = 0 ; | |
26094 | PyObject * obj1 = 0 ; | |
26095 | PyObject * obj2 = 0 ; | |
26096 | PyObject * obj3 = 0 ; | |
26097 | PyObject * obj4 = 0 ; | |
26098 | char *kwnames[] = { | |
26099 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
26100 | }; | |
26101 | ||
26102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26105 | { | |
26106 | arg2 = (long)(SWIG_As_long(obj1)); | |
26107 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26108 | } | |
26109 | { | |
26110 | arg3 = wxString_in_helper(obj2); | |
26111 | if (arg3 == NULL) SWIG_fail; | |
26112 | temp3 = true; | |
26113 | } | |
26114 | if (obj3) { | |
26115 | { | |
26116 | arg4 = (int)(SWIG_As_int(obj3)); | |
26117 | if (SWIG_arg_fail(4)) SWIG_fail; | |
26118 | } | |
26119 | } | |
26120 | if (obj4) { | |
26121 | { | |
26122 | arg5 = (int)(SWIG_As_int(obj4)); | |
26123 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26124 | } | |
26125 | } | |
26126 | { | |
26127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26128 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
26129 | ||
26130 | wxPyEndAllowThreads(__tstate); | |
26131 | if (PyErr_Occurred()) SWIG_fail; | |
26132 | } | |
26133 | { | |
26134 | resultobj = SWIG_From_long((long)(result)); | |
26135 | } | |
26136 | { | |
26137 | if (temp3) | |
26138 | delete arg3; | |
26139 | } | |
26140 | return resultobj; | |
26141 | fail: | |
26142 | { | |
26143 | if (temp3) | |
26144 | delete arg3; | |
26145 | } | |
26146 | return NULL; | |
26147 | } | |
26148 | ||
26149 | ||
26150 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
26151 | PyObject *resultobj; | |
26152 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26153 | long arg2 ; | |
26154 | PyObject * obj0 = 0 ; | |
26155 | PyObject * obj1 = 0 ; | |
26156 | char *kwnames[] = { | |
26157 | (char *) "self",(char *) "count", NULL | |
26158 | }; | |
26159 | ||
26160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
26161 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26162 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26163 | { | |
26164 | arg2 = (long)(SWIG_As_long(obj1)); | |
26165 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26166 | } | |
26167 | { | |
26168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26169 | (arg1)->SetItemCount(arg2); | |
26170 | ||
26171 | wxPyEndAllowThreads(__tstate); | |
26172 | if (PyErr_Occurred()) SWIG_fail; | |
26173 | } | |
26174 | Py_INCREF(Py_None); resultobj = Py_None; | |
26175 | return resultobj; | |
26176 | fail: | |
26177 | return NULL; | |
26178 | } | |
26179 | ||
26180 | ||
26181 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { | |
26182 | PyObject *resultobj; | |
26183 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26184 | int arg2 ; | |
26185 | int arg3 ; | |
26186 | bool result; | |
26187 | PyObject * obj0 = 0 ; | |
26188 | PyObject * obj1 = 0 ; | |
26189 | PyObject * obj2 = 0 ; | |
26190 | char *kwnames[] = { | |
26191 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26192 | }; | |
26193 | ||
26194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26195 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26196 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26197 | { | |
26198 | arg2 = (int)(SWIG_As_int(obj1)); | |
26199 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26200 | } | |
26201 | { | |
26202 | arg3 = (int)(SWIG_As_int(obj2)); | |
26203 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26204 | } | |
26205 | { | |
26206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26207 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
26208 | ||
26209 | wxPyEndAllowThreads(__tstate); | |
26210 | if (PyErr_Occurred()) SWIG_fail; | |
26211 | } | |
26212 | { | |
26213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26214 | } | |
26215 | return resultobj; | |
26216 | fail: | |
26217 | return NULL; | |
26218 | } | |
26219 | ||
26220 | ||
26221 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
26222 | PyObject *resultobj; | |
26223 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26224 | long arg2 ; | |
26225 | wxColour *arg3 = 0 ; | |
26226 | wxColour temp3 ; | |
26227 | PyObject * obj0 = 0 ; | |
26228 | PyObject * obj1 = 0 ; | |
26229 | PyObject * obj2 = 0 ; | |
26230 | char *kwnames[] = { | |
26231 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26232 | }; | |
26233 | ||
26234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26237 | { | |
26238 | arg2 = (long)(SWIG_As_long(obj1)); | |
26239 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26240 | } | |
26241 | { | |
26242 | arg3 = &temp3; | |
26243 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26244 | } | |
26245 | { | |
26246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26247 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
26248 | ||
26249 | wxPyEndAllowThreads(__tstate); | |
26250 | if (PyErr_Occurred()) SWIG_fail; | |
26251 | } | |
26252 | Py_INCREF(Py_None); resultobj = Py_None; | |
26253 | return resultobj; | |
26254 | fail: | |
26255 | return NULL; | |
26256 | } | |
26257 | ||
26258 | ||
26259 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
26260 | PyObject *resultobj; | |
26261 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26262 | long arg2 ; | |
26263 | wxColour result; | |
26264 | PyObject * obj0 = 0 ; | |
26265 | PyObject * obj1 = 0 ; | |
26266 | char *kwnames[] = { | |
26267 | (char *) "self",(char *) "item", NULL | |
26268 | }; | |
26269 | ||
26270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
26271 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26272 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26273 | { | |
26274 | arg2 = (long)(SWIG_As_long(obj1)); | |
26275 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26276 | } | |
26277 | { | |
26278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26279 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
26280 | ||
26281 | wxPyEndAllowThreads(__tstate); | |
26282 | if (PyErr_Occurred()) SWIG_fail; | |
26283 | } | |
26284 | { | |
26285 | wxColour * resultptr; | |
26286 | resultptr = new wxColour((wxColour &)(result)); | |
26287 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26288 | } | |
26289 | return resultobj; | |
26290 | fail: | |
26291 | return NULL; | |
26292 | } | |
26293 | ||
26294 | ||
26295 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
26296 | PyObject *resultobj; | |
26297 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26298 | long arg2 ; | |
26299 | wxColour *arg3 = 0 ; | |
26300 | wxColour temp3 ; | |
26301 | PyObject * obj0 = 0 ; | |
26302 | PyObject * obj1 = 0 ; | |
26303 | PyObject * obj2 = 0 ; | |
26304 | char *kwnames[] = { | |
26305 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26306 | }; | |
26307 | ||
26308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26311 | { | |
26312 | arg2 = (long)(SWIG_As_long(obj1)); | |
26313 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26314 | } | |
26315 | { | |
26316 | arg3 = &temp3; | |
26317 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26318 | } | |
26319 | { | |
26320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26321 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
26322 | ||
26323 | wxPyEndAllowThreads(__tstate); | |
26324 | if (PyErr_Occurred()) SWIG_fail; | |
26325 | } | |
26326 | Py_INCREF(Py_None); resultobj = Py_None; | |
26327 | return resultobj; | |
26328 | fail: | |
26329 | return NULL; | |
26330 | } | |
26331 | ||
26332 | ||
26333 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
26334 | PyObject *resultobj; | |
26335 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26336 | long arg2 ; | |
26337 | wxColour result; | |
26338 | PyObject * obj0 = 0 ; | |
26339 | PyObject * obj1 = 0 ; | |
26340 | char *kwnames[] = { | |
26341 | (char *) "self",(char *) "item", NULL | |
26342 | }; | |
26343 | ||
26344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26345 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26346 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26347 | { | |
26348 | arg2 = (long)(SWIG_As_long(obj1)); | |
26349 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26350 | } | |
26351 | { | |
26352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26353 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
26354 | ||
26355 | wxPyEndAllowThreads(__tstate); | |
26356 | if (PyErr_Occurred()) SWIG_fail; | |
26357 | } | |
26358 | { | |
26359 | wxColour * resultptr; | |
26360 | resultptr = new wxColour((wxColour &)(result)); | |
26361 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26362 | } | |
26363 | return resultobj; | |
26364 | fail: | |
26365 | return NULL; | |
26366 | } | |
26367 | ||
26368 | ||
26369 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { | |
26370 | PyObject *resultobj; | |
26371 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26372 | PyObject *arg2 = (PyObject *) 0 ; | |
26373 | bool result; | |
26374 | PyObject * obj0 = 0 ; | |
26375 | PyObject * obj1 = 0 ; | |
26376 | char *kwnames[] = { | |
26377 | (char *) "self",(char *) "func", NULL | |
26378 | }; | |
26379 | ||
26380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
26381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26383 | arg2 = obj1; | |
26384 | { | |
26385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26386 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
26387 | ||
26388 | wxPyEndAllowThreads(__tstate); | |
26389 | if (PyErr_Occurred()) SWIG_fail; | |
26390 | } | |
26391 | { | |
26392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26393 | } | |
26394 | return resultobj; | |
26395 | fail: | |
26396 | return NULL; | |
26397 | } | |
26398 | ||
26399 | ||
26400 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
26401 | PyObject *resultobj; | |
26402 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
26403 | wxWindow *result; | |
26404 | PyObject * obj0 = 0 ; | |
26405 | char *kwnames[] = { | |
26406 | (char *) "self", NULL | |
26407 | }; | |
26408 | ||
26409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
26410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
26411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26412 | { | |
26413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26414 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
26415 | ||
26416 | wxPyEndAllowThreads(__tstate); | |
26417 | if (PyErr_Occurred()) SWIG_fail; | |
26418 | } | |
26419 | { | |
26420 | resultobj = wxPyMake_wxObject(result, 0); | |
26421 | } | |
26422 | return resultobj; | |
26423 | fail: | |
26424 | return NULL; | |
26425 | } | |
26426 | ||
26427 | ||
26428 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
26429 | PyObject *resultobj; | |
26430 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
26431 | wxVisualAttributes result; | |
26432 | PyObject * obj0 = 0 ; | |
26433 | char *kwnames[] = { | |
26434 | (char *) "variant", NULL | |
26435 | }; | |
26436 | ||
26437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26438 | if (obj0) { | |
26439 | { | |
26440 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
26441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26442 | } | |
26443 | } | |
26444 | { | |
26445 | if (!wxPyCheckForApp()) SWIG_fail; | |
26446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26447 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26448 | ||
26449 | wxPyEndAllowThreads(__tstate); | |
26450 | if (PyErr_Occurred()) SWIG_fail; | |
26451 | } | |
26452 | { | |
26453 | wxVisualAttributes * resultptr; | |
26454 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
26455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26456 | } | |
26457 | return resultobj; | |
26458 | fail: | |
26459 | return NULL; | |
26460 | } | |
26461 | ||
26462 | ||
26463 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { | |
26464 | PyObject *obj; | |
26465 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26466 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
26467 | Py_INCREF(obj); | |
26468 | return Py_BuildValue((char *)""); | |
26469 | } | |
26470 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { | |
26471 | PyObject *resultobj; | |
26472 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26473 | int arg2 = (int) -1 ; | |
26474 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
26475 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
26476 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
26477 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
26478 | long arg5 = (long) wxLC_REPORT ; | |
26479 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
26480 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
26481 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
26482 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
26483 | wxListView *result; | |
26484 | wxPoint temp3 ; | |
26485 | wxSize temp4 ; | |
26486 | bool temp7 = false ; | |
26487 | PyObject * obj0 = 0 ; | |
26488 | PyObject * obj1 = 0 ; | |
26489 | PyObject * obj2 = 0 ; | |
26490 | PyObject * obj3 = 0 ; | |
26491 | PyObject * obj4 = 0 ; | |
26492 | PyObject * obj5 = 0 ; | |
26493 | PyObject * obj6 = 0 ; | |
26494 | char *kwnames[] = { | |
26495 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26496 | }; | |
26497 | ||
26498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
26499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
26500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26501 | if (obj1) { | |
26502 | { | |
26503 | arg2 = (int)(SWIG_As_int(obj1)); | |
26504 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26505 | } | |
26506 | } | |
26507 | if (obj2) { | |
26508 | { | |
26509 | arg3 = &temp3; | |
26510 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26511 | } | |
26512 | } | |
26513 | if (obj3) { | |
26514 | { | |
26515 | arg4 = &temp4; | |
26516 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
26517 | } | |
26518 | } | |
26519 | if (obj4) { | |
26520 | { | |
26521 | arg5 = (long)(SWIG_As_long(obj4)); | |
26522 | if (SWIG_arg_fail(5)) SWIG_fail; | |
26523 | } | |
26524 | } | |
26525 | if (obj5) { | |
26526 | { | |
26527 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26528 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26529 | if (arg6 == NULL) { | |
26530 | SWIG_null_ref("wxValidator"); | |
26531 | } | |
26532 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26533 | } | |
26534 | } | |
26535 | if (obj6) { | |
26536 | { | |
26537 | arg7 = wxString_in_helper(obj6); | |
26538 | if (arg7 == NULL) SWIG_fail; | |
26539 | temp7 = true; | |
26540 | } | |
26541 | } | |
26542 | { | |
26543 | if (!wxPyCheckForApp()) SWIG_fail; | |
26544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26545 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
26546 | ||
26547 | wxPyEndAllowThreads(__tstate); | |
26548 | if (PyErr_Occurred()) SWIG_fail; | |
26549 | } | |
26550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
26551 | { | |
26552 | if (temp7) | |
26553 | delete arg7; | |
26554 | } | |
26555 | return resultobj; | |
26556 | fail: | |
26557 | { | |
26558 | if (temp7) | |
26559 | delete arg7; | |
26560 | } | |
26561 | return NULL; | |
26562 | } | |
26563 | ||
26564 | ||
26565 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { | |
26566 | PyObject *resultobj; | |
26567 | wxListView *result; | |
26568 | char *kwnames[] = { | |
26569 | NULL | |
26570 | }; | |
26571 | ||
26572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
26573 | { | |
26574 | if (!wxPyCheckForApp()) SWIG_fail; | |
26575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26576 | result = (wxListView *)new wxListView(); | |
26577 | ||
26578 | wxPyEndAllowThreads(__tstate); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
26581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
26582 | return resultobj; | |
26583 | fail: | |
26584 | return NULL; | |
26585 | } | |
26586 | ||
26587 | ||
26588 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
26589 | PyObject *resultobj; | |
26590 | wxListView *arg1 = (wxListView *) 0 ; | |
26591 | wxWindow *arg2 = (wxWindow *) 0 ; | |
26592 | int arg3 = (int) -1 ; | |
26593 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
26594 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
26595 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
26596 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
26597 | long arg6 = (long) wxLC_REPORT ; | |
26598 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
26599 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
26600 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
26601 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
26602 | bool result; | |
26603 | wxPoint temp4 ; | |
26604 | wxSize temp5 ; | |
26605 | bool temp8 = false ; | |
26606 | PyObject * obj0 = 0 ; | |
26607 | PyObject * obj1 = 0 ; | |
26608 | PyObject * obj2 = 0 ; | |
26609 | PyObject * obj3 = 0 ; | |
26610 | PyObject * obj4 = 0 ; | |
26611 | PyObject * obj5 = 0 ; | |
26612 | PyObject * obj6 = 0 ; | |
26613 | PyObject * obj7 = 0 ; | |
26614 | char *kwnames[] = { | |
26615 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
26616 | }; | |
26617 | ||
26618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
26619 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26620 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26621 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
26622 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26623 | if (obj2) { | |
26624 | { | |
26625 | arg3 = (int)(SWIG_As_int(obj2)); | |
26626 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26627 | } | |
26628 | } | |
26629 | if (obj3) { | |
26630 | { | |
26631 | arg4 = &temp4; | |
26632 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
26633 | } | |
26634 | } | |
26635 | if (obj4) { | |
26636 | { | |
26637 | arg5 = &temp5; | |
26638 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
26639 | } | |
26640 | } | |
26641 | if (obj5) { | |
26642 | { | |
26643 | arg6 = (long)(SWIG_As_long(obj5)); | |
26644 | if (SWIG_arg_fail(6)) SWIG_fail; | |
26645 | } | |
26646 | } | |
26647 | if (obj6) { | |
26648 | { | |
26649 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
26650 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26651 | if (arg7 == NULL) { | |
26652 | SWIG_null_ref("wxValidator"); | |
26653 | } | |
26654 | if (SWIG_arg_fail(7)) SWIG_fail; | |
26655 | } | |
26656 | } | |
26657 | if (obj7) { | |
26658 | { | |
26659 | arg8 = wxString_in_helper(obj7); | |
26660 | if (arg8 == NULL) SWIG_fail; | |
26661 | temp8 = true; | |
26662 | } | |
26663 | } | |
26664 | { | |
26665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26666 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
26667 | ||
26668 | wxPyEndAllowThreads(__tstate); | |
26669 | if (PyErr_Occurred()) SWIG_fail; | |
26670 | } | |
26671 | { | |
26672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26673 | } | |
26674 | { | |
26675 | if (temp8) | |
26676 | delete arg8; | |
26677 | } | |
26678 | return resultobj; | |
26679 | fail: | |
26680 | { | |
26681 | if (temp8) | |
26682 | delete arg8; | |
26683 | } | |
26684 | return NULL; | |
26685 | } | |
26686 | ||
26687 | ||
26688 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { | |
26689 | PyObject *resultobj; | |
26690 | wxListView *arg1 = (wxListView *) 0 ; | |
26691 | long arg2 ; | |
26692 | bool arg3 = (bool) true ; | |
26693 | PyObject * obj0 = 0 ; | |
26694 | PyObject * obj1 = 0 ; | |
26695 | PyObject * obj2 = 0 ; | |
26696 | char *kwnames[] = { | |
26697 | (char *) "self",(char *) "n",(char *) "on", NULL | |
26698 | }; | |
26699 | ||
26700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26701 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26702 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26703 | { | |
26704 | arg2 = (long)(SWIG_As_long(obj1)); | |
26705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26706 | } | |
26707 | if (obj2) { | |
26708 | { | |
26709 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
26710 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26711 | } | |
26712 | } | |
26713 | { | |
26714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26715 | (arg1)->Select(arg2,arg3); | |
26716 | ||
26717 | wxPyEndAllowThreads(__tstate); | |
26718 | if (PyErr_Occurred()) SWIG_fail; | |
26719 | } | |
26720 | Py_INCREF(Py_None); resultobj = Py_None; | |
26721 | return resultobj; | |
26722 | fail: | |
26723 | return NULL; | |
26724 | } | |
26725 | ||
26726 | ||
26727 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { | |
26728 | PyObject *resultobj; | |
26729 | wxListView *arg1 = (wxListView *) 0 ; | |
26730 | long arg2 ; | |
26731 | PyObject * obj0 = 0 ; | |
26732 | PyObject * obj1 = 0 ; | |
26733 | char *kwnames[] = { | |
26734 | (char *) "self",(char *) "index", NULL | |
26735 | }; | |
26736 | ||
26737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
26738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26740 | { | |
26741 | arg2 = (long)(SWIG_As_long(obj1)); | |
26742 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26743 | } | |
26744 | { | |
26745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26746 | (arg1)->Focus(arg2); | |
26747 | ||
26748 | wxPyEndAllowThreads(__tstate); | |
26749 | if (PyErr_Occurred()) SWIG_fail; | |
26750 | } | |
26751 | Py_INCREF(Py_None); resultobj = Py_None; | |
26752 | return resultobj; | |
26753 | fail: | |
26754 | return NULL; | |
26755 | } | |
26756 | ||
26757 | ||
26758 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
26759 | PyObject *resultobj; | |
26760 | wxListView *arg1 = (wxListView *) 0 ; | |
26761 | long result; | |
26762 | PyObject * obj0 = 0 ; | |
26763 | char *kwnames[] = { | |
26764 | (char *) "self", NULL | |
26765 | }; | |
26766 | ||
26767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
26768 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26769 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26770 | { | |
26771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26772 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
26773 | ||
26774 | wxPyEndAllowThreads(__tstate); | |
26775 | if (PyErr_Occurred()) SWIG_fail; | |
26776 | } | |
26777 | { | |
26778 | resultobj = SWIG_From_long((long)(result)); | |
26779 | } | |
26780 | return resultobj; | |
26781 | fail: | |
26782 | return NULL; | |
26783 | } | |
26784 | ||
26785 | ||
26786 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
26787 | PyObject *resultobj; | |
26788 | wxListView *arg1 = (wxListView *) 0 ; | |
26789 | long arg2 ; | |
26790 | long result; | |
26791 | PyObject * obj0 = 0 ; | |
26792 | PyObject * obj1 = 0 ; | |
26793 | char *kwnames[] = { | |
26794 | (char *) "self",(char *) "item", NULL | |
26795 | }; | |
26796 | ||
26797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
26798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26800 | { | |
26801 | arg2 = (long)(SWIG_As_long(obj1)); | |
26802 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26803 | } | |
26804 | { | |
26805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26806 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
26807 | ||
26808 | wxPyEndAllowThreads(__tstate); | |
26809 | if (PyErr_Occurred()) SWIG_fail; | |
26810 | } | |
26811 | { | |
26812 | resultobj = SWIG_From_long((long)(result)); | |
26813 | } | |
26814 | return resultobj; | |
26815 | fail: | |
26816 | return NULL; | |
26817 | } | |
26818 | ||
26819 | ||
26820 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
26821 | PyObject *resultobj; | |
26822 | wxListView *arg1 = (wxListView *) 0 ; | |
26823 | long result; | |
26824 | PyObject * obj0 = 0 ; | |
26825 | char *kwnames[] = { | |
26826 | (char *) "self", NULL | |
26827 | }; | |
26828 | ||
26829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
26830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26832 | { | |
26833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26834 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
26835 | ||
26836 | wxPyEndAllowThreads(__tstate); | |
26837 | if (PyErr_Occurred()) SWIG_fail; | |
26838 | } | |
26839 | { | |
26840 | resultobj = SWIG_From_long((long)(result)); | |
26841 | } | |
26842 | return resultobj; | |
26843 | fail: | |
26844 | return NULL; | |
26845 | } | |
26846 | ||
26847 | ||
26848 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
26849 | PyObject *resultobj; | |
26850 | wxListView *arg1 = (wxListView *) 0 ; | |
26851 | long arg2 ; | |
26852 | bool result; | |
26853 | PyObject * obj0 = 0 ; | |
26854 | PyObject * obj1 = 0 ; | |
26855 | char *kwnames[] = { | |
26856 | (char *) "self",(char *) "index", NULL | |
26857 | }; | |
26858 | ||
26859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
26860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26862 | { | |
26863 | arg2 = (long)(SWIG_As_long(obj1)); | |
26864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26865 | } | |
26866 | { | |
26867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26868 | result = (bool)(arg1)->IsSelected(arg2); | |
26869 | ||
26870 | wxPyEndAllowThreads(__tstate); | |
26871 | if (PyErr_Occurred()) SWIG_fail; | |
26872 | } | |
26873 | { | |
26874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26875 | } | |
26876 | return resultobj; | |
26877 | fail: | |
26878 | return NULL; | |
26879 | } | |
26880 | ||
26881 | ||
26882 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
26883 | PyObject *resultobj; | |
26884 | wxListView *arg1 = (wxListView *) 0 ; | |
26885 | int arg2 ; | |
26886 | int arg3 ; | |
26887 | PyObject * obj0 = 0 ; | |
26888 | PyObject * obj1 = 0 ; | |
26889 | PyObject * obj2 = 0 ; | |
26890 | char *kwnames[] = { | |
26891 | (char *) "self",(char *) "col",(char *) "image", NULL | |
26892 | }; | |
26893 | ||
26894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26897 | { | |
26898 | arg2 = (int)(SWIG_As_int(obj1)); | |
26899 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26900 | } | |
26901 | { | |
26902 | arg3 = (int)(SWIG_As_int(obj2)); | |
26903 | if (SWIG_arg_fail(3)) SWIG_fail; | |
26904 | } | |
26905 | { | |
26906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26907 | (arg1)->SetColumnImage(arg2,arg3); | |
26908 | ||
26909 | wxPyEndAllowThreads(__tstate); | |
26910 | if (PyErr_Occurred()) SWIG_fail; | |
26911 | } | |
26912 | Py_INCREF(Py_None); resultobj = Py_None; | |
26913 | return resultobj; | |
26914 | fail: | |
26915 | return NULL; | |
26916 | } | |
26917 | ||
26918 | ||
26919 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
26920 | PyObject *resultobj; | |
26921 | wxListView *arg1 = (wxListView *) 0 ; | |
26922 | int arg2 ; | |
26923 | PyObject * obj0 = 0 ; | |
26924 | PyObject * obj1 = 0 ; | |
26925 | char *kwnames[] = { | |
26926 | (char *) "self",(char *) "col", NULL | |
26927 | }; | |
26928 | ||
26929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
26930 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); | |
26931 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26932 | { | |
26933 | arg2 = (int)(SWIG_As_int(obj1)); | |
26934 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26935 | } | |
26936 | { | |
26937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26938 | (arg1)->ClearColumnImage(arg2); | |
26939 | ||
26940 | wxPyEndAllowThreads(__tstate); | |
26941 | if (PyErr_Occurred()) SWIG_fail; | |
26942 | } | |
26943 | Py_INCREF(Py_None); resultobj = Py_None; | |
26944 | return resultobj; | |
26945 | fail: | |
26946 | return NULL; | |
26947 | } | |
26948 | ||
26949 | ||
26950 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { | |
26951 | PyObject *obj; | |
26952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26953 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
26954 | Py_INCREF(obj); | |
26955 | return Py_BuildValue((char *)""); | |
26956 | } | |
26957 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { | |
26958 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
26959 | return 1; | |
26960 | } | |
26961 | ||
26962 | ||
26963 | static PyObject *_wrap_TreeCtrlNameStr_get(void) { | |
26964 | PyObject *pyobj; | |
26965 | ||
26966 | { | |
26967 | #if wxUSE_UNICODE | |
26968 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
26969 | #else | |
26970 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
26971 | #endif | |
26972 | } | |
26973 | return pyobj; | |
26974 | } | |
26975 | ||
26976 | ||
26977 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { | |
26978 | PyObject *resultobj; | |
26979 | wxTreeItemId *result; | |
26980 | char *kwnames[] = { | |
26981 | NULL | |
26982 | }; | |
26983 | ||
26984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
26985 | { | |
26986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26987 | result = (wxTreeItemId *)new wxTreeItemId(); | |
26988 | ||
26989 | wxPyEndAllowThreads(__tstate); | |
26990 | if (PyErr_Occurred()) SWIG_fail; | |
26991 | } | |
26992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
26993 | return resultobj; | |
26994 | fail: | |
26995 | return NULL; | |
26996 | } | |
26997 | ||
26998 | ||
26999 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { | |
27000 | PyObject *resultobj; | |
27001 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27002 | PyObject * obj0 = 0 ; | |
27003 | char *kwnames[] = { | |
27004 | (char *) "self", NULL | |
27005 | }; | |
27006 | ||
27007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
27008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27010 | { | |
27011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27012 | delete arg1; | |
27013 | ||
27014 | wxPyEndAllowThreads(__tstate); | |
27015 | if (PyErr_Occurred()) SWIG_fail; | |
27016 | } | |
27017 | Py_INCREF(Py_None); resultobj = Py_None; | |
27018 | return resultobj; | |
27019 | fail: | |
27020 | return NULL; | |
27021 | } | |
27022 | ||
27023 | ||
27024 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
27025 | PyObject *resultobj; | |
27026 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27027 | bool result; | |
27028 | PyObject * obj0 = 0 ; | |
27029 | char *kwnames[] = { | |
27030 | (char *) "self", NULL | |
27031 | }; | |
27032 | ||
27033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
27034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27036 | { | |
27037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27038 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
27039 | ||
27040 | wxPyEndAllowThreads(__tstate); | |
27041 | if (PyErr_Occurred()) SWIG_fail; | |
27042 | } | |
27043 | { | |
27044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27045 | } | |
27046 | return resultobj; | |
27047 | fail: | |
27048 | return NULL; | |
27049 | } | |
27050 | ||
27051 | ||
27052 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { | |
27053 | PyObject *resultobj; | |
27054 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27055 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27056 | bool result; | |
27057 | PyObject * obj0 = 0 ; | |
27058 | PyObject * obj1 = 0 ; | |
27059 | char *kwnames[] = { | |
27060 | (char *) "self",(char *) "other", NULL | |
27061 | }; | |
27062 | ||
27063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
27064 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27065 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27066 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27067 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27068 | { | |
27069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27070 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
27071 | ||
27072 | wxPyEndAllowThreads(__tstate); | |
27073 | if (PyErr_Occurred()) SWIG_fail; | |
27074 | } | |
27075 | { | |
27076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27077 | } | |
27078 | return resultobj; | |
27079 | fail: | |
27080 | return NULL; | |
27081 | } | |
27082 | ||
27083 | ||
27084 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { | |
27085 | PyObject *resultobj; | |
27086 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27087 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
27088 | bool result; | |
27089 | PyObject * obj0 = 0 ; | |
27090 | PyObject * obj1 = 0 ; | |
27091 | char *kwnames[] = { | |
27092 | (char *) "self",(char *) "other", NULL | |
27093 | }; | |
27094 | ||
27095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
27096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27098 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27100 | { | |
27101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27102 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
27103 | ||
27104 | wxPyEndAllowThreads(__tstate); | |
27105 | if (PyErr_Occurred()) SWIG_fail; | |
27106 | } | |
27107 | { | |
27108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27109 | } | |
27110 | return resultobj; | |
27111 | fail: | |
27112 | return NULL; | |
27113 | } | |
27114 | ||
27115 | ||
27116 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
27117 | PyObject *resultobj; | |
27118 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27119 | void *arg2 = (void *) 0 ; | |
27120 | PyObject * obj0 = 0 ; | |
27121 | PyObject * obj1 = 0 ; | |
27122 | char *kwnames[] = { | |
27123 | (char *) "self",(char *) "m_pItem", NULL | |
27124 | }; | |
27125 | ||
27126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
27127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27129 | { | |
27130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),0,SWIG_POINTER_EXCEPTION|SWIG_POINTER_DISOWN))== -1) { | |
27131 | SWIG_arg_fail(2);SWIG_fail; | |
27132 | } | |
27133 | } | |
27134 | if (arg1) (arg1)->m_pItem = arg2; | |
27135 | ||
27136 | Py_INCREF(Py_None); resultobj = Py_None; | |
27137 | return resultobj; | |
27138 | fail: | |
27139 | return NULL; | |
27140 | } | |
27141 | ||
27142 | ||
27143 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
27144 | PyObject *resultobj; | |
27145 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
27146 | void *result; | |
27147 | PyObject * obj0 = 0 ; | |
27148 | char *kwnames[] = { | |
27149 | (char *) "self", NULL | |
27150 | }; | |
27151 | ||
27152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
27153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27155 | result = (void *) ((arg1)->m_pItem); | |
27156 | ||
27157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
27158 | return resultobj; | |
27159 | fail: | |
27160 | return NULL; | |
27161 | } | |
27162 | ||
27163 | ||
27164 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { | |
27165 | PyObject *obj; | |
27166 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27167 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
27168 | Py_INCREF(obj); | |
27169 | return Py_BuildValue((char *)""); | |
27170 | } | |
27171 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { | |
27172 | PyObject *resultobj; | |
27173 | PyObject *arg1 = (PyObject *) NULL ; | |
27174 | wxPyTreeItemData *result; | |
27175 | PyObject * obj0 = 0 ; | |
27176 | char *kwnames[] = { | |
27177 | (char *) "obj", NULL | |
27178 | }; | |
27179 | ||
27180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
27181 | if (obj0) { | |
27182 | arg1 = obj0; | |
27183 | } | |
27184 | { | |
27185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27186 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
27187 | ||
27188 | wxPyEndAllowThreads(__tstate); | |
27189 | if (PyErr_Occurred()) SWIG_fail; | |
27190 | } | |
27191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
27192 | return resultobj; | |
27193 | fail: | |
27194 | return NULL; | |
27195 | } | |
27196 | ||
27197 | ||
27198 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
27199 | PyObject *resultobj; | |
27200 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27201 | PyObject *result; | |
27202 | PyObject * obj0 = 0 ; | |
27203 | char *kwnames[] = { | |
27204 | (char *) "self", NULL | |
27205 | }; | |
27206 | ||
27207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
27208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
27209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27210 | { | |
27211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27212 | result = (PyObject *)(arg1)->GetData(); | |
27213 | ||
27214 | wxPyEndAllowThreads(__tstate); | |
27215 | if (PyErr_Occurred()) SWIG_fail; | |
27216 | } | |
27217 | resultobj = result; | |
27218 | return resultobj; | |
27219 | fail: | |
27220 | return NULL; | |
27221 | } | |
27222 | ||
27223 | ||
27224 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { | |
27225 | PyObject *resultobj; | |
27226 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27227 | PyObject *arg2 = (PyObject *) 0 ; | |
27228 | PyObject * obj0 = 0 ; | |
27229 | PyObject * obj1 = 0 ; | |
27230 | char *kwnames[] = { | |
27231 | (char *) "self",(char *) "obj", NULL | |
27232 | }; | |
27233 | ||
27234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
27235 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
27236 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27237 | arg2 = obj1; | |
27238 | { | |
27239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27240 | (arg1)->SetData(arg2); | |
27241 | ||
27242 | wxPyEndAllowThreads(__tstate); | |
27243 | if (PyErr_Occurred()) SWIG_fail; | |
27244 | } | |
27245 | Py_INCREF(Py_None); resultobj = Py_None; | |
27246 | return resultobj; | |
27247 | fail: | |
27248 | return NULL; | |
27249 | } | |
27250 | ||
27251 | ||
27252 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
27253 | PyObject *resultobj; | |
27254 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27255 | wxTreeItemId *result; | |
27256 | PyObject * obj0 = 0 ; | |
27257 | char *kwnames[] = { | |
27258 | (char *) "self", NULL | |
27259 | }; | |
27260 | ||
27261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
27262 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
27263 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27264 | { | |
27265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27266 | { | |
27267 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
27268 | result = (wxTreeItemId *) &_result_ref; | |
27269 | } | |
27270 | ||
27271 | wxPyEndAllowThreads(__tstate); | |
27272 | if (PyErr_Occurred()) SWIG_fail; | |
27273 | } | |
27274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
27275 | return resultobj; | |
27276 | fail: | |
27277 | return NULL; | |
27278 | } | |
27279 | ||
27280 | ||
27281 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { | |
27282 | PyObject *resultobj; | |
27283 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27284 | wxTreeItemId *arg2 = 0 ; | |
27285 | PyObject * obj0 = 0 ; | |
27286 | PyObject * obj1 = 0 ; | |
27287 | char *kwnames[] = { | |
27288 | (char *) "self",(char *) "id", NULL | |
27289 | }; | |
27290 | ||
27291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
27292 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
27293 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27294 | { | |
27295 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27296 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27297 | if (arg2 == NULL) { | |
27298 | SWIG_null_ref("wxTreeItemId"); | |
27299 | } | |
27300 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27301 | } | |
27302 | { | |
27303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27304 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
27305 | ||
27306 | wxPyEndAllowThreads(__tstate); | |
27307 | if (PyErr_Occurred()) SWIG_fail; | |
27308 | } | |
27309 | Py_INCREF(Py_None); resultobj = Py_None; | |
27310 | return resultobj; | |
27311 | fail: | |
27312 | return NULL; | |
27313 | } | |
27314 | ||
27315 | ||
27316 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { | |
27317 | PyObject *resultobj; | |
27318 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
27319 | PyObject * obj0 = 0 ; | |
27320 | char *kwnames[] = { | |
27321 | (char *) "self", NULL | |
27322 | }; | |
27323 | ||
27324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
27325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
27326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27327 | { | |
27328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27329 | wxPyTreeItemData_Destroy(arg1); | |
27330 | ||
27331 | wxPyEndAllowThreads(__tstate); | |
27332 | if (PyErr_Occurred()) SWIG_fail; | |
27333 | } | |
27334 | Py_INCREF(Py_None); resultobj = Py_None; | |
27335 | return resultobj; | |
27336 | fail: | |
27337 | return NULL; | |
27338 | } | |
27339 | ||
27340 | ||
27341 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { | |
27342 | PyObject *obj; | |
27343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27344 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
27345 | Py_INCREF(obj); | |
27346 | return Py_BuildValue((char *)""); | |
27347 | } | |
27348 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
27349 | PyObject *resultobj; | |
27350 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
27351 | int arg2 = (int) 0 ; | |
27352 | wxTreeEvent *result; | |
27353 | PyObject * obj0 = 0 ; | |
27354 | PyObject * obj1 = 0 ; | |
27355 | char *kwnames[] = { | |
27356 | (char *) "commandType",(char *) "id", NULL | |
27357 | }; | |
27358 | ||
27359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
27360 | if (obj0) { | |
27361 | { | |
27362 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
27363 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27364 | } | |
27365 | } | |
27366 | if (obj1) { | |
27367 | { | |
27368 | arg2 = (int)(SWIG_As_int(obj1)); | |
27369 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27370 | } | |
27371 | } | |
27372 | { | |
27373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27374 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
27375 | ||
27376 | wxPyEndAllowThreads(__tstate); | |
27377 | if (PyErr_Occurred()) SWIG_fail; | |
27378 | } | |
27379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
27380 | return resultobj; | |
27381 | fail: | |
27382 | return NULL; | |
27383 | } | |
27384 | ||
27385 | ||
27386 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
27387 | PyObject *resultobj; | |
27388 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27389 | wxTreeItemId result; | |
27390 | PyObject * obj0 = 0 ; | |
27391 | char *kwnames[] = { | |
27392 | (char *) "self", NULL | |
27393 | }; | |
27394 | ||
27395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
27396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27398 | { | |
27399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27400 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
27401 | ||
27402 | wxPyEndAllowThreads(__tstate); | |
27403 | if (PyErr_Occurred()) SWIG_fail; | |
27404 | } | |
27405 | { | |
27406 | wxTreeItemId * resultptr; | |
27407 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
27408 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27409 | } | |
27410 | return resultobj; | |
27411 | fail: | |
27412 | return NULL; | |
27413 | } | |
27414 | ||
27415 | ||
27416 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
27417 | PyObject *resultobj; | |
27418 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27419 | wxTreeItemId *arg2 = 0 ; | |
27420 | PyObject * obj0 = 0 ; | |
27421 | PyObject * obj1 = 0 ; | |
27422 | char *kwnames[] = { | |
27423 | (char *) "self",(char *) "item", NULL | |
27424 | }; | |
27425 | ||
27426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
27427 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27428 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27429 | { | |
27430 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27431 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27432 | if (arg2 == NULL) { | |
27433 | SWIG_null_ref("wxTreeItemId"); | |
27434 | } | |
27435 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27436 | } | |
27437 | { | |
27438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27439 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
27440 | ||
27441 | wxPyEndAllowThreads(__tstate); | |
27442 | if (PyErr_Occurred()) SWIG_fail; | |
27443 | } | |
27444 | Py_INCREF(Py_None); resultobj = Py_None; | |
27445 | return resultobj; | |
27446 | fail: | |
27447 | return NULL; | |
27448 | } | |
27449 | ||
27450 | ||
27451 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
27452 | PyObject *resultobj; | |
27453 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27454 | wxTreeItemId result; | |
27455 | PyObject * obj0 = 0 ; | |
27456 | char *kwnames[] = { | |
27457 | (char *) "self", NULL | |
27458 | }; | |
27459 | ||
27460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
27461 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27462 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27463 | { | |
27464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27465 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
27466 | ||
27467 | wxPyEndAllowThreads(__tstate); | |
27468 | if (PyErr_Occurred()) SWIG_fail; | |
27469 | } | |
27470 | { | |
27471 | wxTreeItemId * resultptr; | |
27472 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
27473 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27474 | } | |
27475 | return resultobj; | |
27476 | fail: | |
27477 | return NULL; | |
27478 | } | |
27479 | ||
27480 | ||
27481 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
27482 | PyObject *resultobj; | |
27483 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27484 | wxTreeItemId *arg2 = 0 ; | |
27485 | PyObject * obj0 = 0 ; | |
27486 | PyObject * obj1 = 0 ; | |
27487 | char *kwnames[] = { | |
27488 | (char *) "self",(char *) "item", NULL | |
27489 | }; | |
27490 | ||
27491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
27492 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27493 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27494 | { | |
27495 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
27496 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27497 | if (arg2 == NULL) { | |
27498 | SWIG_null_ref("wxTreeItemId"); | |
27499 | } | |
27500 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27501 | } | |
27502 | { | |
27503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27504 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
27505 | ||
27506 | wxPyEndAllowThreads(__tstate); | |
27507 | if (PyErr_Occurred()) SWIG_fail; | |
27508 | } | |
27509 | Py_INCREF(Py_None); resultobj = Py_None; | |
27510 | return resultobj; | |
27511 | fail: | |
27512 | return NULL; | |
27513 | } | |
27514 | ||
27515 | ||
27516 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
27517 | PyObject *resultobj; | |
27518 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27519 | wxPoint result; | |
27520 | PyObject * obj0 = 0 ; | |
27521 | char *kwnames[] = { | |
27522 | (char *) "self", NULL | |
27523 | }; | |
27524 | ||
27525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
27526 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27527 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27528 | { | |
27529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27530 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
27531 | ||
27532 | wxPyEndAllowThreads(__tstate); | |
27533 | if (PyErr_Occurred()) SWIG_fail; | |
27534 | } | |
27535 | { | |
27536 | wxPoint * resultptr; | |
27537 | resultptr = new wxPoint((wxPoint &)(result)); | |
27538 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27539 | } | |
27540 | return resultobj; | |
27541 | fail: | |
27542 | return NULL; | |
27543 | } | |
27544 | ||
27545 | ||
27546 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
27547 | PyObject *resultobj; | |
27548 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27549 | wxPoint *arg2 = 0 ; | |
27550 | wxPoint temp2 ; | |
27551 | PyObject * obj0 = 0 ; | |
27552 | PyObject * obj1 = 0 ; | |
27553 | char *kwnames[] = { | |
27554 | (char *) "self",(char *) "pt", NULL | |
27555 | }; | |
27556 | ||
27557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
27558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27560 | { | |
27561 | arg2 = &temp2; | |
27562 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27563 | } | |
27564 | { | |
27565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27566 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
27567 | ||
27568 | wxPyEndAllowThreads(__tstate); | |
27569 | if (PyErr_Occurred()) SWIG_fail; | |
27570 | } | |
27571 | Py_INCREF(Py_None); resultobj = Py_None; | |
27572 | return resultobj; | |
27573 | fail: | |
27574 | return NULL; | |
27575 | } | |
27576 | ||
27577 | ||
27578 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
27579 | PyObject *resultobj; | |
27580 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27581 | wxKeyEvent *result; | |
27582 | PyObject * obj0 = 0 ; | |
27583 | char *kwnames[] = { | |
27584 | (char *) "self", NULL | |
27585 | }; | |
27586 | ||
27587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
27588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27590 | { | |
27591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27592 | { | |
27593 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
27594 | result = (wxKeyEvent *) &_result_ref; | |
27595 | } | |
27596 | ||
27597 | wxPyEndAllowThreads(__tstate); | |
27598 | if (PyErr_Occurred()) SWIG_fail; | |
27599 | } | |
27600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
27601 | return resultobj; | |
27602 | fail: | |
27603 | return NULL; | |
27604 | } | |
27605 | ||
27606 | ||
27607 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { | |
27608 | PyObject *resultobj; | |
27609 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27610 | int result; | |
27611 | PyObject * obj0 = 0 ; | |
27612 | char *kwnames[] = { | |
27613 | (char *) "self", NULL | |
27614 | }; | |
27615 | ||
27616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
27617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27619 | { | |
27620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27621 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
27622 | ||
27623 | wxPyEndAllowThreads(__tstate); | |
27624 | if (PyErr_Occurred()) SWIG_fail; | |
27625 | } | |
27626 | { | |
27627 | resultobj = SWIG_From_int((int)(result)); | |
27628 | } | |
27629 | return resultobj; | |
27630 | fail: | |
27631 | return NULL; | |
27632 | } | |
27633 | ||
27634 | ||
27635 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
27636 | PyObject *resultobj; | |
27637 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27638 | wxKeyEvent *arg2 = 0 ; | |
27639 | PyObject * obj0 = 0 ; | |
27640 | PyObject * obj1 = 0 ; | |
27641 | char *kwnames[] = { | |
27642 | (char *) "self",(char *) "evt", NULL | |
27643 | }; | |
27644 | ||
27645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
27646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27648 | { | |
27649 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
27650 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27651 | if (arg2 == NULL) { | |
27652 | SWIG_null_ref("wxKeyEvent"); | |
27653 | } | |
27654 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27655 | } | |
27656 | { | |
27657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27658 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
27659 | ||
27660 | wxPyEndAllowThreads(__tstate); | |
27661 | if (PyErr_Occurred()) SWIG_fail; | |
27662 | } | |
27663 | Py_INCREF(Py_None); resultobj = Py_None; | |
27664 | return resultobj; | |
27665 | fail: | |
27666 | return NULL; | |
27667 | } | |
27668 | ||
27669 | ||
27670 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
27671 | PyObject *resultobj; | |
27672 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27673 | wxString *result; | |
27674 | PyObject * obj0 = 0 ; | |
27675 | char *kwnames[] = { | |
27676 | (char *) "self", NULL | |
27677 | }; | |
27678 | ||
27679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
27680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27682 | { | |
27683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27684 | { | |
27685 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
27686 | result = (wxString *) &_result_ref; | |
27687 | } | |
27688 | ||
27689 | wxPyEndAllowThreads(__tstate); | |
27690 | if (PyErr_Occurred()) SWIG_fail; | |
27691 | } | |
27692 | { | |
27693 | #if wxUSE_UNICODE | |
27694 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
27695 | #else | |
27696 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
27697 | #endif | |
27698 | } | |
27699 | return resultobj; | |
27700 | fail: | |
27701 | return NULL; | |
27702 | } | |
27703 | ||
27704 | ||
27705 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
27706 | PyObject *resultobj; | |
27707 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27708 | wxString *arg2 = 0 ; | |
27709 | bool temp2 = false ; | |
27710 | PyObject * obj0 = 0 ; | |
27711 | PyObject * obj1 = 0 ; | |
27712 | char *kwnames[] = { | |
27713 | (char *) "self",(char *) "label", NULL | |
27714 | }; | |
27715 | ||
27716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
27717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27719 | { | |
27720 | arg2 = wxString_in_helper(obj1); | |
27721 | if (arg2 == NULL) SWIG_fail; | |
27722 | temp2 = true; | |
27723 | } | |
27724 | { | |
27725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27726 | (arg1)->SetLabel((wxString const &)*arg2); | |
27727 | ||
27728 | wxPyEndAllowThreads(__tstate); | |
27729 | if (PyErr_Occurred()) SWIG_fail; | |
27730 | } | |
27731 | Py_INCREF(Py_None); resultobj = Py_None; | |
27732 | { | |
27733 | if (temp2) | |
27734 | delete arg2; | |
27735 | } | |
27736 | return resultobj; | |
27737 | fail: | |
27738 | { | |
27739 | if (temp2) | |
27740 | delete arg2; | |
27741 | } | |
27742 | return NULL; | |
27743 | } | |
27744 | ||
27745 | ||
27746 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { | |
27747 | PyObject *resultobj; | |
27748 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27749 | bool result; | |
27750 | PyObject * obj0 = 0 ; | |
27751 | char *kwnames[] = { | |
27752 | (char *) "self", NULL | |
27753 | }; | |
27754 | ||
27755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
27756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27758 | { | |
27759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27760 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
27761 | ||
27762 | wxPyEndAllowThreads(__tstate); | |
27763 | if (PyErr_Occurred()) SWIG_fail; | |
27764 | } | |
27765 | { | |
27766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27767 | } | |
27768 | return resultobj; | |
27769 | fail: | |
27770 | return NULL; | |
27771 | } | |
27772 | ||
27773 | ||
27774 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { | |
27775 | PyObject *resultobj; | |
27776 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27777 | bool arg2 ; | |
27778 | PyObject * obj0 = 0 ; | |
27779 | PyObject * obj1 = 0 ; | |
27780 | char *kwnames[] = { | |
27781 | (char *) "self",(char *) "editCancelled", NULL | |
27782 | }; | |
27783 | ||
27784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
27785 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27786 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27787 | { | |
27788 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
27789 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27790 | } | |
27791 | { | |
27792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27793 | (arg1)->SetEditCanceled(arg2); | |
27794 | ||
27795 | wxPyEndAllowThreads(__tstate); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
27798 | Py_INCREF(Py_None); resultobj = Py_None; | |
27799 | return resultobj; | |
27800 | fail: | |
27801 | return NULL; | |
27802 | } | |
27803 | ||
27804 | ||
27805 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
27806 | PyObject *resultobj; | |
27807 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27808 | wxString *arg2 = 0 ; | |
27809 | bool temp2 = false ; | |
27810 | PyObject * obj0 = 0 ; | |
27811 | PyObject * obj1 = 0 ; | |
27812 | char *kwnames[] = { | |
27813 | (char *) "self",(char *) "toolTip", NULL | |
27814 | }; | |
27815 | ||
27816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
27817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27819 | { | |
27820 | arg2 = wxString_in_helper(obj1); | |
27821 | if (arg2 == NULL) SWIG_fail; | |
27822 | temp2 = true; | |
27823 | } | |
27824 | { | |
27825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27826 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27827 | ||
27828 | wxPyEndAllowThreads(__tstate); | |
27829 | if (PyErr_Occurred()) SWIG_fail; | |
27830 | } | |
27831 | Py_INCREF(Py_None); resultobj = Py_None; | |
27832 | { | |
27833 | if (temp2) | |
27834 | delete arg2; | |
27835 | } | |
27836 | return resultobj; | |
27837 | fail: | |
27838 | { | |
27839 | if (temp2) | |
27840 | delete arg2; | |
27841 | } | |
27842 | return NULL; | |
27843 | } | |
27844 | ||
27845 | ||
27846 | static PyObject *_wrap_TreeEvent_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { | |
27847 | PyObject *resultobj; | |
27848 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
27849 | wxString result; | |
27850 | PyObject * obj0 = 0 ; | |
27851 | char *kwnames[] = { | |
27852 | (char *) "self", NULL | |
27853 | }; | |
27854 | ||
27855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetToolTip",kwnames,&obj0)) goto fail; | |
27856 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
27857 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27858 | { | |
27859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27860 | result = (arg1)->GetToolTip(); | |
27861 | ||
27862 | wxPyEndAllowThreads(__tstate); | |
27863 | if (PyErr_Occurred()) SWIG_fail; | |
27864 | } | |
27865 | { | |
27866 | #if wxUSE_UNICODE | |
27867 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27868 | #else | |
27869 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27870 | #endif | |
27871 | } | |
27872 | return resultobj; | |
27873 | fail: | |
27874 | return NULL; | |
27875 | } | |
27876 | ||
27877 | ||
27878 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { | |
27879 | PyObject *obj; | |
27880 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27881 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
27882 | Py_INCREF(obj); | |
27883 | return Py_BuildValue((char *)""); | |
27884 | } | |
27885 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
27886 | PyObject *resultobj; | |
27887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27888 | int arg2 = (int) -1 ; | |
27889 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
27890 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27891 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27892 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27893 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
27894 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27895 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27896 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
27897 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27898 | wxPyTreeCtrl *result; | |
27899 | wxPoint temp3 ; | |
27900 | wxSize temp4 ; | |
27901 | bool temp7 = false ; | |
27902 | PyObject * obj0 = 0 ; | |
27903 | PyObject * obj1 = 0 ; | |
27904 | PyObject * obj2 = 0 ; | |
27905 | PyObject * obj3 = 0 ; | |
27906 | PyObject * obj4 = 0 ; | |
27907 | PyObject * obj5 = 0 ; | |
27908 | PyObject * obj6 = 0 ; | |
27909 | char *kwnames[] = { | |
27910 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27911 | }; | |
27912 | ||
27913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27914 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27915 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27916 | if (obj1) { | |
27917 | { | |
27918 | arg2 = (int)(SWIG_As_int(obj1)); | |
27919 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27920 | } | |
27921 | } | |
27922 | if (obj2) { | |
27923 | { | |
27924 | arg3 = &temp3; | |
27925 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27926 | } | |
27927 | } | |
27928 | if (obj3) { | |
27929 | { | |
27930 | arg4 = &temp4; | |
27931 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27932 | } | |
27933 | } | |
27934 | if (obj4) { | |
27935 | { | |
27936 | arg5 = (long)(SWIG_As_long(obj4)); | |
27937 | if (SWIG_arg_fail(5)) SWIG_fail; | |
27938 | } | |
27939 | } | |
27940 | if (obj5) { | |
27941 | { | |
27942 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
27943 | if (SWIG_arg_fail(6)) SWIG_fail; | |
27944 | if (arg6 == NULL) { | |
27945 | SWIG_null_ref("wxValidator"); | |
27946 | } | |
27947 | if (SWIG_arg_fail(6)) SWIG_fail; | |
27948 | } | |
27949 | } | |
27950 | if (obj6) { | |
27951 | { | |
27952 | arg7 = wxString_in_helper(obj6); | |
27953 | if (arg7 == NULL) SWIG_fail; | |
27954 | temp7 = true; | |
27955 | } | |
27956 | } | |
27957 | { | |
27958 | if (!wxPyCheckForApp()) SWIG_fail; | |
27959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27960 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27961 | ||
27962 | wxPyEndAllowThreads(__tstate); | |
27963 | if (PyErr_Occurred()) SWIG_fail; | |
27964 | } | |
27965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); | |
27966 | { | |
27967 | if (temp7) | |
27968 | delete arg7; | |
27969 | } | |
27970 | return resultobj; | |
27971 | fail: | |
27972 | { | |
27973 | if (temp7) | |
27974 | delete arg7; | |
27975 | } | |
27976 | return NULL; | |
27977 | } | |
27978 | ||
27979 | ||
27980 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
27981 | PyObject *resultobj; | |
27982 | wxPyTreeCtrl *result; | |
27983 | char *kwnames[] = { | |
27984 | NULL | |
27985 | }; | |
27986 | ||
27987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
27988 | { | |
27989 | if (!wxPyCheckForApp()) SWIG_fail; | |
27990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27991 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
27992 | ||
27993 | wxPyEndAllowThreads(__tstate); | |
27994 | if (PyErr_Occurred()) SWIG_fail; | |
27995 | } | |
27996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); | |
27997 | return resultobj; | |
27998 | fail: | |
27999 | return NULL; | |
28000 | } | |
28001 | ||
28002 | ||
28003 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
28004 | PyObject *resultobj; | |
28005 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28006 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28007 | int arg3 = (int) -1 ; | |
28008 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28009 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28010 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28011 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28012 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
28013 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
28014 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
28015 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
28016 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28017 | bool result; | |
28018 | wxPoint temp4 ; | |
28019 | wxSize temp5 ; | |
28020 | bool temp8 = false ; | |
28021 | PyObject * obj0 = 0 ; | |
28022 | PyObject * obj1 = 0 ; | |
28023 | PyObject * obj2 = 0 ; | |
28024 | PyObject * obj3 = 0 ; | |
28025 | PyObject * obj4 = 0 ; | |
28026 | PyObject * obj5 = 0 ; | |
28027 | PyObject * obj6 = 0 ; | |
28028 | PyObject * obj7 = 0 ; | |
28029 | char *kwnames[] = { | |
28030 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28031 | }; | |
28032 | ||
28033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
28034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28036 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
28037 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28038 | if (obj2) { | |
28039 | { | |
28040 | arg3 = (int)(SWIG_As_int(obj2)); | |
28041 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28042 | } | |
28043 | } | |
28044 | if (obj3) { | |
28045 | { | |
28046 | arg4 = &temp4; | |
28047 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28048 | } | |
28049 | } | |
28050 | if (obj4) { | |
28051 | { | |
28052 | arg5 = &temp5; | |
28053 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28054 | } | |
28055 | } | |
28056 | if (obj5) { | |
28057 | { | |
28058 | arg6 = (long)(SWIG_As_long(obj5)); | |
28059 | if (SWIG_arg_fail(6)) SWIG_fail; | |
28060 | } | |
28061 | } | |
28062 | if (obj6) { | |
28063 | { | |
28064 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
28065 | if (SWIG_arg_fail(7)) SWIG_fail; | |
28066 | if (arg7 == NULL) { | |
28067 | SWIG_null_ref("wxValidator"); | |
28068 | } | |
28069 | if (SWIG_arg_fail(7)) SWIG_fail; | |
28070 | } | |
28071 | } | |
28072 | if (obj7) { | |
28073 | { | |
28074 | arg8 = wxString_in_helper(obj7); | |
28075 | if (arg8 == NULL) SWIG_fail; | |
28076 | temp8 = true; | |
28077 | } | |
28078 | } | |
28079 | { | |
28080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28081 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
28082 | ||
28083 | wxPyEndAllowThreads(__tstate); | |
28084 | if (PyErr_Occurred()) SWIG_fail; | |
28085 | } | |
28086 | { | |
28087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28088 | } | |
28089 | { | |
28090 | if (temp8) | |
28091 | delete arg8; | |
28092 | } | |
28093 | return resultobj; | |
28094 | fail: | |
28095 | { | |
28096 | if (temp8) | |
28097 | delete arg8; | |
28098 | } | |
28099 | return NULL; | |
28100 | } | |
28101 | ||
28102 | ||
28103 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
28104 | PyObject *resultobj; | |
28105 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28106 | PyObject *arg2 = (PyObject *) 0 ; | |
28107 | PyObject *arg3 = (PyObject *) 0 ; | |
28108 | PyObject * obj0 = 0 ; | |
28109 | PyObject * obj1 = 0 ; | |
28110 | PyObject * obj2 = 0 ; | |
28111 | char *kwnames[] = { | |
28112 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28113 | }; | |
28114 | ||
28115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28116 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28117 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28118 | arg2 = obj1; | |
28119 | arg3 = obj2; | |
28120 | { | |
28121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28122 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28123 | ||
28124 | wxPyEndAllowThreads(__tstate); | |
28125 | if (PyErr_Occurred()) SWIG_fail; | |
28126 | } | |
28127 | Py_INCREF(Py_None); resultobj = Py_None; | |
28128 | return resultobj; | |
28129 | fail: | |
28130 | return NULL; | |
28131 | } | |
28132 | ||
28133 | ||
28134 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
28135 | PyObject *resultobj; | |
28136 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28137 | size_t result; | |
28138 | PyObject * obj0 = 0 ; | |
28139 | char *kwnames[] = { | |
28140 | (char *) "self", NULL | |
28141 | }; | |
28142 | ||
28143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
28144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28146 | { | |
28147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28148 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
28149 | ||
28150 | wxPyEndAllowThreads(__tstate); | |
28151 | if (PyErr_Occurred()) SWIG_fail; | |
28152 | } | |
28153 | { | |
28154 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
28155 | } | |
28156 | return resultobj; | |
28157 | fail: | |
28158 | return NULL; | |
28159 | } | |
28160 | ||
28161 | ||
28162 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
28163 | PyObject *resultobj; | |
28164 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28165 | unsigned int result; | |
28166 | PyObject * obj0 = 0 ; | |
28167 | char *kwnames[] = { | |
28168 | (char *) "self", NULL | |
28169 | }; | |
28170 | ||
28171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
28172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28174 | { | |
28175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28176 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
28177 | ||
28178 | wxPyEndAllowThreads(__tstate); | |
28179 | if (PyErr_Occurred()) SWIG_fail; | |
28180 | } | |
28181 | { | |
28182 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28183 | } | |
28184 | return resultobj; | |
28185 | fail: | |
28186 | return NULL; | |
28187 | } | |
28188 | ||
28189 | ||
28190 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { | |
28191 | PyObject *resultobj; | |
28192 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28193 | unsigned int arg2 ; | |
28194 | PyObject * obj0 = 0 ; | |
28195 | PyObject * obj1 = 0 ; | |
28196 | char *kwnames[] = { | |
28197 | (char *) "self",(char *) "indent", NULL | |
28198 | }; | |
28199 | ||
28200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
28201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28203 | { | |
28204 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28205 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28206 | } | |
28207 | { | |
28208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28209 | (arg1)->SetIndent(arg2); | |
28210 | ||
28211 | wxPyEndAllowThreads(__tstate); | |
28212 | if (PyErr_Occurred()) SWIG_fail; | |
28213 | } | |
28214 | Py_INCREF(Py_None); resultobj = Py_None; | |
28215 | return resultobj; | |
28216 | fail: | |
28217 | return NULL; | |
28218 | } | |
28219 | ||
28220 | ||
28221 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
28222 | PyObject *resultobj; | |
28223 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28224 | unsigned int result; | |
28225 | PyObject * obj0 = 0 ; | |
28226 | char *kwnames[] = { | |
28227 | (char *) "self", NULL | |
28228 | }; | |
28229 | ||
28230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
28231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28233 | { | |
28234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28235 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
28236 | ||
28237 | wxPyEndAllowThreads(__tstate); | |
28238 | if (PyErr_Occurred()) SWIG_fail; | |
28239 | } | |
28240 | { | |
28241 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)(result)); | |
28242 | } | |
28243 | return resultobj; | |
28244 | fail: | |
28245 | return NULL; | |
28246 | } | |
28247 | ||
28248 | ||
28249 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { | |
28250 | PyObject *resultobj; | |
28251 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28252 | unsigned int arg2 ; | |
28253 | PyObject * obj0 = 0 ; | |
28254 | PyObject * obj1 = 0 ; | |
28255 | char *kwnames[] = { | |
28256 | (char *) "self",(char *) "spacing", NULL | |
28257 | }; | |
28258 | ||
28259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
28260 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28261 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28262 | { | |
28263 | arg2 = (unsigned int)(SWIG_As_unsigned_SS_int(obj1)); | |
28264 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28265 | } | |
28266 | { | |
28267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28268 | (arg1)->SetSpacing(arg2); | |
28269 | ||
28270 | wxPyEndAllowThreads(__tstate); | |
28271 | if (PyErr_Occurred()) SWIG_fail; | |
28272 | } | |
28273 | Py_INCREF(Py_None); resultobj = Py_None; | |
28274 | return resultobj; | |
28275 | fail: | |
28276 | return NULL; | |
28277 | } | |
28278 | ||
28279 | ||
28280 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
28281 | PyObject *resultobj; | |
28282 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28283 | wxImageList *result; | |
28284 | PyObject * obj0 = 0 ; | |
28285 | char *kwnames[] = { | |
28286 | (char *) "self", NULL | |
28287 | }; | |
28288 | ||
28289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
28290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28292 | { | |
28293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28294 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
28295 | ||
28296 | wxPyEndAllowThreads(__tstate); | |
28297 | if (PyErr_Occurred()) SWIG_fail; | |
28298 | } | |
28299 | { | |
28300 | resultobj = wxPyMake_wxObject(result, 0); | |
28301 | } | |
28302 | return resultobj; | |
28303 | fail: | |
28304 | return NULL; | |
28305 | } | |
28306 | ||
28307 | ||
28308 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
28309 | PyObject *resultobj; | |
28310 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28311 | wxImageList *result; | |
28312 | PyObject * obj0 = 0 ; | |
28313 | char *kwnames[] = { | |
28314 | (char *) "self", NULL | |
28315 | }; | |
28316 | ||
28317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
28318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28320 | { | |
28321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28322 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
28323 | ||
28324 | wxPyEndAllowThreads(__tstate); | |
28325 | if (PyErr_Occurred()) SWIG_fail; | |
28326 | } | |
28327 | { | |
28328 | resultobj = wxPyMake_wxObject(result, 0); | |
28329 | } | |
28330 | return resultobj; | |
28331 | fail: | |
28332 | return NULL; | |
28333 | } | |
28334 | ||
28335 | ||
28336 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
28337 | PyObject *resultobj; | |
28338 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28339 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28340 | PyObject * obj0 = 0 ; | |
28341 | PyObject * obj1 = 0 ; | |
28342 | char *kwnames[] = { | |
28343 | (char *) "self",(char *) "imageList", NULL | |
28344 | }; | |
28345 | ||
28346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
28347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28349 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28350 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28351 | { | |
28352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28353 | (arg1)->SetImageList(arg2); | |
28354 | ||
28355 | wxPyEndAllowThreads(__tstate); | |
28356 | if (PyErr_Occurred()) SWIG_fail; | |
28357 | } | |
28358 | Py_INCREF(Py_None); resultobj = Py_None; | |
28359 | return resultobj; | |
28360 | fail: | |
28361 | return NULL; | |
28362 | } | |
28363 | ||
28364 | ||
28365 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
28366 | PyObject *resultobj; | |
28367 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28368 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28369 | PyObject * obj0 = 0 ; | |
28370 | PyObject * obj1 = 0 ; | |
28371 | char *kwnames[] = { | |
28372 | (char *) "self",(char *) "imageList", NULL | |
28373 | }; | |
28374 | ||
28375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
28376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28378 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
28379 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28380 | { | |
28381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28382 | (arg1)->SetStateImageList(arg2); | |
28383 | ||
28384 | wxPyEndAllowThreads(__tstate); | |
28385 | if (PyErr_Occurred()) SWIG_fail; | |
28386 | } | |
28387 | Py_INCREF(Py_None); resultobj = Py_None; | |
28388 | return resultobj; | |
28389 | fail: | |
28390 | return NULL; | |
28391 | } | |
28392 | ||
28393 | ||
28394 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
28395 | PyObject *resultobj; | |
28396 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28397 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28398 | PyObject * obj0 = 0 ; | |
28399 | PyObject * obj1 = 0 ; | |
28400 | char *kwnames[] = { | |
28401 | (char *) "self",(char *) "imageList", NULL | |
28402 | }; | |
28403 | ||
28404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
28405 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28406 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28407 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28408 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28409 | { | |
28410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28411 | (arg1)->AssignImageList(arg2); | |
28412 | ||
28413 | wxPyEndAllowThreads(__tstate); | |
28414 | if (PyErr_Occurred()) SWIG_fail; | |
28415 | } | |
28416 | Py_INCREF(Py_None); resultobj = Py_None; | |
28417 | return resultobj; | |
28418 | fail: | |
28419 | return NULL; | |
28420 | } | |
28421 | ||
28422 | ||
28423 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
28424 | PyObject *resultobj; | |
28425 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28426 | wxImageList *arg2 = (wxImageList *) 0 ; | |
28427 | PyObject * obj0 = 0 ; | |
28428 | PyObject * obj1 = 0 ; | |
28429 | char *kwnames[] = { | |
28430 | (char *) "self",(char *) "imageList", NULL | |
28431 | }; | |
28432 | ||
28433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
28434 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28435 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28436 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
28437 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28438 | { | |
28439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28440 | (arg1)->AssignStateImageList(arg2); | |
28441 | ||
28442 | wxPyEndAllowThreads(__tstate); | |
28443 | if (PyErr_Occurred()) SWIG_fail; | |
28444 | } | |
28445 | Py_INCREF(Py_None); resultobj = Py_None; | |
28446 | return resultobj; | |
28447 | fail: | |
28448 | return NULL; | |
28449 | } | |
28450 | ||
28451 | ||
28452 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { | |
28453 | PyObject *resultobj; | |
28454 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28455 | wxTreeItemId *arg2 = 0 ; | |
28456 | wxString result; | |
28457 | PyObject * obj0 = 0 ; | |
28458 | PyObject * obj1 = 0 ; | |
28459 | char *kwnames[] = { | |
28460 | (char *) "self",(char *) "item", NULL | |
28461 | }; | |
28462 | ||
28463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
28464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28466 | { | |
28467 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28468 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28469 | if (arg2 == NULL) { | |
28470 | SWIG_null_ref("wxTreeItemId"); | |
28471 | } | |
28472 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28473 | } | |
28474 | { | |
28475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28476 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
28477 | ||
28478 | wxPyEndAllowThreads(__tstate); | |
28479 | if (PyErr_Occurred()) SWIG_fail; | |
28480 | } | |
28481 | { | |
28482 | #if wxUSE_UNICODE | |
28483 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28484 | #else | |
28485 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28486 | #endif | |
28487 | } | |
28488 | return resultobj; | |
28489 | fail: | |
28490 | return NULL; | |
28491 | } | |
28492 | ||
28493 | ||
28494 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
28495 | PyObject *resultobj; | |
28496 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28497 | wxTreeItemId *arg2 = 0 ; | |
28498 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
28499 | int result; | |
28500 | PyObject * obj0 = 0 ; | |
28501 | PyObject * obj1 = 0 ; | |
28502 | PyObject * obj2 = 0 ; | |
28503 | char *kwnames[] = { | |
28504 | (char *) "self",(char *) "item",(char *) "which", NULL | |
28505 | }; | |
28506 | ||
28507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28510 | { | |
28511 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28512 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28513 | if (arg2 == NULL) { | |
28514 | SWIG_null_ref("wxTreeItemId"); | |
28515 | } | |
28516 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28517 | } | |
28518 | if (obj2) { | |
28519 | { | |
28520 | arg3 = (wxTreeItemIcon)(SWIG_As_int(obj2)); | |
28521 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28522 | } | |
28523 | } | |
28524 | { | |
28525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28526 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
28527 | ||
28528 | wxPyEndAllowThreads(__tstate); | |
28529 | if (PyErr_Occurred()) SWIG_fail; | |
28530 | } | |
28531 | { | |
28532 | resultobj = SWIG_From_int((int)(result)); | |
28533 | } | |
28534 | return resultobj; | |
28535 | fail: | |
28536 | return NULL; | |
28537 | } | |
28538 | ||
28539 | ||
28540 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { | |
28541 | PyObject *resultobj; | |
28542 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28543 | wxTreeItemId *arg2 = 0 ; | |
28544 | wxPyTreeItemData *result; | |
28545 | PyObject * obj0 = 0 ; | |
28546 | PyObject * obj1 = 0 ; | |
28547 | char *kwnames[] = { | |
28548 | (char *) "self",(char *) "item", NULL | |
28549 | }; | |
28550 | ||
28551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
28552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28554 | { | |
28555 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28556 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28557 | if (arg2 == NULL) { | |
28558 | SWIG_null_ref("wxTreeItemId"); | |
28559 | } | |
28560 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28561 | } | |
28562 | { | |
28563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28564 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
28565 | ||
28566 | wxPyEndAllowThreads(__tstate); | |
28567 | if (PyErr_Occurred()) SWIG_fail; | |
28568 | } | |
28569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
28570 | return resultobj; | |
28571 | fail: | |
28572 | return NULL; | |
28573 | } | |
28574 | ||
28575 | ||
28576 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { | |
28577 | PyObject *resultobj; | |
28578 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28579 | wxTreeItemId *arg2 = 0 ; | |
28580 | PyObject *result; | |
28581 | PyObject * obj0 = 0 ; | |
28582 | PyObject * obj1 = 0 ; | |
28583 | char *kwnames[] = { | |
28584 | (char *) "self",(char *) "item", NULL | |
28585 | }; | |
28586 | ||
28587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
28588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28590 | { | |
28591 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28592 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28593 | if (arg2 == NULL) { | |
28594 | SWIG_null_ref("wxTreeItemId"); | |
28595 | } | |
28596 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28597 | } | |
28598 | { | |
28599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28600 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
28601 | ||
28602 | wxPyEndAllowThreads(__tstate); | |
28603 | if (PyErr_Occurred()) SWIG_fail; | |
28604 | } | |
28605 | resultobj = result; | |
28606 | return resultobj; | |
28607 | fail: | |
28608 | return NULL; | |
28609 | } | |
28610 | ||
28611 | ||
28612 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
28613 | PyObject *resultobj; | |
28614 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28615 | wxTreeItemId *arg2 = 0 ; | |
28616 | wxColour result; | |
28617 | PyObject * obj0 = 0 ; | |
28618 | PyObject * obj1 = 0 ; | |
28619 | char *kwnames[] = { | |
28620 | (char *) "self",(char *) "item", NULL | |
28621 | }; | |
28622 | ||
28623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
28624 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28625 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28626 | { | |
28627 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28629 | if (arg2 == NULL) { | |
28630 | SWIG_null_ref("wxTreeItemId"); | |
28631 | } | |
28632 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28633 | } | |
28634 | { | |
28635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28636 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
28637 | ||
28638 | wxPyEndAllowThreads(__tstate); | |
28639 | if (PyErr_Occurred()) SWIG_fail; | |
28640 | } | |
28641 | { | |
28642 | wxColour * resultptr; | |
28643 | resultptr = new wxColour((wxColour &)(result)); | |
28644 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
28645 | } | |
28646 | return resultobj; | |
28647 | fail: | |
28648 | return NULL; | |
28649 | } | |
28650 | ||
28651 | ||
28652 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
28653 | PyObject *resultobj; | |
28654 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28655 | wxTreeItemId *arg2 = 0 ; | |
28656 | wxColour result; | |
28657 | PyObject * obj0 = 0 ; | |
28658 | PyObject * obj1 = 0 ; | |
28659 | char *kwnames[] = { | |
28660 | (char *) "self",(char *) "item", NULL | |
28661 | }; | |
28662 | ||
28663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
28664 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28665 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28666 | { | |
28667 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28668 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28669 | if (arg2 == NULL) { | |
28670 | SWIG_null_ref("wxTreeItemId"); | |
28671 | } | |
28672 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28673 | } | |
28674 | { | |
28675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28676 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
28677 | ||
28678 | wxPyEndAllowThreads(__tstate); | |
28679 | if (PyErr_Occurred()) SWIG_fail; | |
28680 | } | |
28681 | { | |
28682 | wxColour * resultptr; | |
28683 | resultptr = new wxColour((wxColour &)(result)); | |
28684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
28685 | } | |
28686 | return resultobj; | |
28687 | fail: | |
28688 | return NULL; | |
28689 | } | |
28690 | ||
28691 | ||
28692 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
28693 | PyObject *resultobj; | |
28694 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28695 | wxTreeItemId *arg2 = 0 ; | |
28696 | wxFont result; | |
28697 | PyObject * obj0 = 0 ; | |
28698 | PyObject * obj1 = 0 ; | |
28699 | char *kwnames[] = { | |
28700 | (char *) "self",(char *) "item", NULL | |
28701 | }; | |
28702 | ||
28703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
28704 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28705 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28706 | { | |
28707 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28708 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28709 | if (arg2 == NULL) { | |
28710 | SWIG_null_ref("wxTreeItemId"); | |
28711 | } | |
28712 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28713 | } | |
28714 | { | |
28715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28716 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
28717 | ||
28718 | wxPyEndAllowThreads(__tstate); | |
28719 | if (PyErr_Occurred()) SWIG_fail; | |
28720 | } | |
28721 | { | |
28722 | wxFont * resultptr; | |
28723 | resultptr = new wxFont((wxFont &)(result)); | |
28724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
28725 | } | |
28726 | return resultobj; | |
28727 | fail: | |
28728 | return NULL; | |
28729 | } | |
28730 | ||
28731 | ||
28732 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { | |
28733 | PyObject *resultobj; | |
28734 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28735 | wxTreeItemId *arg2 = 0 ; | |
28736 | wxString *arg3 = 0 ; | |
28737 | bool temp3 = false ; | |
28738 | PyObject * obj0 = 0 ; | |
28739 | PyObject * obj1 = 0 ; | |
28740 | PyObject * obj2 = 0 ; | |
28741 | char *kwnames[] = { | |
28742 | (char *) "self",(char *) "item",(char *) "text", NULL | |
28743 | }; | |
28744 | ||
28745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28748 | { | |
28749 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28750 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28751 | if (arg2 == NULL) { | |
28752 | SWIG_null_ref("wxTreeItemId"); | |
28753 | } | |
28754 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28755 | } | |
28756 | { | |
28757 | arg3 = wxString_in_helper(obj2); | |
28758 | if (arg3 == NULL) SWIG_fail; | |
28759 | temp3 = true; | |
28760 | } | |
28761 | { | |
28762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28763 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
28764 | ||
28765 | wxPyEndAllowThreads(__tstate); | |
28766 | if (PyErr_Occurred()) SWIG_fail; | |
28767 | } | |
28768 | Py_INCREF(Py_None); resultobj = Py_None; | |
28769 | { | |
28770 | if (temp3) | |
28771 | delete arg3; | |
28772 | } | |
28773 | return resultobj; | |
28774 | fail: | |
28775 | { | |
28776 | if (temp3) | |
28777 | delete arg3; | |
28778 | } | |
28779 | return NULL; | |
28780 | } | |
28781 | ||
28782 | ||
28783 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
28784 | PyObject *resultobj; | |
28785 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28786 | wxTreeItemId *arg2 = 0 ; | |
28787 | int arg3 ; | |
28788 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; | |
28789 | PyObject * obj0 = 0 ; | |
28790 | PyObject * obj1 = 0 ; | |
28791 | PyObject * obj2 = 0 ; | |
28792 | PyObject * obj3 = 0 ; | |
28793 | char *kwnames[] = { | |
28794 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
28795 | }; | |
28796 | ||
28797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28799 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28800 | { | |
28801 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28802 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28803 | if (arg2 == NULL) { | |
28804 | SWIG_null_ref("wxTreeItemId"); | |
28805 | } | |
28806 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28807 | } | |
28808 | { | |
28809 | arg3 = (int)(SWIG_As_int(obj2)); | |
28810 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28811 | } | |
28812 | if (obj3) { | |
28813 | { | |
28814 | arg4 = (wxTreeItemIcon)(SWIG_As_int(obj3)); | |
28815 | if (SWIG_arg_fail(4)) SWIG_fail; | |
28816 | } | |
28817 | } | |
28818 | { | |
28819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28820 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
28821 | ||
28822 | wxPyEndAllowThreads(__tstate); | |
28823 | if (PyErr_Occurred()) SWIG_fail; | |
28824 | } | |
28825 | Py_INCREF(Py_None); resultobj = Py_None; | |
28826 | return resultobj; | |
28827 | fail: | |
28828 | return NULL; | |
28829 | } | |
28830 | ||
28831 | ||
28832 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { | |
28833 | PyObject *resultobj; | |
28834 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28835 | wxTreeItemId *arg2 = 0 ; | |
28836 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
28837 | PyObject * obj0 = 0 ; | |
28838 | PyObject * obj1 = 0 ; | |
28839 | PyObject * obj2 = 0 ; | |
28840 | char *kwnames[] = { | |
28841 | (char *) "self",(char *) "item",(char *) "data", NULL | |
28842 | }; | |
28843 | ||
28844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28845 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28846 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28847 | { | |
28848 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28849 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28850 | if (arg2 == NULL) { | |
28851 | SWIG_null_ref("wxTreeItemId"); | |
28852 | } | |
28853 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28854 | } | |
28855 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
28856 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28857 | { | |
28858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28859 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28860 | ||
28861 | wxPyEndAllowThreads(__tstate); | |
28862 | if (PyErr_Occurred()) SWIG_fail; | |
28863 | } | |
28864 | Py_INCREF(Py_None); resultobj = Py_None; | |
28865 | return resultobj; | |
28866 | fail: | |
28867 | return NULL; | |
28868 | } | |
28869 | ||
28870 | ||
28871 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { | |
28872 | PyObject *resultobj; | |
28873 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28874 | wxTreeItemId *arg2 = 0 ; | |
28875 | PyObject *arg3 = (PyObject *) 0 ; | |
28876 | PyObject * obj0 = 0 ; | |
28877 | PyObject * obj1 = 0 ; | |
28878 | PyObject * obj2 = 0 ; | |
28879 | char *kwnames[] = { | |
28880 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
28881 | }; | |
28882 | ||
28883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28886 | { | |
28887 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28889 | if (arg2 == NULL) { | |
28890 | SWIG_null_ref("wxTreeItemId"); | |
28891 | } | |
28892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28893 | } | |
28894 | arg3 = obj2; | |
28895 | { | |
28896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28897 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
28898 | ||
28899 | wxPyEndAllowThreads(__tstate); | |
28900 | if (PyErr_Occurred()) SWIG_fail; | |
28901 | } | |
28902 | Py_INCREF(Py_None); resultobj = Py_None; | |
28903 | return resultobj; | |
28904 | fail: | |
28905 | return NULL; | |
28906 | } | |
28907 | ||
28908 | ||
28909 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { | |
28910 | PyObject *resultobj; | |
28911 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28912 | wxTreeItemId *arg2 = 0 ; | |
28913 | bool arg3 = (bool) true ; | |
28914 | PyObject * obj0 = 0 ; | |
28915 | PyObject * obj1 = 0 ; | |
28916 | PyObject * obj2 = 0 ; | |
28917 | char *kwnames[] = { | |
28918 | (char *) "self",(char *) "item",(char *) "has", NULL | |
28919 | }; | |
28920 | ||
28921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28922 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28923 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28924 | { | |
28925 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28926 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28927 | if (arg2 == NULL) { | |
28928 | SWIG_null_ref("wxTreeItemId"); | |
28929 | } | |
28930 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28931 | } | |
28932 | if (obj2) { | |
28933 | { | |
28934 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
28935 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28936 | } | |
28937 | } | |
28938 | { | |
28939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28940 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
28941 | ||
28942 | wxPyEndAllowThreads(__tstate); | |
28943 | if (PyErr_Occurred()) SWIG_fail; | |
28944 | } | |
28945 | Py_INCREF(Py_None); resultobj = Py_None; | |
28946 | return resultobj; | |
28947 | fail: | |
28948 | return NULL; | |
28949 | } | |
28950 | ||
28951 | ||
28952 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { | |
28953 | PyObject *resultobj; | |
28954 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28955 | wxTreeItemId *arg2 = 0 ; | |
28956 | bool arg3 = (bool) true ; | |
28957 | PyObject * obj0 = 0 ; | |
28958 | PyObject * obj1 = 0 ; | |
28959 | PyObject * obj2 = 0 ; | |
28960 | char *kwnames[] = { | |
28961 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
28962 | }; | |
28963 | ||
28964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28965 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
28966 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28967 | { | |
28968 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28969 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28970 | if (arg2 == NULL) { | |
28971 | SWIG_null_ref("wxTreeItemId"); | |
28972 | } | |
28973 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28974 | } | |
28975 | if (obj2) { | |
28976 | { | |
28977 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
28978 | if (SWIG_arg_fail(3)) SWIG_fail; | |
28979 | } | |
28980 | } | |
28981 | { | |
28982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28983 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
28984 | ||
28985 | wxPyEndAllowThreads(__tstate); | |
28986 | if (PyErr_Occurred()) SWIG_fail; | |
28987 | } | |
28988 | Py_INCREF(Py_None); resultobj = Py_None; | |
28989 | return resultobj; | |
28990 | fail: | |
28991 | return NULL; | |
28992 | } | |
28993 | ||
28994 | ||
28995 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) { | |
28996 | PyObject *resultobj; | |
28997 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
28998 | wxTreeItemId *arg2 = 0 ; | |
28999 | bool arg3 = (bool) true ; | |
29000 | PyObject * obj0 = 0 ; | |
29001 | PyObject * obj1 = 0 ; | |
29002 | PyObject * obj2 = 0 ; | |
29003 | char *kwnames[] = { | |
29004 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
29005 | }; | |
29006 | ||
29007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29010 | { | |
29011 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29012 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29013 | if (arg2 == NULL) { | |
29014 | SWIG_null_ref("wxTreeItemId"); | |
29015 | } | |
29016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29017 | } | |
29018 | if (obj2) { | |
29019 | { | |
29020 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29021 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29022 | } | |
29023 | } | |
29024 | { | |
29025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29026 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
29027 | ||
29028 | wxPyEndAllowThreads(__tstate); | |
29029 | if (PyErr_Occurred()) SWIG_fail; | |
29030 | } | |
29031 | Py_INCREF(Py_None); resultobj = Py_None; | |
29032 | return resultobj; | |
29033 | fail: | |
29034 | return NULL; | |
29035 | } | |
29036 | ||
29037 | ||
29038 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
29039 | PyObject *resultobj; | |
29040 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29041 | wxTreeItemId *arg2 = 0 ; | |
29042 | wxColour *arg3 = 0 ; | |
29043 | wxColour temp3 ; | |
29044 | PyObject * obj0 = 0 ; | |
29045 | PyObject * obj1 = 0 ; | |
29046 | PyObject * obj2 = 0 ; | |
29047 | char *kwnames[] = { | |
29048 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29049 | }; | |
29050 | ||
29051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29054 | { | |
29055 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29056 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29057 | if (arg2 == NULL) { | |
29058 | SWIG_null_ref("wxTreeItemId"); | |
29059 | } | |
29060 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29061 | } | |
29062 | { | |
29063 | arg3 = &temp3; | |
29064 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29065 | } | |
29066 | { | |
29067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29068 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29069 | ||
29070 | wxPyEndAllowThreads(__tstate); | |
29071 | if (PyErr_Occurred()) SWIG_fail; | |
29072 | } | |
29073 | Py_INCREF(Py_None); resultobj = Py_None; | |
29074 | return resultobj; | |
29075 | fail: | |
29076 | return NULL; | |
29077 | } | |
29078 | ||
29079 | ||
29080 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
29081 | PyObject *resultobj; | |
29082 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29083 | wxTreeItemId *arg2 = 0 ; | |
29084 | wxColour *arg3 = 0 ; | |
29085 | wxColour temp3 ; | |
29086 | PyObject * obj0 = 0 ; | |
29087 | PyObject * obj1 = 0 ; | |
29088 | PyObject * obj2 = 0 ; | |
29089 | char *kwnames[] = { | |
29090 | (char *) "self",(char *) "item",(char *) "col", NULL | |
29091 | }; | |
29092 | ||
29093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29096 | { | |
29097 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29098 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29099 | if (arg2 == NULL) { | |
29100 | SWIG_null_ref("wxTreeItemId"); | |
29101 | } | |
29102 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29103 | } | |
29104 | { | |
29105 | arg3 = &temp3; | |
29106 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29107 | } | |
29108 | { | |
29109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29110 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
29111 | ||
29112 | wxPyEndAllowThreads(__tstate); | |
29113 | if (PyErr_Occurred()) SWIG_fail; | |
29114 | } | |
29115 | Py_INCREF(Py_None); resultobj = Py_None; | |
29116 | return resultobj; | |
29117 | fail: | |
29118 | return NULL; | |
29119 | } | |
29120 | ||
29121 | ||
29122 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
29123 | PyObject *resultobj; | |
29124 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29125 | wxTreeItemId *arg2 = 0 ; | |
29126 | wxFont *arg3 = 0 ; | |
29127 | PyObject * obj0 = 0 ; | |
29128 | PyObject * obj1 = 0 ; | |
29129 | PyObject * obj2 = 0 ; | |
29130 | char *kwnames[] = { | |
29131 | (char *) "self",(char *) "item",(char *) "font", NULL | |
29132 | }; | |
29133 | ||
29134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29135 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29136 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29137 | { | |
29138 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29139 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29140 | if (arg2 == NULL) { | |
29141 | SWIG_null_ref("wxTreeItemId"); | |
29142 | } | |
29143 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29144 | } | |
29145 | { | |
29146 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
29147 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29148 | if (arg3 == NULL) { | |
29149 | SWIG_null_ref("wxFont"); | |
29150 | } | |
29151 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29152 | } | |
29153 | { | |
29154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29155 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
29156 | ||
29157 | wxPyEndAllowThreads(__tstate); | |
29158 | if (PyErr_Occurred()) SWIG_fail; | |
29159 | } | |
29160 | Py_INCREF(Py_None); resultobj = Py_None; | |
29161 | return resultobj; | |
29162 | fail: | |
29163 | return NULL; | |
29164 | } | |
29165 | ||
29166 | ||
29167 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
29168 | PyObject *resultobj; | |
29169 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29170 | wxTreeItemId *arg2 = 0 ; | |
29171 | bool result; | |
29172 | PyObject * obj0 = 0 ; | |
29173 | PyObject * obj1 = 0 ; | |
29174 | char *kwnames[] = { | |
29175 | (char *) "self",(char *) "item", NULL | |
29176 | }; | |
29177 | ||
29178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
29179 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29180 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29181 | { | |
29182 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29183 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29184 | if (arg2 == NULL) { | |
29185 | SWIG_null_ref("wxTreeItemId"); | |
29186 | } | |
29187 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29188 | } | |
29189 | { | |
29190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29191 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
29192 | ||
29193 | wxPyEndAllowThreads(__tstate); | |
29194 | if (PyErr_Occurred()) SWIG_fail; | |
29195 | } | |
29196 | { | |
29197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29198 | } | |
29199 | return resultobj; | |
29200 | fail: | |
29201 | return NULL; | |
29202 | } | |
29203 | ||
29204 | ||
29205 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { | |
29206 | PyObject *resultobj; | |
29207 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29208 | wxTreeItemId *arg2 = 0 ; | |
29209 | bool result; | |
29210 | PyObject * obj0 = 0 ; | |
29211 | PyObject * obj1 = 0 ; | |
29212 | char *kwnames[] = { | |
29213 | (char *) "self",(char *) "item", NULL | |
29214 | }; | |
29215 | ||
29216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
29217 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29218 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29219 | { | |
29220 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29221 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29222 | if (arg2 == NULL) { | |
29223 | SWIG_null_ref("wxTreeItemId"); | |
29224 | } | |
29225 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29226 | } | |
29227 | { | |
29228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29229 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
29230 | ||
29231 | wxPyEndAllowThreads(__tstate); | |
29232 | if (PyErr_Occurred()) SWIG_fail; | |
29233 | } | |
29234 | { | |
29235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29236 | } | |
29237 | return resultobj; | |
29238 | fail: | |
29239 | return NULL; | |
29240 | } | |
29241 | ||
29242 | ||
29243 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { | |
29244 | PyObject *resultobj; | |
29245 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29246 | wxTreeItemId *arg2 = 0 ; | |
29247 | bool result; | |
29248 | PyObject * obj0 = 0 ; | |
29249 | PyObject * obj1 = 0 ; | |
29250 | char *kwnames[] = { | |
29251 | (char *) "self",(char *) "item", NULL | |
29252 | }; | |
29253 | ||
29254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
29255 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29256 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29257 | { | |
29258 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29259 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29260 | if (arg2 == NULL) { | |
29261 | SWIG_null_ref("wxTreeItemId"); | |
29262 | } | |
29263 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29264 | } | |
29265 | { | |
29266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29267 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
29268 | ||
29269 | wxPyEndAllowThreads(__tstate); | |
29270 | if (PyErr_Occurred()) SWIG_fail; | |
29271 | } | |
29272 | { | |
29273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29274 | } | |
29275 | return resultobj; | |
29276 | fail: | |
29277 | return NULL; | |
29278 | } | |
29279 | ||
29280 | ||
29281 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { | |
29282 | PyObject *resultobj; | |
29283 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29284 | wxTreeItemId *arg2 = 0 ; | |
29285 | bool result; | |
29286 | PyObject * obj0 = 0 ; | |
29287 | PyObject * obj1 = 0 ; | |
29288 | char *kwnames[] = { | |
29289 | (char *) "self",(char *) "item", NULL | |
29290 | }; | |
29291 | ||
29292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
29293 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29294 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29295 | { | |
29296 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29297 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29298 | if (arg2 == NULL) { | |
29299 | SWIG_null_ref("wxTreeItemId"); | |
29300 | } | |
29301 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29302 | } | |
29303 | { | |
29304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29305 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
29306 | ||
29307 | wxPyEndAllowThreads(__tstate); | |
29308 | if (PyErr_Occurred()) SWIG_fail; | |
29309 | } | |
29310 | { | |
29311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29312 | } | |
29313 | return resultobj; | |
29314 | fail: | |
29315 | return NULL; | |
29316 | } | |
29317 | ||
29318 | ||
29319 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { | |
29320 | PyObject *resultobj; | |
29321 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29322 | wxTreeItemId *arg2 = 0 ; | |
29323 | bool result; | |
29324 | PyObject * obj0 = 0 ; | |
29325 | PyObject * obj1 = 0 ; | |
29326 | char *kwnames[] = { | |
29327 | (char *) "self",(char *) "item", NULL | |
29328 | }; | |
29329 | ||
29330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
29331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29333 | { | |
29334 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29336 | if (arg2 == NULL) { | |
29337 | SWIG_null_ref("wxTreeItemId"); | |
29338 | } | |
29339 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29340 | } | |
29341 | { | |
29342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29343 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
29344 | ||
29345 | wxPyEndAllowThreads(__tstate); | |
29346 | if (PyErr_Occurred()) SWIG_fail; | |
29347 | } | |
29348 | { | |
29349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29350 | } | |
29351 | return resultobj; | |
29352 | fail: | |
29353 | return NULL; | |
29354 | } | |
29355 | ||
29356 | ||
29357 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
29358 | PyObject *resultobj; | |
29359 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29360 | wxTreeItemId *arg2 = 0 ; | |
29361 | bool arg3 = (bool) true ; | |
29362 | size_t result; | |
29363 | PyObject * obj0 = 0 ; | |
29364 | PyObject * obj1 = 0 ; | |
29365 | PyObject * obj2 = 0 ; | |
29366 | char *kwnames[] = { | |
29367 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
29368 | }; | |
29369 | ||
29370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29373 | { | |
29374 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29375 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29376 | if (arg2 == NULL) { | |
29377 | SWIG_null_ref("wxTreeItemId"); | |
29378 | } | |
29379 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29380 | } | |
29381 | if (obj2) { | |
29382 | { | |
29383 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
29384 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29385 | } | |
29386 | } | |
29387 | { | |
29388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29389 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
29390 | ||
29391 | wxPyEndAllowThreads(__tstate); | |
29392 | if (PyErr_Occurred()) SWIG_fail; | |
29393 | } | |
29394 | { | |
29395 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); | |
29396 | } | |
29397 | return resultobj; | |
29398 | fail: | |
29399 | return NULL; | |
29400 | } | |
29401 | ||
29402 | ||
29403 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
29404 | PyObject *resultobj; | |
29405 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29406 | wxTreeItemId result; | |
29407 | PyObject * obj0 = 0 ; | |
29408 | char *kwnames[] = { | |
29409 | (char *) "self", NULL | |
29410 | }; | |
29411 | ||
29412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
29413 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29414 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29415 | { | |
29416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29417 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
29418 | ||
29419 | wxPyEndAllowThreads(__tstate); | |
29420 | if (PyErr_Occurred()) SWIG_fail; | |
29421 | } | |
29422 | { | |
29423 | wxTreeItemId * resultptr; | |
29424 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29426 | } | |
29427 | return resultobj; | |
29428 | fail: | |
29429 | return NULL; | |
29430 | } | |
29431 | ||
29432 | ||
29433 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
29434 | PyObject *resultobj; | |
29435 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29436 | wxTreeItemId result; | |
29437 | PyObject * obj0 = 0 ; | |
29438 | char *kwnames[] = { | |
29439 | (char *) "self", NULL | |
29440 | }; | |
29441 | ||
29442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
29443 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29444 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29445 | { | |
29446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29447 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
29448 | ||
29449 | wxPyEndAllowThreads(__tstate); | |
29450 | if (PyErr_Occurred()) SWIG_fail; | |
29451 | } | |
29452 | { | |
29453 | wxTreeItemId * resultptr; | |
29454 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29456 | } | |
29457 | return resultobj; | |
29458 | fail: | |
29459 | return NULL; | |
29460 | } | |
29461 | ||
29462 | ||
29463 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { | |
29464 | PyObject *resultobj; | |
29465 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29466 | PyObject *result; | |
29467 | PyObject * obj0 = 0 ; | |
29468 | char *kwnames[] = { | |
29469 | (char *) "self", NULL | |
29470 | }; | |
29471 | ||
29472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
29473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29475 | { | |
29476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29477 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
29478 | ||
29479 | wxPyEndAllowThreads(__tstate); | |
29480 | if (PyErr_Occurred()) SWIG_fail; | |
29481 | } | |
29482 | resultobj = result; | |
29483 | return resultobj; | |
29484 | fail: | |
29485 | return NULL; | |
29486 | } | |
29487 | ||
29488 | ||
29489 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
29490 | PyObject *resultobj; | |
29491 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29492 | wxTreeItemId *arg2 = 0 ; | |
29493 | wxTreeItemId result; | |
29494 | PyObject * obj0 = 0 ; | |
29495 | PyObject * obj1 = 0 ; | |
29496 | char *kwnames[] = { | |
29497 | (char *) "self",(char *) "item", NULL | |
29498 | }; | |
29499 | ||
29500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
29501 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29502 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29503 | { | |
29504 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29505 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29506 | if (arg2 == NULL) { | |
29507 | SWIG_null_ref("wxTreeItemId"); | |
29508 | } | |
29509 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29510 | } | |
29511 | { | |
29512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29513 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
29514 | ||
29515 | wxPyEndAllowThreads(__tstate); | |
29516 | if (PyErr_Occurred()) SWIG_fail; | |
29517 | } | |
29518 | { | |
29519 | wxTreeItemId * resultptr; | |
29520 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29521 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29522 | } | |
29523 | return resultobj; | |
29524 | fail: | |
29525 | return NULL; | |
29526 | } | |
29527 | ||
29528 | ||
29529 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
29530 | PyObject *resultobj; | |
29531 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29532 | wxTreeItemId *arg2 = 0 ; | |
29533 | PyObject *result; | |
29534 | PyObject * obj0 = 0 ; | |
29535 | PyObject * obj1 = 0 ; | |
29536 | char *kwnames[] = { | |
29537 | (char *) "self",(char *) "item", NULL | |
29538 | }; | |
29539 | ||
29540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
29541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29543 | { | |
29544 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29545 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29546 | if (arg2 == NULL) { | |
29547 | SWIG_null_ref("wxTreeItemId"); | |
29548 | } | |
29549 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29550 | } | |
29551 | { | |
29552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29553 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
29554 | ||
29555 | wxPyEndAllowThreads(__tstate); | |
29556 | if (PyErr_Occurred()) SWIG_fail; | |
29557 | } | |
29558 | resultobj = result; | |
29559 | return resultobj; | |
29560 | fail: | |
29561 | return NULL; | |
29562 | } | |
29563 | ||
29564 | ||
29565 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
29566 | PyObject *resultobj; | |
29567 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29568 | wxTreeItemId *arg2 = 0 ; | |
29569 | void *arg3 = (void *) 0 ; | |
29570 | PyObject *result; | |
29571 | PyObject * obj0 = 0 ; | |
29572 | PyObject * obj1 = 0 ; | |
29573 | PyObject * obj2 = 0 ; | |
29574 | char *kwnames[] = { | |
29575 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
29576 | }; | |
29577 | ||
29578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29579 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29580 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29581 | { | |
29582 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29583 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29584 | if (arg2 == NULL) { | |
29585 | SWIG_null_ref("wxTreeItemId"); | |
29586 | } | |
29587 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29588 | } | |
29589 | { | |
29590 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),0,SWIG_POINTER_EXCEPTION|0))== -1) { | |
29591 | SWIG_arg_fail(3);SWIG_fail; | |
29592 | } | |
29593 | } | |
29594 | { | |
29595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29596 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
29597 | ||
29598 | wxPyEndAllowThreads(__tstate); | |
29599 | if (PyErr_Occurred()) SWIG_fail; | |
29600 | } | |
29601 | resultobj = result; | |
29602 | return resultobj; | |
29603 | fail: | |
29604 | return NULL; | |
29605 | } | |
29606 | ||
29607 | ||
29608 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
29609 | PyObject *resultobj; | |
29610 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29611 | wxTreeItemId *arg2 = 0 ; | |
29612 | wxTreeItemId result; | |
29613 | PyObject * obj0 = 0 ; | |
29614 | PyObject * obj1 = 0 ; | |
29615 | char *kwnames[] = { | |
29616 | (char *) "self",(char *) "item", NULL | |
29617 | }; | |
29618 | ||
29619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
29620 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29621 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29622 | { | |
29623 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29624 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29625 | if (arg2 == NULL) { | |
29626 | SWIG_null_ref("wxTreeItemId"); | |
29627 | } | |
29628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29629 | } | |
29630 | { | |
29631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29632 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
29633 | ||
29634 | wxPyEndAllowThreads(__tstate); | |
29635 | if (PyErr_Occurred()) SWIG_fail; | |
29636 | } | |
29637 | { | |
29638 | wxTreeItemId * resultptr; | |
29639 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29640 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29641 | } | |
29642 | return resultobj; | |
29643 | fail: | |
29644 | return NULL; | |
29645 | } | |
29646 | ||
29647 | ||
29648 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { | |
29649 | PyObject *resultobj; | |
29650 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29651 | wxTreeItemId *arg2 = 0 ; | |
29652 | wxTreeItemId result; | |
29653 | PyObject * obj0 = 0 ; | |
29654 | PyObject * obj1 = 0 ; | |
29655 | char *kwnames[] = { | |
29656 | (char *) "self",(char *) "item", NULL | |
29657 | }; | |
29658 | ||
29659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
29660 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29661 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29662 | { | |
29663 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29664 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29665 | if (arg2 == NULL) { | |
29666 | SWIG_null_ref("wxTreeItemId"); | |
29667 | } | |
29668 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29669 | } | |
29670 | { | |
29671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29672 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
29673 | ||
29674 | wxPyEndAllowThreads(__tstate); | |
29675 | if (PyErr_Occurred()) SWIG_fail; | |
29676 | } | |
29677 | { | |
29678 | wxTreeItemId * resultptr; | |
29679 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29680 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29681 | } | |
29682 | return resultobj; | |
29683 | fail: | |
29684 | return NULL; | |
29685 | } | |
29686 | ||
29687 | ||
29688 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { | |
29689 | PyObject *resultobj; | |
29690 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29691 | wxTreeItemId *arg2 = 0 ; | |
29692 | wxTreeItemId result; | |
29693 | PyObject * obj0 = 0 ; | |
29694 | PyObject * obj1 = 0 ; | |
29695 | char *kwnames[] = { | |
29696 | (char *) "self",(char *) "item", NULL | |
29697 | }; | |
29698 | ||
29699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
29700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29702 | { | |
29703 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29704 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29705 | if (arg2 == NULL) { | |
29706 | SWIG_null_ref("wxTreeItemId"); | |
29707 | } | |
29708 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29709 | } | |
29710 | { | |
29711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29712 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
29713 | ||
29714 | wxPyEndAllowThreads(__tstate); | |
29715 | if (PyErr_Occurred()) SWIG_fail; | |
29716 | } | |
29717 | { | |
29718 | wxTreeItemId * resultptr; | |
29719 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29720 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29721 | } | |
29722 | return resultobj; | |
29723 | fail: | |
29724 | return NULL; | |
29725 | } | |
29726 | ||
29727 | ||
29728 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
29729 | PyObject *resultobj; | |
29730 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29731 | wxTreeItemId result; | |
29732 | PyObject * obj0 = 0 ; | |
29733 | char *kwnames[] = { | |
29734 | (char *) "self", NULL | |
29735 | }; | |
29736 | ||
29737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
29738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29740 | { | |
29741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29742 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
29743 | ||
29744 | wxPyEndAllowThreads(__tstate); | |
29745 | if (PyErr_Occurred()) SWIG_fail; | |
29746 | } | |
29747 | { | |
29748 | wxTreeItemId * resultptr; | |
29749 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29750 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29751 | } | |
29752 | return resultobj; | |
29753 | fail: | |
29754 | return NULL; | |
29755 | } | |
29756 | ||
29757 | ||
29758 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
29759 | PyObject *resultobj; | |
29760 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29761 | wxTreeItemId *arg2 = 0 ; | |
29762 | wxTreeItemId result; | |
29763 | PyObject * obj0 = 0 ; | |
29764 | PyObject * obj1 = 0 ; | |
29765 | char *kwnames[] = { | |
29766 | (char *) "self",(char *) "item", NULL | |
29767 | }; | |
29768 | ||
29769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
29770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29772 | { | |
29773 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29774 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29775 | if (arg2 == NULL) { | |
29776 | SWIG_null_ref("wxTreeItemId"); | |
29777 | } | |
29778 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29779 | } | |
29780 | { | |
29781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29782 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
29783 | ||
29784 | wxPyEndAllowThreads(__tstate); | |
29785 | if (PyErr_Occurred()) SWIG_fail; | |
29786 | } | |
29787 | { | |
29788 | wxTreeItemId * resultptr; | |
29789 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29790 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29791 | } | |
29792 | return resultobj; | |
29793 | fail: | |
29794 | return NULL; | |
29795 | } | |
29796 | ||
29797 | ||
29798 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
29799 | PyObject *resultobj; | |
29800 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29801 | wxTreeItemId *arg2 = 0 ; | |
29802 | wxTreeItemId result; | |
29803 | PyObject * obj0 = 0 ; | |
29804 | PyObject * obj1 = 0 ; | |
29805 | char *kwnames[] = { | |
29806 | (char *) "self",(char *) "item", NULL | |
29807 | }; | |
29808 | ||
29809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
29810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29812 | { | |
29813 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29814 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29815 | if (arg2 == NULL) { | |
29816 | SWIG_null_ref("wxTreeItemId"); | |
29817 | } | |
29818 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29819 | } | |
29820 | { | |
29821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29822 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
29823 | ||
29824 | wxPyEndAllowThreads(__tstate); | |
29825 | if (PyErr_Occurred()) SWIG_fail; | |
29826 | } | |
29827 | { | |
29828 | wxTreeItemId * resultptr; | |
29829 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29831 | } | |
29832 | return resultobj; | |
29833 | fail: | |
29834 | return NULL; | |
29835 | } | |
29836 | ||
29837 | ||
29838 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { | |
29839 | PyObject *resultobj; | |
29840 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29841 | wxString *arg2 = 0 ; | |
29842 | int arg3 = (int) -1 ; | |
29843 | int arg4 = (int) -1 ; | |
29844 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
29845 | wxTreeItemId result; | |
29846 | bool temp2 = false ; | |
29847 | PyObject * obj0 = 0 ; | |
29848 | PyObject * obj1 = 0 ; | |
29849 | PyObject * obj2 = 0 ; | |
29850 | PyObject * obj3 = 0 ; | |
29851 | PyObject * obj4 = 0 ; | |
29852 | char *kwnames[] = { | |
29853 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29854 | }; | |
29855 | ||
29856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29859 | { | |
29860 | arg2 = wxString_in_helper(obj1); | |
29861 | if (arg2 == NULL) SWIG_fail; | |
29862 | temp2 = true; | |
29863 | } | |
29864 | if (obj2) { | |
29865 | { | |
29866 | arg3 = (int)(SWIG_As_int(obj2)); | |
29867 | if (SWIG_arg_fail(3)) SWIG_fail; | |
29868 | } | |
29869 | } | |
29870 | if (obj3) { | |
29871 | { | |
29872 | arg4 = (int)(SWIG_As_int(obj3)); | |
29873 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29874 | } | |
29875 | } | |
29876 | if (obj4) { | |
29877 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
29878 | if (SWIG_arg_fail(5)) SWIG_fail; | |
29879 | } | |
29880 | { | |
29881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29882 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
29883 | ||
29884 | wxPyEndAllowThreads(__tstate); | |
29885 | if (PyErr_Occurred()) SWIG_fail; | |
29886 | } | |
29887 | { | |
29888 | wxTreeItemId * resultptr; | |
29889 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29891 | } | |
29892 | { | |
29893 | if (temp2) | |
29894 | delete arg2; | |
29895 | } | |
29896 | return resultobj; | |
29897 | fail: | |
29898 | { | |
29899 | if (temp2) | |
29900 | delete arg2; | |
29901 | } | |
29902 | return NULL; | |
29903 | } | |
29904 | ||
29905 | ||
29906 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
29907 | PyObject *resultobj; | |
29908 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29909 | wxTreeItemId *arg2 = 0 ; | |
29910 | wxString *arg3 = 0 ; | |
29911 | int arg4 = (int) -1 ; | |
29912 | int arg5 = (int) -1 ; | |
29913 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
29914 | wxTreeItemId result; | |
29915 | bool temp3 = false ; | |
29916 | PyObject * obj0 = 0 ; | |
29917 | PyObject * obj1 = 0 ; | |
29918 | PyObject * obj2 = 0 ; | |
29919 | PyObject * obj3 = 0 ; | |
29920 | PyObject * obj4 = 0 ; | |
29921 | PyObject * obj5 = 0 ; | |
29922 | char *kwnames[] = { | |
29923 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
29924 | }; | |
29925 | ||
29926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29927 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
29928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29929 | { | |
29930 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29931 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29932 | if (arg2 == NULL) { | |
29933 | SWIG_null_ref("wxTreeItemId"); | |
29934 | } | |
29935 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29936 | } | |
29937 | { | |
29938 | arg3 = wxString_in_helper(obj2); | |
29939 | if (arg3 == NULL) SWIG_fail; | |
29940 | temp3 = true; | |
29941 | } | |
29942 | if (obj3) { | |
29943 | { | |
29944 | arg4 = (int)(SWIG_As_int(obj3)); | |
29945 | if (SWIG_arg_fail(4)) SWIG_fail; | |
29946 | } | |
29947 | } | |
29948 | if (obj4) { | |
29949 | { | |
29950 | arg5 = (int)(SWIG_As_int(obj4)); | |
29951 | if (SWIG_arg_fail(5)) SWIG_fail; | |
29952 | } | |
29953 | } | |
29954 | if (obj5) { | |
29955 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
29956 | if (SWIG_arg_fail(6)) SWIG_fail; | |
29957 | } | |
29958 | { | |
29959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29960 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
29961 | ||
29962 | wxPyEndAllowThreads(__tstate); | |
29963 | if (PyErr_Occurred()) SWIG_fail; | |
29964 | } | |
29965 | { | |
29966 | wxTreeItemId * resultptr; | |
29967 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
29968 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
29969 | } | |
29970 | { | |
29971 | if (temp3) | |
29972 | delete arg3; | |
29973 | } | |
29974 | return resultobj; | |
29975 | fail: | |
29976 | { | |
29977 | if (temp3) | |
29978 | delete arg3; | |
29979 | } | |
29980 | return NULL; | |
29981 | } | |
29982 | ||
29983 | ||
29984 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
29985 | PyObject *resultobj; | |
29986 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
29987 | wxTreeItemId *arg2 = 0 ; | |
29988 | wxTreeItemId *arg3 = 0 ; | |
29989 | wxString *arg4 = 0 ; | |
29990 | int arg5 = (int) -1 ; | |
29991 | int arg6 = (int) -1 ; | |
29992 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
29993 | wxTreeItemId result; | |
29994 | bool temp4 = false ; | |
29995 | PyObject * obj0 = 0 ; | |
29996 | PyObject * obj1 = 0 ; | |
29997 | PyObject * obj2 = 0 ; | |
29998 | PyObject * obj3 = 0 ; | |
29999 | PyObject * obj4 = 0 ; | |
30000 | PyObject * obj5 = 0 ; | |
30001 | PyObject * obj6 = 0 ; | |
30002 | char *kwnames[] = { | |
30003 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30004 | }; | |
30005 | ||
30006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
30007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30009 | { | |
30010 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30011 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30012 | if (arg2 == NULL) { | |
30013 | SWIG_null_ref("wxTreeItemId"); | |
30014 | } | |
30015 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30016 | } | |
30017 | { | |
30018 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30019 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30020 | if (arg3 == NULL) { | |
30021 | SWIG_null_ref("wxTreeItemId"); | |
30022 | } | |
30023 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30024 | } | |
30025 | { | |
30026 | arg4 = wxString_in_helper(obj3); | |
30027 | if (arg4 == NULL) SWIG_fail; | |
30028 | temp4 = true; | |
30029 | } | |
30030 | if (obj4) { | |
30031 | { | |
30032 | arg5 = (int)(SWIG_As_int(obj4)); | |
30033 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30034 | } | |
30035 | } | |
30036 | if (obj5) { | |
30037 | { | |
30038 | arg6 = (int)(SWIG_As_int(obj5)); | |
30039 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30040 | } | |
30041 | } | |
30042 | if (obj6) { | |
30043 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
30044 | if (SWIG_arg_fail(7)) SWIG_fail; | |
30045 | } | |
30046 | { | |
30047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30048 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30049 | ||
30050 | wxPyEndAllowThreads(__tstate); | |
30051 | if (PyErr_Occurred()) SWIG_fail; | |
30052 | } | |
30053 | { | |
30054 | wxTreeItemId * resultptr; | |
30055 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
30056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
30057 | } | |
30058 | { | |
30059 | if (temp4) | |
30060 | delete arg4; | |
30061 | } | |
30062 | return resultobj; | |
30063 | fail: | |
30064 | { | |
30065 | if (temp4) | |
30066 | delete arg4; | |
30067 | } | |
30068 | return NULL; | |
30069 | } | |
30070 | ||
30071 | ||
30072 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { | |
30073 | PyObject *resultobj; | |
30074 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30075 | wxTreeItemId *arg2 = 0 ; | |
30076 | size_t arg3 ; | |
30077 | wxString *arg4 = 0 ; | |
30078 | int arg5 = (int) -1 ; | |
30079 | int arg6 = (int) -1 ; | |
30080 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
30081 | wxTreeItemId result; | |
30082 | bool temp4 = false ; | |
30083 | PyObject * obj0 = 0 ; | |
30084 | PyObject * obj1 = 0 ; | |
30085 | PyObject * obj2 = 0 ; | |
30086 | PyObject * obj3 = 0 ; | |
30087 | PyObject * obj4 = 0 ; | |
30088 | PyObject * obj5 = 0 ; | |
30089 | PyObject * obj6 = 0 ; | |
30090 | char *kwnames[] = { | |
30091 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30092 | }; | |
30093 | ||
30094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
30095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30097 | { | |
30098 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30099 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30100 | if (arg2 == NULL) { | |
30101 | SWIG_null_ref("wxTreeItemId"); | |
30102 | } | |
30103 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30104 | } | |
30105 | { | |
30106 | arg3 = (size_t)(SWIG_As_unsigned_SS_long(obj2)); | |
30107 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30108 | } | |
30109 | { | |
30110 | arg4 = wxString_in_helper(obj3); | |
30111 | if (arg4 == NULL) SWIG_fail; | |
30112 | temp4 = true; | |
30113 | } | |
30114 | if (obj4) { | |
30115 | { | |
30116 | arg5 = (int)(SWIG_As_int(obj4)); | |
30117 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30118 | } | |
30119 | } | |
30120 | if (obj5) { | |
30121 | { | |
30122 | arg6 = (int)(SWIG_As_int(obj5)); | |
30123 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30124 | } | |
30125 | } | |
30126 | if (obj6) { | |
30127 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
30128 | if (SWIG_arg_fail(7)) SWIG_fail; | |
30129 | } | |
30130 | { | |
30131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30132 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
30133 | ||
30134 | wxPyEndAllowThreads(__tstate); | |
30135 | if (PyErr_Occurred()) SWIG_fail; | |
30136 | } | |
30137 | { | |
30138 | wxTreeItemId * resultptr; | |
30139 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
30140 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
30141 | } | |
30142 | { | |
30143 | if (temp4) | |
30144 | delete arg4; | |
30145 | } | |
30146 | return resultobj; | |
30147 | fail: | |
30148 | { | |
30149 | if (temp4) | |
30150 | delete arg4; | |
30151 | } | |
30152 | return NULL; | |
30153 | } | |
30154 | ||
30155 | ||
30156 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
30157 | PyObject *resultobj; | |
30158 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30159 | wxTreeItemId *arg2 = 0 ; | |
30160 | wxString *arg3 = 0 ; | |
30161 | int arg4 = (int) -1 ; | |
30162 | int arg5 = (int) -1 ; | |
30163 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
30164 | wxTreeItemId result; | |
30165 | bool temp3 = false ; | |
30166 | PyObject * obj0 = 0 ; | |
30167 | PyObject * obj1 = 0 ; | |
30168 | PyObject * obj2 = 0 ; | |
30169 | PyObject * obj3 = 0 ; | |
30170 | PyObject * obj4 = 0 ; | |
30171 | PyObject * obj5 = 0 ; | |
30172 | char *kwnames[] = { | |
30173 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
30174 | }; | |
30175 | ||
30176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30179 | { | |
30180 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30182 | if (arg2 == NULL) { | |
30183 | SWIG_null_ref("wxTreeItemId"); | |
30184 | } | |
30185 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30186 | } | |
30187 | { | |
30188 | arg3 = wxString_in_helper(obj2); | |
30189 | if (arg3 == NULL) SWIG_fail; | |
30190 | temp3 = true; | |
30191 | } | |
30192 | if (obj3) { | |
30193 | { | |
30194 | arg4 = (int)(SWIG_As_int(obj3)); | |
30195 | if (SWIG_arg_fail(4)) SWIG_fail; | |
30196 | } | |
30197 | } | |
30198 | if (obj4) { | |
30199 | { | |
30200 | arg5 = (int)(SWIG_As_int(obj4)); | |
30201 | if (SWIG_arg_fail(5)) SWIG_fail; | |
30202 | } | |
30203 | } | |
30204 | if (obj5) { | |
30205 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
30206 | if (SWIG_arg_fail(6)) SWIG_fail; | |
30207 | } | |
30208 | { | |
30209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30210 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
30211 | ||
30212 | wxPyEndAllowThreads(__tstate); | |
30213 | if (PyErr_Occurred()) SWIG_fail; | |
30214 | } | |
30215 | { | |
30216 | wxTreeItemId * resultptr; | |
30217 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
30218 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
30219 | } | |
30220 | { | |
30221 | if (temp3) | |
30222 | delete arg3; | |
30223 | } | |
30224 | return resultobj; | |
30225 | fail: | |
30226 | { | |
30227 | if (temp3) | |
30228 | delete arg3; | |
30229 | } | |
30230 | return NULL; | |
30231 | } | |
30232 | ||
30233 | ||
30234 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { | |
30235 | PyObject *resultobj; | |
30236 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30237 | wxTreeItemId *arg2 = 0 ; | |
30238 | PyObject * obj0 = 0 ; | |
30239 | PyObject * obj1 = 0 ; | |
30240 | char *kwnames[] = { | |
30241 | (char *) "self",(char *) "item", NULL | |
30242 | }; | |
30243 | ||
30244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30245 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30246 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30247 | { | |
30248 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30249 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30250 | if (arg2 == NULL) { | |
30251 | SWIG_null_ref("wxTreeItemId"); | |
30252 | } | |
30253 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30254 | } | |
30255 | { | |
30256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30257 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
30258 | ||
30259 | wxPyEndAllowThreads(__tstate); | |
30260 | if (PyErr_Occurred()) SWIG_fail; | |
30261 | } | |
30262 | Py_INCREF(Py_None); resultobj = Py_None; | |
30263 | return resultobj; | |
30264 | fail: | |
30265 | return NULL; | |
30266 | } | |
30267 | ||
30268 | ||
30269 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { | |
30270 | PyObject *resultobj; | |
30271 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30272 | wxTreeItemId *arg2 = 0 ; | |
30273 | PyObject * obj0 = 0 ; | |
30274 | PyObject * obj1 = 0 ; | |
30275 | char *kwnames[] = { | |
30276 | (char *) "self",(char *) "item", NULL | |
30277 | }; | |
30278 | ||
30279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
30280 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30281 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30282 | { | |
30283 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30284 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30285 | if (arg2 == NULL) { | |
30286 | SWIG_null_ref("wxTreeItemId"); | |
30287 | } | |
30288 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30289 | } | |
30290 | { | |
30291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30292 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
30293 | ||
30294 | wxPyEndAllowThreads(__tstate); | |
30295 | if (PyErr_Occurred()) SWIG_fail; | |
30296 | } | |
30297 | Py_INCREF(Py_None); resultobj = Py_None; | |
30298 | return resultobj; | |
30299 | fail: | |
30300 | return NULL; | |
30301 | } | |
30302 | ||
30303 | ||
30304 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { | |
30305 | PyObject *resultobj; | |
30306 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30307 | PyObject * obj0 = 0 ; | |
30308 | char *kwnames[] = { | |
30309 | (char *) "self", NULL | |
30310 | }; | |
30311 | ||
30312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
30313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30315 | { | |
30316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30317 | (arg1)->DeleteAllItems(); | |
30318 | ||
30319 | wxPyEndAllowThreads(__tstate); | |
30320 | if (PyErr_Occurred()) SWIG_fail; | |
30321 | } | |
30322 | Py_INCREF(Py_None); resultobj = Py_None; | |
30323 | return resultobj; | |
30324 | fail: | |
30325 | return NULL; | |
30326 | } | |
30327 | ||
30328 | ||
30329 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { | |
30330 | PyObject *resultobj; | |
30331 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30332 | wxTreeItemId *arg2 = 0 ; | |
30333 | PyObject * obj0 = 0 ; | |
30334 | PyObject * obj1 = 0 ; | |
30335 | char *kwnames[] = { | |
30336 | (char *) "self",(char *) "item", NULL | |
30337 | }; | |
30338 | ||
30339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
30340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30342 | { | |
30343 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30344 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30345 | if (arg2 == NULL) { | |
30346 | SWIG_null_ref("wxTreeItemId"); | |
30347 | } | |
30348 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30349 | } | |
30350 | { | |
30351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30352 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
30353 | ||
30354 | wxPyEndAllowThreads(__tstate); | |
30355 | if (PyErr_Occurred()) SWIG_fail; | |
30356 | } | |
30357 | Py_INCREF(Py_None); resultobj = Py_None; | |
30358 | return resultobj; | |
30359 | fail: | |
30360 | return NULL; | |
30361 | } | |
30362 | ||
30363 | ||
30364 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { | |
30365 | PyObject *resultobj; | |
30366 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30367 | wxTreeItemId *arg2 = 0 ; | |
30368 | PyObject * obj0 = 0 ; | |
30369 | PyObject * obj1 = 0 ; | |
30370 | char *kwnames[] = { | |
30371 | (char *) "self",(char *) "item", NULL | |
30372 | }; | |
30373 | ||
30374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
30375 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30376 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30377 | { | |
30378 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30379 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30380 | if (arg2 == NULL) { | |
30381 | SWIG_null_ref("wxTreeItemId"); | |
30382 | } | |
30383 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30384 | } | |
30385 | { | |
30386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30387 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
30388 | ||
30389 | wxPyEndAllowThreads(__tstate); | |
30390 | if (PyErr_Occurred()) SWIG_fail; | |
30391 | } | |
30392 | Py_INCREF(Py_None); resultobj = Py_None; | |
30393 | return resultobj; | |
30394 | fail: | |
30395 | return NULL; | |
30396 | } | |
30397 | ||
30398 | ||
30399 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { | |
30400 | PyObject *resultobj; | |
30401 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30402 | wxTreeItemId *arg2 = 0 ; | |
30403 | PyObject * obj0 = 0 ; | |
30404 | PyObject * obj1 = 0 ; | |
30405 | char *kwnames[] = { | |
30406 | (char *) "self",(char *) "item", NULL | |
30407 | }; | |
30408 | ||
30409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
30410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30412 | { | |
30413 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30414 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30415 | if (arg2 == NULL) { | |
30416 | SWIG_null_ref("wxTreeItemId"); | |
30417 | } | |
30418 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30419 | } | |
30420 | { | |
30421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30422 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
30423 | ||
30424 | wxPyEndAllowThreads(__tstate); | |
30425 | if (PyErr_Occurred()) SWIG_fail; | |
30426 | } | |
30427 | Py_INCREF(Py_None); resultobj = Py_None; | |
30428 | return resultobj; | |
30429 | fail: | |
30430 | return NULL; | |
30431 | } | |
30432 | ||
30433 | ||
30434 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { | |
30435 | PyObject *resultobj; | |
30436 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30437 | wxTreeItemId *arg2 = 0 ; | |
30438 | PyObject * obj0 = 0 ; | |
30439 | PyObject * obj1 = 0 ; | |
30440 | char *kwnames[] = { | |
30441 | (char *) "self",(char *) "item", NULL | |
30442 | }; | |
30443 | ||
30444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
30445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30447 | { | |
30448 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30449 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30450 | if (arg2 == NULL) { | |
30451 | SWIG_null_ref("wxTreeItemId"); | |
30452 | } | |
30453 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30454 | } | |
30455 | { | |
30456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30457 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
30458 | ||
30459 | wxPyEndAllowThreads(__tstate); | |
30460 | if (PyErr_Occurred()) SWIG_fail; | |
30461 | } | |
30462 | Py_INCREF(Py_None); resultobj = Py_None; | |
30463 | return resultobj; | |
30464 | fail: | |
30465 | return NULL; | |
30466 | } | |
30467 | ||
30468 | ||
30469 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { | |
30470 | PyObject *resultobj; | |
30471 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30472 | PyObject * obj0 = 0 ; | |
30473 | char *kwnames[] = { | |
30474 | (char *) "self", NULL | |
30475 | }; | |
30476 | ||
30477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
30478 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30479 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30480 | { | |
30481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30482 | (arg1)->Unselect(); | |
30483 | ||
30484 | wxPyEndAllowThreads(__tstate); | |
30485 | if (PyErr_Occurred()) SWIG_fail; | |
30486 | } | |
30487 | Py_INCREF(Py_None); resultobj = Py_None; | |
30488 | return resultobj; | |
30489 | fail: | |
30490 | return NULL; | |
30491 | } | |
30492 | ||
30493 | ||
30494 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
30495 | PyObject *resultobj; | |
30496 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30497 | wxTreeItemId *arg2 = 0 ; | |
30498 | PyObject * obj0 = 0 ; | |
30499 | PyObject * obj1 = 0 ; | |
30500 | char *kwnames[] = { | |
30501 | (char *) "self",(char *) "item", NULL | |
30502 | }; | |
30503 | ||
30504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
30505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30507 | { | |
30508 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30509 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30510 | if (arg2 == NULL) { | |
30511 | SWIG_null_ref("wxTreeItemId"); | |
30512 | } | |
30513 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30514 | } | |
30515 | { | |
30516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30517 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
30518 | ||
30519 | wxPyEndAllowThreads(__tstate); | |
30520 | if (PyErr_Occurred()) SWIG_fail; | |
30521 | } | |
30522 | Py_INCREF(Py_None); resultobj = Py_None; | |
30523 | return resultobj; | |
30524 | fail: | |
30525 | return NULL; | |
30526 | } | |
30527 | ||
30528 | ||
30529 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
30530 | PyObject *resultobj; | |
30531 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30532 | PyObject * obj0 = 0 ; | |
30533 | char *kwnames[] = { | |
30534 | (char *) "self", NULL | |
30535 | }; | |
30536 | ||
30537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
30538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30540 | { | |
30541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30542 | (arg1)->UnselectAll(); | |
30543 | ||
30544 | wxPyEndAllowThreads(__tstate); | |
30545 | if (PyErr_Occurred()) SWIG_fail; | |
30546 | } | |
30547 | Py_INCREF(Py_None); resultobj = Py_None; | |
30548 | return resultobj; | |
30549 | fail: | |
30550 | return NULL; | |
30551 | } | |
30552 | ||
30553 | ||
30554 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
30555 | PyObject *resultobj; | |
30556 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30557 | wxTreeItemId *arg2 = 0 ; | |
30558 | bool arg3 = (bool) true ; | |
30559 | PyObject * obj0 = 0 ; | |
30560 | PyObject * obj1 = 0 ; | |
30561 | PyObject * obj2 = 0 ; | |
30562 | char *kwnames[] = { | |
30563 | (char *) "self",(char *) "item",(char *) "select", NULL | |
30564 | }; | |
30565 | ||
30566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30569 | { | |
30570 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30571 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30572 | if (arg2 == NULL) { | |
30573 | SWIG_null_ref("wxTreeItemId"); | |
30574 | } | |
30575 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30576 | } | |
30577 | if (obj2) { | |
30578 | { | |
30579 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30580 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30581 | } | |
30582 | } | |
30583 | { | |
30584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30585 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
30586 | ||
30587 | wxPyEndAllowThreads(__tstate); | |
30588 | if (PyErr_Occurred()) SWIG_fail; | |
30589 | } | |
30590 | Py_INCREF(Py_None); resultobj = Py_None; | |
30591 | return resultobj; | |
30592 | fail: | |
30593 | return NULL; | |
30594 | } | |
30595 | ||
30596 | ||
30597 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { | |
30598 | PyObject *resultobj; | |
30599 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30600 | wxTreeItemId *arg2 = 0 ; | |
30601 | PyObject * obj0 = 0 ; | |
30602 | PyObject * obj1 = 0 ; | |
30603 | char *kwnames[] = { | |
30604 | (char *) "self",(char *) "item", NULL | |
30605 | }; | |
30606 | ||
30607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
30608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30610 | { | |
30611 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30612 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30613 | if (arg2 == NULL) { | |
30614 | SWIG_null_ref("wxTreeItemId"); | |
30615 | } | |
30616 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30617 | } | |
30618 | { | |
30619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30620 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
30621 | ||
30622 | wxPyEndAllowThreads(__tstate); | |
30623 | if (PyErr_Occurred()) SWIG_fail; | |
30624 | } | |
30625 | Py_INCREF(Py_None); resultobj = Py_None; | |
30626 | return resultobj; | |
30627 | fail: | |
30628 | return NULL; | |
30629 | } | |
30630 | ||
30631 | ||
30632 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
30633 | PyObject *resultobj; | |
30634 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30635 | wxTreeItemId *arg2 = 0 ; | |
30636 | PyObject * obj0 = 0 ; | |
30637 | PyObject * obj1 = 0 ; | |
30638 | char *kwnames[] = { | |
30639 | (char *) "self",(char *) "item", NULL | |
30640 | }; | |
30641 | ||
30642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
30643 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30644 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30645 | { | |
30646 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30647 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30648 | if (arg2 == NULL) { | |
30649 | SWIG_null_ref("wxTreeItemId"); | |
30650 | } | |
30651 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30652 | } | |
30653 | { | |
30654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30655 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
30656 | ||
30657 | wxPyEndAllowThreads(__tstate); | |
30658 | if (PyErr_Occurred()) SWIG_fail; | |
30659 | } | |
30660 | Py_INCREF(Py_None); resultobj = Py_None; | |
30661 | return resultobj; | |
30662 | fail: | |
30663 | return NULL; | |
30664 | } | |
30665 | ||
30666 | ||
30667 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { | |
30668 | PyObject *resultobj; | |
30669 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30670 | wxTreeItemId *arg2 = 0 ; | |
30671 | PyObject * obj0 = 0 ; | |
30672 | PyObject * obj1 = 0 ; | |
30673 | char *kwnames[] = { | |
30674 | (char *) "self",(char *) "item", NULL | |
30675 | }; | |
30676 | ||
30677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
30678 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30679 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30680 | { | |
30681 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30682 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30683 | if (arg2 == NULL) { | |
30684 | SWIG_null_ref("wxTreeItemId"); | |
30685 | } | |
30686 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30687 | } | |
30688 | { | |
30689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30690 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
30691 | ||
30692 | wxPyEndAllowThreads(__tstate); | |
30693 | if (PyErr_Occurred()) SWIG_fail; | |
30694 | } | |
30695 | Py_INCREF(Py_None); resultobj = Py_None; | |
30696 | return resultobj; | |
30697 | fail: | |
30698 | return NULL; | |
30699 | } | |
30700 | ||
30701 | ||
30702 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
30703 | PyObject *resultobj; | |
30704 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30705 | wxTreeItemId *arg2 = 0 ; | |
30706 | PyObject * obj0 = 0 ; | |
30707 | PyObject * obj1 = 0 ; | |
30708 | char *kwnames[] = { | |
30709 | (char *) "self",(char *) "item", NULL | |
30710 | }; | |
30711 | ||
30712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
30713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30715 | { | |
30716 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30717 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30718 | if (arg2 == NULL) { | |
30719 | SWIG_null_ref("wxTreeItemId"); | |
30720 | } | |
30721 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30722 | } | |
30723 | { | |
30724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30725 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
30726 | ||
30727 | wxPyEndAllowThreads(__tstate); | |
30728 | if (PyErr_Occurred()) SWIG_fail; | |
30729 | } | |
30730 | Py_INCREF(Py_None); resultobj = Py_None; | |
30731 | return resultobj; | |
30732 | fail: | |
30733 | return NULL; | |
30734 | } | |
30735 | ||
30736 | ||
30737 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
30738 | PyObject *resultobj; | |
30739 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30740 | wxTextCtrl *result; | |
30741 | PyObject * obj0 = 0 ; | |
30742 | char *kwnames[] = { | |
30743 | (char *) "self", NULL | |
30744 | }; | |
30745 | ||
30746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
30747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30749 | { | |
30750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30751 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
30752 | ||
30753 | wxPyEndAllowThreads(__tstate); | |
30754 | if (PyErr_Occurred()) SWIG_fail; | |
30755 | } | |
30756 | { | |
30757 | resultobj = wxPyMake_wxObject(result, 0); | |
30758 | } | |
30759 | return resultobj; | |
30760 | fail: | |
30761 | return NULL; | |
30762 | } | |
30763 | ||
30764 | ||
30765 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { | |
30766 | PyObject *resultobj; | |
30767 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30768 | wxTreeItemId *arg2 = 0 ; | |
30769 | PyObject * obj0 = 0 ; | |
30770 | PyObject * obj1 = 0 ; | |
30771 | char *kwnames[] = { | |
30772 | (char *) "self",(char *) "item", NULL | |
30773 | }; | |
30774 | ||
30775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
30776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30778 | { | |
30779 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30780 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30781 | if (arg2 == NULL) { | |
30782 | SWIG_null_ref("wxTreeItemId"); | |
30783 | } | |
30784 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30785 | } | |
30786 | { | |
30787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30788 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
30789 | ||
30790 | wxPyEndAllowThreads(__tstate); | |
30791 | if (PyErr_Occurred()) SWIG_fail; | |
30792 | } | |
30793 | Py_INCREF(Py_None); resultobj = Py_None; | |
30794 | return resultobj; | |
30795 | fail: | |
30796 | return NULL; | |
30797 | } | |
30798 | ||
30799 | ||
30800 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { | |
30801 | PyObject *resultobj; | |
30802 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30803 | wxPoint *arg2 = 0 ; | |
30804 | int *arg3 = 0 ; | |
30805 | wxTreeItemId result; | |
30806 | wxPoint temp2 ; | |
30807 | int temp3 ; | |
30808 | int res3 = 0 ; | |
30809 | PyObject * obj0 = 0 ; | |
30810 | PyObject * obj1 = 0 ; | |
30811 | char *kwnames[] = { | |
30812 | (char *) "self",(char *) "point", NULL | |
30813 | }; | |
30814 | ||
30815 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
30816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
30817 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30818 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30819 | { | |
30820 | arg2 = &temp2; | |
30821 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30822 | } | |
30823 | { | |
30824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30825 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
30826 | ||
30827 | wxPyEndAllowThreads(__tstate); | |
30828 | if (PyErr_Occurred()) SWIG_fail; | |
30829 | } | |
30830 | { | |
30831 | wxTreeItemId * resultptr; | |
30832 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
30833 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
30834 | } | |
30835 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
30836 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
30837 | return resultobj; | |
30838 | fail: | |
30839 | return NULL; | |
30840 | } | |
30841 | ||
30842 | ||
30843 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
30844 | PyObject *resultobj; | |
30845 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
30846 | wxTreeItemId *arg2 = 0 ; | |
30847 | bool arg3 = (bool) false ; | |
30848 | PyObject *result; | |
30849 | PyObject * obj0 = 0 ; | |
30850 | PyObject * obj1 = 0 ; | |
30851 | PyObject * obj2 = 0 ; | |
30852 | char *kwnames[] = { | |
30853 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
30854 | }; | |
30855 | ||
30856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30859 | { | |
30860 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30861 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30862 | if (arg2 == NULL) { | |
30863 | SWIG_null_ref("wxTreeItemId"); | |
30864 | } | |
30865 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30866 | } | |
30867 | if (obj2) { | |
30868 | { | |
30869 | arg3 = (bool)(SWIG_As_bool(obj2)); | |
30870 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30871 | } | |
30872 | } | |
30873 | { | |
30874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30875 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
30876 | ||
30877 | wxPyEndAllowThreads(__tstate); | |
30878 | if (PyErr_Occurred()) SWIG_fail; | |
30879 | } | |
30880 | resultobj = result; | |
30881 | return resultobj; | |
30882 | fail: | |
30883 | return NULL; | |
30884 | } | |
30885 | ||
30886 | ||
30887 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
30888 | PyObject *resultobj; | |
30889 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; | |
30890 | wxVisualAttributes result; | |
30891 | PyObject * obj0 = 0 ; | |
30892 | char *kwnames[] = { | |
30893 | (char *) "variant", NULL | |
30894 | }; | |
30895 | ||
30896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
30897 | if (obj0) { | |
30898 | { | |
30899 | arg1 = (wxWindowVariant)(SWIG_As_int(obj0)); | |
30900 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30901 | } | |
30902 | } | |
30903 | { | |
30904 | if (!wxPyCheckForApp()) SWIG_fail; | |
30905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30906 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
30907 | ||
30908 | wxPyEndAllowThreads(__tstate); | |
30909 | if (PyErr_Occurred()) SWIG_fail; | |
30910 | } | |
30911 | { | |
30912 | wxVisualAttributes * resultptr; | |
30913 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
30914 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
30915 | } | |
30916 | return resultobj; | |
30917 | fail: | |
30918 | return NULL; | |
30919 | } | |
30920 | ||
30921 | ||
30922 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { | |
30923 | PyObject *obj; | |
30924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30925 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
30926 | Py_INCREF(obj); | |
30927 | return Py_BuildValue((char *)""); | |
30928 | } | |
30929 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { | |
30930 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
30931 | return 1; | |
30932 | } | |
30933 | ||
30934 | ||
30935 | static PyObject *_wrap_DirDialogDefaultFolderStr_get(void) { | |
30936 | PyObject *pyobj; | |
30937 | ||
30938 | { | |
30939 | #if wxUSE_UNICODE | |
30940 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
30941 | #else | |
30942 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
30943 | #endif | |
30944 | } | |
30945 | return pyobj; | |
30946 | } | |
30947 | ||
30948 | ||
30949 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
30950 | PyObject *resultobj; | |
30951 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30952 | int arg2 = (int) (int)-1 ; | |
30953 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
30954 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
30955 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
30956 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
30957 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
30958 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
30959 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
30960 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
30961 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
30962 | int arg8 = (int) 0 ; | |
30963 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
30964 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
30965 | wxGenericDirCtrl *result; | |
30966 | bool temp3 = false ; | |
30967 | wxPoint temp4 ; | |
30968 | wxSize temp5 ; | |
30969 | bool temp7 = false ; | |
30970 | bool temp9 = false ; | |
30971 | PyObject * obj0 = 0 ; | |
30972 | PyObject * obj1 = 0 ; | |
30973 | PyObject * obj2 = 0 ; | |
30974 | PyObject * obj3 = 0 ; | |
30975 | PyObject * obj4 = 0 ; | |
30976 | PyObject * obj5 = 0 ; | |
30977 | PyObject * obj6 = 0 ; | |
30978 | PyObject * obj7 = 0 ; | |
30979 | PyObject * obj8 = 0 ; | |
30980 | char *kwnames[] = { | |
30981 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
30982 | }; | |
30983 | ||
30984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
30985 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
30986 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30987 | if (obj1) { | |
30988 | { | |
30989 | arg2 = (int const)(SWIG_As_int(obj1)); | |
30990 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30991 | } | |
30992 | } | |
30993 | if (obj2) { | |
30994 | { | |
30995 | arg3 = wxString_in_helper(obj2); | |
30996 | if (arg3 == NULL) SWIG_fail; | |
30997 | temp3 = true; | |
30998 | } | |
30999 | } | |
31000 | if (obj3) { | |
31001 | { | |
31002 | arg4 = &temp4; | |
31003 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31004 | } | |
31005 | } | |
31006 | if (obj4) { | |
31007 | { | |
31008 | arg5 = &temp5; | |
31009 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31010 | } | |
31011 | } | |
31012 | if (obj5) { | |
31013 | { | |
31014 | arg6 = (long)(SWIG_As_long(obj5)); | |
31015 | if (SWIG_arg_fail(6)) SWIG_fail; | |
31016 | } | |
31017 | } | |
31018 | if (obj6) { | |
31019 | { | |
31020 | arg7 = wxString_in_helper(obj6); | |
31021 | if (arg7 == NULL) SWIG_fail; | |
31022 | temp7 = true; | |
31023 | } | |
31024 | } | |
31025 | if (obj7) { | |
31026 | { | |
31027 | arg8 = (int)(SWIG_As_int(obj7)); | |
31028 | if (SWIG_arg_fail(8)) SWIG_fail; | |
31029 | } | |
31030 | } | |
31031 | if (obj8) { | |
31032 | { | |
31033 | arg9 = wxString_in_helper(obj8); | |
31034 | if (arg9 == NULL) SWIG_fail; | |
31035 | temp9 = true; | |
31036 | } | |
31037 | } | |
31038 | { | |
31039 | if (!wxPyCheckForApp()) SWIG_fail; | |
31040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31041 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
31042 | ||
31043 | wxPyEndAllowThreads(__tstate); | |
31044 | if (PyErr_Occurred()) SWIG_fail; | |
31045 | } | |
31046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
31047 | { | |
31048 | if (temp3) | |
31049 | delete arg3; | |
31050 | } | |
31051 | { | |
31052 | if (temp7) | |
31053 | delete arg7; | |
31054 | } | |
31055 | { | |
31056 | if (temp9) | |
31057 | delete arg9; | |
31058 | } | |
31059 | return resultobj; | |
31060 | fail: | |
31061 | { | |
31062 | if (temp3) | |
31063 | delete arg3; | |
31064 | } | |
31065 | { | |
31066 | if (temp7) | |
31067 | delete arg7; | |
31068 | } | |
31069 | { | |
31070 | if (temp9) | |
31071 | delete arg9; | |
31072 | } | |
31073 | return NULL; | |
31074 | } | |
31075 | ||
31076 | ||
31077 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
31078 | PyObject *resultobj; | |
31079 | wxGenericDirCtrl *result; | |
31080 | char *kwnames[] = { | |
31081 | NULL | |
31082 | }; | |
31083 | ||
31084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
31085 | { | |
31086 | if (!wxPyCheckForApp()) SWIG_fail; | |
31087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31088 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
31089 | ||
31090 | wxPyEndAllowThreads(__tstate); | |
31091 | if (PyErr_Occurred()) SWIG_fail; | |
31092 | } | |
31093 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
31094 | return resultobj; | |
31095 | fail: | |
31096 | return NULL; | |
31097 | } | |
31098 | ||
31099 | ||
31100 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
31101 | PyObject *resultobj; | |
31102 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31103 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31104 | int arg3 = (int) (int)-1 ; | |
31105 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
31106 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31107 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
31108 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
31109 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
31110 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
31111 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
31112 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
31113 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
31114 | int arg9 = (int) 0 ; | |
31115 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
31116 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
31117 | bool result; | |
31118 | bool temp4 = false ; | |
31119 | wxPoint temp5 ; | |
31120 | wxSize temp6 ; | |
31121 | bool temp8 = false ; | |
31122 | bool temp10 = false ; | |
31123 | PyObject * obj0 = 0 ; | |
31124 | PyObject * obj1 = 0 ; | |
31125 | PyObject * obj2 = 0 ; | |
31126 | PyObject * obj3 = 0 ; | |
31127 | PyObject * obj4 = 0 ; | |
31128 | PyObject * obj5 = 0 ; | |
31129 | PyObject * obj6 = 0 ; | |
31130 | PyObject * obj7 = 0 ; | |
31131 | PyObject * obj8 = 0 ; | |
31132 | PyObject * obj9 = 0 ; | |
31133 | char *kwnames[] = { | |
31134 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
31135 | }; | |
31136 | ||
31137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
31138 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31139 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31140 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
31141 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31142 | if (obj2) { | |
31143 | { | |
31144 | arg3 = (int const)(SWIG_As_int(obj2)); | |
31145 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31146 | } | |
31147 | } | |
31148 | if (obj3) { | |
31149 | { | |
31150 | arg4 = wxString_in_helper(obj3); | |
31151 | if (arg4 == NULL) SWIG_fail; | |
31152 | temp4 = true; | |
31153 | } | |
31154 | } | |
31155 | if (obj4) { | |
31156 | { | |
31157 | arg5 = &temp5; | |
31158 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
31159 | } | |
31160 | } | |
31161 | if (obj5) { | |
31162 | { | |
31163 | arg6 = &temp6; | |
31164 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
31165 | } | |
31166 | } | |
31167 | if (obj6) { | |
31168 | { | |
31169 | arg7 = (long)(SWIG_As_long(obj6)); | |
31170 | if (SWIG_arg_fail(7)) SWIG_fail; | |
31171 | } | |
31172 | } | |
31173 | if (obj7) { | |
31174 | { | |
31175 | arg8 = wxString_in_helper(obj7); | |
31176 | if (arg8 == NULL) SWIG_fail; | |
31177 | temp8 = true; | |
31178 | } | |
31179 | } | |
31180 | if (obj8) { | |
31181 | { | |
31182 | arg9 = (int)(SWIG_As_int(obj8)); | |
31183 | if (SWIG_arg_fail(9)) SWIG_fail; | |
31184 | } | |
31185 | } | |
31186 | if (obj9) { | |
31187 | { | |
31188 | arg10 = wxString_in_helper(obj9); | |
31189 | if (arg10 == NULL) SWIG_fail; | |
31190 | temp10 = true; | |
31191 | } | |
31192 | } | |
31193 | { | |
31194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31195 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
31196 | ||
31197 | wxPyEndAllowThreads(__tstate); | |
31198 | if (PyErr_Occurred()) SWIG_fail; | |
31199 | } | |
31200 | { | |
31201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31202 | } | |
31203 | { | |
31204 | if (temp4) | |
31205 | delete arg4; | |
31206 | } | |
31207 | { | |
31208 | if (temp8) | |
31209 | delete arg8; | |
31210 | } | |
31211 | { | |
31212 | if (temp10) | |
31213 | delete arg10; | |
31214 | } | |
31215 | return resultobj; | |
31216 | fail: | |
31217 | { | |
31218 | if (temp4) | |
31219 | delete arg4; | |
31220 | } | |
31221 | { | |
31222 | if (temp8) | |
31223 | delete arg8; | |
31224 | } | |
31225 | { | |
31226 | if (temp10) | |
31227 | delete arg10; | |
31228 | } | |
31229 | return NULL; | |
31230 | } | |
31231 | ||
31232 | ||
31233 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
31234 | PyObject *resultobj; | |
31235 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31236 | wxString *arg2 = 0 ; | |
31237 | bool result; | |
31238 | bool temp2 = false ; | |
31239 | PyObject * obj0 = 0 ; | |
31240 | PyObject * obj1 = 0 ; | |
31241 | char *kwnames[] = { | |
31242 | (char *) "self",(char *) "path", NULL | |
31243 | }; | |
31244 | ||
31245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
31246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31248 | { | |
31249 | arg2 = wxString_in_helper(obj1); | |
31250 | if (arg2 == NULL) SWIG_fail; | |
31251 | temp2 = true; | |
31252 | } | |
31253 | { | |
31254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31255 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
31256 | ||
31257 | wxPyEndAllowThreads(__tstate); | |
31258 | if (PyErr_Occurred()) SWIG_fail; | |
31259 | } | |
31260 | { | |
31261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31262 | } | |
31263 | { | |
31264 | if (temp2) | |
31265 | delete arg2; | |
31266 | } | |
31267 | return resultobj; | |
31268 | fail: | |
31269 | { | |
31270 | if (temp2) | |
31271 | delete arg2; | |
31272 | } | |
31273 | return NULL; | |
31274 | } | |
31275 | ||
31276 | ||
31277 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
31278 | PyObject *resultobj; | |
31279 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31280 | wxString result; | |
31281 | PyObject * obj0 = 0 ; | |
31282 | char *kwnames[] = { | |
31283 | (char *) "self", NULL | |
31284 | }; | |
31285 | ||
31286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
31287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31289 | { | |
31290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31291 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
31292 | ||
31293 | wxPyEndAllowThreads(__tstate); | |
31294 | if (PyErr_Occurred()) SWIG_fail; | |
31295 | } | |
31296 | { | |
31297 | #if wxUSE_UNICODE | |
31298 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31299 | #else | |
31300 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31301 | #endif | |
31302 | } | |
31303 | return resultobj; | |
31304 | fail: | |
31305 | return NULL; | |
31306 | } | |
31307 | ||
31308 | ||
31309 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
31310 | PyObject *resultobj; | |
31311 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31312 | wxString *arg2 = 0 ; | |
31313 | bool temp2 = false ; | |
31314 | PyObject * obj0 = 0 ; | |
31315 | PyObject * obj1 = 0 ; | |
31316 | char *kwnames[] = { | |
31317 | (char *) "self",(char *) "path", NULL | |
31318 | }; | |
31319 | ||
31320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
31321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31323 | { | |
31324 | arg2 = wxString_in_helper(obj1); | |
31325 | if (arg2 == NULL) SWIG_fail; | |
31326 | temp2 = true; | |
31327 | } | |
31328 | { | |
31329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31330 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
31331 | ||
31332 | wxPyEndAllowThreads(__tstate); | |
31333 | if (PyErr_Occurred()) SWIG_fail; | |
31334 | } | |
31335 | Py_INCREF(Py_None); resultobj = Py_None; | |
31336 | { | |
31337 | if (temp2) | |
31338 | delete arg2; | |
31339 | } | |
31340 | return resultobj; | |
31341 | fail: | |
31342 | { | |
31343 | if (temp2) | |
31344 | delete arg2; | |
31345 | } | |
31346 | return NULL; | |
31347 | } | |
31348 | ||
31349 | ||
31350 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
31351 | PyObject *resultobj; | |
31352 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31353 | wxString result; | |
31354 | PyObject * obj0 = 0 ; | |
31355 | char *kwnames[] = { | |
31356 | (char *) "self", NULL | |
31357 | }; | |
31358 | ||
31359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
31360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31362 | { | |
31363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31364 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
31365 | ||
31366 | wxPyEndAllowThreads(__tstate); | |
31367 | if (PyErr_Occurred()) SWIG_fail; | |
31368 | } | |
31369 | { | |
31370 | #if wxUSE_UNICODE | |
31371 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31372 | #else | |
31373 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31374 | #endif | |
31375 | } | |
31376 | return resultobj; | |
31377 | fail: | |
31378 | return NULL; | |
31379 | } | |
31380 | ||
31381 | ||
31382 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { | |
31383 | PyObject *resultobj; | |
31384 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31385 | wxString result; | |
31386 | PyObject * obj0 = 0 ; | |
31387 | char *kwnames[] = { | |
31388 | (char *) "self", NULL | |
31389 | }; | |
31390 | ||
31391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
31392 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31393 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31394 | { | |
31395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31396 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
31397 | ||
31398 | wxPyEndAllowThreads(__tstate); | |
31399 | if (PyErr_Occurred()) SWIG_fail; | |
31400 | } | |
31401 | { | |
31402 | #if wxUSE_UNICODE | |
31403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31404 | #else | |
31405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31406 | #endif | |
31407 | } | |
31408 | return resultobj; | |
31409 | fail: | |
31410 | return NULL; | |
31411 | } | |
31412 | ||
31413 | ||
31414 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
31415 | PyObject *resultobj; | |
31416 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31417 | wxString *arg2 = 0 ; | |
31418 | bool temp2 = false ; | |
31419 | PyObject * obj0 = 0 ; | |
31420 | PyObject * obj1 = 0 ; | |
31421 | char *kwnames[] = { | |
31422 | (char *) "self",(char *) "path", NULL | |
31423 | }; | |
31424 | ||
31425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
31426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31428 | { | |
31429 | arg2 = wxString_in_helper(obj1); | |
31430 | if (arg2 == NULL) SWIG_fail; | |
31431 | temp2 = true; | |
31432 | } | |
31433 | { | |
31434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31435 | (arg1)->SetPath((wxString const &)*arg2); | |
31436 | ||
31437 | wxPyEndAllowThreads(__tstate); | |
31438 | if (PyErr_Occurred()) SWIG_fail; | |
31439 | } | |
31440 | Py_INCREF(Py_None); resultobj = Py_None; | |
31441 | { | |
31442 | if (temp2) | |
31443 | delete arg2; | |
31444 | } | |
31445 | return resultobj; | |
31446 | fail: | |
31447 | { | |
31448 | if (temp2) | |
31449 | delete arg2; | |
31450 | } | |
31451 | return NULL; | |
31452 | } | |
31453 | ||
31454 | ||
31455 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { | |
31456 | PyObject *resultobj; | |
31457 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31458 | bool arg2 ; | |
31459 | PyObject * obj0 = 0 ; | |
31460 | PyObject * obj1 = 0 ; | |
31461 | char *kwnames[] = { | |
31462 | (char *) "self",(char *) "show", NULL | |
31463 | }; | |
31464 | ||
31465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
31466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31467 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31468 | { | |
31469 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
31470 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31471 | } | |
31472 | { | |
31473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31474 | (arg1)->ShowHidden(arg2); | |
31475 | ||
31476 | wxPyEndAllowThreads(__tstate); | |
31477 | if (PyErr_Occurred()) SWIG_fail; | |
31478 | } | |
31479 | Py_INCREF(Py_None); resultobj = Py_None; | |
31480 | return resultobj; | |
31481 | fail: | |
31482 | return NULL; | |
31483 | } | |
31484 | ||
31485 | ||
31486 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { | |
31487 | PyObject *resultobj; | |
31488 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31489 | bool result; | |
31490 | PyObject * obj0 = 0 ; | |
31491 | char *kwnames[] = { | |
31492 | (char *) "self", NULL | |
31493 | }; | |
31494 | ||
31495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
31496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31498 | { | |
31499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31500 | result = (bool)(arg1)->GetShowHidden(); | |
31501 | ||
31502 | wxPyEndAllowThreads(__tstate); | |
31503 | if (PyErr_Occurred()) SWIG_fail; | |
31504 | } | |
31505 | { | |
31506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31507 | } | |
31508 | return resultobj; | |
31509 | fail: | |
31510 | return NULL; | |
31511 | } | |
31512 | ||
31513 | ||
31514 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { | |
31515 | PyObject *resultobj; | |
31516 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31517 | wxString result; | |
31518 | PyObject * obj0 = 0 ; | |
31519 | char *kwnames[] = { | |
31520 | (char *) "self", NULL | |
31521 | }; | |
31522 | ||
31523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
31524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31526 | { | |
31527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31528 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
31529 | ||
31530 | wxPyEndAllowThreads(__tstate); | |
31531 | if (PyErr_Occurred()) SWIG_fail; | |
31532 | } | |
31533 | { | |
31534 | #if wxUSE_UNICODE | |
31535 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31536 | #else | |
31537 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31538 | #endif | |
31539 | } | |
31540 | return resultobj; | |
31541 | fail: | |
31542 | return NULL; | |
31543 | } | |
31544 | ||
31545 | ||
31546 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { | |
31547 | PyObject *resultobj; | |
31548 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31549 | wxString *arg2 = 0 ; | |
31550 | bool temp2 = false ; | |
31551 | PyObject * obj0 = 0 ; | |
31552 | PyObject * obj1 = 0 ; | |
31553 | char *kwnames[] = { | |
31554 | (char *) "self",(char *) "filter", NULL | |
31555 | }; | |
31556 | ||
31557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
31558 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31559 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31560 | { | |
31561 | arg2 = wxString_in_helper(obj1); | |
31562 | if (arg2 == NULL) SWIG_fail; | |
31563 | temp2 = true; | |
31564 | } | |
31565 | { | |
31566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31567 | (arg1)->SetFilter((wxString const &)*arg2); | |
31568 | ||
31569 | wxPyEndAllowThreads(__tstate); | |
31570 | if (PyErr_Occurred()) SWIG_fail; | |
31571 | } | |
31572 | Py_INCREF(Py_None); resultobj = Py_None; | |
31573 | { | |
31574 | if (temp2) | |
31575 | delete arg2; | |
31576 | } | |
31577 | return resultobj; | |
31578 | fail: | |
31579 | { | |
31580 | if (temp2) | |
31581 | delete arg2; | |
31582 | } | |
31583 | return NULL; | |
31584 | } | |
31585 | ||
31586 | ||
31587 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
31588 | PyObject *resultobj; | |
31589 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31590 | int result; | |
31591 | PyObject * obj0 = 0 ; | |
31592 | char *kwnames[] = { | |
31593 | (char *) "self", NULL | |
31594 | }; | |
31595 | ||
31596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
31597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31599 | { | |
31600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31601 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
31602 | ||
31603 | wxPyEndAllowThreads(__tstate); | |
31604 | if (PyErr_Occurred()) SWIG_fail; | |
31605 | } | |
31606 | { | |
31607 | resultobj = SWIG_From_int((int)(result)); | |
31608 | } | |
31609 | return resultobj; | |
31610 | fail: | |
31611 | return NULL; | |
31612 | } | |
31613 | ||
31614 | ||
31615 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
31616 | PyObject *resultobj; | |
31617 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31618 | int arg2 ; | |
31619 | PyObject * obj0 = 0 ; | |
31620 | PyObject * obj1 = 0 ; | |
31621 | char *kwnames[] = { | |
31622 | (char *) "self",(char *) "n", NULL | |
31623 | }; | |
31624 | ||
31625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
31626 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31627 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31628 | { | |
31629 | arg2 = (int)(SWIG_As_int(obj1)); | |
31630 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31631 | } | |
31632 | { | |
31633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31634 | (arg1)->SetFilterIndex(arg2); | |
31635 | ||
31636 | wxPyEndAllowThreads(__tstate); | |
31637 | if (PyErr_Occurred()) SWIG_fail; | |
31638 | } | |
31639 | Py_INCREF(Py_None); resultobj = Py_None; | |
31640 | return resultobj; | |
31641 | fail: | |
31642 | return NULL; | |
31643 | } | |
31644 | ||
31645 | ||
31646 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { | |
31647 | PyObject *resultobj; | |
31648 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31649 | wxTreeItemId result; | |
31650 | PyObject * obj0 = 0 ; | |
31651 | char *kwnames[] = { | |
31652 | (char *) "self", NULL | |
31653 | }; | |
31654 | ||
31655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
31656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31658 | { | |
31659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31660 | result = (arg1)->GetRootId(); | |
31661 | ||
31662 | wxPyEndAllowThreads(__tstate); | |
31663 | if (PyErr_Occurred()) SWIG_fail; | |
31664 | } | |
31665 | { | |
31666 | wxTreeItemId * resultptr; | |
31667 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
31668 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
31669 | } | |
31670 | return resultobj; | |
31671 | fail: | |
31672 | return NULL; | |
31673 | } | |
31674 | ||
31675 | ||
31676 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
31677 | PyObject *resultobj; | |
31678 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31679 | wxPyTreeCtrl *result; | |
31680 | PyObject * obj0 = 0 ; | |
31681 | char *kwnames[] = { | |
31682 | (char *) "self", NULL | |
31683 | }; | |
31684 | ||
31685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
31686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31688 | { | |
31689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31690 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
31691 | ||
31692 | wxPyEndAllowThreads(__tstate); | |
31693 | if (PyErr_Occurred()) SWIG_fail; | |
31694 | } | |
31695 | { | |
31696 | resultobj = wxPyMake_wxObject(result, 0); | |
31697 | } | |
31698 | return resultobj; | |
31699 | fail: | |
31700 | return NULL; | |
31701 | } | |
31702 | ||
31703 | ||
31704 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
31705 | PyObject *resultobj; | |
31706 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31707 | wxDirFilterListCtrl *result; | |
31708 | PyObject * obj0 = 0 ; | |
31709 | char *kwnames[] = { | |
31710 | (char *) "self", NULL | |
31711 | }; | |
31712 | ||
31713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
31714 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31715 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31716 | { | |
31717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31718 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
31719 | ||
31720 | wxPyEndAllowThreads(__tstate); | |
31721 | if (PyErr_Occurred()) SWIG_fail; | |
31722 | } | |
31723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
31724 | return resultobj; | |
31725 | fail: | |
31726 | return NULL; | |
31727 | } | |
31728 | ||
31729 | ||
31730 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
31731 | PyObject *resultobj; | |
31732 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31733 | wxTreeItemId arg2 ; | |
31734 | wxString *arg3 = 0 ; | |
31735 | bool *arg4 = 0 ; | |
31736 | wxTreeItemId result; | |
31737 | bool temp3 = false ; | |
31738 | bool temp4 ; | |
31739 | int res4 = 0 ; | |
31740 | PyObject * obj0 = 0 ; | |
31741 | PyObject * obj1 = 0 ; | |
31742 | PyObject * obj2 = 0 ; | |
31743 | char *kwnames[] = { | |
31744 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
31745 | }; | |
31746 | ||
31747 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
31748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31751 | { | |
31752 | wxTreeItemId * argp; | |
31753 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION); | |
31754 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31755 | if (argp == NULL) { | |
31756 | SWIG_null_ref("wxTreeItemId"); | |
31757 | } | |
31758 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31759 | arg2 = *argp; | |
31760 | } | |
31761 | { | |
31762 | arg3 = wxString_in_helper(obj2); | |
31763 | if (arg3 == NULL) SWIG_fail; | |
31764 | temp3 = true; | |
31765 | } | |
31766 | { | |
31767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31768 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
31769 | ||
31770 | wxPyEndAllowThreads(__tstate); | |
31771 | if (PyErr_Occurred()) SWIG_fail; | |
31772 | } | |
31773 | { | |
31774 | wxTreeItemId * resultptr; | |
31775 | resultptr = new wxTreeItemId((wxTreeItemId &)(result)); | |
31776 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
31777 | } | |
31778 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
31779 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
31780 | { | |
31781 | if (temp3) | |
31782 | delete arg3; | |
31783 | } | |
31784 | return resultobj; | |
31785 | fail: | |
31786 | { | |
31787 | if (temp3) | |
31788 | delete arg3; | |
31789 | } | |
31790 | return NULL; | |
31791 | } | |
31792 | ||
31793 | ||
31794 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { | |
31795 | PyObject *resultobj; | |
31796 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31797 | PyObject * obj0 = 0 ; | |
31798 | char *kwnames[] = { | |
31799 | (char *) "self", NULL | |
31800 | }; | |
31801 | ||
31802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
31803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31805 | { | |
31806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31807 | (arg1)->DoResize(); | |
31808 | ||
31809 | wxPyEndAllowThreads(__tstate); | |
31810 | if (PyErr_Occurred()) SWIG_fail; | |
31811 | } | |
31812 | Py_INCREF(Py_None); resultobj = Py_None; | |
31813 | return resultobj; | |
31814 | fail: | |
31815 | return NULL; | |
31816 | } | |
31817 | ||
31818 | ||
31819 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { | |
31820 | PyObject *resultobj; | |
31821 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31822 | PyObject * obj0 = 0 ; | |
31823 | char *kwnames[] = { | |
31824 | (char *) "self", NULL | |
31825 | }; | |
31826 | ||
31827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
31828 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31829 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31830 | { | |
31831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31832 | (arg1)->ReCreateTree(); | |
31833 | ||
31834 | wxPyEndAllowThreads(__tstate); | |
31835 | if (PyErr_Occurred()) SWIG_fail; | |
31836 | } | |
31837 | Py_INCREF(Py_None); resultobj = Py_None; | |
31838 | return resultobj; | |
31839 | fail: | |
31840 | return NULL; | |
31841 | } | |
31842 | ||
31843 | ||
31844 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { | |
31845 | PyObject *obj; | |
31846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31847 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
31848 | Py_INCREF(obj); | |
31849 | return Py_BuildValue((char *)""); | |
31850 | } | |
31851 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
31852 | PyObject *resultobj; | |
31853 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
31854 | int arg2 = (int) (int)-1 ; | |
31855 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
31856 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
31857 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
31858 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
31859 | long arg5 = (long) 0 ; | |
31860 | wxDirFilterListCtrl *result; | |
31861 | wxPoint temp3 ; | |
31862 | wxSize temp4 ; | |
31863 | PyObject * obj0 = 0 ; | |
31864 | PyObject * obj1 = 0 ; | |
31865 | PyObject * obj2 = 0 ; | |
31866 | PyObject * obj3 = 0 ; | |
31867 | PyObject * obj4 = 0 ; | |
31868 | char *kwnames[] = { | |
31869 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
31870 | }; | |
31871 | ||
31872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31873 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31874 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31875 | if (obj1) { | |
31876 | { | |
31877 | arg2 = (int const)(SWIG_As_int(obj1)); | |
31878 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31879 | } | |
31880 | } | |
31881 | if (obj2) { | |
31882 | { | |
31883 | arg3 = &temp3; | |
31884 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31885 | } | |
31886 | } | |
31887 | if (obj3) { | |
31888 | { | |
31889 | arg4 = &temp4; | |
31890 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31891 | } | |
31892 | } | |
31893 | if (obj4) { | |
31894 | { | |
31895 | arg5 = (long)(SWIG_As_long(obj4)); | |
31896 | if (SWIG_arg_fail(5)) SWIG_fail; | |
31897 | } | |
31898 | } | |
31899 | { | |
31900 | if (!wxPyCheckForApp()) SWIG_fail; | |
31901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31902 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
31903 | ||
31904 | wxPyEndAllowThreads(__tstate); | |
31905 | if (PyErr_Occurred()) SWIG_fail; | |
31906 | } | |
31907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
31908 | return resultobj; | |
31909 | fail: | |
31910 | return NULL; | |
31911 | } | |
31912 | ||
31913 | ||
31914 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
31915 | PyObject *resultobj; | |
31916 | wxDirFilterListCtrl *result; | |
31917 | char *kwnames[] = { | |
31918 | NULL | |
31919 | }; | |
31920 | ||
31921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
31922 | { | |
31923 | if (!wxPyCheckForApp()) SWIG_fail; | |
31924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31925 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
31926 | ||
31927 | wxPyEndAllowThreads(__tstate); | |
31928 | if (PyErr_Occurred()) SWIG_fail; | |
31929 | } | |
31930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
31931 | return resultobj; | |
31932 | fail: | |
31933 | return NULL; | |
31934 | } | |
31935 | ||
31936 | ||
31937 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
31938 | PyObject *resultobj; | |
31939 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
31940 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
31941 | int arg3 = (int) (int)-1 ; | |
31942 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
31943 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
31944 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
31945 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
31946 | long arg6 = (long) 0 ; | |
31947 | bool result; | |
31948 | wxPoint temp4 ; | |
31949 | wxSize temp5 ; | |
31950 | PyObject * obj0 = 0 ; | |
31951 | PyObject * obj1 = 0 ; | |
31952 | PyObject * obj2 = 0 ; | |
31953 | PyObject * obj3 = 0 ; | |
31954 | PyObject * obj4 = 0 ; | |
31955 | PyObject * obj5 = 0 ; | |
31956 | char *kwnames[] = { | |
31957 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
31958 | }; | |
31959 | ||
31960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
31961 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31962 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31963 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
31964 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31965 | if (obj2) { | |
31966 | { | |
31967 | arg3 = (int const)(SWIG_As_int(obj2)); | |
31968 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31969 | } | |
31970 | } | |
31971 | if (obj3) { | |
31972 | { | |
31973 | arg4 = &temp4; | |
31974 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
31975 | } | |
31976 | } | |
31977 | if (obj4) { | |
31978 | { | |
31979 | arg5 = &temp5; | |
31980 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
31981 | } | |
31982 | } | |
31983 | if (obj5) { | |
31984 | { | |
31985 | arg6 = (long)(SWIG_As_long(obj5)); | |
31986 | if (SWIG_arg_fail(6)) SWIG_fail; | |
31987 | } | |
31988 | } | |
31989 | { | |
31990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31991 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
31992 | ||
31993 | wxPyEndAllowThreads(__tstate); | |
31994 | if (PyErr_Occurred()) SWIG_fail; | |
31995 | } | |
31996 | { | |
31997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31998 | } | |
31999 | return resultobj; | |
32000 | fail: | |
32001 | return NULL; | |
32002 | } | |
32003 | ||
32004 | ||
32005 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { | |
32006 | PyObject *resultobj; | |
32007 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
32008 | wxString *arg2 = 0 ; | |
32009 | int arg3 ; | |
32010 | bool temp2 = false ; | |
32011 | PyObject * obj0 = 0 ; | |
32012 | PyObject * obj1 = 0 ; | |
32013 | PyObject * obj2 = 0 ; | |
32014 | char *kwnames[] = { | |
32015 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
32016 | }; | |
32017 | ||
32018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32019 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
32020 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32021 | { | |
32022 | arg2 = wxString_in_helper(obj1); | |
32023 | if (arg2 == NULL) SWIG_fail; | |
32024 | temp2 = true; | |
32025 | } | |
32026 | { | |
32027 | arg3 = (int)(SWIG_As_int(obj2)); | |
32028 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32029 | } | |
32030 | { | |
32031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32032 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
32033 | ||
32034 | wxPyEndAllowThreads(__tstate); | |
32035 | if (PyErr_Occurred()) SWIG_fail; | |
32036 | } | |
32037 | Py_INCREF(Py_None); resultobj = Py_None; | |
32038 | { | |
32039 | if (temp2) | |
32040 | delete arg2; | |
32041 | } | |
32042 | return resultobj; | |
32043 | fail: | |
32044 | { | |
32045 | if (temp2) | |
32046 | delete arg2; | |
32047 | } | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
32052 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { | |
32053 | PyObject *obj; | |
32054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32055 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
32056 | Py_INCREF(obj); | |
32057 | return Py_BuildValue((char *)""); | |
32058 | } | |
32059 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
32060 | PyObject *resultobj; | |
32061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
32062 | int arg2 = (int) (int)-1 ; | |
32063 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32064 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32065 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32066 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32067 | long arg5 = (long) 0 ; | |
32068 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32069 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32070 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32071 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32072 | wxPyControl *result; | |
32073 | wxPoint temp3 ; | |
32074 | wxSize temp4 ; | |
32075 | bool temp7 = false ; | |
32076 | PyObject * obj0 = 0 ; | |
32077 | PyObject * obj1 = 0 ; | |
32078 | PyObject * obj2 = 0 ; | |
32079 | PyObject * obj3 = 0 ; | |
32080 | PyObject * obj4 = 0 ; | |
32081 | PyObject * obj5 = 0 ; | |
32082 | PyObject * obj6 = 0 ; | |
32083 | char *kwnames[] = { | |
32084 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32085 | }; | |
32086 | ||
32087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
32088 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32089 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32090 | if (obj1) { | |
32091 | { | |
32092 | arg2 = (int const)(SWIG_As_int(obj1)); | |
32093 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32094 | } | |
32095 | } | |
32096 | if (obj2) { | |
32097 | { | |
32098 | arg3 = &temp3; | |
32099 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32100 | } | |
32101 | } | |
32102 | if (obj3) { | |
32103 | { | |
32104 | arg4 = &temp4; | |
32105 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32106 | } | |
32107 | } | |
32108 | if (obj4) { | |
32109 | { | |
32110 | arg5 = (long)(SWIG_As_long(obj4)); | |
32111 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32112 | } | |
32113 | } | |
32114 | if (obj5) { | |
32115 | { | |
32116 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
32117 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32118 | if (arg6 == NULL) { | |
32119 | SWIG_null_ref("wxValidator"); | |
32120 | } | |
32121 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32122 | } | |
32123 | } | |
32124 | if (obj6) { | |
32125 | { | |
32126 | arg7 = wxString_in_helper(obj6); | |
32127 | if (arg7 == NULL) SWIG_fail; | |
32128 | temp7 = true; | |
32129 | } | |
32130 | } | |
32131 | { | |
32132 | if (!wxPyCheckForApp()) SWIG_fail; | |
32133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32134 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32135 | ||
32136 | wxPyEndAllowThreads(__tstate); | |
32137 | if (PyErr_Occurred()) SWIG_fail; | |
32138 | } | |
32139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32140 | { | |
32141 | if (temp7) | |
32142 | delete arg7; | |
32143 | } | |
32144 | return resultobj; | |
32145 | fail: | |
32146 | { | |
32147 | if (temp7) | |
32148 | delete arg7; | |
32149 | } | |
32150 | return NULL; | |
32151 | } | |
32152 | ||
32153 | ||
32154 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { | |
32155 | PyObject *resultobj; | |
32156 | wxPyControl *result; | |
32157 | char *kwnames[] = { | |
32158 | NULL | |
32159 | }; | |
32160 | ||
32161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
32162 | { | |
32163 | if (!wxPyCheckForApp()) SWIG_fail; | |
32164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32165 | result = (wxPyControl *)new wxPyControl(); | |
32166 | ||
32167 | wxPyEndAllowThreads(__tstate); | |
32168 | if (PyErr_Occurred()) SWIG_fail; | |
32169 | } | |
32170 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
32171 | return resultobj; | |
32172 | fail: | |
32173 | return NULL; | |
32174 | } | |
32175 | ||
32176 | ||
32177 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32178 | PyObject *resultobj; | |
32179 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32180 | PyObject *arg2 = (PyObject *) 0 ; | |
32181 | PyObject *arg3 = (PyObject *) 0 ; | |
32182 | PyObject * obj0 = 0 ; | |
32183 | PyObject * obj1 = 0 ; | |
32184 | PyObject * obj2 = 0 ; | |
32185 | char *kwnames[] = { | |
32186 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
32187 | }; | |
32188 | ||
32189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32190 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32191 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32192 | arg2 = obj1; | |
32193 | arg3 = obj2; | |
32194 | { | |
32195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32196 | (arg1)->_setCallbackInfo(arg2,arg3); | |
32197 | ||
32198 | wxPyEndAllowThreads(__tstate); | |
32199 | if (PyErr_Occurred()) SWIG_fail; | |
32200 | } | |
32201 | Py_INCREF(Py_None); resultobj = Py_None; | |
32202 | return resultobj; | |
32203 | fail: | |
32204 | return NULL; | |
32205 | } | |
32206 | ||
32207 | ||
32208 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32209 | PyObject *resultobj; | |
32210 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32211 | wxSize *arg2 = 0 ; | |
32212 | wxSize temp2 ; | |
32213 | PyObject * obj0 = 0 ; | |
32214 | PyObject * obj1 = 0 ; | |
32215 | char *kwnames[] = { | |
32216 | (char *) "self",(char *) "size", NULL | |
32217 | }; | |
32218 | ||
32219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
32220 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32221 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32222 | { | |
32223 | arg2 = &temp2; | |
32224 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
32225 | } | |
32226 | { | |
32227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32228 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
32229 | ||
32230 | wxPyEndAllowThreads(__tstate); | |
32231 | if (PyErr_Occurred()) SWIG_fail; | |
32232 | } | |
32233 | Py_INCREF(Py_None); resultobj = Py_None; | |
32234 | return resultobj; | |
32235 | fail: | |
32236 | return NULL; | |
32237 | } | |
32238 | ||
32239 | ||
32240 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32241 | PyObject *resultobj; | |
32242 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32243 | int arg2 ; | |
32244 | int arg3 ; | |
32245 | int arg4 ; | |
32246 | int arg5 ; | |
32247 | PyObject * obj0 = 0 ; | |
32248 | PyObject * obj1 = 0 ; | |
32249 | PyObject * obj2 = 0 ; | |
32250 | PyObject * obj3 = 0 ; | |
32251 | PyObject * obj4 = 0 ; | |
32252 | char *kwnames[] = { | |
32253 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
32254 | }; | |
32255 | ||
32256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
32257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32259 | { | |
32260 | arg2 = (int)(SWIG_As_int(obj1)); | |
32261 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32262 | } | |
32263 | { | |
32264 | arg3 = (int)(SWIG_As_int(obj2)); | |
32265 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32266 | } | |
32267 | { | |
32268 | arg4 = (int)(SWIG_As_int(obj3)); | |
32269 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32270 | } | |
32271 | { | |
32272 | arg5 = (int)(SWIG_As_int(obj4)); | |
32273 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32274 | } | |
32275 | { | |
32276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32277 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
32278 | ||
32279 | wxPyEndAllowThreads(__tstate); | |
32280 | if (PyErr_Occurred()) SWIG_fail; | |
32281 | } | |
32282 | Py_INCREF(Py_None); resultobj = Py_None; | |
32283 | return resultobj; | |
32284 | fail: | |
32285 | return NULL; | |
32286 | } | |
32287 | ||
32288 | ||
32289 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32290 | PyObject *resultobj; | |
32291 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32292 | int arg2 ; | |
32293 | int arg3 ; | |
32294 | int arg4 ; | |
32295 | int arg5 ; | |
32296 | int arg6 = (int) wxSIZE_AUTO ; | |
32297 | PyObject * obj0 = 0 ; | |
32298 | PyObject * obj1 = 0 ; | |
32299 | PyObject * obj2 = 0 ; | |
32300 | PyObject * obj3 = 0 ; | |
32301 | PyObject * obj4 = 0 ; | |
32302 | PyObject * obj5 = 0 ; | |
32303 | char *kwnames[] = { | |
32304 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
32305 | }; | |
32306 | ||
32307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
32308 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32309 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32310 | { | |
32311 | arg2 = (int)(SWIG_As_int(obj1)); | |
32312 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32313 | } | |
32314 | { | |
32315 | arg3 = (int)(SWIG_As_int(obj2)); | |
32316 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32317 | } | |
32318 | { | |
32319 | arg4 = (int)(SWIG_As_int(obj3)); | |
32320 | if (SWIG_arg_fail(4)) SWIG_fail; | |
32321 | } | |
32322 | { | |
32323 | arg5 = (int)(SWIG_As_int(obj4)); | |
32324 | if (SWIG_arg_fail(5)) SWIG_fail; | |
32325 | } | |
32326 | if (obj5) { | |
32327 | { | |
32328 | arg6 = (int)(SWIG_As_int(obj5)); | |
32329 | if (SWIG_arg_fail(6)) SWIG_fail; | |
32330 | } | |
32331 | } | |
32332 | { | |
32333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32334 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
32335 | ||
32336 | wxPyEndAllowThreads(__tstate); | |
32337 | if (PyErr_Occurred()) SWIG_fail; | |
32338 | } | |
32339 | Py_INCREF(Py_None); resultobj = Py_None; | |
32340 | return resultobj; | |
32341 | fail: | |
32342 | return NULL; | |
32343 | } | |
32344 | ||
32345 | ||
32346 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32347 | PyObject *resultobj; | |
32348 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32349 | int arg2 ; | |
32350 | int arg3 ; | |
32351 | PyObject * obj0 = 0 ; | |
32352 | PyObject * obj1 = 0 ; | |
32353 | PyObject * obj2 = 0 ; | |
32354 | char *kwnames[] = { | |
32355 | (char *) "self",(char *) "width",(char *) "height", NULL | |
32356 | }; | |
32357 | ||
32358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32361 | { | |
32362 | arg2 = (int)(SWIG_As_int(obj1)); | |
32363 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32364 | } | |
32365 | { | |
32366 | arg3 = (int)(SWIG_As_int(obj2)); | |
32367 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32368 | } | |
32369 | { | |
32370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32371 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
32372 | ||
32373 | wxPyEndAllowThreads(__tstate); | |
32374 | if (PyErr_Occurred()) SWIG_fail; | |
32375 | } | |
32376 | Py_INCREF(Py_None); resultobj = Py_None; | |
32377 | return resultobj; | |
32378 | fail: | |
32379 | return NULL; | |
32380 | } | |
32381 | ||
32382 | ||
32383 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32384 | PyObject *resultobj; | |
32385 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32386 | int arg2 ; | |
32387 | int arg3 ; | |
32388 | PyObject * obj0 = 0 ; | |
32389 | PyObject * obj1 = 0 ; | |
32390 | PyObject * obj2 = 0 ; | |
32391 | char *kwnames[] = { | |
32392 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32393 | }; | |
32394 | ||
32395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32396 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32397 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32398 | { | |
32399 | arg2 = (int)(SWIG_As_int(obj1)); | |
32400 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32401 | } | |
32402 | { | |
32403 | arg3 = (int)(SWIG_As_int(obj2)); | |
32404 | if (SWIG_arg_fail(3)) SWIG_fail; | |
32405 | } | |
32406 | { | |
32407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32408 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
32409 | ||
32410 | wxPyEndAllowThreads(__tstate); | |
32411 | if (PyErr_Occurred()) SWIG_fail; | |
32412 | } | |
32413 | Py_INCREF(Py_None); resultobj = Py_None; | |
32414 | return resultobj; | |
32415 | fail: | |
32416 | return NULL; | |
32417 | } | |
32418 | ||
32419 | ||
32420 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32421 | PyObject *resultobj; | |
32422 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32423 | int *arg2 = (int *) 0 ; | |
32424 | int *arg3 = (int *) 0 ; | |
32425 | int temp2 ; | |
32426 | int res2 = 0 ; | |
32427 | int temp3 ; | |
32428 | int res3 = 0 ; | |
32429 | PyObject * obj0 = 0 ; | |
32430 | char *kwnames[] = { | |
32431 | (char *) "self", NULL | |
32432 | }; | |
32433 | ||
32434 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
32435 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
32436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
32437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32439 | { | |
32440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32441 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
32442 | ||
32443 | wxPyEndAllowThreads(__tstate); | |
32444 | if (PyErr_Occurred()) SWIG_fail; | |
32445 | } | |
32446 | Py_INCREF(Py_None); resultobj = Py_None; | |
32447 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
32448 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32449 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32450 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
32451 | return resultobj; | |
32452 | fail: | |
32453 | return NULL; | |
32454 | } | |
32455 | ||
32456 | ||
32457 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32458 | PyObject *resultobj; | |
32459 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32460 | int *arg2 = (int *) 0 ; | |
32461 | int *arg3 = (int *) 0 ; | |
32462 | int temp2 ; | |
32463 | int res2 = 0 ; | |
32464 | int temp3 ; | |
32465 | int res3 = 0 ; | |
32466 | PyObject * obj0 = 0 ; | |
32467 | char *kwnames[] = { | |
32468 | (char *) "self", NULL | |
32469 | }; | |
32470 | ||
32471 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
32472 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
32473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
32474 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32475 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32476 | { | |
32477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32478 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
32479 | ||
32480 | wxPyEndAllowThreads(__tstate); | |
32481 | if (PyErr_Occurred()) SWIG_fail; | |
32482 | } | |
32483 | Py_INCREF(Py_None); resultobj = Py_None; | |
32484 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
32485 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32486 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32487 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
32488 | return resultobj; | |
32489 | fail: | |
32490 | return NULL; | |
32491 | } | |
32492 | ||
32493 | ||
32494 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
32495 | PyObject *resultobj; | |
32496 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32497 | int *arg2 = (int *) 0 ; | |
32498 | int *arg3 = (int *) 0 ; | |
32499 | int temp2 ; | |
32500 | int res2 = 0 ; | |
32501 | int temp3 ; | |
32502 | int res3 = 0 ; | |
32503 | PyObject * obj0 = 0 ; | |
32504 | char *kwnames[] = { | |
32505 | (char *) "self", NULL | |
32506 | }; | |
32507 | ||
32508 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
32509 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
32510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
32511 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32512 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32513 | { | |
32514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32515 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
32516 | ||
32517 | wxPyEndAllowThreads(__tstate); | |
32518 | if (PyErr_Occurred()) SWIG_fail; | |
32519 | } | |
32520 | Py_INCREF(Py_None); resultobj = Py_None; | |
32521 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
32522 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
32523 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
32524 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
32525 | return resultobj; | |
32526 | fail: | |
32527 | return NULL; | |
32528 | } | |
32529 | ||
32530 | ||
32531 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32532 | PyObject *resultobj; | |
32533 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32534 | wxSize result; | |
32535 | PyObject * obj0 = 0 ; | |
32536 | char *kwnames[] = { | |
32537 | (char *) "self", NULL | |
32538 | }; | |
32539 | ||
32540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
32541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32543 | { | |
32544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32545 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
32546 | ||
32547 | wxPyEndAllowThreads(__tstate); | |
32548 | if (PyErr_Occurred()) SWIG_fail; | |
32549 | } | |
32550 | { | |
32551 | wxSize * resultptr; | |
32552 | resultptr = new wxSize((wxSize &)(result)); | |
32553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
32554 | } | |
32555 | return resultobj; | |
32556 | fail: | |
32557 | return NULL; | |
32558 | } | |
32559 | ||
32560 | ||
32561 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32562 | PyObject *resultobj; | |
32563 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32564 | wxSize result; | |
32565 | PyObject * obj0 = 0 ; | |
32566 | char *kwnames[] = { | |
32567 | (char *) "self", NULL | |
32568 | }; | |
32569 | ||
32570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
32571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32573 | { | |
32574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32575 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
32576 | ||
32577 | wxPyEndAllowThreads(__tstate); | |
32578 | if (PyErr_Occurred()) SWIG_fail; | |
32579 | } | |
32580 | { | |
32581 | wxSize * resultptr; | |
32582 | resultptr = new wxSize((wxSize &)(result)); | |
32583 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
32584 | } | |
32585 | return resultobj; | |
32586 | fail: | |
32587 | return NULL; | |
32588 | } | |
32589 | ||
32590 | ||
32591 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { | |
32592 | PyObject *resultobj; | |
32593 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32594 | PyObject * obj0 = 0 ; | |
32595 | char *kwnames[] = { | |
32596 | (char *) "self", NULL | |
32597 | }; | |
32598 | ||
32599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
32600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32602 | { | |
32603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32604 | (arg1)->base_InitDialog(); | |
32605 | ||
32606 | wxPyEndAllowThreads(__tstate); | |
32607 | if (PyErr_Occurred()) SWIG_fail; | |
32608 | } | |
32609 | Py_INCREF(Py_None); resultobj = Py_None; | |
32610 | return resultobj; | |
32611 | fail: | |
32612 | return NULL; | |
32613 | } | |
32614 | ||
32615 | ||
32616 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32617 | PyObject *resultobj; | |
32618 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32619 | bool result; | |
32620 | PyObject * obj0 = 0 ; | |
32621 | char *kwnames[] = { | |
32622 | (char *) "self", NULL | |
32623 | }; | |
32624 | ||
32625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
32626 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32627 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32628 | { | |
32629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32630 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
32631 | ||
32632 | wxPyEndAllowThreads(__tstate); | |
32633 | if (PyErr_Occurred()) SWIG_fail; | |
32634 | } | |
32635 | { | |
32636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32637 | } | |
32638 | return resultobj; | |
32639 | fail: | |
32640 | return NULL; | |
32641 | } | |
32642 | ||
32643 | ||
32644 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
32645 | PyObject *resultobj; | |
32646 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32647 | bool result; | |
32648 | PyObject * obj0 = 0 ; | |
32649 | char *kwnames[] = { | |
32650 | (char *) "self", NULL | |
32651 | }; | |
32652 | ||
32653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
32654 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32655 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32656 | { | |
32657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32658 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
32659 | ||
32660 | wxPyEndAllowThreads(__tstate); | |
32661 | if (PyErr_Occurred()) SWIG_fail; | |
32662 | } | |
32663 | { | |
32664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32665 | } | |
32666 | return resultobj; | |
32667 | fail: | |
32668 | return NULL; | |
32669 | } | |
32670 | ||
32671 | ||
32672 | static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) { | |
32673 | PyObject *resultobj; | |
32674 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32675 | bool result; | |
32676 | PyObject * obj0 = 0 ; | |
32677 | char *kwnames[] = { | |
32678 | (char *) "self", NULL | |
32679 | }; | |
32680 | ||
32681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
32682 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32683 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32684 | { | |
32685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32686 | result = (bool)(arg1)->base_Validate(); | |
32687 | ||
32688 | wxPyEndAllowThreads(__tstate); | |
32689 | if (PyErr_Occurred()) SWIG_fail; | |
32690 | } | |
32691 | { | |
32692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32693 | } | |
32694 | return resultobj; | |
32695 | fail: | |
32696 | return NULL; | |
32697 | } | |
32698 | ||
32699 | ||
32700 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { | |
32701 | PyObject *resultobj; | |
32702 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32703 | bool result; | |
32704 | PyObject * obj0 = 0 ; | |
32705 | char *kwnames[] = { | |
32706 | (char *) "self", NULL | |
32707 | }; | |
32708 | ||
32709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
32710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32712 | { | |
32713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32714 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
32715 | ||
32716 | wxPyEndAllowThreads(__tstate); | |
32717 | if (PyErr_Occurred()) SWIG_fail; | |
32718 | } | |
32719 | { | |
32720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32721 | } | |
32722 | return resultobj; | |
32723 | fail: | |
32724 | return NULL; | |
32725 | } | |
32726 | ||
32727 | ||
32728 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { | |
32729 | PyObject *resultobj; | |
32730 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32731 | bool result; | |
32732 | PyObject * obj0 = 0 ; | |
32733 | char *kwnames[] = { | |
32734 | (char *) "self", NULL | |
32735 | }; | |
32736 | ||
32737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
32738 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32739 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32740 | { | |
32741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32742 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
32743 | ||
32744 | wxPyEndAllowThreads(__tstate); | |
32745 | if (PyErr_Occurred()) SWIG_fail; | |
32746 | } | |
32747 | { | |
32748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32749 | } | |
32750 | return resultobj; | |
32751 | fail: | |
32752 | return NULL; | |
32753 | } | |
32754 | ||
32755 | ||
32756 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
32757 | PyObject *resultobj; | |
32758 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32759 | wxSize result; | |
32760 | PyObject * obj0 = 0 ; | |
32761 | char *kwnames[] = { | |
32762 | (char *) "self", NULL | |
32763 | }; | |
32764 | ||
32765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
32766 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32767 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32768 | { | |
32769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32770 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
32771 | ||
32772 | wxPyEndAllowThreads(__tstate); | |
32773 | if (PyErr_Occurred()) SWIG_fail; | |
32774 | } | |
32775 | { | |
32776 | wxSize * resultptr; | |
32777 | resultptr = new wxSize((wxSize &)(result)); | |
32778 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
32779 | } | |
32780 | return resultobj; | |
32781 | fail: | |
32782 | return NULL; | |
32783 | } | |
32784 | ||
32785 | ||
32786 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
32787 | PyObject *resultobj; | |
32788 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32789 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32790 | PyObject * obj0 = 0 ; | |
32791 | PyObject * obj1 = 0 ; | |
32792 | char *kwnames[] = { | |
32793 | (char *) "self",(char *) "child", NULL | |
32794 | }; | |
32795 | ||
32796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
32797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32799 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32800 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32801 | { | |
32802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32803 | (arg1)->base_AddChild(arg2); | |
32804 | ||
32805 | wxPyEndAllowThreads(__tstate); | |
32806 | if (PyErr_Occurred()) SWIG_fail; | |
32807 | } | |
32808 | Py_INCREF(Py_None); resultobj = Py_None; | |
32809 | return resultobj; | |
32810 | fail: | |
32811 | return NULL; | |
32812 | } | |
32813 | ||
32814 | ||
32815 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { | |
32816 | PyObject *resultobj; | |
32817 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32818 | wxWindow *arg2 = (wxWindow *) 0 ; | |
32819 | PyObject * obj0 = 0 ; | |
32820 | PyObject * obj1 = 0 ; | |
32821 | char *kwnames[] = { | |
32822 | (char *) "self",(char *) "child", NULL | |
32823 | }; | |
32824 | ||
32825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
32826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32828 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32829 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32830 | { | |
32831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32832 | (arg1)->base_RemoveChild(arg2); | |
32833 | ||
32834 | wxPyEndAllowThreads(__tstate); | |
32835 | if (PyErr_Occurred()) SWIG_fail; | |
32836 | } | |
32837 | Py_INCREF(Py_None); resultobj = Py_None; | |
32838 | return resultobj; | |
32839 | fail: | |
32840 | return NULL; | |
32841 | } | |
32842 | ||
32843 | ||
32844 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { | |
32845 | PyObject *resultobj; | |
32846 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32847 | bool result; | |
32848 | PyObject * obj0 = 0 ; | |
32849 | char *kwnames[] = { | |
32850 | (char *) "self", NULL | |
32851 | }; | |
32852 | ||
32853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
32854 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32855 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32856 | { | |
32857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32858 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); | |
32859 | ||
32860 | wxPyEndAllowThreads(__tstate); | |
32861 | if (PyErr_Occurred()) SWIG_fail; | |
32862 | } | |
32863 | { | |
32864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32865 | } | |
32866 | return resultobj; | |
32867 | fail: | |
32868 | return NULL; | |
32869 | } | |
32870 | ||
32871 | ||
32872 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { | |
32873 | PyObject *resultobj; | |
32874 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
32875 | wxVisualAttributes result; | |
32876 | PyObject * obj0 = 0 ; | |
32877 | char *kwnames[] = { | |
32878 | (char *) "self", NULL | |
32879 | }; | |
32880 | ||
32881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
32882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
32883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32884 | { | |
32885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32886 | result = (arg1)->base_GetDefaultAttributes(); | |
32887 | ||
32888 | wxPyEndAllowThreads(__tstate); | |
32889 | if (PyErr_Occurred()) SWIG_fail; | |
32890 | } | |
32891 | { | |
32892 | wxVisualAttributes * resultptr; | |
32893 | resultptr = new wxVisualAttributes((wxVisualAttributes &)(result)); | |
32894 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
32895 | } | |
32896 | return resultobj; | |
32897 | fail: | |
32898 | return NULL; | |
32899 | } | |
32900 | ||
32901 | ||
32902 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { | |
32903 | PyObject *obj; | |
32904 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32905 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
32906 | Py_INCREF(obj); | |
32907 | return Py_BuildValue((char *)""); | |
32908 | } | |
32909 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
32910 | PyObject *resultobj; | |
32911 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
32912 | int arg2 = (int) 0 ; | |
32913 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
32914 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32915 | wxHelpEvent *result; | |
32916 | wxPoint temp3 ; | |
32917 | PyObject * obj0 = 0 ; | |
32918 | PyObject * obj1 = 0 ; | |
32919 | PyObject * obj2 = 0 ; | |
32920 | char *kwnames[] = { | |
32921 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
32922 | }; | |
32923 | ||
32924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32925 | if (obj0) { | |
32926 | { | |
32927 | arg1 = (wxEventType)(SWIG_As_int(obj0)); | |
32928 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32929 | } | |
32930 | } | |
32931 | if (obj1) { | |
32932 | { | |
32933 | arg2 = (int)(SWIG_As_int(obj1)); | |
32934 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32935 | } | |
32936 | } | |
32937 | if (obj2) { | |
32938 | { | |
32939 | arg3 = &temp3; | |
32940 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32941 | } | |
32942 | } | |
32943 | { | |
32944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32945 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
32946 | ||
32947 | wxPyEndAllowThreads(__tstate); | |
32948 | if (PyErr_Occurred()) SWIG_fail; | |
32949 | } | |
32950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
32951 | return resultobj; | |
32952 | fail: | |
32953 | return NULL; | |
32954 | } | |
32955 | ||
32956 | ||
32957 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
32958 | PyObject *resultobj; | |
32959 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
32960 | wxPoint result; | |
32961 | PyObject * obj0 = 0 ; | |
32962 | char *kwnames[] = { | |
32963 | (char *) "self", NULL | |
32964 | }; | |
32965 | ||
32966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
32967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); | |
32968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32969 | { | |
32970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32971 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
32972 | ||
32973 | wxPyEndAllowThreads(__tstate); | |
32974 | if (PyErr_Occurred()) SWIG_fail; | |
32975 | } | |
32976 | { | |
32977 | wxPoint * resultptr; | |
32978 | resultptr = new wxPoint((wxPoint const &)(result)); | |
32979 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
32980 | } | |
32981 | return resultobj; | |
32982 | fail: | |
32983 | return NULL; | |
32984 | } | |
32985 | ||
32986 | ||
32987 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { | |
32988 | PyObject *resultobj; | |
32989 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
32990 | wxPoint *arg2 = 0 ; | |
32991 | wxPoint temp2 ; | |
32992 | PyObject * obj0 = 0 ; | |
32993 | PyObject * obj1 = 0 ; | |
32994 | char *kwnames[] = { | |
32995 | (char *) "self",(char *) "pos", NULL | |
32996 | }; | |
32997 | ||
32998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
32999 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); | |
33000 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33001 | { | |
33002 | arg2 = &temp2; | |
33003 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33004 | } | |
33005 | { | |
33006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33007 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
33008 | ||
33009 | wxPyEndAllowThreads(__tstate); | |
33010 | if (PyErr_Occurred()) SWIG_fail; | |
33011 | } | |
33012 | Py_INCREF(Py_None); resultobj = Py_None; | |
33013 | return resultobj; | |
33014 | fail: | |
33015 | return NULL; | |
33016 | } | |
33017 | ||
33018 | ||
33019 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
33020 | PyObject *resultobj; | |
33021 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33022 | wxString *result; | |
33023 | PyObject * obj0 = 0 ; | |
33024 | char *kwnames[] = { | |
33025 | (char *) "self", NULL | |
33026 | }; | |
33027 | ||
33028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
33029 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); | |
33030 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33031 | { | |
33032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33033 | { | |
33034 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
33035 | result = (wxString *) &_result_ref; | |
33036 | } | |
33037 | ||
33038 | wxPyEndAllowThreads(__tstate); | |
33039 | if (PyErr_Occurred()) SWIG_fail; | |
33040 | } | |
33041 | { | |
33042 | #if wxUSE_UNICODE | |
33043 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33044 | #else | |
33045 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33046 | #endif | |
33047 | } | |
33048 | return resultobj; | |
33049 | fail: | |
33050 | return NULL; | |
33051 | } | |
33052 | ||
33053 | ||
33054 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { | |
33055 | PyObject *resultobj; | |
33056 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33057 | wxString *arg2 = 0 ; | |
33058 | bool temp2 = false ; | |
33059 | PyObject * obj0 = 0 ; | |
33060 | PyObject * obj1 = 0 ; | |
33061 | char *kwnames[] = { | |
33062 | (char *) "self",(char *) "link", NULL | |
33063 | }; | |
33064 | ||
33065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
33066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); | |
33067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33068 | { | |
33069 | arg2 = wxString_in_helper(obj1); | |
33070 | if (arg2 == NULL) SWIG_fail; | |
33071 | temp2 = true; | |
33072 | } | |
33073 | { | |
33074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33075 | (arg1)->SetLink((wxString const &)*arg2); | |
33076 | ||
33077 | wxPyEndAllowThreads(__tstate); | |
33078 | if (PyErr_Occurred()) SWIG_fail; | |
33079 | } | |
33080 | Py_INCREF(Py_None); resultobj = Py_None; | |
33081 | { | |
33082 | if (temp2) | |
33083 | delete arg2; | |
33084 | } | |
33085 | return resultobj; | |
33086 | fail: | |
33087 | { | |
33088 | if (temp2) | |
33089 | delete arg2; | |
33090 | } | |
33091 | return NULL; | |
33092 | } | |
33093 | ||
33094 | ||
33095 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { | |
33096 | PyObject *resultobj; | |
33097 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33098 | wxString *result; | |
33099 | PyObject * obj0 = 0 ; | |
33100 | char *kwnames[] = { | |
33101 | (char *) "self", NULL | |
33102 | }; | |
33103 | ||
33104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
33105 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); | |
33106 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33107 | { | |
33108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33109 | { | |
33110 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
33111 | result = (wxString *) &_result_ref; | |
33112 | } | |
33113 | ||
33114 | wxPyEndAllowThreads(__tstate); | |
33115 | if (PyErr_Occurred()) SWIG_fail; | |
33116 | } | |
33117 | { | |
33118 | #if wxUSE_UNICODE | |
33119 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33120 | #else | |
33121 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33122 | #endif | |
33123 | } | |
33124 | return resultobj; | |
33125 | fail: | |
33126 | return NULL; | |
33127 | } | |
33128 | ||
33129 | ||
33130 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { | |
33131 | PyObject *resultobj; | |
33132 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
33133 | wxString *arg2 = 0 ; | |
33134 | bool temp2 = false ; | |
33135 | PyObject * obj0 = 0 ; | |
33136 | PyObject * obj1 = 0 ; | |
33137 | char *kwnames[] = { | |
33138 | (char *) "self",(char *) "target", NULL | |
33139 | }; | |
33140 | ||
33141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
33142 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); | |
33143 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33144 | { | |
33145 | arg2 = wxString_in_helper(obj1); | |
33146 | if (arg2 == NULL) SWIG_fail; | |
33147 | temp2 = true; | |
33148 | } | |
33149 | { | |
33150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33151 | (arg1)->SetTarget((wxString const &)*arg2); | |
33152 | ||
33153 | wxPyEndAllowThreads(__tstate); | |
33154 | if (PyErr_Occurred()) SWIG_fail; | |
33155 | } | |
33156 | Py_INCREF(Py_None); resultobj = Py_None; | |
33157 | { | |
33158 | if (temp2) | |
33159 | delete arg2; | |
33160 | } | |
33161 | return resultobj; | |
33162 | fail: | |
33163 | { | |
33164 | if (temp2) | |
33165 | delete arg2; | |
33166 | } | |
33167 | return NULL; | |
33168 | } | |
33169 | ||
33170 | ||
33171 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { | |
33172 | PyObject *obj; | |
33173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33174 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
33175 | Py_INCREF(obj); | |
33176 | return Py_BuildValue((char *)""); | |
33177 | } | |
33178 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
33179 | PyObject *resultobj; | |
33180 | wxWindow *arg1 = (wxWindow *) NULL ; | |
33181 | bool arg2 = (bool) true ; | |
33182 | wxContextHelp *result; | |
33183 | PyObject * obj0 = 0 ; | |
33184 | PyObject * obj1 = 0 ; | |
33185 | char *kwnames[] = { | |
33186 | (char *) "window",(char *) "doNow", NULL | |
33187 | }; | |
33188 | ||
33189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
33190 | if (obj0) { | |
33191 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33192 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33193 | } | |
33194 | if (obj1) { | |
33195 | { | |
33196 | arg2 = (bool)(SWIG_As_bool(obj1)); | |
33197 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33198 | } | |
33199 | } | |
33200 | { | |
33201 | if (!wxPyCheckForApp()) SWIG_fail; | |
33202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33203 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
33204 | ||
33205 | wxPyEndAllowThreads(__tstate); | |
33206 | if (PyErr_Occurred()) SWIG_fail; | |
33207 | } | |
33208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
33209 | return resultobj; | |
33210 | fail: | |
33211 | return NULL; | |
33212 | } | |
33213 | ||
33214 | ||
33215 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
33216 | PyObject *resultobj; | |
33217 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33218 | PyObject * obj0 = 0 ; | |
33219 | char *kwnames[] = { | |
33220 | (char *) "self", NULL | |
33221 | }; | |
33222 | ||
33223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
33224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); | |
33225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33226 | { | |
33227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33228 | delete arg1; | |
33229 | ||
33230 | wxPyEndAllowThreads(__tstate); | |
33231 | if (PyErr_Occurred()) SWIG_fail; | |
33232 | } | |
33233 | Py_INCREF(Py_None); resultobj = Py_None; | |
33234 | return resultobj; | |
33235 | fail: | |
33236 | return NULL; | |
33237 | } | |
33238 | ||
33239 | ||
33240 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
33241 | PyObject *resultobj; | |
33242 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33243 | wxWindow *arg2 = (wxWindow *) NULL ; | |
33244 | bool result; | |
33245 | PyObject * obj0 = 0 ; | |
33246 | PyObject * obj1 = 0 ; | |
33247 | char *kwnames[] = { | |
33248 | (char *) "self",(char *) "window", NULL | |
33249 | }; | |
33250 | ||
33251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
33252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); | |
33253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33254 | if (obj1) { | |
33255 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33256 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33257 | } | |
33258 | { | |
33259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33260 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
33261 | ||
33262 | wxPyEndAllowThreads(__tstate); | |
33263 | if (PyErr_Occurred()) SWIG_fail; | |
33264 | } | |
33265 | { | |
33266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33267 | } | |
33268 | return resultobj; | |
33269 | fail: | |
33270 | return NULL; | |
33271 | } | |
33272 | ||
33273 | ||
33274 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
33275 | PyObject *resultobj; | |
33276 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
33277 | bool result; | |
33278 | PyObject * obj0 = 0 ; | |
33279 | char *kwnames[] = { | |
33280 | (char *) "self", NULL | |
33281 | }; | |
33282 | ||
33283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
33284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); | |
33285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33286 | { | |
33287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33288 | result = (bool)(arg1)->EndContextHelp(); | |
33289 | ||
33290 | wxPyEndAllowThreads(__tstate); | |
33291 | if (PyErr_Occurred()) SWIG_fail; | |
33292 | } | |
33293 | { | |
33294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33295 | } | |
33296 | return resultobj; | |
33297 | fail: | |
33298 | return NULL; | |
33299 | } | |
33300 | ||
33301 | ||
33302 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { | |
33303 | PyObject *obj; | |
33304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33305 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
33306 | Py_INCREF(obj); | |
33307 | return Py_BuildValue((char *)""); | |
33308 | } | |
33309 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { | |
33310 | PyObject *resultobj; | |
33311 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33312 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
33313 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33314 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33315 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33316 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33317 | long arg5 = (long) wxBU_AUTODRAW ; | |
33318 | wxContextHelpButton *result; | |
33319 | wxPoint temp3 ; | |
33320 | wxSize temp4 ; | |
33321 | PyObject * obj0 = 0 ; | |
33322 | PyObject * obj1 = 0 ; | |
33323 | PyObject * obj2 = 0 ; | |
33324 | PyObject * obj3 = 0 ; | |
33325 | PyObject * obj4 = 0 ; | |
33326 | char *kwnames[] = { | |
33327 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
33328 | }; | |
33329 | ||
33330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
33331 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33332 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33333 | if (obj1) { | |
33334 | { | |
33335 | arg2 = (int)(SWIG_As_int(obj1)); | |
33336 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33337 | } | |
33338 | } | |
33339 | if (obj2) { | |
33340 | { | |
33341 | arg3 = &temp3; | |
33342 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33343 | } | |
33344 | } | |
33345 | if (obj3) { | |
33346 | { | |
33347 | arg4 = &temp4; | |
33348 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33349 | } | |
33350 | } | |
33351 | if (obj4) { | |
33352 | { | |
33353 | arg5 = (long)(SWIG_As_long(obj4)); | |
33354 | if (SWIG_arg_fail(5)) SWIG_fail; | |
33355 | } | |
33356 | } | |
33357 | { | |
33358 | if (!wxPyCheckForApp()) SWIG_fail; | |
33359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33360 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
33361 | ||
33362 | wxPyEndAllowThreads(__tstate); | |
33363 | if (PyErr_Occurred()) SWIG_fail; | |
33364 | } | |
33365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
33366 | return resultobj; | |
33367 | fail: | |
33368 | return NULL; | |
33369 | } | |
33370 | ||
33371 | ||
33372 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { | |
33373 | PyObject *obj; | |
33374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33375 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
33376 | Py_INCREF(obj); | |
33377 | return Py_BuildValue((char *)""); | |
33378 | } | |
33379 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
33380 | PyObject *resultobj; | |
33381 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33382 | wxHelpProvider *result; | |
33383 | PyObject * obj0 = 0 ; | |
33384 | char *kwnames[] = { | |
33385 | (char *) "helpProvider", NULL | |
33386 | }; | |
33387 | ||
33388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
33389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); | |
33390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33391 | { | |
33392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33393 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
33394 | ||
33395 | wxPyEndAllowThreads(__tstate); | |
33396 | if (PyErr_Occurred()) SWIG_fail; | |
33397 | } | |
33398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
33399 | return resultobj; | |
33400 | fail: | |
33401 | return NULL; | |
33402 | } | |
33403 | ||
33404 | ||
33405 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
33406 | PyObject *resultobj; | |
33407 | wxHelpProvider *result; | |
33408 | char *kwnames[] = { | |
33409 | NULL | |
33410 | }; | |
33411 | ||
33412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
33413 | { | |
33414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33415 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
33416 | ||
33417 | wxPyEndAllowThreads(__tstate); | |
33418 | if (PyErr_Occurred()) SWIG_fail; | |
33419 | } | |
33420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
33421 | return resultobj; | |
33422 | fail: | |
33423 | return NULL; | |
33424 | } | |
33425 | ||
33426 | ||
33427 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
33428 | PyObject *resultobj; | |
33429 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33430 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33431 | wxString result; | |
33432 | PyObject * obj0 = 0 ; | |
33433 | PyObject * obj1 = 0 ; | |
33434 | char *kwnames[] = { | |
33435 | (char *) "self",(char *) "window", NULL | |
33436 | }; | |
33437 | ||
33438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
33439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); | |
33440 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33441 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33442 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33443 | { | |
33444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33445 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
33446 | ||
33447 | wxPyEndAllowThreads(__tstate); | |
33448 | if (PyErr_Occurred()) SWIG_fail; | |
33449 | } | |
33450 | { | |
33451 | #if wxUSE_UNICODE | |
33452 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33453 | #else | |
33454 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33455 | #endif | |
33456 | } | |
33457 | return resultobj; | |
33458 | fail: | |
33459 | return NULL; | |
33460 | } | |
33461 | ||
33462 | ||
33463 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
33464 | PyObject *resultobj; | |
33465 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33466 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33467 | bool result; | |
33468 | PyObject * obj0 = 0 ; | |
33469 | PyObject * obj1 = 0 ; | |
33470 | char *kwnames[] = { | |
33471 | (char *) "self",(char *) "window", NULL | |
33472 | }; | |
33473 | ||
33474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
33475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); | |
33476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33477 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33478 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33479 | { | |
33480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33481 | result = (bool)(arg1)->ShowHelp(arg2); | |
33482 | ||
33483 | wxPyEndAllowThreads(__tstate); | |
33484 | if (PyErr_Occurred()) SWIG_fail; | |
33485 | } | |
33486 | { | |
33487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33488 | } | |
33489 | return resultobj; | |
33490 | fail: | |
33491 | return NULL; | |
33492 | } | |
33493 | ||
33494 | ||
33495 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
33496 | PyObject *resultobj; | |
33497 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33498 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33499 | wxString *arg3 = 0 ; | |
33500 | bool temp3 = false ; | |
33501 | PyObject * obj0 = 0 ; | |
33502 | PyObject * obj1 = 0 ; | |
33503 | PyObject * obj2 = 0 ; | |
33504 | char *kwnames[] = { | |
33505 | (char *) "self",(char *) "window",(char *) "text", NULL | |
33506 | }; | |
33507 | ||
33508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); | |
33510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33511 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33512 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33513 | { | |
33514 | arg3 = wxString_in_helper(obj2); | |
33515 | if (arg3 == NULL) SWIG_fail; | |
33516 | temp3 = true; | |
33517 | } | |
33518 | { | |
33519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33520 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33521 | ||
33522 | wxPyEndAllowThreads(__tstate); | |
33523 | if (PyErr_Occurred()) SWIG_fail; | |
33524 | } | |
33525 | Py_INCREF(Py_None); resultobj = Py_None; | |
33526 | { | |
33527 | if (temp3) | |
33528 | delete arg3; | |
33529 | } | |
33530 | return resultobj; | |
33531 | fail: | |
33532 | { | |
33533 | if (temp3) | |
33534 | delete arg3; | |
33535 | } | |
33536 | return NULL; | |
33537 | } | |
33538 | ||
33539 | ||
33540 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { | |
33541 | PyObject *resultobj; | |
33542 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33543 | int arg2 ; | |
33544 | wxString *arg3 = 0 ; | |
33545 | bool temp3 = false ; | |
33546 | PyObject * obj0 = 0 ; | |
33547 | PyObject * obj1 = 0 ; | |
33548 | PyObject * obj2 = 0 ; | |
33549 | char *kwnames[] = { | |
33550 | (char *) "self",(char *) "id",(char *) "text", NULL | |
33551 | }; | |
33552 | ||
33553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33554 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); | |
33555 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33556 | { | |
33557 | arg2 = (int)(SWIG_As_int(obj1)); | |
33558 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33559 | } | |
33560 | { | |
33561 | arg3 = wxString_in_helper(obj2); | |
33562 | if (arg3 == NULL) SWIG_fail; | |
33563 | temp3 = true; | |
33564 | } | |
33565 | { | |
33566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33567 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
33568 | ||
33569 | wxPyEndAllowThreads(__tstate); | |
33570 | if (PyErr_Occurred()) SWIG_fail; | |
33571 | } | |
33572 | Py_INCREF(Py_None); resultobj = Py_None; | |
33573 | { | |
33574 | if (temp3) | |
33575 | delete arg3; | |
33576 | } | |
33577 | return resultobj; | |
33578 | fail: | |
33579 | { | |
33580 | if (temp3) | |
33581 | delete arg3; | |
33582 | } | |
33583 | return NULL; | |
33584 | } | |
33585 | ||
33586 | ||
33587 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { | |
33588 | PyObject *resultobj; | |
33589 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33590 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33591 | PyObject * obj0 = 0 ; | |
33592 | PyObject * obj1 = 0 ; | |
33593 | char *kwnames[] = { | |
33594 | (char *) "self",(char *) "window", NULL | |
33595 | }; | |
33596 | ||
33597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
33598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); | |
33599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33600 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33601 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33602 | { | |
33603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33604 | (arg1)->RemoveHelp(arg2); | |
33605 | ||
33606 | wxPyEndAllowThreads(__tstate); | |
33607 | if (PyErr_Occurred()) SWIG_fail; | |
33608 | } | |
33609 | Py_INCREF(Py_None); resultobj = Py_None; | |
33610 | return resultobj; | |
33611 | fail: | |
33612 | return NULL; | |
33613 | } | |
33614 | ||
33615 | ||
33616 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { | |
33617 | PyObject *resultobj; | |
33618 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
33619 | PyObject * obj0 = 0 ; | |
33620 | char *kwnames[] = { | |
33621 | (char *) "self", NULL | |
33622 | }; | |
33623 | ||
33624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
33625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); | |
33626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33627 | { | |
33628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33629 | wxHelpProvider_Destroy(arg1); | |
33630 | ||
33631 | wxPyEndAllowThreads(__tstate); | |
33632 | if (PyErr_Occurred()) SWIG_fail; | |
33633 | } | |
33634 | Py_INCREF(Py_None); resultobj = Py_None; | |
33635 | return resultobj; | |
33636 | fail: | |
33637 | return NULL; | |
33638 | } | |
33639 | ||
33640 | ||
33641 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { | |
33642 | PyObject *obj; | |
33643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33644 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
33645 | Py_INCREF(obj); | |
33646 | return Py_BuildValue((char *)""); | |
33647 | } | |
33648 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { | |
33649 | PyObject *resultobj; | |
33650 | wxSimpleHelpProvider *result; | |
33651 | char *kwnames[] = { | |
33652 | NULL | |
33653 | }; | |
33654 | ||
33655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
33656 | { | |
33657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33658 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
33659 | ||
33660 | wxPyEndAllowThreads(__tstate); | |
33661 | if (PyErr_Occurred()) SWIG_fail; | |
33662 | } | |
33663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
33664 | return resultobj; | |
33665 | fail: | |
33666 | return NULL; | |
33667 | } | |
33668 | ||
33669 | ||
33670 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { | |
33671 | PyObject *obj; | |
33672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33673 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
33674 | Py_INCREF(obj); | |
33675 | return Py_BuildValue((char *)""); | |
33676 | } | |
33677 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
33678 | PyObject *resultobj; | |
33679 | wxBitmap *arg1 = 0 ; | |
33680 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33681 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33682 | wxGenericDragImage *result; | |
33683 | PyObject * obj0 = 0 ; | |
33684 | PyObject * obj1 = 0 ; | |
33685 | char *kwnames[] = { | |
33686 | (char *) "image",(char *) "cursor", NULL | |
33687 | }; | |
33688 | ||
33689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
33690 | { | |
33691 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
33692 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33693 | if (arg1 == NULL) { | |
33694 | SWIG_null_ref("wxBitmap"); | |
33695 | } | |
33696 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33697 | } | |
33698 | if (obj1) { | |
33699 | { | |
33700 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33701 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33702 | if (arg2 == NULL) { | |
33703 | SWIG_null_ref("wxCursor"); | |
33704 | } | |
33705 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33706 | } | |
33707 | } | |
33708 | { | |
33709 | if (!wxPyCheckForApp()) SWIG_fail; | |
33710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33711 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
33712 | ||
33713 | wxPyEndAllowThreads(__tstate); | |
33714 | if (PyErr_Occurred()) SWIG_fail; | |
33715 | } | |
33716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33717 | return resultobj; | |
33718 | fail: | |
33719 | return NULL; | |
33720 | } | |
33721 | ||
33722 | ||
33723 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
33724 | PyObject *resultobj; | |
33725 | wxIcon *arg1 = 0 ; | |
33726 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33727 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33728 | wxGenericDragImage *result; | |
33729 | PyObject * obj0 = 0 ; | |
33730 | PyObject * obj1 = 0 ; | |
33731 | char *kwnames[] = { | |
33732 | (char *) "image",(char *) "cursor", NULL | |
33733 | }; | |
33734 | ||
33735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
33736 | { | |
33737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
33738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33739 | if (arg1 == NULL) { | |
33740 | SWIG_null_ref("wxIcon"); | |
33741 | } | |
33742 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33743 | } | |
33744 | if (obj1) { | |
33745 | { | |
33746 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33747 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33748 | if (arg2 == NULL) { | |
33749 | SWIG_null_ref("wxCursor"); | |
33750 | } | |
33751 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33752 | } | |
33753 | } | |
33754 | { | |
33755 | if (!wxPyCheckForApp()) SWIG_fail; | |
33756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33757 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
33758 | ||
33759 | wxPyEndAllowThreads(__tstate); | |
33760 | if (PyErr_Occurred()) SWIG_fail; | |
33761 | } | |
33762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33763 | return resultobj; | |
33764 | fail: | |
33765 | return NULL; | |
33766 | } | |
33767 | ||
33768 | ||
33769 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { | |
33770 | PyObject *resultobj; | |
33771 | wxString *arg1 = 0 ; | |
33772 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
33773 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
33774 | wxGenericDragImage *result; | |
33775 | bool temp1 = false ; | |
33776 | PyObject * obj0 = 0 ; | |
33777 | PyObject * obj1 = 0 ; | |
33778 | char *kwnames[] = { | |
33779 | (char *) "str",(char *) "cursor", NULL | |
33780 | }; | |
33781 | ||
33782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
33783 | { | |
33784 | arg1 = wxString_in_helper(obj0); | |
33785 | if (arg1 == NULL) SWIG_fail; | |
33786 | temp1 = true; | |
33787 | } | |
33788 | if (obj1) { | |
33789 | { | |
33790 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
33791 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33792 | if (arg2 == NULL) { | |
33793 | SWIG_null_ref("wxCursor"); | |
33794 | } | |
33795 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33796 | } | |
33797 | } | |
33798 | { | |
33799 | if (!wxPyCheckForApp()) SWIG_fail; | |
33800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33801 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
33802 | ||
33803 | wxPyEndAllowThreads(__tstate); | |
33804 | if (PyErr_Occurred()) SWIG_fail; | |
33805 | } | |
33806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33807 | { | |
33808 | if (temp1) | |
33809 | delete arg1; | |
33810 | } | |
33811 | return resultobj; | |
33812 | fail: | |
33813 | { | |
33814 | if (temp1) | |
33815 | delete arg1; | |
33816 | } | |
33817 | return NULL; | |
33818 | } | |
33819 | ||
33820 | ||
33821 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
33822 | PyObject *resultobj; | |
33823 | wxPyTreeCtrl *arg1 = 0 ; | |
33824 | wxTreeItemId *arg2 = 0 ; | |
33825 | wxGenericDragImage *result; | |
33826 | PyObject * obj0 = 0 ; | |
33827 | PyObject * obj1 = 0 ; | |
33828 | char *kwnames[] = { | |
33829 | (char *) "treeCtrl",(char *) "id", NULL | |
33830 | }; | |
33831 | ||
33832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
33833 | { | |
33834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33836 | if (arg1 == NULL) { | |
33837 | SWIG_null_ref("wxPyTreeCtrl"); | |
33838 | } | |
33839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33840 | } | |
33841 | { | |
33842 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
33843 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33844 | if (arg2 == NULL) { | |
33845 | SWIG_null_ref("wxTreeItemId"); | |
33846 | } | |
33847 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33848 | } | |
33849 | { | |
33850 | if (!wxPyCheckForApp()) SWIG_fail; | |
33851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33852 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
33853 | ||
33854 | wxPyEndAllowThreads(__tstate); | |
33855 | if (PyErr_Occurred()) SWIG_fail; | |
33856 | } | |
33857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33858 | return resultobj; | |
33859 | fail: | |
33860 | return NULL; | |
33861 | } | |
33862 | ||
33863 | ||
33864 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { | |
33865 | PyObject *resultobj; | |
33866 | wxPyListCtrl *arg1 = 0 ; | |
33867 | long arg2 ; | |
33868 | wxGenericDragImage *result; | |
33869 | PyObject * obj0 = 0 ; | |
33870 | PyObject * obj1 = 0 ; | |
33871 | char *kwnames[] = { | |
33872 | (char *) "listCtrl",(char *) "id", NULL | |
33873 | }; | |
33874 | ||
33875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
33876 | { | |
33877 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33878 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33879 | if (arg1 == NULL) { | |
33880 | SWIG_null_ref("wxPyListCtrl"); | |
33881 | } | |
33882 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33883 | } | |
33884 | { | |
33885 | arg2 = (long)(SWIG_As_long(obj1)); | |
33886 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33887 | } | |
33888 | { | |
33889 | if (!wxPyCheckForApp()) SWIG_fail; | |
33890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33891 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
33892 | ||
33893 | wxPyEndAllowThreads(__tstate); | |
33894 | if (PyErr_Occurred()) SWIG_fail; | |
33895 | } | |
33896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
33897 | return resultobj; | |
33898 | fail: | |
33899 | return NULL; | |
33900 | } | |
33901 | ||
33902 | ||
33903 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
33904 | PyObject *resultobj; | |
33905 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
33906 | PyObject * obj0 = 0 ; | |
33907 | char *kwnames[] = { | |
33908 | (char *) "self", NULL | |
33909 | }; | |
33910 | ||
33911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
33912 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
33913 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33914 | { | |
33915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33916 | delete arg1; | |
33917 | ||
33918 | wxPyEndAllowThreads(__tstate); | |
33919 | if (PyErr_Occurred()) SWIG_fail; | |
33920 | } | |
33921 | Py_INCREF(Py_None); resultobj = Py_None; | |
33922 | return resultobj; | |
33923 | fail: | |
33924 | return NULL; | |
33925 | } | |
33926 | ||
33927 | ||
33928 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
33929 | PyObject *resultobj; | |
33930 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
33931 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
33932 | PyObject * obj0 = 0 ; | |
33933 | PyObject * obj1 = 0 ; | |
33934 | char *kwnames[] = { | |
33935 | (char *) "self",(char *) "bitmap", NULL | |
33936 | }; | |
33937 | ||
33938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
33940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33941 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
33942 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33943 | { | |
33944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33945 | (arg1)->SetBackingBitmap(arg2); | |
33946 | ||
33947 | wxPyEndAllowThreads(__tstate); | |
33948 | if (PyErr_Occurred()) SWIG_fail; | |
33949 | } | |
33950 | Py_INCREF(Py_None); resultobj = Py_None; | |
33951 | return resultobj; | |
33952 | fail: | |
33953 | return NULL; | |
33954 | } | |
33955 | ||
33956 | ||
33957 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { | |
33958 | PyObject *resultobj; | |
33959 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
33960 | wxPoint *arg2 = 0 ; | |
33961 | wxWindow *arg3 = (wxWindow *) 0 ; | |
33962 | bool arg4 = (bool) false ; | |
33963 | wxRect *arg5 = (wxRect *) NULL ; | |
33964 | bool result; | |
33965 | wxPoint temp2 ; | |
33966 | PyObject * obj0 = 0 ; | |
33967 | PyObject * obj1 = 0 ; | |
33968 | PyObject * obj2 = 0 ; | |
33969 | PyObject * obj3 = 0 ; | |
33970 | PyObject * obj4 = 0 ; | |
33971 | char *kwnames[] = { | |
33972 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
33973 | }; | |
33974 | ||
33975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
33976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
33977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33978 | { | |
33979 | arg2 = &temp2; | |
33980 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33981 | } | |
33982 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
33983 | if (SWIG_arg_fail(3)) SWIG_fail; | |
33984 | if (obj3) { | |
33985 | { | |
33986 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
33987 | if (SWIG_arg_fail(4)) SWIG_fail; | |
33988 | } | |
33989 | } | |
33990 | if (obj4) { | |
33991 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); | |
33992 | if (SWIG_arg_fail(5)) SWIG_fail; | |
33993 | } | |
33994 | { | |
33995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33996 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
33997 | ||
33998 | wxPyEndAllowThreads(__tstate); | |
33999 | if (PyErr_Occurred()) SWIG_fail; | |
34000 | } | |
34001 | { | |
34002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34003 | } | |
34004 | return resultobj; | |
34005 | fail: | |
34006 | return NULL; | |
34007 | } | |
34008 | ||
34009 | ||
34010 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { | |
34011 | PyObject *resultobj; | |
34012 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34013 | wxPoint *arg2 = 0 ; | |
34014 | wxWindow *arg3 = (wxWindow *) 0 ; | |
34015 | wxWindow *arg4 = (wxWindow *) 0 ; | |
34016 | bool result; | |
34017 | wxPoint temp2 ; | |
34018 | PyObject * obj0 = 0 ; | |
34019 | PyObject * obj1 = 0 ; | |
34020 | PyObject * obj2 = 0 ; | |
34021 | PyObject * obj3 = 0 ; | |
34022 | char *kwnames[] = { | |
34023 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
34024 | }; | |
34025 | ||
34026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34027 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34029 | { | |
34030 | arg2 = &temp2; | |
34031 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34032 | } | |
34033 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34034 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34035 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34036 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34037 | { | |
34038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34039 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
34040 | ||
34041 | wxPyEndAllowThreads(__tstate); | |
34042 | if (PyErr_Occurred()) SWIG_fail; | |
34043 | } | |
34044 | { | |
34045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34046 | } | |
34047 | return resultobj; | |
34048 | fail: | |
34049 | return NULL; | |
34050 | } | |
34051 | ||
34052 | ||
34053 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { | |
34054 | PyObject *resultobj; | |
34055 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34056 | bool result; | |
34057 | PyObject * obj0 = 0 ; | |
34058 | char *kwnames[] = { | |
34059 | (char *) "self", NULL | |
34060 | }; | |
34061 | ||
34062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
34063 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34064 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34065 | { | |
34066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34067 | result = (bool)(arg1)->EndDrag(); | |
34068 | ||
34069 | wxPyEndAllowThreads(__tstate); | |
34070 | if (PyErr_Occurred()) SWIG_fail; | |
34071 | } | |
34072 | { | |
34073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34074 | } | |
34075 | return resultobj; | |
34076 | fail: | |
34077 | return NULL; | |
34078 | } | |
34079 | ||
34080 | ||
34081 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { | |
34082 | PyObject *resultobj; | |
34083 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34084 | wxPoint *arg2 = 0 ; | |
34085 | bool result; | |
34086 | wxPoint temp2 ; | |
34087 | PyObject * obj0 = 0 ; | |
34088 | PyObject * obj1 = 0 ; | |
34089 | char *kwnames[] = { | |
34090 | (char *) "self",(char *) "pt", NULL | |
34091 | }; | |
34092 | ||
34093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
34094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34096 | { | |
34097 | arg2 = &temp2; | |
34098 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34099 | } | |
34100 | { | |
34101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34102 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
34103 | ||
34104 | wxPyEndAllowThreads(__tstate); | |
34105 | if (PyErr_Occurred()) SWIG_fail; | |
34106 | } | |
34107 | { | |
34108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34109 | } | |
34110 | return resultobj; | |
34111 | fail: | |
34112 | return NULL; | |
34113 | } | |
34114 | ||
34115 | ||
34116 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { | |
34117 | PyObject *resultobj; | |
34118 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34119 | bool result; | |
34120 | PyObject * obj0 = 0 ; | |
34121 | char *kwnames[] = { | |
34122 | (char *) "self", NULL | |
34123 | }; | |
34124 | ||
34125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
34126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34128 | { | |
34129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34130 | result = (bool)(arg1)->Show(); | |
34131 | ||
34132 | wxPyEndAllowThreads(__tstate); | |
34133 | if (PyErr_Occurred()) SWIG_fail; | |
34134 | } | |
34135 | { | |
34136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34137 | } | |
34138 | return resultobj; | |
34139 | fail: | |
34140 | return NULL; | |
34141 | } | |
34142 | ||
34143 | ||
34144 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { | |
34145 | PyObject *resultobj; | |
34146 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34147 | bool result; | |
34148 | PyObject * obj0 = 0 ; | |
34149 | char *kwnames[] = { | |
34150 | (char *) "self", NULL | |
34151 | }; | |
34152 | ||
34153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
34154 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34155 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34156 | { | |
34157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34158 | result = (bool)(arg1)->Hide(); | |
34159 | ||
34160 | wxPyEndAllowThreads(__tstate); | |
34161 | if (PyErr_Occurred()) SWIG_fail; | |
34162 | } | |
34163 | { | |
34164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34165 | } | |
34166 | return resultobj; | |
34167 | fail: | |
34168 | return NULL; | |
34169 | } | |
34170 | ||
34171 | ||
34172 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
34173 | PyObject *resultobj; | |
34174 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34175 | wxPoint *arg2 = 0 ; | |
34176 | wxRect result; | |
34177 | wxPoint temp2 ; | |
34178 | PyObject * obj0 = 0 ; | |
34179 | PyObject * obj1 = 0 ; | |
34180 | char *kwnames[] = { | |
34181 | (char *) "self",(char *) "pos", NULL | |
34182 | }; | |
34183 | ||
34184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
34185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34187 | { | |
34188 | arg2 = &temp2; | |
34189 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34190 | } | |
34191 | { | |
34192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34193 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
34194 | ||
34195 | wxPyEndAllowThreads(__tstate); | |
34196 | if (PyErr_Occurred()) SWIG_fail; | |
34197 | } | |
34198 | { | |
34199 | wxRect * resultptr; | |
34200 | resultptr = new wxRect((wxRect &)(result)); | |
34201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
34202 | } | |
34203 | return resultobj; | |
34204 | fail: | |
34205 | return NULL; | |
34206 | } | |
34207 | ||
34208 | ||
34209 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
34210 | PyObject *resultobj; | |
34211 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34212 | wxDC *arg2 = 0 ; | |
34213 | wxPoint *arg3 = 0 ; | |
34214 | bool result; | |
34215 | wxPoint temp3 ; | |
34216 | PyObject * obj0 = 0 ; | |
34217 | PyObject * obj1 = 0 ; | |
34218 | PyObject * obj2 = 0 ; | |
34219 | char *kwnames[] = { | |
34220 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
34221 | }; | |
34222 | ||
34223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34224 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34225 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34226 | { | |
34227 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34228 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34229 | if (arg2 == NULL) { | |
34230 | SWIG_null_ref("wxDC"); | |
34231 | } | |
34232 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34233 | } | |
34234 | { | |
34235 | arg3 = &temp3; | |
34236 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34237 | } | |
34238 | { | |
34239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34240 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
34241 | ||
34242 | wxPyEndAllowThreads(__tstate); | |
34243 | if (PyErr_Occurred()) SWIG_fail; | |
34244 | } | |
34245 | { | |
34246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34247 | } | |
34248 | return resultobj; | |
34249 | fail: | |
34250 | return NULL; | |
34251 | } | |
34252 | ||
34253 | ||
34254 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { | |
34255 | PyObject *resultobj; | |
34256 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34257 | wxDC *arg2 = 0 ; | |
34258 | wxMemoryDC *arg3 = 0 ; | |
34259 | wxRect *arg4 = 0 ; | |
34260 | wxRect *arg5 = 0 ; | |
34261 | bool result; | |
34262 | wxRect temp4 ; | |
34263 | wxRect temp5 ; | |
34264 | PyObject * obj0 = 0 ; | |
34265 | PyObject * obj1 = 0 ; | |
34266 | PyObject * obj2 = 0 ; | |
34267 | PyObject * obj3 = 0 ; | |
34268 | PyObject * obj4 = 0 ; | |
34269 | char *kwnames[] = { | |
34270 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
34271 | }; | |
34272 | ||
34273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
34274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34276 | { | |
34277 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
34278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34279 | if (arg2 == NULL) { | |
34280 | SWIG_null_ref("wxDC"); | |
34281 | } | |
34282 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34283 | } | |
34284 | { | |
34285 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
34286 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34287 | if (arg3 == NULL) { | |
34288 | SWIG_null_ref("wxMemoryDC"); | |
34289 | } | |
34290 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34291 | } | |
34292 | { | |
34293 | arg4 = &temp4; | |
34294 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34295 | } | |
34296 | { | |
34297 | arg5 = &temp5; | |
34298 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
34299 | } | |
34300 | { | |
34301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34302 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
34303 | ||
34304 | wxPyEndAllowThreads(__tstate); | |
34305 | if (PyErr_Occurred()) SWIG_fail; | |
34306 | } | |
34307 | { | |
34308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34309 | } | |
34310 | return resultobj; | |
34311 | fail: | |
34312 | return NULL; | |
34313 | } | |
34314 | ||
34315 | ||
34316 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
34317 | PyObject *resultobj; | |
34318 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
34319 | wxPoint *arg2 = 0 ; | |
34320 | wxPoint *arg3 = 0 ; | |
34321 | bool arg4 ; | |
34322 | bool arg5 ; | |
34323 | bool result; | |
34324 | wxPoint temp2 ; | |
34325 | wxPoint temp3 ; | |
34326 | PyObject * obj0 = 0 ; | |
34327 | PyObject * obj1 = 0 ; | |
34328 | PyObject * obj2 = 0 ; | |
34329 | PyObject * obj3 = 0 ; | |
34330 | PyObject * obj4 = 0 ; | |
34331 | char *kwnames[] = { | |
34332 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
34333 | }; | |
34334 | ||
34335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
34336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); | |
34337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34338 | { | |
34339 | arg2 = &temp2; | |
34340 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34341 | } | |
34342 | { | |
34343 | arg3 = &temp3; | |
34344 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34345 | } | |
34346 | { | |
34347 | arg4 = (bool)(SWIG_As_bool(obj3)); | |
34348 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34349 | } | |
34350 | { | |
34351 | arg5 = (bool)(SWIG_As_bool(obj4)); | |
34352 | if (SWIG_arg_fail(5)) SWIG_fail; | |
34353 | } | |
34354 | { | |
34355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34356 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
34357 | ||
34358 | wxPyEndAllowThreads(__tstate); | |
34359 | if (PyErr_Occurred()) SWIG_fail; | |
34360 | } | |
34361 | { | |
34362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34363 | } | |
34364 | return resultobj; | |
34365 | fail: | |
34366 | return NULL; | |
34367 | } | |
34368 | ||
34369 | ||
34370 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { | |
34371 | PyObject *obj; | |
34372 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34373 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
34374 | Py_INCREF(obj); | |
34375 | return Py_BuildValue((char *)""); | |
34376 | } | |
34377 | static int _wrap_DatePickerCtrlNameStr_set(PyObject *) { | |
34378 | PyErr_SetString(PyExc_TypeError,"Variable DatePickerCtrlNameStr is read-only."); | |
34379 | return 1; | |
34380 | } | |
34381 | ||
34382 | ||
34383 | static PyObject *_wrap_DatePickerCtrlNameStr_get(void) { | |
34384 | PyObject *pyobj; | |
34385 | ||
34386 | { | |
34387 | #if wxUSE_UNICODE | |
34388 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34389 | #else | |
34390 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
34391 | #endif | |
34392 | } | |
34393 | return pyobj; | |
34394 | } | |
34395 | ||
34396 | ||
34397 | static PyObject *_wrap_new_DatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
34398 | PyObject *resultobj; | |
34399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
34400 | int arg2 = (int) -1 ; | |
34401 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
34402 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
34403 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
34404 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
34405 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
34406 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
34407 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34408 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
34409 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
34410 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
34411 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
34412 | wxDatePickerCtrl *result; | |
34413 | wxPoint temp4 ; | |
34414 | wxSize temp5 ; | |
34415 | bool temp8 = false ; | |
34416 | PyObject * obj0 = 0 ; | |
34417 | PyObject * obj1 = 0 ; | |
34418 | PyObject * obj2 = 0 ; | |
34419 | PyObject * obj3 = 0 ; | |
34420 | PyObject * obj4 = 0 ; | |
34421 | PyObject * obj5 = 0 ; | |
34422 | PyObject * obj6 = 0 ; | |
34423 | PyObject * obj7 = 0 ; | |
34424 | char *kwnames[] = { | |
34425 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34426 | }; | |
34427 | ||
34428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
34429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34431 | if (obj1) { | |
34432 | { | |
34433 | arg2 = (int)(SWIG_As_int(obj1)); | |
34434 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34435 | } | |
34436 | } | |
34437 | if (obj2) { | |
34438 | { | |
34439 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34440 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34441 | if (arg3 == NULL) { | |
34442 | SWIG_null_ref("wxDateTime"); | |
34443 | } | |
34444 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34445 | } | |
34446 | } | |
34447 | if (obj3) { | |
34448 | { | |
34449 | arg4 = &temp4; | |
34450 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
34451 | } | |
34452 | } | |
34453 | if (obj4) { | |
34454 | { | |
34455 | arg5 = &temp5; | |
34456 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
34457 | } | |
34458 | } | |
34459 | if (obj5) { | |
34460 | { | |
34461 | arg6 = (long)(SWIG_As_long(obj5)); | |
34462 | if (SWIG_arg_fail(6)) SWIG_fail; | |
34463 | } | |
34464 | } | |
34465 | if (obj6) { | |
34466 | { | |
34467 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34468 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34469 | if (arg7 == NULL) { | |
34470 | SWIG_null_ref("wxValidator"); | |
34471 | } | |
34472 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34473 | } | |
34474 | } | |
34475 | if (obj7) { | |
34476 | { | |
34477 | arg8 = wxString_in_helper(obj7); | |
34478 | if (arg8 == NULL) SWIG_fail; | |
34479 | temp8 = true; | |
34480 | } | |
34481 | } | |
34482 | { | |
34483 | if (!wxPyCheckForApp()) SWIG_fail; | |
34484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34485 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
34486 | ||
34487 | wxPyEndAllowThreads(__tstate); | |
34488 | if (PyErr_Occurred()) SWIG_fail; | |
34489 | } | |
34490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34491 | { | |
34492 | if (temp8) | |
34493 | delete arg8; | |
34494 | } | |
34495 | return resultobj; | |
34496 | fail: | |
34497 | { | |
34498 | if (temp8) | |
34499 | delete arg8; | |
34500 | } | |
34501 | return NULL; | |
34502 | } | |
34503 | ||
34504 | ||
34505 | static PyObject *_wrap_new_PreDatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
34506 | PyObject *resultobj; | |
34507 | wxDatePickerCtrl *result; | |
34508 | char *kwnames[] = { | |
34509 | NULL | |
34510 | }; | |
34511 | ||
34512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDatePickerCtrl",kwnames)) goto fail; | |
34513 | { | |
34514 | if (!wxPyCheckForApp()) SWIG_fail; | |
34515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34516 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
34517 | ||
34518 | wxPyEndAllowThreads(__tstate); | |
34519 | if (PyErr_Occurred()) SWIG_fail; | |
34520 | } | |
34521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
34522 | return resultobj; | |
34523 | fail: | |
34524 | return NULL; | |
34525 | } | |
34526 | ||
34527 | ||
34528 | static PyObject *_wrap_DatePickerCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
34529 | PyObject *resultobj; | |
34530 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34531 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34532 | int arg3 = (int) -1 ; | |
34533 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
34534 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
34535 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
34536 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
34537 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
34538 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
34539 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
34540 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
34541 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
34542 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
34543 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
34544 | bool result; | |
34545 | wxPoint temp5 ; | |
34546 | wxSize temp6 ; | |
34547 | bool temp9 = false ; | |
34548 | PyObject * obj0 = 0 ; | |
34549 | PyObject * obj1 = 0 ; | |
34550 | PyObject * obj2 = 0 ; | |
34551 | PyObject * obj3 = 0 ; | |
34552 | PyObject * obj4 = 0 ; | |
34553 | PyObject * obj5 = 0 ; | |
34554 | PyObject * obj6 = 0 ; | |
34555 | PyObject * obj7 = 0 ; | |
34556 | PyObject * obj8 = 0 ; | |
34557 | char *kwnames[] = { | |
34558 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
34559 | }; | |
34560 | ||
34561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
34562 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34563 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34564 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34565 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34566 | if (obj2) { | |
34567 | { | |
34568 | arg3 = (int)(SWIG_As_int(obj2)); | |
34569 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34570 | } | |
34571 | } | |
34572 | if (obj3) { | |
34573 | { | |
34574 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34575 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34576 | if (arg4 == NULL) { | |
34577 | SWIG_null_ref("wxDateTime"); | |
34578 | } | |
34579 | if (SWIG_arg_fail(4)) SWIG_fail; | |
34580 | } | |
34581 | } | |
34582 | if (obj4) { | |
34583 | { | |
34584 | arg5 = &temp5; | |
34585 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
34586 | } | |
34587 | } | |
34588 | if (obj5) { | |
34589 | { | |
34590 | arg6 = &temp6; | |
34591 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
34592 | } | |
34593 | } | |
34594 | if (obj6) { | |
34595 | { | |
34596 | arg7 = (long)(SWIG_As_long(obj6)); | |
34597 | if (SWIG_arg_fail(7)) SWIG_fail; | |
34598 | } | |
34599 | } | |
34600 | if (obj7) { | |
34601 | { | |
34602 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
34603 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34604 | if (arg8 == NULL) { | |
34605 | SWIG_null_ref("wxValidator"); | |
34606 | } | |
34607 | if (SWIG_arg_fail(8)) SWIG_fail; | |
34608 | } | |
34609 | } | |
34610 | if (obj8) { | |
34611 | { | |
34612 | arg9 = wxString_in_helper(obj8); | |
34613 | if (arg9 == NULL) SWIG_fail; | |
34614 | temp9 = true; | |
34615 | } | |
34616 | } | |
34617 | { | |
34618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34619 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
34620 | ||
34621 | wxPyEndAllowThreads(__tstate); | |
34622 | if (PyErr_Occurred()) SWIG_fail; | |
34623 | } | |
34624 | { | |
34625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34626 | } | |
34627 | { | |
34628 | if (temp9) | |
34629 | delete arg9; | |
34630 | } | |
34631 | return resultobj; | |
34632 | fail: | |
34633 | { | |
34634 | if (temp9) | |
34635 | delete arg9; | |
34636 | } | |
34637 | return NULL; | |
34638 | } | |
34639 | ||
34640 | ||
34641 | static PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
34642 | PyObject *resultobj; | |
34643 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34644 | wxDateTime *arg2 = 0 ; | |
34645 | PyObject * obj0 = 0 ; | |
34646 | PyObject * obj1 = 0 ; | |
34647 | char *kwnames[] = { | |
34648 | (char *) "self",(char *) "dt", NULL | |
34649 | }; | |
34650 | ||
34651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
34652 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34653 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34654 | { | |
34655 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34656 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34657 | if (arg2 == NULL) { | |
34658 | SWIG_null_ref("wxDateTime"); | |
34659 | } | |
34660 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34661 | } | |
34662 | { | |
34663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34664 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
34665 | ||
34666 | wxPyEndAllowThreads(__tstate); | |
34667 | if (PyErr_Occurred()) SWIG_fail; | |
34668 | } | |
34669 | Py_INCREF(Py_None); resultobj = Py_None; | |
34670 | return resultobj; | |
34671 | fail: | |
34672 | return NULL; | |
34673 | } | |
34674 | ||
34675 | ||
34676 | static PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
34677 | PyObject *resultobj; | |
34678 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34679 | wxDateTime result; | |
34680 | PyObject * obj0 = 0 ; | |
34681 | char *kwnames[] = { | |
34682 | (char *) "self", NULL | |
34683 | }; | |
34684 | ||
34685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetValue",kwnames,&obj0)) goto fail; | |
34686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34688 | { | |
34689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34690 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
34691 | ||
34692 | wxPyEndAllowThreads(__tstate); | |
34693 | if (PyErr_Occurred()) SWIG_fail; | |
34694 | } | |
34695 | { | |
34696 | wxDateTime * resultptr; | |
34697 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34699 | } | |
34700 | return resultobj; | |
34701 | fail: | |
34702 | return NULL; | |
34703 | } | |
34704 | ||
34705 | ||
34706 | static PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
34707 | PyObject *resultobj; | |
34708 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34709 | wxDateTime *arg2 = 0 ; | |
34710 | wxDateTime *arg3 = 0 ; | |
34711 | PyObject * obj0 = 0 ; | |
34712 | PyObject * obj1 = 0 ; | |
34713 | PyObject * obj2 = 0 ; | |
34714 | char *kwnames[] = { | |
34715 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
34716 | }; | |
34717 | ||
34718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34721 | { | |
34722 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34723 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34724 | if (arg2 == NULL) { | |
34725 | SWIG_null_ref("wxDateTime"); | |
34726 | } | |
34727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
34728 | } | |
34729 | { | |
34730 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
34731 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34732 | if (arg3 == NULL) { | |
34733 | SWIG_null_ref("wxDateTime"); | |
34734 | } | |
34735 | if (SWIG_arg_fail(3)) SWIG_fail; | |
34736 | } | |
34737 | { | |
34738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34739 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
34740 | ||
34741 | wxPyEndAllowThreads(__tstate); | |
34742 | if (PyErr_Occurred()) SWIG_fail; | |
34743 | } | |
34744 | Py_INCREF(Py_None); resultobj = Py_None; | |
34745 | return resultobj; | |
34746 | fail: | |
34747 | return NULL; | |
34748 | } | |
34749 | ||
34750 | ||
34751 | static PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
34752 | PyObject *resultobj; | |
34753 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34754 | wxDateTime result; | |
34755 | PyObject * obj0 = 0 ; | |
34756 | char *kwnames[] = { | |
34757 | (char *) "self", NULL | |
34758 | }; | |
34759 | ||
34760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetLowerLimit",kwnames,&obj0)) goto fail; | |
34761 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34762 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34763 | { | |
34764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34765 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
34766 | ||
34767 | wxPyEndAllowThreads(__tstate); | |
34768 | if (PyErr_Occurred()) SWIG_fail; | |
34769 | } | |
34770 | { | |
34771 | wxDateTime * resultptr; | |
34772 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34773 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34774 | } | |
34775 | return resultobj; | |
34776 | fail: | |
34777 | return NULL; | |
34778 | } | |
34779 | ||
34780 | ||
34781 | static PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
34782 | PyObject *resultobj; | |
34783 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; | |
34784 | wxDateTime result; | |
34785 | PyObject * obj0 = 0 ; | |
34786 | char *kwnames[] = { | |
34787 | (char *) "self", NULL | |
34788 | }; | |
34789 | ||
34790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetUpperLimit",kwnames,&obj0)) goto fail; | |
34791 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
34792 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34793 | { | |
34794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34795 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
34796 | ||
34797 | wxPyEndAllowThreads(__tstate); | |
34798 | if (PyErr_Occurred()) SWIG_fail; | |
34799 | } | |
34800 | { | |
34801 | wxDateTime * resultptr; | |
34802 | resultptr = new wxDateTime((wxDateTime &)(result)); | |
34803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
34804 | } | |
34805 | return resultobj; | |
34806 | fail: | |
34807 | return NULL; | |
34808 | } | |
34809 | ||
34810 | ||
34811 | static PyObject * DatePickerCtrl_swigregister(PyObject *, PyObject *args) { | |
34812 | PyObject *obj; | |
34813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34814 | SWIG_TypeClientData(SWIGTYPE_p_wxDatePickerCtrl, obj); | |
34815 | Py_INCREF(obj); | |
34816 | return Py_BuildValue((char *)""); | |
34817 | } | |
34818 | static PyMethodDef SwigMethods[] = { | |
34819 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34820 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34821 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34822 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34823 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34824 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34825 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
34826 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34827 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34828 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34829 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34830 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34831 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34832 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34833 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34834 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34835 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34836 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34837 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34838 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34839 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34840 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
34841 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34842 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34843 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34844 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34845 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34846 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34847 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34848 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34849 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34850 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34851 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34852 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
34853 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34854 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34855 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34856 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34857 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
34858 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34859 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34860 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34861 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34862 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34863 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34864 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34865 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34866 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34867 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34868 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34869 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34870 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34871 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34872 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34873 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34874 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34875 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34876 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34877 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34878 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34879 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34880 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34881 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34882 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34883 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34884 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34885 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34886 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34887 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
34888 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34889 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34890 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34891 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34892 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34893 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34894 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34895 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34896 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34897 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34898 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34899 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34900 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34901 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
34902 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34903 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34904 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34905 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34906 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
34907 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34908 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34909 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34910 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34911 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34912 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34913 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
34914 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34915 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34916 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34917 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34918 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
34919 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34920 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34921 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34922 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34923 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34924 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34925 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34926 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
34927 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34928 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34929 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34930 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34931 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34932 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34933 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34934 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34935 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34936 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34937 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34938 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34939 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34940 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34941 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34942 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34943 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34944 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34945 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34946 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34947 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34948 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34949 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
34950 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34951 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34952 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34953 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34954 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34955 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34956 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34957 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
34958 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34959 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34960 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34961 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34962 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34963 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34964 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34965 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34966 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34967 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34968 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34969 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34970 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34971 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34972 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34973 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34974 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34975 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34976 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34977 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34978 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34979 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34980 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34981 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34982 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34983 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34984 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34985 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34986 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34987 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34988 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
34989 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34990 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34991 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34992 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34993 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34994 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34995 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34996 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34997 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34998 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
34999 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35000 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35001 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35002 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35003 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35004 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35005 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35006 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35007 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35008 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35009 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35010 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35011 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35012 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35013 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35014 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35015 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35016 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35017 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35018 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35019 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35020 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35021 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35022 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35023 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35024 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35025 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35026 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35027 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35028 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35029 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35030 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35031 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35032 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35033 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35034 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35035 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35036 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35037 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35038 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35039 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35040 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35041 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35042 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35043 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35044 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
35045 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35046 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35047 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35048 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35049 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
35050 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35051 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35052 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35053 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35054 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35055 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35056 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35057 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35058 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35059 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35060 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35061 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
35062 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35063 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35064 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35065 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35066 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35067 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35068 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35069 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35070 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35071 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35072 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35073 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35074 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
35075 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35076 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35077 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35078 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35079 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35080 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35081 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35082 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35083 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35084 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35085 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35086 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
35087 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35088 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35089 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35090 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
35091 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35092 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35093 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35094 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35095 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35096 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35097 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35098 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35099 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35100 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35101 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35102 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35103 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35104 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35105 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35106 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35107 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35108 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
35109 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35110 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35111 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35112 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35113 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35114 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35115 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
35116 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35117 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35118 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35119 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35120 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35121 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35122 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35123 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35124 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35125 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35126 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35127 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35128 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35129 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35130 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35131 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35132 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35133 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35134 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35135 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35136 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35137 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35138 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35139 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35140 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35141 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
35142 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35143 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35144 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35145 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35146 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35147 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35148 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35149 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
35150 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35151 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35152 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35153 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35154 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35155 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35156 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35157 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35158 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35159 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35160 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35161 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35162 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35163 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35164 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35165 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35166 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35167 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35168 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35169 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35170 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35171 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
35172 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35173 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35174 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35175 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35176 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35177 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
35178 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35179 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35180 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35181 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35182 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35183 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35184 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35185 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35186 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction) _wrap_Notebook_GetThemeBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35187 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35188 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
35189 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35190 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
35191 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35192 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35193 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35194 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35195 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35196 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
35197 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35198 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
35199 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35200 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35201 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35202 | { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35203 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction) _wrap_Choicebook_GetChoiceCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35204 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35205 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
35206 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35207 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
35208 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35209 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35210 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35211 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35212 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL}, | |
35213 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35214 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35215 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35216 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35217 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL}, | |
35218 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35219 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35220 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35221 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35222 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35223 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35224 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35225 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35226 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35227 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35228 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35229 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35230 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35231 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35232 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35233 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35234 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35235 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35236 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35237 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35238 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35239 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35240 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35241 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35242 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35243 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35244 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35245 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35246 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35247 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
35248 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35249 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35250 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35251 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35252 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35253 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35254 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35255 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35256 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35257 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35258 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35259 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35260 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35261 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35262 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35263 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35264 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35265 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35266 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35267 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35268 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35269 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35270 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35271 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35272 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35273 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35274 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35275 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35276 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35277 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35278 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35279 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35280 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35281 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35282 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35283 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35284 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35285 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35286 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35287 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35288 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35289 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35290 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35291 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35292 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
35293 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35294 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35295 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35296 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35297 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35298 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
35299 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35300 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35301 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35302 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35303 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35304 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35305 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35306 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35307 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35308 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35309 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35310 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
35311 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35312 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35313 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35314 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35315 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35316 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35317 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35318 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35319 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35320 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35321 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35322 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35323 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35324 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35325 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35326 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35327 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35328 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35329 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35330 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35331 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35332 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35333 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35334 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35335 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35336 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35337 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35338 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35339 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35340 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35341 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35342 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35343 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35344 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35345 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35346 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35347 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35348 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35349 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35350 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35351 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35352 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35353 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35354 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35355 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35356 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35357 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35358 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35359 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35360 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35361 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35362 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
35363 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35364 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35365 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35366 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35367 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35368 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35369 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35370 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35371 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35372 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35373 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35374 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35375 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35376 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35377 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35378 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35379 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35380 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35381 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35382 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35383 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35384 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35385 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35386 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35387 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35388 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35389 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
35390 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35391 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35392 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35393 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35394 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35395 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35396 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35397 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35398 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35399 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35400 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35401 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35402 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35403 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35404 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35405 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35406 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35407 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35408 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35409 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35410 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35411 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35412 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35413 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35414 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35415 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35416 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35417 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35418 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35419 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35420 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35421 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35422 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35423 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35424 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35425 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35426 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35427 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35428 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35429 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35430 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35431 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35432 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35433 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35434 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35435 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35436 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35437 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35438 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35439 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35440 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35441 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35442 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35443 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35444 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35445 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35446 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35447 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35448 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35449 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35450 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35451 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35452 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35453 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35454 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35455 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35456 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35457 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35458 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35459 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35460 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
35461 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35462 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35463 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35464 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35465 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35466 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35467 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35468 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35469 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35470 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35471 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35472 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
35473 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35474 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35475 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35476 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35477 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35478 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35479 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35480 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
35481 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35482 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35483 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35484 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35485 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35486 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35487 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
35488 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35489 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35490 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35491 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35492 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35493 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35494 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35495 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35496 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35497 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35498 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35499 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35500 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35501 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35502 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35503 | { (char *)"TreeEvent_GetToolTip", (PyCFunction) _wrap_TreeEvent_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35504 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, | |
35505 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35506 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35507 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35508 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35509 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35510 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35511 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35512 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35513 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35514 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35515 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35516 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35517 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35518 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35519 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35520 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35521 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35522 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35523 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35524 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35525 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35526 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35527 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35528 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35529 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35530 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35531 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35532 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35533 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35534 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35535 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35536 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35537 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35538 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35539 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35540 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35541 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35542 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35543 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35544 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35545 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35546 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35547 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35548 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35549 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35550 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35551 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35552 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35553 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35554 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35555 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35556 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35557 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35558 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35559 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35560 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35561 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35562 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35563 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35564 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35565 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35566 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35567 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35568 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35569 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35570 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35571 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35572 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35573 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35574 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35575 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35576 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35577 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35578 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35579 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35580 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
35581 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35582 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35583 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35584 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35585 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35586 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35587 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35588 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35589 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35590 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35591 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35592 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35593 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35594 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35595 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35596 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35597 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35598 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35599 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35600 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35601 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35602 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
35603 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35604 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35605 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35606 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35607 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
35608 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35609 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35610 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35611 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35612 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35613 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35614 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35615 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35616 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35617 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35618 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35619 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35620 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35621 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35622 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35623 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35624 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35625 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35626 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35627 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35628 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35629 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35630 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35631 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35632 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, | |
35633 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35634 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35635 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35636 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35637 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35638 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35639 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35640 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
35641 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35642 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35643 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35644 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35645 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
35646 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35647 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
35648 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35649 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35650 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35651 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35652 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35653 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35654 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35655 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35656 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
35657 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35658 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
35659 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35660 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35661 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35662 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35663 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35664 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35665 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35666 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35667 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35668 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35669 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35670 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35671 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35672 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35673 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35674 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35675 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35676 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
35677 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35678 | { (char *)"new_PreDatePickerCtrl", (PyCFunction) _wrap_new_PreDatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35679 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35680 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35681 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction) _wrap_DatePickerCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35682 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35683 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction) _wrap_DatePickerCtrl_GetLowerLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35684 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction) _wrap_DatePickerCtrl_GetUpperLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35685 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
35686 | { NULL, NULL, 0, NULL } | |
35687 | }; | |
35688 | ||
35689 | ||
35690 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
35691 | ||
35692 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
35693 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
35694 | } | |
35695 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
35696 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
35697 | } | |
35698 | static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) { | |
35699 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
35700 | } | |
35701 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
35702 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
35703 | } | |
35704 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
35705 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
35706 | } | |
35707 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
35708 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
35709 | } | |
35710 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
35711 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
35712 | } | |
35713 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
35714 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
35715 | } | |
35716 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
35717 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
35718 | } | |
35719 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
35720 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
35721 | } | |
35722 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
35723 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
35724 | } | |
35725 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
35726 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
35727 | } | |
35728 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
35729 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
35730 | } | |
35731 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
35732 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
35733 | } | |
35734 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { | |
35735 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35736 | } | |
35737 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
35738 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35739 | } | |
35740 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
35741 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
35742 | } | |
35743 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
35744 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
35745 | } | |
35746 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
35747 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
35748 | } | |
35749 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
35750 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
35751 | } | |
35752 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
35753 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
35754 | } | |
35755 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
35756 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
35757 | } | |
35758 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
35759 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
35760 | } | |
35761 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
35762 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
35763 | } | |
35764 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
35765 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
35766 | } | |
35767 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { | |
35768 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
35769 | } | |
35770 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
35771 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
35772 | } | |
35773 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
35774 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
35775 | } | |
35776 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
35777 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
35778 | } | |
35779 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
35780 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
35781 | } | |
35782 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
35783 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
35784 | } | |
35785 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
35786 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
35787 | } | |
35788 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
35789 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
35790 | } | |
35791 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
35792 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
35793 | } | |
35794 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
35795 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
35796 | } | |
35797 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { | |
35798 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
35799 | } | |
35800 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
35801 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
35802 | } | |
35803 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
35804 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
35805 | } | |
35806 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
35807 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
35808 | } | |
35809 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
35810 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
35811 | } | |
35812 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
35813 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
35814 | } | |
35815 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
35816 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
35817 | } | |
35818 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
35819 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
35820 | } | |
35821 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
35822 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
35823 | } | |
35824 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
35825 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
35826 | } | |
35827 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
35828 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
35829 | } | |
35830 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
35831 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
35832 | } | |
35833 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
35834 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
35835 | } | |
35836 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
35837 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
35838 | } | |
35839 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
35840 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
35841 | } | |
35842 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
35843 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
35844 | } | |
35845 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
35846 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
35847 | } | |
35848 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
35849 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
35850 | } | |
35851 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
35852 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
35853 | } | |
35854 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
35855 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
35856 | } | |
35857 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
35858 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35859 | } | |
35860 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
35861 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
35862 | } | |
35863 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
35864 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
35865 | } | |
35866 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
35867 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
35868 | } | |
35869 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
35870 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
35871 | } | |
35872 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
35873 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
35874 | } | |
35875 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { | |
35876 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
35877 | } | |
35878 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
35879 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
35880 | } | |
35881 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
35882 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
35883 | } | |
35884 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
35885 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
35886 | } | |
35887 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
35888 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
35889 | } | |
35890 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
35891 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
35892 | } | |
35893 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
35894 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35895 | } | |
35896 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
35897 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
35898 | } | |
35899 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
35900 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
35901 | } | |
35902 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
35903 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
35904 | } | |
35905 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
35906 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
35907 | } | |
35908 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
35909 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
35910 | } | |
35911 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
35912 | return (void *)((wxControl *) ((wxGauge *) x)); | |
35913 | } | |
35914 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
35915 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
35916 | } | |
35917 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { | |
35918 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); | |
35919 | } | |
35920 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
35921 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); | |
35922 | } | |
35923 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
35924 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
35925 | } | |
35926 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
35927 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
35928 | } | |
35929 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
35930 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
35931 | } | |
35932 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
35933 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
35934 | } | |
35935 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
35936 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
35937 | } | |
35938 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
35939 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
35940 | } | |
35941 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
35942 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
35943 | } | |
35944 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
35945 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); | |
35946 | } | |
35947 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
35948 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
35949 | } | |
35950 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
35951 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
35952 | } | |
35953 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
35954 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
35955 | } | |
35956 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
35957 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
35958 | } | |
35959 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
35960 | return (void *)((wxControl *) ((wxSlider *) x)); | |
35961 | } | |
35962 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
35963 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
35964 | } | |
35965 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
35966 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
35967 | } | |
35968 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
35969 | return (void *)((wxControl *) ((wxButton *) x)); | |
35970 | } | |
35971 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
35972 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
35973 | } | |
35974 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { | |
35975 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
35976 | } | |
35977 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
35978 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
35979 | } | |
35980 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
35981 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
35982 | } | |
35983 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
35984 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
35985 | } | |
35986 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { | |
35987 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
35988 | } | |
35989 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
35990 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
35991 | } | |
35992 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
35993 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
35994 | } | |
35995 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
35996 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
35997 | } | |
35998 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
35999 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36000 | } | |
36001 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
36002 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36003 | } | |
36004 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { | |
36005 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36006 | } | |
36007 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { | |
36008 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
36009 | } | |
36010 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
36011 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
36012 | } | |
36013 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { | |
36014 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
36015 | } | |
36016 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
36017 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
36018 | } | |
36019 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { | |
36020 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36021 | } | |
36022 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
36023 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
36024 | } | |
36025 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
36026 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
36027 | } | |
36028 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
36029 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36030 | } | |
36031 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
36032 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
36033 | } | |
36034 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
36035 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36036 | } | |
36037 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
36038 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36039 | } | |
36040 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
36041 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
36042 | } | |
36043 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
36044 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
36045 | } | |
36046 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
36047 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36048 | } | |
36049 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
36050 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
36051 | } | |
36052 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
36053 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36054 | } | |
36055 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
36056 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36057 | } | |
36058 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
36059 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36060 | } | |
36061 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
36062 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
36063 | } | |
36064 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
36065 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36066 | } | |
36067 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
36068 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36069 | } | |
36070 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
36071 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36072 | } | |
36073 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
36074 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36075 | } | |
36076 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
36077 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36078 | } | |
36079 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { | |
36080 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
36081 | } | |
36082 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
36083 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
36084 | } | |
36085 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
36086 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36087 | } | |
36088 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
36089 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36090 | } | |
36091 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
36092 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36093 | } | |
36094 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
36095 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36096 | } | |
36097 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
36098 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36099 | } | |
36100 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
36101 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36102 | } | |
36103 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
36104 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
36105 | } | |
36106 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
36107 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36108 | } | |
36109 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
36110 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36111 | } | |
36112 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
36113 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36114 | } | |
36115 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
36116 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36117 | } | |
36118 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
36119 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36120 | } | |
36121 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
36122 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36123 | } | |
36124 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
36125 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36126 | } | |
36127 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
36128 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
36129 | } | |
36130 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
36131 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36132 | } | |
36133 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
36134 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36135 | } | |
36136 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { | |
36137 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36138 | } | |
36139 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
36140 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36141 | } | |
36142 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
36143 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
36144 | } | |
36145 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
36146 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
36147 | } | |
36148 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
36149 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36150 | } | |
36151 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
36152 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36153 | } | |
36154 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
36155 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
36156 | } | |
36157 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
36158 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
36159 | } | |
36160 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
36161 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
36162 | } | |
36163 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
36164 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
36165 | } | |
36166 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
36167 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
36168 | } | |
36169 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
36170 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
36171 | } | |
36172 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
36173 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36174 | } | |
36175 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
36176 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36177 | } | |
36178 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
36179 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
36180 | } | |
36181 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
36182 | return (void *)((wxObject *) ((wxSizer *) x)); | |
36183 | } | |
36184 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
36185 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36186 | } | |
36187 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
36188 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
36189 | } | |
36190 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
36191 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
36192 | } | |
36193 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
36194 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36195 | } | |
36196 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
36197 | return (void *)((wxObject *) ((wxEvent *) x)); | |
36198 | } | |
36199 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
36200 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36201 | } | |
36202 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
36203 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
36204 | } | |
36205 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
36206 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
36207 | } | |
36208 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
36209 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
36210 | } | |
36211 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
36212 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
36213 | } | |
36214 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
36215 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36216 | } | |
36217 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
36218 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
36219 | } | |
36220 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
36221 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
36222 | } | |
36223 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
36224 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36225 | } | |
36226 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
36227 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36228 | } | |
36229 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
36230 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36231 | } | |
36232 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
36233 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36234 | } | |
36235 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
36236 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
36237 | } | |
36238 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
36239 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
36240 | } | |
36241 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
36242 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
36243 | } | |
36244 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
36245 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
36246 | } | |
36247 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
36248 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
36249 | } | |
36250 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
36251 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
36252 | } | |
36253 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
36254 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
36255 | } | |
36256 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
36257 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
36258 | } | |
36259 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
36260 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36261 | } | |
36262 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
36263 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
36264 | } | |
36265 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
36266 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
36267 | } | |
36268 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
36269 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36270 | } | |
36271 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
36272 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
36273 | } | |
36274 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
36275 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
36276 | } | |
36277 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
36278 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
36279 | } | |
36280 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
36281 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36282 | } | |
36283 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { | |
36284 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
36285 | } | |
36286 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
36287 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
36288 | } | |
36289 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
36290 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
36291 | } | |
36292 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
36293 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
36294 | } | |
36295 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
36296 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
36297 | } | |
36298 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
36299 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
36300 | } | |
36301 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
36302 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
36303 | } | |
36304 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
36305 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
36306 | } | |
36307 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
36308 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36309 | } | |
36310 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
36311 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36312 | } | |
36313 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
36314 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
36315 | } | |
36316 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
36317 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
36318 | } | |
36319 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
36320 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
36321 | } | |
36322 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
36323 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
36324 | } | |
36325 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
36326 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
36327 | } | |
36328 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
36329 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
36330 | } | |
36331 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
36332 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
36333 | } | |
36334 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { | |
36335 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
36336 | } | |
36337 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
36338 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
36339 | } | |
36340 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
36341 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
36342 | } | |
36343 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
36344 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
36345 | } | |
36346 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
36347 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
36348 | } | |
36349 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
36350 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
36351 | } | |
36352 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
36353 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
36354 | } | |
36355 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
36356 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36357 | } | |
36358 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
36359 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36360 | } | |
36361 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
36362 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
36363 | } | |
36364 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
36365 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
36366 | } | |
36367 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
36368 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
36369 | } | |
36370 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
36371 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
36372 | } | |
36373 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
36374 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
36375 | } | |
36376 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
36377 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
36378 | } | |
36379 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
36380 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36381 | } | |
36382 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
36383 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36384 | } | |
36385 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
36386 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
36387 | } | |
36388 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
36389 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36390 | } | |
36391 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
36392 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
36393 | } | |
36394 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
36395 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36396 | } | |
36397 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
36398 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
36399 | } | |
36400 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
36401 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
36402 | } | |
36403 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
36404 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
36405 | } | |
36406 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
36407 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
36408 | } | |
36409 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
36410 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
36411 | } | |
36412 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
36413 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
36414 | } | |
36415 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
36416 | return (void *)((wxObject *) ((wxListItem *) x)); | |
36417 | } | |
36418 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36419 | return (void *)((wxObject *) ((wxImage *) x)); | |
36420 | } | |
36421 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
36422 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
36423 | } | |
36424 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
36425 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
36426 | } | |
36427 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
36428 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36429 | } | |
36430 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
36431 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
36432 | } | |
36433 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
36434 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
36435 | } | |
36436 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
36437 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36438 | } | |
36439 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
36440 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36441 | } | |
36442 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { | |
36443 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36444 | } | |
36445 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
36446 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36447 | } | |
36448 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
36449 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36450 | } | |
36451 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
36452 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
36453 | } | |
36454 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36455 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36456 | } | |
36457 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36458 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36459 | } | |
36460 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36461 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36462 | } | |
36463 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
36464 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
36465 | } | |
36466 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36467 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36468 | } | |
36469 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36470 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36471 | } | |
36472 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36473 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36474 | } | |
36475 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36476 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36477 | } | |
36478 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36479 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36480 | } | |
36481 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36482 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36483 | } | |
36484 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { | |
36485 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36486 | } | |
36487 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
36488 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36489 | } | |
36490 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
36491 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36492 | } | |
36493 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
36494 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
36495 | } | |
36496 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
36497 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
36498 | } | |
36499 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
36500 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
36501 | } | |
36502 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
36503 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
36504 | } | |
36505 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
36506 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36507 | } | |
36508 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { | |
36509 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
36510 | } | |
36511 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
36512 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36513 | } | |
36514 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
36515 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
36516 | } | |
36517 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
36518 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36519 | } | |
36520 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
36521 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36522 | } | |
36523 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36524 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36525 | } | |
36526 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
36527 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
36528 | } | |
36529 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
36530 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
36531 | } | |
36532 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { | |
36533 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
36534 | } | |
36535 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
36536 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
36537 | } | |
36538 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
36539 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
36540 | } | |
36541 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
36542 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
36543 | } | |
36544 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
36545 | return (void *)((wxWindow *) ((wxControl *) x)); | |
36546 | } | |
36547 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
36548 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
36549 | } | |
36550 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
36551 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36552 | } | |
36553 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
36554 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
36555 | } | |
36556 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
36557 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
36558 | } | |
36559 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
36560 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
36561 | } | |
36562 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
36563 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
36564 | } | |
36565 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
36566 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
36567 | } | |
36568 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
36569 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
36570 | } | |
36571 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
36572 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
36573 | } | |
36574 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
36575 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
36576 | } | |
36577 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { | |
36578 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); | |
36579 | } | |
36580 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
36581 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); | |
36582 | } | |
36583 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
36584 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
36585 | } | |
36586 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
36587 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
36588 | } | |
36589 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
36590 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
36591 | } | |
36592 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
36593 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
36594 | } | |
36595 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
36596 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
36597 | } | |
36598 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
36599 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
36600 | } | |
36601 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
36602 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
36603 | } | |
36604 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
36605 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); | |
36606 | } | |
36607 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
36608 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
36609 | } | |
36610 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
36611 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
36612 | } | |
36613 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
36614 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
36615 | } | |
36616 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
36617 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
36618 | } | |
36619 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
36620 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
36621 | } | |
36622 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
36623 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
36624 | } | |
36625 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
36626 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
36627 | } | |
36628 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
36629 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
36630 | } | |
36631 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
36632 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
36633 | } | |
36634 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { | |
36635 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
36636 | } | |
36637 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
36638 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
36639 | } | |
36640 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36641 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36642 | } | |
36643 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36644 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36645 | } | |
36646 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
36647 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36648 | } | |
36649 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
36650 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36651 | } | |
36652 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
36653 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
36654 | } | |
36655 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
36656 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
36657 | } | |
36658 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
36659 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36660 | } | |
36661 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
36662 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36663 | } | |
36664 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
36665 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36666 | } | |
36667 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
36668 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
36669 | } | |
36670 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
36671 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
36672 | } | |
36673 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { | |
36674 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
36675 | } | |
36676 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { | |
36677 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
36678 | } | |
36679 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
36680 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36681 | } | |
36682 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
36683 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
36684 | } | |
36685 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { | |
36686 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
36687 | } | |
36688 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
36689 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
36690 | } | |
36691 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
36692 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
36693 | } | |
36694 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
36695 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
36696 | } | |
36697 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
36698 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36699 | } | |
36700 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
36701 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36702 | } | |
36703 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
36704 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
36705 | } | |
36706 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
36707 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
36708 | } | |
36709 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
36710 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
36711 | } | |
36712 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
36713 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
36714 | } | |
36715 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
36716 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
36717 | } | |
36718 | 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}}; | |
36719 | 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}}; | |
36720 | 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}}; | |
36721 | 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}}; | |
36722 | 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}}; | |
36723 | 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}}; | |
36724 | 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}}; | |
36725 | 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}}; | |
36726 | 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}}; | |
36727 | 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}}; | |
36728 | 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}}; | |
36729 | 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}}; | |
36730 | 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}}; | |
36731 | 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}}; | |
36732 | 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}}; | |
36733 | 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}}; | |
36734 | 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}}; | |
36735 | 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}}; | |
36736 | 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}}; | |
36737 | 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}}; | |
36738 | 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}}; | |
36739 | 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}}; | |
36740 | 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}}; | |
36741 | 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}}; | |
36742 | 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}}; | |
36743 | 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}}; | |
36744 | 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}}; | |
36745 | 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}}; | |
36746 | 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}}; | |
36747 | 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}}; | |
36748 | 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}}; | |
36749 | 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}}; | |
36750 | 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}}; | |
36751 | 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}}; | |
36752 | 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}}; | |
36753 | 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}}; | |
36754 | 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}}; | |
36755 | 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}}; | |
36756 | 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}}; | |
36757 | 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}}; | |
36758 | 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}}; | |
36759 | 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}}; | |
36760 | 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}}; | |
36761 | 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}}; | |
36762 | 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}}; | |
36763 | 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}}; | |
36764 | 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}}; | |
36765 | 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}}; | |
36766 | 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}}; | |
36767 | 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}}; | |
36768 | 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}}; | |
36769 | 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}}; | |
36770 | 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}}; | |
36771 | 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}}; | |
36772 | 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}}; | |
36773 | 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}}; | |
36774 | 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}}; | |
36775 | 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}}; | |
36776 | 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}}; | |
36777 | 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}}; | |
36778 | 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}}; | |
36779 | 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}}; | |
36780 | 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}}; | |
36781 | 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}}; | |
36782 | 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}}; | |
36783 | 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}}; | |
36784 | 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}}; | |
36785 | 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}}; | |
36786 | 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}}; | |
36787 | 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}}; | |
36788 | 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}}; | |
36789 | 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}}; | |
36790 | 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}}; | |
36791 | 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}}; | |
36792 | 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}}; | |
36793 | 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}}; | |
36794 | 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}}; | |
36795 | 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}}; | |
36796 | 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}}; | |
36797 | 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}}; | |
36798 | 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}}; | |
36799 | 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}}; | |
36800 | 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}}; | |
36801 | 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}}; | |
36802 | 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}}; | |
36803 | 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}}; | |
36804 | 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}}; | |
36805 | 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}}; | |
36806 | 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}}; | |
36807 | 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}}; | |
36808 | 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}}; | |
36809 | 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}}; | |
36810 | 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}}; | |
36811 | 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}}; | |
36812 | 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}}; | |
36813 | 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}}; | |
36814 | 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}}; | |
36815 | 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}}; | |
36816 | ||
36817 | static swig_type_info *swig_types_initial[] = { | |
36818 | _swigt__p_wxTextUrlEvent, | |
36819 | _swigt__p_wxSizer, | |
36820 | _swigt__p_wxCheckBox, | |
36821 | _swigt__p_wxPyTreeCtrl, | |
36822 | _swigt__p_wxEvent, | |
36823 | _swigt__p_wxGenericDirCtrl, | |
36824 | _swigt__p_bool, | |
36825 | _swigt__p_wxItemContainer, | |
36826 | _swigt__p_wxPyListCtrl, | |
36827 | _swigt__p_wxPyTreeItemData, | |
36828 | _swigt__p_wxDirFilterListCtrl, | |
36829 | _swigt__p_wxStaticLine, | |
36830 | _swigt__p_wxControl, | |
36831 | _swigt__p_wxPyControl, | |
36832 | _swigt__p_wxGauge, | |
36833 | _swigt__p_wxToolBarBase, | |
36834 | _swigt__p_wxFont, | |
36835 | _swigt__p_wxToggleButton, | |
36836 | _swigt__p_wxRadioButton, | |
36837 | _swigt__p_wxChoice, | |
36838 | _swigt__p_wxMemoryDC, | |
36839 | _swigt__ptrdiff_t, | |
36840 | _swigt__std__ptrdiff_t, | |
36841 | _swigt__p_wxListItemAttr, | |
36842 | _swigt__p_void, | |
36843 | _swigt__p_int, | |
36844 | _swigt__p_wxSize, | |
36845 | _swigt__p_wxDC, | |
36846 | _swigt__p_wxListView, | |
36847 | _swigt__p_wxIcon, | |
36848 | _swigt__p_wxVisualAttributes, | |
36849 | _swigt__p_wxTextCtrl, | |
36850 | _swigt__p_wxNotebook, | |
36851 | _swigt__p_wxChoicebook, | |
36852 | _swigt__p_wxNotifyEvent, | |
36853 | _swigt__p_wxArrayString, | |
36854 | _swigt__p_form_ops_t, | |
36855 | _swigt__p_wxListbook, | |
36856 | _swigt__p_wxStaticBitmap, | |
36857 | _swigt__p_wxSlider, | |
36858 | _swigt__p_wxStaticBox, | |
36859 | _swigt__p_wxArrayInt, | |
36860 | _swigt__p_wxContextHelp, | |
36861 | _swigt__p_long, | |
36862 | _swigt__p_wxDuplexMode, | |
36863 | _swigt__p_wxBookCtrlBase, | |
36864 | _swigt__p_wxEvtHandler, | |
36865 | _swigt__p_wxListEvent, | |
36866 | _swigt__p_wxCheckListBox, | |
36867 | _swigt__p_wxListBox, | |
36868 | _swigt__p_wxSpinButton, | |
36869 | _swigt__p_wxButton, | |
36870 | _swigt__p_wxBitmapButton, | |
36871 | _swigt__p_wxRect, | |
36872 | _swigt__p_wxContextHelpButton, | |
36873 | _swigt__p_wxRadioBox, | |
36874 | _swigt__p_wxScrollBar, | |
36875 | _swigt__p_char, | |
36876 | _swigt__p_wxComboBox, | |
36877 | _swigt__p_wxTreeItemId, | |
36878 | _swigt__p_wxHelpEvent, | |
36879 | _swigt__p_wxListItem, | |
36880 | _swigt__p_wxNotebookSizer, | |
36881 | _swigt__p_wxSpinEvent, | |
36882 | _swigt__p_wxGenericDragImage, | |
36883 | _swigt__p_wxSpinCtrl, | |
36884 | _swigt__p_wxPaperSize, | |
36885 | _swigt__p_wxImageList, | |
36886 | _swigt__p_wxHelpProvider, | |
36887 | _swigt__p_wxTextAttr, | |
36888 | _swigt__p_wxSimpleHelpProvider, | |
36889 | _swigt__p_wxChoicebookEvent, | |
36890 | _swigt__p_wxListbookEvent, | |
36891 | _swigt__p_wxNotebookEvent, | |
36892 | _swigt__p_wxPoint, | |
36893 | _swigt__p_wxObject, | |
36894 | _swigt__p_wxCursor, | |
36895 | _swigt__p_wxDateTime, | |
36896 | _swigt__p_wxKeyEvent, | |
36897 | _swigt__p_unsigned_long, | |
36898 | _swigt__p_wxWindow, | |
36899 | _swigt__p_wxString, | |
36900 | _swigt__p_wxBitmap, | |
36901 | _swigt__unsigned_int, | |
36902 | _swigt__p_unsigned_int, | |
36903 | _swigt__p_unsigned_char, | |
36904 | _swigt__p_wxMouseEvent, | |
36905 | _swigt__p_wxBookCtrlBaseEvent, | |
36906 | _swigt__p_wxTreeEvent, | |
36907 | _swigt__p_wxCommandEvent, | |
36908 | _swigt__p_wxStaticText, | |
36909 | _swigt__p_wxDatePickerCtrl, | |
36910 | _swigt__p_wxControlWithItems, | |
36911 | _swigt__p_wxToolBarToolBase, | |
36912 | _swigt__p_wxColour, | |
36913 | _swigt__p_wxToolBar, | |
36914 | _swigt__p_wxBookCtrlSizer, | |
36915 | _swigt__p_wxValidator, | |
36916 | 0 | |
36917 | }; | |
36918 | ||
36919 | ||
36920 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
36921 | ||
36922 | static swig_const_info swig_const_table[] = { | |
36923 | {0, 0, 0, 0.0, 0, 0}}; | |
36924 | ||
36925 | #ifdef __cplusplus | |
36926 | } | |
36927 | #endif | |
36928 | ||
36929 | ||
36930 | #ifdef __cplusplus | |
36931 | extern "C" { | |
36932 | #endif | |
36933 | ||
36934 | /* Python-specific SWIG API */ | |
36935 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
36936 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
36937 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
36938 | ||
36939 | /* ----------------------------------------------------------------------------- | |
36940 | * global variable support code. | |
36941 | * ----------------------------------------------------------------------------- */ | |
36942 | ||
36943 | typedef struct swig_globalvar { | |
36944 | char *name; /* Name of global variable */ | |
36945 | PyObject *(*get_attr)(); /* Return the current value */ | |
36946 | int (*set_attr)(PyObject *); /* Set the value */ | |
36947 | struct swig_globalvar *next; | |
36948 | } swig_globalvar; | |
36949 | ||
36950 | typedef struct swig_varlinkobject { | |
36951 | PyObject_HEAD | |
36952 | swig_globalvar *vars; | |
36953 | } swig_varlinkobject; | |
36954 | ||
36955 | static PyObject * | |
36956 | swig_varlink_repr(swig_varlinkobject *v) { | |
36957 | v = v; | |
36958 | return PyString_FromString("<Swig global variables>"); | |
36959 | } | |
36960 | ||
36961 | static int | |
36962 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { | |
36963 | swig_globalvar *var; | |
36964 | flags = flags; | |
36965 | fprintf(fp,"Swig global variables { "); | |
36966 | for (var = v->vars; var; var=var->next) { | |
36967 | fprintf(fp,"%s", var->name); | |
36968 | if (var->next) fprintf(fp,", "); | |
36969 | } | |
36970 | fprintf(fp," }\n"); | |
36971 | return 0; | |
36972 | } | |
36973 | ||
36974 | static PyObject * | |
36975 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
36976 | swig_globalvar *var = v->vars; | |
36977 | while (var) { | |
36978 | if (strcmp(var->name,n) == 0) { | |
36979 | return (*var->get_attr)(); | |
36980 | } | |
36981 | var = var->next; | |
36982 | } | |
36983 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36984 | return NULL; | |
36985 | } | |
36986 | ||
36987 | static int | |
36988 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
36989 | swig_globalvar *var = v->vars; | |
36990 | while (var) { | |
36991 | if (strcmp(var->name,n) == 0) { | |
36992 | return (*var->set_attr)(p); | |
36993 | } | |
36994 | var = var->next; | |
36995 | } | |
36996 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
36997 | return 1; | |
36998 | } | |
36999 | ||
37000 | static PyTypeObject varlinktype = { | |
37001 | PyObject_HEAD_INIT(0) | |
37002 | 0, /* Number of items in variable part (ob_size) */ | |
37003 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
37004 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
37005 | 0, /* Itemsize (tp_itemsize) */ | |
37006 | 0, /* Deallocator (tp_dealloc) */ | |
37007 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
37008 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
37009 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
37010 | 0, /* tp_compare */ | |
37011 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
37012 | 0, /* tp_as_number */ | |
37013 | 0, /* tp_as_sequence */ | |
37014 | 0, /* tp_as_mapping */ | |
37015 | 0, /* tp_hash */ | |
37016 | 0, /* tp_call */ | |
37017 | 0, /* tp_str */ | |
37018 | 0, /* tp_getattro */ | |
37019 | 0, /* tp_setattro */ | |
37020 | 0, /* tp_as_buffer */ | |
37021 | 0, /* tp_flags */ | |
37022 | 0, /* tp_doc */ | |
37023 | #if PY_VERSION_HEX >= 0x02000000 | |
37024 | 0, /* tp_traverse */ | |
37025 | 0, /* tp_clear */ | |
37026 | #endif | |
37027 | #if PY_VERSION_HEX >= 0x02010000 | |
37028 | 0, /* tp_richcompare */ | |
37029 | 0, /* tp_weaklistoffset */ | |
37030 | #endif | |
37031 | #if PY_VERSION_HEX >= 0x02020000 | |
37032 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
37033 | #endif | |
37034 | #if PY_VERSION_HEX >= 0x02030000 | |
37035 | 0, /* tp_del */ | |
37036 | #endif | |
37037 | #ifdef COUNT_ALLOCS | |
37038 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
37039 | #endif | |
37040 | }; | |
37041 | ||
37042 | /* Create a variable linking object for use later */ | |
37043 | static PyObject * | |
37044 | SWIG_Python_newvarlink(void) { | |
37045 | swig_varlinkobject *result = 0; | |
37046 | result = PyMem_NEW(swig_varlinkobject,1); | |
37047 | varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ | |
37048 | result->ob_type = &varlinktype; | |
37049 | result->vars = 0; | |
37050 | result->ob_refcnt = 0; | |
37051 | Py_XINCREF((PyObject *) result); | |
37052 | return ((PyObject*) result); | |
37053 | } | |
37054 | ||
37055 | static void | |
37056 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
37057 | swig_varlinkobject *v; | |
37058 | swig_globalvar *gv; | |
37059 | v= (swig_varlinkobject *) p; | |
37060 | gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
37061 | gv->name = (char *) malloc(strlen(name)+1); | |
37062 | strcpy(gv->name,name); | |
37063 | gv->get_attr = get_attr; | |
37064 | gv->set_attr = set_attr; | |
37065 | gv->next = v->vars; | |
37066 | v->vars = gv; | |
37067 | } | |
37068 | ||
37069 | /* ----------------------------------------------------------------------------- | |
37070 | * constants/methods manipulation | |
37071 | * ----------------------------------------------------------------------------- */ | |
37072 | ||
37073 | /* Install Constants */ | |
37074 | static void | |
37075 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
37076 | PyObject *obj = 0; | |
37077 | size_t i; | |
37078 | for (i = 0; constants[i].type; i++) { | |
37079 | switch(constants[i].type) { | |
37080 | case SWIG_PY_INT: | |
37081 | obj = PyInt_FromLong(constants[i].lvalue); | |
37082 | break; | |
37083 | case SWIG_PY_FLOAT: | |
37084 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
37085 | break; | |
37086 | case SWIG_PY_STRING: | |
37087 | if (constants[i].pvalue) { | |
37088 | obj = PyString_FromString((char *) constants[i].pvalue); | |
37089 | } else { | |
37090 | Py_INCREF(Py_None); | |
37091 | obj = Py_None; | |
37092 | } | |
37093 | break; | |
37094 | case SWIG_PY_POINTER: | |
37095 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
37096 | break; | |
37097 | case SWIG_PY_BINARY: | |
37098 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
37099 | break; | |
37100 | default: | |
37101 | obj = 0; | |
37102 | break; | |
37103 | } | |
37104 | if (obj) { | |
37105 | PyDict_SetItemString(d,constants[i].name,obj); | |
37106 | Py_DECREF(obj); | |
37107 | } | |
37108 | } | |
37109 | } | |
37110 | ||
37111 | /* -----------------------------------------------------------------------------*/ | |
37112 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37113 | /* -----------------------------------------------------------------------------*/ | |
37114 | ||
37115 | static void | |
37116 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
37117 | swig_const_info *const_table, | |
37118 | swig_type_info **types, | |
37119 | swig_type_info **types_initial) { | |
37120 | size_t i; | |
37121 | for (i = 0; methods[i].ml_name; ++i) { | |
37122 | char *c = methods[i].ml_doc; | |
37123 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
37124 | int j; | |
37125 | swig_const_info *ci = 0; | |
37126 | char *name = c + 10; | |
37127 | for (j = 0; const_table[j].type; j++) { | |
37128 | if (strncmp(const_table[j].name, name, | |
37129 | strlen(const_table[j].name)) == 0) { | |
37130 | ci = &(const_table[j]); | |
37131 | break; | |
37132 | } | |
37133 | } | |
37134 | if (ci) { | |
37135 | size_t shift = (ci->ptype) - types; | |
37136 | swig_type_info *ty = types_initial[shift]; | |
37137 | size_t ldoc = (c - methods[i].ml_doc); | |
37138 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
37139 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
37140 | char *buff = ndoc; | |
37141 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue: (void *)(ci->lvalue); | |
37142 | strncpy(buff, methods[i].ml_doc, ldoc); | |
37143 | buff += ldoc; | |
37144 | strncpy(buff, "swig_ptr: ", 10); | |
37145 | buff += 10; | |
37146 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
37147 | methods[i].ml_doc = ndoc; | |
37148 | } | |
37149 | } | |
37150 | } | |
37151 | } | |
37152 | ||
37153 | /* -----------------------------------------------------------------------------* | |
37154 | * Initialize type list | |
37155 | * -----------------------------------------------------------------------------*/ | |
37156 | ||
37157 | #if PY_MAJOR_VERSION < 2 | |
37158 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
37159 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
37160 | static int | |
37161 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
37162 | { | |
37163 | PyObject *dict; | |
37164 | if (!PyModule_Check(m)) { | |
37165 | PyErr_SetString(PyExc_TypeError, | |
37166 | "PyModule_AddObject() needs module as first arg"); | |
37167 | return -1; | |
37168 | } | |
37169 | if (!o) { | |
37170 | PyErr_SetString(PyExc_TypeError, | |
37171 | "PyModule_AddObject() needs non-NULL value"); | |
37172 | return -1; | |
37173 | } | |
37174 | ||
37175 | dict = PyModule_GetDict(m); | |
37176 | if (dict == NULL) { | |
37177 | /* Internal error -- modules must have a dict! */ | |
37178 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
37179 | PyModule_GetName(m)); | |
37180 | return -1; | |
37181 | } | |
37182 | if (PyDict_SetItemString(dict, name, o)) | |
37183 | return -1; | |
37184 | Py_DECREF(o); | |
37185 | return 0; | |
37186 | } | |
37187 | #endif | |
37188 | ||
37189 | static swig_type_info ** | |
37190 | SWIG_Python_SetTypeListHandle(swig_type_info **type_list_handle) { | |
37191 | static PyMethodDef swig_empty_runtime_method_table[] = { | |
37192 | { | |
37193 | NULL, NULL, 0, NULL | |
37194 | } | |
37195 | };/* Sentinel */ | |
37196 | ||
37197 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
37198 | swig_empty_runtime_method_table); | |
37199 | PyObject *pointer = PyCObject_FromVoidPtr((void *) type_list_handle, NULL); | |
37200 | if (pointer && module) { | |
37201 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
37202 | } | |
37203 | return type_list_handle; | |
37204 | } | |
37205 | ||
37206 | static swig_type_info ** | |
37207 | SWIG_Python_LookupTypePointer(swig_type_info **type_list_handle) { | |
37208 | swig_type_info **type_pointer; | |
37209 | ||
37210 | /* first check if module already created */ | |
37211 | type_pointer = SWIG_Python_GetTypeListHandle(); | |
37212 | if (type_pointer) { | |
37213 | return type_pointer; | |
37214 | } else { | |
37215 | /* create a new module and variable */ | |
37216 | return SWIG_Python_SetTypeListHandle(type_list_handle); | |
37217 | } | |
37218 | } | |
37219 | ||
37220 | #ifdef __cplusplus | |
37221 | } | |
37222 | #endif | |
37223 | ||
37224 | /* -----------------------------------------------------------------------------* | |
37225 | * Partial Init method | |
37226 | * -----------------------------------------------------------------------------*/ | |
37227 | ||
37228 | #ifdef SWIG_LINK_RUNTIME | |
37229 | #ifdef __cplusplus | |
37230 | extern "C" | |
37231 | #endif | |
37232 | SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); | |
37233 | #endif | |
37234 | ||
37235 | #ifdef __cplusplus | |
37236 | extern "C" | |
37237 | #endif | |
37238 | SWIGEXPORT(void) SWIG_init(void) { | |
37239 | static PyObject *SWIG_globals = 0; | |
37240 | static int typeinit = 0; | |
37241 | PyObject *m, *d; | |
37242 | int i; | |
37243 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
37244 | ||
37245 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37246 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_types_initial); | |
37247 | ||
37248 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
37249 | d = PyModule_GetDict(m); | |
37250 | ||
37251 | if (!typeinit) { | |
37252 | #ifdef SWIG_LINK_RUNTIME | |
37253 | swig_type_list_handle = (swig_type_info **) SWIG_ReturnGlobalTypeList(swig_type_list_handle); | |
37254 | #else | |
37255 | # ifndef SWIG_STATIC_RUNTIME | |
37256 | swig_type_list_handle = SWIG_Python_LookupTypePointer(swig_type_list_handle); | |
37257 | # endif | |
37258 | #endif | |
37259 | for (i = 0; swig_types_initial[i]; i++) { | |
37260 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
37261 | } | |
37262 | typeinit = 1; | |
37263 | } | |
37264 | SWIG_InstallConstants(d,swig_const_table); | |
37265 | ||
37266 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
37267 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
37268 | { | |
37269 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)(wxBU_LEFT))); | |
37270 | } | |
37271 | { | |
37272 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)(wxBU_TOP))); | |
37273 | } | |
37274 | { | |
37275 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)(wxBU_RIGHT))); | |
37276 | } | |
37277 | { | |
37278 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)(wxBU_BOTTOM))); | |
37279 | } | |
37280 | { | |
37281 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)(wxBU_ALIGN_MASK))); | |
37282 | } | |
37283 | { | |
37284 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)(wxBU_EXACTFIT))); | |
37285 | } | |
37286 | { | |
37287 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)(wxBU_AUTODRAW))); | |
37288 | } | |
37289 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
37290 | { | |
37291 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)(wxCHK_2STATE))); | |
37292 | } | |
37293 | { | |
37294 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)(wxCHK_3STATE))); | |
37295 | } | |
37296 | { | |
37297 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)(wxCHK_ALLOW_3RD_STATE_FOR_USER))); | |
37298 | } | |
37299 | { | |
37300 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)(wxCHK_UNCHECKED))); | |
37301 | } | |
37302 | { | |
37303 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)(wxCHK_CHECKED))); | |
37304 | } | |
37305 | { | |
37306 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)(wxCHK_UNDETERMINED))); | |
37307 | } | |
37308 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
37309 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
37310 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
37311 | { | |
37312 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)(wxGA_HORIZONTAL))); | |
37313 | } | |
37314 | { | |
37315 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)(wxGA_VERTICAL))); | |
37316 | } | |
37317 | { | |
37318 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)(wxGA_SMOOTH))); | |
37319 | } | |
37320 | { | |
37321 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)(wxGA_PROGRESSBAR))); | |
37322 | } | |
37323 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
37324 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
37325 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
37326 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
37327 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
37328 | { | |
37329 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)(wxTE_NO_VSCROLL))); | |
37330 | } | |
37331 | { | |
37332 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)(wxTE_AUTO_SCROLL))); | |
37333 | } | |
37334 | { | |
37335 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)(wxTE_READONLY))); | |
37336 | } | |
37337 | { | |
37338 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)(wxTE_MULTILINE))); | |
37339 | } | |
37340 | { | |
37341 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)(wxTE_PROCESS_TAB))); | |
37342 | } | |
37343 | { | |
37344 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)(wxTE_LEFT))); | |
37345 | } | |
37346 | { | |
37347 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)(wxTE_CENTER))); | |
37348 | } | |
37349 | { | |
37350 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)(wxTE_RIGHT))); | |
37351 | } | |
37352 | { | |
37353 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)(wxTE_CENTRE))); | |
37354 | } | |
37355 | { | |
37356 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)(wxTE_RICH))); | |
37357 | } | |
37358 | { | |
37359 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)(wxTE_PROCESS_ENTER))); | |
37360 | } | |
37361 | { | |
37362 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)(wxTE_PASSWORD))); | |
37363 | } | |
37364 | { | |
37365 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)(wxTE_AUTO_URL))); | |
37366 | } | |
37367 | { | |
37368 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)(wxTE_NOHIDESEL))); | |
37369 | } | |
37370 | { | |
37371 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)(wxTE_DONTWRAP))); | |
37372 | } | |
37373 | { | |
37374 | PyDict_SetItemString(d,"TE_CHARWRAP", SWIG_From_int((int)(wxTE_CHARWRAP))); | |
37375 | } | |
37376 | { | |
37377 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)(wxTE_WORDWRAP))); | |
37378 | } | |
37379 | { | |
37380 | PyDict_SetItemString(d,"TE_BESTWRAP", SWIG_From_int((int)(wxTE_BESTWRAP))); | |
37381 | } | |
37382 | { | |
37383 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)(wxTE_LINEWRAP))); | |
37384 | } | |
37385 | { | |
37386 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)(wxTE_RICH2))); | |
37387 | } | |
37388 | { | |
37389 | PyDict_SetItemString(d,"TE_CAPITALIZE", SWIG_From_int((int)(wxTE_CAPITALIZE))); | |
37390 | } | |
37391 | { | |
37392 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_DEFAULT))); | |
37393 | } | |
37394 | { | |
37395 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_LEFT))); | |
37396 | } | |
37397 | { | |
37398 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTRE))); | |
37399 | } | |
37400 | { | |
37401 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)(wxTEXT_ALIGNMENT_CENTER))); | |
37402 | } | |
37403 | { | |
37404 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)(wxTEXT_ALIGNMENT_RIGHT))); | |
37405 | } | |
37406 | { | |
37407 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)(wxTEXT_ALIGNMENT_JUSTIFIED))); | |
37408 | } | |
37409 | { | |
37410 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_TEXT_COLOUR))); | |
37411 | } | |
37412 | { | |
37413 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)(wxTEXT_ATTR_BACKGROUND_COLOUR))); | |
37414 | } | |
37415 | { | |
37416 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_FACE))); | |
37417 | } | |
37418 | { | |
37419 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_SIZE))); | |
37420 | } | |
37421 | { | |
37422 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)(wxTEXT_ATTR_FONT_WEIGHT))); | |
37423 | } | |
37424 | { | |
37425 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)(wxTEXT_ATTR_FONT_ITALIC))); | |
37426 | } | |
37427 | { | |
37428 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)(wxTEXT_ATTR_FONT_UNDERLINE))); | |
37429 | } | |
37430 | { | |
37431 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)(wxTEXT_ATTR_FONT))); | |
37432 | } | |
37433 | { | |
37434 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)(wxTEXT_ATTR_ALIGNMENT))); | |
37435 | } | |
37436 | { | |
37437 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_LEFT_INDENT))); | |
37438 | } | |
37439 | { | |
37440 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)(wxTEXT_ATTR_RIGHT_INDENT))); | |
37441 | } | |
37442 | { | |
37443 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)(wxTEXT_ATTR_TABS))); | |
37444 | } | |
37445 | { | |
37446 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)(wxTE_HT_UNKNOWN))); | |
37447 | } | |
37448 | { | |
37449 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)(wxTE_HT_BEFORE))); | |
37450 | } | |
37451 | { | |
37452 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)(wxTE_HT_ON_TEXT))); | |
37453 | } | |
37454 | { | |
37455 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)(wxTE_HT_BELOW))); | |
37456 | } | |
37457 | { | |
37458 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)(wxTE_HT_BEYOND))); | |
37459 | } | |
37460 | { | |
37461 | PyDict_SetItemString(d,"OutOfRangeTextCoord", SWIG_From_int((int)(wxOutOfRangeTextCoord))); | |
37462 | } | |
37463 | { | |
37464 | PyDict_SetItemString(d,"InvalidTextCoord", SWIG_From_int((int)(wxInvalidTextCoord))); | |
37465 | } | |
37466 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
37467 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
37468 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
37469 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
37470 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
37471 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
37472 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
37473 | { | |
37474 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)(wxSP_HORIZONTAL))); | |
37475 | } | |
37476 | { | |
37477 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)(wxSP_VERTICAL))); | |
37478 | } | |
37479 | { | |
37480 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)(wxSP_ARROW_KEYS))); | |
37481 | } | |
37482 | { | |
37483 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)(wxSP_WRAP))); | |
37484 | } | |
37485 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
37486 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
37487 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
37488 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
37489 | { | |
37490 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)(wxSL_HORIZONTAL))); | |
37491 | } | |
37492 | { | |
37493 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)(wxSL_VERTICAL))); | |
37494 | } | |
37495 | { | |
37496 | PyDict_SetItemString(d,"SL_TICKS", SWIG_From_int((int)(wxSL_TICKS))); | |
37497 | } | |
37498 | { | |
37499 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)(wxSL_AUTOTICKS))); | |
37500 | } | |
37501 | { | |
37502 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)(wxSL_LABELS))); | |
37503 | } | |
37504 | { | |
37505 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)(wxSL_LEFT))); | |
37506 | } | |
37507 | { | |
37508 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)(wxSL_TOP))); | |
37509 | } | |
37510 | { | |
37511 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)(wxSL_RIGHT))); | |
37512 | } | |
37513 | { | |
37514 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)(wxSL_BOTTOM))); | |
37515 | } | |
37516 | { | |
37517 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)(wxSL_BOTH))); | |
37518 | } | |
37519 | { | |
37520 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)(wxSL_SELRANGE))); | |
37521 | } | |
37522 | { | |
37523 | PyDict_SetItemString(d,"SL_INVERSE", SWIG_From_int((int)(wxSL_INVERSE))); | |
37524 | } | |
37525 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
37526 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
37527 | SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set); | |
37528 | { | |
37529 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)(wxNB_FIXEDWIDTH))); | |
37530 | } | |
37531 | { | |
37532 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)(wxNB_TOP))); | |
37533 | } | |
37534 | { | |
37535 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)(wxNB_LEFT))); | |
37536 | } | |
37537 | { | |
37538 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)(wxNB_RIGHT))); | |
37539 | } | |
37540 | { | |
37541 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)(wxNB_BOTTOM))); | |
37542 | } | |
37543 | { | |
37544 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)(wxNB_MULTILINE))); | |
37545 | } | |
37546 | { | |
37547 | PyDict_SetItemString(d,"NB_NOPAGETHEME", SWIG_From_int((int)(wxNB_NOPAGETHEME))); | |
37548 | } | |
37549 | { | |
37550 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)(wxNB_HITTEST_NOWHERE))); | |
37551 | } | |
37552 | { | |
37553 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)(wxNB_HITTEST_ONICON))); | |
37554 | } | |
37555 | { | |
37556 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)(wxNB_HITTEST_ONLABEL))); | |
37557 | } | |
37558 | { | |
37559 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)(wxNB_HITTEST_ONITEM))); | |
37560 | } | |
37561 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
37562 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
37563 | { | |
37564 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)(wxLB_DEFAULT))); | |
37565 | } | |
37566 | { | |
37567 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)(wxLB_TOP))); | |
37568 | } | |
37569 | { | |
37570 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)(wxLB_BOTTOM))); | |
37571 | } | |
37572 | { | |
37573 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)(wxLB_LEFT))); | |
37574 | } | |
37575 | { | |
37576 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)(wxLB_RIGHT))); | |
37577 | } | |
37578 | { | |
37579 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)(wxLB_ALIGN_MASK))); | |
37580 | } | |
37581 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
37582 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
37583 | { | |
37584 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)(wxCHB_DEFAULT))); | |
37585 | } | |
37586 | { | |
37587 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)(wxCHB_TOP))); | |
37588 | } | |
37589 | { | |
37590 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)(wxCHB_BOTTOM))); | |
37591 | } | |
37592 | { | |
37593 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)(wxCHB_LEFT))); | |
37594 | } | |
37595 | { | |
37596 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)(wxCHB_RIGHT))); | |
37597 | } | |
37598 | { | |
37599 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)(wxCHB_ALIGN_MASK))); | |
37600 | } | |
37601 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); | |
37602 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
37603 | { | |
37604 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)(wxTOOL_STYLE_BUTTON))); | |
37605 | } | |
37606 | { | |
37607 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)(wxTOOL_STYLE_SEPARATOR))); | |
37608 | } | |
37609 | { | |
37610 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)(wxTOOL_STYLE_CONTROL))); | |
37611 | } | |
37612 | { | |
37613 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)(wxTB_HORIZONTAL))); | |
37614 | } | |
37615 | { | |
37616 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)(wxTB_VERTICAL))); | |
37617 | } | |
37618 | { | |
37619 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)(wxTB_3DBUTTONS))); | |
37620 | } | |
37621 | { | |
37622 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)(wxTB_FLAT))); | |
37623 | } | |
37624 | { | |
37625 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)(wxTB_DOCKABLE))); | |
37626 | } | |
37627 | { | |
37628 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)(wxTB_NOICONS))); | |
37629 | } | |
37630 | { | |
37631 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)(wxTB_TEXT))); | |
37632 | } | |
37633 | { | |
37634 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)(wxTB_NODIVIDER))); | |
37635 | } | |
37636 | { | |
37637 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)(wxTB_NOALIGN))); | |
37638 | } | |
37639 | { | |
37640 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)(wxTB_HORZ_LAYOUT))); | |
37641 | } | |
37642 | { | |
37643 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)(wxTB_HORZ_TEXT))); | |
37644 | } | |
37645 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); | |
37646 | { | |
37647 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)(wxLC_VRULES))); | |
37648 | } | |
37649 | { | |
37650 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)(wxLC_HRULES))); | |
37651 | } | |
37652 | { | |
37653 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)(wxLC_ICON))); | |
37654 | } | |
37655 | { | |
37656 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)(wxLC_SMALL_ICON))); | |
37657 | } | |
37658 | { | |
37659 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)(wxLC_LIST))); | |
37660 | } | |
37661 | { | |
37662 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)(wxLC_REPORT))); | |
37663 | } | |
37664 | { | |
37665 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)(wxLC_ALIGN_TOP))); | |
37666 | } | |
37667 | { | |
37668 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)(wxLC_ALIGN_LEFT))); | |
37669 | } | |
37670 | { | |
37671 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)(wxLC_AUTOARRANGE))); | |
37672 | } | |
37673 | { | |
37674 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)(wxLC_VIRTUAL))); | |
37675 | } | |
37676 | { | |
37677 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)(wxLC_EDIT_LABELS))); | |
37678 | } | |
37679 | { | |
37680 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)(wxLC_NO_HEADER))); | |
37681 | } | |
37682 | { | |
37683 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)(wxLC_NO_SORT_HEADER))); | |
37684 | } | |
37685 | { | |
37686 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)(wxLC_SINGLE_SEL))); | |
37687 | } | |
37688 | { | |
37689 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)(wxLC_SORT_ASCENDING))); | |
37690 | } | |
37691 | { | |
37692 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)(wxLC_SORT_DESCENDING))); | |
37693 | } | |
37694 | { | |
37695 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)(wxLC_MASK_TYPE))); | |
37696 | } | |
37697 | { | |
37698 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)(wxLC_MASK_ALIGN))); | |
37699 | } | |
37700 | { | |
37701 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)(wxLC_MASK_SORT))); | |
37702 | } | |
37703 | { | |
37704 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)(wxLIST_MASK_STATE))); | |
37705 | } | |
37706 | { | |
37707 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)(wxLIST_MASK_TEXT))); | |
37708 | } | |
37709 | { | |
37710 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)(wxLIST_MASK_IMAGE))); | |
37711 | } | |
37712 | { | |
37713 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)(wxLIST_MASK_DATA))); | |
37714 | } | |
37715 | { | |
37716 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)(wxLIST_SET_ITEM))); | |
37717 | } | |
37718 | { | |
37719 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)(wxLIST_MASK_WIDTH))); | |
37720 | } | |
37721 | { | |
37722 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)(wxLIST_MASK_FORMAT))); | |
37723 | } | |
37724 | { | |
37725 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)(wxLIST_STATE_DONTCARE))); | |
37726 | } | |
37727 | { | |
37728 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)(wxLIST_STATE_DROPHILITED))); | |
37729 | } | |
37730 | { | |
37731 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)(wxLIST_STATE_FOCUSED))); | |
37732 | } | |
37733 | { | |
37734 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)(wxLIST_STATE_SELECTED))); | |
37735 | } | |
37736 | { | |
37737 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)(wxLIST_STATE_CUT))); | |
37738 | } | |
37739 | { | |
37740 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)(wxLIST_STATE_DISABLED))); | |
37741 | } | |
37742 | { | |
37743 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)(wxLIST_STATE_FILTERED))); | |
37744 | } | |
37745 | { | |
37746 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)(wxLIST_STATE_INUSE))); | |
37747 | } | |
37748 | { | |
37749 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)(wxLIST_STATE_PICKED))); | |
37750 | } | |
37751 | { | |
37752 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)(wxLIST_STATE_SOURCE))); | |
37753 | } | |
37754 | { | |
37755 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)(wxLIST_HITTEST_ABOVE))); | |
37756 | } | |
37757 | { | |
37758 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)(wxLIST_HITTEST_BELOW))); | |
37759 | } | |
37760 | { | |
37761 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)(wxLIST_HITTEST_NOWHERE))); | |
37762 | } | |
37763 | { | |
37764 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMICON))); | |
37765 | } | |
37766 | { | |
37767 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMLABEL))); | |
37768 | } | |
37769 | { | |
37770 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMRIGHT))); | |
37771 | } | |
37772 | { | |
37773 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxLIST_HITTEST_ONITEMSTATEICON))); | |
37774 | } | |
37775 | { | |
37776 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)(wxLIST_HITTEST_TOLEFT))); | |
37777 | } | |
37778 | { | |
37779 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)(wxLIST_HITTEST_TORIGHT))); | |
37780 | } | |
37781 | { | |
37782 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)(wxLIST_HITTEST_ONITEM))); | |
37783 | } | |
37784 | { | |
37785 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)(wxLIST_NEXT_ABOVE))); | |
37786 | } | |
37787 | { | |
37788 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)(wxLIST_NEXT_ALL))); | |
37789 | } | |
37790 | { | |
37791 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)(wxLIST_NEXT_BELOW))); | |
37792 | } | |
37793 | { | |
37794 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)(wxLIST_NEXT_LEFT))); | |
37795 | } | |
37796 | { | |
37797 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)(wxLIST_NEXT_RIGHT))); | |
37798 | } | |
37799 | { | |
37800 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)(wxLIST_ALIGN_DEFAULT))); | |
37801 | } | |
37802 | { | |
37803 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)(wxLIST_ALIGN_LEFT))); | |
37804 | } | |
37805 | { | |
37806 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)(wxLIST_ALIGN_TOP))); | |
37807 | } | |
37808 | { | |
37809 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)(wxLIST_ALIGN_SNAP_TO_GRID))); | |
37810 | } | |
37811 | { | |
37812 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)(wxLIST_FORMAT_LEFT))); | |
37813 | } | |
37814 | { | |
37815 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)(wxLIST_FORMAT_RIGHT))); | |
37816 | } | |
37817 | { | |
37818 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)(wxLIST_FORMAT_CENTRE))); | |
37819 | } | |
37820 | { | |
37821 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)(wxLIST_FORMAT_CENTER))); | |
37822 | } | |
37823 | { | |
37824 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)(wxLIST_AUTOSIZE))); | |
37825 | } | |
37826 | { | |
37827 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)(wxLIST_AUTOSIZE_USEHEADER))); | |
37828 | } | |
37829 | { | |
37830 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)(wxLIST_RECT_BOUNDS))); | |
37831 | } | |
37832 | { | |
37833 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)(wxLIST_RECT_ICON))); | |
37834 | } | |
37835 | { | |
37836 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)(wxLIST_RECT_LABEL))); | |
37837 | } | |
37838 | { | |
37839 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)(wxLIST_FIND_UP))); | |
37840 | } | |
37841 | { | |
37842 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)(wxLIST_FIND_DOWN))); | |
37843 | } | |
37844 | { | |
37845 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)(wxLIST_FIND_LEFT))); | |
37846 | } | |
37847 | { | |
37848 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)(wxLIST_FIND_RIGHT))); | |
37849 | } | |
37850 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
37851 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
37852 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
37853 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
37854 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
37855 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
37856 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
37857 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
37858 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
37859 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
37860 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
37861 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
37862 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
37863 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
37864 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
37865 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
37866 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
37867 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
37868 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
37869 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
37870 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
37871 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
37872 | ||
37873 | // Map renamed classes back to their common name for OOR | |
37874 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
37875 | ||
37876 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
37877 | { | |
37878 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)(wxTR_NO_BUTTONS))); | |
37879 | } | |
37880 | { | |
37881 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)(wxTR_HAS_BUTTONS))); | |
37882 | } | |
37883 | { | |
37884 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)(wxTR_NO_LINES))); | |
37885 | } | |
37886 | { | |
37887 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)(wxTR_LINES_AT_ROOT))); | |
37888 | } | |
37889 | { | |
37890 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)(wxTR_SINGLE))); | |
37891 | } | |
37892 | { | |
37893 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)(wxTR_MULTIPLE))); | |
37894 | } | |
37895 | { | |
37896 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)(wxTR_EXTENDED))); | |
37897 | } | |
37898 | { | |
37899 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)(wxTR_HAS_VARIABLE_ROW_HEIGHT))); | |
37900 | } | |
37901 | { | |
37902 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)(wxTR_EDIT_LABELS))); | |
37903 | } | |
37904 | { | |
37905 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)(wxTR_HIDE_ROOT))); | |
37906 | } | |
37907 | { | |
37908 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)(wxTR_ROW_LINES))); | |
37909 | } | |
37910 | { | |
37911 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)(wxTR_FULL_ROW_HIGHLIGHT))); | |
37912 | } | |
37913 | { | |
37914 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)(wxTR_DEFAULT_STYLE))); | |
37915 | } | |
37916 | { | |
37917 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)(wxTR_TWIST_BUTTONS))); | |
37918 | } | |
37919 | { | |
37920 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)(wxTR_MAC_BUTTONS))); | |
37921 | } | |
37922 | { | |
37923 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)(wxTR_AQUA_BUTTONS))); | |
37924 | } | |
37925 | { | |
37926 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)(wxTreeItemIcon_Normal))); | |
37927 | } | |
37928 | { | |
37929 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)(wxTreeItemIcon_Selected))); | |
37930 | } | |
37931 | { | |
37932 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)(wxTreeItemIcon_Expanded))); | |
37933 | } | |
37934 | { | |
37935 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)(wxTreeItemIcon_SelectedExpanded))); | |
37936 | } | |
37937 | { | |
37938 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)(wxTreeItemIcon_Max))); | |
37939 | } | |
37940 | { | |
37941 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)(wxTREE_HITTEST_ABOVE))); | |
37942 | } | |
37943 | { | |
37944 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)(wxTREE_HITTEST_BELOW))); | |
37945 | } | |
37946 | { | |
37947 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)(wxTREE_HITTEST_NOWHERE))); | |
37948 | } | |
37949 | { | |
37950 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMBUTTON))); | |
37951 | } | |
37952 | { | |
37953 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMICON))); | |
37954 | } | |
37955 | { | |
37956 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMINDENT))); | |
37957 | } | |
37958 | { | |
37959 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLABEL))); | |
37960 | } | |
37961 | { | |
37962 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMRIGHT))); | |
37963 | } | |
37964 | { | |
37965 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMSTATEICON))); | |
37966 | } | |
37967 | { | |
37968 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)(wxTREE_HITTEST_TOLEFT))); | |
37969 | } | |
37970 | { | |
37971 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)(wxTREE_HITTEST_TORIGHT))); | |
37972 | } | |
37973 | { | |
37974 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMUPPERPART))); | |
37975 | } | |
37976 | { | |
37977 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)(wxTREE_HITTEST_ONITEMLOWERPART))); | |
37978 | } | |
37979 | { | |
37980 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)(wxTREE_HITTEST_ONITEM))); | |
37981 | } | |
37982 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
37983 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
37984 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
37985 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
37986 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
37987 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
37988 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
37989 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
37990 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
37991 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
37992 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
37993 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
37994 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
37995 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
37996 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
37997 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
37998 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
37999 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
38000 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
38001 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
38002 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); | |
38003 | ||
38004 | // Map renamed classes back to their common name for OOR | |
38005 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
38006 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
38007 | ||
38008 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
38009 | { | |
38010 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)(wxDIRCTRL_DIR_ONLY))); | |
38011 | } | |
38012 | { | |
38013 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)(wxDIRCTRL_SELECT_FIRST))); | |
38014 | } | |
38015 | { | |
38016 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)(wxDIRCTRL_SHOW_FILTERS))); | |
38017 | } | |
38018 | { | |
38019 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)(wxDIRCTRL_3D_INTERNAL))); | |
38020 | } | |
38021 | { | |
38022 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)(wxDIRCTRL_EDIT_LABELS))); | |
38023 | } | |
38024 | { | |
38025 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)(wxFRAME_EX_CONTEXTHELP))); | |
38026 | } | |
38027 | { | |
38028 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)(wxDIALOG_EX_CONTEXTHELP))); | |
38029 | } | |
38030 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
38031 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
38032 | ||
38033 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
38034 | ||
38035 | SWIG_addvarlink(SWIG_globals,(char*)"DatePickerCtrlNameStr",_wrap_DatePickerCtrlNameStr_get, _wrap_DatePickerCtrlNameStr_set); | |
38036 | { | |
38037 | PyDict_SetItemString(d,"DP_DEFAULT", SWIG_From_int((int)(wxDP_DEFAULT))); | |
38038 | } | |
38039 | { | |
38040 | PyDict_SetItemString(d,"DP_SPIN", SWIG_From_int((int)(wxDP_SPIN))); | |
38041 | } | |
38042 | { | |
38043 | PyDict_SetItemString(d,"DP_DROPDOWN", SWIG_From_int((int)(wxDP_DROPDOWN))); | |
38044 | } | |
38045 | { | |
38046 | PyDict_SetItemString(d,"DP_SHOWCENTURY", SWIG_From_int((int)(wxDP_SHOWCENTURY))); | |
38047 | } | |
38048 | { | |
38049 | PyDict_SetItemString(d,"DP_ALLOWNONE", SWIG_From_int((int)(wxDP_ALLOWNONE))); | |
38050 | } | |
38051 | } | |
38052 |