]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
32fe5131 | 3 | * Version 1.3.27 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
7e08d4ef | 12 | #define SWIG_VERSION 0x010327 |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
32fe5131 RD |
30 | /*********************************************************************** |
31 | * | |
32 | * This section contains generic SWIG labels for method/variable | |
33 | * declarations/attributes, and other compiler dependent labels. | |
34 | * | |
35 | ************************************************************************/ | |
d14a1e28 | 36 | |
32fe5131 RD |
37 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
38 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
39 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) | |
40 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
093d3ff1 | 41 | # else |
32fe5131 | 42 | # define SWIGTEMPLATEDISAMBIGUATOR |
093d3ff1 RD |
43 | # endif |
44 | #endif | |
d14a1e28 | 45 | |
32fe5131 RD |
46 | /* inline attribute */ |
47 | #ifndef SWIGINLINE | |
48 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
49 | # define SWIGINLINE inline | |
50 | # else | |
51 | # define SWIGINLINE | |
52 | # endif | |
53 | #endif | |
54 | ||
55 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
56 | #ifndef SWIGUNUSED | |
57 | # if defined(__GNUC__) || defined(__ICC) | |
58 | # define SWIGUNUSED __attribute__ ((unused)) | |
59 | # else | |
60 | # define SWIGUNUSED | |
61 | # endif | |
62 | #endif | |
63 | ||
64 | /* internal SWIG method */ | |
65 | #ifndef SWIGINTERN | |
66 | # define SWIGINTERN static SWIGUNUSED | |
67 | #endif | |
68 | ||
69 | /* internal inline SWIG method */ | |
70 | #ifndef SWIGINTERNINLINE | |
71 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
72 | #endif | |
73 | ||
74 | /* exporting methods for Windows DLLs */ | |
75 | #ifndef SWIGEXPORT | |
76 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
77 | # if defined(STATIC_LINKED) | |
78 | # define SWIGEXPORT | |
79 | # else | |
80 | # define SWIGEXPORT __declspec(dllexport) | |
81 | # endif | |
82 | # else | |
83 | # define SWIGEXPORT | |
84 | # endif | |
85 | #endif | |
86 | ||
87 | /* calling conventions for Windows */ | |
88 | #ifndef SWIGSTDCALL | |
89 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
90 | # define SWIGSTDCALL __stdcall | |
91 | # else | |
92 | # define SWIGSTDCALL | |
93 | # endif | |
94 | #endif | |
95 | ||
96 | ||
c9c7117a | 97 | |
093d3ff1 | 98 | #include <Python.h> |
d14a1e28 RD |
99 | |
100 | /*********************************************************************** | |
093d3ff1 | 101 | * swigrun.swg |
d14a1e28 | 102 | * |
093d3ff1 RD |
103 | * This file contains generic CAPI SWIG runtime support for pointer |
104 | * type checking. | |
d14a1e28 RD |
105 | * |
106 | ************************************************************************/ | |
107 | ||
093d3ff1 RD |
108 | /* This should only be incremented when either the layout of swig_type_info changes, |
109 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 110 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 111 | |
093d3ff1 RD |
112 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
113 | #ifdef SWIG_TYPE_TABLE | |
32fe5131 RD |
114 | # define SWIG_QUOTE_STRING(x) #x |
115 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
116 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d14a1e28 | 117 | #else |
32fe5131 | 118 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
119 | #endif |
120 | ||
121 | /* | |
122 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
123 | creating a static or dynamic library from the swig runtime code. | |
124 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
125 | ||
126 | But only do this if is strictly necessary, ie, if you have problems | |
127 | with your compiler or so. | |
128 | */ | |
32fe5131 | 129 | |
093d3ff1 | 130 | #ifndef SWIGRUNTIME |
32fe5131 | 131 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 132 | #endif |
32fe5131 | 133 | |
093d3ff1 | 134 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 135 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
136 | #endif |
137 | ||
32fe5131 RD |
138 | #include <string.h> |
139 | ||
d14a1e28 RD |
140 | #ifdef __cplusplus |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | typedef void *(*swig_converter_func)(void *); | |
145 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
146 | ||
32fe5131 | 147 | /* Structure to store inforomation on one type */ |
d14a1e28 | 148 | typedef struct swig_type_info { |
32fe5131 RD |
149 | const char *name; /* mangled name of this type */ |
150 | const char *str; /* human readable name of this type */ | |
151 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
152 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
153 | void *clientdata; /* language specific type data */ | |
d14a1e28 RD |
154 | } swig_type_info; |
155 | ||
32fe5131 RD |
156 | /* Structure to store a type and conversion function used for casting */ |
157 | typedef struct swig_cast_info { | |
158 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
159 | swig_converter_func converter; /* function to cast the void pointers */ | |
160 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
161 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
162 | } swig_cast_info; | |
163 | ||
164 | /* Structure used to store module information | |
165 | * Each module generates one structure like this, and the runtime collects | |
166 | * all of these structures and stores them in a circularly linked list.*/ | |
167 | typedef struct swig_module_info { | |
168 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
169 | size_t size; /* Number of types in this module */ | |
170 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
171 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
172 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
173 | void *clientdata; /* Language specific module data */ | |
174 | } swig_module_info; | |
175 | ||
176 | ||
093d3ff1 RD |
177 | /* |
178 | Compare two type names skipping the space characters, therefore | |
179 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
180 | ||
181 | Return 0 when the two name types are equivalent, as in | |
182 | strncmp, but skipping ' '. | |
183 | */ | |
184 | SWIGRUNTIME int | |
185 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
186 | const char *f2, const char *l2) { | |
187 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
188 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
189 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
32fe5131 | 190 | if (*f1 != *f2) return (int)(*f1 - *f2); |
093d3ff1 RD |
191 | } |
192 | return (l1 - f1) - (l2 - f2); | |
193 | } | |
194 | ||
195 | /* | |
196 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 197 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
198 | */ |
199 | SWIGRUNTIME int | |
200 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
201 | int equiv = 0; | |
202 | const char* te = tb + strlen(tb); | |
203 | const char* ne = nb; | |
204 | while (!equiv && *ne) { | |
205 | for (nb = ne; *ne; ++ne) { | |
206 | if (*ne == '|') break; | |
207 | } | |
32fe5131 | 208 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
209 | if (*ne) ++ne; |
210 | } | |
211 | return equiv; | |
212 | } | |
213 | ||
214 | /* | |
32fe5131 RD |
215 | Check type equivalence in a name list like <name1>|<name2>|... |
216 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 217 | */ |
32fe5131 RD |
218 | SWIGRUNTIME int |
219 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
220 | int equiv = 0; | |
221 | const char* te = tb + strlen(tb); | |
222 | const char* ne = nb; | |
223 | while (!equiv && *ne) { | |
224 | for (nb = ne; *ne; ++ne) { | |
225 | if (*ne == '|') break; | |
093d3ff1 | 226 | } |
32fe5131 RD |
227 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
228 | if (*ne) ++ne; | |
093d3ff1 | 229 | } |
32fe5131 | 230 | return equiv; |
093d3ff1 RD |
231 | } |
232 | ||
32fe5131 RD |
233 | |
234 | /* think of this as a c++ template<> or a scheme macro */ | |
235 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
236 | if (ty) { \ | |
237 | swig_cast_info *iter = ty->cast; \ | |
238 | while (iter) { \ | |
239 | if (comparison) { \ | |
240 | if (iter == ty->cast) return iter; \ | |
241 | /* Move iter to the top of the linked list */ \ | |
242 | iter->prev->next = iter->next; \ | |
243 | if (iter->next) \ | |
244 | iter->next->prev = iter->prev; \ | |
245 | iter->next = ty->cast; \ | |
246 | iter->prev = 0; \ | |
247 | if (ty->cast) ty->cast->prev = iter; \ | |
248 | ty->cast = iter; \ | |
249 | return iter; \ | |
250 | } \ | |
251 | iter = iter->next; \ | |
252 | } \ | |
253 | } \ | |
254 | return 0 | |
255 | ||
093d3ff1 RD |
256 | /* |
257 | Check the typename | |
258 | */ | |
32fe5131 | 259 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 260 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
32fe5131 RD |
261 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
262 | } | |
263 | ||
264 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
265 | SWIGRUNTIME swig_cast_info * | |
266 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
267 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
268 | } |
269 | ||
270 | /* | |
271 | Cast a pointer up an inheritance hierarchy | |
272 | */ | |
273 | SWIGRUNTIMEINLINE void * | |
32fe5131 | 274 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
275 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
276 | } | |
277 | ||
278 | /* | |
279 | Dynamic pointer casting. Down an inheritance hierarchy | |
280 | */ | |
281 | SWIGRUNTIME swig_type_info * | |
282 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
283 | swig_type_info *lastty = ty; | |
284 | if (!ty || !ty->dcast) return ty; | |
285 | while (ty && (ty->dcast)) { | |
286 | ty = (*ty->dcast)(ptr); | |
287 | if (ty) lastty = ty; | |
288 | } | |
289 | return lastty; | |
290 | } | |
291 | ||
292 | /* | |
293 | Return the name associated with this type | |
294 | */ | |
295 | SWIGRUNTIMEINLINE const char * | |
296 | SWIG_TypeName(const swig_type_info *ty) { | |
297 | return ty->name; | |
298 | } | |
299 | ||
300 | /* | |
301 | Return the pretty name associated with this type, | |
302 | that is an unmangled type name in a form presentable to the user. | |
303 | */ | |
304 | SWIGRUNTIME const char * | |
305 | SWIG_TypePrettyName(const swig_type_info *type) { | |
306 | /* The "str" field contains the equivalent pretty names of the | |
307 | type, separated by vertical-bar characters. We choose | |
308 | to print the last name, as it is often (?) the most | |
309 | specific. */ | |
310 | if (type->str != NULL) { | |
311 | const char *last_name = type->str; | |
312 | const char *s; | |
313 | for (s = type->str; *s; s++) | |
314 | if (*s == '|') last_name = s+1; | |
315 | return last_name; | |
316 | } | |
317 | else | |
318 | return type->name; | |
319 | } | |
320 | ||
093d3ff1 RD |
321 | /* |
322 | Set the clientdata field for a type | |
323 | */ | |
324 | SWIGRUNTIME void | |
32fe5131 RD |
325 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
326 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
327 | /* if (ti->clientdata == clientdata) return; */ |
328 | ti->clientdata = clientdata; | |
32fe5131 RD |
329 | |
330 | while (cast) { | |
331 | if (!cast->converter) { | |
332 | swig_type_info *tc = cast->type; | |
333 | if (!tc->clientdata) { | |
334 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 335 | } |
32fe5131 RD |
336 | } |
337 | cast = cast->next; | |
338 | } | |
339 | } | |
340 | ||
341 | /* | |
342 | Search for a swig_type_info structure only by mangled name | |
343 | Search is a O(log #types) | |
344 | ||
345 | We start searching at module start, and finish searching when start == end. | |
346 | Note: if start == end at the beginning of the function, we go all the way around | |
347 | the circular list. | |
348 | */ | |
349 | SWIGRUNTIME swig_type_info * | |
350 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
351 | swig_module_info *end, | |
352 | const char *name) { | |
353 | swig_module_info *iter = start; | |
354 | do { | |
355 | if (iter->size) { | |
356 | register size_t l = 0; | |
357 | register size_t r = iter->size - 1; | |
358 | do { | |
359 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
360 | register size_t i = (l + r) >> 1; | |
361 | const char *iname = iter->types[i]->name; | |
362 | if (iname) { | |
363 | register int compare = strcmp(name, iname); | |
364 | if (compare == 0) { | |
365 | return iter->types[i]; | |
366 | } else if (compare < 0) { | |
367 | if (i) { | |
368 | r = i - 1; | |
369 | } else { | |
370 | break; | |
371 | } | |
372 | } else if (compare > 0) { | |
373 | l = i + 1; | |
374 | } | |
375 | } else { | |
376 | break; /* should never happen */ | |
377 | } | |
378 | } while (l <= r); | |
093d3ff1 | 379 | } |
32fe5131 RD |
380 | iter = iter->next; |
381 | } while (iter != end); | |
382 | return 0; | |
383 | } | |
384 | ||
385 | /* | |
386 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
387 | It first searches the mangled names of the types, which is a O(log #types) | |
388 | If a type is not found it then searches the human readable names, which is O(#types). | |
389 | ||
390 | We start searching at module start, and finish searching when start == end. | |
391 | Note: if start == end at the beginning of the function, we go all the way around | |
392 | the circular list. | |
393 | */ | |
394 | SWIGRUNTIME swig_type_info * | |
395 | SWIG_TypeQueryModule(swig_module_info *start, | |
396 | swig_module_info *end, | |
397 | const char *name) { | |
398 | /* STEP 1: Search the name field using binary search */ | |
399 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
400 | if (ret) { | |
401 | return ret; | |
402 | } else { | |
403 | /* STEP 2: If the type hasn't been found, do a complete search | |
404 | of the str field (the human readable name) */ | |
405 | swig_module_info *iter = start; | |
406 | do { | |
407 | register size_t i = 0; | |
408 | for (; i < iter->size; ++i) { | |
409 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
410 | return iter->types[i]; | |
411 | } | |
412 | iter = iter->next; | |
413 | } while (iter != end); | |
093d3ff1 | 414 | } |
32fe5131 RD |
415 | |
416 | /* neither found a match */ | |
417 | return 0; | |
093d3ff1 RD |
418 | } |
419 | ||
32fe5131 | 420 | |
093d3ff1 RD |
421 | /* |
422 | Pack binary data into a string | |
423 | */ | |
424 | SWIGRUNTIME char * | |
425 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
32fe5131 RD |
426 | static const char hex[17] = "0123456789abcdef"; |
427 | register const unsigned char *u = (unsigned char *) ptr; | |
428 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 429 | for (; u != eu; ++u) { |
32fe5131 | 430 | register unsigned char uu = *u; |
093d3ff1 RD |
431 | *(c++) = hex[(uu & 0xf0) >> 4]; |
432 | *(c++) = hex[uu & 0xf]; | |
433 | } | |
434 | return c; | |
435 | } | |
436 | ||
437 | /* | |
438 | Unpack binary data from a string | |
439 | */ | |
440 | SWIGRUNTIME const char * | |
441 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
442 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 443 | register const unsigned char *eu = u + sz; |
093d3ff1 | 444 | for (; u != eu; ++u) { |
32fe5131 | 445 | register char d = *(c++); |
093d3ff1 RD |
446 | register unsigned char uu = 0; |
447 | if ((d >= '0') && (d <= '9')) | |
448 | uu = ((d - '0') << 4); | |
449 | else if ((d >= 'a') && (d <= 'f')) | |
450 | uu = ((d - ('a'-10)) << 4); | |
451 | else | |
452 | return (char *) 0; | |
453 | d = *(c++); | |
454 | if ((d >= '0') && (d <= '9')) | |
455 | uu |= (d - '0'); | |
456 | else if ((d >= 'a') && (d <= 'f')) | |
457 | uu |= (d - ('a'-10)); | |
458 | else | |
459 | return (char *) 0; | |
460 | *u = uu; | |
461 | } | |
462 | return c; | |
463 | } | |
464 | ||
093d3ff1 RD |
465 | /* |
466 | Pack 'void *' into a string buffer. | |
467 | */ | |
468 | SWIGRUNTIME char * | |
469 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
470 | char *r = buff; | |
471 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
472 | *(r++) = '_'; | |
473 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
474 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
475 | strcpy(r,name); | |
476 | return buff; | |
477 | } | |
478 | ||
479 | SWIGRUNTIME const char * | |
480 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
481 | if (*c != '_') { | |
482 | if (strcmp(c,"NULL") == 0) { | |
483 | *ptr = (void *) 0; | |
484 | return name; | |
485 | } else { | |
486 | return 0; | |
487 | } | |
488 | } | |
489 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
490 | } | |
491 | ||
492 | SWIGRUNTIME char * | |
493 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
494 | char *r = buff; | |
495 | size_t lname = (name ? strlen(name) : 0); | |
496 | if ((2*sz + 2 + lname) > bsz) return 0; | |
497 | *(r++) = '_'; | |
498 | r = SWIG_PackData(r,ptr,sz); | |
499 | if (lname) { | |
500 | strncpy(r,name,lname+1); | |
501 | } else { | |
502 | *r = 0; | |
503 | } | |
504 | return buff; | |
505 | } | |
d14a1e28 | 506 | |
093d3ff1 RD |
507 | SWIGRUNTIME const char * |
508 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
509 | if (*c != '_') { | |
510 | if (strcmp(c,"NULL") == 0) { | |
511 | memset(ptr,0,sz); | |
512 | return name; | |
513 | } else { | |
514 | return 0; | |
515 | } | |
516 | } | |
517 | return SWIG_UnpackData(++c,ptr,sz); | |
518 | } | |
d14a1e28 RD |
519 | |
520 | #ifdef __cplusplus | |
521 | } | |
522 | #endif | |
523 | ||
093d3ff1 RD |
524 | /* ----------------------------------------------------------------------------- |
525 | * SWIG API. Portion that goes into the runtime | |
526 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 527 | |
093d3ff1 RD |
528 | #ifdef __cplusplus |
529 | extern "C" { | |
530 | #endif | |
c32bde28 | 531 | |
093d3ff1 RD |
532 | /* ----------------------------------------------------------------------------- |
533 | * for internal method declarations | |
534 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 535 | |
093d3ff1 | 536 | #ifndef SWIGINTERN |
32fe5131 | 537 | # define SWIGINTERN static SWIGUNUSED |
093d3ff1 | 538 | #endif |
d14a1e28 | 539 | |
32fe5131 RD |
540 | #ifndef SWIGINTERNINLINE |
541 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
093d3ff1 | 542 | #endif |
d14a1e28 | 543 | |
093d3ff1 RD |
544 | /* |
545 | Exception handling in wrappers | |
546 | */ | |
547 | #define SWIG_fail goto fail | |
548 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
549 | #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0) | |
550 | #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1) | |
551 | #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj) | |
552 | #define SWIG_null_ref(type) SWIG_Python_NullRef(type) | |
553 | ||
554 | /* | |
555 | Contract support | |
556 | */ | |
557 | #define SWIG_contract_assert(expr, msg) \ | |
558 | if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
559 | ||
560 | /* ----------------------------------------------------------------------------- | |
561 | * Constant declarations | |
562 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 563 | |
093d3ff1 RD |
564 | /* Constant Types */ |
565 | #define SWIG_PY_INT 1 | |
566 | #define SWIG_PY_FLOAT 2 | |
567 | #define SWIG_PY_STRING 3 | |
568 | #define SWIG_PY_POINTER 4 | |
569 | #define SWIG_PY_BINARY 5 | |
570 | ||
571 | /* Constant information structure */ | |
572 | typedef struct swig_const_info { | |
573 | int type; | |
574 | char *name; | |
575 | long lvalue; | |
576 | double dvalue; | |
577 | void *pvalue; | |
578 | swig_type_info **ptype; | |
579 | } swig_const_info; | |
d14a1e28 | 580 | |
c32bde28 | 581 | |
093d3ff1 RD |
582 | /* ----------------------------------------------------------------------------- |
583 | * Alloc. memory flags | |
584 | * ----------------------------------------------------------------------------- */ | |
c32bde28 RD |
585 | #define SWIG_OLDOBJ 1 |
586 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
587 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
994141e6 | 588 | |
994141e6 | 589 | #ifdef __cplusplus |
093d3ff1 RD |
590 | } |
591 | #endif | |
994141e6 | 592 | |
15afbcd0 | 593 | |
093d3ff1 RD |
594 | /*********************************************************************** |
595 | * pyrun.swg | |
596 | * | |
597 | * This file contains the runtime support for Python modules | |
598 | * and includes code for managing global variables and pointer | |
599 | * type checking. | |
600 | * | |
601 | * Author : David Beazley (beazley@cs.uchicago.edu) | |
602 | ************************************************************************/ | |
15afbcd0 | 603 | |
093d3ff1 RD |
604 | /* Common SWIG API */ |
605 | #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
606 | #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags) | |
607 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
608 | ||
994141e6 | 609 | |
093d3ff1 RD |
610 | /* Python-specific SWIG API */ |
611 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
612 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 613 | |
32fe5131 RD |
614 | /* Runtime API */ |
615 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() | |
616 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
994141e6 | 617 | |
093d3ff1 RD |
618 | /* ----------------------------------------------------------------------------- |
619 | * Pointer declarations | |
620 | * ----------------------------------------------------------------------------- */ | |
621 | /* | |
622 | Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent | |
623 | C/C++ pointers in the python side. Very useful for debugging, but | |
624 | not always safe. | |
625 | */ | |
626 | #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES) | |
627 | # define SWIG_COBJECT_TYPES | |
628 | #endif | |
994141e6 | 629 | |
093d3ff1 RD |
630 | /* Flags for pointer conversion */ |
631 | #define SWIG_POINTER_EXCEPTION 0x1 | |
632 | #define SWIG_POINTER_DISOWN 0x2 | |
d14a1e28 | 633 | |
4d5c3d91 | 634 | |
32fe5131 RD |
635 | /* Add PyOS_snprintf for old Pythons */ |
636 | #if PY_VERSION_HEX < 0x02020000 | |
637 | #define PyOS_snprintf snprintf | |
638 | #endif | |
639 | ||
093d3ff1 RD |
640 | #ifdef __cplusplus |
641 | extern "C" { | |
642 | #endif | |
4d5c3d91 | 643 | |
093d3ff1 RD |
644 | /* ----------------------------------------------------------------------------- |
645 | * Create a new pointer string | |
646 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 RD |
647 | #ifndef SWIG_BUFFER_SIZE |
648 | #define SWIG_BUFFER_SIZE 1024 | |
649 | #endif | |
15afbcd0 | 650 | |
32fe5131 RD |
651 | /* A crude PyString_FromFormat implementation for old Pythons */ |
652 | #if PY_VERSION_HEX < 0x02020000 | |
653 | static PyObject * | |
654 | PyString_FromFormat(const char *fmt, ...) { | |
655 | va_list ap; | |
656 | char buf[SWIG_BUFFER_SIZE * 2]; | |
657 | int res; | |
658 | va_start(ap, fmt); | |
659 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
660 | va_end(ap); | |
661 | return (res < 0 || res >= sizeof(buf)) ? 0 : PyString_FromString(buf); | |
662 | } | |
663 | #endif | |
664 | ||
665 | #if PY_VERSION_HEX < 0x01060000 | |
666 | #define PyObject_Del(op) PyMem_DEL((op)) | |
667 | #endif | |
668 | ||
093d3ff1 RD |
669 | #if defined(SWIG_COBJECT_TYPES) |
670 | #if !defined(SWIG_COBJECT_PYTHON) | |
671 | /* ----------------------------------------------------------------------------- | |
672 | * Implements a simple Swig Object type, and use it instead of PyCObject | |
673 | * ----------------------------------------------------------------------------- */ | |
15afbcd0 | 674 | |
093d3ff1 RD |
675 | typedef struct { |
676 | PyObject_HEAD | |
677 | void *ptr; | |
678 | const char *desc; | |
679 | } PySwigObject; | |
680 | ||
681 | /* Declarations for objects of type PySwigObject */ | |
682 | ||
683 | SWIGRUNTIME int | |
684 | PySwigObject_print(PySwigObject *v, FILE *fp, int flags) | |
15afbcd0 | 685 | { |
093d3ff1 | 686 | char result[SWIG_BUFFER_SIZE]; |
32fe5131 | 687 | flags = flags; |
093d3ff1 RD |
688 | if (SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result))) { |
689 | fputs("<Swig Object at ", fp); fputs(result, fp); fputs(">", fp); | |
690 | return 0; | |
691 | } else { | |
692 | return 1; | |
15afbcd0 | 693 | } |
093d3ff1 RD |
694 | } |
695 | ||
696 | SWIGRUNTIME PyObject * | |
697 | PySwigObject_repr(PySwigObject *v) | |
698 | { | |
699 | char result[SWIG_BUFFER_SIZE]; | |
700 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
701 | PyString_FromFormat("<Swig Object at %s>", result) : 0; | |
15afbcd0 RD |
702 | } |
703 | ||
093d3ff1 RD |
704 | SWIGRUNTIME PyObject * |
705 | PySwigObject_str(PySwigObject *v) | |
706 | { | |
707 | char result[SWIG_BUFFER_SIZE]; | |
708 | return SWIG_PackVoidPtr(result, v->ptr, v->desc, sizeof(result)) ? | |
709 | PyString_FromString(result) : 0; | |
710 | } | |
15afbcd0 | 711 | |
093d3ff1 RD |
712 | SWIGRUNTIME PyObject * |
713 | PySwigObject_long(PySwigObject *v) | |
15afbcd0 | 714 | { |
32fe5131 RD |
715 | return PyLong_FromVoidPtr(v->ptr); |
716 | } | |
717 | ||
718 | SWIGRUNTIME PyObject * | |
719 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
720 | { | |
721 | PyObject *res = NULL; | |
722 | PyObject *args = PyTuple_New(1); | |
723 | if (args && (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0)) { | |
724 | PyObject *ofmt = PyString_FromString(fmt); | |
725 | if (ofmt) { | |
726 | res = PyString_Format(ofmt,args); | |
727 | Py_DECREF(ofmt); | |
728 | } | |
729 | Py_DECREF(args); | |
730 | } | |
731 | return res; | |
093d3ff1 RD |
732 | } |
733 | ||
734 | SWIGRUNTIME PyObject * | |
735 | PySwigObject_oct(PySwigObject *v) | |
736 | { | |
32fe5131 | 737 | return PySwigObject_format("%o",v); |
15afbcd0 RD |
738 | } |
739 | ||
093d3ff1 RD |
740 | SWIGRUNTIME PyObject * |
741 | PySwigObject_hex(PySwigObject *v) | |
742 | { | |
32fe5131 | 743 | return PySwigObject_format("%x",v); |
093d3ff1 | 744 | } |
15afbcd0 | 745 | |
093d3ff1 RD |
746 | SWIGRUNTIME int |
747 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
748 | { | |
749 | int c = strcmp(v->desc, w->desc); | |
750 | if (c) { | |
32fe5131 | 751 | return (c > 0) ? 1 : -1; |
c32bde28 | 752 | } else { |
093d3ff1 RD |
753 | void *i = v->ptr; |
754 | void *j = w->ptr; | |
32fe5131 | 755 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
c32bde28 | 756 | } |
994141e6 | 757 | } |
093d3ff1 RD |
758 | |
759 | SWIGRUNTIME void | |
760 | PySwigObject_dealloc(PySwigObject *self) | |
c32bde28 | 761 | { |
32fe5131 | 762 | PyObject_Del(self); |
c32bde28 | 763 | } |
093d3ff1 RD |
764 | |
765 | SWIGRUNTIME PyTypeObject* | |
32fe5131 RD |
766 | PySwigObject_type(void) { |
767 | static char pyswigobject_type__doc__[] = | |
093d3ff1 RD |
768 | "Swig object carries a C/C++ instance pointer"; |
769 | ||
770 | static PyNumberMethods PySwigObject_as_number = { | |
771 | (binaryfunc)0, /*nb_add*/ | |
772 | (binaryfunc)0, /*nb_subtract*/ | |
773 | (binaryfunc)0, /*nb_multiply*/ | |
774 | (binaryfunc)0, /*nb_divide*/ | |
775 | (binaryfunc)0, /*nb_remainder*/ | |
776 | (binaryfunc)0, /*nb_divmod*/ | |
777 | (ternaryfunc)0,/*nb_power*/ | |
778 | (unaryfunc)0, /*nb_negative*/ | |
779 | (unaryfunc)0, /*nb_positive*/ | |
780 | (unaryfunc)0, /*nb_absolute*/ | |
781 | (inquiry)0, /*nb_nonzero*/ | |
782 | 0, /*nb_invert*/ | |
783 | 0, /*nb_lshift*/ | |
784 | 0, /*nb_rshift*/ | |
785 | 0, /*nb_and*/ | |
786 | 0, /*nb_xor*/ | |
787 | 0, /*nb_or*/ | |
788 | (coercion)0, /*nb_coerce*/ | |
789 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
790 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
791 | (unaryfunc)0, /*nb_float*/ | |
792 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
793 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 794 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 795 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
796 | #elif PY_VERSION_HEX >= 0x02000000 |
797 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
798 | #endif |
799 | }; | |
800 | ||
32fe5131 RD |
801 | static PyTypeObject pyswigobject_type |
802 | #if !defined(__cplusplus) | |
803 | ; | |
804 | static int type_init = 0; | |
093d3ff1 | 805 | if (!type_init) { |
32fe5131 RD |
806 | PyTypeObject tmp |
807 | #endif | |
808 | = { | |
093d3ff1 RD |
809 | PyObject_HEAD_INIT(&PyType_Type) |
810 | 0, /*ob_size*/ | |
32fe5131 | 811 | (char *)"PySwigObject", /*tp_name*/ |
093d3ff1 RD |
812 | sizeof(PySwigObject), /*tp_basicsize*/ |
813 | 0, /*tp_itemsize*/ | |
814 | /* methods */ | |
815 | (destructor)PySwigObject_dealloc, /*tp_dealloc*/ | |
816 | (printfunc)PySwigObject_print, /*tp_print*/ | |
817 | (getattrfunc)0, /*tp_getattr*/ | |
818 | (setattrfunc)0, /*tp_setattr*/ | |
819 | (cmpfunc)PySwigObject_compare, /*tp_compare*/ | |
820 | (reprfunc)PySwigObject_repr, /*tp_repr*/ | |
821 | &PySwigObject_as_number, /*tp_as_number*/ | |
822 | 0, /*tp_as_sequence*/ | |
823 | 0, /*tp_as_mapping*/ | |
824 | (hashfunc)0, /*tp_hash*/ | |
825 | (ternaryfunc)0, /*tp_call*/ | |
826 | (reprfunc)PySwigObject_str, /*tp_str*/ | |
827 | /* Space for future expansion */ | |
32fe5131 RD |
828 | 0,0,0,0, |
829 | pyswigobject_type__doc__, /* Documentation string */ | |
093d3ff1 RD |
830 | #if PY_VERSION_HEX >= 0x02000000 |
831 | 0, /* tp_traverse */ | |
832 | 0, /* tp_clear */ | |
833 | #endif | |
834 | #if PY_VERSION_HEX >= 0x02010000 | |
835 | 0, /* tp_richcompare */ | |
836 | 0, /* tp_weaklistoffset */ | |
837 | #endif | |
838 | #if PY_VERSION_HEX >= 0x02020000 | |
839 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
15afbcd0 | 840 | #endif |
093d3ff1 RD |
841 | #if PY_VERSION_HEX >= 0x02030000 |
842 | 0, /* tp_del */ | |
843 | #endif | |
844 | #ifdef COUNT_ALLOCS | |
845 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
846 | #endif | |
847 | }; | |
32fe5131 RD |
848 | #if !defined(__cplusplus) |
849 | pyswigobject_type = tmp; | |
093d3ff1 RD |
850 | type_init = 1; |
851 | } | |
32fe5131 RD |
852 | #endif |
853 | return &pyswigobject_type; | |
093d3ff1 RD |
854 | } |
855 | ||
856 | SWIGRUNTIME PyObject * | |
857 | PySwigObject_FromVoidPtrAndDesc(void *ptr, const char *desc) | |
858 | { | |
32fe5131 RD |
859 | PySwigObject *self = PyObject_NEW(PySwigObject, PySwigObject_type()); |
860 | if (self) { | |
861 | self->ptr = ptr; | |
862 | self->desc = desc; | |
863 | } | |
093d3ff1 RD |
864 | return (PyObject *)self; |
865 | } | |
866 | ||
867 | SWIGRUNTIMEINLINE void * | |
868 | PySwigObject_AsVoidPtr(PyObject *self) | |
869 | { | |
870 | return ((PySwigObject *)self)->ptr; | |
871 | } | |
872 | ||
873 | SWIGRUNTIMEINLINE const char * | |
874 | PySwigObject_GetDesc(PyObject *self) | |
875 | { | |
876 | return ((PySwigObject *)self)->desc; | |
877 | } | |
878 | ||
879 | SWIGRUNTIMEINLINE int | |
880 | PySwigObject_Check(PyObject *op) { | |
32fe5131 | 881 | return ((op)->ob_type == PySwigObject_type()) |
093d3ff1 RD |
882 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); |
883 | } | |
884 | ||
885 | /* ----------------------------------------------------------------------------- | |
886 | * Implements a simple Swig Packed type, and use it instead of string | |
887 | * ----------------------------------------------------------------------------- */ | |
888 | ||
889 | typedef struct { | |
890 | PyObject_HEAD | |
891 | void *pack; | |
892 | const char *desc; | |
893 | size_t size; | |
894 | } PySwigPacked; | |
895 | ||
896 | SWIGRUNTIME int | |
897 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int flags) | |
898 | { | |
899 | char result[SWIG_BUFFER_SIZE]; | |
32fe5131 | 900 | flags = flags; |
093d3ff1 RD |
901 | fputs("<Swig Packed ", fp); |
902 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
903 | fputs("at ", fp); | |
904 | fputs(result, fp); | |
905 | } | |
906 | fputs(v->desc,fp); | |
907 | fputs(">", fp); | |
908 | return 0; | |
909 | } | |
910 | ||
911 | SWIGRUNTIME PyObject * | |
912 | PySwigPacked_repr(PySwigPacked *v) | |
913 | { | |
914 | char result[SWIG_BUFFER_SIZE]; | |
915 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
916 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->desc); | |
917 | } else { | |
918 | return PyString_FromFormat("<Swig Packed %s>", v->desc); | |
919 | } | |
920 | } | |
921 | ||
922 | SWIGRUNTIME PyObject * | |
923 | PySwigPacked_str(PySwigPacked *v) | |
924 | { | |
925 | char result[SWIG_BUFFER_SIZE]; | |
926 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
927 | return PyString_FromFormat("%s%s", result, v->desc); | |
928 | } else { | |
32fe5131 | 929 | return PyString_FromString(v->desc); |
093d3ff1 RD |
930 | } |
931 | } | |
932 | ||
933 | SWIGRUNTIME int | |
934 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
935 | { | |
936 | int c = strcmp(v->desc, w->desc); | |
937 | if (c) { | |
32fe5131 | 938 | return (c > 0) ? 1 : -1; |
093d3ff1 RD |
939 | } else { |
940 | size_t i = v->size; | |
941 | size_t j = w->size; | |
32fe5131 | 942 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
093d3ff1 RD |
943 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
944 | } | |
945 | } | |
946 | ||
947 | SWIGRUNTIME void | |
948 | PySwigPacked_dealloc(PySwigPacked *self) | |
949 | { | |
950 | free(self->pack); | |
32fe5131 | 951 | PyObject_Del(self); |
093d3ff1 RD |
952 | } |
953 | ||
954 | SWIGRUNTIME PyTypeObject* | |
32fe5131 RD |
955 | PySwigPacked_type(void) { |
956 | static char pyswigpacked_type__doc__[] = | |
093d3ff1 | 957 | "Swig object carries a C/C++ instance pointer"; |
32fe5131 RD |
958 | static PyTypeObject pyswigpacked_type |
959 | #if !defined(__cplusplus) | |
960 | ; | |
961 | static int type_init = 0; | |
093d3ff1 | 962 | if (!type_init) { |
32fe5131 RD |
963 | PyTypeObject tmp |
964 | #endif | |
965 | = { | |
093d3ff1 RD |
966 | PyObject_HEAD_INIT(&PyType_Type) |
967 | 0, /*ob_size*/ | |
32fe5131 | 968 | (char *)"PySwigPacked", /*tp_name*/ |
093d3ff1 RD |
969 | sizeof(PySwigPacked), /*tp_basicsize*/ |
970 | 0, /*tp_itemsize*/ | |
971 | /* methods */ | |
972 | (destructor)PySwigPacked_dealloc, /*tp_dealloc*/ | |
973 | (printfunc)PySwigPacked_print, /*tp_print*/ | |
974 | (getattrfunc)0, /*tp_getattr*/ | |
975 | (setattrfunc)0, /*tp_setattr*/ | |
976 | (cmpfunc)PySwigPacked_compare, /*tp_compare*/ | |
977 | (reprfunc)PySwigPacked_repr, /*tp_repr*/ | |
978 | 0, /*tp_as_number*/ | |
979 | 0, /*tp_as_sequence*/ | |
980 | 0, /*tp_as_mapping*/ | |
981 | (hashfunc)0, /*tp_hash*/ | |
982 | (ternaryfunc)0, /*tp_call*/ | |
983 | (reprfunc)PySwigPacked_str, /*tp_str*/ | |
984 | /* Space for future expansion */ | |
32fe5131 RD |
985 | 0,0,0,0, |
986 | pyswigpacked_type__doc__, /* Documentation string */ | |
093d3ff1 RD |
987 | #if PY_VERSION_HEX >= 0x02000000 |
988 | 0, /* tp_traverse */ | |
989 | 0, /* tp_clear */ | |
990 | #endif | |
991 | #if PY_VERSION_HEX >= 0x02010000 | |
992 | 0, /* tp_richcompare */ | |
993 | 0, /* tp_weaklistoffset */ | |
994 | #endif | |
995 | #if PY_VERSION_HEX >= 0x02020000 | |
996 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
997 | #endif | |
998 | #if PY_VERSION_HEX >= 0x02030000 | |
999 | 0, /* tp_del */ | |
1000 | #endif | |
1001 | #ifdef COUNT_ALLOCS | |
1002 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
1003 | #endif | |
1004 | }; | |
32fe5131 RD |
1005 | #if !defined(__cplusplus) |
1006 | pyswigpacked_type = tmp; | |
093d3ff1 RD |
1007 | type_init = 1; |
1008 | } | |
32fe5131 RD |
1009 | #endif |
1010 | return &pyswigpacked_type; | |
093d3ff1 RD |
1011 | } |
1012 | ||
1013 | SWIGRUNTIME PyObject * | |
1014 | PySwigPacked_FromDataAndDesc(void *ptr, size_t size, const char *desc) | |
1015 | { | |
32fe5131 | 1016 | PySwigPacked *self = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
093d3ff1 RD |
1017 | if (self == NULL) { |
1018 | return NULL; | |
1019 | } else { | |
1020 | void *pack = malloc(size); | |
32fe5131 RD |
1021 | if (pack) { |
1022 | memcpy(pack, ptr, size); | |
1023 | self->pack = pack; | |
1024 | self->desc = desc; | |
1025 | self->size = size; | |
1026 | return (PyObject *) self; | |
1027 | } | |
1028 | return NULL; | |
093d3ff1 RD |
1029 | } |
1030 | } | |
1031 | ||
1032 | SWIGRUNTIMEINLINE const char * | |
1033 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) | |
1034 | { | |
1035 | PySwigPacked *self = (PySwigPacked *)obj; | |
1036 | if (self->size != size) return 0; | |
1037 | memcpy(ptr, self->pack, size); | |
1038 | return self->desc; | |
1039 | } | |
1040 | ||
1041 | SWIGRUNTIMEINLINE const char * | |
1042 | PySwigPacked_GetDesc(PyObject *self) | |
1043 | { | |
1044 | return ((PySwigPacked *)self)->desc; | |
1045 | } | |
1046 | ||
1047 | SWIGRUNTIMEINLINE int | |
1048 | PySwigPacked_Check(PyObject *op) { | |
32fe5131 | 1049 | return ((op)->ob_type == PySwigPacked_type()) |
093d3ff1 RD |
1050 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); |
1051 | } | |
1052 | ||
1053 | #else | |
1054 | /* ----------------------------------------------------------------------------- | |
1055 | * Use the old Python PyCObject instead of PySwigObject | |
1056 | * ----------------------------------------------------------------------------- */ | |
1057 | ||
1058 | #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj) | |
1059 | #define PySwigObject_Check(obj) PyCObject_Check(obj) | |
1060 | #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj) | |
1061 | #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL) | |
1062 | ||
1063 | #endif | |
1064 | ||
1065 | #endif | |
1066 | ||
1067 | /* ----------------------------------------------------------------------------- | |
1068 | * errors manipulation | |
1069 | * ----------------------------------------------------------------------------- */ | |
1070 | ||
1071 | SWIGRUNTIME void | |
1072 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
1073 | { | |
1074 | if (type) { | |
1075 | #if defined(SWIG_COBJECT_TYPES) | |
32fe5131 | 1076 | if (obj && PySwigObject_Check(obj)) { |
093d3ff1 RD |
1077 | const char *otype = (const char *) PySwigObject_GetDesc(obj); |
1078 | if (otype) { | |
1079 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
1080 | type, otype); | |
1081 | return; | |
1082 | } | |
1083 | } else | |
1084 | #endif | |
1085 | { | |
1086 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
1087 | if (otype) { | |
1088 | PyObject *str = PyObject_Str(obj); | |
1089 | const char *cstr = str ? PyString_AsString(str) : 0; | |
1090 | if (cstr) { | |
1091 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
1092 | type, otype, cstr); | |
1093 | } else { | |
1094 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
1095 | type, otype); | |
1096 | } | |
32fe5131 | 1097 | Py_XDECREF(str); |
093d3ff1 RD |
1098 | return; |
1099 | } | |
1100 | } | |
1101 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
1102 | } else { | |
1103 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
1104 | } | |
1105 | } | |
1106 | ||
1107 | SWIGRUNTIMEINLINE void | |
1108 | SWIG_Python_NullRef(const char *type) | |
1109 | { | |
1110 | if (type) { | |
1111 | PyErr_Format(PyExc_TypeError, "null reference of type '%s' was received",type); | |
1112 | } else { | |
1113 | PyErr_Format(PyExc_TypeError, "null reference was received"); | |
1114 | } | |
1115 | } | |
1116 | ||
1117 | SWIGRUNTIME int | |
1118 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
1119 | { | |
1120 | if (PyErr_Occurred()) { | |
1121 | PyObject *type = 0; | |
1122 | PyObject *value = 0; | |
1123 | PyObject *traceback = 0; | |
1124 | PyErr_Fetch(&type, &value, &traceback); | |
1125 | if (value) { | |
1126 | PyObject *old_str = PyObject_Str(value); | |
1127 | Py_XINCREF(type); | |
1128 | PyErr_Clear(); | |
1129 | if (infront) { | |
1130 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
1131 | } else { | |
1132 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
1133 | } | |
1134 | Py_DECREF(old_str); | |
1135 | } | |
1136 | return 1; | |
1137 | } else { | |
1138 | return 0; | |
1139 | } | |
1140 | } | |
1141 | ||
1142 | SWIGRUNTIME int | |
1143 | SWIG_Python_ArgFail(int argnum) | |
1144 | { | |
1145 | if (PyErr_Occurred()) { | |
1146 | /* add information about failing argument */ | |
1147 | char mesg[256]; | |
32fe5131 | 1148 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
093d3ff1 RD |
1149 | return SWIG_Python_AddErrMesg(mesg, 1); |
1150 | } else { | |
1151 | return 0; | |
1152 | } | |
1153 | } | |
1154 | ||
1155 | ||
1156 | /* ----------------------------------------------------------------------------- | |
1157 | * pointers/data manipulation | |
1158 | * ----------------------------------------------------------------------------- */ | |
1159 | ||
1160 | /* Convert a pointer value */ | |
1161 | SWIGRUNTIME int | |
1162 | SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { | |
32fe5131 | 1163 | swig_cast_info *tc; |
093d3ff1 RD |
1164 | const char *c = 0; |
1165 | static PyObject *SWIG_this = 0; | |
1166 | int newref = 0; | |
1167 | PyObject *pyobj = 0; | |
1168 | void *vptr; | |
1169 | ||
1170 | if (!obj) return 0; | |
1171 | if (obj == Py_None) { | |
1172 | *ptr = 0; | |
1173 | return 0; | |
1174 | } | |
1175 | ||
1176 | #ifdef SWIG_COBJECT_TYPES | |
1177 | if (!(PySwigObject_Check(obj))) { | |
1178 | if (!SWIG_this) | |
1179 | SWIG_this = PyString_FromString("this"); | |
1180 | pyobj = obj; | |
1181 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1182 | newref = 1; | |
1183 | if (!obj) goto type_error; | |
1184 | if (!PySwigObject_Check(obj)) { | |
1185 | Py_DECREF(obj); | |
1186 | goto type_error; | |
1187 | } | |
1188 | } | |
1189 | vptr = PySwigObject_AsVoidPtr(obj); | |
1190 | c = (const char *) PySwigObject_GetDesc(obj); | |
1191 | if (newref) { Py_DECREF(obj); } | |
1192 | goto type_check; | |
1193 | #else | |
1194 | if (!(PyString_Check(obj))) { | |
1195 | if (!SWIG_this) | |
1196 | SWIG_this = PyString_FromString("this"); | |
1197 | pyobj = obj; | |
1198 | obj = PyObject_GetAttr(obj,SWIG_this); | |
1199 | newref = 1; | |
1200 | if (!obj) goto type_error; | |
1201 | if (!PyString_Check(obj)) { | |
1202 | Py_DECREF(obj); | |
1203 | goto type_error; | |
1204 | } | |
1205 | } | |
32fe5131 | 1206 | c = PyString_AsString(obj); |
093d3ff1 RD |
1207 | /* Pointer values must start with leading underscore */ |
1208 | c = SWIG_UnpackVoidPtr(c, &vptr, ty->name); | |
1209 | if (newref) { Py_DECREF(obj); } | |
1210 | if (!c) goto type_error; | |
1211 | #endif | |
1212 | ||
1213 | type_check: | |
093d3ff1 RD |
1214 | if (ty) { |
1215 | tc = SWIG_TypeCheck(c,ty); | |
1216 | if (!tc) goto type_error; | |
1217 | *ptr = SWIG_TypeCast(tc,vptr); | |
1218 | } else { | |
1219 | *ptr = vptr; | |
1220 | } | |
093d3ff1 RD |
1221 | if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { |
1222 | PyObject_SetAttrString(pyobj,(char*)"thisown",Py_False); | |
1223 | } | |
1224 | return 0; | |
1225 | ||
1226 | type_error: | |
1227 | PyErr_Clear(); | |
1228 | if (pyobj && !obj) { | |
1229 | obj = pyobj; | |
1230 | if (PyCFunction_Check(obj)) { | |
1231 | /* here we get the method pointer for callbacks */ | |
1232 | char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); | |
1233 | c = doc ? strstr(doc, "swig_ptr: ") : 0; | |
1234 | if (c) { | |
32fe5131 | 1235 | c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0; |
093d3ff1 RD |
1236 | if (!c) goto type_error; |
1237 | goto type_check; | |
1238 | } | |
1239 | } | |
1240 | } | |
1241 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1242 | if (ty) { | |
1243 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1244 | } else { | |
1245 | SWIG_Python_TypeError("C/C++ pointer", obj); | |
1246 | } | |
1247 | } | |
1248 | return -1; | |
1249 | } | |
1250 | ||
1251 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
1252 | SWIGRUNTIME void * | |
1253 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
1254 | void *result; | |
1255 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
1256 | PyErr_Clear(); | |
1257 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1258 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1259 | SWIG_Python_ArgFail(argnum); | |
1260 | } | |
1261 | } | |
1262 | return result; | |
1263 | } | |
1264 | ||
1265 | /* Convert a packed value value */ | |
1266 | SWIGRUNTIME int | |
1267 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty, int flags) { | |
32fe5131 | 1268 | swig_cast_info *tc; |
093d3ff1 RD |
1269 | const char *c = 0; |
1270 | ||
1271 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1272 | c = PySwigPacked_UnpackData(obj, ptr, sz); | |
1273 | #else | |
1274 | if ((!obj) || (!PyString_Check(obj))) goto type_error; | |
32fe5131 | 1275 | c = PyString_AsString(obj); |
093d3ff1 RD |
1276 | /* Pointer values must start with leading underscore */ |
1277 | c = SWIG_UnpackDataName(c, ptr, sz, ty->name); | |
1278 | #endif | |
1279 | if (!c) goto type_error; | |
1280 | if (ty) { | |
1281 | tc = SWIG_TypeCheck(c,ty); | |
1282 | if (!tc) goto type_error; | |
1283 | } | |
1284 | return 0; | |
1285 | ||
1286 | type_error: | |
1287 | PyErr_Clear(); | |
1288 | if (flags & SWIG_POINTER_EXCEPTION) { | |
1289 | if (ty) { | |
1290 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
1291 | } else { | |
1292 | SWIG_Python_TypeError("C/C++ packed data", obj); | |
1293 | } | |
1294 | } | |
1295 | return -1; | |
1296 | } | |
1297 | ||
1298 | /* Create a new array object */ | |
1299 | SWIGRUNTIME PyObject * | |
1300 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { | |
1301 | PyObject *robj = 0; | |
32fe5131 RD |
1302 | if (!type) { |
1303 | if (!PyErr_Occurred()) { | |
1304 | PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); | |
1305 | } | |
1306 | return robj; | |
1307 | } | |
093d3ff1 RD |
1308 | if (!ptr) { |
1309 | Py_INCREF(Py_None); | |
1310 | return Py_None; | |
1311 | } | |
1312 | #ifdef SWIG_COBJECT_TYPES | |
1313 | robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name); | |
1314 | #else | |
1315 | { | |
1316 | char result[SWIG_BUFFER_SIZE]; | |
1317 | robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? | |
1318 | PyString_FromString(result) : 0; | |
1319 | } | |
1320 | #endif | |
1321 | if (!robj || (robj == Py_None)) return robj; | |
1322 | if (type->clientdata) { | |
1323 | PyObject *inst; | |
1324 | PyObject *args = Py_BuildValue((char*)"(O)", robj); | |
1325 | Py_DECREF(robj); | |
1326 | inst = PyObject_CallObject((PyObject *) type->clientdata, args); | |
1327 | Py_DECREF(args); | |
1328 | if (inst) { | |
1329 | if (own) { | |
1330 | PyObject_SetAttrString(inst,(char*)"thisown",Py_True); | |
1331 | } | |
1332 | robj = inst; | |
1333 | } | |
1334 | } | |
1335 | return robj; | |
1336 | } | |
1337 | ||
1338 | SWIGRUNTIME PyObject * | |
1339 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { | |
1340 | PyObject *robj = 0; | |
1341 | if (!ptr) { | |
1342 | Py_INCREF(Py_None); | |
1343 | return Py_None; | |
1344 | } | |
1345 | #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) | |
1346 | robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name); | |
1347 | #else | |
1348 | { | |
1349 | char result[SWIG_BUFFER_SIZE]; | |
1350 | robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? | |
1351 | PyString_FromString(result) : 0; | |
1352 | } | |
1353 | #endif | |
1354 | return robj; | |
1355 | } | |
1356 | ||
1357 | /* -----------------------------------------------------------------------------* | |
1358 | * Get type list | |
1359 | * -----------------------------------------------------------------------------*/ | |
1360 | ||
1361 | #ifdef SWIG_LINK_RUNTIME | |
1362 | void *SWIG_ReturnGlobalTypeList(void *); | |
1363 | #endif | |
1364 | ||
32fe5131 RD |
1365 | SWIGRUNTIME swig_module_info * |
1366 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
1367 | static void *type_pointer = (void *)0; |
1368 | /* first check if module already created */ | |
1369 | if (!type_pointer) { | |
1370 | #ifdef SWIG_LINK_RUNTIME | |
1371 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
1372 | #else | |
1373 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1374 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
1375 | if (PyErr_Occurred()) { | |
1376 | PyErr_Clear(); | |
1377 | type_pointer = (void *)0; | |
1378 | } | |
093d3ff1 | 1379 | #endif |
32fe5131 RD |
1380 | } |
1381 | return (swig_module_info *) type_pointer; | |
093d3ff1 RD |
1382 | } |
1383 | ||
32fe5131 RD |
1384 | #if PY_MAJOR_VERSION < 2 |
1385 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
1386 | is copied out of Python/modsupport.c in python version 2.3.4 */ | |
1387 | SWIGINTERN int | |
1388 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
1389 | { | |
1390 | PyObject *dict; | |
1391 | if (!PyModule_Check(m)) { | |
1392 | PyErr_SetString(PyExc_TypeError, | |
1393 | "PyModule_AddObject() needs module as first arg"); | |
1394 | return -1; | |
1395 | } | |
1396 | if (!o) { | |
1397 | PyErr_SetString(PyExc_TypeError, | |
1398 | "PyModule_AddObject() needs non-NULL value"); | |
1399 | return -1; | |
1400 | } | |
1401 | ||
1402 | dict = PyModule_GetDict(m); | |
1403 | if (dict == NULL) { | |
1404 | /* Internal error -- modules must have a dict! */ | |
1405 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
1406 | PyModule_GetName(m)); | |
1407 | return -1; | |
1408 | } | |
1409 | if (PyDict_SetItemString(dict, name, o)) | |
1410 | return -1; | |
1411 | Py_DECREF(o); | |
1412 | return 0; | |
093d3ff1 | 1413 | } |
32fe5131 | 1414 | #endif |
093d3ff1 | 1415 | |
32fe5131 RD |
1416 | SWIGRUNTIME void |
1417 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
1418 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
1419 | ||
1420 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
1421 | swig_empty_runtime_method_table); | |
1422 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL); | |
1423 | if (pointer && module) { | |
1424 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
1425 | } | |
1426 | } | |
093d3ff1 RD |
1427 | |
1428 | #ifdef __cplusplus | |
1429 | } | |
1430 | #endif | |
1431 | ||
1432 | ||
1433 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
1434 | ||
32fe5131 RD |
1435 | #define SWIGTYPE_p_bool swig_types[0] |
1436 | #define SWIGTYPE_p_char swig_types[1] | |
1437 | #define SWIGTYPE_p_form_ops_t swig_types[2] | |
1438 | #define SWIGTYPE_p_int swig_types[3] | |
1439 | #define SWIGTYPE_p_long swig_types[4] | |
1440 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
1441 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
1442 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
1443 | #define SWIGTYPE_p_void swig_types[8] | |
1444 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
1445 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
1446 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
1447 | #define SWIGTYPE_p_wxArrayInt swig_types[12] | |
1448 | #define SWIGTYPE_p_wxArrayString swig_types[13] | |
1449 | #define SWIGTYPE_p_wxBMPHandler swig_types[14] | |
1450 | #define SWIGTYPE_p_wxBitmap swig_types[15] | |
1451 | #define SWIGTYPE_p_wxBitmapButton swig_types[16] | |
1452 | #define SWIGTYPE_p_wxBookCtrlBase swig_types[17] | |
1453 | #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18] | |
1454 | #define SWIGTYPE_p_wxBoxSizer swig_types[19] | |
1455 | #define SWIGTYPE_p_wxButton swig_types[20] | |
1456 | #define SWIGTYPE_p_wxCURHandler swig_types[21] | |
1457 | #define SWIGTYPE_p_wxCheckBox swig_types[22] | |
1458 | #define SWIGTYPE_p_wxCheckListBox swig_types[23] | |
1459 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[24] | |
1460 | #define SWIGTYPE_p_wxChoice swig_types[25] | |
1461 | #define SWIGTYPE_p_wxChoicebook swig_types[26] | |
1462 | #define SWIGTYPE_p_wxChoicebookEvent swig_types[27] | |
1463 | #define SWIGTYPE_p_wxCloseEvent swig_types[28] | |
1464 | #define SWIGTYPE_p_wxColour swig_types[29] | |
1465 | #define SWIGTYPE_p_wxComboBox swig_types[30] | |
1466 | #define SWIGTYPE_p_wxCommandEvent swig_types[31] | |
1467 | #define SWIGTYPE_p_wxContextHelp swig_types[32] | |
1468 | #define SWIGTYPE_p_wxContextHelpButton swig_types[33] | |
1469 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[34] | |
1470 | #define SWIGTYPE_p_wxControl swig_types[35] | |
1471 | #define SWIGTYPE_p_wxControlWithItems swig_types[36] | |
1472 | #define SWIGTYPE_p_wxCursor swig_types[37] | |
1473 | #define SWIGTYPE_p_wxDC swig_types[38] | |
1474 | #define SWIGTYPE_p_wxDateEvent swig_types[39] | |
1475 | #define SWIGTYPE_p_wxDatePickerCtrl swig_types[40] | |
1476 | #define SWIGTYPE_p_wxDateTime swig_types[41] | |
1477 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[42] | |
1478 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[43] | |
1479 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[44] | |
1480 | #define SWIGTYPE_p_wxDuplexMode swig_types[45] | |
1481 | #define SWIGTYPE_p_wxEraseEvent swig_types[46] | |
1482 | #define SWIGTYPE_p_wxEvent swig_types[47] | |
1483 | #define SWIGTYPE_p_wxEvtHandler swig_types[48] | |
1484 | #define SWIGTYPE_p_wxFSFile swig_types[49] | |
1485 | #define SWIGTYPE_p_wxFileSystem swig_types[50] | |
1486 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[51] | |
1487 | #define SWIGTYPE_p_wxFocusEvent swig_types[52] | |
1488 | #define SWIGTYPE_p_wxFont swig_types[53] | |
1489 | #define SWIGTYPE_p_wxGBSizerItem swig_types[54] | |
1490 | #define SWIGTYPE_p_wxGIFHandler swig_types[55] | |
1491 | #define SWIGTYPE_p_wxGauge swig_types[56] | |
1492 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[57] | |
1493 | #define SWIGTYPE_p_wxGenericDragImage swig_types[58] | |
1494 | #define SWIGTYPE_p_wxGridBagSizer swig_types[59] | |
1495 | #define SWIGTYPE_p_wxGridSizer swig_types[60] | |
1496 | #define SWIGTYPE_p_wxHelpEvent swig_types[61] | |
1497 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
1498 | #define SWIGTYPE_p_wxICOHandler swig_types[63] | |
1499 | #define SWIGTYPE_p_wxIcon swig_types[64] | |
1500 | #define SWIGTYPE_p_wxIconizeEvent swig_types[65] | |
1501 | #define SWIGTYPE_p_wxIdleEvent swig_types[66] | |
1502 | #define SWIGTYPE_p_wxImage swig_types[67] | |
1503 | #define SWIGTYPE_p_wxImageHandler swig_types[68] | |
1504 | #define SWIGTYPE_p_wxImageList swig_types[69] | |
1505 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[70] | |
1506 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[71] | |
1507 | #define SWIGTYPE_p_wxItemContainer swig_types[72] | |
1508 | #define SWIGTYPE_p_wxJPEGHandler swig_types[73] | |
1509 | #define SWIGTYPE_p_wxKeyEvent swig_types[74] | |
1510 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[75] | |
1511 | #define SWIGTYPE_p_wxListBox swig_types[76] | |
1512 | #define SWIGTYPE_p_wxListEvent swig_types[77] | |
1513 | #define SWIGTYPE_p_wxListItem swig_types[78] | |
1514 | #define SWIGTYPE_p_wxListItemAttr swig_types[79] | |
1515 | #define SWIGTYPE_p_wxListView swig_types[80] | |
1516 | #define SWIGTYPE_p_wxListbook swig_types[81] | |
1517 | #define SWIGTYPE_p_wxListbookEvent swig_types[82] | |
1518 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[83] | |
1519 | #define SWIGTYPE_p_wxMemoryDC swig_types[84] | |
1520 | #define SWIGTYPE_p_wxMenu swig_types[85] | |
1521 | #define SWIGTYPE_p_wxMenuBar swig_types[86] | |
1522 | #define SWIGTYPE_p_wxMenuEvent swig_types[87] | |
1523 | #define SWIGTYPE_p_wxMenuItem swig_types[88] | |
1524 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89] | |
1525 | #define SWIGTYPE_p_wxMouseEvent swig_types[90] | |
1526 | #define SWIGTYPE_p_wxMoveEvent swig_types[91] | |
1527 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] | |
1528 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[93] | |
1529 | #define SWIGTYPE_p_wxNotebook swig_types[94] | |
1530 | #define SWIGTYPE_p_wxNotebookEvent swig_types[95] | |
1531 | #define SWIGTYPE_p_wxNotifyEvent swig_types[96] | |
1532 | #define SWIGTYPE_p_wxObject swig_types[97] | |
1533 | #define SWIGTYPE_p_wxPCXHandler swig_types[98] | |
1534 | #define SWIGTYPE_p_wxPNGHandler swig_types[99] | |
1535 | #define SWIGTYPE_p_wxPNMHandler swig_types[100] | |
1536 | #define SWIGTYPE_p_wxPaintEvent swig_types[101] | |
1537 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102] | |
1538 | #define SWIGTYPE_p_wxPaperSize swig_types[103] | |
1539 | #define SWIGTYPE_p_wxPoint swig_types[104] | |
1540 | #define SWIGTYPE_p_wxPyApp swig_types[105] | |
1541 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[106] | |
1542 | #define SWIGTYPE_p_wxPyControl swig_types[107] | |
1543 | #define SWIGTYPE_p_wxPyEvent swig_types[108] | |
1544 | #define SWIGTYPE_p_wxPyImageHandler swig_types[109] | |
1545 | #define SWIGTYPE_p_wxPyListCtrl swig_types[110] | |
1546 | #define SWIGTYPE_p_wxPySizer swig_types[111] | |
1547 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[112] | |
1548 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[113] | |
1549 | #define SWIGTYPE_p_wxPyValidator swig_types[114] | |
1550 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[115] | |
1551 | #define SWIGTYPE_p_wxRadioBox swig_types[116] | |
1552 | #define SWIGTYPE_p_wxRadioButton swig_types[117] | |
1553 | #define SWIGTYPE_p_wxRect swig_types[118] | |
1554 | #define SWIGTYPE_p_wxScrollBar swig_types[119] | |
1555 | #define SWIGTYPE_p_wxScrollEvent swig_types[120] | |
1556 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[121] | |
1557 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[122] | |
1558 | #define SWIGTYPE_p_wxShowEvent swig_types[123] | |
1559 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[124] | |
1560 | #define SWIGTYPE_p_wxSize swig_types[125] | |
1561 | #define SWIGTYPE_p_wxSizeEvent swig_types[126] | |
1562 | #define SWIGTYPE_p_wxSizer swig_types[127] | |
1563 | #define SWIGTYPE_p_wxSizerItem swig_types[128] | |
1564 | #define SWIGTYPE_p_wxSlider swig_types[129] | |
1565 | #define SWIGTYPE_p_wxSpinButton swig_types[130] | |
1566 | #define SWIGTYPE_p_wxSpinCtrl swig_types[131] | |
1567 | #define SWIGTYPE_p_wxSpinEvent swig_types[132] | |
1568 | #define SWIGTYPE_p_wxStaticBitmap swig_types[133] | |
1569 | #define SWIGTYPE_p_wxStaticBox swig_types[134] | |
1570 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135] | |
1571 | #define SWIGTYPE_p_wxStaticLine swig_types[136] | |
1572 | #define SWIGTYPE_p_wxStaticText swig_types[137] | |
1573 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[138] | |
1574 | #define SWIGTYPE_p_wxString swig_types[139] | |
1575 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140] | |
1576 | #define SWIGTYPE_p_wxTIFFHandler swig_types[141] | |
1577 | #define SWIGTYPE_p_wxTextAttr swig_types[142] | |
1578 | #define SWIGTYPE_p_wxTextCtrl swig_types[143] | |
1579 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[144] | |
1580 | #define SWIGTYPE_p_wxToggleButton swig_types[145] | |
1581 | #define SWIGTYPE_p_wxToolBar swig_types[146] | |
1582 | #define SWIGTYPE_p_wxToolBarBase swig_types[147] | |
1583 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[148] | |
7e08d4ef RD |
1584 | #define SWIGTYPE_p_wxToolbook swig_types[149] |
1585 | #define SWIGTYPE_p_wxToolbookEvent swig_types[150] | |
1586 | #define SWIGTYPE_p_wxTreeCtrl swig_types[151] | |
1587 | #define SWIGTYPE_p_wxTreeEvent swig_types[152] | |
1588 | #define SWIGTYPE_p_wxTreeItemId swig_types[153] | |
1589 | #define SWIGTYPE_p_wxTreebook swig_types[154] | |
1590 | #define SWIGTYPE_p_wxTreebookEvent swig_types[155] | |
1591 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[156] | |
1592 | #define SWIGTYPE_p_wxValidator swig_types[157] | |
1593 | #define SWIGTYPE_p_wxVisualAttributes swig_types[158] | |
1594 | #define SWIGTYPE_p_wxWindow swig_types[159] | |
1595 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[160] | |
1596 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[161] | |
1597 | #define SWIGTYPE_p_wxXPMHandler swig_types[162] | |
1598 | #define SWIGTYPE_ptrdiff_t swig_types[163] | |
1599 | #define SWIGTYPE_std__ptrdiff_t swig_types[164] | |
1600 | #define SWIGTYPE_unsigned_int swig_types[165] | |
1601 | static swig_type_info *swig_types[167]; | |
1602 | static swig_module_info swig_module = {swig_types, 166, 0, 0, 0, 0}; | |
32fe5131 RD |
1603 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
1604 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
093d3ff1 RD |
1605 | |
1606 | /* -------- TYPES TABLE (END) -------- */ | |
1607 | ||
1608 | ||
1609 | /*----------------------------------------------- | |
1610 | @(target):= _controls_.so | |
1611 | ------------------------------------------------*/ | |
1612 | #define SWIG_init init_controls_ | |
1613 | ||
1614 | #define SWIG_name "_controls_" | |
1615 | ||
1616 | #include "wx/wxPython/wxPython.h" | |
1617 | #include "wx/wxPython/pyclasses.h" | |
1618 | ||
1619 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1620 | static const wxString wxPyEmptyString(wxEmptyString); | |
1621 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1622 | ||
1623 | const wxArrayString wxPyEmptyStringArray; | |
1624 | ||
1625 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
1626 | ||
32fe5131 | 1627 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1628 | #define SWIG_From_int PyInt_FromLong |
1629 | /*@@*/ | |
1630 | ||
1631 | ||
1632 | #include <limits.h> | |
1633 | ||
1634 | ||
1635 | SWIGINTERN int | |
1636 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
1637 | const char *errmsg) | |
1638 | { | |
1639 | if (value < min_value) { | |
1640 | if (errmsg) { | |
1641 | PyErr_Format(PyExc_OverflowError, | |
1642 | "value %ld is less than '%s' minimum %ld", | |
1643 | value, errmsg, min_value); | |
1644 | } | |
1645 | return 0; | |
1646 | } else if (value > max_value) { | |
1647 | if (errmsg) { | |
1648 | PyErr_Format(PyExc_OverflowError, | |
1649 | "value %ld is greater than '%s' maximum %ld", | |
1650 | value, errmsg, max_value); | |
1651 | } | |
1652 | return 0; | |
1653 | } | |
1654 | return 1; | |
1655 | } | |
1656 | ||
1657 | ||
1658 | SWIGINTERN int | |
1659 | SWIG_AsVal_long(PyObject* obj, long* val) | |
1660 | { | |
1661 | if (PyNumber_Check(obj)) { | |
1662 | if (val) *val = PyInt_AsLong(obj); | |
1663 | return 1; | |
1664 | } | |
1665 | else { | |
7e08d4ef | 1666 | SWIG_Python_TypeError("number", obj); |
093d3ff1 RD |
1667 | } |
1668 | return 0; | |
1669 | } | |
1670 | ||
1671 | ||
1672 | #if INT_MAX != LONG_MAX | |
1673 | SWIGINTERN int | |
1674 | SWIG_AsVal_int(PyObject *obj, int *val) | |
1675 | { | |
1676 | const char* errmsg = val ? "int" : (char*)0; | |
1677 | long v; | |
1678 | if (SWIG_AsVal_long(obj, &v)) { | |
1679 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
32fe5131 | 1680 | if (val) *val = static_cast<int >(v); |
093d3ff1 RD |
1681 | return 1; |
1682 | } else { | |
1683 | return 0; | |
1684 | } | |
1685 | } else { | |
1686 | PyErr_Clear(); | |
1687 | } | |
1688 | if (val) { | |
1689 | SWIG_type_error(errmsg, obj); | |
1690 | } | |
1691 | return 0; | |
1692 | } | |
1693 | #else | |
32fe5131 | 1694 | SWIGINTERNINLINE int |
093d3ff1 RD |
1695 | SWIG_AsVal_int(PyObject *obj, int *val) |
1696 | { | |
1697 | return SWIG_AsVal_long(obj,(long*)val); | |
1698 | } | |
1699 | #endif | |
1700 | ||
1701 | ||
32fe5131 | 1702 | SWIGINTERNINLINE int |
c32bde28 | 1703 | SWIG_As_int(PyObject* obj) |
994141e6 | 1704 | { |
c32bde28 RD |
1705 | int v; |
1706 | if (!SWIG_AsVal_int(obj, &v)) { | |
1707 | /* | |
093d3ff1 | 1708 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1709 | */ |
1710 | memset((void*)&v, 0, sizeof(int)); | |
15afbcd0 | 1711 | } |
c32bde28 | 1712 | return v; |
15afbcd0 RD |
1713 | } |
1714 | ||
1715 | ||
32fe5131 | 1716 | SWIGINTERNINLINE long |
c32bde28 | 1717 | SWIG_As_long(PyObject* obj) |
15afbcd0 | 1718 | { |
c32bde28 RD |
1719 | long v; |
1720 | if (!SWIG_AsVal_long(obj, &v)) { | |
1721 | /* | |
093d3ff1 | 1722 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1723 | */ |
1724 | memset((void*)&v, 0, sizeof(long)); | |
15afbcd0 | 1725 | } |
c32bde28 | 1726 | return v; |
994141e6 RD |
1727 | } |
1728 | ||
c32bde28 | 1729 | |
32fe5131 | 1730 | SWIGINTERNINLINE int |
c32bde28 RD |
1731 | SWIG_Check_int(PyObject* obj) |
1732 | { | |
1733 | return SWIG_AsVal_int(obj, (int*)0); | |
1734 | } | |
994141e6 | 1735 | |
c32bde28 | 1736 | |
32fe5131 | 1737 | SWIGINTERNINLINE int |
c32bde28 | 1738 | SWIG_Check_long(PyObject* obj) |
994141e6 | 1739 | { |
c32bde28 | 1740 | return SWIG_AsVal_long(obj, (long*)0); |
994141e6 RD |
1741 | } |
1742 | ||
c32bde28 | 1743 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
15afbcd0 | 1744 | |
093d3ff1 | 1745 | SWIGINTERN int |
c32bde28 | 1746 | SWIG_AsVal_bool(PyObject *obj, bool *val) |
15afbcd0 | 1747 | { |
c32bde28 RD |
1748 | if (obj == Py_True) { |
1749 | if (val) *val = true; | |
1750 | return 1; | |
1751 | } | |
1752 | if (obj == Py_False) { | |
1753 | if (val) *val = false; | |
15afbcd0 RD |
1754 | return 1; |
1755 | } | |
c32bde28 RD |
1756 | int res = 0; |
1757 | if (SWIG_AsVal_int(obj, &res)) { | |
093d3ff1 | 1758 | if (val) *val = res ? true : false; |
c32bde28 | 1759 | return 1; |
093d3ff1 RD |
1760 | } else { |
1761 | PyErr_Clear(); | |
1762 | } | |
c32bde28 | 1763 | if (val) { |
093d3ff1 | 1764 | SWIG_type_error("bool", obj); |
c32bde28 RD |
1765 | } |
1766 | return 0; | |
1767 | } | |
1768 | ||
1769 | ||
32fe5131 | 1770 | SWIGINTERNINLINE bool |
c32bde28 RD |
1771 | SWIG_As_bool(PyObject* obj) |
1772 | { | |
1773 | bool v; | |
1774 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1775 | /* | |
093d3ff1 | 1776 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1777 | */ |
1778 | memset((void*)&v, 0, sizeof(bool)); | |
1779 | } | |
1780 | return v; | |
1781 | } | |
1782 | ||
1783 | ||
32fe5131 | 1784 | SWIGINTERNINLINE int |
c32bde28 RD |
1785 | SWIG_Check_bool(PyObject* obj) |
1786 | { | |
1787 | return SWIG_AsVal_bool(obj, (bool*)0); | |
15afbcd0 RD |
1788 | } |
1789 | ||
b2dc1044 RD |
1790 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
1791 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
093d3ff1 | 1792 | |
32fe5131 | 1793 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ |
093d3ff1 RD |
1794 | #define SWIG_From_long PyInt_FromLong |
1795 | /*@@*/ | |
1796 | ||
b9d6a5f3 | 1797 | |
7e08d4ef RD |
1798 | static PyObject* t_output_helper(PyObject* result, PyObject* obj) |
1799 | { | |
1800 | PyObject* o2; | |
1801 | PyObject* o3; | |
1802 | if (!result) { | |
1803 | result = obj; | |
1804 | } else if (result == Py_None) { | |
1805 | Py_DECREF(result); | |
1806 | result = obj; | |
1807 | } else { | |
1808 | if (!PyTuple_Check(result)) { | |
1809 | o2 = result; | |
1810 | result = PyTuple_New(1); | |
1811 | PyTuple_SET_ITEM(result, 0, o2); | |
1812 | } | |
1813 | o3 = PyTuple_New(1); | |
1814 | PyTuple_SetItem(o3, 0, obj); | |
1815 | o2 = result; | |
1816 | result = PySequence_Concat(o2, o3); | |
1817 | Py_DECREF(o2); | |
1818 | Py_DECREF(o3); | |
1819 | } | |
1820 | return result; | |
1821 | } | |
b9d6a5f3 RD |
1822 | |
1823 | ||
b2dc1044 RD |
1824 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); |
1825 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
1826 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
1827 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
1828 | |
1829 | #include <wx/checklst.h> | |
1830 | ||
d14a1e28 | 1831 | |
b2dc1044 | 1832 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
093d3ff1 | 1833 | static void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){ |
d14a1e28 RD |
1834 | if (clientData) { |
1835 | wxPyClientData* data = new wxPyClientData(clientData); | |
1836 | self->Insert(item, pos, data); | |
1837 | } else | |
1838 | self->Insert(item, pos); | |
1839 | } | |
093d3ff1 | 1840 | static PyObject *wxListBox_GetSelections(wxListBox *self){ |
7e08d4ef RD |
1841 | wxArrayInt lst; |
1842 | self->GetSelections(lst); | |
1843 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
1844 | for(size_t i=0; i<lst.GetCount(); i++) { | |
1845 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
1846 | } | |
1847 | return tup; | |
1848 | } | |
093d3ff1 | 1849 | static void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
1850 | #ifdef __WXMSW__ |
1851 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1852 | self->GetItem(item)->SetTextColour(c); | |
1853 | #endif | |
1854 | } | |
093d3ff1 | 1855 | static void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ |
c3eb6258 RD |
1856 | #ifdef __WXMSW__ |
1857 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1858 | self->GetItem(item)->SetBackgroundColour(c); | |
1859 | #endif | |
1860 | } | |
093d3ff1 | 1861 | static void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ |
c3eb6258 RD |
1862 | #ifdef __WXMSW__ |
1863 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
1864 | self->GetItem(item)->SetFont(f); | |
1865 | #endif | |
1866 | } | |
b2dc1044 | 1867 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 | 1868 | |
093d3ff1 | 1869 | SWIGINTERN int |
c32bde28 | 1870 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) |
15afbcd0 | 1871 | { |
c32bde28 RD |
1872 | long v = 0; |
1873 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
7e08d4ef | 1874 | SWIG_Python_TypeError("unsigned number", obj); |
15afbcd0 | 1875 | } |
c32bde28 RD |
1876 | else if (val) |
1877 | *val = (unsigned long)v; | |
1878 | return 1; | |
15afbcd0 RD |
1879 | } |
1880 | ||
1881 | ||
32fe5131 | 1882 | SWIGINTERNINLINE unsigned long |
c32bde28 | 1883 | SWIG_As_unsigned_SS_long(PyObject* obj) |
15afbcd0 | 1884 | { |
c32bde28 RD |
1885 | unsigned long v; |
1886 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1887 | /* | |
093d3ff1 | 1888 | this is needed to make valgrind/purify happier. |
c32bde28 RD |
1889 | */ |
1890 | memset((void*)&v, 0, sizeof(unsigned long)); | |
15afbcd0 | 1891 | } |
c32bde28 RD |
1892 | return v; |
1893 | } | |
1894 | ||
1895 | ||
32fe5131 | 1896 | SWIGINTERNINLINE int |
c32bde28 RD |
1897 | SWIG_Check_unsigned_SS_long(PyObject* obj) |
1898 | { | |
1899 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
15afbcd0 RD |
1900 | } |
1901 | ||
093d3ff1 | 1902 | static void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
d14a1e28 RD |
1903 | self->AppendText(text); |
1904 | } | |
093d3ff1 | 1905 | static wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ |
d14a1e28 RD |
1906 | return self->GetValue().Mid(from, to - from); |
1907 | } | |
b2dc1044 RD |
1908 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
1909 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 1910 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
1911 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
1912 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
093d3ff1 RD |
1913 | static int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
1914 | static int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
1915 | static int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
d14a1e28 RD |
1916 | |
1917 | #include <wx/slider.h> | |
1918 | ||
d14a1e28 | 1919 | |
b2dc1044 | 1920 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 1921 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 1922 | |
15afbcd0 RD |
1923 | #if !wxUSE_TOGGLEBTN |
1924 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
1925 | |
1926 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
1927 | ||
1928 | class wxToggleButton : public wxControl | |
1929 | { | |
1930 | public: | |
1931 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
1932 | const wxPoint&, const wxSize&, long, | |
1933 | const wxValidator&, const wxString&) | |
39f61e25 | 1934 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1935 | |
1936 | wxToggleButton() | |
39f61e25 | 1937 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
1938 | }; |
1939 | #endif | |
1940 | ||
51b83b37 | 1941 | static const wxString wxPyNotebookNameStr(wxNotebookNameStr); |
994141e6 | 1942 | |
32fe5131 | 1943 | SWIGINTERNINLINE PyObject* |
c32bde28 | 1944 | SWIG_From_unsigned_SS_long(unsigned long value) |
994141e6 | 1945 | { |
15afbcd0 RD |
1946 | return (value > LONG_MAX) ? |
1947 | PyLong_FromUnsignedLong(value) | |
32fe5131 | 1948 | : PyInt_FromLong(static_cast<long >(value)); |
994141e6 RD |
1949 | } |
1950 | ||
7e08d4ef RD |
1951 | |
1952 | #if UINT_MAX < LONG_MAX | |
1953 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ | |
1954 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1955 | /*@@*/ | |
1956 | #else | |
1957 | /*@/opt/swig/share/swig/1.3.27/python/pymacros.swg,72,SWIG_define@*/ | |
1958 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1959 | /*@@*/ | |
1960 | #endif | |
1961 | ||
1962 | ||
1963 | SWIGINTERNINLINE int | |
1964 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
1965 | unsigned long max_value, | |
1966 | const char *errmsg) | |
1967 | { | |
1968 | if (value > max_value) { | |
1969 | if (errmsg) { | |
1970 | PyErr_Format(PyExc_OverflowError, | |
1971 | "value %lu is greater than '%s' minimum %lu", | |
1972 | value, errmsg, max_value); | |
1973 | } | |
1974 | return 0; | |
1975 | } | |
1976 | return 1; | |
1977 | } | |
1978 | ||
1979 | ||
1980 | #if UINT_MAX != ULONG_MAX | |
1981 | SWIGINTERN int | |
1982 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1983 | { | |
1984 | const char* errmsg = val ? "unsigned int" : (char*)0; | |
1985 | unsigned long v; | |
1986 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1987 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1988 | if (val) *val = static_cast<unsigned int >(v); | |
1989 | return 1; | |
1990 | } | |
1991 | } else { | |
1992 | PyErr_Clear(); | |
1993 | } | |
1994 | if (val) { | |
1995 | SWIG_type_error(errmsg, obj); | |
1996 | } | |
1997 | return 0; | |
1998 | } | |
1999 | #else | |
2000 | SWIGINTERNINLINE unsigned int | |
2001 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
2002 | { | |
2003 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
2004 | } | |
2005 | #endif | |
2006 | ||
2007 | ||
2008 | SWIGINTERNINLINE unsigned int | |
2009 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
2010 | { | |
2011 | unsigned int v; | |
2012 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
2013 | /* | |
2014 | this is needed to make valgrind/purify happier. | |
2015 | */ | |
2016 | memset((void*)&v, 0, sizeof(unsigned int)); | |
2017 | } | |
2018 | return v; | |
2019 | } | |
2020 | ||
2021 | ||
2022 | SWIGINTERNINLINE int | |
2023 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
2024 | { | |
2025 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
2026 | } | |
2027 | ||
b2dc1044 | 2028 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
093d3ff1 | 2029 | static PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
d14a1e28 RD |
2030 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); |
2031 | if (udata) { | |
2032 | Py_INCREF(udata->m_obj); | |
2033 | return udata->m_obj; | |
2034 | } else { | |
2035 | Py_INCREF(Py_None); | |
2036 | return Py_None; | |
2037 | } | |
2038 | } | |
093d3ff1 | 2039 | static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ |
d14a1e28 RD |
2040 | self->SetClientData(new wxPyUserData(clientData)); |
2041 | } | |
093d3ff1 | 2042 | static wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){ |
d14a1e28 RD |
2043 | wxPyUserData* udata = NULL; |
2044 | if (clientData && clientData != Py_None) | |
2045 | udata = new wxPyUserData(clientData); | |
2046 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
2047 | shortHelp, longHelp, udata); | |
2048 | } | |
093d3ff1 | 2049 | static wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled=wxNullBitmap,wxItemKind kind=wxITEM_NORMAL,wxString const &shortHelp=wxPyEmptyString,wxString const &longHelp=wxPyEmptyString,PyObject *clientData=NULL){ |
d14a1e28 RD |
2050 | wxPyUserData* udata = NULL; |
2051 | if (clientData && clientData != Py_None) | |
2052 | udata = new wxPyUserData(clientData); | |
2053 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
2054 | shortHelp, longHelp, udata); | |
2055 | } | |
093d3ff1 | 2056 | static PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ |
d14a1e28 RD |
2057 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); |
2058 | if (udata) { | |
2059 | Py_INCREF(udata->m_obj); | |
2060 | return udata->m_obj; | |
2061 | } else { | |
2062 | Py_INCREF(Py_None); | |
2063 | return Py_None; | |
2064 | } | |
2065 | } | |
093d3ff1 | 2066 | static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ |
d14a1e28 RD |
2067 | self->SetToolClientData(id, new wxPyUserData(clientData)); |
2068 | } | |
2069 | ||
2070 | #include <wx/listctrl.h> | |
2071 | ||
7557b9b5 | 2072 | static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr); |
093d3ff1 | 2073 | static void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
d14a1e28 RD |
2074 | // Python aware sorting function for wxPyListCtrl |
2075 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
2076 | int retval = 0; | |
2077 | PyObject* func = (PyObject*)funcPtr; | |
5a446332 | 2078 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2079 | |
2080 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
2081 | PyObject* result = PyEval_CallObject(func, args); | |
2082 | Py_DECREF(args); | |
2083 | if (result) { | |
2084 | retval = PyInt_AsLong(result); | |
2085 | Py_DECREF(result); | |
2086 | } | |
2087 | ||
4f89f6a3 | 2088 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2089 | return retval; |
2090 | } | |
2091 | ||
2092 | // C++ Version of a Python aware class | |
2093 | class wxPyListCtrl : public wxListCtrl { | |
32fe5131 | 2094 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl) |
d14a1e28 RD |
2095 | public: |
2096 | wxPyListCtrl() : wxListCtrl() {} | |
2097 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
2098 | const wxPoint& pos, | |
2099 | const wxSize& size, | |
2100 | long style, | |
2101 | const wxValidator& validator, | |
2102 | const wxString& name) : | |
2103 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
2104 | ||
2105 | bool Create(wxWindow* parent, wxWindowID id, | |
2106 | const wxPoint& pos, | |
2107 | const wxSize& size, | |
2108 | long style, | |
2109 | const wxValidator& validator, | |
2110 | const wxString& name) { | |
2111 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
2112 | } | |
2113 | ||
2114 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
d14a1e28 RD |
2115 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); |
2116 | ||
84f85550 RD |
2117 | // use the virtual version to avoid a confusing assert in the base class |
2118 | DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage); | |
7e08d4ef | 2119 | DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage); |
84f85550 | 2120 | |
d14a1e28 RD |
2121 | PYPRIVATE; |
2122 | }; | |
2123 | ||
2124 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
2125 | ||
2126 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
d14a1e28 | 2127 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); |
84f85550 | 2128 | IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage); |
7e08d4ef RD |
2129 | IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage); |
2130 | ||
d14a1e28 | 2131 | |
093d3ff1 | 2132 | static wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ |
d14a1e28 RD |
2133 | wxListItem item; |
2134 | item.SetMask( wxLIST_MASK_STATE | | |
2135 | wxLIST_MASK_TEXT | | |
2136 | wxLIST_MASK_IMAGE | | |
2137 | wxLIST_MASK_DATA | | |
2138 | wxLIST_SET_ITEM | | |
2139 | wxLIST_MASK_WIDTH | | |
2140 | wxLIST_MASK_FORMAT | |
2141 | ); | |
2142 | if (self->GetColumn(col, item)) | |
2143 | return new wxListItem(item); | |
2144 | else | |
2145 | return NULL; | |
2146 | } | |
093d3ff1 | 2147 | static wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){ |
d14a1e28 RD |
2148 | wxListItem* info = new wxListItem; |
2149 | info->m_itemId = itemId; | |
2150 | info->m_col = col; | |
2151 | info->m_mask = 0xFFFF; | |
2152 | self->GetItem(*info); | |
2153 | return info; | |
2154 | } | |
093d3ff1 | 2155 | static wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ |
d14a1e28 RD |
2156 | wxPoint pos; |
2157 | self->GetItemPosition(item, pos); | |
2158 | return pos; | |
2159 | } | |
093d3ff1 | 2160 | static wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){ |
d14a1e28 RD |
2161 | wxRect rect; |
2162 | self->GetItemRect(item, rect, code); | |
2163 | return rect; | |
2164 | } | |
c32bde28 | 2165 | |
093d3ff1 | 2166 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ |
d14a1e28 | 2167 | if (!PyCallable_Check(func)) |
ae8162c8 | 2168 | return false; |
d14a1e28 RD |
2169 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
2170 | } | |
093d3ff1 | 2171 | static wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ |
d14a1e28 RD |
2172 | |
2173 | ||
2174 | ||
2175 | return (wxWindow*)self->m_mainWin; | |
2176 | ||
2177 | } | |
2178 | ||
2179 | #include <wx/treectrl.h> | |
2180 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 2181 | |
33b885b9 | 2182 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
093d3ff1 RD |
2183 | static bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; } |
2184 | static bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; } | |
2185 | static void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
d14a1e28 RD |
2186 | // C++ version of Python aware wxTreeCtrl |
2187 | class wxPyTreeCtrl : public wxTreeCtrl { | |
32fe5131 | 2188 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl) |
d14a1e28 RD |
2189 | public: |
2190 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
2191 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
2192 | const wxPoint& pos, | |
2193 | const wxSize& size, | |
2194 | long style, | |
2195 | const wxValidator& validator, | |
2196 | const wxString& name) : | |
2197 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
2198 | ||
2199 | bool Create(wxWindow *parent, wxWindowID id, | |
2200 | const wxPoint& pos, | |
2201 | const wxSize& size, | |
2202 | long style, | |
2203 | const wxValidator& validator, | |
2204 | const wxString& name) { | |
2205 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
2206 | } | |
2207 | ||
2208 | ||
2209 | int OnCompareItems(const wxTreeItemId& item1, | |
2210 | const wxTreeItemId& item2) { | |
2211 | int rval = 0; | |
2212 | bool found; | |
5a446332 | 2213 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2214 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
ae8162c8 RD |
2215 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false); |
2216 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false); | |
d14a1e28 RD |
2217 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
2218 | Py_DECREF(o1); | |
2219 | Py_DECREF(o2); | |
2220 | } | |
4f89f6a3 | 2221 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2222 | if (! found) |
2223 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
2224 | return rval; | |
2225 | } | |
2226 | PYPRIVATE; | |
2227 | }; | |
2228 | ||
2229 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
2230 | ||
2231 | ||
093d3ff1 | 2232 | static wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
2233 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2234 | if (data == NULL) { | |
2235 | data = new wxPyTreeItemData(); | |
2236 | data->SetId(item); // set the id | |
2237 | self->SetItemData(item, data); | |
2238 | } | |
2239 | return data; | |
2240 | } | |
093d3ff1 | 2241 | static PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
d14a1e28 RD |
2242 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2243 | if (data == NULL) { | |
2244 | data = new wxPyTreeItemData(); | |
2245 | data->SetId(item); // set the id | |
2246 | self->SetItemData(item, data); | |
2247 | } | |
2248 | return data->GetData(); | |
2249 | } | |
093d3ff1 | 2250 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ |
d14a1e28 RD |
2251 | data->SetId(item); // set the id |
2252 | self->SetItemData(item, data); | |
2253 | } | |
093d3ff1 | 2254 | static void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ |
d14a1e28 RD |
2255 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
2256 | if (data == NULL) { | |
2257 | data = new wxPyTreeItemData(obj); | |
2258 | data->SetId(item); // set the id | |
2259 | self->SetItemData(item, data); | |
2260 | } else | |
2261 | data->SetData(obj); | |
2262 | } | |
093d3ff1 | 2263 | static PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ |
5a446332 | 2264 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
2265 | PyObject* rval = PyList_New(0); |
2266 | wxArrayTreeItemIds array; | |
2267 | size_t num, x; | |
2268 | num = self->GetSelections(array); | |
2269 | for (x=0; x < num; x++) { | |
2270 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
ae8162c8 | 2271 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true); |
d14a1e28 | 2272 | PyList_Append(rval, item); |
1a10c483 | 2273 | Py_DECREF(item); |
d14a1e28 | 2274 | } |
4f89f6a3 | 2275 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2276 | return rval; |
2277 | } | |
093d3ff1 | 2278 | static PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
58203fa6 RD |
2279 | void* cookie = 0; |
2280 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
5a446332 | 2281 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2282 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 2283 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 2284 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 2285 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2286 | return tup; |
2287 | } | |
093d3ff1 | 2288 | static PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
58203fa6 | 2289 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); |
5a446332 | 2290 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2291 | PyObject* tup = PyTuple_New(2); |
ae8162c8 | 2292 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true)); |
58203fa6 | 2293 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); |
4f89f6a3 | 2294 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2295 | return tup; |
2296 | } | |
093d3ff1 | 2297 | static PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){ |
d14a1e28 RD |
2298 | wxRect rect; |
2299 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
5a446332 | 2300 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 2301 | wxRect* r = new wxRect(rect); |
ae8162c8 | 2302 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true); |
4f89f6a3 | 2303 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
2304 | return val; |
2305 | } | |
2306 | else | |
2307 | RETURN_NONE(); | |
2308 | } | |
b2dc1044 | 2309 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
c32bde28 | 2310 | |
32fe5131 | 2311 | SWIGINTERNINLINE PyObject* |
c32bde28 RD |
2312 | SWIG_From_bool(bool value) |
2313 | { | |
2314 | PyObject *obj = value ? Py_True : Py_False; | |
2315 | Py_INCREF(obj); | |
2316 | return obj; | |
2317 | } | |
2318 | ||
2319 | ||
d14a1e28 RD |
2320 | // C++ version of Python aware wxControl |
2321 | class wxPyControl : public wxControl | |
2322 | { | |
2323 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
2324 | public: | |
2325 | wxPyControl() : wxControl() {} | |
2326 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
2327 | const wxPoint& pos = wxDefaultPosition, | |
2328 | const wxSize& size = wxDefaultSize, | |
2329 | long style = 0, | |
2330 | const wxValidator& validator=wxDefaultValidator, | |
2331 | const wxString& name = wxPyControlNameStr) | |
2332 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
2333 | ||
db3e571a | 2334 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 | 2335 | |
976dbff5 RD |
2336 | bool DoEraseBackground(wxDC* dc) { |
2337 | #ifdef __WXMSW__ | |
2338 | return wxWindow::DoEraseBackground(dc->GetHDC()); | |
2339 | #else | |
2340 | dc->SetBackground(wxBrush(GetBackgroundColour())); | |
2341 | dc->Clear(); | |
2342 | return true; | |
2343 | #endif | |
2344 | } | |
2345 | ||
d14a1e28 RD |
2346 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); |
2347 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
2348 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
2349 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
2350 | ||
2351 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
2352 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
2353 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
2354 | ||
2355 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
2356 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
2357 | ||
2358 | DEC_PYCALLBACK__(InitDialog); | |
2359 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
2360 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
2361 | DEC_PYCALLBACK_BOOL_(Validate); | |
2362 | ||
2363 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
2364 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
2365 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
2366 | ||
2367 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
2368 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
2369 | ||
db3e571a | 2370 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
db3e571a | 2371 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 2372 | |
51b83b37 RD |
2373 | DEC_PYCALLBACK_BOOL_(HasTransparentBackground); |
2374 | ||
8d38bd1d RD |
2375 | DEC_PYCALLBACK_VOID_(OnInternalIdle); |
2376 | ||
d14a1e28 RD |
2377 | PYPRIVATE; |
2378 | }; | |
2379 | ||
2380 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
2381 | ||
2382 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
2383 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
2384 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
2385 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
2386 | ||
2387 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
2388 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
2389 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
2390 | ||
2391 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
2392 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
2393 | ||
2394 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
2395 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
2396 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
2397 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
2398 | ||
2399 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
2400 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
2401 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
2402 | ||
2403 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
2404 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
2405 | ||
db3e571a | 2406 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
db3e571a | 2407 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 | 2408 | |
51b83b37 | 2409 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); |
8d38bd1d RD |
2410 | |
2411 | IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); | |
2412 | ||
d14a1e28 RD |
2413 | |
2414 | ||
093d3ff1 | 2415 | static void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } |
e811c8ce RD |
2416 | |
2417 | #include <wx/generic/dragimgg.h> | |
2418 | ||
53aa7709 RD |
2419 | static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr); |
2420 | static wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){ | |
2421 | wxDateTime rv; | |
2422 | self->GetRange(&rv, NULL); | |
2423 | return rv; | |
2424 | } | |
2425 | static wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){ | |
2426 | wxDateTime rv; | |
2427 | self->GetRange(NULL, &rv); | |
2428 | return rv; | |
2429 | } | |
d14a1e28 RD |
2430 | #ifdef __cplusplus |
2431 | extern "C" { | |
2432 | #endif | |
c32bde28 | 2433 | static int _wrap_ButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
2434 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
2435 | return 1; | |
2436 | } | |
2437 | ||
2438 | ||
093d3ff1 | 2439 | static PyObject *_wrap_ButtonNameStr_get(void) { |
32fe5131 | 2440 | PyObject *pyobj = NULL; |
b2dc1044 RD |
2441 | |
2442 | { | |
2443 | #if wxUSE_UNICODE | |
2444 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2445 | #else | |
2446 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
2447 | #endif | |
2448 | } | |
2449 | return pyobj; | |
2450 | } | |
2451 | ||
2452 | ||
c32bde28 | 2453 | static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2454 | PyObject *resultobj = NULL; |
d14a1e28 | 2455 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
2456 | int arg2 = (int) -1 ; |
2457 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2458 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
2459 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2460 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2461 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2462 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2463 | long arg6 = (long) 0 ; | |
2464 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2465 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2466 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2467 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2468 | wxButton *result; | |
ae8162c8 | 2469 | bool temp3 = false ; |
d14a1e28 RD |
2470 | wxPoint temp4 ; |
2471 | wxSize temp5 ; | |
ae8162c8 | 2472 | bool temp8 = false ; |
d14a1e28 | 2473 | PyObject * obj0 = 0 ; |
994141e6 | 2474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2475 | PyObject * obj2 = 0 ; |
2476 | PyObject * obj3 = 0 ; | |
2477 | PyObject * obj4 = 0 ; | |
994141e6 | 2478 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2479 | PyObject * obj6 = 0 ; |
2480 | PyObject * obj7 = 0 ; | |
2481 | char *kwnames[] = { | |
2482 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2483 | }; | |
2484 | ||
248ed943 | 2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2486 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2487 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2488 | if (obj1) { |
093d3ff1 | 2489 | { |
32fe5131 | 2490 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
2491 | if (SWIG_arg_fail(2)) SWIG_fail; |
2492 | } | |
248ed943 RD |
2493 | } |
2494 | if (obj2) { | |
2495 | { | |
2496 | arg3 = wxString_in_helper(obj2); | |
2497 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 2498 | temp3 = true; |
248ed943 | 2499 | } |
d14a1e28 RD |
2500 | } |
2501 | if (obj3) { | |
2502 | { | |
2503 | arg4 = &temp4; | |
2504 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2505 | } | |
2506 | } | |
2507 | if (obj4) { | |
2508 | { | |
2509 | arg5 = &temp5; | |
2510 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2511 | } | |
2512 | } | |
994141e6 | 2513 | if (obj5) { |
093d3ff1 | 2514 | { |
32fe5131 | 2515 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
2516 | if (SWIG_arg_fail(6)) SWIG_fail; |
2517 | } | |
994141e6 | 2518 | } |
d14a1e28 | 2519 | if (obj6) { |
093d3ff1 RD |
2520 | { |
2521 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2522 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2523 | if (arg7 == NULL) { | |
2524 | SWIG_null_ref("wxValidator"); | |
2525 | } | |
2526 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
2527 | } |
2528 | } | |
2529 | if (obj7) { | |
2530 | { | |
2531 | arg8 = wxString_in_helper(obj7); | |
2532 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2533 | temp8 = true; |
d14a1e28 RD |
2534 | } |
2535 | } | |
2536 | { | |
e3b71cb8 | 2537 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2539 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2540 | ||
2541 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2542 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2543 | } |
b0f7404b | 2544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
2545 | { |
2546 | if (temp3) | |
2547 | delete arg3; | |
2548 | } | |
2549 | { | |
2550 | if (temp8) | |
2551 | delete arg8; | |
2552 | } | |
2553 | return resultobj; | |
2554 | fail: | |
2555 | { | |
2556 | if (temp3) | |
2557 | delete arg3; | |
2558 | } | |
2559 | { | |
2560 | if (temp8) | |
2561 | delete arg8; | |
2562 | } | |
2563 | return NULL; | |
2564 | } | |
2565 | ||
2566 | ||
c32bde28 | 2567 | static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2568 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2569 | wxButton *result; |
2570 | char *kwnames[] = { | |
2571 | NULL | |
2572 | }; | |
2573 | ||
2574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
2575 | { | |
e3b71cb8 | 2576 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2578 | result = (wxButton *)new wxButton(); | |
2579 | ||
2580 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2581 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2582 | } |
b0f7404b | 2583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
2584 | return resultobj; |
2585 | fail: | |
2586 | return NULL; | |
2587 | } | |
2588 | ||
2589 | ||
c32bde28 | 2590 | static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2591 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2592 | wxButton *arg1 = (wxButton *) 0 ; |
2593 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2594 | int arg3 = (int) -1 ; |
2595 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2596 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2597 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2598 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2599 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2600 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2601 | long arg7 = (long) 0 ; | |
2602 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2603 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2604 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2605 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2606 | bool result; | |
ae8162c8 | 2607 | bool temp4 = false ; |
d14a1e28 RD |
2608 | wxPoint temp5 ; |
2609 | wxSize temp6 ; | |
ae8162c8 | 2610 | bool temp9 = false ; |
d14a1e28 RD |
2611 | PyObject * obj0 = 0 ; |
2612 | PyObject * obj1 = 0 ; | |
994141e6 | 2613 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2614 | PyObject * obj3 = 0 ; |
2615 | PyObject * obj4 = 0 ; | |
2616 | PyObject * obj5 = 0 ; | |
994141e6 | 2617 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2618 | PyObject * obj7 = 0 ; |
2619 | PyObject * obj8 = 0 ; | |
2620 | char *kwnames[] = { | |
2621 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2622 | }; | |
2623 | ||
248ed943 | 2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
2625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2627 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2628 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 2629 | if (obj2) { |
093d3ff1 | 2630 | { |
32fe5131 | 2631 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
2632 | if (SWIG_arg_fail(3)) SWIG_fail; |
2633 | } | |
248ed943 RD |
2634 | } |
2635 | if (obj3) { | |
2636 | { | |
2637 | arg4 = wxString_in_helper(obj3); | |
2638 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 2639 | temp4 = true; |
248ed943 | 2640 | } |
d14a1e28 RD |
2641 | } |
2642 | if (obj4) { | |
2643 | { | |
2644 | arg5 = &temp5; | |
2645 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2646 | } | |
2647 | } | |
2648 | if (obj5) { | |
2649 | { | |
2650 | arg6 = &temp6; | |
2651 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2652 | } | |
2653 | } | |
994141e6 | 2654 | if (obj6) { |
093d3ff1 | 2655 | { |
32fe5131 | 2656 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
2657 | if (SWIG_arg_fail(7)) SWIG_fail; |
2658 | } | |
994141e6 | 2659 | } |
d14a1e28 | 2660 | if (obj7) { |
093d3ff1 RD |
2661 | { |
2662 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2663 | if (SWIG_arg_fail(8)) SWIG_fail; | |
2664 | if (arg8 == NULL) { | |
2665 | SWIG_null_ref("wxValidator"); | |
2666 | } | |
2667 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
2668 | } |
2669 | } | |
2670 | if (obj8) { | |
2671 | { | |
2672 | arg9 = wxString_in_helper(obj8); | |
2673 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 2674 | temp9 = true; |
d14a1e28 RD |
2675 | } |
2676 | } | |
2677 | { | |
2678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2679 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2680 | ||
2681 | wxPyEndAllowThreads(__tstate); | |
2682 | if (PyErr_Occurred()) SWIG_fail; | |
2683 | } | |
4f89f6a3 RD |
2684 | { |
2685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2686 | } | |
d14a1e28 RD |
2687 | { |
2688 | if (temp4) | |
2689 | delete arg4; | |
2690 | } | |
2691 | { | |
2692 | if (temp9) | |
2693 | delete arg9; | |
2694 | } | |
2695 | return resultobj; | |
2696 | fail: | |
2697 | { | |
2698 | if (temp4) | |
2699 | delete arg4; | |
2700 | } | |
2701 | { | |
2702 | if (temp9) | |
2703 | delete arg9; | |
2704 | } | |
2705 | return NULL; | |
2706 | } | |
2707 | ||
2708 | ||
c32bde28 | 2709 | static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2710 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2711 | wxButton *arg1 = (wxButton *) 0 ; |
2712 | PyObject * obj0 = 0 ; | |
2713 | char *kwnames[] = { | |
2714 | (char *) "self", NULL | |
2715 | }; | |
2716 | ||
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
2718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxButton, SWIG_POINTER_EXCEPTION | 0); |
2719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
2720 | { |
2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2722 | (arg1)->SetDefault(); | |
2723 | ||
2724 | wxPyEndAllowThreads(__tstate); | |
2725 | if (PyErr_Occurred()) SWIG_fail; | |
2726 | } | |
2727 | Py_INCREF(Py_None); resultobj = Py_None; | |
2728 | return resultobj; | |
2729 | fail: | |
2730 | return NULL; | |
2731 | } | |
2732 | ||
2733 | ||
c32bde28 | 2734 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2735 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2736 | wxSize result; |
2737 | char *kwnames[] = { | |
2738 | NULL | |
2739 | }; | |
2740 | ||
2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
2742 | { | |
2743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2744 | result = wxButton::GetDefaultSize(); | |
2745 | ||
2746 | wxPyEndAllowThreads(__tstate); | |
2747 | if (PyErr_Occurred()) SWIG_fail; | |
2748 | } | |
2749 | { | |
2750 | wxSize * resultptr; | |
32fe5131 | 2751 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 2752 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2753 | } |
2754 | return resultobj; | |
2755 | fail: | |
2756 | return NULL; | |
2757 | } | |
2758 | ||
2759 | ||
c32bde28 | 2760 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2761 | PyObject *resultobj = NULL; |
093d3ff1 | 2762 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
2763 | wxVisualAttributes result; |
2764 | PyObject * obj0 = 0 ; | |
2765 | char *kwnames[] = { | |
2766 | (char *) "variant", NULL | |
2767 | }; | |
2768 | ||
2769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2770 | if (obj0) { | |
093d3ff1 | 2771 | { |
32fe5131 | 2772 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
2773 | if (SWIG_arg_fail(1)) SWIG_fail; |
2774 | } | |
22bfe96c RD |
2775 | } |
2776 | { | |
110da5b0 | 2777 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 2778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 2779 | result = wxButton::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
2780 | |
2781 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2782 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2783 | } |
2784 | { | |
2785 | wxVisualAttributes * resultptr; | |
32fe5131 | 2786 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
2787 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
2788 | } | |
2789 | return resultobj; | |
2790 | fail: | |
2791 | return NULL; | |
2792 | } | |
2793 | ||
2794 | ||
c32bde28 | 2795 | static PyObject * Button_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2796 | PyObject *obj; |
2797 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2798 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
2799 | Py_INCREF(obj); | |
2800 | return Py_BuildValue((char *)""); | |
2801 | } | |
c32bde28 | 2802 | static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2803 | PyObject *resultobj = NULL; |
d14a1e28 | 2804 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
2805 | int arg2 = (int) -1 ; |
2806 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
2807 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
2808 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2809 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2810 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2811 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2812 | long arg6 = (long) wxBU_AUTODRAW ; | |
2813 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2814 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2815 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
2816 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2817 | wxBitmapButton *result; | |
2818 | wxPoint temp4 ; | |
2819 | wxSize temp5 ; | |
ae8162c8 | 2820 | bool temp8 = false ; |
d14a1e28 | 2821 | PyObject * obj0 = 0 ; |
994141e6 | 2822 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2823 | PyObject * obj2 = 0 ; |
2824 | PyObject * obj3 = 0 ; | |
2825 | PyObject * obj4 = 0 ; | |
994141e6 | 2826 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2827 | PyObject * obj6 = 0 ; |
2828 | PyObject * obj7 = 0 ; | |
2829 | char *kwnames[] = { | |
2830 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2831 | }; | |
2832 | ||
248ed943 | 2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
2834 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
2835 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 2836 | if (obj1) { |
093d3ff1 | 2837 | { |
32fe5131 | 2838 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
2839 | if (SWIG_arg_fail(2)) SWIG_fail; |
2840 | } | |
248ed943 RD |
2841 | } |
2842 | if (obj2) { | |
093d3ff1 RD |
2843 | { |
2844 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2845 | if (SWIG_arg_fail(3)) SWIG_fail; | |
2846 | if (arg3 == NULL) { | |
2847 | SWIG_null_ref("wxBitmap"); | |
2848 | } | |
2849 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 2850 | } |
d14a1e28 RD |
2851 | } |
2852 | if (obj3) { | |
2853 | { | |
2854 | arg4 = &temp4; | |
2855 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2856 | } | |
2857 | } | |
2858 | if (obj4) { | |
2859 | { | |
2860 | arg5 = &temp5; | |
2861 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2862 | } | |
2863 | } | |
994141e6 | 2864 | if (obj5) { |
093d3ff1 | 2865 | { |
32fe5131 | 2866 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
2867 | if (SWIG_arg_fail(6)) SWIG_fail; |
2868 | } | |
994141e6 | 2869 | } |
d14a1e28 | 2870 | if (obj6) { |
093d3ff1 RD |
2871 | { |
2872 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
2873 | if (SWIG_arg_fail(7)) SWIG_fail; | |
2874 | if (arg7 == NULL) { | |
2875 | SWIG_null_ref("wxValidator"); | |
2876 | } | |
2877 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
2878 | } |
2879 | } | |
2880 | if (obj7) { | |
2881 | { | |
2882 | arg8 = wxString_in_helper(obj7); | |
2883 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 2884 | temp8 = true; |
d14a1e28 RD |
2885 | } |
2886 | } | |
2887 | { | |
e3b71cb8 | 2888 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2890 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2891 | ||
2892 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2893 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2894 | } |
b0f7404b | 2895 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
2896 | { |
2897 | if (temp8) | |
2898 | delete arg8; | |
2899 | } | |
2900 | return resultobj; | |
2901 | fail: | |
2902 | { | |
2903 | if (temp8) | |
2904 | delete arg8; | |
2905 | } | |
2906 | return NULL; | |
2907 | } | |
2908 | ||
2909 | ||
c32bde28 | 2910 | static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2911 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2912 | wxBitmapButton *result; |
2913 | char *kwnames[] = { | |
2914 | NULL | |
2915 | }; | |
2916 | ||
2917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
2918 | { | |
e3b71cb8 | 2919 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2921 | result = (wxBitmapButton *)new wxBitmapButton(); | |
2922 | ||
2923 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2924 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2925 | } |
b0f7404b | 2926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
2927 | return resultobj; |
2928 | fail: | |
2929 | return NULL; | |
2930 | } | |
2931 | ||
2932 | ||
c32bde28 | 2933 | static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 2934 | PyObject *resultobj = NULL; |
d14a1e28 RD |
2935 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
2936 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2937 | int arg3 = (int) -1 ; |
2938 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
2939 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
2940 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2941 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2942 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2943 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2944 | long arg7 = (long) wxBU_AUTODRAW ; | |
2945 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2946 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2947 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
2948 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2949 | bool result; | |
2950 | wxPoint temp5 ; | |
2951 | wxSize temp6 ; | |
ae8162c8 | 2952 | bool temp9 = false ; |
d14a1e28 RD |
2953 | PyObject * obj0 = 0 ; |
2954 | PyObject * obj1 = 0 ; | |
994141e6 | 2955 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2956 | PyObject * obj3 = 0 ; |
2957 | PyObject * obj4 = 0 ; | |
2958 | PyObject * obj5 = 0 ; | |
994141e6 | 2959 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2960 | PyObject * obj7 = 0 ; |
2961 | PyObject * obj8 = 0 ; | |
2962 | char *kwnames[] = { | |
2963 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2964 | }; | |
2965 | ||
248ed943 | 2966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
2967 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
2968 | if (SWIG_arg_fail(1)) SWIG_fail; | |
2969 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
2970 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 2971 | if (obj2) { |
093d3ff1 | 2972 | { |
32fe5131 | 2973 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
2974 | if (SWIG_arg_fail(3)) SWIG_fail; |
2975 | } | |
248ed943 RD |
2976 | } |
2977 | if (obj3) { | |
093d3ff1 RD |
2978 | { |
2979 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
2980 | if (SWIG_arg_fail(4)) SWIG_fail; | |
2981 | if (arg4 == NULL) { | |
2982 | SWIG_null_ref("wxBitmap"); | |
2983 | } | |
2984 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 2985 | } |
d14a1e28 RD |
2986 | } |
2987 | if (obj4) { | |
2988 | { | |
2989 | arg5 = &temp5; | |
2990 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2991 | } | |
2992 | } | |
2993 | if (obj5) { | |
2994 | { | |
2995 | arg6 = &temp6; | |
2996 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2997 | } | |
2998 | } | |
994141e6 | 2999 | if (obj6) { |
093d3ff1 | 3000 | { |
32fe5131 | 3001 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
3002 | if (SWIG_arg_fail(7)) SWIG_fail; |
3003 | } | |
994141e6 | 3004 | } |
d14a1e28 | 3005 | if (obj7) { |
093d3ff1 RD |
3006 | { |
3007 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3008 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3009 | if (arg8 == NULL) { | |
3010 | SWIG_null_ref("wxValidator"); | |
3011 | } | |
3012 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
3013 | } |
3014 | } | |
3015 | if (obj8) { | |
3016 | { | |
3017 | arg9 = wxString_in_helper(obj8); | |
3018 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3019 | temp9 = true; |
d14a1e28 RD |
3020 | } |
3021 | } | |
3022 | { | |
3023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3024 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3025 | ||
3026 | wxPyEndAllowThreads(__tstate); | |
3027 | if (PyErr_Occurred()) SWIG_fail; | |
3028 | } | |
4f89f6a3 RD |
3029 | { |
3030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3031 | } | |
d14a1e28 RD |
3032 | { |
3033 | if (temp9) | |
3034 | delete arg9; | |
3035 | } | |
3036 | return resultobj; | |
3037 | fail: | |
3038 | { | |
3039 | if (temp9) | |
3040 | delete arg9; | |
3041 | } | |
3042 | return NULL; | |
3043 | } | |
3044 | ||
3045 | ||
c32bde28 | 3046 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3047 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3048 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3049 | wxBitmap result; | |
3050 | PyObject * obj0 = 0 ; | |
3051 | char *kwnames[] = { | |
3052 | (char *) "self", NULL | |
3053 | }; | |
3054 | ||
3055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3058 | { |
3059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3060 | result = (arg1)->GetBitmapLabel(); | |
3061 | ||
3062 | wxPyEndAllowThreads(__tstate); | |
3063 | if (PyErr_Occurred()) SWIG_fail; | |
3064 | } | |
3065 | { | |
3066 | wxBitmap * resultptr; | |
32fe5131 | 3067 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 3068 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3069 | } |
3070 | return resultobj; | |
3071 | fail: | |
3072 | return NULL; | |
3073 | } | |
3074 | ||
3075 | ||
c32bde28 | 3076 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3077 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3078 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3079 | wxBitmap result; | |
3080 | PyObject * obj0 = 0 ; | |
3081 | char *kwnames[] = { | |
3082 | (char *) "self", NULL | |
3083 | }; | |
3084 | ||
3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3086 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3087 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3088 | { |
3089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3090 | result = (arg1)->GetBitmapDisabled(); | |
3091 | ||
3092 | wxPyEndAllowThreads(__tstate); | |
3093 | if (PyErr_Occurred()) SWIG_fail; | |
3094 | } | |
3095 | { | |
3096 | wxBitmap * resultptr; | |
32fe5131 | 3097 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 3098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3099 | } |
3100 | return resultobj; | |
3101 | fail: | |
3102 | return NULL; | |
3103 | } | |
3104 | ||
3105 | ||
c32bde28 | 3106 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3107 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3108 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3109 | wxBitmap result; | |
3110 | PyObject * obj0 = 0 ; | |
3111 | char *kwnames[] = { | |
3112 | (char *) "self", NULL | |
3113 | }; | |
3114 | ||
3115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3116 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3117 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3118 | { |
3119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3120 | result = (arg1)->GetBitmapFocus(); | |
3121 | ||
3122 | wxPyEndAllowThreads(__tstate); | |
3123 | if (PyErr_Occurred()) SWIG_fail; | |
3124 | } | |
3125 | { | |
3126 | wxBitmap * resultptr; | |
32fe5131 | 3127 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 3128 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3129 | } |
3130 | return resultobj; | |
3131 | fail: | |
3132 | return NULL; | |
3133 | } | |
3134 | ||
3135 | ||
c32bde28 | 3136 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3137 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3138 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3139 | wxBitmap result; | |
3140 | PyObject * obj0 = 0 ; | |
3141 | char *kwnames[] = { | |
3142 | (char *) "self", NULL | |
3143 | }; | |
3144 | ||
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3148 | { |
3149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3150 | result = (arg1)->GetBitmapSelected(); | |
3151 | ||
3152 | wxPyEndAllowThreads(__tstate); | |
3153 | if (PyErr_Occurred()) SWIG_fail; | |
3154 | } | |
3155 | { | |
3156 | wxBitmap * resultptr; | |
32fe5131 | 3157 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 3158 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3159 | } |
3160 | return resultobj; | |
3161 | fail: | |
3162 | return NULL; | |
3163 | } | |
3164 | ||
3165 | ||
c32bde28 | 3166 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3167 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3168 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3169 | wxBitmap *arg2 = 0 ; | |
3170 | PyObject * obj0 = 0 ; | |
3171 | PyObject * obj1 = 0 ; | |
3172 | char *kwnames[] = { | |
3173 | (char *) "self",(char *) "bitmap", NULL | |
3174 | }; | |
3175 | ||
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3179 | { | |
3180 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3181 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3182 | if (arg2 == NULL) { | |
3183 | SWIG_null_ref("wxBitmap"); | |
3184 | } | |
3185 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3186 | } |
3187 | { | |
3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3189 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
3190 | ||
3191 | wxPyEndAllowThreads(__tstate); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
3194 | Py_INCREF(Py_None); resultobj = Py_None; | |
3195 | return resultobj; | |
3196 | fail: | |
3197 | return NULL; | |
3198 | } | |
3199 | ||
3200 | ||
c32bde28 | 3201 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3202 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3203 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3204 | wxBitmap *arg2 = 0 ; | |
3205 | PyObject * obj0 = 0 ; | |
3206 | PyObject * obj1 = 0 ; | |
3207 | char *kwnames[] = { | |
3208 | (char *) "self",(char *) "bitmap", NULL | |
3209 | }; | |
3210 | ||
3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3212 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3213 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3214 | { | |
3215 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3216 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3217 | if (arg2 == NULL) { | |
3218 | SWIG_null_ref("wxBitmap"); | |
3219 | } | |
3220 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3221 | } |
3222 | { | |
3223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3224 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
3225 | ||
3226 | wxPyEndAllowThreads(__tstate); | |
3227 | if (PyErr_Occurred()) SWIG_fail; | |
3228 | } | |
3229 | Py_INCREF(Py_None); resultobj = Py_None; | |
3230 | return resultobj; | |
3231 | fail: | |
3232 | return NULL; | |
3233 | } | |
3234 | ||
3235 | ||
c32bde28 | 3236 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3237 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3238 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3239 | wxBitmap *arg2 = 0 ; | |
3240 | PyObject * obj0 = 0 ; | |
3241 | PyObject * obj1 = 0 ; | |
3242 | char *kwnames[] = { | |
3243 | (char *) "self",(char *) "bitmap", NULL | |
3244 | }; | |
3245 | ||
3246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3249 | { | |
3250 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3251 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3252 | if (arg2 == NULL) { | |
3253 | SWIG_null_ref("wxBitmap"); | |
3254 | } | |
3255 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3256 | } |
3257 | { | |
3258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3259 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
3260 | ||
3261 | wxPyEndAllowThreads(__tstate); | |
3262 | if (PyErr_Occurred()) SWIG_fail; | |
3263 | } | |
3264 | Py_INCREF(Py_None); resultobj = Py_None; | |
3265 | return resultobj; | |
3266 | fail: | |
3267 | return NULL; | |
3268 | } | |
3269 | ||
3270 | ||
c32bde28 | 3271 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3272 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3273 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3274 | wxBitmap *arg2 = 0 ; | |
3275 | PyObject * obj0 = 0 ; | |
3276 | PyObject * obj1 = 0 ; | |
3277 | char *kwnames[] = { | |
3278 | (char *) "self",(char *) "bitmap", NULL | |
3279 | }; | |
3280 | ||
3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3282 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3283 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3284 | { | |
3285 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
3286 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3287 | if (arg2 == NULL) { | |
3288 | SWIG_null_ref("wxBitmap"); | |
3289 | } | |
3290 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
3291 | } |
3292 | { | |
3293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3294 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
3295 | ||
3296 | wxPyEndAllowThreads(__tstate); | |
3297 | if (PyErr_Occurred()) SWIG_fail; | |
3298 | } | |
3299 | Py_INCREF(Py_None); resultobj = Py_None; | |
3300 | return resultobj; | |
3301 | fail: | |
3302 | return NULL; | |
3303 | } | |
3304 | ||
3305 | ||
c32bde28 | 3306 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3307 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3308 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3309 | int arg2 ; | |
3310 | int arg3 ; | |
3311 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3312 | PyObject * obj1 = 0 ; |
3313 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3314 | char *kwnames[] = { |
3315 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3316 | }; | |
3317 | ||
994141e6 | 3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
3319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3321 | { | |
32fe5131 | 3322 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3323 | if (SWIG_arg_fail(2)) SWIG_fail; |
3324 | } | |
3325 | { | |
32fe5131 | 3326 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
3327 | if (SWIG_arg_fail(3)) SWIG_fail; |
3328 | } | |
d14a1e28 RD |
3329 | { |
3330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3331 | (arg1)->SetMargins(arg2,arg3); | |
3332 | ||
3333 | wxPyEndAllowThreads(__tstate); | |
3334 | if (PyErr_Occurred()) SWIG_fail; | |
3335 | } | |
3336 | Py_INCREF(Py_None); resultobj = Py_None; | |
3337 | return resultobj; | |
3338 | fail: | |
3339 | return NULL; | |
3340 | } | |
3341 | ||
3342 | ||
c32bde28 | 3343 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3344 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3345 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3346 | int result; | |
3347 | PyObject * obj0 = 0 ; | |
3348 | char *kwnames[] = { | |
3349 | (char *) "self", NULL | |
3350 | }; | |
3351 | ||
3352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3355 | { |
3356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3357 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
3358 | ||
3359 | wxPyEndAllowThreads(__tstate); | |
3360 | if (PyErr_Occurred()) SWIG_fail; | |
3361 | } | |
093d3ff1 | 3362 | { |
32fe5131 | 3363 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3364 | } |
d14a1e28 RD |
3365 | return resultobj; |
3366 | fail: | |
3367 | return NULL; | |
3368 | } | |
3369 | ||
3370 | ||
c32bde28 | 3371 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3372 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3373 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; |
3374 | int result; | |
3375 | PyObject * obj0 = 0 ; | |
3376 | char *kwnames[] = { | |
3377 | (char *) "self", NULL | |
3378 | }; | |
3379 | ||
3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_EXCEPTION | 0); |
3382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3383 | { |
3384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3385 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
3386 | ||
3387 | wxPyEndAllowThreads(__tstate); | |
3388 | if (PyErr_Occurred()) SWIG_fail; | |
3389 | } | |
093d3ff1 | 3390 | { |
32fe5131 | 3391 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 3392 | } |
d14a1e28 RD |
3393 | return resultobj; |
3394 | fail: | |
3395 | return NULL; | |
3396 | } | |
3397 | ||
3398 | ||
c32bde28 | 3399 | static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3400 | PyObject *obj; |
3401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3402 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
3403 | Py_INCREF(obj); | |
3404 | return Py_BuildValue((char *)""); | |
3405 | } | |
c32bde28 | 3406 | static int _wrap_CheckBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
3407 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
3408 | return 1; | |
3409 | } | |
3410 | ||
3411 | ||
093d3ff1 | 3412 | static PyObject *_wrap_CheckBoxNameStr_get(void) { |
32fe5131 | 3413 | PyObject *pyobj = NULL; |
b2dc1044 RD |
3414 | |
3415 | { | |
3416 | #if wxUSE_UNICODE | |
3417 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3418 | #else | |
3419 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
3420 | #endif | |
3421 | } | |
3422 | return pyobj; | |
3423 | } | |
3424 | ||
3425 | ||
c32bde28 | 3426 | static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3427 | PyObject *resultobj = NULL; |
d14a1e28 | 3428 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
3429 | int arg2 = (int) -1 ; |
3430 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3431 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
3432 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3433 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3434 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3435 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3436 | long arg6 = (long) 0 ; | |
3437 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3438 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3439 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
3440 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3441 | wxCheckBox *result; | |
ae8162c8 | 3442 | bool temp3 = false ; |
d14a1e28 RD |
3443 | wxPoint temp4 ; |
3444 | wxSize temp5 ; | |
ae8162c8 | 3445 | bool temp8 = false ; |
d14a1e28 | 3446 | PyObject * obj0 = 0 ; |
994141e6 | 3447 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3448 | PyObject * obj2 = 0 ; |
3449 | PyObject * obj3 = 0 ; | |
3450 | PyObject * obj4 = 0 ; | |
994141e6 | 3451 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3452 | PyObject * obj6 = 0 ; |
3453 | PyObject * obj7 = 0 ; | |
3454 | char *kwnames[] = { | |
3455 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3456 | }; | |
3457 | ||
248ed943 | 3458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 3461 | if (obj1) { |
093d3ff1 | 3462 | { |
32fe5131 | 3463 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3464 | if (SWIG_arg_fail(2)) SWIG_fail; |
3465 | } | |
248ed943 RD |
3466 | } |
3467 | if (obj2) { | |
3468 | { | |
3469 | arg3 = wxString_in_helper(obj2); | |
3470 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 3471 | temp3 = true; |
248ed943 | 3472 | } |
d14a1e28 RD |
3473 | } |
3474 | if (obj3) { | |
3475 | { | |
3476 | arg4 = &temp4; | |
3477 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3478 | } | |
3479 | } | |
3480 | if (obj4) { | |
3481 | { | |
3482 | arg5 = &temp5; | |
3483 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3484 | } | |
3485 | } | |
994141e6 | 3486 | if (obj5) { |
093d3ff1 | 3487 | { |
32fe5131 | 3488 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
3489 | if (SWIG_arg_fail(6)) SWIG_fail; |
3490 | } | |
994141e6 | 3491 | } |
d14a1e28 | 3492 | if (obj6) { |
093d3ff1 RD |
3493 | { |
3494 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3495 | if (SWIG_arg_fail(7)) SWIG_fail; | |
3496 | if (arg7 == NULL) { | |
3497 | SWIG_null_ref("wxValidator"); | |
3498 | } | |
3499 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
3500 | } |
3501 | } | |
3502 | if (obj7) { | |
3503 | { | |
3504 | arg8 = wxString_in_helper(obj7); | |
3505 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 3506 | temp8 = true; |
d14a1e28 RD |
3507 | } |
3508 | } | |
3509 | { | |
e3b71cb8 | 3510 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3512 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3513 | ||
3514 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3515 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3516 | } |
15afbcd0 | 3517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
3518 | { |
3519 | if (temp3) | |
3520 | delete arg3; | |
3521 | } | |
3522 | { | |
3523 | if (temp8) | |
3524 | delete arg8; | |
3525 | } | |
3526 | return resultobj; | |
3527 | fail: | |
3528 | { | |
3529 | if (temp3) | |
3530 | delete arg3; | |
3531 | } | |
3532 | { | |
3533 | if (temp8) | |
3534 | delete arg8; | |
3535 | } | |
3536 | return NULL; | |
3537 | } | |
3538 | ||
3539 | ||
c32bde28 | 3540 | static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3541 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3542 | wxCheckBox *result; |
3543 | char *kwnames[] = { | |
3544 | NULL | |
3545 | }; | |
3546 | ||
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
3548 | { | |
e3b71cb8 | 3549 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3551 | result = (wxCheckBox *)new wxCheckBox(); | |
3552 | ||
3553 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3554 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3555 | } |
15afbcd0 | 3556 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
3557 | return resultobj; |
3558 | fail: | |
3559 | return NULL; | |
3560 | } | |
3561 | ||
3562 | ||
c32bde28 | 3563 | static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3564 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3565 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3566 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3567 | int arg3 = (int) -1 ; |
3568 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3569 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
3570 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3571 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3572 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3573 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3574 | long arg7 = (long) 0 ; | |
3575 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3576 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3577 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
3578 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3579 | bool result; | |
ae8162c8 | 3580 | bool temp4 = false ; |
d14a1e28 RD |
3581 | wxPoint temp5 ; |
3582 | wxSize temp6 ; | |
ae8162c8 | 3583 | bool temp9 = false ; |
d14a1e28 RD |
3584 | PyObject * obj0 = 0 ; |
3585 | PyObject * obj1 = 0 ; | |
994141e6 | 3586 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3587 | PyObject * obj3 = 0 ; |
3588 | PyObject * obj4 = 0 ; | |
3589 | PyObject * obj5 = 0 ; | |
994141e6 | 3590 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3591 | PyObject * obj7 = 0 ; |
3592 | PyObject * obj8 = 0 ; | |
3593 | char *kwnames[] = { | |
3594 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3595 | }; | |
3596 | ||
248ed943 | 3597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
3598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3600 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
3601 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 3602 | if (obj2) { |
093d3ff1 | 3603 | { |
32fe5131 | 3604 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
3605 | if (SWIG_arg_fail(3)) SWIG_fail; |
3606 | } | |
248ed943 RD |
3607 | } |
3608 | if (obj3) { | |
3609 | { | |
3610 | arg4 = wxString_in_helper(obj3); | |
3611 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 3612 | temp4 = true; |
248ed943 | 3613 | } |
d14a1e28 RD |
3614 | } |
3615 | if (obj4) { | |
3616 | { | |
3617 | arg5 = &temp5; | |
3618 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3619 | } | |
3620 | } | |
3621 | if (obj5) { | |
3622 | { | |
3623 | arg6 = &temp6; | |
3624 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3625 | } | |
3626 | } | |
994141e6 | 3627 | if (obj6) { |
093d3ff1 | 3628 | { |
32fe5131 | 3629 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
3630 | if (SWIG_arg_fail(7)) SWIG_fail; |
3631 | } | |
994141e6 | 3632 | } |
d14a1e28 | 3633 | if (obj7) { |
093d3ff1 RD |
3634 | { |
3635 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
3636 | if (SWIG_arg_fail(8)) SWIG_fail; | |
3637 | if (arg8 == NULL) { | |
3638 | SWIG_null_ref("wxValidator"); | |
3639 | } | |
3640 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
3641 | } |
3642 | } | |
3643 | if (obj8) { | |
3644 | { | |
3645 | arg9 = wxString_in_helper(obj8); | |
3646 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 3647 | temp9 = true; |
d14a1e28 RD |
3648 | } |
3649 | } | |
3650 | { | |
3651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3652 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3653 | ||
3654 | wxPyEndAllowThreads(__tstate); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
3656 | } | |
4f89f6a3 RD |
3657 | { |
3658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3659 | } | |
d14a1e28 RD |
3660 | { |
3661 | if (temp4) | |
3662 | delete arg4; | |
3663 | } | |
3664 | { | |
3665 | if (temp9) | |
3666 | delete arg9; | |
3667 | } | |
3668 | return resultobj; | |
3669 | fail: | |
3670 | { | |
3671 | if (temp4) | |
3672 | delete arg4; | |
3673 | } | |
3674 | { | |
3675 | if (temp9) | |
3676 | delete arg9; | |
3677 | } | |
3678 | return NULL; | |
3679 | } | |
3680 | ||
3681 | ||
c32bde28 | 3682 | static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3683 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3684 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3685 | bool result; | |
3686 | PyObject * obj0 = 0 ; | |
3687 | char *kwnames[] = { | |
3688 | (char *) "self", NULL | |
3689 | }; | |
3690 | ||
3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3694 | { |
3695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3696 | result = (bool)(arg1)->GetValue(); | |
3697 | ||
3698 | wxPyEndAllowThreads(__tstate); | |
3699 | if (PyErr_Occurred()) SWIG_fail; | |
3700 | } | |
4f89f6a3 RD |
3701 | { |
3702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3703 | } | |
d14a1e28 RD |
3704 | return resultobj; |
3705 | fail: | |
3706 | return NULL; | |
3707 | } | |
3708 | ||
3709 | ||
c32bde28 | 3710 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3711 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3712 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3713 | bool result; | |
3714 | PyObject * obj0 = 0 ; | |
3715 | char *kwnames[] = { | |
3716 | (char *) "self", NULL | |
3717 | }; | |
3718 | ||
3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3720 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3721 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3722 | { |
3723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3724 | result = (bool)(arg1)->IsChecked(); | |
3725 | ||
3726 | wxPyEndAllowThreads(__tstate); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
4f89f6a3 RD |
3729 | { |
3730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3731 | } | |
d14a1e28 RD |
3732 | return resultobj; |
3733 | fail: | |
3734 | return NULL; | |
3735 | } | |
3736 | ||
3737 | ||
c32bde28 | 3738 | static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3739 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3740 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3741 | bool arg2 ; | |
3742 | PyObject * obj0 = 0 ; | |
3743 | PyObject * obj1 = 0 ; | |
3744 | char *kwnames[] = { | |
3745 | (char *) "self",(char *) "state", NULL | |
3746 | }; | |
3747 | ||
3748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
3749 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3750 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3751 | { | |
32fe5131 | 3752 | arg2 = static_cast<bool const >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
3753 | if (SWIG_arg_fail(2)) SWIG_fail; |
3754 | } | |
d14a1e28 RD |
3755 | { |
3756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3757 | (arg1)->SetValue(arg2); | |
3758 | ||
3759 | wxPyEndAllowThreads(__tstate); | |
3760 | if (PyErr_Occurred()) SWIG_fail; | |
3761 | } | |
3762 | Py_INCREF(Py_None); resultobj = Py_None; | |
3763 | return resultobj; | |
3764 | fail: | |
3765 | return NULL; | |
3766 | } | |
3767 | ||
3768 | ||
c32bde28 | 3769 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3770 | PyObject *resultobj = NULL; |
d14a1e28 | 3771 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
093d3ff1 | 3772 | wxCheckBoxState result; |
d14a1e28 RD |
3773 | PyObject * obj0 = 0 ; |
3774 | char *kwnames[] = { | |
3775 | (char *) "self", NULL | |
3776 | }; | |
3777 | ||
3778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3781 | { |
3782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 3783 | result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue(); |
d14a1e28 RD |
3784 | |
3785 | wxPyEndAllowThreads(__tstate); | |
3786 | if (PyErr_Occurred()) SWIG_fail; | |
3787 | } | |
093d3ff1 | 3788 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
3789 | return resultobj; |
3790 | fail: | |
3791 | return NULL; | |
3792 | } | |
3793 | ||
3794 | ||
c32bde28 | 3795 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3796 | PyObject *resultobj = NULL; |
d14a1e28 | 3797 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
093d3ff1 | 3798 | wxCheckBoxState arg2 ; |
d14a1e28 | 3799 | PyObject * obj0 = 0 ; |
994141e6 | 3800 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3801 | char *kwnames[] = { |
3802 | (char *) "self",(char *) "state", NULL | |
3803 | }; | |
3804 | ||
994141e6 | 3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
3806 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3807 | if (SWIG_arg_fail(1)) SWIG_fail; | |
3808 | { | |
32fe5131 | 3809 | arg2 = static_cast<wxCheckBoxState >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3810 | if (SWIG_arg_fail(2)) SWIG_fail; |
3811 | } | |
d14a1e28 RD |
3812 | { |
3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 3814 | (arg1)->Set3StateValue(arg2); |
d14a1e28 RD |
3815 | |
3816 | wxPyEndAllowThreads(__tstate); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
3819 | Py_INCREF(Py_None); resultobj = Py_None; | |
3820 | return resultobj; | |
3821 | fail: | |
3822 | return NULL; | |
3823 | } | |
3824 | ||
3825 | ||
c32bde28 | 3826 | static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3827 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3828 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3829 | bool result; | |
3830 | PyObject * obj0 = 0 ; | |
3831 | char *kwnames[] = { | |
3832 | (char *) "self", NULL | |
3833 | }; | |
3834 | ||
3835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3838 | { |
3839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3840 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
3841 | ||
3842 | wxPyEndAllowThreads(__tstate); | |
3843 | if (PyErr_Occurred()) SWIG_fail; | |
3844 | } | |
4f89f6a3 RD |
3845 | { |
3846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3847 | } | |
d14a1e28 RD |
3848 | return resultobj; |
3849 | fail: | |
3850 | return NULL; | |
3851 | } | |
3852 | ||
3853 | ||
c32bde28 | 3854 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3855 | PyObject *resultobj = NULL; |
d14a1e28 RD |
3856 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; |
3857 | bool result; | |
3858 | PyObject * obj0 = 0 ; | |
3859 | char *kwnames[] = { | |
3860 | (char *) "self", NULL | |
3861 | }; | |
3862 | ||
3863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
3864 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckBox, SWIG_POINTER_EXCEPTION | 0); |
3865 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
3866 | { |
3867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3868 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
3869 | ||
3870 | wxPyEndAllowThreads(__tstate); | |
3871 | if (PyErr_Occurred()) SWIG_fail; | |
3872 | } | |
4f89f6a3 RD |
3873 | { |
3874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3875 | } | |
d14a1e28 RD |
3876 | return resultobj; |
3877 | fail: | |
3878 | return NULL; | |
3879 | } | |
3880 | ||
3881 | ||
c32bde28 | 3882 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3883 | PyObject *resultobj = NULL; |
093d3ff1 | 3884 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
3885 | wxVisualAttributes result; |
3886 | PyObject * obj0 = 0 ; | |
3887 | char *kwnames[] = { | |
3888 | (char *) "variant", NULL | |
3889 | }; | |
3890 | ||
3891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3892 | if (obj0) { | |
093d3ff1 | 3893 | { |
32fe5131 | 3894 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
3895 | if (SWIG_arg_fail(1)) SWIG_fail; |
3896 | } | |
22bfe96c RD |
3897 | } |
3898 | { | |
110da5b0 | 3899 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 3900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 3901 | result = wxCheckBox::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
3902 | |
3903 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3904 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3905 | } |
3906 | { | |
3907 | wxVisualAttributes * resultptr; | |
32fe5131 | 3908 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
3909 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
3910 | } | |
3911 | return resultobj; | |
3912 | fail: | |
3913 | return NULL; | |
3914 | } | |
3915 | ||
3916 | ||
c32bde28 | 3917 | static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3918 | PyObject *obj; |
3919 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3920 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
3921 | Py_INCREF(obj); | |
3922 | return Py_BuildValue((char *)""); | |
3923 | } | |
c32bde28 | 3924 | static int _wrap_ChoiceNameStr_set(PyObject *) { |
b2dc1044 RD |
3925 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
3926 | return 1; | |
3927 | } | |
3928 | ||
3929 | ||
093d3ff1 | 3930 | static PyObject *_wrap_ChoiceNameStr_get(void) { |
32fe5131 | 3931 | PyObject *pyobj = NULL; |
b2dc1044 RD |
3932 | |
3933 | { | |
3934 | #if wxUSE_UNICODE | |
3935 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3936 | #else | |
3937 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
3938 | #endif | |
3939 | } | |
3940 | return pyobj; | |
3941 | } | |
3942 | ||
3943 | ||
c32bde28 | 3944 | static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 3945 | PyObject *resultobj = NULL; |
d14a1e28 | 3946 | wxWindow *arg1 = (wxWindow *) 0 ; |
a95a7133 | 3947 | int arg2 = (int) -1 ; |
d14a1e28 RD |
3948 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3949 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3950 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3951 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
3952 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
3953 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
3954 | long arg6 = (long) 0 ; | |
3955 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3956 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3957 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
3958 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
3959 | wxChoice *result; |
3960 | wxPoint temp3 ; | |
3961 | wxSize temp4 ; | |
ae8162c8 RD |
3962 | bool temp5 = false ; |
3963 | bool temp8 = false ; | |
d14a1e28 | 3964 | PyObject * obj0 = 0 ; |
994141e6 | 3965 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3966 | PyObject * obj2 = 0 ; |
3967 | PyObject * obj3 = 0 ; | |
3968 | PyObject * obj4 = 0 ; | |
994141e6 | 3969 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3970 | PyObject * obj6 = 0 ; |
3971 | PyObject * obj7 = 0 ; | |
3972 | char *kwnames[] = { | |
3973 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3974 | }; | |
3975 | ||
a95a7133 | 3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
3977 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
3978 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 3979 | if (obj1) { |
093d3ff1 | 3980 | { |
32fe5131 | 3981 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
3982 | if (SWIG_arg_fail(2)) SWIG_fail; |
3983 | } | |
a95a7133 | 3984 | } |
d14a1e28 RD |
3985 | if (obj2) { |
3986 | { | |
3987 | arg3 = &temp3; | |
3988 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3989 | } | |
3990 | } | |
3991 | if (obj3) { | |
3992 | { | |
3993 | arg4 = &temp4; | |
3994 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3995 | } | |
3996 | } | |
3997 | if (obj4) { | |
3998 | { | |
4d5c3d91 RD |
3999 | if (! PySequence_Check(obj4)) { |
4000 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4001 | SWIG_fail; | |
4002 | } | |
4003 | arg5 = new wxArrayString; | |
ae8162c8 | 4004 | temp5 = true; |
4d5c3d91 RD |
4005 | int i, len=PySequence_Length(obj4); |
4006 | for (i=0; i<len; i++) { | |
4007 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 4008 | wxString* s = wxString_in_helper(item); |
74a57fcd | 4009 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4010 | arg5->Add(*s); |
4011 | delete s; | |
4d5c3d91 | 4012 | Py_DECREF(item); |
4d5c3d91 | 4013 | } |
d14a1e28 RD |
4014 | } |
4015 | } | |
994141e6 | 4016 | if (obj5) { |
093d3ff1 | 4017 | { |
32fe5131 | 4018 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
4019 | if (SWIG_arg_fail(6)) SWIG_fail; |
4020 | } | |
994141e6 | 4021 | } |
d14a1e28 | 4022 | if (obj6) { |
093d3ff1 RD |
4023 | { |
4024 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4025 | if (SWIG_arg_fail(7)) SWIG_fail; | |
4026 | if (arg7 == NULL) { | |
4027 | SWIG_null_ref("wxValidator"); | |
4028 | } | |
4029 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
4030 | } |
4031 | } | |
4032 | if (obj7) { | |
4033 | { | |
4d5c3d91 RD |
4034 | arg8 = wxString_in_helper(obj7); |
4035 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 4036 | temp8 = true; |
d14a1e28 RD |
4037 | } |
4038 | } | |
4039 | { | |
e3b71cb8 | 4040 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 4042 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
4043 | |
4044 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4045 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4046 | } |
15afbcd0 | 4047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 4048 | { |
3adfb63b | 4049 | if (temp5) delete arg5; |
d14a1e28 RD |
4050 | } |
4051 | { | |
4052 | if (temp8) | |
4d5c3d91 | 4053 | delete arg8; |
d14a1e28 RD |
4054 | } |
4055 | return resultobj; | |
4056 | fail: | |
4057 | { | |
3adfb63b | 4058 | if (temp5) delete arg5; |
d14a1e28 RD |
4059 | } |
4060 | { | |
4061 | if (temp8) | |
4d5c3d91 | 4062 | delete arg8; |
d14a1e28 RD |
4063 | } |
4064 | return NULL; | |
4065 | } | |
4066 | ||
4067 | ||
c32bde28 | 4068 | static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4069 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4070 | wxChoice *result; |
4071 | char *kwnames[] = { | |
4072 | NULL | |
4073 | }; | |
4074 | ||
4075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
4076 | { | |
e3b71cb8 | 4077 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4079 | result = (wxChoice *)new wxChoice(); | |
4080 | ||
4081 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4082 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4083 | } |
15afbcd0 | 4084 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
4085 | return resultobj; |
4086 | fail: | |
4087 | return NULL; | |
4088 | } | |
4089 | ||
4090 | ||
c32bde28 | 4091 | static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4092 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4093 | wxChoice *arg1 = (wxChoice *) 0 ; |
4094 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 4095 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4096 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4097 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4098 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4099 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
4100 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
4101 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
4102 | long arg7 = (long) 0 ; | |
4103 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4104 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4105 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
4106 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
4107 | bool result; |
4108 | wxPoint temp4 ; | |
4109 | wxSize temp5 ; | |
ae8162c8 RD |
4110 | bool temp6 = false ; |
4111 | bool temp9 = false ; | |
d14a1e28 RD |
4112 | PyObject * obj0 = 0 ; |
4113 | PyObject * obj1 = 0 ; | |
994141e6 | 4114 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4115 | PyObject * obj3 = 0 ; |
4116 | PyObject * obj4 = 0 ; | |
4117 | PyObject * obj5 = 0 ; | |
994141e6 | 4118 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4119 | PyObject * obj7 = 0 ; |
4120 | PyObject * obj8 = 0 ; | |
4121 | char *kwnames[] = { | |
4122 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4123 | }; | |
4124 | ||
a95a7133 | 4125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
4126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); |
4127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4128 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4129 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a95a7133 | 4130 | if (obj2) { |
093d3ff1 | 4131 | { |
32fe5131 | 4132 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
4133 | if (SWIG_arg_fail(3)) SWIG_fail; |
4134 | } | |
a95a7133 | 4135 | } |
d14a1e28 RD |
4136 | if (obj3) { |
4137 | { | |
4138 | arg4 = &temp4; | |
4139 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4140 | } | |
4141 | } | |
4142 | if (obj4) { | |
4143 | { | |
4144 | arg5 = &temp5; | |
4145 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4146 | } | |
4147 | } | |
4148 | if (obj5) { | |
4149 | { | |
4d5c3d91 RD |
4150 | if (! PySequence_Check(obj5)) { |
4151 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4152 | SWIG_fail; | |
4153 | } | |
4154 | arg6 = new wxArrayString; | |
ae8162c8 | 4155 | temp6 = true; |
4d5c3d91 RD |
4156 | int i, len=PySequence_Length(obj5); |
4157 | for (i=0; i<len; i++) { | |
4158 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 4159 | wxString* s = wxString_in_helper(item); |
74a57fcd | 4160 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4161 | arg6->Add(*s); |
4162 | delete s; | |
4d5c3d91 | 4163 | Py_DECREF(item); |
4d5c3d91 | 4164 | } |
d14a1e28 RD |
4165 | } |
4166 | } | |
994141e6 | 4167 | if (obj6) { |
093d3ff1 | 4168 | { |
32fe5131 | 4169 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
4170 | if (SWIG_arg_fail(7)) SWIG_fail; |
4171 | } | |
994141e6 | 4172 | } |
d14a1e28 | 4173 | if (obj7) { |
093d3ff1 RD |
4174 | { |
4175 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4176 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4177 | if (arg8 == NULL) { | |
4178 | SWIG_null_ref("wxValidator"); | |
4179 | } | |
4180 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
4181 | } |
4182 | } | |
4183 | if (obj8) { | |
4184 | { | |
4d5c3d91 RD |
4185 | arg9 = wxString_in_helper(obj8); |
4186 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4187 | temp9 = true; |
d14a1e28 RD |
4188 | } |
4189 | } | |
4190 | { | |
4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4192 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
4193 | |
4194 | wxPyEndAllowThreads(__tstate); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | } | |
4f89f6a3 RD |
4197 | { |
4198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4199 | } | |
d14a1e28 | 4200 | { |
3adfb63b | 4201 | if (temp6) delete arg6; |
d14a1e28 RD |
4202 | } |
4203 | { | |
4204 | if (temp9) | |
4d5c3d91 | 4205 | delete arg9; |
d14a1e28 RD |
4206 | } |
4207 | return resultobj; | |
4208 | fail: | |
4209 | { | |
3adfb63b | 4210 | if (temp6) delete arg6; |
d14a1e28 RD |
4211 | } |
4212 | { | |
4213 | if (temp9) | |
4d5c3d91 | 4214 | delete arg9; |
d14a1e28 RD |
4215 | } |
4216 | return NULL; | |
4217 | } | |
4218 | ||
4219 | ||
943e8dfd | 4220 | static PyObject *_wrap_Choice_GetCurrentSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4221 | PyObject *resultobj = NULL; |
943e8dfd RD |
4222 | wxChoice *arg1 = (wxChoice *) 0 ; |
4223 | int result; | |
4224 | PyObject * obj0 = 0 ; | |
4225 | char *kwnames[] = { | |
4226 | (char *) "self", NULL | |
4227 | }; | |
4228 | ||
4229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetCurrentSelection",kwnames,&obj0)) goto fail; | |
4230 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoice, SWIG_POINTER_EXCEPTION | 0); | |
4231 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4232 | { | |
4233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4234 | result = (int)((wxChoice const *)arg1)->GetCurrentSelection(); | |
4235 | ||
4236 | wxPyEndAllowThreads(__tstate); | |
4237 | if (PyErr_Occurred()) SWIG_fail; | |
4238 | } | |
4239 | { | |
32fe5131 | 4240 | resultobj = SWIG_From_int(static_cast<int >(result)); |
943e8dfd RD |
4241 | } |
4242 | return resultobj; | |
4243 | fail: | |
4244 | return NULL; | |
4245 | } | |
4246 | ||
4247 | ||
c32bde28 | 4248 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4249 | PyObject *resultobj = NULL; |
093d3ff1 | 4250 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
4251 | wxVisualAttributes result; |
4252 | PyObject * obj0 = 0 ; | |
4253 | char *kwnames[] = { | |
4254 | (char *) "variant", NULL | |
4255 | }; | |
4256 | ||
4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4258 | if (obj0) { | |
093d3ff1 | 4259 | { |
32fe5131 | 4260 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
4261 | if (SWIG_arg_fail(1)) SWIG_fail; |
4262 | } | |
22bfe96c RD |
4263 | } |
4264 | { | |
110da5b0 | 4265 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 4266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 4267 | result = wxChoice::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
4268 | |
4269 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4270 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4271 | } |
4272 | { | |
4273 | wxVisualAttributes * resultptr; | |
32fe5131 | 4274 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
4275 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4276 | } | |
4277 | return resultobj; | |
4278 | fail: | |
4279 | return NULL; | |
4280 | } | |
4281 | ||
4282 | ||
c32bde28 | 4283 | static PyObject * Choice_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4284 | PyObject *obj; |
4285 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4286 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
4287 | Py_INCREF(obj); | |
4288 | return Py_BuildValue((char *)""); | |
4289 | } | |
c32bde28 | 4290 | static int _wrap_ComboBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
4291 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
4292 | return 1; | |
4293 | } | |
4294 | ||
4295 | ||
093d3ff1 | 4296 | static PyObject *_wrap_ComboBoxNameStr_get(void) { |
32fe5131 | 4297 | PyObject *pyobj = NULL; |
b2dc1044 RD |
4298 | |
4299 | { | |
4300 | #if wxUSE_UNICODE | |
4301 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4302 | #else | |
4303 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
4304 | #endif | |
4305 | } | |
4306 | return pyobj; | |
4307 | } | |
4308 | ||
4309 | ||
c32bde28 | 4310 | static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4311 | PyObject *resultobj = NULL; |
d14a1e28 | 4312 | wxWindow *arg1 = (wxWindow *) 0 ; |
a95a7133 | 4313 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4314 | wxString const &arg3_defvalue = wxPyEmptyString ; |
4315 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
4316 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4317 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4318 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4319 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
4320 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
4321 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
4322 | long arg7 = (long) 0 ; | |
4323 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4324 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4325 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
4326 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 4327 | wxComboBox *result; |
ae8162c8 | 4328 | bool temp3 = false ; |
d14a1e28 RD |
4329 | wxPoint temp4 ; |
4330 | wxSize temp5 ; | |
ae8162c8 RD |
4331 | bool temp6 = false ; |
4332 | bool temp9 = false ; | |
d14a1e28 | 4333 | PyObject * obj0 = 0 ; |
994141e6 | 4334 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4335 | PyObject * obj2 = 0 ; |
4336 | PyObject * obj3 = 0 ; | |
4337 | PyObject * obj4 = 0 ; | |
4338 | PyObject * obj5 = 0 ; | |
994141e6 | 4339 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4340 | PyObject * obj7 = 0 ; |
4341 | PyObject * obj8 = 0 ; | |
4342 | char *kwnames[] = { | |
4343 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4344 | }; | |
4345 | ||
a95a7133 | 4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
4347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
4348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
a95a7133 | 4349 | if (obj1) { |
093d3ff1 | 4350 | { |
32fe5131 | 4351 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4352 | if (SWIG_arg_fail(2)) SWIG_fail; |
4353 | } | |
a95a7133 | 4354 | } |
d14a1e28 RD |
4355 | if (obj2) { |
4356 | { | |
4357 | arg3 = wxString_in_helper(obj2); | |
4358 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 4359 | temp3 = true; |
d14a1e28 RD |
4360 | } |
4361 | } | |
4362 | if (obj3) { | |
4363 | { | |
4364 | arg4 = &temp4; | |
4365 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4366 | } | |
4367 | } | |
4368 | if (obj4) { | |
4369 | { | |
4370 | arg5 = &temp5; | |
4371 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4372 | } | |
4373 | } | |
4374 | if (obj5) { | |
4375 | { | |
4d5c3d91 RD |
4376 | if (! PySequence_Check(obj5)) { |
4377 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4378 | SWIG_fail; | |
4379 | } | |
4380 | arg6 = new wxArrayString; | |
ae8162c8 | 4381 | temp6 = true; |
4d5c3d91 RD |
4382 | int i, len=PySequence_Length(obj5); |
4383 | for (i=0; i<len; i++) { | |
4384 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 4385 | wxString* s = wxString_in_helper(item); |
74a57fcd | 4386 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4387 | arg6->Add(*s); |
4388 | delete s; | |
4d5c3d91 | 4389 | Py_DECREF(item); |
4d5c3d91 | 4390 | } |
d14a1e28 RD |
4391 | } |
4392 | } | |
994141e6 | 4393 | if (obj6) { |
093d3ff1 | 4394 | { |
32fe5131 | 4395 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
4396 | if (SWIG_arg_fail(7)) SWIG_fail; |
4397 | } | |
994141e6 | 4398 | } |
d14a1e28 | 4399 | if (obj7) { |
093d3ff1 RD |
4400 | { |
4401 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4402 | if (SWIG_arg_fail(8)) SWIG_fail; | |
4403 | if (arg8 == NULL) { | |
4404 | SWIG_null_ref("wxValidator"); | |
4405 | } | |
4406 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
4407 | } |
4408 | } | |
4409 | if (obj8) { | |
4410 | { | |
4d5c3d91 RD |
4411 | arg9 = wxString_in_helper(obj8); |
4412 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 4413 | temp9 = true; |
d14a1e28 RD |
4414 | } |
4415 | } | |
4416 | { | |
e3b71cb8 | 4417 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 4419 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
4420 | |
4421 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4422 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4423 | } |
15afbcd0 | 4424 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
4425 | { |
4426 | if (temp3) | |
4427 | delete arg3; | |
4428 | } | |
4429 | { | |
3adfb63b | 4430 | if (temp6) delete arg6; |
d14a1e28 RD |
4431 | } |
4432 | { | |
4433 | if (temp9) | |
4d5c3d91 | 4434 | delete arg9; |
d14a1e28 RD |
4435 | } |
4436 | return resultobj; | |
4437 | fail: | |
4438 | { | |
4439 | if (temp3) | |
4440 | delete arg3; | |
4441 | } | |
4442 | { | |
3adfb63b | 4443 | if (temp6) delete arg6; |
d14a1e28 RD |
4444 | } |
4445 | { | |
4446 | if (temp9) | |
4d5c3d91 | 4447 | delete arg9; |
d14a1e28 RD |
4448 | } |
4449 | return NULL; | |
4450 | } | |
4451 | ||
4452 | ||
c32bde28 | 4453 | static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4454 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4455 | wxComboBox *result; |
4456 | char *kwnames[] = { | |
4457 | NULL | |
4458 | }; | |
4459 | ||
4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
4461 | { | |
e3b71cb8 | 4462 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4464 | result = (wxComboBox *)new wxComboBox(); | |
4465 | ||
4466 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4467 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4468 | } |
15afbcd0 | 4469 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
4470 | return resultobj; |
4471 | fail: | |
4472 | return NULL; | |
4473 | } | |
4474 | ||
4475 | ||
c32bde28 | 4476 | static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4477 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4478 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4479 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 4480 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4481 | wxString const &arg4_defvalue = wxPyEmptyString ; |
4482 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4483 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4484 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4485 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4486 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
4487 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
4488 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
4489 | long arg8 = (long) 0 ; | |
4490 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4491 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 4492 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 4493 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 4494 | bool result; |
ae8162c8 | 4495 | bool temp4 = false ; |
d14a1e28 RD |
4496 | wxPoint temp5 ; |
4497 | wxSize temp6 ; | |
ae8162c8 RD |
4498 | bool temp7 = false ; |
4499 | bool temp10 = false ; | |
d14a1e28 RD |
4500 | PyObject * obj0 = 0 ; |
4501 | PyObject * obj1 = 0 ; | |
994141e6 | 4502 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4503 | PyObject * obj3 = 0 ; |
4504 | PyObject * obj4 = 0 ; | |
4505 | PyObject * obj5 = 0 ; | |
4506 | PyObject * obj6 = 0 ; | |
994141e6 | 4507 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
4508 | PyObject * obj8 = 0 ; |
4509 | PyObject * obj9 = 0 ; | |
4510 | char *kwnames[] = { | |
4511 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4512 | }; | |
4513 | ||
a95a7133 | 4514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
093d3ff1 RD |
4515 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4516 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4517 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
4518 | if (SWIG_arg_fail(2)) SWIG_fail; | |
a95a7133 | 4519 | if (obj2) { |
093d3ff1 | 4520 | { |
32fe5131 | 4521 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
4522 | if (SWIG_arg_fail(3)) SWIG_fail; |
4523 | } | |
a95a7133 | 4524 | } |
d14a1e28 RD |
4525 | if (obj3) { |
4526 | { | |
4527 | arg4 = wxString_in_helper(obj3); | |
4528 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4529 | temp4 = true; |
d14a1e28 RD |
4530 | } |
4531 | } | |
4532 | if (obj4) { | |
4533 | { | |
4534 | arg5 = &temp5; | |
4535 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4536 | } | |
4537 | } | |
4538 | if (obj5) { | |
4539 | { | |
4540 | arg6 = &temp6; | |
4541 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4542 | } | |
4543 | } | |
4544 | if (obj6) { | |
4545 | { | |
4d5c3d91 RD |
4546 | if (! PySequence_Check(obj6)) { |
4547 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4548 | SWIG_fail; | |
4549 | } | |
4550 | arg7 = new wxArrayString; | |
ae8162c8 | 4551 | temp7 = true; |
4d5c3d91 RD |
4552 | int i, len=PySequence_Length(obj6); |
4553 | for (i=0; i<len; i++) { | |
4554 | PyObject* item = PySequence_GetItem(obj6, i); | |
71237536 | 4555 | wxString* s = wxString_in_helper(item); |
74a57fcd | 4556 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
4557 | arg7->Add(*s); |
4558 | delete s; | |
4d5c3d91 | 4559 | Py_DECREF(item); |
4d5c3d91 | 4560 | } |
d14a1e28 RD |
4561 | } |
4562 | } | |
994141e6 | 4563 | if (obj7) { |
093d3ff1 | 4564 | { |
32fe5131 | 4565 | arg8 = static_cast<long >(SWIG_As_long(obj7)); |
093d3ff1 RD |
4566 | if (SWIG_arg_fail(8)) SWIG_fail; |
4567 | } | |
994141e6 | 4568 | } |
d14a1e28 | 4569 | if (obj8) { |
093d3ff1 RD |
4570 | { |
4571 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
4572 | if (SWIG_arg_fail(9)) SWIG_fail; | |
4573 | if (arg9 == NULL) { | |
4574 | SWIG_null_ref("wxValidator"); | |
4575 | } | |
4576 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
4577 | } |
4578 | } | |
4579 | if (obj9) { | |
4580 | { | |
4d5c3d91 RD |
4581 | arg10 = wxString_in_helper(obj9); |
4582 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 4583 | temp10 = true; |
d14a1e28 RD |
4584 | } |
4585 | } | |
4586 | { | |
4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 4588 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); |
d14a1e28 RD |
4589 | |
4590 | wxPyEndAllowThreads(__tstate); | |
4591 | if (PyErr_Occurred()) SWIG_fail; | |
4592 | } | |
4f89f6a3 RD |
4593 | { |
4594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4595 | } | |
d14a1e28 RD |
4596 | { |
4597 | if (temp4) | |
4598 | delete arg4; | |
4599 | } | |
4600 | { | |
3adfb63b | 4601 | if (temp7) delete arg7; |
d14a1e28 RD |
4602 | } |
4603 | { | |
4604 | if (temp10) | |
4d5c3d91 | 4605 | delete arg10; |
d14a1e28 RD |
4606 | } |
4607 | return resultobj; | |
4608 | fail: | |
4609 | { | |
4610 | if (temp4) | |
4611 | delete arg4; | |
4612 | } | |
4613 | { | |
3adfb63b | 4614 | if (temp7) delete arg7; |
d14a1e28 RD |
4615 | } |
4616 | { | |
4617 | if (temp10) | |
4d5c3d91 | 4618 | delete arg10; |
d14a1e28 RD |
4619 | } |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
c32bde28 | 4624 | static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4625 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4626 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4627 | wxString result; | |
4628 | PyObject * obj0 = 0 ; | |
4629 | char *kwnames[] = { | |
4630 | (char *) "self", NULL | |
4631 | }; | |
4632 | ||
4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4634 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4635 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4636 | { |
4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4638 | result = ((wxComboBox const *)arg1)->GetValue(); | |
4639 | ||
4640 | wxPyEndAllowThreads(__tstate); | |
4641 | if (PyErr_Occurred()) SWIG_fail; | |
4642 | } | |
4643 | { | |
4644 | #if wxUSE_UNICODE | |
4645 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4646 | #else | |
4647 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4648 | #endif | |
4649 | } | |
4650 | return resultobj; | |
4651 | fail: | |
4652 | return NULL; | |
4653 | } | |
4654 | ||
4655 | ||
c32bde28 | 4656 | static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4657 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4658 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4659 | wxString *arg2 = 0 ; | |
ae8162c8 | 4660 | bool temp2 = false ; |
d14a1e28 RD |
4661 | PyObject * obj0 = 0 ; |
4662 | PyObject * obj1 = 0 ; | |
4663 | char *kwnames[] = { | |
4664 | (char *) "self",(char *) "value", NULL | |
4665 | }; | |
4666 | ||
4667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
4668 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4669 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4670 | { |
4671 | arg2 = wxString_in_helper(obj1); | |
4672 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 4673 | temp2 = true; |
d14a1e28 RD |
4674 | } |
4675 | { | |
4676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4677 | (arg1)->SetValue((wxString const &)*arg2); | |
4678 | ||
4679 | wxPyEndAllowThreads(__tstate); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | } | |
4682 | Py_INCREF(Py_None); resultobj = Py_None; | |
4683 | { | |
4684 | if (temp2) | |
4685 | delete arg2; | |
4686 | } | |
4687 | return resultobj; | |
4688 | fail: | |
4689 | { | |
4690 | if (temp2) | |
4691 | delete arg2; | |
4692 | } | |
4693 | return NULL; | |
4694 | } | |
4695 | ||
4696 | ||
c32bde28 | 4697 | static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4698 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4699 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4700 | PyObject * obj0 = 0 ; | |
4701 | char *kwnames[] = { | |
4702 | (char *) "self", NULL | |
4703 | }; | |
4704 | ||
4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4706 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4707 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4708 | { |
4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4710 | (arg1)->Copy(); | |
4711 | ||
4712 | wxPyEndAllowThreads(__tstate); | |
4713 | if (PyErr_Occurred()) SWIG_fail; | |
4714 | } | |
4715 | Py_INCREF(Py_None); resultobj = Py_None; | |
4716 | return resultobj; | |
4717 | fail: | |
4718 | return NULL; | |
4719 | } | |
4720 | ||
4721 | ||
c32bde28 | 4722 | static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4723 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4724 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4725 | PyObject * obj0 = 0 ; | |
4726 | char *kwnames[] = { | |
4727 | (char *) "self", NULL | |
4728 | }; | |
4729 | ||
4730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4731 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4732 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4733 | { |
4734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4735 | (arg1)->Cut(); | |
4736 | ||
4737 | wxPyEndAllowThreads(__tstate); | |
4738 | if (PyErr_Occurred()) SWIG_fail; | |
4739 | } | |
4740 | Py_INCREF(Py_None); resultobj = Py_None; | |
4741 | return resultobj; | |
4742 | fail: | |
4743 | return NULL; | |
4744 | } | |
4745 | ||
4746 | ||
c32bde28 | 4747 | static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4748 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4749 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4750 | PyObject * obj0 = 0 ; | |
4751 | char *kwnames[] = { | |
4752 | (char *) "self", NULL | |
4753 | }; | |
4754 | ||
4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4758 | { |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | (arg1)->Paste(); | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | Py_INCREF(Py_None); resultobj = Py_None; | |
4766 | return resultobj; | |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
c32bde28 | 4772 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4773 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4774 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4775 | long arg2 ; | |
4776 | PyObject * obj0 = 0 ; | |
994141e6 | 4777 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4778 | char *kwnames[] = { |
4779 | (char *) "self",(char *) "pos", NULL | |
4780 | }; | |
4781 | ||
994141e6 | 4782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4783 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4784 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4785 | { | |
32fe5131 | 4786 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
4787 | if (SWIG_arg_fail(2)) SWIG_fail; |
4788 | } | |
d14a1e28 RD |
4789 | { |
4790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4791 | (arg1)->SetInsertionPoint(arg2); | |
4792 | ||
4793 | wxPyEndAllowThreads(__tstate); | |
4794 | if (PyErr_Occurred()) SWIG_fail; | |
4795 | } | |
4796 | Py_INCREF(Py_None); resultobj = Py_None; | |
4797 | return resultobj; | |
4798 | fail: | |
4799 | return NULL; | |
4800 | } | |
4801 | ||
4802 | ||
c32bde28 | 4803 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4804 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4805 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4806 | long result; | |
4807 | PyObject * obj0 = 0 ; | |
4808 | char *kwnames[] = { | |
4809 | (char *) "self", NULL | |
4810 | }; | |
4811 | ||
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4815 | { |
4816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4817 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
4818 | ||
4819 | wxPyEndAllowThreads(__tstate); | |
4820 | if (PyErr_Occurred()) SWIG_fail; | |
4821 | } | |
093d3ff1 | 4822 | { |
32fe5131 | 4823 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 4824 | } |
d14a1e28 RD |
4825 | return resultobj; |
4826 | fail: | |
4827 | return NULL; | |
4828 | } | |
4829 | ||
4830 | ||
c32bde28 | 4831 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4832 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4833 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4834 | long result; | |
4835 | PyObject * obj0 = 0 ; | |
4836 | char *kwnames[] = { | |
4837 | (char *) "self", NULL | |
4838 | }; | |
4839 | ||
4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
4841 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4842 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
4843 | { |
4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4845 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
4846 | ||
4847 | wxPyEndAllowThreads(__tstate); | |
4848 | if (PyErr_Occurred()) SWIG_fail; | |
4849 | } | |
093d3ff1 | 4850 | { |
32fe5131 | 4851 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 4852 | } |
d14a1e28 RD |
4853 | return resultobj; |
4854 | fail: | |
4855 | return NULL; | |
4856 | } | |
4857 | ||
4858 | ||
c32bde28 | 4859 | static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4860 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4861 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4862 | long arg2 ; | |
4863 | long arg3 ; | |
4864 | wxString *arg4 = 0 ; | |
ae8162c8 | 4865 | bool temp4 = false ; |
d14a1e28 | 4866 | PyObject * obj0 = 0 ; |
994141e6 RD |
4867 | PyObject * obj1 = 0 ; |
4868 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4869 | PyObject * obj3 = 0 ; |
4870 | char *kwnames[] = { | |
4871 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
4872 | }; | |
4873 | ||
994141e6 | 4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
4875 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4876 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4877 | { | |
32fe5131 | 4878 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
4879 | if (SWIG_arg_fail(2)) SWIG_fail; |
4880 | } | |
4881 | { | |
32fe5131 | 4882 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
4883 | if (SWIG_arg_fail(3)) SWIG_fail; |
4884 | } | |
d14a1e28 RD |
4885 | { |
4886 | arg4 = wxString_in_helper(obj3); | |
4887 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 4888 | temp4 = true; |
d14a1e28 RD |
4889 | } |
4890 | { | |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4892 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
4893 | ||
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
4896 | } | |
4897 | Py_INCREF(Py_None); resultobj = Py_None; | |
4898 | { | |
4899 | if (temp4) | |
4900 | delete arg4; | |
4901 | } | |
4902 | return resultobj; | |
4903 | fail: | |
4904 | { | |
4905 | if (temp4) | |
4906 | delete arg4; | |
4907 | } | |
4908 | return NULL; | |
4909 | } | |
4910 | ||
4911 | ||
c32bde28 | 4912 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4913 | PyObject *resultobj = NULL; |
fd3f2efe RD |
4914 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4915 | int arg2 ; | |
4916 | PyObject * obj0 = 0 ; | |
994141e6 | 4917 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
4918 | char *kwnames[] = { |
4919 | (char *) "self",(char *) "n", NULL | |
4920 | }; | |
4921 | ||
994141e6 | 4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
4923 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4924 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4925 | { | |
32fe5131 | 4926 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
4927 | if (SWIG_arg_fail(2)) SWIG_fail; |
4928 | } | |
fd3f2efe RD |
4929 | { |
4930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4931 | (arg1)->SetSelection(arg2); | |
4932 | ||
4933 | wxPyEndAllowThreads(__tstate); | |
4934 | if (PyErr_Occurred()) SWIG_fail; | |
4935 | } | |
4936 | Py_INCREF(Py_None); resultobj = Py_None; | |
4937 | return resultobj; | |
4938 | fail: | |
4939 | return NULL; | |
4940 | } | |
4941 | ||
4942 | ||
c32bde28 | 4943 | static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4944 | PyObject *resultobj = NULL; |
d14a1e28 RD |
4945 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4946 | long arg2 ; | |
4947 | long arg3 ; | |
4948 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4949 | PyObject * obj1 = 0 ; |
4950 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4951 | char *kwnames[] = { |
4952 | (char *) "self",(char *) "from",(char *) "to", NULL | |
4953 | }; | |
4954 | ||
994141e6 | 4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
4956 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
4957 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4958 | { | |
32fe5131 | 4959 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
4960 | if (SWIG_arg_fail(2)) SWIG_fail; |
4961 | } | |
4962 | { | |
32fe5131 | 4963 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
4964 | if (SWIG_arg_fail(3)) SWIG_fail; |
4965 | } | |
d14a1e28 RD |
4966 | { |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | (arg1)->SetSelection(arg2,arg3); | |
4969 | ||
4970 | wxPyEndAllowThreads(__tstate); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
4973 | Py_INCREF(Py_None); resultobj = Py_None; | |
4974 | return resultobj; | |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
b9d6a5f3 | 4980 | static PyObject *_wrap_ComboBox_GetMark(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 4981 | PyObject *resultobj = NULL; |
b9d6a5f3 RD |
4982 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
4983 | long *arg2 = (long *) 0 ; | |
4984 | long *arg3 = (long *) 0 ; | |
4985 | long temp2 ; | |
4986 | int res2 = 0 ; | |
4987 | long temp3 ; | |
4988 | int res3 = 0 ; | |
4989 | PyObject * obj0 = 0 ; | |
4990 | char *kwnames[] = { | |
4991 | (char *) "self", NULL | |
4992 | }; | |
4993 | ||
4994 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
4995 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetMark",kwnames,&obj0)) goto fail; | |
4997 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
4998 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4999 | { | |
5000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5001 | (arg1)->GetSelection(arg2,arg3); | |
5002 | ||
5003 | wxPyEndAllowThreads(__tstate); | |
5004 | if (PyErr_Occurred()) SWIG_fail; | |
5005 | } | |
5006 | Py_INCREF(Py_None); resultobj = Py_None; | |
5007 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
5008 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
5009 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5010 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
5011 | return resultobj; | |
5012 | fail: | |
5013 | return NULL; | |
5014 | } | |
5015 | ||
5016 | ||
943e8dfd | 5017 | static PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5018 | PyObject *resultobj = NULL; |
943e8dfd RD |
5019 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5020 | int result; | |
5021 | PyObject * obj0 = 0 ; | |
5022 | char *kwnames[] = { | |
5023 | (char *) "self", NULL | |
5024 | }; | |
5025 | ||
5026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetCurrentSelection",kwnames,&obj0)) goto fail; | |
5027 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); | |
5028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5029 | { | |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5031 | result = (int)((wxComboBox const *)arg1)->GetCurrentSelection(); | |
5032 | ||
5033 | wxPyEndAllowThreads(__tstate); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | } | |
5036 | { | |
32fe5131 | 5037 | resultobj = SWIG_From_int(static_cast<int >(result)); |
943e8dfd RD |
5038 | } |
5039 | return resultobj; | |
5040 | fail: | |
5041 | return NULL; | |
5042 | } | |
5043 | ||
5044 | ||
c32bde28 | 5045 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5046 | PyObject *resultobj = NULL; |
121b9a67 RD |
5047 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5048 | wxString *arg2 = 0 ; | |
5049 | bool result; | |
ae8162c8 | 5050 | bool temp2 = false ; |
121b9a67 RD |
5051 | PyObject * obj0 = 0 ; |
5052 | PyObject * obj1 = 0 ; | |
5053 | char *kwnames[] = { | |
5054 | (char *) "self",(char *) "string", NULL | |
5055 | }; | |
5056 | ||
5057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
121b9a67 RD |
5060 | { |
5061 | arg2 = wxString_in_helper(obj1); | |
5062 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 5063 | temp2 = true; |
121b9a67 RD |
5064 | } |
5065 | { | |
5066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5067 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
5068 | ||
5069 | wxPyEndAllowThreads(__tstate); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | } | |
5072 | { | |
5073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5074 | } | |
5075 | { | |
5076 | if (temp2) | |
5077 | delete arg2; | |
5078 | } | |
5079 | return resultobj; | |
5080 | fail: | |
5081 | { | |
5082 | if (temp2) | |
5083 | delete arg2; | |
5084 | } | |
5085 | return NULL; | |
5086 | } | |
5087 | ||
5088 | ||
c32bde28 | 5089 | static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5090 | PyObject *resultobj = NULL; |
121b9a67 RD |
5091 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5092 | int arg2 ; | |
5093 | wxString *arg3 = 0 ; | |
ae8162c8 | 5094 | bool temp3 = false ; |
121b9a67 RD |
5095 | PyObject * obj0 = 0 ; |
5096 | PyObject * obj1 = 0 ; | |
5097 | PyObject * obj2 = 0 ; | |
5098 | char *kwnames[] = { | |
5099 | (char *) "self",(char *) "n",(char *) "string", NULL | |
5100 | }; | |
5101 | ||
5102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
5103 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5104 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5105 | { | |
32fe5131 | 5106 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5107 | if (SWIG_arg_fail(2)) SWIG_fail; |
5108 | } | |
121b9a67 RD |
5109 | { |
5110 | arg3 = wxString_in_helper(obj2); | |
5111 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 5112 | temp3 = true; |
121b9a67 RD |
5113 | } |
5114 | { | |
5115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5116 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
5117 | ||
5118 | wxPyEndAllowThreads(__tstate); | |
5119 | if (PyErr_Occurred()) SWIG_fail; | |
5120 | } | |
5121 | Py_INCREF(Py_None); resultobj = Py_None; | |
5122 | { | |
5123 | if (temp3) | |
5124 | delete arg3; | |
5125 | } | |
5126 | return resultobj; | |
5127 | fail: | |
5128 | { | |
5129 | if (temp3) | |
5130 | delete arg3; | |
5131 | } | |
5132 | return NULL; | |
5133 | } | |
5134 | ||
5135 | ||
c32bde28 | 5136 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5137 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5138 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5139 | bool arg2 ; | |
5140 | PyObject * obj0 = 0 ; | |
5141 | PyObject * obj1 = 0 ; | |
5142 | char *kwnames[] = { | |
5143 | (char *) "self",(char *) "editable", NULL | |
5144 | }; | |
5145 | ||
5146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
5147 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5148 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5149 | { | |
32fe5131 | 5150 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
5151 | if (SWIG_arg_fail(2)) SWIG_fail; |
5152 | } | |
d14a1e28 RD |
5153 | { |
5154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5155 | (arg1)->SetEditable(arg2); | |
5156 | ||
5157 | wxPyEndAllowThreads(__tstate); | |
5158 | if (PyErr_Occurred()) SWIG_fail; | |
5159 | } | |
5160 | Py_INCREF(Py_None); resultobj = Py_None; | |
5161 | return resultobj; | |
5162 | fail: | |
5163 | return NULL; | |
5164 | } | |
5165 | ||
5166 | ||
c32bde28 | 5167 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5168 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5169 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5170 | PyObject * obj0 = 0 ; | |
5171 | char *kwnames[] = { | |
5172 | (char *) "self", NULL | |
5173 | }; | |
5174 | ||
5175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5176 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5177 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5178 | { |
5179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5180 | (arg1)->SetInsertionPointEnd(); | |
5181 | ||
5182 | wxPyEndAllowThreads(__tstate); | |
5183 | if (PyErr_Occurred()) SWIG_fail; | |
5184 | } | |
5185 | Py_INCREF(Py_None); resultobj = Py_None; | |
5186 | return resultobj; | |
5187 | fail: | |
5188 | return NULL; | |
5189 | } | |
5190 | ||
5191 | ||
c32bde28 | 5192 | static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5193 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5194 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5195 | long arg2 ; | |
5196 | long arg3 ; | |
5197 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5198 | PyObject * obj1 = 0 ; |
5199 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5200 | char *kwnames[] = { |
5201 | (char *) "self",(char *) "from",(char *) "to", NULL | |
5202 | }; | |
5203 | ||
994141e6 | 5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
5205 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5206 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5207 | { | |
32fe5131 | 5208 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
5209 | if (SWIG_arg_fail(2)) SWIG_fail; |
5210 | } | |
5211 | { | |
32fe5131 | 5212 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
5213 | if (SWIG_arg_fail(3)) SWIG_fail; |
5214 | } | |
d14a1e28 RD |
5215 | { |
5216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5217 | (arg1)->Remove(arg2,arg3); | |
5218 | ||
5219 | wxPyEndAllowThreads(__tstate); | |
5220 | if (PyErr_Occurred()) SWIG_fail; | |
5221 | } | |
5222 | Py_INCREF(Py_None); resultobj = Py_None; | |
5223 | return resultobj; | |
5224 | fail: | |
5225 | return NULL; | |
5226 | } | |
5227 | ||
5228 | ||
5cbf236d | 5229 | static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5230 | PyObject *resultobj = NULL; |
5cbf236d RD |
5231 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5232 | bool result; | |
5233 | PyObject * obj0 = 0 ; | |
5234 | char *kwnames[] = { | |
5235 | (char *) "self", NULL | |
5236 | }; | |
5237 | ||
5238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5239 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5240 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5241 | { |
5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5243 | result = (bool)((wxComboBox const *)arg1)->IsEditable(); | |
5244 | ||
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
5247 | } | |
5248 | { | |
5249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5250 | } | |
5251 | return resultobj; | |
5252 | fail: | |
5253 | return NULL; | |
5254 | } | |
5255 | ||
5256 | ||
5257 | static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5258 | PyObject *resultobj = NULL; |
5cbf236d RD |
5259 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5260 | PyObject * obj0 = 0 ; | |
5261 | char *kwnames[] = { | |
5262 | (char *) "self", NULL | |
5263 | }; | |
5264 | ||
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5268 | { |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5270 | (arg1)->Undo(); | |
5271 | ||
5272 | wxPyEndAllowThreads(__tstate); | |
5273 | if (PyErr_Occurred()) SWIG_fail; | |
5274 | } | |
5275 | Py_INCREF(Py_None); resultobj = Py_None; | |
5276 | return resultobj; | |
5277 | fail: | |
5278 | return NULL; | |
5279 | } | |
5280 | ||
5281 | ||
5282 | static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5283 | PyObject *resultobj = NULL; |
5cbf236d RD |
5284 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5285 | PyObject * obj0 = 0 ; | |
5286 | char *kwnames[] = { | |
5287 | (char *) "self", NULL | |
5288 | }; | |
5289 | ||
5290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5291 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5292 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5293 | { |
5294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5295 | (arg1)->Redo(); | |
5296 | ||
5297 | wxPyEndAllowThreads(__tstate); | |
5298 | if (PyErr_Occurred()) SWIG_fail; | |
5299 | } | |
5300 | Py_INCREF(Py_None); resultobj = Py_None; | |
5301 | return resultobj; | |
5302 | fail: | |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
5307 | static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5308 | PyObject *resultobj = NULL; |
5cbf236d RD |
5309 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5310 | PyObject * obj0 = 0 ; | |
5311 | char *kwnames[] = { | |
5312 | (char *) "self", NULL | |
5313 | }; | |
5314 | ||
5315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5316 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5317 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5318 | { |
5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5320 | (arg1)->SelectAll(); | |
5321 | ||
5322 | wxPyEndAllowThreads(__tstate); | |
5323 | if (PyErr_Occurred()) SWIG_fail; | |
5324 | } | |
5325 | Py_INCREF(Py_None); resultobj = Py_None; | |
5326 | return resultobj; | |
5327 | fail: | |
5328 | return NULL; | |
5329 | } | |
5330 | ||
5331 | ||
5332 | static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5333 | PyObject *resultobj = NULL; |
5cbf236d RD |
5334 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5335 | bool result; | |
5336 | PyObject * obj0 = 0 ; | |
5337 | char *kwnames[] = { | |
5338 | (char *) "self", NULL | |
5339 | }; | |
5340 | ||
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5342 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5343 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5344 | { |
5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5346 | result = (bool)((wxComboBox const *)arg1)->CanCopy(); | |
5347 | ||
5348 | wxPyEndAllowThreads(__tstate); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
5351 | { | |
5352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5353 | } | |
5354 | return resultobj; | |
5355 | fail: | |
5356 | return NULL; | |
5357 | } | |
5358 | ||
5359 | ||
5360 | static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5361 | PyObject *resultobj = NULL; |
5cbf236d RD |
5362 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5363 | bool result; | |
5364 | PyObject * obj0 = 0 ; | |
5365 | char *kwnames[] = { | |
5366 | (char *) "self", NULL | |
5367 | }; | |
5368 | ||
5369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5370 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5371 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5372 | { |
5373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5374 | result = (bool)((wxComboBox const *)arg1)->CanCut(); | |
5375 | ||
5376 | wxPyEndAllowThreads(__tstate); | |
5377 | if (PyErr_Occurred()) SWIG_fail; | |
5378 | } | |
5379 | { | |
5380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5381 | } | |
5382 | return resultobj; | |
5383 | fail: | |
5384 | return NULL; | |
5385 | } | |
5386 | ||
5387 | ||
5388 | static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5389 | PyObject *resultobj = NULL; |
5cbf236d RD |
5390 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5391 | bool result; | |
5392 | PyObject * obj0 = 0 ; | |
5393 | char *kwnames[] = { | |
5394 | (char *) "self", NULL | |
5395 | }; | |
5396 | ||
5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5398 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5399 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5400 | { |
5401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5402 | result = (bool)((wxComboBox const *)arg1)->CanPaste(); | |
5403 | ||
5404 | wxPyEndAllowThreads(__tstate); | |
5405 | if (PyErr_Occurred()) SWIG_fail; | |
5406 | } | |
5407 | { | |
5408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5409 | } | |
5410 | return resultobj; | |
5411 | fail: | |
5412 | return NULL; | |
5413 | } | |
5414 | ||
5415 | ||
5416 | static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5417 | PyObject *resultobj = NULL; |
5cbf236d RD |
5418 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5419 | bool result; | |
5420 | PyObject * obj0 = 0 ; | |
5421 | char *kwnames[] = { | |
5422 | (char *) "self", NULL | |
5423 | }; | |
5424 | ||
5425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5426 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5427 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5428 | { |
5429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5430 | result = (bool)((wxComboBox const *)arg1)->CanUndo(); | |
5431 | ||
5432 | wxPyEndAllowThreads(__tstate); | |
5433 | if (PyErr_Occurred()) SWIG_fail; | |
5434 | } | |
5435 | { | |
5436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5437 | } | |
5438 | return resultobj; | |
5439 | fail: | |
5440 | return NULL; | |
5441 | } | |
5442 | ||
5443 | ||
5444 | static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 5445 | PyObject *resultobj = NULL; |
5cbf236d RD |
5446 | wxComboBox *arg1 = (wxComboBox *) 0 ; |
5447 | bool result; | |
5448 | PyObject * obj0 = 0 ; | |
5449 | char *kwnames[] = { | |
5450 | (char *) "self", NULL | |
5451 | }; | |
5452 | ||
5453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxComboBox, SWIG_POINTER_EXCEPTION | 0); |
5455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5cbf236d RD |
5456 | { |
5457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5458 | result = (bool)((wxComboBox const *)arg1)->CanRedo(); | |
5459 | ||
5460 | wxPyEndAllowThreads(__tstate); | |
5461 | if (PyErr_Occurred()) SWIG_fail; | |
5462 | } | |
5463 | { | |
5464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5465 | } | |
5466 | return resultobj; | |
5467 | fail: | |
5468 | return NULL; | |
5469 | } | |
5470 | ||
5471 | ||
c32bde28 | 5472 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5473 | PyObject *resultobj = NULL; |
093d3ff1 | 5474 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
5475 | wxVisualAttributes result; |
5476 | PyObject * obj0 = 0 ; | |
5477 | char *kwnames[] = { | |
5478 | (char *) "variant", NULL | |
5479 | }; | |
5480 | ||
5481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5482 | if (obj0) { | |
093d3ff1 | 5483 | { |
32fe5131 | 5484 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
5485 | if (SWIG_arg_fail(1)) SWIG_fail; |
5486 | } | |
22bfe96c RD |
5487 | } |
5488 | { | |
110da5b0 | 5489 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 5490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 5491 | result = wxComboBox::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
5492 | |
5493 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5494 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5495 | } |
5496 | { | |
5497 | wxVisualAttributes * resultptr; | |
32fe5131 | 5498 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
5499 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
5500 | } | |
5501 | return resultobj; | |
5502 | fail: | |
5503 | return NULL; | |
5504 | } | |
5505 | ||
5506 | ||
c32bde28 | 5507 | static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5508 | PyObject *obj; |
5509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5510 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
5511 | Py_INCREF(obj); | |
5512 | return Py_BuildValue((char *)""); | |
5513 | } | |
c32bde28 | 5514 | static int _wrap_GaugeNameStr_set(PyObject *) { |
b2dc1044 RD |
5515 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
5516 | return 1; | |
5517 | } | |
5518 | ||
5519 | ||
093d3ff1 | 5520 | static PyObject *_wrap_GaugeNameStr_get(void) { |
32fe5131 | 5521 | PyObject *pyobj = NULL; |
b2dc1044 RD |
5522 | |
5523 | { | |
5524 | #if wxUSE_UNICODE | |
5525 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5526 | #else | |
5527 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
5528 | #endif | |
5529 | } | |
5530 | return pyobj; | |
5531 | } | |
5532 | ||
5533 | ||
c32bde28 | 5534 | static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5535 | PyObject *resultobj = NULL; |
d14a1e28 | 5536 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
5537 | int arg2 = (int) -1 ; |
5538 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
5539 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5540 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5541 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5542 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5543 | long arg6 = (long) wxGA_HORIZONTAL ; | |
5544 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5545 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5546 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
5547 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5548 | wxGauge *result; | |
5549 | wxPoint temp4 ; | |
5550 | wxSize temp5 ; | |
ae8162c8 | 5551 | bool temp8 = false ; |
d14a1e28 | 5552 | PyObject * obj0 = 0 ; |
994141e6 RD |
5553 | PyObject * obj1 = 0 ; |
5554 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5555 | PyObject * obj3 = 0 ; |
5556 | PyObject * obj4 = 0 ; | |
994141e6 | 5557 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5558 | PyObject * obj6 = 0 ; |
5559 | PyObject * obj7 = 0 ; | |
5560 | char *kwnames[] = { | |
5561 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5562 | }; | |
5563 | ||
248ed943 | 5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
5565 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
5566 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 5567 | if (obj1) { |
093d3ff1 | 5568 | { |
32fe5131 | 5569 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5570 | if (SWIG_arg_fail(2)) SWIG_fail; |
5571 | } | |
248ed943 RD |
5572 | } |
5573 | if (obj2) { | |
093d3ff1 | 5574 | { |
32fe5131 | 5575 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
5576 | if (SWIG_arg_fail(3)) SWIG_fail; |
5577 | } | |
248ed943 | 5578 | } |
d14a1e28 RD |
5579 | if (obj3) { |
5580 | { | |
5581 | arg4 = &temp4; | |
5582 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5583 | } | |
5584 | } | |
5585 | if (obj4) { | |
5586 | { | |
5587 | arg5 = &temp5; | |
5588 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5589 | } | |
5590 | } | |
994141e6 | 5591 | if (obj5) { |
093d3ff1 | 5592 | { |
32fe5131 | 5593 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
5594 | if (SWIG_arg_fail(6)) SWIG_fail; |
5595 | } | |
994141e6 | 5596 | } |
d14a1e28 | 5597 | if (obj6) { |
093d3ff1 RD |
5598 | { |
5599 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5600 | if (SWIG_arg_fail(7)) SWIG_fail; | |
5601 | if (arg7 == NULL) { | |
5602 | SWIG_null_ref("wxValidator"); | |
5603 | } | |
5604 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
5605 | } |
5606 | } | |
5607 | if (obj7) { | |
5608 | { | |
5609 | arg8 = wxString_in_helper(obj7); | |
5610 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 5611 | temp8 = true; |
d14a1e28 RD |
5612 | } |
5613 | } | |
5614 | { | |
e3b71cb8 | 5615 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5617 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5618 | ||
5619 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5620 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5621 | } |
15afbcd0 | 5622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
5623 | { |
5624 | if (temp8) | |
5625 | delete arg8; | |
5626 | } | |
5627 | return resultobj; | |
5628 | fail: | |
5629 | { | |
5630 | if (temp8) | |
5631 | delete arg8; | |
5632 | } | |
5633 | return NULL; | |
5634 | } | |
5635 | ||
5636 | ||
c32bde28 | 5637 | static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5638 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5639 | wxGauge *result; |
5640 | char *kwnames[] = { | |
5641 | NULL | |
5642 | }; | |
5643 | ||
5644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
5645 | { | |
e3b71cb8 | 5646 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5648 | result = (wxGauge *)new wxGauge(); | |
5649 | ||
5650 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5651 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5652 | } |
15afbcd0 | 5653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
5654 | return resultobj; |
5655 | fail: | |
5656 | return NULL; | |
5657 | } | |
5658 | ||
5659 | ||
c32bde28 | 5660 | static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5661 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5662 | wxGauge *arg1 = (wxGauge *) 0 ; |
5663 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5664 | int arg3 = (int) -1 ; |
5665 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
5666 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5667 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5668 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5669 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5670 | long arg7 = (long) wxGA_HORIZONTAL ; | |
5671 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5672 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5673 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
5674 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5675 | bool result; | |
5676 | wxPoint temp5 ; | |
5677 | wxSize temp6 ; | |
ae8162c8 | 5678 | bool temp9 = false ; |
d14a1e28 RD |
5679 | PyObject * obj0 = 0 ; |
5680 | PyObject * obj1 = 0 ; | |
994141e6 RD |
5681 | PyObject * obj2 = 0 ; |
5682 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5683 | PyObject * obj4 = 0 ; |
5684 | PyObject * obj5 = 0 ; | |
994141e6 | 5685 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5686 | PyObject * obj7 = 0 ; |
5687 | PyObject * obj8 = 0 ; | |
5688 | char *kwnames[] = { | |
5689 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5690 | }; | |
5691 | ||
248ed943 | 5692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
5693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5695 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
5696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 5697 | if (obj2) { |
093d3ff1 | 5698 | { |
32fe5131 | 5699 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
5700 | if (SWIG_arg_fail(3)) SWIG_fail; |
5701 | } | |
248ed943 RD |
5702 | } |
5703 | if (obj3) { | |
093d3ff1 | 5704 | { |
32fe5131 | 5705 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
5706 | if (SWIG_arg_fail(4)) SWIG_fail; |
5707 | } | |
248ed943 | 5708 | } |
d14a1e28 RD |
5709 | if (obj4) { |
5710 | { | |
5711 | arg5 = &temp5; | |
5712 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5713 | } | |
5714 | } | |
5715 | if (obj5) { | |
5716 | { | |
5717 | arg6 = &temp6; | |
5718 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5719 | } | |
5720 | } | |
994141e6 | 5721 | if (obj6) { |
093d3ff1 | 5722 | { |
32fe5131 | 5723 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
5724 | if (SWIG_arg_fail(7)) SWIG_fail; |
5725 | } | |
994141e6 | 5726 | } |
d14a1e28 | 5727 | if (obj7) { |
093d3ff1 RD |
5728 | { |
5729 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
5730 | if (SWIG_arg_fail(8)) SWIG_fail; | |
5731 | if (arg8 == NULL) { | |
5732 | SWIG_null_ref("wxValidator"); | |
5733 | } | |
5734 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
5735 | } |
5736 | } | |
5737 | if (obj8) { | |
5738 | { | |
5739 | arg9 = wxString_in_helper(obj8); | |
5740 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 5741 | temp9 = true; |
d14a1e28 RD |
5742 | } |
5743 | } | |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5747 | ||
5748 | wxPyEndAllowThreads(__tstate); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
5750 | } | |
4f89f6a3 RD |
5751 | { |
5752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5753 | } | |
d14a1e28 RD |
5754 | { |
5755 | if (temp9) | |
5756 | delete arg9; | |
5757 | } | |
5758 | return resultobj; | |
5759 | fail: | |
5760 | { | |
5761 | if (temp9) | |
5762 | delete arg9; | |
5763 | } | |
5764 | return NULL; | |
5765 | } | |
5766 | ||
5767 | ||
c32bde28 | 5768 | static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5769 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5770 | wxGauge *arg1 = (wxGauge *) 0 ; |
5771 | int arg2 ; | |
5772 | PyObject * obj0 = 0 ; | |
994141e6 | 5773 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5774 | char *kwnames[] = { |
5775 | (char *) "self",(char *) "range", NULL | |
5776 | }; | |
5777 | ||
994141e6 | 5778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5781 | { | |
32fe5131 | 5782 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5783 | if (SWIG_arg_fail(2)) SWIG_fail; |
5784 | } | |
d14a1e28 RD |
5785 | { |
5786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5787 | (arg1)->SetRange(arg2); | |
5788 | ||
5789 | wxPyEndAllowThreads(__tstate); | |
5790 | if (PyErr_Occurred()) SWIG_fail; | |
5791 | } | |
5792 | Py_INCREF(Py_None); resultobj = Py_None; | |
5793 | return resultobj; | |
5794 | fail: | |
5795 | return NULL; | |
5796 | } | |
5797 | ||
5798 | ||
c32bde28 | 5799 | static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5800 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5801 | wxGauge *arg1 = (wxGauge *) 0 ; |
5802 | int result; | |
5803 | PyObject * obj0 = 0 ; | |
5804 | char *kwnames[] = { | |
5805 | (char *) "self", NULL | |
5806 | }; | |
5807 | ||
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5809 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5810 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5811 | { |
5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5813 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
5814 | ||
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
093d3ff1 | 5818 | { |
32fe5131 | 5819 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5820 | } |
d14a1e28 RD |
5821 | return resultobj; |
5822 | fail: | |
5823 | return NULL; | |
5824 | } | |
5825 | ||
5826 | ||
c32bde28 | 5827 | static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5828 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5829 | wxGauge *arg1 = (wxGauge *) 0 ; |
5830 | int arg2 ; | |
5831 | PyObject * obj0 = 0 ; | |
994141e6 | 5832 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5833 | char *kwnames[] = { |
5834 | (char *) "self",(char *) "pos", NULL | |
5835 | }; | |
5836 | ||
994141e6 | 5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5840 | { | |
32fe5131 | 5841 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5842 | if (SWIG_arg_fail(2)) SWIG_fail; |
5843 | } | |
d14a1e28 RD |
5844 | { |
5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5846 | (arg1)->SetValue(arg2); | |
5847 | ||
5848 | wxPyEndAllowThreads(__tstate); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
5851 | Py_INCREF(Py_None); resultobj = Py_None; | |
5852 | return resultobj; | |
5853 | fail: | |
5854 | return NULL; | |
5855 | } | |
5856 | ||
5857 | ||
c32bde28 | 5858 | static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5859 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5860 | wxGauge *arg1 = (wxGauge *) 0 ; |
5861 | int result; | |
5862 | PyObject * obj0 = 0 ; | |
5863 | char *kwnames[] = { | |
5864 | (char *) "self", NULL | |
5865 | }; | |
5866 | ||
5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5868 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5869 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5870 | { |
5871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5872 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
5873 | ||
5874 | wxPyEndAllowThreads(__tstate); | |
5875 | if (PyErr_Occurred()) SWIG_fail; | |
5876 | } | |
093d3ff1 | 5877 | { |
32fe5131 | 5878 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5879 | } |
d14a1e28 RD |
5880 | return resultobj; |
5881 | fail: | |
5882 | return NULL; | |
5883 | } | |
5884 | ||
5885 | ||
c32bde28 | 5886 | static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5887 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5888 | wxGauge *arg1 = (wxGauge *) 0 ; |
5889 | bool result; | |
5890 | PyObject * obj0 = 0 ; | |
5891 | char *kwnames[] = { | |
5892 | (char *) "self", NULL | |
5893 | }; | |
5894 | ||
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5896 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5897 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5898 | { |
5899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5900 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
5901 | ||
5902 | wxPyEndAllowThreads(__tstate); | |
5903 | if (PyErr_Occurred()) SWIG_fail; | |
5904 | } | |
4f89f6a3 RD |
5905 | { |
5906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5907 | } | |
d14a1e28 RD |
5908 | return resultobj; |
5909 | fail: | |
5910 | return NULL; | |
5911 | } | |
5912 | ||
5913 | ||
c32bde28 | 5914 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5915 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5916 | wxGauge *arg1 = (wxGauge *) 0 ; |
5917 | int arg2 ; | |
5918 | PyObject * obj0 = 0 ; | |
994141e6 | 5919 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5920 | char *kwnames[] = { |
5921 | (char *) "self",(char *) "w", NULL | |
5922 | }; | |
5923 | ||
994141e6 | 5924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5927 | { | |
32fe5131 | 5928 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5929 | if (SWIG_arg_fail(2)) SWIG_fail; |
5930 | } | |
d14a1e28 RD |
5931 | { |
5932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5933 | (arg1)->SetShadowWidth(arg2); | |
5934 | ||
5935 | wxPyEndAllowThreads(__tstate); | |
5936 | if (PyErr_Occurred()) SWIG_fail; | |
5937 | } | |
5938 | Py_INCREF(Py_None); resultobj = Py_None; | |
5939 | return resultobj; | |
5940 | fail: | |
5941 | return NULL; | |
5942 | } | |
5943 | ||
5944 | ||
c32bde28 | 5945 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5946 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5947 | wxGauge *arg1 = (wxGauge *) 0 ; |
5948 | int result; | |
5949 | PyObject * obj0 = 0 ; | |
5950 | char *kwnames[] = { | |
5951 | (char *) "self", NULL | |
5952 | }; | |
5953 | ||
5954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
5955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
5957 | { |
5958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5959 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
5960 | ||
5961 | wxPyEndAllowThreads(__tstate); | |
5962 | if (PyErr_Occurred()) SWIG_fail; | |
5963 | } | |
093d3ff1 | 5964 | { |
32fe5131 | 5965 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 5966 | } |
d14a1e28 RD |
5967 | return resultobj; |
5968 | fail: | |
5969 | return NULL; | |
5970 | } | |
5971 | ||
5972 | ||
c32bde28 | 5973 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 5974 | PyObject *resultobj = NULL; |
d14a1e28 RD |
5975 | wxGauge *arg1 = (wxGauge *) 0 ; |
5976 | int arg2 ; | |
5977 | PyObject * obj0 = 0 ; | |
994141e6 | 5978 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5979 | char *kwnames[] = { |
5980 | (char *) "self",(char *) "w", NULL | |
5981 | }; | |
5982 | ||
994141e6 | 5983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
5984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
5985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5986 | { | |
32fe5131 | 5987 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
5988 | if (SWIG_arg_fail(2)) SWIG_fail; |
5989 | } | |
d14a1e28 RD |
5990 | { |
5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5992 | (arg1)->SetBezelFace(arg2); | |
5993 | ||
5994 | wxPyEndAllowThreads(__tstate); | |
5995 | if (PyErr_Occurred()) SWIG_fail; | |
5996 | } | |
5997 | Py_INCREF(Py_None); resultobj = Py_None; | |
5998 | return resultobj; | |
5999 | fail: | |
6000 | return NULL; | |
6001 | } | |
6002 | ||
6003 | ||
c32bde28 | 6004 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6005 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6006 | wxGauge *arg1 = (wxGauge *) 0 ; |
6007 | int result; | |
6008 | PyObject * obj0 = 0 ; | |
6009 | char *kwnames[] = { | |
6010 | (char *) "self", NULL | |
6011 | }; | |
6012 | ||
6013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6014 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGauge, SWIG_POINTER_EXCEPTION | 0); |
6015 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6016 | { |
6017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6018 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
6019 | ||
6020 | wxPyEndAllowThreads(__tstate); | |
6021 | if (PyErr_Occurred()) SWIG_fail; | |
6022 | } | |
093d3ff1 | 6023 | { |
32fe5131 | 6024 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 6025 | } |
d14a1e28 RD |
6026 | return resultobj; |
6027 | fail: | |
6028 | return NULL; | |
6029 | } | |
6030 | ||
6031 | ||
c32bde28 | 6032 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6033 | PyObject *resultobj = NULL; |
093d3ff1 | 6034 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6035 | wxVisualAttributes result; |
6036 | PyObject * obj0 = 0 ; | |
6037 | char *kwnames[] = { | |
6038 | (char *) "variant", NULL | |
6039 | }; | |
6040 | ||
6041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6042 | if (obj0) { | |
093d3ff1 | 6043 | { |
32fe5131 | 6044 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6045 | if (SWIG_arg_fail(1)) SWIG_fail; |
6046 | } | |
22bfe96c RD |
6047 | } |
6048 | { | |
110da5b0 | 6049 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 6050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6051 | result = wxGauge::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
6052 | |
6053 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6054 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6055 | } |
6056 | { | |
6057 | wxVisualAttributes * resultptr; | |
32fe5131 | 6058 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
6059 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6060 | } | |
6061 | return resultobj; | |
6062 | fail: | |
6063 | return NULL; | |
6064 | } | |
6065 | ||
6066 | ||
c32bde28 | 6067 | static PyObject * Gauge_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6068 | PyObject *obj; |
6069 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6070 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
6071 | Py_INCREF(obj); | |
6072 | return Py_BuildValue((char *)""); | |
6073 | } | |
c32bde28 | 6074 | static int _wrap_StaticBitmapNameStr_set(PyObject *) { |
b2dc1044 RD |
6075 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
6076 | return 1; | |
6077 | } | |
6078 | ||
6079 | ||
093d3ff1 | 6080 | static PyObject *_wrap_StaticBitmapNameStr_get(void) { |
32fe5131 | 6081 | PyObject *pyobj = NULL; |
b2dc1044 RD |
6082 | |
6083 | { | |
6084 | #if wxUSE_UNICODE | |
6085 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
6086 | #else | |
6087 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
6088 | #endif | |
6089 | } | |
6090 | return pyobj; | |
6091 | } | |
6092 | ||
6093 | ||
c32bde28 | 6094 | static int _wrap_StaticBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
6095 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
6096 | return 1; | |
6097 | } | |
6098 | ||
6099 | ||
093d3ff1 | 6100 | static PyObject *_wrap_StaticBoxNameStr_get(void) { |
32fe5131 | 6101 | PyObject *pyobj = NULL; |
b2dc1044 RD |
6102 | |
6103 | { | |
6104 | #if wxUSE_UNICODE | |
6105 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
6106 | #else | |
6107 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
6108 | #endif | |
6109 | } | |
6110 | return pyobj; | |
6111 | } | |
6112 | ||
6113 | ||
c32bde28 | 6114 | static int _wrap_StaticTextNameStr_set(PyObject *) { |
b2dc1044 RD |
6115 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
6116 | return 1; | |
6117 | } | |
6118 | ||
6119 | ||
093d3ff1 | 6120 | static PyObject *_wrap_StaticTextNameStr_get(void) { |
32fe5131 | 6121 | PyObject *pyobj = NULL; |
b2dc1044 RD |
6122 | |
6123 | { | |
6124 | #if wxUSE_UNICODE | |
6125 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
6126 | #else | |
6127 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
6128 | #endif | |
6129 | } | |
6130 | return pyobj; | |
6131 | } | |
6132 | ||
6133 | ||
c32bde28 | 6134 | static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6135 | PyObject *resultobj = NULL; |
d14a1e28 | 6136 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
6137 | int arg2 = (int) -1 ; |
6138 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6139 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
6140 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6141 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6142 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6143 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6144 | long arg6 = (long) 0 ; | |
6145 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
6146 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6147 | wxStaticBox *result; | |
ae8162c8 | 6148 | bool temp3 = false ; |
d14a1e28 RD |
6149 | wxPoint temp4 ; |
6150 | wxSize temp5 ; | |
ae8162c8 | 6151 | bool temp7 = false ; |
d14a1e28 | 6152 | PyObject * obj0 = 0 ; |
994141e6 | 6153 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6154 | PyObject * obj2 = 0 ; |
6155 | PyObject * obj3 = 0 ; | |
6156 | PyObject * obj4 = 0 ; | |
994141e6 | 6157 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6158 | PyObject * obj6 = 0 ; |
6159 | char *kwnames[] = { | |
6160 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6161 | }; | |
6162 | ||
248ed943 | 6163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6164 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6165 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6166 | if (obj1) { |
093d3ff1 | 6167 | { |
32fe5131 | 6168 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6169 | if (SWIG_arg_fail(2)) SWIG_fail; |
6170 | } | |
248ed943 RD |
6171 | } |
6172 | if (obj2) { | |
6173 | { | |
6174 | arg3 = wxString_in_helper(obj2); | |
6175 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6176 | temp3 = true; |
248ed943 | 6177 | } |
d14a1e28 RD |
6178 | } |
6179 | if (obj3) { | |
6180 | { | |
6181 | arg4 = &temp4; | |
6182 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6183 | } | |
6184 | } | |
6185 | if (obj4) { | |
6186 | { | |
6187 | arg5 = &temp5; | |
6188 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6189 | } | |
6190 | } | |
994141e6 | 6191 | if (obj5) { |
093d3ff1 | 6192 | { |
32fe5131 | 6193 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
6194 | if (SWIG_arg_fail(6)) SWIG_fail; |
6195 | } | |
994141e6 | 6196 | } |
d14a1e28 RD |
6197 | if (obj6) { |
6198 | { | |
6199 | arg7 = wxString_in_helper(obj6); | |
6200 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6201 | temp7 = true; |
d14a1e28 RD |
6202 | } |
6203 | } | |
6204 | { | |
e3b71cb8 | 6205 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6207 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6208 | ||
6209 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6210 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6211 | } |
b0f7404b | 6212 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
6213 | { |
6214 | if (temp3) | |
6215 | delete arg3; | |
6216 | } | |
6217 | { | |
6218 | if (temp7) | |
6219 | delete arg7; | |
6220 | } | |
6221 | return resultobj; | |
6222 | fail: | |
6223 | { | |
6224 | if (temp3) | |
6225 | delete arg3; | |
6226 | } | |
6227 | { | |
6228 | if (temp7) | |
6229 | delete arg7; | |
6230 | } | |
6231 | return NULL; | |
6232 | } | |
6233 | ||
6234 | ||
c32bde28 | 6235 | static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6236 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6237 | wxStaticBox *result; |
6238 | char *kwnames[] = { | |
6239 | NULL | |
6240 | }; | |
6241 | ||
6242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
6243 | { | |
e3b71cb8 | 6244 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6246 | result = (wxStaticBox *)new wxStaticBox(); | |
6247 | ||
6248 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6249 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6250 | } |
b0f7404b | 6251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
6252 | return resultobj; |
6253 | fail: | |
6254 | return NULL; | |
6255 | } | |
6256 | ||
6257 | ||
c32bde28 | 6258 | static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6259 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6260 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; |
6261 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6262 | int arg3 = (int) -1 ; |
6263 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6264 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
6265 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6266 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6267 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6268 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6269 | long arg7 = (long) 0 ; | |
6270 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
6271 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6272 | bool result; | |
ae8162c8 | 6273 | bool temp4 = false ; |
d14a1e28 RD |
6274 | wxPoint temp5 ; |
6275 | wxSize temp6 ; | |
ae8162c8 | 6276 | bool temp8 = false ; |
d14a1e28 RD |
6277 | PyObject * obj0 = 0 ; |
6278 | PyObject * obj1 = 0 ; | |
994141e6 | 6279 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6280 | PyObject * obj3 = 0 ; |
6281 | PyObject * obj4 = 0 ; | |
6282 | PyObject * obj5 = 0 ; | |
994141e6 | 6283 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6284 | PyObject * obj7 = 0 ; |
6285 | char *kwnames[] = { | |
6286 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6287 | }; | |
6288 | ||
248ed943 | 6289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6290 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBox, SWIG_POINTER_EXCEPTION | 0); |
6291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6292 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6294 | if (obj2) { |
093d3ff1 | 6295 | { |
32fe5131 | 6296 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6297 | if (SWIG_arg_fail(3)) SWIG_fail; |
6298 | } | |
248ed943 RD |
6299 | } |
6300 | if (obj3) { | |
6301 | { | |
6302 | arg4 = wxString_in_helper(obj3); | |
6303 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6304 | temp4 = true; |
248ed943 | 6305 | } |
d14a1e28 RD |
6306 | } |
6307 | if (obj4) { | |
6308 | { | |
6309 | arg5 = &temp5; | |
6310 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6311 | } | |
6312 | } | |
6313 | if (obj5) { | |
6314 | { | |
6315 | arg6 = &temp6; | |
6316 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6317 | } | |
6318 | } | |
994141e6 | 6319 | if (obj6) { |
093d3ff1 | 6320 | { |
32fe5131 | 6321 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
6322 | if (SWIG_arg_fail(7)) SWIG_fail; |
6323 | } | |
994141e6 | 6324 | } |
d14a1e28 RD |
6325 | if (obj7) { |
6326 | { | |
6327 | arg8 = wxString_in_helper(obj7); | |
6328 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6329 | temp8 = true; |
d14a1e28 RD |
6330 | } |
6331 | } | |
6332 | { | |
6333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6334 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6335 | ||
6336 | wxPyEndAllowThreads(__tstate); | |
6337 | if (PyErr_Occurred()) SWIG_fail; | |
6338 | } | |
4f89f6a3 RD |
6339 | { |
6340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6341 | } | |
d14a1e28 RD |
6342 | { |
6343 | if (temp4) | |
6344 | delete arg4; | |
6345 | } | |
6346 | { | |
6347 | if (temp8) | |
6348 | delete arg8; | |
6349 | } | |
6350 | return resultobj; | |
6351 | fail: | |
6352 | { | |
6353 | if (temp4) | |
6354 | delete arg4; | |
6355 | } | |
6356 | { | |
6357 | if (temp8) | |
6358 | delete arg8; | |
6359 | } | |
6360 | return NULL; | |
6361 | } | |
6362 | ||
6363 | ||
c32bde28 | 6364 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6365 | PyObject *resultobj = NULL; |
093d3ff1 | 6366 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6367 | wxVisualAttributes result; |
6368 | PyObject * obj0 = 0 ; | |
6369 | char *kwnames[] = { | |
6370 | (char *) "variant", NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6374 | if (obj0) { | |
093d3ff1 | 6375 | { |
32fe5131 | 6376 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6377 | if (SWIG_arg_fail(1)) SWIG_fail; |
6378 | } | |
22bfe96c RD |
6379 | } |
6380 | { | |
110da5b0 | 6381 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 6382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6383 | result = wxStaticBox::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
6384 | |
6385 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6386 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6387 | } |
6388 | { | |
6389 | wxVisualAttributes * resultptr; | |
32fe5131 | 6390 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
6391 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6392 | } | |
6393 | return resultobj; | |
6394 | fail: | |
6395 | return NULL; | |
6396 | } | |
6397 | ||
6398 | ||
c32bde28 | 6399 | static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6400 | PyObject *obj; |
6401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6402 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
6403 | Py_INCREF(obj); | |
6404 | return Py_BuildValue((char *)""); | |
6405 | } | |
c32bde28 | 6406 | static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6407 | PyObject *resultobj = NULL; |
d14a1e28 | 6408 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 6409 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6410 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6411 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6412 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6413 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6414 | long arg5 = (long) wxLI_HORIZONTAL ; | |
6415 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
6416 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6417 | wxStaticLine *result; | |
6418 | wxPoint temp3 ; | |
6419 | wxSize temp4 ; | |
ae8162c8 | 6420 | bool temp6 = false ; |
d14a1e28 | 6421 | PyObject * obj0 = 0 ; |
994141e6 | 6422 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6423 | PyObject * obj2 = 0 ; |
6424 | PyObject * obj3 = 0 ; | |
994141e6 | 6425 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
6426 | PyObject * obj5 = 0 ; |
6427 | char *kwnames[] = { | |
6428 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6429 | }; | |
6430 | ||
248ed943 | 6431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
6432 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6433 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6434 | if (obj1) { |
093d3ff1 | 6435 | { |
32fe5131 | 6436 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6437 | if (SWIG_arg_fail(2)) SWIG_fail; |
6438 | } | |
248ed943 | 6439 | } |
d14a1e28 RD |
6440 | if (obj2) { |
6441 | { | |
6442 | arg3 = &temp3; | |
6443 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6444 | } | |
6445 | } | |
6446 | if (obj3) { | |
6447 | { | |
6448 | arg4 = &temp4; | |
6449 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6450 | } | |
6451 | } | |
994141e6 | 6452 | if (obj4) { |
093d3ff1 | 6453 | { |
32fe5131 | 6454 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
6455 | if (SWIG_arg_fail(5)) SWIG_fail; |
6456 | } | |
994141e6 | 6457 | } |
d14a1e28 RD |
6458 | if (obj5) { |
6459 | { | |
6460 | arg6 = wxString_in_helper(obj5); | |
6461 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 6462 | temp6 = true; |
d14a1e28 RD |
6463 | } |
6464 | } | |
6465 | { | |
e3b71cb8 | 6466 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6468 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6469 | ||
6470 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6471 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6472 | } |
15afbcd0 | 6473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
6474 | { |
6475 | if (temp6) | |
6476 | delete arg6; | |
6477 | } | |
6478 | return resultobj; | |
6479 | fail: | |
6480 | { | |
6481 | if (temp6) | |
6482 | delete arg6; | |
6483 | } | |
6484 | return NULL; | |
6485 | } | |
6486 | ||
6487 | ||
c32bde28 | 6488 | static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6489 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6490 | wxStaticLine *result; |
6491 | char *kwnames[] = { | |
6492 | NULL | |
6493 | }; | |
6494 | ||
6495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
6496 | { | |
e3b71cb8 | 6497 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6499 | result = (wxStaticLine *)new wxStaticLine(); | |
6500 | ||
6501 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6502 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6503 | } |
15afbcd0 | 6504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
6505 | return resultobj; |
6506 | fail: | |
6507 | return NULL; | |
6508 | } | |
6509 | ||
6510 | ||
c32bde28 | 6511 | static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6512 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6513 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; |
6514 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6515 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6516 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6517 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6518 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6519 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6520 | long arg6 = (long) wxLI_HORIZONTAL ; | |
6521 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6522 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6523 | bool result; | |
6524 | wxPoint temp4 ; | |
6525 | wxSize temp5 ; | |
ae8162c8 | 6526 | bool temp7 = false ; |
d14a1e28 RD |
6527 | PyObject * obj0 = 0 ; |
6528 | PyObject * obj1 = 0 ; | |
994141e6 | 6529 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6530 | PyObject * obj3 = 0 ; |
6531 | PyObject * obj4 = 0 ; | |
994141e6 | 6532 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6533 | PyObject * obj6 = 0 ; |
6534 | char *kwnames[] = { | |
6535 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6536 | }; | |
6537 | ||
248ed943 | 6538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6539 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6540 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6541 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6542 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6543 | if (obj2) { |
093d3ff1 | 6544 | { |
32fe5131 | 6545 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6546 | if (SWIG_arg_fail(3)) SWIG_fail; |
6547 | } | |
248ed943 | 6548 | } |
d14a1e28 RD |
6549 | if (obj3) { |
6550 | { | |
6551 | arg4 = &temp4; | |
6552 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6553 | } | |
6554 | } | |
6555 | if (obj4) { | |
6556 | { | |
6557 | arg5 = &temp5; | |
6558 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6559 | } | |
6560 | } | |
994141e6 | 6561 | if (obj5) { |
093d3ff1 | 6562 | { |
32fe5131 | 6563 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
6564 | if (SWIG_arg_fail(6)) SWIG_fail; |
6565 | } | |
994141e6 | 6566 | } |
d14a1e28 RD |
6567 | if (obj6) { |
6568 | { | |
6569 | arg7 = wxString_in_helper(obj6); | |
6570 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6571 | temp7 = true; |
d14a1e28 RD |
6572 | } |
6573 | } | |
6574 | { | |
6575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6576 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6577 | ||
6578 | wxPyEndAllowThreads(__tstate); | |
6579 | if (PyErr_Occurred()) SWIG_fail; | |
6580 | } | |
4f89f6a3 RD |
6581 | { |
6582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6583 | } | |
d14a1e28 RD |
6584 | { |
6585 | if (temp7) | |
6586 | delete arg7; | |
6587 | } | |
6588 | return resultobj; | |
6589 | fail: | |
6590 | { | |
6591 | if (temp7) | |
6592 | delete arg7; | |
6593 | } | |
6594 | return NULL; | |
6595 | } | |
6596 | ||
6597 | ||
c32bde28 | 6598 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6599 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6600 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; |
6601 | bool result; | |
6602 | PyObject * obj0 = 0 ; | |
6603 | char *kwnames[] = { | |
6604 | (char *) "self", NULL | |
6605 | }; | |
6606 | ||
6607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
6608 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticLine, SWIG_POINTER_EXCEPTION | 0); |
6609 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
6610 | { |
6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6612 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
6613 | ||
6614 | wxPyEndAllowThreads(__tstate); | |
6615 | if (PyErr_Occurred()) SWIG_fail; | |
6616 | } | |
4f89f6a3 RD |
6617 | { |
6618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6619 | } | |
d14a1e28 RD |
6620 | return resultobj; |
6621 | fail: | |
6622 | return NULL; | |
6623 | } | |
6624 | ||
6625 | ||
c32bde28 | 6626 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6627 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6628 | int result; |
6629 | char *kwnames[] = { | |
6630 | NULL | |
6631 | }; | |
6632 | ||
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
6634 | { | |
6635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6636 | result = (int)wxStaticLine::GetDefaultSize(); | |
6637 | ||
6638 | wxPyEndAllowThreads(__tstate); | |
6639 | if (PyErr_Occurred()) SWIG_fail; | |
6640 | } | |
093d3ff1 | 6641 | { |
32fe5131 | 6642 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 6643 | } |
d14a1e28 RD |
6644 | return resultobj; |
6645 | fail: | |
6646 | return NULL; | |
6647 | } | |
6648 | ||
6649 | ||
c32bde28 | 6650 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6651 | PyObject *resultobj = NULL; |
093d3ff1 | 6652 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6653 | wxVisualAttributes result; |
6654 | PyObject * obj0 = 0 ; | |
6655 | char *kwnames[] = { | |
6656 | (char *) "variant", NULL | |
6657 | }; | |
6658 | ||
6659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6660 | if (obj0) { | |
093d3ff1 | 6661 | { |
32fe5131 | 6662 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6663 | if (SWIG_arg_fail(1)) SWIG_fail; |
6664 | } | |
22bfe96c RD |
6665 | } |
6666 | { | |
110da5b0 | 6667 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 6668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6669 | result = wxStaticLine::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
6670 | |
6671 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6672 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6673 | } |
6674 | { | |
6675 | wxVisualAttributes * resultptr; | |
32fe5131 | 6676 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
6677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6678 | } | |
6679 | return resultobj; | |
6680 | fail: | |
6681 | return NULL; | |
6682 | } | |
6683 | ||
6684 | ||
c32bde28 | 6685 | static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6686 | PyObject *obj; |
6687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6688 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
6689 | Py_INCREF(obj); | |
6690 | return Py_BuildValue((char *)""); | |
6691 | } | |
c32bde28 | 6692 | static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6693 | PyObject *resultobj = NULL; |
d14a1e28 | 6694 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
6695 | int arg2 = (int) -1 ; |
6696 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
6697 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
6698 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6699 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6700 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6701 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6702 | long arg6 = (long) 0 ; | |
6703 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
6704 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6705 | wxStaticText *result; | |
ae8162c8 | 6706 | bool temp3 = false ; |
d14a1e28 RD |
6707 | wxPoint temp4 ; |
6708 | wxSize temp5 ; | |
ae8162c8 | 6709 | bool temp7 = false ; |
d14a1e28 | 6710 | PyObject * obj0 = 0 ; |
994141e6 | 6711 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6712 | PyObject * obj2 = 0 ; |
6713 | PyObject * obj3 = 0 ; | |
6714 | PyObject * obj4 = 0 ; | |
994141e6 | 6715 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6716 | PyObject * obj6 = 0 ; |
6717 | char *kwnames[] = { | |
6718 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6719 | }; | |
6720 | ||
248ed943 | 6721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
6722 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
6723 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 6724 | if (obj1) { |
093d3ff1 | 6725 | { |
32fe5131 | 6726 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
6727 | if (SWIG_arg_fail(2)) SWIG_fail; |
6728 | } | |
248ed943 RD |
6729 | } |
6730 | if (obj2) { | |
6731 | { | |
6732 | arg3 = wxString_in_helper(obj2); | |
6733 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 6734 | temp3 = true; |
248ed943 | 6735 | } |
d14a1e28 RD |
6736 | } |
6737 | if (obj3) { | |
6738 | { | |
6739 | arg4 = &temp4; | |
6740 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6741 | } | |
6742 | } | |
6743 | if (obj4) { | |
6744 | { | |
6745 | arg5 = &temp5; | |
6746 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6747 | } | |
6748 | } | |
994141e6 | 6749 | if (obj5) { |
093d3ff1 | 6750 | { |
32fe5131 | 6751 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
6752 | if (SWIG_arg_fail(6)) SWIG_fail; |
6753 | } | |
994141e6 | 6754 | } |
d14a1e28 RD |
6755 | if (obj6) { |
6756 | { | |
6757 | arg7 = wxString_in_helper(obj6); | |
6758 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 6759 | temp7 = true; |
d14a1e28 RD |
6760 | } |
6761 | } | |
6762 | { | |
e3b71cb8 | 6763 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6765 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6766 | ||
6767 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6768 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6769 | } |
15afbcd0 | 6770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
6771 | { |
6772 | if (temp3) | |
6773 | delete arg3; | |
6774 | } | |
6775 | { | |
6776 | if (temp7) | |
6777 | delete arg7; | |
6778 | } | |
6779 | return resultobj; | |
6780 | fail: | |
6781 | { | |
6782 | if (temp3) | |
6783 | delete arg3; | |
6784 | } | |
6785 | { | |
6786 | if (temp7) | |
6787 | delete arg7; | |
6788 | } | |
6789 | return NULL; | |
6790 | } | |
6791 | ||
6792 | ||
c32bde28 | 6793 | static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6794 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6795 | wxStaticText *result; |
6796 | char *kwnames[] = { | |
6797 | NULL | |
6798 | }; | |
6799 | ||
6800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
6801 | { | |
e3b71cb8 | 6802 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6804 | result = (wxStaticText *)new wxStaticText(); | |
6805 | ||
6806 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6807 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6808 | } |
15afbcd0 | 6809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
6810 | return resultobj; |
6811 | fail: | |
6812 | return NULL; | |
6813 | } | |
6814 | ||
6815 | ||
c32bde28 | 6816 | static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6817 | PyObject *resultobj = NULL; |
d14a1e28 RD |
6818 | wxStaticText *arg1 = (wxStaticText *) 0 ; |
6819 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
6820 | int arg3 = (int) -1 ; |
6821 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
6822 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
6823 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
6824 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6825 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6826 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6827 | long arg7 = (long) 0 ; | |
6828 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
6829 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6830 | bool result; | |
ae8162c8 | 6831 | bool temp4 = false ; |
d14a1e28 RD |
6832 | wxPoint temp5 ; |
6833 | wxSize temp6 ; | |
ae8162c8 | 6834 | bool temp8 = false ; |
d14a1e28 RD |
6835 | PyObject * obj0 = 0 ; |
6836 | PyObject * obj1 = 0 ; | |
994141e6 | 6837 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6838 | PyObject * obj3 = 0 ; |
6839 | PyObject * obj4 = 0 ; | |
6840 | PyObject * obj5 = 0 ; | |
994141e6 | 6841 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6842 | PyObject * obj7 = 0 ; |
6843 | char *kwnames[] = { | |
6844 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6845 | }; | |
6846 | ||
248ed943 | 6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
6848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); |
6849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6850 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
6851 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 6852 | if (obj2) { |
093d3ff1 | 6853 | { |
32fe5131 | 6854 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
6855 | if (SWIG_arg_fail(3)) SWIG_fail; |
6856 | } | |
248ed943 RD |
6857 | } |
6858 | if (obj3) { | |
6859 | { | |
6860 | arg4 = wxString_in_helper(obj3); | |
6861 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 6862 | temp4 = true; |
248ed943 | 6863 | } |
d14a1e28 RD |
6864 | } |
6865 | if (obj4) { | |
6866 | { | |
6867 | arg5 = &temp5; | |
6868 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6869 | } | |
6870 | } | |
6871 | if (obj5) { | |
6872 | { | |
6873 | arg6 = &temp6; | |
6874 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6875 | } | |
6876 | } | |
994141e6 | 6877 | if (obj6) { |
093d3ff1 | 6878 | { |
32fe5131 | 6879 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
6880 | if (SWIG_arg_fail(7)) SWIG_fail; |
6881 | } | |
994141e6 | 6882 | } |
d14a1e28 RD |
6883 | if (obj7) { |
6884 | { | |
6885 | arg8 = wxString_in_helper(obj7); | |
6886 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 6887 | temp8 = true; |
d14a1e28 RD |
6888 | } |
6889 | } | |
6890 | { | |
6891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6892 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
6893 | ||
6894 | wxPyEndAllowThreads(__tstate); | |
6895 | if (PyErr_Occurred()) SWIG_fail; | |
6896 | } | |
4f89f6a3 RD |
6897 | { |
6898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6899 | } | |
d14a1e28 RD |
6900 | { |
6901 | if (temp4) | |
6902 | delete arg4; | |
6903 | } | |
6904 | { | |
6905 | if (temp8) | |
6906 | delete arg8; | |
6907 | } | |
6908 | return resultobj; | |
6909 | fail: | |
6910 | { | |
6911 | if (temp4) | |
6912 | delete arg4; | |
6913 | } | |
6914 | { | |
6915 | if (temp8) | |
6916 | delete arg8; | |
6917 | } | |
6918 | return NULL; | |
6919 | } | |
6920 | ||
6921 | ||
943e8dfd | 6922 | static PyObject *_wrap_StaticText_Wrap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6923 | PyObject *resultobj = NULL; |
943e8dfd RD |
6924 | wxStaticText *arg1 = (wxStaticText *) 0 ; |
6925 | int arg2 ; | |
6926 | PyObject * obj0 = 0 ; | |
6927 | PyObject * obj1 = 0 ; | |
6928 | char *kwnames[] = { | |
6929 | (char *) "self",(char *) "width", NULL | |
6930 | }; | |
6931 | ||
6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) goto fail; | |
6933 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticText, SWIG_POINTER_EXCEPTION | 0); | |
6934 | if (SWIG_arg_fail(1)) SWIG_fail; | |
6935 | { | |
32fe5131 | 6936 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
943e8dfd RD |
6937 | if (SWIG_arg_fail(2)) SWIG_fail; |
6938 | } | |
6939 | { | |
6940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6941 | (arg1)->Wrap(arg2); | |
6942 | ||
6943 | wxPyEndAllowThreads(__tstate); | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
6946 | Py_INCREF(Py_None); resultobj = Py_None; | |
6947 | return resultobj; | |
6948 | fail: | |
6949 | return NULL; | |
6950 | } | |
6951 | ||
6952 | ||
c32bde28 | 6953 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6954 | PyObject *resultobj = NULL; |
093d3ff1 | 6955 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
6956 | wxVisualAttributes result; |
6957 | PyObject * obj0 = 0 ; | |
6958 | char *kwnames[] = { | |
6959 | (char *) "variant", NULL | |
6960 | }; | |
6961 | ||
6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6963 | if (obj0) { | |
093d3ff1 | 6964 | { |
32fe5131 | 6965 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
6966 | if (SWIG_arg_fail(1)) SWIG_fail; |
6967 | } | |
22bfe96c RD |
6968 | } |
6969 | { | |
110da5b0 | 6970 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 6971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 6972 | result = wxStaticText::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
6973 | |
6974 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6975 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
6976 | } |
6977 | { | |
6978 | wxVisualAttributes * resultptr; | |
32fe5131 | 6979 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
6980 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
6981 | } | |
6982 | return resultobj; | |
6983 | fail: | |
6984 | return NULL; | |
6985 | } | |
6986 | ||
6987 | ||
c32bde28 | 6988 | static PyObject * StaticText_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6989 | PyObject *obj; |
6990 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6991 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
6992 | Py_INCREF(obj); | |
6993 | return Py_BuildValue((char *)""); | |
6994 | } | |
c32bde28 | 6995 | static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 6996 | PyObject *resultobj = NULL; |
d14a1e28 | 6997 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
6998 | int arg2 = (int) -1 ; |
6999 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
7000 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
7001 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7002 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7003 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7004 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7005 | long arg6 = (long) 0 ; | |
7006 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
7007 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7008 | wxStaticBitmap *result; | |
7009 | wxPoint temp4 ; | |
7010 | wxSize temp5 ; | |
ae8162c8 | 7011 | bool temp7 = false ; |
d14a1e28 | 7012 | PyObject * obj0 = 0 ; |
994141e6 | 7013 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7014 | PyObject * obj2 = 0 ; |
7015 | PyObject * obj3 = 0 ; | |
7016 | PyObject * obj4 = 0 ; | |
994141e6 | 7017 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7018 | PyObject * obj6 = 0 ; |
7019 | char *kwnames[] = { | |
7020 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7021 | }; | |
7022 | ||
248ed943 | 7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
7024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 7026 | if (obj1) { |
093d3ff1 | 7027 | { |
32fe5131 | 7028 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7029 | if (SWIG_arg_fail(2)) SWIG_fail; |
7030 | } | |
248ed943 RD |
7031 | } |
7032 | if (obj2) { | |
093d3ff1 RD |
7033 | { |
7034 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7035 | if (SWIG_arg_fail(3)) SWIG_fail; | |
7036 | if (arg3 == NULL) { | |
7037 | SWIG_null_ref("wxBitmap"); | |
7038 | } | |
7039 | if (SWIG_arg_fail(3)) SWIG_fail; | |
248ed943 | 7040 | } |
d14a1e28 RD |
7041 | } |
7042 | if (obj3) { | |
7043 | { | |
7044 | arg4 = &temp4; | |
7045 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7046 | } | |
7047 | } | |
7048 | if (obj4) { | |
7049 | { | |
7050 | arg5 = &temp5; | |
7051 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7052 | } | |
7053 | } | |
994141e6 | 7054 | if (obj5) { |
093d3ff1 | 7055 | { |
32fe5131 | 7056 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
7057 | if (SWIG_arg_fail(6)) SWIG_fail; |
7058 | } | |
994141e6 | 7059 | } |
d14a1e28 RD |
7060 | if (obj6) { |
7061 | { | |
7062 | arg7 = wxString_in_helper(obj6); | |
7063 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 7064 | temp7 = true; |
d14a1e28 RD |
7065 | } |
7066 | } | |
7067 | { | |
e3b71cb8 | 7068 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7070 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7071 | ||
7072 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7073 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7074 | } |
15afbcd0 | 7075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
7076 | { |
7077 | if (temp7) | |
7078 | delete arg7; | |
7079 | } | |
7080 | return resultobj; | |
7081 | fail: | |
7082 | { | |
7083 | if (temp7) | |
7084 | delete arg7; | |
7085 | } | |
7086 | return NULL; | |
7087 | } | |
7088 | ||
7089 | ||
c32bde28 | 7090 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7091 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7092 | wxStaticBitmap *result; |
7093 | char *kwnames[] = { | |
7094 | NULL | |
7095 | }; | |
7096 | ||
7097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
7098 | { | |
e3b71cb8 | 7099 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7101 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
7102 | ||
7103 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7104 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7105 | } |
15afbcd0 | 7106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
7107 | return resultobj; |
7108 | fail: | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
c32bde28 | 7113 | static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7114 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7115 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; |
7116 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
7117 | int arg3 = (int) -1 ; |
7118 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
7119 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
7120 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
7121 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7122 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7123 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7124 | long arg7 = (long) 0 ; | |
7125 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
7126 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7127 | bool result; | |
7128 | wxPoint temp5 ; | |
7129 | wxSize temp6 ; | |
ae8162c8 | 7130 | bool temp8 = false ; |
d14a1e28 RD |
7131 | PyObject * obj0 = 0 ; |
7132 | PyObject * obj1 = 0 ; | |
994141e6 | 7133 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7134 | PyObject * obj3 = 0 ; |
7135 | PyObject * obj4 = 0 ; | |
7136 | PyObject * obj5 = 0 ; | |
994141e6 | 7137 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7138 | PyObject * obj7 = 0 ; |
7139 | char *kwnames[] = { | |
7140 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7141 | }; | |
7142 | ||
248ed943 | 7143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
7144 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7145 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7146 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7147 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 7148 | if (obj2) { |
093d3ff1 | 7149 | { |
32fe5131 | 7150 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7151 | if (SWIG_arg_fail(3)) SWIG_fail; |
7152 | } | |
248ed943 RD |
7153 | } |
7154 | if (obj3) { | |
093d3ff1 RD |
7155 | { |
7156 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7157 | if (SWIG_arg_fail(4)) SWIG_fail; | |
7158 | if (arg4 == NULL) { | |
7159 | SWIG_null_ref("wxBitmap"); | |
7160 | } | |
7161 | if (SWIG_arg_fail(4)) SWIG_fail; | |
248ed943 | 7162 | } |
d14a1e28 RD |
7163 | } |
7164 | if (obj4) { | |
7165 | { | |
7166 | arg5 = &temp5; | |
7167 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7168 | } | |
7169 | } | |
7170 | if (obj5) { | |
7171 | { | |
7172 | arg6 = &temp6; | |
7173 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7174 | } | |
7175 | } | |
994141e6 | 7176 | if (obj6) { |
093d3ff1 | 7177 | { |
32fe5131 | 7178 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
7179 | if (SWIG_arg_fail(7)) SWIG_fail; |
7180 | } | |
994141e6 | 7181 | } |
d14a1e28 RD |
7182 | if (obj7) { |
7183 | { | |
7184 | arg8 = wxString_in_helper(obj7); | |
7185 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7186 | temp8 = true; |
d14a1e28 RD |
7187 | } |
7188 | } | |
7189 | { | |
7190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7191 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
7192 | ||
7193 | wxPyEndAllowThreads(__tstate); | |
7194 | if (PyErr_Occurred()) SWIG_fail; | |
7195 | } | |
4f89f6a3 RD |
7196 | { |
7197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7198 | } | |
d14a1e28 RD |
7199 | { |
7200 | if (temp8) | |
7201 | delete arg8; | |
7202 | } | |
7203 | return resultobj; | |
7204 | fail: | |
7205 | { | |
7206 | if (temp8) | |
7207 | delete arg8; | |
7208 | } | |
7209 | return NULL; | |
7210 | } | |
7211 | ||
7212 | ||
c32bde28 | 7213 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7214 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7215 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; |
7216 | wxBitmap result; | |
7217 | PyObject * obj0 = 0 ; | |
7218 | char *kwnames[] = { | |
7219 | (char *) "self", NULL | |
7220 | }; | |
7221 | ||
7222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
7223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7225 | { |
7226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7227 | result = (arg1)->GetBitmap(); | |
7228 | ||
7229 | wxPyEndAllowThreads(__tstate); | |
7230 | if (PyErr_Occurred()) SWIG_fail; | |
7231 | } | |
7232 | { | |
7233 | wxBitmap * resultptr; | |
32fe5131 | 7234 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 7235 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
7236 | } |
7237 | return resultobj; | |
7238 | fail: | |
7239 | return NULL; | |
7240 | } | |
7241 | ||
7242 | ||
c32bde28 | 7243 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7244 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7245 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; |
7246 | wxBitmap *arg2 = 0 ; | |
7247 | PyObject * obj0 = 0 ; | |
7248 | PyObject * obj1 = 0 ; | |
7249 | char *kwnames[] = { | |
7250 | (char *) "self",(char *) "bitmap", NULL | |
7251 | }; | |
7252 | ||
7253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7256 | { | |
7257 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
7258 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7259 | if (arg2 == NULL) { | |
7260 | SWIG_null_ref("wxBitmap"); | |
7261 | } | |
7262 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7263 | } |
7264 | { | |
7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7266 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
7267 | ||
7268 | wxPyEndAllowThreads(__tstate); | |
7269 | if (PyErr_Occurred()) SWIG_fail; | |
7270 | } | |
7271 | Py_INCREF(Py_None); resultobj = Py_None; | |
7272 | return resultobj; | |
7273 | fail: | |
7274 | return NULL; | |
7275 | } | |
7276 | ||
7277 | ||
c32bde28 | 7278 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7279 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7280 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; |
7281 | wxIcon *arg2 = 0 ; | |
7282 | PyObject * obj0 = 0 ; | |
7283 | PyObject * obj1 = 0 ; | |
7284 | char *kwnames[] = { | |
7285 | (char *) "self",(char *) "icon", NULL | |
7286 | }; | |
7287 | ||
7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7289 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_EXCEPTION | 0); |
7290 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7291 | { | |
7292 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
7293 | if (SWIG_arg_fail(2)) SWIG_fail; | |
7294 | if (arg2 == NULL) { | |
7295 | SWIG_null_ref("wxIcon"); | |
7296 | } | |
7297 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
7298 | } |
7299 | { | |
7300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7301 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
7302 | ||
7303 | wxPyEndAllowThreads(__tstate); | |
7304 | if (PyErr_Occurred()) SWIG_fail; | |
7305 | } | |
7306 | Py_INCREF(Py_None); resultobj = Py_None; | |
7307 | return resultobj; | |
7308 | fail: | |
7309 | return NULL; | |
7310 | } | |
7311 | ||
7312 | ||
c32bde28 | 7313 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7314 | PyObject *resultobj = NULL; |
093d3ff1 | 7315 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
7316 | wxVisualAttributes result; |
7317 | PyObject * obj0 = 0 ; | |
7318 | char *kwnames[] = { | |
7319 | (char *) "variant", NULL | |
7320 | }; | |
7321 | ||
7322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
7323 | if (obj0) { | |
093d3ff1 | 7324 | { |
32fe5131 | 7325 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
7326 | if (SWIG_arg_fail(1)) SWIG_fail; |
7327 | } | |
22bfe96c RD |
7328 | } |
7329 | { | |
110da5b0 | 7330 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 7331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 7332 | result = wxStaticBitmap::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
7333 | |
7334 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 7335 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
7336 | } |
7337 | { | |
7338 | wxVisualAttributes * resultptr; | |
32fe5131 | 7339 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
7340 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
7341 | } | |
7342 | return resultobj; | |
7343 | fail: | |
7344 | return NULL; | |
7345 | } | |
7346 | ||
7347 | ||
c32bde28 | 7348 | static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7349 | PyObject *obj; |
7350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7351 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
7352 | Py_INCREF(obj); | |
7353 | return Py_BuildValue((char *)""); | |
7354 | } | |
c32bde28 | 7355 | static int _wrap_ListBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
7356 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
7357 | return 1; | |
7358 | } | |
7359 | ||
7360 | ||
093d3ff1 | 7361 | static PyObject *_wrap_ListBoxNameStr_get(void) { |
32fe5131 | 7362 | PyObject *pyobj = NULL; |
b2dc1044 RD |
7363 | |
7364 | { | |
7365 | #if wxUSE_UNICODE | |
7366 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7367 | #else | |
7368 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
7369 | #endif | |
7370 | } | |
7371 | return pyobj; | |
7372 | } | |
7373 | ||
7374 | ||
c32bde28 | 7375 | static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7376 | PyObject *resultobj = NULL; |
d14a1e28 | 7377 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 7378 | int arg2 = (int) -1 ; |
d14a1e28 RD |
7379 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7380 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7381 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7382 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
7383 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
7384 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
7385 | long arg6 = (long) 0 ; | |
7386 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7387 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7388 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
7389 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
7390 | wxListBox *result; |
7391 | wxPoint temp3 ; | |
7392 | wxSize temp4 ; | |
ae8162c8 RD |
7393 | bool temp5 = false ; |
7394 | bool temp8 = false ; | |
d14a1e28 | 7395 | PyObject * obj0 = 0 ; |
994141e6 | 7396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7397 | PyObject * obj2 = 0 ; |
7398 | PyObject * obj3 = 0 ; | |
7399 | PyObject * obj4 = 0 ; | |
994141e6 | 7400 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7401 | PyObject * obj6 = 0 ; |
7402 | PyObject * obj7 = 0 ; | |
7403 | char *kwnames[] = { | |
7404 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7405 | }; | |
7406 | ||
248ed943 | 7407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
7408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
7409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 7410 | if (obj1) { |
093d3ff1 | 7411 | { |
32fe5131 | 7412 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7413 | if (SWIG_arg_fail(2)) SWIG_fail; |
7414 | } | |
248ed943 | 7415 | } |
d14a1e28 RD |
7416 | if (obj2) { |
7417 | { | |
7418 | arg3 = &temp3; | |
7419 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7420 | } | |
7421 | } | |
7422 | if (obj3) { | |
7423 | { | |
7424 | arg4 = &temp4; | |
7425 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7426 | } | |
7427 | } | |
7428 | if (obj4) { | |
7429 | { | |
4d5c3d91 RD |
7430 | if (! PySequence_Check(obj4)) { |
7431 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7432 | SWIG_fail; | |
7433 | } | |
7434 | arg5 = new wxArrayString; | |
ae8162c8 | 7435 | temp5 = true; |
4d5c3d91 RD |
7436 | int i, len=PySequence_Length(obj4); |
7437 | for (i=0; i<len; i++) { | |
7438 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 7439 | wxString* s = wxString_in_helper(item); |
74a57fcd | 7440 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7441 | arg5->Add(*s); |
7442 | delete s; | |
4d5c3d91 | 7443 | Py_DECREF(item); |
4d5c3d91 | 7444 | } |
d14a1e28 RD |
7445 | } |
7446 | } | |
994141e6 | 7447 | if (obj5) { |
093d3ff1 | 7448 | { |
32fe5131 | 7449 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
7450 | if (SWIG_arg_fail(6)) SWIG_fail; |
7451 | } | |
994141e6 | 7452 | } |
d14a1e28 | 7453 | if (obj6) { |
093d3ff1 RD |
7454 | { |
7455 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7456 | if (SWIG_arg_fail(7)) SWIG_fail; | |
7457 | if (arg7 == NULL) { | |
7458 | SWIG_null_ref("wxValidator"); | |
7459 | } | |
7460 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
7461 | } |
7462 | } | |
7463 | if (obj7) { | |
7464 | { | |
4d5c3d91 RD |
7465 | arg8 = wxString_in_helper(obj7); |
7466 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 7467 | temp8 = true; |
d14a1e28 RD |
7468 | } |
7469 | } | |
7470 | { | |
e3b71cb8 | 7471 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 7472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 7473 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
7474 | |
7475 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7476 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7477 | } |
15afbcd0 | 7478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 7479 | { |
3adfb63b | 7480 | if (temp5) delete arg5; |
d14a1e28 RD |
7481 | } |
7482 | { | |
7483 | if (temp8) | |
4d5c3d91 | 7484 | delete arg8; |
d14a1e28 RD |
7485 | } |
7486 | return resultobj; | |
7487 | fail: | |
7488 | { | |
3adfb63b | 7489 | if (temp5) delete arg5; |
d14a1e28 RD |
7490 | } |
7491 | { | |
7492 | if (temp8) | |
4d5c3d91 | 7493 | delete arg8; |
d14a1e28 RD |
7494 | } |
7495 | return NULL; | |
7496 | } | |
7497 | ||
7498 | ||
c32bde28 | 7499 | static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7500 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7501 | wxListBox *result; |
7502 | char *kwnames[] = { | |
7503 | NULL | |
7504 | }; | |
7505 | ||
7506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
7507 | { | |
e3b71cb8 | 7508 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
7509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7510 | result = (wxListBox *)new wxListBox(); | |
7511 | ||
7512 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7513 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 7514 | } |
15afbcd0 | 7515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
7516 | return resultobj; |
7517 | fail: | |
7518 | return NULL; | |
7519 | } | |
7520 | ||
7521 | ||
c32bde28 | 7522 | static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7523 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7524 | wxListBox *arg1 = (wxListBox *) 0 ; |
7525 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 7526 | int arg3 = (int) -1 ; |
d14a1e28 RD |
7527 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7528 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7529 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7530 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
7531 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
7532 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
7533 | long arg7 = (long) 0 ; | |
7534 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7535 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7536 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
7537 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
7538 | bool result; |
7539 | wxPoint temp4 ; | |
7540 | wxSize temp5 ; | |
ae8162c8 RD |
7541 | bool temp6 = false ; |
7542 | bool temp9 = false ; | |
d14a1e28 RD |
7543 | PyObject * obj0 = 0 ; |
7544 | PyObject * obj1 = 0 ; | |
994141e6 | 7545 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7546 | PyObject * obj3 = 0 ; |
7547 | PyObject * obj4 = 0 ; | |
7548 | PyObject * obj5 = 0 ; | |
994141e6 | 7549 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7550 | PyObject * obj7 = 0 ; |
7551 | PyObject * obj8 = 0 ; | |
7552 | char *kwnames[] = { | |
7553 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7554 | }; | |
7555 | ||
248ed943 | 7556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
7557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7559 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
7560 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 7561 | if (obj2) { |
093d3ff1 | 7562 | { |
32fe5131 | 7563 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7564 | if (SWIG_arg_fail(3)) SWIG_fail; |
7565 | } | |
248ed943 | 7566 | } |
d14a1e28 RD |
7567 | if (obj3) { |
7568 | { | |
7569 | arg4 = &temp4; | |
7570 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7571 | } | |
7572 | } | |
7573 | if (obj4) { | |
7574 | { | |
7575 | arg5 = &temp5; | |
7576 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7577 | } | |
7578 | } | |
7579 | if (obj5) { | |
7580 | { | |
4d5c3d91 RD |
7581 | if (! PySequence_Check(obj5)) { |
7582 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7583 | SWIG_fail; | |
7584 | } | |
7585 | arg6 = new wxArrayString; | |
ae8162c8 | 7586 | temp6 = true; |
4d5c3d91 RD |
7587 | int i, len=PySequence_Length(obj5); |
7588 | for (i=0; i<len; i++) { | |
7589 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 7590 | wxString* s = wxString_in_helper(item); |
74a57fcd | 7591 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7592 | arg6->Add(*s); |
7593 | delete s; | |
4d5c3d91 | 7594 | Py_DECREF(item); |
4d5c3d91 | 7595 | } |
d14a1e28 RD |
7596 | } |
7597 | } | |
994141e6 | 7598 | if (obj6) { |
093d3ff1 | 7599 | { |
32fe5131 | 7600 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
7601 | if (SWIG_arg_fail(7)) SWIG_fail; |
7602 | } | |
994141e6 | 7603 | } |
d14a1e28 | 7604 | if (obj7) { |
093d3ff1 RD |
7605 | { |
7606 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
7607 | if (SWIG_arg_fail(8)) SWIG_fail; | |
7608 | if (arg8 == NULL) { | |
7609 | SWIG_null_ref("wxValidator"); | |
7610 | } | |
7611 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
7612 | } |
7613 | } | |
7614 | if (obj8) { | |
7615 | { | |
4d5c3d91 RD |
7616 | arg9 = wxString_in_helper(obj8); |
7617 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 7618 | temp9 = true; |
d14a1e28 RD |
7619 | } |
7620 | } | |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 7623 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
7624 | |
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
4f89f6a3 RD |
7628 | { |
7629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7630 | } | |
d14a1e28 | 7631 | { |
3adfb63b | 7632 | if (temp6) delete arg6; |
d14a1e28 RD |
7633 | } |
7634 | { | |
7635 | if (temp9) | |
4d5c3d91 | 7636 | delete arg9; |
d14a1e28 RD |
7637 | } |
7638 | return resultobj; | |
7639 | fail: | |
7640 | { | |
3adfb63b | 7641 | if (temp6) delete arg6; |
d14a1e28 RD |
7642 | } |
7643 | { | |
7644 | if (temp9) | |
4d5c3d91 | 7645 | delete arg9; |
d14a1e28 RD |
7646 | } |
7647 | return NULL; | |
7648 | } | |
7649 | ||
7650 | ||
c32bde28 | 7651 | static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7652 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7653 | wxListBox *arg1 = (wxListBox *) 0 ; |
7654 | wxString *arg2 = 0 ; | |
7655 | int arg3 ; | |
7656 | PyObject *arg4 = (PyObject *) NULL ; | |
ae8162c8 | 7657 | bool temp2 = false ; |
d14a1e28 RD |
7658 | PyObject * obj0 = 0 ; |
7659 | PyObject * obj1 = 0 ; | |
994141e6 | 7660 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7661 | PyObject * obj3 = 0 ; |
7662 | char *kwnames[] = { | |
7663 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
7664 | }; | |
7665 | ||
994141e6 | 7666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
7667 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7668 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7669 | { |
7670 | arg2 = wxString_in_helper(obj1); | |
7671 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7672 | temp2 = true; |
d14a1e28 | 7673 | } |
093d3ff1 | 7674 | { |
32fe5131 | 7675 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7676 | if (SWIG_arg_fail(3)) SWIG_fail; |
7677 | } | |
d14a1e28 RD |
7678 | if (obj3) { |
7679 | arg4 = obj3; | |
7680 | } | |
7681 | { | |
7682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7683 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
7684 | ||
7685 | wxPyEndAllowThreads(__tstate); | |
7686 | if (PyErr_Occurred()) SWIG_fail; | |
7687 | } | |
7688 | Py_INCREF(Py_None); resultobj = Py_None; | |
7689 | { | |
7690 | if (temp2) | |
7691 | delete arg2; | |
7692 | } | |
7693 | return resultobj; | |
7694 | fail: | |
7695 | { | |
7696 | if (temp2) | |
7697 | delete arg2; | |
7698 | } | |
7699 | return NULL; | |
7700 | } | |
7701 | ||
7702 | ||
c32bde28 | 7703 | static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7704 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7705 | wxListBox *arg1 = (wxListBox *) 0 ; |
7706 | wxArrayString *arg2 = 0 ; | |
7707 | int arg3 ; | |
ae8162c8 | 7708 | bool temp2 = false ; |
d14a1e28 RD |
7709 | PyObject * obj0 = 0 ; |
7710 | PyObject * obj1 = 0 ; | |
994141e6 | 7711 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7712 | char *kwnames[] = { |
7713 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
7714 | }; | |
7715 | ||
994141e6 | 7716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7717 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7718 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7719 | { |
7720 | if (! PySequence_Check(obj1)) { | |
7721 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7722 | SWIG_fail; | |
7723 | } | |
7724 | arg2 = new wxArrayString; | |
ae8162c8 | 7725 | temp2 = true; |
d14a1e28 RD |
7726 | int i, len=PySequence_Length(obj1); |
7727 | for (i=0; i<len; i++) { | |
7728 | PyObject* item = PySequence_GetItem(obj1, i); | |
71237536 | 7729 | wxString* s = wxString_in_helper(item); |
74a57fcd | 7730 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7731 | arg2->Add(*s); |
7732 | delete s; | |
d14a1e28 | 7733 | Py_DECREF(item); |
d14a1e28 RD |
7734 | } |
7735 | } | |
093d3ff1 | 7736 | { |
32fe5131 | 7737 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
7738 | if (SWIG_arg_fail(3)) SWIG_fail; |
7739 | } | |
d14a1e28 RD |
7740 | { |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
7747 | Py_INCREF(Py_None); resultobj = Py_None; | |
7748 | { | |
3adfb63b | 7749 | if (temp2) delete arg2; |
d14a1e28 RD |
7750 | } |
7751 | return resultobj; | |
7752 | fail: | |
7753 | { | |
3adfb63b | 7754 | if (temp2) delete arg2; |
d14a1e28 RD |
7755 | } |
7756 | return NULL; | |
7757 | } | |
7758 | ||
7759 | ||
c32bde28 | 7760 | static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7761 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7762 | wxListBox *arg1 = (wxListBox *) 0 ; |
7763 | wxArrayString *arg2 = 0 ; | |
ae8162c8 | 7764 | bool temp2 = false ; |
d14a1e28 RD |
7765 | PyObject * obj0 = 0 ; |
7766 | PyObject * obj1 = 0 ; | |
7767 | char *kwnames[] = { | |
7768 | (char *) "self",(char *) "items", NULL | |
7769 | }; | |
7770 | ||
7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
7772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7774 | { |
7775 | if (! PySequence_Check(obj1)) { | |
7776 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7777 | SWIG_fail; | |
7778 | } | |
7779 | arg2 = new wxArrayString; | |
ae8162c8 | 7780 | temp2 = true; |
d14a1e28 RD |
7781 | int i, len=PySequence_Length(obj1); |
7782 | for (i=0; i<len; i++) { | |
7783 | PyObject* item = PySequence_GetItem(obj1, i); | |
71237536 | 7784 | wxString* s = wxString_in_helper(item); |
74a57fcd | 7785 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
7786 | arg2->Add(*s); |
7787 | delete s; | |
d14a1e28 | 7788 | Py_DECREF(item); |
d14a1e28 RD |
7789 | } |
7790 | } | |
7791 | { | |
7792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7793 | (arg1)->Set((wxArrayString const &)*arg2); | |
7794 | ||
7795 | wxPyEndAllowThreads(__tstate); | |
7796 | if (PyErr_Occurred()) SWIG_fail; | |
7797 | } | |
7798 | Py_INCREF(Py_None); resultobj = Py_None; | |
7799 | { | |
3adfb63b | 7800 | if (temp2) delete arg2; |
d14a1e28 RD |
7801 | } |
7802 | return resultobj; | |
7803 | fail: | |
7804 | { | |
3adfb63b | 7805 | if (temp2) delete arg2; |
d14a1e28 RD |
7806 | } |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
c32bde28 | 7811 | static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7812 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7813 | wxListBox *arg1 = (wxListBox *) 0 ; |
7814 | int arg2 ; | |
7815 | bool result; | |
7816 | PyObject * obj0 = 0 ; | |
994141e6 | 7817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7818 | char *kwnames[] = { |
7819 | (char *) "self",(char *) "n", NULL | |
7820 | }; | |
7821 | ||
994141e6 | 7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7825 | { | |
32fe5131 | 7826 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7827 | if (SWIG_arg_fail(2)) SWIG_fail; |
7828 | } | |
d14a1e28 RD |
7829 | { |
7830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7831 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
7832 | ||
7833 | wxPyEndAllowThreads(__tstate); | |
7834 | if (PyErr_Occurred()) SWIG_fail; | |
7835 | } | |
4f89f6a3 RD |
7836 | { |
7837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7838 | } | |
d14a1e28 RD |
7839 | return resultobj; |
7840 | fail: | |
7841 | return NULL; | |
7842 | } | |
7843 | ||
7844 | ||
c32bde28 | 7845 | static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7846 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7847 | wxListBox *arg1 = (wxListBox *) 0 ; |
7848 | int arg2 ; | |
ae8162c8 | 7849 | bool arg3 = (bool) true ; |
d14a1e28 | 7850 | PyObject * obj0 = 0 ; |
994141e6 | 7851 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7852 | PyObject * obj2 = 0 ; |
7853 | char *kwnames[] = { | |
7854 | (char *) "self",(char *) "n",(char *) "select", NULL | |
7855 | }; | |
7856 | ||
994141e6 | 7857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
7858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7860 | { | |
32fe5131 | 7861 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7862 | if (SWIG_arg_fail(2)) SWIG_fail; |
7863 | } | |
d14a1e28 | 7864 | if (obj2) { |
093d3ff1 | 7865 | { |
32fe5131 | 7866 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
7867 | if (SWIG_arg_fail(3)) SWIG_fail; |
7868 | } | |
d14a1e28 RD |
7869 | } |
7870 | { | |
7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7872 | (arg1)->SetSelection(arg2,arg3); | |
7873 | ||
7874 | wxPyEndAllowThreads(__tstate); | |
7875 | if (PyErr_Occurred()) SWIG_fail; | |
7876 | } | |
7877 | Py_INCREF(Py_None); resultobj = Py_None; | |
7878 | return resultobj; | |
7879 | fail: | |
7880 | return NULL; | |
7881 | } | |
7882 | ||
7883 | ||
c32bde28 | 7884 | static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7885 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7886 | wxListBox *arg1 = (wxListBox *) 0 ; |
7887 | int arg2 ; | |
7888 | PyObject * obj0 = 0 ; | |
994141e6 | 7889 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7890 | char *kwnames[] = { |
7891 | (char *) "self",(char *) "n", NULL | |
7892 | }; | |
7893 | ||
994141e6 | 7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7897 | { | |
32fe5131 | 7898 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7899 | if (SWIG_arg_fail(2)) SWIG_fail; |
7900 | } | |
d14a1e28 RD |
7901 | { |
7902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7903 | (arg1)->Select(arg2); | |
7904 | ||
7905 | wxPyEndAllowThreads(__tstate); | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
7908 | Py_INCREF(Py_None); resultobj = Py_None; | |
7909 | return resultobj; | |
7910 | fail: | |
7911 | return NULL; | |
7912 | } | |
7913 | ||
7914 | ||
c32bde28 | 7915 | static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7916 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7917 | wxListBox *arg1 = (wxListBox *) 0 ; |
7918 | int arg2 ; | |
7919 | PyObject * obj0 = 0 ; | |
994141e6 | 7920 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7921 | char *kwnames[] = { |
7922 | (char *) "self",(char *) "n", NULL | |
7923 | }; | |
7924 | ||
994141e6 | 7925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7928 | { | |
32fe5131 | 7929 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7930 | if (SWIG_arg_fail(2)) SWIG_fail; |
7931 | } | |
d14a1e28 RD |
7932 | { |
7933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7934 | (arg1)->Deselect(arg2); | |
7935 | ||
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
7939 | Py_INCREF(Py_None); resultobj = Py_None; | |
7940 | return resultobj; | |
7941 | fail: | |
7942 | return NULL; | |
7943 | } | |
7944 | ||
7945 | ||
c32bde28 | 7946 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7947 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7948 | wxListBox *arg1 = (wxListBox *) 0 ; |
7949 | int arg2 = (int) -1 ; | |
7950 | PyObject * obj0 = 0 ; | |
994141e6 | 7951 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7952 | char *kwnames[] = { |
7953 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
7954 | }; | |
7955 | ||
994141e6 | 7956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
7957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 7959 | if (obj1) { |
093d3ff1 | 7960 | { |
32fe5131 | 7961 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
7962 | if (SWIG_arg_fail(2)) SWIG_fail; |
7963 | } | |
994141e6 | 7964 | } |
d14a1e28 RD |
7965 | { |
7966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7967 | (arg1)->DeselectAll(arg2); | |
7968 | ||
7969 | wxPyEndAllowThreads(__tstate); | |
7970 | if (PyErr_Occurred()) SWIG_fail; | |
7971 | } | |
7972 | Py_INCREF(Py_None); resultobj = Py_None; | |
7973 | return resultobj; | |
7974 | fail: | |
7975 | return NULL; | |
7976 | } | |
7977 | ||
7978 | ||
c32bde28 | 7979 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 7980 | PyObject *resultobj = NULL; |
d14a1e28 RD |
7981 | wxListBox *arg1 = (wxListBox *) 0 ; |
7982 | wxString *arg2 = 0 ; | |
ae8162c8 | 7983 | bool arg3 = (bool) true ; |
d14a1e28 | 7984 | bool result; |
ae8162c8 | 7985 | bool temp2 = false ; |
d14a1e28 RD |
7986 | PyObject * obj0 = 0 ; |
7987 | PyObject * obj1 = 0 ; | |
7988 | PyObject * obj2 = 0 ; | |
7989 | char *kwnames[] = { | |
7990 | (char *) "self",(char *) "s",(char *) "select", NULL | |
7991 | }; | |
7992 | ||
7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
7994 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
7995 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
7996 | { |
7997 | arg2 = wxString_in_helper(obj1); | |
7998 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 7999 | temp2 = true; |
d14a1e28 RD |
8000 | } |
8001 | if (obj2) { | |
093d3ff1 | 8002 | { |
32fe5131 | 8003 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
8004 | if (SWIG_arg_fail(3)) SWIG_fail; |
8005 | } | |
d14a1e28 RD |
8006 | } |
8007 | { | |
8008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8009 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
8010 | ||
8011 | wxPyEndAllowThreads(__tstate); | |
8012 | if (PyErr_Occurred()) SWIG_fail; | |
8013 | } | |
4f89f6a3 RD |
8014 | { |
8015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8016 | } | |
d14a1e28 RD |
8017 | { |
8018 | if (temp2) | |
8019 | delete arg2; | |
8020 | } | |
8021 | return resultobj; | |
8022 | fail: | |
8023 | { | |
8024 | if (temp2) | |
8025 | delete arg2; | |
8026 | } | |
8027 | return NULL; | |
8028 | } | |
8029 | ||
8030 | ||
c32bde28 | 8031 | static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8032 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8033 | wxListBox *arg1 = (wxListBox *) 0 ; |
8034 | PyObject *result; | |
8035 | PyObject * obj0 = 0 ; | |
8036 | char *kwnames[] = { | |
8037 | (char *) "self", NULL | |
8038 | }; | |
8039 | ||
8040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8041 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8042 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8043 | { |
8044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8045 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
8046 | ||
8047 | wxPyEndAllowThreads(__tstate); | |
8048 | if (PyErr_Occurred()) SWIG_fail; | |
8049 | } | |
8050 | resultobj = result; | |
8051 | return resultobj; | |
8052 | fail: | |
8053 | return NULL; | |
8054 | } | |
8055 | ||
8056 | ||
c32bde28 | 8057 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8058 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8059 | wxListBox *arg1 = (wxListBox *) 0 ; |
8060 | int arg2 ; | |
8061 | PyObject * obj0 = 0 ; | |
994141e6 | 8062 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8063 | char *kwnames[] = { |
8064 | (char *) "self",(char *) "n", NULL | |
8065 | }; | |
8066 | ||
994141e6 | 8067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8070 | { | |
32fe5131 | 8071 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8072 | if (SWIG_arg_fail(2)) SWIG_fail; |
8073 | } | |
d14a1e28 RD |
8074 | { |
8075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8076 | (arg1)->SetFirstItem(arg2); | |
8077 | ||
8078 | wxPyEndAllowThreads(__tstate); | |
8079 | if (PyErr_Occurred()) SWIG_fail; | |
8080 | } | |
8081 | Py_INCREF(Py_None); resultobj = Py_None; | |
8082 | return resultobj; | |
8083 | fail: | |
8084 | return NULL; | |
8085 | } | |
8086 | ||
8087 | ||
c32bde28 | 8088 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8089 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8090 | wxListBox *arg1 = (wxListBox *) 0 ; |
8091 | wxString *arg2 = 0 ; | |
ae8162c8 | 8092 | bool temp2 = false ; |
d14a1e28 RD |
8093 | PyObject * obj0 = 0 ; |
8094 | PyObject * obj1 = 0 ; | |
8095 | char *kwnames[] = { | |
8096 | (char *) "self",(char *) "s", NULL | |
8097 | }; | |
8098 | ||
8099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8102 | { |
8103 | arg2 = wxString_in_helper(obj1); | |
8104 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8105 | temp2 = true; |
d14a1e28 RD |
8106 | } |
8107 | { | |
8108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8109 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
8110 | ||
8111 | wxPyEndAllowThreads(__tstate); | |
8112 | if (PyErr_Occurred()) SWIG_fail; | |
8113 | } | |
8114 | Py_INCREF(Py_None); resultobj = Py_None; | |
8115 | { | |
8116 | if (temp2) | |
8117 | delete arg2; | |
8118 | } | |
8119 | return resultobj; | |
8120 | fail: | |
8121 | { | |
8122 | if (temp2) | |
8123 | delete arg2; | |
8124 | } | |
8125 | return NULL; | |
8126 | } | |
8127 | ||
8128 | ||
c32bde28 | 8129 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8130 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8131 | wxListBox *arg1 = (wxListBox *) 0 ; |
8132 | int arg2 ; | |
8133 | PyObject * obj0 = 0 ; | |
994141e6 | 8134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8135 | char *kwnames[] = { |
8136 | (char *) "self",(char *) "n", NULL | |
8137 | }; | |
8138 | ||
994141e6 | 8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8140 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8141 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8142 | { | |
32fe5131 | 8143 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8144 | if (SWIG_arg_fail(2)) SWIG_fail; |
8145 | } | |
d14a1e28 RD |
8146 | { |
8147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8148 | (arg1)->EnsureVisible(arg2); | |
8149 | ||
8150 | wxPyEndAllowThreads(__tstate); | |
8151 | if (PyErr_Occurred()) SWIG_fail; | |
8152 | } | |
8153 | Py_INCREF(Py_None); resultobj = Py_None; | |
8154 | return resultobj; | |
8155 | fail: | |
8156 | return NULL; | |
8157 | } | |
8158 | ||
8159 | ||
c32bde28 | 8160 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8161 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8162 | wxListBox *arg1 = (wxListBox *) 0 ; |
8163 | wxString *arg2 = 0 ; | |
ae8162c8 | 8164 | bool temp2 = false ; |
d14a1e28 RD |
8165 | PyObject * obj0 = 0 ; |
8166 | PyObject * obj1 = 0 ; | |
8167 | char *kwnames[] = { | |
8168 | (char *) "self",(char *) "s", NULL | |
8169 | }; | |
8170 | ||
8171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8172 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8173 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8174 | { |
8175 | arg2 = wxString_in_helper(obj1); | |
8176 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 8177 | temp2 = true; |
d14a1e28 RD |
8178 | } |
8179 | { | |
8180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8181 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
8182 | ||
8183 | wxPyEndAllowThreads(__tstate); | |
8184 | if (PyErr_Occurred()) SWIG_fail; | |
8185 | } | |
8186 | Py_INCREF(Py_None); resultobj = Py_None; | |
8187 | { | |
8188 | if (temp2) | |
8189 | delete arg2; | |
8190 | } | |
8191 | return resultobj; | |
8192 | fail: | |
8193 | { | |
8194 | if (temp2) | |
8195 | delete arg2; | |
8196 | } | |
8197 | return NULL; | |
8198 | } | |
8199 | ||
8200 | ||
c32bde28 | 8201 | static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8202 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8203 | wxListBox *arg1 = (wxListBox *) 0 ; |
8204 | bool result; | |
8205 | PyObject * obj0 = 0 ; | |
8206 | char *kwnames[] = { | |
8207 | (char *) "self", NULL | |
8208 | }; | |
8209 | ||
8210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8211 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8212 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8213 | { |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8215 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
8218 | if (PyErr_Occurred()) SWIG_fail; | |
8219 | } | |
4f89f6a3 RD |
8220 | { |
8221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8222 | } | |
d14a1e28 RD |
8223 | return resultobj; |
8224 | fail: | |
8225 | return NULL; | |
8226 | } | |
8227 | ||
8228 | ||
c32bde28 | 8229 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8230 | PyObject *resultobj = NULL; |
c3eb6258 RD |
8231 | wxListBox *arg1 = (wxListBox *) 0 ; |
8232 | int arg2 ; | |
8233 | wxColour *arg3 = 0 ; | |
8234 | wxColour temp3 ; | |
8235 | PyObject * obj0 = 0 ; | |
8236 | PyObject * obj1 = 0 ; | |
8237 | PyObject * obj2 = 0 ; | |
8238 | char *kwnames[] = { | |
8239 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8240 | }; | |
8241 | ||
8242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8245 | { | |
32fe5131 | 8246 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8247 | if (SWIG_arg_fail(2)) SWIG_fail; |
8248 | } | |
c3eb6258 RD |
8249 | { |
8250 | arg3 = &temp3; | |
8251 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8252 | } | |
8253 | { | |
8254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8255 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8256 | ||
8257 | wxPyEndAllowThreads(__tstate); | |
8258 | if (PyErr_Occurred()) SWIG_fail; | |
8259 | } | |
8260 | Py_INCREF(Py_None); resultobj = Py_None; | |
8261 | return resultobj; | |
8262 | fail: | |
8263 | return NULL; | |
8264 | } | |
8265 | ||
8266 | ||
c32bde28 | 8267 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8268 | PyObject *resultobj = NULL; |
c3eb6258 RD |
8269 | wxListBox *arg1 = (wxListBox *) 0 ; |
8270 | int arg2 ; | |
8271 | wxColour *arg3 = 0 ; | |
8272 | wxColour temp3 ; | |
8273 | PyObject * obj0 = 0 ; | |
8274 | PyObject * obj1 = 0 ; | |
8275 | PyObject * obj2 = 0 ; | |
8276 | char *kwnames[] = { | |
8277 | (char *) "self",(char *) "item",(char *) "c", NULL | |
8278 | }; | |
8279 | ||
8280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8283 | { | |
32fe5131 | 8284 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8285 | if (SWIG_arg_fail(2)) SWIG_fail; |
8286 | } | |
c3eb6258 RD |
8287 | { |
8288 | arg3 = &temp3; | |
8289 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
8290 | } | |
8291 | { | |
8292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8293 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
8294 | ||
8295 | wxPyEndAllowThreads(__tstate); | |
8296 | if (PyErr_Occurred()) SWIG_fail; | |
8297 | } | |
8298 | Py_INCREF(Py_None); resultobj = Py_None; | |
8299 | return resultobj; | |
8300 | fail: | |
8301 | return NULL; | |
8302 | } | |
8303 | ||
8304 | ||
c32bde28 | 8305 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8306 | PyObject *resultobj = NULL; |
c3eb6258 RD |
8307 | wxListBox *arg1 = (wxListBox *) 0 ; |
8308 | int arg2 ; | |
8309 | wxFont *arg3 = 0 ; | |
8310 | PyObject * obj0 = 0 ; | |
8311 | PyObject * obj1 = 0 ; | |
8312 | PyObject * obj2 = 0 ; | |
8313 | char *kwnames[] = { | |
8314 | (char *) "self",(char *) "item",(char *) "f", NULL | |
8315 | }; | |
8316 | ||
8317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
8318 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListBox, SWIG_POINTER_EXCEPTION | 0); |
8319 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8320 | { | |
32fe5131 | 8321 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8322 | if (SWIG_arg_fail(2)) SWIG_fail; |
8323 | } | |
8324 | { | |
8325 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8326 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8327 | if (arg3 == NULL) { | |
8328 | SWIG_null_ref("wxFont"); | |
8329 | } | |
8330 | if (SWIG_arg_fail(3)) SWIG_fail; | |
c3eb6258 RD |
8331 | } |
8332 | { | |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
8335 | ||
8336 | wxPyEndAllowThreads(__tstate); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | } | |
8339 | Py_INCREF(Py_None); resultobj = Py_None; | |
8340 | return resultobj; | |
8341 | fail: | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
c32bde28 | 8346 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8347 | PyObject *resultobj = NULL; |
093d3ff1 | 8348 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
8349 | wxVisualAttributes result; |
8350 | PyObject * obj0 = 0 ; | |
8351 | char *kwnames[] = { | |
8352 | (char *) "variant", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
8356 | if (obj0) { | |
093d3ff1 | 8357 | { |
32fe5131 | 8358 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
8359 | if (SWIG_arg_fail(1)) SWIG_fail; |
8360 | } | |
74a57fcd RD |
8361 | } |
8362 | { | |
110da5b0 | 8363 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd | 8364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 8365 | result = wxListBox::GetClassDefaultAttributes(arg1); |
74a57fcd RD |
8366 | |
8367 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 8368 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
8369 | } |
8370 | { | |
8371 | wxVisualAttributes * resultptr; | |
32fe5131 | 8372 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
74a57fcd RD |
8373 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
8374 | } | |
8375 | return resultobj; | |
8376 | fail: | |
8377 | return NULL; | |
8378 | } | |
8379 | ||
8380 | ||
c32bde28 | 8381 | static PyObject * ListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8382 | PyObject *obj; |
8383 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8384 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
8385 | Py_INCREF(obj); | |
8386 | return Py_BuildValue((char *)""); | |
8387 | } | |
c32bde28 | 8388 | static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8389 | PyObject *resultobj = NULL; |
d14a1e28 | 8390 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 8391 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8392 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8393 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8394 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8395 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
8396 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
8397 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
8398 | long arg6 = (long) 0 ; | |
8399 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8400 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8401 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
8402 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
8403 | wxCheckListBox *result; |
8404 | wxPoint temp3 ; | |
8405 | wxSize temp4 ; | |
ae8162c8 RD |
8406 | bool temp5 = false ; |
8407 | bool temp8 = false ; | |
d14a1e28 | 8408 | PyObject * obj0 = 0 ; |
994141e6 | 8409 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8410 | PyObject * obj2 = 0 ; |
8411 | PyObject * obj3 = 0 ; | |
8412 | PyObject * obj4 = 0 ; | |
994141e6 | 8413 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8414 | PyObject * obj6 = 0 ; |
8415 | PyObject * obj7 = 0 ; | |
8416 | char *kwnames[] = { | |
8417 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8418 | }; | |
8419 | ||
248ed943 | 8420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
8421 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
8422 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 8423 | if (obj1) { |
093d3ff1 | 8424 | { |
32fe5131 | 8425 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8426 | if (SWIG_arg_fail(2)) SWIG_fail; |
8427 | } | |
248ed943 | 8428 | } |
d14a1e28 RD |
8429 | if (obj2) { |
8430 | { | |
8431 | arg3 = &temp3; | |
8432 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8433 | } | |
8434 | } | |
8435 | if (obj3) { | |
8436 | { | |
8437 | arg4 = &temp4; | |
8438 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8439 | } | |
8440 | } | |
8441 | if (obj4) { | |
8442 | { | |
4d5c3d91 RD |
8443 | if (! PySequence_Check(obj4)) { |
8444 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8445 | SWIG_fail; | |
8446 | } | |
8447 | arg5 = new wxArrayString; | |
ae8162c8 | 8448 | temp5 = true; |
4d5c3d91 RD |
8449 | int i, len=PySequence_Length(obj4); |
8450 | for (i=0; i<len; i++) { | |
8451 | PyObject* item = PySequence_GetItem(obj4, i); | |
71237536 | 8452 | wxString* s = wxString_in_helper(item); |
74a57fcd | 8453 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
8454 | arg5->Add(*s); |
8455 | delete s; | |
4d5c3d91 | 8456 | Py_DECREF(item); |
4d5c3d91 | 8457 | } |
d14a1e28 RD |
8458 | } |
8459 | } | |
994141e6 | 8460 | if (obj5) { |
093d3ff1 | 8461 | { |
32fe5131 | 8462 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
8463 | if (SWIG_arg_fail(6)) SWIG_fail; |
8464 | } | |
994141e6 | 8465 | } |
d14a1e28 | 8466 | if (obj6) { |
093d3ff1 RD |
8467 | { |
8468 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8469 | if (SWIG_arg_fail(7)) SWIG_fail; | |
8470 | if (arg7 == NULL) { | |
8471 | SWIG_null_ref("wxValidator"); | |
8472 | } | |
8473 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
8474 | } |
8475 | } | |
8476 | if (obj7) { | |
8477 | { | |
4d5c3d91 RD |
8478 | arg8 = wxString_in_helper(obj7); |
8479 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 8480 | temp8 = true; |
d14a1e28 RD |
8481 | } |
8482 | } | |
8483 | { | |
e3b71cb8 | 8484 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 8485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 8486 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
8487 | |
8488 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8489 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8490 | } |
15afbcd0 | 8491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 8492 | { |
3adfb63b | 8493 | if (temp5) delete arg5; |
d14a1e28 RD |
8494 | } |
8495 | { | |
8496 | if (temp8) | |
4d5c3d91 | 8497 | delete arg8; |
d14a1e28 RD |
8498 | } |
8499 | return resultobj; | |
8500 | fail: | |
8501 | { | |
3adfb63b | 8502 | if (temp5) delete arg5; |
d14a1e28 RD |
8503 | } |
8504 | { | |
8505 | if (temp8) | |
4d5c3d91 | 8506 | delete arg8; |
d14a1e28 RD |
8507 | } |
8508 | return NULL; | |
8509 | } | |
8510 | ||
8511 | ||
c32bde28 | 8512 | static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8513 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8514 | wxCheckListBox *result; |
8515 | char *kwnames[] = { | |
8516 | NULL | |
8517 | }; | |
8518 | ||
8519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
8520 | { | |
e3b71cb8 | 8521 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8523 | result = (wxCheckListBox *)new wxCheckListBox(); | |
8524 | ||
8525 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8526 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8527 | } |
15afbcd0 | 8528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
8529 | return resultobj; |
8530 | fail: | |
8531 | return NULL; | |
8532 | } | |
8533 | ||
8534 | ||
c32bde28 | 8535 | static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8536 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8537 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8538 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8539 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8540 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8541 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8542 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8543 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
8544 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
8545 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
8546 | long arg7 = (long) 0 ; | |
8547 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8548 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8549 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
8550 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
8551 | bool result; |
8552 | wxPoint temp4 ; | |
8553 | wxSize temp5 ; | |
ae8162c8 RD |
8554 | bool temp6 = false ; |
8555 | bool temp9 = false ; | |
d14a1e28 RD |
8556 | PyObject * obj0 = 0 ; |
8557 | PyObject * obj1 = 0 ; | |
994141e6 | 8558 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8559 | PyObject * obj3 = 0 ; |
8560 | PyObject * obj4 = 0 ; | |
8561 | PyObject * obj5 = 0 ; | |
994141e6 | 8562 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8563 | PyObject * obj7 = 0 ; |
8564 | PyObject * obj8 = 0 ; | |
8565 | char *kwnames[] = { | |
8566 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8567 | }; | |
8568 | ||
248ed943 | 8569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
8570 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8571 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8572 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
8573 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 8574 | if (obj2) { |
093d3ff1 | 8575 | { |
32fe5131 | 8576 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
8577 | if (SWIG_arg_fail(3)) SWIG_fail; |
8578 | } | |
248ed943 | 8579 | } |
d14a1e28 RD |
8580 | if (obj3) { |
8581 | { | |
8582 | arg4 = &temp4; | |
8583 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8584 | } | |
8585 | } | |
8586 | if (obj4) { | |
8587 | { | |
8588 | arg5 = &temp5; | |
8589 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8590 | } | |
8591 | } | |
8592 | if (obj5) { | |
8593 | { | |
4d5c3d91 RD |
8594 | if (! PySequence_Check(obj5)) { |
8595 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8596 | SWIG_fail; | |
8597 | } | |
8598 | arg6 = new wxArrayString; | |
ae8162c8 | 8599 | temp6 = true; |
4d5c3d91 RD |
8600 | int i, len=PySequence_Length(obj5); |
8601 | for (i=0; i<len; i++) { | |
8602 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 8603 | wxString* s = wxString_in_helper(item); |
74a57fcd | 8604 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
8605 | arg6->Add(*s); |
8606 | delete s; | |
4d5c3d91 | 8607 | Py_DECREF(item); |
4d5c3d91 | 8608 | } |
d14a1e28 RD |
8609 | } |
8610 | } | |
994141e6 | 8611 | if (obj6) { |
093d3ff1 | 8612 | { |
32fe5131 | 8613 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
8614 | if (SWIG_arg_fail(7)) SWIG_fail; |
8615 | } | |
994141e6 | 8616 | } |
d14a1e28 | 8617 | if (obj7) { |
093d3ff1 RD |
8618 | { |
8619 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
8620 | if (SWIG_arg_fail(8)) SWIG_fail; | |
8621 | if (arg8 == NULL) { | |
8622 | SWIG_null_ref("wxValidator"); | |
8623 | } | |
8624 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
8625 | } |
8626 | } | |
8627 | if (obj8) { | |
8628 | { | |
4d5c3d91 RD |
8629 | arg9 = wxString_in_helper(obj8); |
8630 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 8631 | temp9 = true; |
d14a1e28 RD |
8632 | } |
8633 | } | |
8634 | { | |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 8636 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
8637 | |
8638 | wxPyEndAllowThreads(__tstate); | |
8639 | if (PyErr_Occurred()) SWIG_fail; | |
8640 | } | |
4f89f6a3 RD |
8641 | { |
8642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8643 | } | |
d14a1e28 | 8644 | { |
3adfb63b | 8645 | if (temp6) delete arg6; |
d14a1e28 RD |
8646 | } |
8647 | { | |
8648 | if (temp9) | |
4d5c3d91 | 8649 | delete arg9; |
d14a1e28 RD |
8650 | } |
8651 | return resultobj; | |
8652 | fail: | |
8653 | { | |
3adfb63b | 8654 | if (temp6) delete arg6; |
d14a1e28 RD |
8655 | } |
8656 | { | |
8657 | if (temp9) | |
4d5c3d91 | 8658 | delete arg9; |
d14a1e28 RD |
8659 | } |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
c32bde28 | 8664 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8665 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8666 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8667 | int arg2 ; | |
8668 | bool result; | |
8669 | PyObject * obj0 = 0 ; | |
994141e6 | 8670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8671 | char *kwnames[] = { |
8672 | (char *) "self",(char *) "index", NULL | |
8673 | }; | |
8674 | ||
994141e6 | 8675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
8676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8678 | { | |
32fe5131 | 8679 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8680 | if (SWIG_arg_fail(2)) SWIG_fail; |
8681 | } | |
d14a1e28 RD |
8682 | { |
8683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8684 | result = (bool)(arg1)->IsChecked(arg2); | |
8685 | ||
8686 | wxPyEndAllowThreads(__tstate); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | } | |
4f89f6a3 RD |
8689 | { |
8690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8691 | } | |
d14a1e28 RD |
8692 | return resultobj; |
8693 | fail: | |
8694 | return NULL; | |
8695 | } | |
8696 | ||
8697 | ||
c32bde28 | 8698 | static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8699 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8700 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8701 | int arg2 ; | |
ae8162c8 | 8702 | int arg3 = (int) true ; |
d14a1e28 | 8703 | PyObject * obj0 = 0 ; |
994141e6 RD |
8704 | PyObject * obj1 = 0 ; |
8705 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8706 | char *kwnames[] = { |
8707 | (char *) "self",(char *) "index",(char *) "check", NULL | |
8708 | }; | |
8709 | ||
994141e6 | 8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8711 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8712 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8713 | { | |
32fe5131 | 8714 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8715 | if (SWIG_arg_fail(2)) SWIG_fail; |
8716 | } | |
994141e6 | 8717 | if (obj2) { |
093d3ff1 | 8718 | { |
32fe5131 | 8719 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
8720 | if (SWIG_arg_fail(3)) SWIG_fail; |
8721 | } | |
994141e6 | 8722 | } |
d14a1e28 RD |
8723 | { |
8724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8725 | (arg1)->Check(arg2,arg3); | |
8726 | ||
8727 | wxPyEndAllowThreads(__tstate); | |
8728 | if (PyErr_Occurred()) SWIG_fail; | |
8729 | } | |
8730 | Py_INCREF(Py_None); resultobj = Py_None; | |
8731 | return resultobj; | |
8732 | fail: | |
8733 | return NULL; | |
8734 | } | |
8735 | ||
8736 | ||
c32bde28 | 8737 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8738 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8739 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8740 | int result; | |
8741 | PyObject * obj0 = 0 ; | |
8742 | char *kwnames[] = { | |
8743 | (char *) "self", NULL | |
8744 | }; | |
8745 | ||
8746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8747 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8748 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8749 | { |
8750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8751 | result = (int)(arg1)->GetItemHeight(); | |
8752 | ||
8753 | wxPyEndAllowThreads(__tstate); | |
8754 | if (PyErr_Occurred()) SWIG_fail; | |
8755 | } | |
093d3ff1 | 8756 | { |
32fe5131 | 8757 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8758 | } |
d14a1e28 RD |
8759 | return resultobj; |
8760 | fail: | |
8761 | return NULL; | |
8762 | } | |
8763 | ||
8764 | ||
c32bde28 | 8765 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8766 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8767 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
8768 | wxPoint *arg2 = 0 ; | |
8769 | int result; | |
8770 | wxPoint temp2 ; | |
8771 | PyObject * obj0 = 0 ; | |
8772 | PyObject * obj1 = 0 ; | |
8773 | char *kwnames[] = { | |
8774 | (char *) "self",(char *) "pt", NULL | |
8775 | }; | |
8776 | ||
8777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8780 | { |
8781 | arg2 = &temp2; | |
8782 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8783 | } | |
8784 | { | |
8785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8786 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
8787 | ||
8788 | wxPyEndAllowThreads(__tstate); | |
8789 | if (PyErr_Occurred()) SWIG_fail; | |
8790 | } | |
093d3ff1 | 8791 | { |
32fe5131 | 8792 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8793 | } |
d14a1e28 RD |
8794 | return resultobj; |
8795 | fail: | |
8796 | return NULL; | |
8797 | } | |
8798 | ||
8799 | ||
c32bde28 | 8800 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8801 | PyObject *resultobj = NULL; |
d14a1e28 | 8802 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; |
e811c8ce RD |
8803 | int arg2 ; |
8804 | int arg3 ; | |
d14a1e28 RD |
8805 | int result; |
8806 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8807 | PyObject * obj1 = 0 ; |
8808 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8809 | char *kwnames[] = { |
8810 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8811 | }; | |
8812 | ||
994141e6 | 8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
8814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_EXCEPTION | 0); |
8815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8816 | { | |
32fe5131 | 8817 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
8818 | if (SWIG_arg_fail(2)) SWIG_fail; |
8819 | } | |
8820 | { | |
32fe5131 | 8821 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
8822 | if (SWIG_arg_fail(3)) SWIG_fail; |
8823 | } | |
d14a1e28 RD |
8824 | { |
8825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8826 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
8827 | ||
8828 | wxPyEndAllowThreads(__tstate); | |
8829 | if (PyErr_Occurred()) SWIG_fail; | |
8830 | } | |
093d3ff1 | 8831 | { |
32fe5131 | 8832 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 8833 | } |
d14a1e28 RD |
8834 | return resultobj; |
8835 | fail: | |
8836 | return NULL; | |
8837 | } | |
8838 | ||
8839 | ||
c32bde28 | 8840 | static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8841 | PyObject *obj; |
8842 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8843 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
8844 | Py_INCREF(obj); | |
8845 | return Py_BuildValue((char *)""); | |
8846 | } | |
c32bde28 | 8847 | static int _wrap_TextCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
8848 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
8849 | return 1; | |
8850 | } | |
8851 | ||
8852 | ||
093d3ff1 | 8853 | static PyObject *_wrap_TextCtrlNameStr_get(void) { |
32fe5131 | 8854 | PyObject *pyobj = NULL; |
b2dc1044 RD |
8855 | |
8856 | { | |
8857 | #if wxUSE_UNICODE | |
8858 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8859 | #else | |
8860 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
8861 | #endif | |
8862 | } | |
8863 | return pyobj; | |
8864 | } | |
8865 | ||
8866 | ||
c32bde28 | 8867 | static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8868 | PyObject *resultobj = NULL; |
908b74cd RD |
8869 | wxColour const &arg1_defvalue = wxNullColour ; |
8870 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
8871 | wxColour const &arg2_defvalue = wxNullColour ; |
8872 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8873 | wxFont const &arg3_defvalue = wxNullFont ; | |
8874 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
093d3ff1 | 8875 | wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ; |
d14a1e28 RD |
8876 | wxTextAttr *result; |
8877 | wxColour temp1 ; | |
8878 | wxColour temp2 ; | |
8879 | PyObject * obj0 = 0 ; | |
8880 | PyObject * obj1 = 0 ; | |
8881 | PyObject * obj2 = 0 ; | |
994141e6 | 8882 | PyObject * obj3 = 0 ; |
908b74cd RD |
8883 | char *kwnames[] = { |
8884 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
8885 | }; | |
d14a1e28 | 8886 | |
908b74cd RD |
8887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8888 | if (obj0) { | |
8889 | { | |
8890 | arg1 = &temp1; | |
8891 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
8892 | } | |
d14a1e28 RD |
8893 | } |
8894 | if (obj1) { | |
8895 | { | |
8896 | arg2 = &temp2; | |
8897 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8898 | } | |
8899 | } | |
8900 | if (obj2) { | |
093d3ff1 RD |
8901 | { |
8902 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
8903 | if (SWIG_arg_fail(3)) SWIG_fail; | |
8904 | if (arg3 == NULL) { | |
8905 | SWIG_null_ref("wxFont"); | |
8906 | } | |
8907 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
8908 | } |
8909 | } | |
994141e6 | 8910 | if (obj3) { |
093d3ff1 | 8911 | { |
32fe5131 | 8912 | arg4 = static_cast<wxTextAttrAlignment >(SWIG_As_int(obj3)); |
093d3ff1 RD |
8913 | if (SWIG_arg_fail(4)) SWIG_fail; |
8914 | } | |
994141e6 | 8915 | } |
d14a1e28 RD |
8916 | { |
8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 8918 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4); |
d14a1e28 RD |
8919 | |
8920 | wxPyEndAllowThreads(__tstate); | |
8921 | if (PyErr_Occurred()) SWIG_fail; | |
8922 | } | |
15afbcd0 | 8923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
8924 | return resultobj; |
8925 | fail: | |
8926 | return NULL; | |
8927 | } | |
8928 | ||
8929 | ||
c32bde28 | 8930 | static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8931 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8932 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
8933 | PyObject * obj0 = 0 ; | |
8934 | char *kwnames[] = { | |
8935 | (char *) "self", NULL | |
8936 | }; | |
8937 | ||
994141e6 | 8938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
8939 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8940 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8941 | { |
8942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 8943 | delete arg1; |
d14a1e28 RD |
8944 | |
8945 | wxPyEndAllowThreads(__tstate); | |
8946 | if (PyErr_Occurred()) SWIG_fail; | |
8947 | } | |
8948 | Py_INCREF(Py_None); resultobj = Py_None; | |
8949 | return resultobj; | |
8950 | fail: | |
8951 | return NULL; | |
8952 | } | |
8953 | ||
8954 | ||
c32bde28 | 8955 | static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8956 | PyObject *resultobj = NULL; |
994141e6 RD |
8957 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
8958 | PyObject * obj0 = 0 ; | |
8959 | char *kwnames[] = { | |
8960 | (char *) "self", NULL | |
8961 | }; | |
8962 | ||
8963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
8964 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8965 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 RD |
8966 | { |
8967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8968 | (arg1)->Init(); | |
8969 | ||
8970 | wxPyEndAllowThreads(__tstate); | |
8971 | if (PyErr_Occurred()) SWIG_fail; | |
8972 | } | |
8973 | Py_INCREF(Py_None); resultobj = Py_None; | |
8974 | return resultobj; | |
8975 | fail: | |
8976 | return NULL; | |
8977 | } | |
8978 | ||
8979 | ||
c32bde28 | 8980 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 8981 | PyObject *resultobj = NULL; |
d14a1e28 RD |
8982 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
8983 | wxColour *arg2 = 0 ; | |
8984 | wxColour temp2 ; | |
8985 | PyObject * obj0 = 0 ; | |
8986 | PyObject * obj1 = 0 ; | |
8987 | char *kwnames[] = { | |
8988 | (char *) "self",(char *) "colText", NULL | |
8989 | }; | |
8990 | ||
8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
8992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
8993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
8994 | { |
8995 | arg2 = &temp2; | |
8996 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
8997 | } | |
8998 | { | |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
9001 | ||
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
9005 | Py_INCREF(Py_None); resultobj = Py_None; | |
9006 | return resultobj; | |
9007 | fail: | |
9008 | return NULL; | |
9009 | } | |
9010 | ||
9011 | ||
c32bde28 | 9012 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9013 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9014 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9015 | wxColour *arg2 = 0 ; | |
9016 | wxColour temp2 ; | |
9017 | PyObject * obj0 = 0 ; | |
9018 | PyObject * obj1 = 0 ; | |
9019 | char *kwnames[] = { | |
9020 | (char *) "self",(char *) "colBack", NULL | |
9021 | }; | |
9022 | ||
9023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9026 | { |
9027 | arg2 = &temp2; | |
9028 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
9029 | } | |
9030 | { | |
9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9032 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
9033 | ||
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | Py_INCREF(Py_None); resultobj = Py_None; | |
9038 | return resultobj; | |
9039 | fail: | |
9040 | return NULL; | |
9041 | } | |
9042 | ||
9043 | ||
c32bde28 | 9044 | static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9045 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9046 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9047 | wxFont *arg2 = 0 ; | |
9048 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
9049 | PyObject * obj0 = 0 ; | |
9050 | PyObject * obj1 = 0 ; | |
994141e6 | 9051 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9052 | char *kwnames[] = { |
9053 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
9054 | }; | |
9055 | ||
994141e6 | 9056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9057 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9059 | { | |
9060 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
9061 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9062 | if (arg2 == NULL) { | |
9063 | SWIG_null_ref("wxFont"); | |
9064 | } | |
9065 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 9066 | } |
994141e6 | 9067 | if (obj2) { |
093d3ff1 | 9068 | { |
32fe5131 | 9069 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
9070 | if (SWIG_arg_fail(3)) SWIG_fail; |
9071 | } | |
994141e6 | 9072 | } |
d14a1e28 RD |
9073 | { |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
9076 | ||
9077 | wxPyEndAllowThreads(__tstate); | |
9078 | if (PyErr_Occurred()) SWIG_fail; | |
9079 | } | |
9080 | Py_INCREF(Py_None); resultobj = Py_None; | |
9081 | return resultobj; | |
9082 | fail: | |
9083 | return NULL; | |
9084 | } | |
9085 | ||
9086 | ||
c32bde28 | 9087 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9088 | PyObject *resultobj = NULL; |
d14a1e28 | 9089 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
093d3ff1 | 9090 | wxTextAttrAlignment arg2 ; |
d14a1e28 | 9091 | PyObject * obj0 = 0 ; |
994141e6 | 9092 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9093 | char *kwnames[] = { |
9094 | (char *) "self",(char *) "alignment", NULL | |
9095 | }; | |
9096 | ||
994141e6 | 9097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9100 | { | |
32fe5131 | 9101 | arg2 = static_cast<wxTextAttrAlignment >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9102 | if (SWIG_arg_fail(2)) SWIG_fail; |
9103 | } | |
d14a1e28 RD |
9104 | { |
9105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 9106 | (arg1)->SetAlignment(arg2); |
d14a1e28 RD |
9107 | |
9108 | wxPyEndAllowThreads(__tstate); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | } | |
9111 | Py_INCREF(Py_None); resultobj = Py_None; | |
9112 | return resultobj; | |
9113 | fail: | |
9114 | return NULL; | |
9115 | } | |
9116 | ||
9117 | ||
c32bde28 | 9118 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9119 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9120 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9121 | wxArrayInt *arg2 = 0 ; | |
ae8162c8 | 9122 | bool temp2 = false ; |
d14a1e28 RD |
9123 | PyObject * obj0 = 0 ; |
9124 | PyObject * obj1 = 0 ; | |
9125 | char *kwnames[] = { | |
9126 | (char *) "self",(char *) "tabs", NULL | |
9127 | }; | |
9128 | ||
9129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
9130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9132 | { |
9133 | if (! PySequence_Check(obj1)) { | |
9134 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
9135 | SWIG_fail; | |
9136 | } | |
9137 | arg2 = new wxArrayInt; | |
ae8162c8 | 9138 | temp2 = true; |
d14a1e28 RD |
9139 | int i, len=PySequence_Length(obj1); |
9140 | for (i=0; i<len; i++) { | |
9141 | PyObject* item = PySequence_GetItem(obj1, i); | |
9142 | PyObject* number = PyNumber_Int(item); | |
9143 | arg2->Add(PyInt_AS_LONG(number)); | |
9144 | Py_DECREF(item); | |
9145 | Py_DECREF(number); | |
9146 | } | |
9147 | } | |
9148 | { | |
9149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9150 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
9151 | ||
9152 | wxPyEndAllowThreads(__tstate); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | } | |
9155 | Py_INCREF(Py_None); resultobj = Py_None; | |
9156 | { | |
3adfb63b | 9157 | if (temp2) delete arg2; |
d14a1e28 RD |
9158 | } |
9159 | return resultobj; | |
9160 | fail: | |
9161 | { | |
3adfb63b | 9162 | if (temp2) delete arg2; |
d14a1e28 RD |
9163 | } |
9164 | return NULL; | |
9165 | } | |
9166 | ||
9167 | ||
c32bde28 | 9168 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9169 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9170 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9171 | int arg2 ; | |
5e4ca4a8 | 9172 | int arg3 = (int) 0 ; |
d14a1e28 | 9173 | PyObject * obj0 = 0 ; |
994141e6 | 9174 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 9175 | PyObject * obj2 = 0 ; |
d14a1e28 | 9176 | char *kwnames[] = { |
5e4ca4a8 | 9177 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
9178 | }; |
9179 | ||
5e4ca4a8 | 9180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
9181 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9183 | { | |
32fe5131 | 9184 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9185 | if (SWIG_arg_fail(2)) SWIG_fail; |
9186 | } | |
5e4ca4a8 | 9187 | if (obj2) { |
093d3ff1 | 9188 | { |
32fe5131 | 9189 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
9190 | if (SWIG_arg_fail(3)) SWIG_fail; |
9191 | } | |
5e4ca4a8 | 9192 | } |
d14a1e28 RD |
9193 | { |
9194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 9195 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
9196 | |
9197 | wxPyEndAllowThreads(__tstate); | |
9198 | if (PyErr_Occurred()) SWIG_fail; | |
9199 | } | |
9200 | Py_INCREF(Py_None); resultobj = Py_None; | |
9201 | return resultobj; | |
9202 | fail: | |
9203 | return NULL; | |
9204 | } | |
9205 | ||
9206 | ||
c32bde28 | 9207 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9208 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9209 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9210 | int arg2 ; | |
9211 | PyObject * obj0 = 0 ; | |
994141e6 | 9212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9213 | char *kwnames[] = { |
9214 | (char *) "self",(char *) "indent", NULL | |
9215 | }; | |
9216 | ||
994141e6 | 9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9220 | { | |
32fe5131 | 9221 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9222 | if (SWIG_arg_fail(2)) SWIG_fail; |
9223 | } | |
d14a1e28 RD |
9224 | { |
9225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9226 | (arg1)->SetRightIndent(arg2); | |
9227 | ||
9228 | wxPyEndAllowThreads(__tstate); | |
9229 | if (PyErr_Occurred()) SWIG_fail; | |
9230 | } | |
9231 | Py_INCREF(Py_None); resultobj = Py_None; | |
9232 | return resultobj; | |
9233 | fail: | |
9234 | return NULL; | |
9235 | } | |
9236 | ||
9237 | ||
c32bde28 | 9238 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9239 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9240 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9241 | long arg2 ; | |
9242 | PyObject * obj0 = 0 ; | |
994141e6 | 9243 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9244 | char *kwnames[] = { |
9245 | (char *) "self",(char *) "flags", NULL | |
9246 | }; | |
9247 | ||
994141e6 | 9248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9249 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9250 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9251 | { | |
32fe5131 | 9252 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
9253 | if (SWIG_arg_fail(2)) SWIG_fail; |
9254 | } | |
d14a1e28 RD |
9255 | { |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9257 | (arg1)->SetFlags(arg2); | |
9258 | ||
9259 | wxPyEndAllowThreads(__tstate); | |
9260 | if (PyErr_Occurred()) SWIG_fail; | |
9261 | } | |
9262 | Py_INCREF(Py_None); resultobj = Py_None; | |
9263 | return resultobj; | |
9264 | fail: | |
9265 | return NULL; | |
9266 | } | |
9267 | ||
9268 | ||
c32bde28 | 9269 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9270 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9271 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9272 | bool result; | |
9273 | PyObject * obj0 = 0 ; | |
9274 | char *kwnames[] = { | |
9275 | (char *) "self", NULL | |
9276 | }; | |
9277 | ||
9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9279 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9280 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9281 | { |
9282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9283 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
9284 | ||
9285 | wxPyEndAllowThreads(__tstate); | |
9286 | if (PyErr_Occurred()) SWIG_fail; | |
9287 | } | |
4f89f6a3 RD |
9288 | { |
9289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9290 | } | |
d14a1e28 RD |
9291 | return resultobj; |
9292 | fail: | |
9293 | return NULL; | |
9294 | } | |
9295 | ||
9296 | ||
c32bde28 | 9297 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9298 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9299 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9300 | bool result; | |
9301 | PyObject * obj0 = 0 ; | |
9302 | char *kwnames[] = { | |
9303 | (char *) "self", NULL | |
9304 | }; | |
9305 | ||
9306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9307 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9308 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9309 | { |
9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9311 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
9312 | ||
9313 | wxPyEndAllowThreads(__tstate); | |
9314 | if (PyErr_Occurred()) SWIG_fail; | |
9315 | } | |
4f89f6a3 RD |
9316 | { |
9317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9318 | } | |
d14a1e28 RD |
9319 | return resultobj; |
9320 | fail: | |
9321 | return NULL; | |
9322 | } | |
9323 | ||
9324 | ||
c32bde28 | 9325 | static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9326 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9327 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9328 | bool result; | |
9329 | PyObject * obj0 = 0 ; | |
9330 | char *kwnames[] = { | |
9331 | (char *) "self", NULL | |
9332 | }; | |
9333 | ||
9334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9337 | { |
9338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9339 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
9340 | ||
9341 | wxPyEndAllowThreads(__tstate); | |
9342 | if (PyErr_Occurred()) SWIG_fail; | |
9343 | } | |
4f89f6a3 RD |
9344 | { |
9345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9346 | } | |
d14a1e28 RD |
9347 | return resultobj; |
9348 | fail: | |
9349 | return NULL; | |
9350 | } | |
9351 | ||
9352 | ||
c32bde28 | 9353 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9354 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9355 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9356 | bool result; | |
9357 | PyObject * obj0 = 0 ; | |
9358 | char *kwnames[] = { | |
9359 | (char *) "self", NULL | |
9360 | }; | |
9361 | ||
9362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9363 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9364 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9365 | { |
9366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9367 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
9368 | ||
9369 | wxPyEndAllowThreads(__tstate); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
4f89f6a3 RD |
9372 | { |
9373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9374 | } | |
d14a1e28 RD |
9375 | return resultobj; |
9376 | fail: | |
9377 | return NULL; | |
9378 | } | |
9379 | ||
9380 | ||
c32bde28 | 9381 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9382 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9383 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9384 | bool result; | |
9385 | PyObject * obj0 = 0 ; | |
9386 | char *kwnames[] = { | |
9387 | (char *) "self", NULL | |
9388 | }; | |
9389 | ||
9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9393 | { |
9394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9395 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
9396 | ||
9397 | wxPyEndAllowThreads(__tstate); | |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
9399 | } | |
4f89f6a3 RD |
9400 | { |
9401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9402 | } | |
d14a1e28 RD |
9403 | return resultobj; |
9404 | fail: | |
9405 | return NULL; | |
9406 | } | |
9407 | ||
9408 | ||
c32bde28 | 9409 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9410 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9411 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9412 | bool result; | |
9413 | PyObject * obj0 = 0 ; | |
9414 | char *kwnames[] = { | |
9415 | (char *) "self", NULL | |
9416 | }; | |
9417 | ||
9418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9419 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9420 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9421 | { |
9422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9423 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
9424 | ||
9425 | wxPyEndAllowThreads(__tstate); | |
9426 | if (PyErr_Occurred()) SWIG_fail; | |
9427 | } | |
4f89f6a3 RD |
9428 | { |
9429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9430 | } | |
d14a1e28 RD |
9431 | return resultobj; |
9432 | fail: | |
9433 | return NULL; | |
9434 | } | |
9435 | ||
9436 | ||
c32bde28 | 9437 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9438 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9439 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9440 | bool result; | |
9441 | PyObject * obj0 = 0 ; | |
9442 | char *kwnames[] = { | |
9443 | (char *) "self", NULL | |
9444 | }; | |
9445 | ||
9446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9449 | { |
9450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9451 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
9452 | ||
9453 | wxPyEndAllowThreads(__tstate); | |
9454 | if (PyErr_Occurred()) SWIG_fail; | |
9455 | } | |
4f89f6a3 RD |
9456 | { |
9457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9458 | } | |
d14a1e28 RD |
9459 | return resultobj; |
9460 | fail: | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
c32bde28 | 9465 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9466 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9467 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9468 | long arg2 ; | |
9469 | bool result; | |
9470 | PyObject * obj0 = 0 ; | |
994141e6 | 9471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9472 | char *kwnames[] = { |
9473 | (char *) "self",(char *) "flag", NULL | |
9474 | }; | |
9475 | ||
994141e6 | 9476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
9477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9479 | { | |
32fe5131 | 9480 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
9481 | if (SWIG_arg_fail(2)) SWIG_fail; |
9482 | } | |
d14a1e28 RD |
9483 | { |
9484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9485 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
9486 | ||
9487 | wxPyEndAllowThreads(__tstate); | |
9488 | if (PyErr_Occurred()) SWIG_fail; | |
9489 | } | |
4f89f6a3 RD |
9490 | { |
9491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9492 | } | |
d14a1e28 RD |
9493 | return resultobj; |
9494 | fail: | |
9495 | return NULL; | |
9496 | } | |
9497 | ||
9498 | ||
c32bde28 | 9499 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9500 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9501 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9502 | wxColour *result; | |
9503 | PyObject * obj0 = 0 ; | |
9504 | char *kwnames[] = { | |
9505 | (char *) "self", NULL | |
9506 | }; | |
9507 | ||
9508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9509 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9510 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9511 | { |
9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9513 | { | |
9514 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
9515 | result = (wxColour *) &_result_ref; | |
9516 | } | |
9517 | ||
9518 | wxPyEndAllowThreads(__tstate); | |
9519 | if (PyErr_Occurred()) SWIG_fail; | |
9520 | } | |
15afbcd0 | 9521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
9522 | return resultobj; |
9523 | fail: | |
9524 | return NULL; | |
9525 | } | |
9526 | ||
9527 | ||
c32bde28 | 9528 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9529 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9530 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9531 | wxColour *result; | |
9532 | PyObject * obj0 = 0 ; | |
9533 | char *kwnames[] = { | |
9534 | (char *) "self", NULL | |
9535 | }; | |
9536 | ||
9537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9538 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9539 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9540 | { |
9541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9542 | { | |
9543 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
9544 | result = (wxColour *) &_result_ref; | |
9545 | } | |
9546 | ||
9547 | wxPyEndAllowThreads(__tstate); | |
9548 | if (PyErr_Occurred()) SWIG_fail; | |
9549 | } | |
15afbcd0 | 9550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
9551 | return resultobj; |
9552 | fail: | |
9553 | return NULL; | |
9554 | } | |
9555 | ||
9556 | ||
c32bde28 | 9557 | static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9558 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9559 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9560 | wxFont *result; | |
9561 | PyObject * obj0 = 0 ; | |
9562 | char *kwnames[] = { | |
9563 | (char *) "self", NULL | |
9564 | }; | |
9565 | ||
9566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9569 | { |
9570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9571 | { | |
9572 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
9573 | result = (wxFont *) &_result_ref; | |
9574 | } | |
9575 | ||
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
4276dc52 RD |
9579 | { |
9580 | wxFont* resultptr = new wxFont(*result); | |
9581 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
9582 | } | |
d14a1e28 RD |
9583 | return resultobj; |
9584 | fail: | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
c32bde28 | 9589 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9590 | PyObject *resultobj = NULL; |
d14a1e28 | 9591 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
093d3ff1 | 9592 | wxTextAttrAlignment result; |
d14a1e28 RD |
9593 | PyObject * obj0 = 0 ; |
9594 | char *kwnames[] = { | |
9595 | (char *) "self", NULL | |
9596 | }; | |
9597 | ||
9598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9601 | { |
9602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9603 | result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment(); |
d14a1e28 RD |
9604 | |
9605 | wxPyEndAllowThreads(__tstate); | |
9606 | if (PyErr_Occurred()) SWIG_fail; | |
9607 | } | |
093d3ff1 | 9608 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
9609 | return resultobj; |
9610 | fail: | |
9611 | return NULL; | |
9612 | } | |
9613 | ||
9614 | ||
c32bde28 | 9615 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9616 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9617 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9618 | wxArrayInt *result; | |
9619 | PyObject * obj0 = 0 ; | |
9620 | char *kwnames[] = { | |
9621 | (char *) "self", NULL | |
9622 | }; | |
9623 | ||
9624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9625 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9626 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9627 | { |
9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9629 | { | |
9630 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
9631 | result = (wxArrayInt *) &_result_ref; | |
9632 | } | |
9633 | ||
9634 | wxPyEndAllowThreads(__tstate); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
9637 | { | |
9638 | resultobj = PyList_New(0); | |
9639 | size_t idx; | |
9640 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
9641 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
9642 | PyList_Append(resultobj, val); | |
9643 | Py_DECREF(val); | |
9644 | } | |
9645 | } | |
9646 | return resultobj; | |
9647 | fail: | |
9648 | return NULL; | |
9649 | } | |
9650 | ||
9651 | ||
c32bde28 | 9652 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9653 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9654 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9655 | long result; | |
9656 | PyObject * obj0 = 0 ; | |
9657 | char *kwnames[] = { | |
9658 | (char *) "self", NULL | |
9659 | }; | |
9660 | ||
9661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9662 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9663 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9664 | { |
9665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9666 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
9667 | ||
9668 | wxPyEndAllowThreads(__tstate); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
9670 | } | |
093d3ff1 | 9671 | { |
32fe5131 | 9672 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 9673 | } |
d14a1e28 RD |
9674 | return resultobj; |
9675 | fail: | |
9676 | return NULL; | |
9677 | } | |
9678 | ||
9679 | ||
c32bde28 | 9680 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9681 | PyObject *resultobj = NULL; |
5e4ca4a8 RD |
9682 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9683 | long result; | |
9684 | PyObject * obj0 = 0 ; | |
9685 | char *kwnames[] = { | |
9686 | (char *) "self", NULL | |
9687 | }; | |
9688 | ||
9689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9690 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9691 | if (SWIG_arg_fail(1)) SWIG_fail; | |
5e4ca4a8 RD |
9692 | { |
9693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9694 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
9695 | ||
9696 | wxPyEndAllowThreads(__tstate); | |
9697 | if (PyErr_Occurred()) SWIG_fail; | |
9698 | } | |
093d3ff1 | 9699 | { |
32fe5131 | 9700 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 9701 | } |
5e4ca4a8 RD |
9702 | return resultobj; |
9703 | fail: | |
9704 | return NULL; | |
9705 | } | |
9706 | ||
9707 | ||
c32bde28 | 9708 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9709 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9710 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9711 | long result; | |
9712 | PyObject * obj0 = 0 ; | |
9713 | char *kwnames[] = { | |
9714 | (char *) "self", NULL | |
9715 | }; | |
9716 | ||
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9720 | { |
9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9722 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
9723 | ||
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) SWIG_fail; | |
9726 | } | |
093d3ff1 | 9727 | { |
32fe5131 | 9728 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 9729 | } |
d14a1e28 RD |
9730 | return resultobj; |
9731 | fail: | |
9732 | return NULL; | |
9733 | } | |
9734 | ||
9735 | ||
c32bde28 | 9736 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9737 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9738 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9739 | long result; | |
9740 | PyObject * obj0 = 0 ; | |
9741 | char *kwnames[] = { | |
9742 | (char *) "self", NULL | |
9743 | }; | |
9744 | ||
9745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9748 | { |
9749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9750 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
9751 | ||
9752 | wxPyEndAllowThreads(__tstate); | |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
9754 | } | |
093d3ff1 | 9755 | { |
32fe5131 | 9756 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 9757 | } |
d14a1e28 RD |
9758 | return resultobj; |
9759 | fail: | |
9760 | return NULL; | |
9761 | } | |
9762 | ||
9763 | ||
c32bde28 | 9764 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9765 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9766 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; |
9767 | bool result; | |
9768 | PyObject * obj0 = 0 ; | |
9769 | char *kwnames[] = { | |
9770 | (char *) "self", NULL | |
9771 | }; | |
9772 | ||
9773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
9774 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); |
9775 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
9776 | { |
9777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9778 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
9779 | ||
9780 | wxPyEndAllowThreads(__tstate); | |
9781 | if (PyErr_Occurred()) SWIG_fail; | |
9782 | } | |
4f89f6a3 RD |
9783 | { |
9784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9785 | } | |
d14a1e28 RD |
9786 | return resultobj; |
9787 | fail: | |
9788 | return NULL; | |
9789 | } | |
9790 | ||
9791 | ||
c32bde28 | 9792 | static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9793 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9794 | wxTextAttr *arg1 = 0 ; |
9795 | wxTextAttr *arg2 = 0 ; | |
9796 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
9797 | wxTextAttr result; | |
9798 | PyObject * obj0 = 0 ; | |
9799 | PyObject * obj1 = 0 ; | |
9800 | PyObject * obj2 = 0 ; | |
9801 | char *kwnames[] = { | |
9802 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
9803 | }; | |
9804 | ||
9805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
9806 | { |
9807 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9808 | if (SWIG_arg_fail(1)) SWIG_fail; | |
9809 | if (arg1 == NULL) { | |
9810 | SWIG_null_ref("wxTextAttr"); | |
9811 | } | |
9812 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 9813 | } |
093d3ff1 RD |
9814 | { |
9815 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
9816 | if (SWIG_arg_fail(2)) SWIG_fail; | |
9817 | if (arg2 == NULL) { | |
9818 | SWIG_null_ref("wxTextAttr"); | |
9819 | } | |
9820 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 9821 | } |
093d3ff1 RD |
9822 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
9823 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
9824 | { |
9825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9826 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
9827 | ||
9828 | wxPyEndAllowThreads(__tstate); | |
9829 | if (PyErr_Occurred()) SWIG_fail; | |
9830 | } | |
9831 | { | |
9832 | wxTextAttr * resultptr; | |
32fe5131 | 9833 | resultptr = new wxTextAttr(static_cast<wxTextAttr & >(result)); |
15afbcd0 | 9834 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
9835 | } |
9836 | return resultobj; | |
9837 | fail: | |
9838 | return NULL; | |
9839 | } | |
9840 | ||
9841 | ||
c32bde28 | 9842 | static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9843 | PyObject *obj; |
9844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9845 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
9846 | Py_INCREF(obj); | |
9847 | return Py_BuildValue((char *)""); | |
9848 | } | |
c32bde28 | 9849 | static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9850 | PyObject *resultobj = NULL; |
d14a1e28 | 9851 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 9852 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9853 | wxString const &arg3_defvalue = wxPyEmptyString ; |
9854 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9855 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9856 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9857 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9858 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9859 | long arg6 = (long) 0 ; | |
9860 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9861 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9862 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
9863 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9864 | wxTextCtrl *result; | |
ae8162c8 | 9865 | bool temp3 = false ; |
d14a1e28 RD |
9866 | wxPoint temp4 ; |
9867 | wxSize temp5 ; | |
ae8162c8 | 9868 | bool temp8 = false ; |
d14a1e28 | 9869 | PyObject * obj0 = 0 ; |
994141e6 | 9870 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9871 | PyObject * obj2 = 0 ; |
9872 | PyObject * obj3 = 0 ; | |
9873 | PyObject * obj4 = 0 ; | |
994141e6 | 9874 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9875 | PyObject * obj6 = 0 ; |
9876 | PyObject * obj7 = 0 ; | |
9877 | char *kwnames[] = { | |
9878 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9879 | }; | |
9880 | ||
248ed943 | 9881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
9882 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
9883 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 9884 | if (obj1) { |
093d3ff1 | 9885 | { |
32fe5131 | 9886 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
9887 | if (SWIG_arg_fail(2)) SWIG_fail; |
9888 | } | |
248ed943 | 9889 | } |
d14a1e28 RD |
9890 | if (obj2) { |
9891 | { | |
9892 | arg3 = wxString_in_helper(obj2); | |
9893 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 9894 | temp3 = true; |
d14a1e28 RD |
9895 | } |
9896 | } | |
9897 | if (obj3) { | |
9898 | { | |
9899 | arg4 = &temp4; | |
9900 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9901 | } | |
9902 | } | |
9903 | if (obj4) { | |
9904 | { | |
9905 | arg5 = &temp5; | |
9906 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9907 | } | |
9908 | } | |
994141e6 | 9909 | if (obj5) { |
093d3ff1 | 9910 | { |
32fe5131 | 9911 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
9912 | if (SWIG_arg_fail(6)) SWIG_fail; |
9913 | } | |
994141e6 | 9914 | } |
d14a1e28 | 9915 | if (obj6) { |
093d3ff1 RD |
9916 | { |
9917 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
9918 | if (SWIG_arg_fail(7)) SWIG_fail; | |
9919 | if (arg7 == NULL) { | |
9920 | SWIG_null_ref("wxValidator"); | |
9921 | } | |
9922 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
9923 | } |
9924 | } | |
9925 | if (obj7) { | |
9926 | { | |
9927 | arg8 = wxString_in_helper(obj7); | |
9928 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 9929 | temp8 = true; |
d14a1e28 RD |
9930 | } |
9931 | } | |
9932 | { | |
e3b71cb8 | 9933 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9935 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9936 | ||
9937 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9938 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9939 | } |
b0f7404b | 9940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
9941 | { |
9942 | if (temp3) | |
9943 | delete arg3; | |
9944 | } | |
9945 | { | |
9946 | if (temp8) | |
9947 | delete arg8; | |
9948 | } | |
9949 | return resultobj; | |
9950 | fail: | |
9951 | { | |
9952 | if (temp3) | |
9953 | delete arg3; | |
9954 | } | |
9955 | { | |
9956 | if (temp8) | |
9957 | delete arg8; | |
9958 | } | |
9959 | return NULL; | |
9960 | } | |
9961 | ||
9962 | ||
c32bde28 | 9963 | static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9964 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9965 | wxTextCtrl *result; |
9966 | char *kwnames[] = { | |
9967 | NULL | |
9968 | }; | |
9969 | ||
9970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
9971 | { | |
e3b71cb8 | 9972 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
9973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9974 | result = (wxTextCtrl *)new wxTextCtrl(); | |
9975 | ||
9976 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9977 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 9978 | } |
b0f7404b | 9979 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
9980 | return resultobj; |
9981 | fail: | |
9982 | return NULL; | |
9983 | } | |
9984 | ||
9985 | ||
c32bde28 | 9986 | static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 9987 | PyObject *resultobj = NULL; |
d14a1e28 RD |
9988 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
9989 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 9990 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9991 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9992 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9993 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9994 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9995 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9996 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9997 | long arg7 = (long) 0 ; | |
9998 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
9999 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10000 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
10001 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10002 | bool result; | |
ae8162c8 | 10003 | bool temp4 = false ; |
d14a1e28 RD |
10004 | wxPoint temp5 ; |
10005 | wxSize temp6 ; | |
ae8162c8 | 10006 | bool temp9 = false ; |
d14a1e28 RD |
10007 | PyObject * obj0 = 0 ; |
10008 | PyObject * obj1 = 0 ; | |
994141e6 | 10009 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10010 | PyObject * obj3 = 0 ; |
10011 | PyObject * obj4 = 0 ; | |
10012 | PyObject * obj5 = 0 ; | |
994141e6 | 10013 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
10014 | PyObject * obj7 = 0 ; |
10015 | PyObject * obj8 = 0 ; | |
10016 | char *kwnames[] = { | |
10017 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10018 | }; | |
10019 | ||
248ed943 | 10020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
10021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10023 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
10024 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 10025 | if (obj2) { |
093d3ff1 | 10026 | { |
32fe5131 | 10027 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
10028 | if (SWIG_arg_fail(3)) SWIG_fail; |
10029 | } | |
248ed943 | 10030 | } |
d14a1e28 RD |
10031 | if (obj3) { |
10032 | { | |
10033 | arg4 = wxString_in_helper(obj3); | |
10034 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 10035 | temp4 = true; |
d14a1e28 RD |
10036 | } |
10037 | } | |
10038 | if (obj4) { | |
10039 | { | |
10040 | arg5 = &temp5; | |
10041 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10042 | } | |
10043 | } | |
10044 | if (obj5) { | |
10045 | { | |
10046 | arg6 = &temp6; | |
10047 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10048 | } | |
10049 | } | |
994141e6 | 10050 | if (obj6) { |
093d3ff1 | 10051 | { |
32fe5131 | 10052 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
10053 | if (SWIG_arg_fail(7)) SWIG_fail; |
10054 | } | |
994141e6 | 10055 | } |
d14a1e28 | 10056 | if (obj7) { |
093d3ff1 RD |
10057 | { |
10058 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
10059 | if (SWIG_arg_fail(8)) SWIG_fail; | |
10060 | if (arg8 == NULL) { | |
10061 | SWIG_null_ref("wxValidator"); | |
10062 | } | |
10063 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
10064 | } |
10065 | } | |
10066 | if (obj8) { | |
10067 | { | |
10068 | arg9 = wxString_in_helper(obj8); | |
10069 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 10070 | temp9 = true; |
d14a1e28 RD |
10071 | } |
10072 | } | |
10073 | { | |
10074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10075 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10076 | ||
10077 | wxPyEndAllowThreads(__tstate); | |
10078 | if (PyErr_Occurred()) SWIG_fail; | |
10079 | } | |
4f89f6a3 RD |
10080 | { |
10081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10082 | } | |
d14a1e28 RD |
10083 | { |
10084 | if (temp4) | |
10085 | delete arg4; | |
10086 | } | |
10087 | { | |
10088 | if (temp9) | |
10089 | delete arg9; | |
10090 | } | |
10091 | return resultobj; | |
10092 | fail: | |
10093 | { | |
10094 | if (temp4) | |
10095 | delete arg4; | |
10096 | } | |
10097 | { | |
10098 | if (temp9) | |
10099 | delete arg9; | |
10100 | } | |
10101 | return NULL; | |
10102 | } | |
10103 | ||
10104 | ||
c32bde28 | 10105 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10106 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10107 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10108 | wxString result; | |
10109 | PyObject * obj0 = 0 ; | |
10110 | char *kwnames[] = { | |
10111 | (char *) "self", NULL | |
10112 | }; | |
10113 | ||
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10115 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10116 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10117 | { |
10118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10119 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
10120 | ||
10121 | wxPyEndAllowThreads(__tstate); | |
10122 | if (PyErr_Occurred()) SWIG_fail; | |
10123 | } | |
10124 | { | |
10125 | #if wxUSE_UNICODE | |
10126 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10127 | #else | |
10128 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10129 | #endif | |
10130 | } | |
10131 | return resultobj; | |
10132 | fail: | |
10133 | return NULL; | |
10134 | } | |
10135 | ||
10136 | ||
c32bde28 | 10137 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10138 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10139 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10140 | wxString *arg2 = 0 ; | |
ae8162c8 | 10141 | bool temp2 = false ; |
d14a1e28 RD |
10142 | PyObject * obj0 = 0 ; |
10143 | PyObject * obj1 = 0 ; | |
10144 | char *kwnames[] = { | |
10145 | (char *) "self",(char *) "value", NULL | |
10146 | }; | |
10147 | ||
10148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10149 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10150 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10151 | { |
10152 | arg2 = wxString_in_helper(obj1); | |
10153 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10154 | temp2 = true; |
d14a1e28 RD |
10155 | } |
10156 | { | |
10157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10158 | (arg1)->SetValue((wxString const &)*arg2); | |
10159 | ||
10160 | wxPyEndAllowThreads(__tstate); | |
10161 | if (PyErr_Occurred()) SWIG_fail; | |
10162 | } | |
10163 | Py_INCREF(Py_None); resultobj = Py_None; | |
10164 | { | |
10165 | if (temp2) | |
10166 | delete arg2; | |
10167 | } | |
10168 | return resultobj; | |
10169 | fail: | |
10170 | { | |
10171 | if (temp2) | |
10172 | delete arg2; | |
10173 | } | |
10174 | return NULL; | |
10175 | } | |
10176 | ||
10177 | ||
c32bde28 | 10178 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10179 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10180 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10181 | long arg2 ; | |
10182 | long arg3 ; | |
10183 | wxString result; | |
10184 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10185 | PyObject * obj1 = 0 ; |
10186 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10187 | char *kwnames[] = { |
10188 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10189 | }; | |
10190 | ||
994141e6 | 10191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10192 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10193 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10194 | { | |
32fe5131 | 10195 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10196 | if (SWIG_arg_fail(2)) SWIG_fail; |
10197 | } | |
10198 | { | |
32fe5131 | 10199 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
10200 | if (SWIG_arg_fail(3)) SWIG_fail; |
10201 | } | |
d14a1e28 RD |
10202 | { |
10203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10204 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
10205 | ||
10206 | wxPyEndAllowThreads(__tstate); | |
10207 | if (PyErr_Occurred()) SWIG_fail; | |
10208 | } | |
10209 | { | |
10210 | #if wxUSE_UNICODE | |
10211 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10212 | #else | |
10213 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10214 | #endif | |
10215 | } | |
10216 | return resultobj; | |
10217 | fail: | |
10218 | return NULL; | |
10219 | } | |
10220 | ||
10221 | ||
c32bde28 | 10222 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10223 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10224 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10225 | long arg2 ; | |
10226 | int result; | |
10227 | PyObject * obj0 = 0 ; | |
994141e6 | 10228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10229 | char *kwnames[] = { |
10230 | (char *) "self",(char *) "lineNo", NULL | |
10231 | }; | |
10232 | ||
994141e6 | 10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10236 | { | |
32fe5131 | 10237 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10238 | if (SWIG_arg_fail(2)) SWIG_fail; |
10239 | } | |
d14a1e28 RD |
10240 | { |
10241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10242 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
10243 | ||
10244 | wxPyEndAllowThreads(__tstate); | |
10245 | if (PyErr_Occurred()) SWIG_fail; | |
10246 | } | |
093d3ff1 | 10247 | { |
32fe5131 | 10248 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 10249 | } |
d14a1e28 RD |
10250 | return resultobj; |
10251 | fail: | |
10252 | return NULL; | |
10253 | } | |
10254 | ||
10255 | ||
c32bde28 | 10256 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10257 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10258 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10259 | long arg2 ; | |
10260 | wxString result; | |
10261 | PyObject * obj0 = 0 ; | |
994141e6 | 10262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10263 | char *kwnames[] = { |
10264 | (char *) "self",(char *) "lineNo", NULL | |
10265 | }; | |
10266 | ||
994141e6 | 10267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
10268 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10269 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10270 | { | |
32fe5131 | 10271 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10272 | if (SWIG_arg_fail(2)) SWIG_fail; |
10273 | } | |
d14a1e28 RD |
10274 | { |
10275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10276 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
10277 | ||
10278 | wxPyEndAllowThreads(__tstate); | |
10279 | if (PyErr_Occurred()) SWIG_fail; | |
10280 | } | |
10281 | { | |
10282 | #if wxUSE_UNICODE | |
10283 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10284 | #else | |
10285 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10286 | #endif | |
10287 | } | |
10288 | return resultobj; | |
10289 | fail: | |
10290 | return NULL; | |
10291 | } | |
10292 | ||
10293 | ||
c32bde28 | 10294 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10295 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10296 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10297 | int result; | |
10298 | PyObject * obj0 = 0 ; | |
10299 | char *kwnames[] = { | |
10300 | (char *) "self", NULL | |
10301 | }; | |
10302 | ||
10303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10306 | { |
10307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10308 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
10309 | ||
10310 | wxPyEndAllowThreads(__tstate); | |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | } | |
093d3ff1 | 10313 | { |
32fe5131 | 10314 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 10315 | } |
d14a1e28 RD |
10316 | return resultobj; |
10317 | fail: | |
10318 | return NULL; | |
10319 | } | |
10320 | ||
10321 | ||
c32bde28 | 10322 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10323 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10324 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10325 | bool result; | |
10326 | PyObject * obj0 = 0 ; | |
10327 | char *kwnames[] = { | |
10328 | (char *) "self", NULL | |
10329 | }; | |
10330 | ||
10331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10332 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10333 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10334 | { |
10335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10336 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
10337 | ||
10338 | wxPyEndAllowThreads(__tstate); | |
10339 | if (PyErr_Occurred()) SWIG_fail; | |
10340 | } | |
4f89f6a3 RD |
10341 | { |
10342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10343 | } | |
d14a1e28 RD |
10344 | return resultobj; |
10345 | fail: | |
10346 | return NULL; | |
10347 | } | |
10348 | ||
10349 | ||
c32bde28 | 10350 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10351 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10352 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10353 | bool result; | |
10354 | PyObject * obj0 = 0 ; | |
10355 | char *kwnames[] = { | |
10356 | (char *) "self", NULL | |
10357 | }; | |
10358 | ||
10359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10362 | { |
10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10364 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
10365 | ||
10366 | wxPyEndAllowThreads(__tstate); | |
10367 | if (PyErr_Occurred()) SWIG_fail; | |
10368 | } | |
4f89f6a3 RD |
10369 | { |
10370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10371 | } | |
d14a1e28 RD |
10372 | return resultobj; |
10373 | fail: | |
10374 | return NULL; | |
10375 | } | |
10376 | ||
10377 | ||
c32bde28 | 10378 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10379 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10380 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10381 | bool result; | |
10382 | PyObject * obj0 = 0 ; | |
10383 | char *kwnames[] = { | |
10384 | (char *) "self", NULL | |
10385 | }; | |
10386 | ||
10387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10388 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10389 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10390 | { |
10391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10392 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
10393 | ||
10394 | wxPyEndAllowThreads(__tstate); | |
10395 | if (PyErr_Occurred()) SWIG_fail; | |
10396 | } | |
4f89f6a3 RD |
10397 | { |
10398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10399 | } | |
d14a1e28 RD |
10400 | return resultobj; |
10401 | fail: | |
10402 | return NULL; | |
10403 | } | |
10404 | ||
10405 | ||
c32bde28 | 10406 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10407 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10408 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10409 | bool result; | |
10410 | PyObject * obj0 = 0 ; | |
10411 | char *kwnames[] = { | |
10412 | (char *) "self", NULL | |
10413 | }; | |
10414 | ||
10415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10416 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10417 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10418 | { |
10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10420 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
10421 | ||
10422 | wxPyEndAllowThreads(__tstate); | |
10423 | if (PyErr_Occurred()) SWIG_fail; | |
10424 | } | |
4f89f6a3 RD |
10425 | { |
10426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10427 | } | |
d14a1e28 RD |
10428 | return resultobj; |
10429 | fail: | |
10430 | return NULL; | |
10431 | } | |
10432 | ||
10433 | ||
c32bde28 | 10434 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10435 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10436 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10437 | long *arg2 = (long *) 0 ; | |
10438 | long *arg3 = (long *) 0 ; | |
10439 | long temp2 ; | |
c32bde28 | 10440 | int res2 = 0 ; |
d14a1e28 | 10441 | long temp3 ; |
c32bde28 | 10442 | int res3 = 0 ; |
d14a1e28 RD |
10443 | PyObject * obj0 = 0 ; |
10444 | char *kwnames[] = { | |
10445 | (char *) "self", NULL | |
10446 | }; | |
10447 | ||
c32bde28 RD |
10448 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
10449 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d14a1e28 | 10450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
10451 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10452 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10453 | { |
10454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10455 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
10456 | ||
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
10461 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
10462 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
10463 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
10464 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
10465 | return resultobj; |
10466 | fail: | |
10467 | return NULL; | |
10468 | } | |
10469 | ||
10470 | ||
c32bde28 | 10471 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10472 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10473 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10474 | wxString result; | |
10475 | PyObject * obj0 = 0 ; | |
10476 | char *kwnames[] = { | |
10477 | (char *) "self", NULL | |
10478 | }; | |
10479 | ||
10480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10483 | { |
10484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10485 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
10486 | ||
10487 | wxPyEndAllowThreads(__tstate); | |
10488 | if (PyErr_Occurred()) SWIG_fail; | |
10489 | } | |
10490 | { | |
10491 | #if wxUSE_UNICODE | |
10492 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10493 | #else | |
10494 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10495 | #endif | |
10496 | } | |
10497 | return resultobj; | |
10498 | fail: | |
10499 | return NULL; | |
10500 | } | |
10501 | ||
10502 | ||
c32bde28 | 10503 | static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10504 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10505 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10506 | PyObject * obj0 = 0 ; | |
10507 | char *kwnames[] = { | |
10508 | (char *) "self", NULL | |
10509 | }; | |
10510 | ||
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10512 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10513 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10514 | { |
10515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10516 | (arg1)->Clear(); | |
10517 | ||
10518 | wxPyEndAllowThreads(__tstate); | |
10519 | if (PyErr_Occurred()) SWIG_fail; | |
10520 | } | |
10521 | Py_INCREF(Py_None); resultobj = Py_None; | |
10522 | return resultobj; | |
10523 | fail: | |
10524 | return NULL; | |
10525 | } | |
10526 | ||
10527 | ||
c32bde28 | 10528 | static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10529 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10530 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10531 | long arg2 ; | |
10532 | long arg3 ; | |
10533 | wxString *arg4 = 0 ; | |
ae8162c8 | 10534 | bool temp4 = false ; |
d14a1e28 | 10535 | PyObject * obj0 = 0 ; |
994141e6 RD |
10536 | PyObject * obj1 = 0 ; |
10537 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10538 | PyObject * obj3 = 0 ; |
10539 | char *kwnames[] = { | |
10540 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
10541 | }; | |
10542 | ||
994141e6 | 10543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10544 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10545 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10546 | { | |
32fe5131 | 10547 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10548 | if (SWIG_arg_fail(2)) SWIG_fail; |
10549 | } | |
10550 | { | |
32fe5131 | 10551 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
10552 | if (SWIG_arg_fail(3)) SWIG_fail; |
10553 | } | |
d14a1e28 RD |
10554 | { |
10555 | arg4 = wxString_in_helper(obj3); | |
10556 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 10557 | temp4 = true; |
d14a1e28 RD |
10558 | } |
10559 | { | |
10560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10561 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
10562 | ||
10563 | wxPyEndAllowThreads(__tstate); | |
10564 | if (PyErr_Occurred()) SWIG_fail; | |
10565 | } | |
10566 | Py_INCREF(Py_None); resultobj = Py_None; | |
10567 | { | |
10568 | if (temp4) | |
10569 | delete arg4; | |
10570 | } | |
10571 | return resultobj; | |
10572 | fail: | |
10573 | { | |
10574 | if (temp4) | |
10575 | delete arg4; | |
10576 | } | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
c32bde28 | 10581 | static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10582 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10583 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10584 | long arg2 ; | |
10585 | long arg3 ; | |
10586 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10587 | PyObject * obj1 = 0 ; |
10588 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10589 | char *kwnames[] = { |
10590 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10591 | }; | |
10592 | ||
994141e6 | 10593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10596 | { | |
32fe5131 | 10597 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10598 | if (SWIG_arg_fail(2)) SWIG_fail; |
10599 | } | |
10600 | { | |
32fe5131 | 10601 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
10602 | if (SWIG_arg_fail(3)) SWIG_fail; |
10603 | } | |
d14a1e28 RD |
10604 | { |
10605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10606 | (arg1)->Remove(arg2,arg3); | |
10607 | ||
10608 | wxPyEndAllowThreads(__tstate); | |
10609 | if (PyErr_Occurred()) SWIG_fail; | |
10610 | } | |
10611 | Py_INCREF(Py_None); resultobj = Py_None; | |
10612 | return resultobj; | |
10613 | fail: | |
10614 | return NULL; | |
10615 | } | |
10616 | ||
10617 | ||
c32bde28 | 10618 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10619 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10620 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10621 | wxString *arg2 = 0 ; | |
10622 | bool result; | |
ae8162c8 | 10623 | bool temp2 = false ; |
d14a1e28 RD |
10624 | PyObject * obj0 = 0 ; |
10625 | PyObject * obj1 = 0 ; | |
10626 | char *kwnames[] = { | |
10627 | (char *) "self",(char *) "file", NULL | |
10628 | }; | |
10629 | ||
10630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10633 | { |
10634 | arg2 = wxString_in_helper(obj1); | |
10635 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10636 | temp2 = true; |
d14a1e28 RD |
10637 | } |
10638 | { | |
10639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10640 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
10641 | ||
10642 | wxPyEndAllowThreads(__tstate); | |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
10644 | } | |
4f89f6a3 RD |
10645 | { |
10646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10647 | } | |
d14a1e28 RD |
10648 | { |
10649 | if (temp2) | |
10650 | delete arg2; | |
10651 | } | |
10652 | return resultobj; | |
10653 | fail: | |
10654 | { | |
10655 | if (temp2) | |
10656 | delete arg2; | |
10657 | } | |
10658 | return NULL; | |
10659 | } | |
10660 | ||
10661 | ||
c32bde28 | 10662 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10663 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10664 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10665 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
10666 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
10667 | bool result; | |
ae8162c8 | 10668 | bool temp2 = false ; |
d14a1e28 RD |
10669 | PyObject * obj0 = 0 ; |
10670 | PyObject * obj1 = 0 ; | |
10671 | char *kwnames[] = { | |
10672 | (char *) "self",(char *) "file", NULL | |
10673 | }; | |
10674 | ||
10675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10676 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10677 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10678 | if (obj1) { |
10679 | { | |
10680 | arg2 = wxString_in_helper(obj1); | |
10681 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10682 | temp2 = true; |
d14a1e28 RD |
10683 | } |
10684 | } | |
10685 | { | |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
10688 | ||
10689 | wxPyEndAllowThreads(__tstate); | |
10690 | if (PyErr_Occurred()) SWIG_fail; | |
10691 | } | |
4f89f6a3 RD |
10692 | { |
10693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10694 | } | |
d14a1e28 RD |
10695 | { |
10696 | if (temp2) | |
10697 | delete arg2; | |
10698 | } | |
10699 | return resultobj; | |
10700 | fail: | |
10701 | { | |
10702 | if (temp2) | |
10703 | delete arg2; | |
10704 | } | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
c32bde28 | 10709 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10710 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10711 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10712 | PyObject * obj0 = 0 ; | |
10713 | char *kwnames[] = { | |
10714 | (char *) "self", NULL | |
10715 | }; | |
10716 | ||
10717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10720 | { |
10721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10722 | (arg1)->MarkDirty(); | |
10723 | ||
10724 | wxPyEndAllowThreads(__tstate); | |
10725 | if (PyErr_Occurred()) SWIG_fail; | |
10726 | } | |
10727 | Py_INCREF(Py_None); resultobj = Py_None; | |
10728 | return resultobj; | |
10729 | fail: | |
10730 | return NULL; | |
10731 | } | |
10732 | ||
10733 | ||
c32bde28 | 10734 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10735 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10736 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10737 | PyObject * obj0 = 0 ; | |
10738 | char *kwnames[] = { | |
10739 | (char *) "self", NULL | |
10740 | }; | |
10741 | ||
10742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
10743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10745 | { |
10746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10747 | (arg1)->DiscardEdits(); | |
10748 | ||
10749 | wxPyEndAllowThreads(__tstate); | |
10750 | if (PyErr_Occurred()) SWIG_fail; | |
10751 | } | |
10752 | Py_INCREF(Py_None); resultobj = Py_None; | |
10753 | return resultobj; | |
10754 | fail: | |
10755 | return NULL; | |
10756 | } | |
10757 | ||
10758 | ||
c32bde28 | 10759 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10760 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10761 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10762 | unsigned long arg2 ; | |
10763 | PyObject * obj0 = 0 ; | |
10764 | PyObject * obj1 = 0 ; | |
10765 | char *kwnames[] = { | |
10766 | (char *) "self",(char *) "len", NULL | |
10767 | }; | |
10768 | ||
10769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10772 | { | |
32fe5131 | 10773 | arg2 = static_cast<unsigned long >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
10774 | if (SWIG_arg_fail(2)) SWIG_fail; |
10775 | } | |
d14a1e28 RD |
10776 | { |
10777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10778 | (arg1)->SetMaxLength(arg2); | |
10779 | ||
10780 | wxPyEndAllowThreads(__tstate); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | } | |
10783 | Py_INCREF(Py_None); resultobj = Py_None; | |
10784 | return resultobj; | |
10785 | fail: | |
10786 | return NULL; | |
10787 | } | |
10788 | ||
10789 | ||
c32bde28 | 10790 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10791 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10792 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10793 | wxString *arg2 = 0 ; | |
ae8162c8 | 10794 | bool temp2 = false ; |
d14a1e28 RD |
10795 | PyObject * obj0 = 0 ; |
10796 | PyObject * obj1 = 0 ; | |
10797 | char *kwnames[] = { | |
10798 | (char *) "self",(char *) "text", NULL | |
10799 | }; | |
10800 | ||
10801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10802 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10803 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10804 | { |
10805 | arg2 = wxString_in_helper(obj1); | |
10806 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10807 | temp2 = true; |
d14a1e28 RD |
10808 | } |
10809 | { | |
10810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10811 | (arg1)->WriteText((wxString const &)*arg2); | |
10812 | ||
10813 | wxPyEndAllowThreads(__tstate); | |
10814 | if (PyErr_Occurred()) SWIG_fail; | |
10815 | } | |
10816 | Py_INCREF(Py_None); resultobj = Py_None; | |
10817 | { | |
10818 | if (temp2) | |
10819 | delete arg2; | |
10820 | } | |
10821 | return resultobj; | |
10822 | fail: | |
10823 | { | |
10824 | if (temp2) | |
10825 | delete arg2; | |
10826 | } | |
10827 | return NULL; | |
10828 | } | |
10829 | ||
10830 | ||
c32bde28 | 10831 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10832 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10833 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10834 | wxString *arg2 = 0 ; | |
ae8162c8 | 10835 | bool temp2 = false ; |
d14a1e28 RD |
10836 | PyObject * obj0 = 0 ; |
10837 | PyObject * obj1 = 0 ; | |
10838 | char *kwnames[] = { | |
10839 | (char *) "self",(char *) "text", NULL | |
10840 | }; | |
10841 | ||
10842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
10845 | { |
10846 | arg2 = wxString_in_helper(obj1); | |
10847 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 10848 | temp2 = true; |
d14a1e28 RD |
10849 | } |
10850 | { | |
10851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10852 | (arg1)->AppendText((wxString const &)*arg2); | |
10853 | ||
10854 | wxPyEndAllowThreads(__tstate); | |
10855 | if (PyErr_Occurred()) SWIG_fail; | |
10856 | } | |
10857 | Py_INCREF(Py_None); resultobj = Py_None; | |
10858 | { | |
10859 | if (temp2) | |
10860 | delete arg2; | |
10861 | } | |
10862 | return resultobj; | |
10863 | fail: | |
10864 | { | |
10865 | if (temp2) | |
10866 | delete arg2; | |
10867 | } | |
10868 | return NULL; | |
10869 | } | |
10870 | ||
10871 | ||
c32bde28 | 10872 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10873 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10874 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10875 | wxKeyEvent *arg2 = 0 ; | |
10876 | bool result; | |
10877 | PyObject * obj0 = 0 ; | |
10878 | PyObject * obj1 = 0 ; | |
10879 | char *kwnames[] = { | |
10880 | (char *) "self",(char *) "event", NULL | |
10881 | }; | |
10882 | ||
10883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
10884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10886 | { | |
10887 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
10888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
10889 | if (arg2 == NULL) { | |
10890 | SWIG_null_ref("wxKeyEvent"); | |
10891 | } | |
10892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
10893 | } |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
10897 | ||
10898 | wxPyEndAllowThreads(__tstate); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | } | |
4f89f6a3 RD |
10901 | { |
10902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10903 | } | |
d14a1e28 RD |
10904 | return resultobj; |
10905 | fail: | |
10906 | return NULL; | |
10907 | } | |
10908 | ||
10909 | ||
c32bde28 | 10910 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10911 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10912 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10913 | long arg2 ; | |
10914 | long arg3 ; | |
10915 | wxTextAttr *arg4 = 0 ; | |
10916 | bool result; | |
10917 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10918 | PyObject * obj1 = 0 ; |
10919 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10920 | PyObject * obj3 = 0 ; |
10921 | char *kwnames[] = { | |
10922 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
10923 | }; | |
10924 | ||
994141e6 | 10925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
10926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10928 | { | |
32fe5131 | 10929 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10930 | if (SWIG_arg_fail(2)) SWIG_fail; |
10931 | } | |
10932 | { | |
32fe5131 | 10933 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
10934 | if (SWIG_arg_fail(3)) SWIG_fail; |
10935 | } | |
10936 | { | |
10937 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10938 | if (SWIG_arg_fail(4)) SWIG_fail; | |
10939 | if (arg4 == NULL) { | |
10940 | SWIG_null_ref("wxTextAttr"); | |
10941 | } | |
10942 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
10943 | } |
10944 | { | |
10945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10946 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
10947 | ||
10948 | wxPyEndAllowThreads(__tstate); | |
10949 | if (PyErr_Occurred()) SWIG_fail; | |
10950 | } | |
4f89f6a3 RD |
10951 | { |
10952 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10953 | } | |
d14a1e28 RD |
10954 | return resultobj; |
10955 | fail: | |
10956 | return NULL; | |
10957 | } | |
10958 | ||
10959 | ||
c32bde28 | 10960 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 10961 | PyObject *resultobj = NULL; |
d14a1e28 RD |
10962 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
10963 | long arg2 ; | |
10964 | wxTextAttr *arg3 = 0 ; | |
10965 | bool result; | |
10966 | PyObject * obj0 = 0 ; | |
994141e6 | 10967 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10968 | PyObject * obj2 = 0 ; |
10969 | char *kwnames[] = { | |
10970 | (char *) "self",(char *) "position",(char *) "style", NULL | |
10971 | }; | |
10972 | ||
994141e6 | 10973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
10974 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
10975 | if (SWIG_arg_fail(1)) SWIG_fail; | |
10976 | { | |
32fe5131 | 10977 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
10978 | if (SWIG_arg_fail(2)) SWIG_fail; |
10979 | } | |
10980 | { | |
10981 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
10982 | if (SWIG_arg_fail(3)) SWIG_fail; | |
10983 | if (arg3 == NULL) { | |
10984 | SWIG_null_ref("wxTextAttr"); | |
10985 | } | |
10986 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
10987 | } |
10988 | { | |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
4f89f6a3 RD |
10995 | { |
10996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10997 | } | |
d14a1e28 RD |
10998 | return resultobj; |
10999 | fail: | |
11000 | return NULL; | |
11001 | } | |
11002 | ||
11003 | ||
c32bde28 | 11004 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11005 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11006 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11007 | wxTextAttr *arg2 = 0 ; | |
11008 | bool result; | |
11009 | PyObject * obj0 = 0 ; | |
11010 | PyObject * obj1 = 0 ; | |
11011 | char *kwnames[] = { | |
11012 | (char *) "self",(char *) "style", NULL | |
11013 | }; | |
11014 | ||
11015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11018 | { | |
11019 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTextAttr, SWIG_POINTER_EXCEPTION | 0); | |
11020 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11021 | if (arg2 == NULL) { | |
11022 | SWIG_null_ref("wxTextAttr"); | |
11023 | } | |
11024 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
11025 | } |
11026 | { | |
11027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11028 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
11029 | ||
11030 | wxPyEndAllowThreads(__tstate); | |
11031 | if (PyErr_Occurred()) SWIG_fail; | |
11032 | } | |
4f89f6a3 RD |
11033 | { |
11034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11035 | } | |
d14a1e28 RD |
11036 | return resultobj; |
11037 | fail: | |
11038 | return NULL; | |
11039 | } | |
11040 | ||
11041 | ||
c32bde28 | 11042 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11043 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11044 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11045 | wxTextAttr *result; | |
11046 | PyObject * obj0 = 0 ; | |
11047 | char *kwnames[] = { | |
11048 | (char *) "self", NULL | |
11049 | }; | |
11050 | ||
11051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11054 | { |
11055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11056 | { | |
11057 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
11058 | result = (wxTextAttr *) &_result_ref; | |
11059 | } | |
11060 | ||
11061 | wxPyEndAllowThreads(__tstate); | |
11062 | if (PyErr_Occurred()) SWIG_fail; | |
11063 | } | |
15afbcd0 | 11064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
11065 | return resultobj; |
11066 | fail: | |
11067 | return NULL; | |
11068 | } | |
11069 | ||
11070 | ||
c32bde28 | 11071 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11072 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11073 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11074 | long arg2 ; | |
11075 | long arg3 ; | |
11076 | long result; | |
11077 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11078 | PyObject * obj1 = 0 ; |
11079 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11080 | char *kwnames[] = { |
11081 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11082 | }; | |
11083 | ||
994141e6 | 11084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11085 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11086 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11087 | { | |
32fe5131 | 11088 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11089 | if (SWIG_arg_fail(2)) SWIG_fail; |
11090 | } | |
11091 | { | |
32fe5131 | 11092 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
11093 | if (SWIG_arg_fail(3)) SWIG_fail; |
11094 | } | |
d14a1e28 RD |
11095 | { |
11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11097 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
11098 | ||
11099 | wxPyEndAllowThreads(__tstate); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
093d3ff1 | 11102 | { |
32fe5131 | 11103 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11104 | } |
d14a1e28 RD |
11105 | return resultobj; |
11106 | fail: | |
11107 | return NULL; | |
11108 | } | |
11109 | ||
11110 | ||
c32bde28 | 11111 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11112 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11113 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11114 | long arg2 ; | |
11115 | long *arg3 = (long *) 0 ; | |
11116 | long *arg4 = (long *) 0 ; | |
11117 | long temp3 ; | |
c32bde28 | 11118 | int res3 = 0 ; |
d14a1e28 | 11119 | long temp4 ; |
c32bde28 | 11120 | int res4 = 0 ; |
d14a1e28 | 11121 | PyObject * obj0 = 0 ; |
994141e6 | 11122 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11123 | char *kwnames[] = { |
11124 | (char *) "self",(char *) "pos", NULL | |
11125 | }; | |
11126 | ||
c32bde28 RD |
11127 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
11128 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
994141e6 | 11129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11130 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11131 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11132 | { | |
32fe5131 | 11133 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11134 | if (SWIG_arg_fail(2)) SWIG_fail; |
11135 | } | |
d14a1e28 RD |
11136 | { |
11137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11138 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
11139 | ||
11140 | wxPyEndAllowThreads(__tstate); | |
11141 | if (PyErr_Occurred()) SWIG_fail; | |
11142 | } | |
11143 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
11144 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11145 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
11146 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
11147 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
11148 | return resultobj; |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
c32bde28 | 11154 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11155 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11156 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11157 | long arg2 ; | |
11158 | PyObject * obj0 = 0 ; | |
994141e6 | 11159 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11160 | char *kwnames[] = { |
11161 | (char *) "self",(char *) "pos", NULL | |
11162 | }; | |
11163 | ||
994141e6 | 11164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11165 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11166 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11167 | { | |
32fe5131 | 11168 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11169 | if (SWIG_arg_fail(2)) SWIG_fail; |
11170 | } | |
d14a1e28 RD |
11171 | { |
11172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11173 | (arg1)->ShowPosition(arg2); | |
11174 | ||
11175 | wxPyEndAllowThreads(__tstate); | |
11176 | if (PyErr_Occurred()) SWIG_fail; | |
11177 | } | |
11178 | Py_INCREF(Py_None); resultobj = Py_None; | |
11179 | return resultobj; | |
11180 | fail: | |
11181 | return NULL; | |
11182 | } | |
11183 | ||
11184 | ||
c32bde28 | 11185 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11186 | PyObject *resultobj = NULL; |
4d5c3d91 RD |
11187 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11188 | wxPoint *arg2 = 0 ; | |
11189 | long *arg3 = (long *) 0 ; | |
11190 | long *arg4 = (long *) 0 ; | |
093d3ff1 | 11191 | wxTextCtrlHitTestResult result; |
4d5c3d91 RD |
11192 | wxPoint temp2 ; |
11193 | long temp3 ; | |
c32bde28 | 11194 | int res3 = 0 ; |
4d5c3d91 | 11195 | long temp4 ; |
c32bde28 | 11196 | int res4 = 0 ; |
4d5c3d91 RD |
11197 | PyObject * obj0 = 0 ; |
11198 | PyObject * obj1 = 0 ; | |
11199 | char *kwnames[] = { | |
11200 | (char *) "self",(char *) "pt", NULL | |
11201 | }; | |
11202 | ||
c32bde28 RD |
11203 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
11204 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
4d5c3d91 | 11205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4d5c3d91 RD |
11208 | { |
11209 | arg2 = &temp2; | |
11210 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11211 | } | |
11212 | { | |
11213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11214 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); |
4d5c3d91 RD |
11215 | |
11216 | wxPyEndAllowThreads(__tstate); | |
11217 | if (PyErr_Occurred()) SWIG_fail; | |
11218 | } | |
093d3ff1 | 11219 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11220 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11221 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
11222 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
11223 | SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0))); | |
4d5c3d91 RD |
11224 | return resultobj; |
11225 | fail: | |
11226 | return NULL; | |
11227 | } | |
11228 | ||
11229 | ||
c32bde28 | 11230 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11231 | PyObject *resultobj = NULL; |
4896ac9e RD |
11232 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11233 | wxPoint *arg2 = 0 ; | |
11234 | long *arg3 = (long *) 0 ; | |
093d3ff1 | 11235 | wxTextCtrlHitTestResult result; |
4896ac9e RD |
11236 | wxPoint temp2 ; |
11237 | long temp3 ; | |
c32bde28 | 11238 | int res3 = 0 ; |
4896ac9e RD |
11239 | PyObject * obj0 = 0 ; |
11240 | PyObject * obj1 = 0 ; | |
11241 | char *kwnames[] = { | |
11242 | (char *) "self",(char *) "pt", NULL | |
11243 | }; | |
11244 | ||
c32bde28 | 11245 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
4896ac9e | 11246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11247 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4896ac9e RD |
11249 | { |
11250 | arg2 = &temp2; | |
11251 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11252 | } | |
11253 | { | |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 11255 | result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); |
4896ac9e RD |
11256 | |
11257 | wxPyEndAllowThreads(__tstate); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | } | |
093d3ff1 | 11260 | resultobj = SWIG_From_int((result)); |
c32bde28 RD |
11261 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
11262 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
4896ac9e RD |
11263 | return resultobj; |
11264 | fail: | |
11265 | return NULL; | |
11266 | } | |
11267 | ||
11268 | ||
c32bde28 | 11269 | static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11270 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11271 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11272 | PyObject * obj0 = 0 ; | |
11273 | char *kwnames[] = { | |
11274 | (char *) "self", NULL | |
11275 | }; | |
11276 | ||
11277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11278 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11279 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11280 | { |
11281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11282 | (arg1)->Copy(); | |
11283 | ||
11284 | wxPyEndAllowThreads(__tstate); | |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
11286 | } | |
11287 | Py_INCREF(Py_None); resultobj = Py_None; | |
11288 | return resultobj; | |
11289 | fail: | |
11290 | return NULL; | |
11291 | } | |
11292 | ||
11293 | ||
c32bde28 | 11294 | static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11295 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11296 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11297 | PyObject * obj0 = 0 ; | |
11298 | char *kwnames[] = { | |
11299 | (char *) "self", NULL | |
11300 | }; | |
11301 | ||
11302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11303 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11304 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11305 | { |
11306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11307 | (arg1)->Cut(); | |
11308 | ||
11309 | wxPyEndAllowThreads(__tstate); | |
11310 | if (PyErr_Occurred()) SWIG_fail; | |
11311 | } | |
11312 | Py_INCREF(Py_None); resultobj = Py_None; | |
11313 | return resultobj; | |
11314 | fail: | |
11315 | return NULL; | |
11316 | } | |
11317 | ||
11318 | ||
c32bde28 | 11319 | static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11320 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11321 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11322 | PyObject * obj0 = 0 ; | |
11323 | char *kwnames[] = { | |
11324 | (char *) "self", NULL | |
11325 | }; | |
11326 | ||
11327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11328 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11329 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11330 | { |
11331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11332 | (arg1)->Paste(); | |
11333 | ||
11334 | wxPyEndAllowThreads(__tstate); | |
11335 | if (PyErr_Occurred()) SWIG_fail; | |
11336 | } | |
11337 | Py_INCREF(Py_None); resultobj = Py_None; | |
11338 | return resultobj; | |
11339 | fail: | |
11340 | return NULL; | |
11341 | } | |
11342 | ||
11343 | ||
c32bde28 | 11344 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11345 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11346 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11347 | bool result; | |
11348 | PyObject * obj0 = 0 ; | |
11349 | char *kwnames[] = { | |
11350 | (char *) "self", NULL | |
11351 | }; | |
11352 | ||
11353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11354 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11355 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11356 | { |
11357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11358 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
11359 | ||
11360 | wxPyEndAllowThreads(__tstate); | |
11361 | if (PyErr_Occurred()) SWIG_fail; | |
11362 | } | |
4f89f6a3 RD |
11363 | { |
11364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11365 | } | |
d14a1e28 RD |
11366 | return resultobj; |
11367 | fail: | |
11368 | return NULL; | |
11369 | } | |
11370 | ||
11371 | ||
c32bde28 | 11372 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11373 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11374 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11375 | bool result; | |
11376 | PyObject * obj0 = 0 ; | |
11377 | char *kwnames[] = { | |
11378 | (char *) "self", NULL | |
11379 | }; | |
11380 | ||
11381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11382 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11383 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11384 | { |
11385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11386 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
11387 | ||
11388 | wxPyEndAllowThreads(__tstate); | |
11389 | if (PyErr_Occurred()) SWIG_fail; | |
11390 | } | |
4f89f6a3 RD |
11391 | { |
11392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11393 | } | |
d14a1e28 RD |
11394 | return resultobj; |
11395 | fail: | |
11396 | return NULL; | |
11397 | } | |
11398 | ||
11399 | ||
c32bde28 | 11400 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11401 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11402 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11403 | bool result; | |
11404 | PyObject * obj0 = 0 ; | |
11405 | char *kwnames[] = { | |
11406 | (char *) "self", NULL | |
11407 | }; | |
11408 | ||
11409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11412 | { |
11413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11414 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
11415 | ||
11416 | wxPyEndAllowThreads(__tstate); | |
11417 | if (PyErr_Occurred()) SWIG_fail; | |
11418 | } | |
4f89f6a3 RD |
11419 | { |
11420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11421 | } | |
d14a1e28 RD |
11422 | return resultobj; |
11423 | fail: | |
11424 | return NULL; | |
11425 | } | |
11426 | ||
11427 | ||
c32bde28 | 11428 | static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11429 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11430 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11431 | PyObject * obj0 = 0 ; | |
11432 | char *kwnames[] = { | |
11433 | (char *) "self", NULL | |
11434 | }; | |
11435 | ||
11436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11437 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11438 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11439 | { |
11440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11441 | (arg1)->Undo(); | |
11442 | ||
11443 | wxPyEndAllowThreads(__tstate); | |
11444 | if (PyErr_Occurred()) SWIG_fail; | |
11445 | } | |
11446 | Py_INCREF(Py_None); resultobj = Py_None; | |
11447 | return resultobj; | |
11448 | fail: | |
11449 | return NULL; | |
11450 | } | |
11451 | ||
11452 | ||
c32bde28 | 11453 | static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11454 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11455 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11456 | PyObject * obj0 = 0 ; | |
11457 | char *kwnames[] = { | |
11458 | (char *) "self", NULL | |
11459 | }; | |
11460 | ||
11461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11462 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11463 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11464 | { |
11465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11466 | (arg1)->Redo(); | |
11467 | ||
11468 | wxPyEndAllowThreads(__tstate); | |
11469 | if (PyErr_Occurred()) SWIG_fail; | |
11470 | } | |
11471 | Py_INCREF(Py_None); resultobj = Py_None; | |
11472 | return resultobj; | |
11473 | fail: | |
11474 | return NULL; | |
11475 | } | |
11476 | ||
11477 | ||
c32bde28 | 11478 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11479 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11480 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11481 | bool result; | |
11482 | PyObject * obj0 = 0 ; | |
11483 | char *kwnames[] = { | |
11484 | (char *) "self", NULL | |
11485 | }; | |
11486 | ||
11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11488 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11489 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11490 | { |
11491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11492 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
11493 | ||
11494 | wxPyEndAllowThreads(__tstate); | |
11495 | if (PyErr_Occurred()) SWIG_fail; | |
11496 | } | |
4f89f6a3 RD |
11497 | { |
11498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11499 | } | |
d14a1e28 RD |
11500 | return resultobj; |
11501 | fail: | |
11502 | return NULL; | |
11503 | } | |
11504 | ||
11505 | ||
c32bde28 | 11506 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11507 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11508 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11509 | bool result; | |
11510 | PyObject * obj0 = 0 ; | |
11511 | char *kwnames[] = { | |
11512 | (char *) "self", NULL | |
11513 | }; | |
11514 | ||
11515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11518 | { |
11519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11520 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
11521 | ||
11522 | wxPyEndAllowThreads(__tstate); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
4f89f6a3 RD |
11525 | { |
11526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11527 | } | |
d14a1e28 RD |
11528 | return resultobj; |
11529 | fail: | |
11530 | return NULL; | |
11531 | } | |
11532 | ||
11533 | ||
c32bde28 | 11534 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11535 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11536 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11537 | long arg2 ; | |
11538 | PyObject * obj0 = 0 ; | |
994141e6 | 11539 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11540 | char *kwnames[] = { |
11541 | (char *) "self",(char *) "pos", NULL | |
11542 | }; | |
11543 | ||
994141e6 | 11544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
11545 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11546 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11547 | { | |
32fe5131 | 11548 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11549 | if (SWIG_arg_fail(2)) SWIG_fail; |
11550 | } | |
d14a1e28 RD |
11551 | { |
11552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11553 | (arg1)->SetInsertionPoint(arg2); | |
11554 | ||
11555 | wxPyEndAllowThreads(__tstate); | |
11556 | if (PyErr_Occurred()) SWIG_fail; | |
11557 | } | |
11558 | Py_INCREF(Py_None); resultobj = Py_None; | |
11559 | return resultobj; | |
11560 | fail: | |
11561 | return NULL; | |
11562 | } | |
11563 | ||
11564 | ||
c32bde28 | 11565 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11566 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11567 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11568 | PyObject * obj0 = 0 ; | |
11569 | char *kwnames[] = { | |
11570 | (char *) "self", NULL | |
11571 | }; | |
11572 | ||
11573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11574 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11575 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11576 | { |
11577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11578 | (arg1)->SetInsertionPointEnd(); | |
11579 | ||
11580 | wxPyEndAllowThreads(__tstate); | |
11581 | if (PyErr_Occurred()) SWIG_fail; | |
11582 | } | |
11583 | Py_INCREF(Py_None); resultobj = Py_None; | |
11584 | return resultobj; | |
11585 | fail: | |
11586 | return NULL; | |
11587 | } | |
11588 | ||
11589 | ||
c32bde28 | 11590 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11591 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11592 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11593 | long result; | |
11594 | PyObject * obj0 = 0 ; | |
11595 | char *kwnames[] = { | |
11596 | (char *) "self", NULL | |
11597 | }; | |
11598 | ||
11599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11602 | { |
11603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11604 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
11605 | ||
11606 | wxPyEndAllowThreads(__tstate); | |
11607 | if (PyErr_Occurred()) SWIG_fail; | |
11608 | } | |
093d3ff1 | 11609 | { |
32fe5131 | 11610 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11611 | } |
d14a1e28 RD |
11612 | return resultobj; |
11613 | fail: | |
11614 | return NULL; | |
11615 | } | |
11616 | ||
11617 | ||
c32bde28 | 11618 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11619 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11620 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11621 | long result; | |
11622 | PyObject * obj0 = 0 ; | |
11623 | char *kwnames[] = { | |
11624 | (char *) "self", NULL | |
11625 | }; | |
11626 | ||
11627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11628 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11629 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11630 | { |
11631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11632 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
11633 | ||
11634 | wxPyEndAllowThreads(__tstate); | |
11635 | if (PyErr_Occurred()) SWIG_fail; | |
11636 | } | |
093d3ff1 | 11637 | { |
32fe5131 | 11638 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11639 | } |
d14a1e28 RD |
11640 | return resultobj; |
11641 | fail: | |
11642 | return NULL; | |
11643 | } | |
11644 | ||
11645 | ||
c32bde28 | 11646 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11647 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11648 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11649 | long arg2 ; | |
11650 | long arg3 ; | |
11651 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11652 | PyObject * obj1 = 0 ; |
11653 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11654 | char *kwnames[] = { |
11655 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11656 | }; | |
11657 | ||
994141e6 | 11658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11661 | { | |
32fe5131 | 11662 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11663 | if (SWIG_arg_fail(2)) SWIG_fail; |
11664 | } | |
11665 | { | |
32fe5131 | 11666 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
11667 | if (SWIG_arg_fail(3)) SWIG_fail; |
11668 | } | |
d14a1e28 RD |
11669 | { |
11670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11671 | (arg1)->SetSelection(arg2,arg3); | |
11672 | ||
11673 | wxPyEndAllowThreads(__tstate); | |
11674 | if (PyErr_Occurred()) SWIG_fail; | |
11675 | } | |
11676 | Py_INCREF(Py_None); resultobj = Py_None; | |
11677 | return resultobj; | |
11678 | fail: | |
11679 | return NULL; | |
11680 | } | |
11681 | ||
11682 | ||
c32bde28 | 11683 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11684 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11685 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11686 | PyObject * obj0 = 0 ; | |
11687 | char *kwnames[] = { | |
11688 | (char *) "self", NULL | |
11689 | }; | |
11690 | ||
11691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11694 | { |
11695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11696 | (arg1)->SelectAll(); | |
11697 | ||
11698 | wxPyEndAllowThreads(__tstate); | |
11699 | if (PyErr_Occurred()) SWIG_fail; | |
11700 | } | |
11701 | Py_INCREF(Py_None); resultobj = Py_None; | |
11702 | return resultobj; | |
11703 | fail: | |
11704 | return NULL; | |
11705 | } | |
11706 | ||
11707 | ||
c32bde28 | 11708 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11709 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11710 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11711 | bool arg2 ; | |
11712 | PyObject * obj0 = 0 ; | |
11713 | PyObject * obj1 = 0 ; | |
11714 | char *kwnames[] = { | |
11715 | (char *) "self",(char *) "editable", NULL | |
11716 | }; | |
11717 | ||
11718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11721 | { | |
32fe5131 | 11722 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
11723 | if (SWIG_arg_fail(2)) SWIG_fail; |
11724 | } | |
d14a1e28 RD |
11725 | { |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | (arg1)->SetEditable(arg2); | |
11728 | ||
11729 | wxPyEndAllowThreads(__tstate); | |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | Py_INCREF(Py_None); resultobj = Py_None; | |
11733 | return resultobj; | |
11734 | fail: | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
c32bde28 | 11739 | static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11740 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11741 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11742 | wxString *arg2 = 0 ; | |
ae8162c8 | 11743 | bool temp2 = false ; |
d14a1e28 RD |
11744 | PyObject * obj0 = 0 ; |
11745 | PyObject * obj1 = 0 ; | |
11746 | char *kwnames[] = { | |
11747 | (char *) "self",(char *) "text", NULL | |
11748 | }; | |
11749 | ||
11750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
11751 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11752 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11753 | { |
11754 | arg2 = wxString_in_helper(obj1); | |
11755 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 11756 | temp2 = true; |
d14a1e28 RD |
11757 | } |
11758 | { | |
11759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11760 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
11761 | ||
11762 | wxPyEndAllowThreads(__tstate); | |
11763 | if (PyErr_Occurred()) SWIG_fail; | |
11764 | } | |
11765 | Py_INCREF(Py_None); resultobj = Py_None; | |
11766 | { | |
11767 | if (temp2) | |
11768 | delete arg2; | |
11769 | } | |
11770 | return resultobj; | |
11771 | fail: | |
11772 | { | |
11773 | if (temp2) | |
11774 | delete arg2; | |
11775 | } | |
11776 | return NULL; | |
11777 | } | |
11778 | ||
11779 | ||
c32bde28 | 11780 | static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11781 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11782 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; |
11783 | long arg2 ; | |
11784 | long arg3 ; | |
11785 | wxString result; | |
11786 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11787 | PyObject * obj1 = 0 ; |
11788 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11789 | char *kwnames[] = { |
11790 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11791 | }; | |
11792 | ||
994141e6 | 11793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
11794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_EXCEPTION | 0); |
11795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
11796 | { | |
32fe5131 | 11797 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
11798 | if (SWIG_arg_fail(2)) SWIG_fail; |
11799 | } | |
11800 | { | |
32fe5131 | 11801 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
11802 | if (SWIG_arg_fail(3)) SWIG_fail; |
11803 | } | |
d14a1e28 RD |
11804 | { |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
11811 | { | |
11812 | #if wxUSE_UNICODE | |
11813 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11814 | #else | |
11815 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11816 | #endif | |
11817 | } | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | return NULL; | |
11821 | } | |
11822 | ||
11823 | ||
c32bde28 | 11824 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11825 | PyObject *resultobj = NULL; |
093d3ff1 | 11826 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
11827 | wxVisualAttributes result; |
11828 | PyObject * obj0 = 0 ; | |
11829 | char *kwnames[] = { | |
11830 | (char *) "variant", NULL | |
11831 | }; | |
11832 | ||
11833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11834 | if (obj0) { | |
093d3ff1 | 11835 | { |
32fe5131 | 11836 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11837 | if (SWIG_arg_fail(1)) SWIG_fail; |
11838 | } | |
22bfe96c RD |
11839 | } |
11840 | { | |
110da5b0 | 11841 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 11842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 11843 | result = wxTextCtrl::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
11844 | |
11845 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11846 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11847 | } |
11848 | { | |
11849 | wxVisualAttributes * resultptr; | |
32fe5131 | 11850 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
11851 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
11852 | } | |
11853 | return resultobj; | |
11854 | fail: | |
11855 | return NULL; | |
11856 | } | |
11857 | ||
11858 | ||
c32bde28 | 11859 | static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
11860 | PyObject *obj; |
11861 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11862 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
11863 | Py_INCREF(obj); | |
11864 | return Py_BuildValue((char *)""); | |
11865 | } | |
c32bde28 | 11866 | static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11867 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11868 | int arg1 ; |
11869 | wxMouseEvent *arg2 = 0 ; | |
11870 | long arg3 ; | |
11871 | long arg4 ; | |
11872 | wxTextUrlEvent *result; | |
994141e6 | 11873 | PyObject * obj0 = 0 ; |
d14a1e28 | 11874 | PyObject * obj1 = 0 ; |
994141e6 RD |
11875 | PyObject * obj2 = 0 ; |
11876 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11877 | char *kwnames[] = { |
11878 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
11879 | }; | |
11880 | ||
994141e6 | 11881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 | 11882 | { |
32fe5131 | 11883 | arg1 = static_cast<int >(SWIG_As_int(obj0)); |
093d3ff1 RD |
11884 | if (SWIG_arg_fail(1)) SWIG_fail; |
11885 | } | |
11886 | { | |
11887 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_EXCEPTION | 0); | |
11888 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11889 | if (arg2 == NULL) { | |
11890 | SWIG_null_ref("wxMouseEvent"); | |
11891 | } | |
11892 | if (SWIG_arg_fail(2)) SWIG_fail; | |
11893 | } | |
11894 | { | |
32fe5131 | 11895 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
11896 | if (SWIG_arg_fail(3)) SWIG_fail; |
11897 | } | |
11898 | { | |
32fe5131 | 11899 | arg4 = static_cast<long >(SWIG_As_long(obj3)); |
093d3ff1 | 11900 | if (SWIG_arg_fail(4)) SWIG_fail; |
994141e6 | 11901 | } |
d14a1e28 RD |
11902 | { |
11903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11904 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
11905 | ||
11906 | wxPyEndAllowThreads(__tstate); | |
11907 | if (PyErr_Occurred()) SWIG_fail; | |
11908 | } | |
15afbcd0 | 11909 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
11910 | return resultobj; |
11911 | fail: | |
11912 | return NULL; | |
11913 | } | |
11914 | ||
11915 | ||
c32bde28 | 11916 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11917 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11918 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; |
11919 | wxMouseEvent *result; | |
11920 | PyObject * obj0 = 0 ; | |
11921 | char *kwnames[] = { | |
11922 | (char *) "self", NULL | |
11923 | }; | |
11924 | ||
11925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11928 | { |
11929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11930 | { | |
11931 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
11932 | result = (wxMouseEvent *) &_result_ref; | |
11933 | } | |
11934 | ||
11935 | wxPyEndAllowThreads(__tstate); | |
11936 | if (PyErr_Occurred()) SWIG_fail; | |
11937 | } | |
15afbcd0 | 11938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
11939 | return resultobj; |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
c32bde28 | 11945 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11946 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11947 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; |
11948 | long result; | |
11949 | PyObject * obj0 = 0 ; | |
11950 | char *kwnames[] = { | |
11951 | (char *) "self", NULL | |
11952 | }; | |
11953 | ||
11954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11957 | { |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
093d3ff1 | 11964 | { |
32fe5131 | 11965 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11966 | } |
d14a1e28 RD |
11967 | return resultobj; |
11968 | fail: | |
11969 | return NULL; | |
11970 | } | |
11971 | ||
11972 | ||
c32bde28 | 11973 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 11974 | PyObject *resultobj = NULL; |
d14a1e28 RD |
11975 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; |
11976 | long result; | |
11977 | PyObject * obj0 = 0 ; | |
11978 | char *kwnames[] = { | |
11979 | (char *) "self", NULL | |
11980 | }; | |
11981 | ||
11982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
11983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_EXCEPTION | 0); |
11984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
11985 | { |
11986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11987 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
11988 | ||
11989 | wxPyEndAllowThreads(__tstate); | |
11990 | if (PyErr_Occurred()) SWIG_fail; | |
11991 | } | |
093d3ff1 | 11992 | { |
32fe5131 | 11993 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 11994 | } |
d14a1e28 RD |
11995 | return resultobj; |
11996 | fail: | |
11997 | return NULL; | |
11998 | } | |
11999 | ||
12000 | ||
c32bde28 | 12001 | static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12002 | PyObject *obj; |
12003 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12004 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
12005 | Py_INCREF(obj); | |
12006 | return Py_BuildValue((char *)""); | |
12007 | } | |
c32bde28 | 12008 | static int _wrap_ScrollBarNameStr_set(PyObject *) { |
b2dc1044 RD |
12009 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
12010 | return 1; | |
12011 | } | |
12012 | ||
12013 | ||
093d3ff1 | 12014 | static PyObject *_wrap_ScrollBarNameStr_get(void) { |
32fe5131 | 12015 | PyObject *pyobj = NULL; |
b2dc1044 RD |
12016 | |
12017 | { | |
12018 | #if wxUSE_UNICODE | |
12019 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
12020 | #else | |
12021 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
12022 | #endif | |
12023 | } | |
12024 | return pyobj; | |
12025 | } | |
12026 | ||
12027 | ||
c32bde28 | 12028 | static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12029 | PyObject *resultobj = NULL; |
d14a1e28 | 12030 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 12031 | int arg2 = (int) -1 ; |
d14a1e28 RD |
12032 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12033 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12034 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12035 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12036 | long arg5 = (long) wxSB_HORIZONTAL ; | |
12037 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
12038 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
12039 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
12040 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12041 | wxScrollBar *result; | |
12042 | wxPoint temp3 ; | |
12043 | wxSize temp4 ; | |
ae8162c8 | 12044 | bool temp7 = false ; |
d14a1e28 | 12045 | PyObject * obj0 = 0 ; |
994141e6 | 12046 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12047 | PyObject * obj2 = 0 ; |
12048 | PyObject * obj3 = 0 ; | |
994141e6 | 12049 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12050 | PyObject * obj5 = 0 ; |
12051 | PyObject * obj6 = 0 ; | |
12052 | char *kwnames[] = { | |
12053 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12054 | }; | |
12055 | ||
994141e6 | 12056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
12057 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12058 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 12059 | if (obj1) { |
093d3ff1 | 12060 | { |
32fe5131 | 12061 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12062 | if (SWIG_arg_fail(2)) SWIG_fail; |
12063 | } | |
994141e6 | 12064 | } |
d14a1e28 RD |
12065 | if (obj2) { |
12066 | { | |
12067 | arg3 = &temp3; | |
12068 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12069 | } | |
12070 | } | |
12071 | if (obj3) { | |
12072 | { | |
12073 | arg4 = &temp4; | |
12074 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12075 | } | |
12076 | } | |
994141e6 | 12077 | if (obj4) { |
093d3ff1 | 12078 | { |
32fe5131 | 12079 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
12080 | if (SWIG_arg_fail(5)) SWIG_fail; |
12081 | } | |
994141e6 | 12082 | } |
d14a1e28 | 12083 | if (obj5) { |
093d3ff1 RD |
12084 | { |
12085 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
12086 | if (SWIG_arg_fail(6)) SWIG_fail; | |
12087 | if (arg6 == NULL) { | |
12088 | SWIG_null_ref("wxValidator"); | |
12089 | } | |
12090 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
12091 | } |
12092 | } | |
12093 | if (obj6) { | |
12094 | { | |
12095 | arg7 = wxString_in_helper(obj6); | |
12096 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 12097 | temp7 = true; |
d14a1e28 RD |
12098 | } |
12099 | } | |
12100 | { | |
e3b71cb8 | 12101 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12103 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
12104 | ||
12105 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12106 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12107 | } |
15afbcd0 | 12108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
12109 | { |
12110 | if (temp7) | |
12111 | delete arg7; | |
12112 | } | |
12113 | return resultobj; | |
12114 | fail: | |
12115 | { | |
12116 | if (temp7) | |
12117 | delete arg7; | |
12118 | } | |
12119 | return NULL; | |
12120 | } | |
12121 | ||
12122 | ||
c32bde28 | 12123 | static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12124 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12125 | wxScrollBar *result; |
12126 | char *kwnames[] = { | |
12127 | NULL | |
12128 | }; | |
12129 | ||
12130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
12131 | { | |
e3b71cb8 | 12132 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12134 | result = (wxScrollBar *)new wxScrollBar(); | |
12135 | ||
12136 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12137 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12138 | } |
15afbcd0 | 12139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
12140 | return resultobj; |
12141 | fail: | |
12142 | return NULL; | |
12143 | } | |
12144 | ||
12145 | ||
c32bde28 | 12146 | static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12147 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12148 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12149 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12150 | int arg3 = (int) -1 ; |
d14a1e28 RD |
12151 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12152 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12153 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12154 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12155 | long arg6 = (long) wxSB_HORIZONTAL ; | |
12156 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12157 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12158 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
12159 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12160 | bool result; | |
12161 | wxPoint temp4 ; | |
12162 | wxSize temp5 ; | |
ae8162c8 | 12163 | bool temp8 = false ; |
d14a1e28 RD |
12164 | PyObject * obj0 = 0 ; |
12165 | PyObject * obj1 = 0 ; | |
994141e6 | 12166 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12167 | PyObject * obj3 = 0 ; |
12168 | PyObject * obj4 = 0 ; | |
994141e6 | 12169 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12170 | PyObject * obj6 = 0 ; |
12171 | PyObject * obj7 = 0 ; | |
12172 | char *kwnames[] = { | |
12173 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12174 | }; | |
12175 | ||
994141e6 | 12176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
12177 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12178 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12179 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12180 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12181 | if (obj2) { |
093d3ff1 | 12182 | { |
32fe5131 | 12183 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12184 | if (SWIG_arg_fail(3)) SWIG_fail; |
12185 | } | |
994141e6 | 12186 | } |
d14a1e28 RD |
12187 | if (obj3) { |
12188 | { | |
12189 | arg4 = &temp4; | |
12190 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12191 | } | |
12192 | } | |
12193 | if (obj4) { | |
12194 | { | |
12195 | arg5 = &temp5; | |
12196 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12197 | } | |
12198 | } | |
994141e6 | 12199 | if (obj5) { |
093d3ff1 | 12200 | { |
32fe5131 | 12201 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
12202 | if (SWIG_arg_fail(6)) SWIG_fail; |
12203 | } | |
994141e6 | 12204 | } |
d14a1e28 | 12205 | if (obj6) { |
093d3ff1 RD |
12206 | { |
12207 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
12208 | if (SWIG_arg_fail(7)) SWIG_fail; | |
12209 | if (arg7 == NULL) { | |
12210 | SWIG_null_ref("wxValidator"); | |
12211 | } | |
12212 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
12213 | } |
12214 | } | |
12215 | if (obj7) { | |
12216 | { | |
12217 | arg8 = wxString_in_helper(obj7); | |
12218 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 12219 | temp8 = true; |
d14a1e28 RD |
12220 | } |
12221 | } | |
12222 | { | |
12223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12224 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12225 | ||
12226 | wxPyEndAllowThreads(__tstate); | |
12227 | if (PyErr_Occurred()) SWIG_fail; | |
12228 | } | |
4f89f6a3 RD |
12229 | { |
12230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12231 | } | |
d14a1e28 RD |
12232 | { |
12233 | if (temp8) | |
12234 | delete arg8; | |
12235 | } | |
12236 | return resultobj; | |
12237 | fail: | |
12238 | { | |
12239 | if (temp8) | |
12240 | delete arg8; | |
12241 | } | |
12242 | return NULL; | |
12243 | } | |
12244 | ||
12245 | ||
c32bde28 | 12246 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12247 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12248 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12249 | int result; | |
12250 | PyObject * obj0 = 0 ; | |
12251 | char *kwnames[] = { | |
12252 | (char *) "self", NULL | |
12253 | }; | |
12254 | ||
12255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12256 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12257 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12258 | { |
12259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12260 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
12261 | ||
12262 | wxPyEndAllowThreads(__tstate); | |
12263 | if (PyErr_Occurred()) SWIG_fail; | |
12264 | } | |
093d3ff1 | 12265 | { |
32fe5131 | 12266 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12267 | } |
d14a1e28 RD |
12268 | return resultobj; |
12269 | fail: | |
12270 | return NULL; | |
12271 | } | |
12272 | ||
12273 | ||
c32bde28 | 12274 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12275 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12276 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12277 | int result; | |
12278 | PyObject * obj0 = 0 ; | |
12279 | char *kwnames[] = { | |
12280 | (char *) "self", NULL | |
12281 | }; | |
12282 | ||
12283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12284 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12285 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12286 | { |
12287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12288 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
12289 | ||
12290 | wxPyEndAllowThreads(__tstate); | |
12291 | if (PyErr_Occurred()) SWIG_fail; | |
12292 | } | |
093d3ff1 | 12293 | { |
32fe5131 | 12294 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12295 | } |
d14a1e28 RD |
12296 | return resultobj; |
12297 | fail: | |
12298 | return NULL; | |
12299 | } | |
12300 | ||
12301 | ||
c32bde28 | 12302 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12303 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12304 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12305 | int result; | |
12306 | PyObject * obj0 = 0 ; | |
12307 | char *kwnames[] = { | |
12308 | (char *) "self", NULL | |
12309 | }; | |
12310 | ||
12311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12314 | { |
12315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12316 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
12317 | ||
12318 | wxPyEndAllowThreads(__tstate); | |
12319 | if (PyErr_Occurred()) SWIG_fail; | |
12320 | } | |
093d3ff1 | 12321 | { |
32fe5131 | 12322 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12323 | } |
d14a1e28 RD |
12324 | return resultobj; |
12325 | fail: | |
12326 | return NULL; | |
12327 | } | |
12328 | ||
12329 | ||
c32bde28 | 12330 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12331 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12332 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12333 | int result; | |
12334 | PyObject * obj0 = 0 ; | |
12335 | char *kwnames[] = { | |
12336 | (char *) "self", NULL | |
12337 | }; | |
12338 | ||
12339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12340 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12341 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12342 | { |
12343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12344 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
12345 | ||
12346 | wxPyEndAllowThreads(__tstate); | |
12347 | if (PyErr_Occurred()) SWIG_fail; | |
12348 | } | |
093d3ff1 | 12349 | { |
32fe5131 | 12350 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12351 | } |
d14a1e28 RD |
12352 | return resultobj; |
12353 | fail: | |
12354 | return NULL; | |
12355 | } | |
12356 | ||
12357 | ||
c32bde28 | 12358 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12359 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12360 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12361 | bool result; | |
12362 | PyObject * obj0 = 0 ; | |
12363 | char *kwnames[] = { | |
12364 | (char *) "self", NULL | |
12365 | }; | |
12366 | ||
12367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12370 | { |
12371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12372 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
12373 | ||
12374 | wxPyEndAllowThreads(__tstate); | |
12375 | if (PyErr_Occurred()) SWIG_fail; | |
12376 | } | |
4f89f6a3 RD |
12377 | { |
12378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12379 | } | |
d14a1e28 RD |
12380 | return resultobj; |
12381 | fail: | |
12382 | return NULL; | |
12383 | } | |
12384 | ||
12385 | ||
c32bde28 | 12386 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12387 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12388 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12389 | int arg2 ; | |
12390 | PyObject * obj0 = 0 ; | |
994141e6 | 12391 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12392 | char *kwnames[] = { |
12393 | (char *) "self",(char *) "viewStart", NULL | |
12394 | }; | |
12395 | ||
994141e6 | 12396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12399 | { | |
32fe5131 | 12400 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12401 | if (SWIG_arg_fail(2)) SWIG_fail; |
12402 | } | |
d14a1e28 RD |
12403 | { |
12404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12405 | (arg1)->SetThumbPosition(arg2); | |
12406 | ||
12407 | wxPyEndAllowThreads(__tstate); | |
12408 | if (PyErr_Occurred()) SWIG_fail; | |
12409 | } | |
12410 | Py_INCREF(Py_None); resultobj = Py_None; | |
12411 | return resultobj; | |
12412 | fail: | |
12413 | return NULL; | |
12414 | } | |
12415 | ||
12416 | ||
c32bde28 | 12417 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12418 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12419 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; |
12420 | int arg2 ; | |
12421 | int arg3 ; | |
12422 | int arg4 ; | |
12423 | int arg5 ; | |
ae8162c8 | 12424 | bool arg6 = (bool) true ; |
d14a1e28 | 12425 | PyObject * obj0 = 0 ; |
994141e6 RD |
12426 | PyObject * obj1 = 0 ; |
12427 | PyObject * obj2 = 0 ; | |
12428 | PyObject * obj3 = 0 ; | |
12429 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12430 | PyObject * obj5 = 0 ; |
12431 | char *kwnames[] = { | |
12432 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
12433 | }; | |
12434 | ||
994141e6 | 12435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
12436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxScrollBar, SWIG_POINTER_EXCEPTION | 0); |
12437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12438 | { | |
32fe5131 | 12439 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12440 | if (SWIG_arg_fail(2)) SWIG_fail; |
12441 | } | |
12442 | { | |
32fe5131 | 12443 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12444 | if (SWIG_arg_fail(3)) SWIG_fail; |
12445 | } | |
12446 | { | |
32fe5131 | 12447 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
12448 | if (SWIG_arg_fail(4)) SWIG_fail; |
12449 | } | |
12450 | { | |
32fe5131 | 12451 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
12452 | if (SWIG_arg_fail(5)) SWIG_fail; |
12453 | } | |
d14a1e28 | 12454 | if (obj5) { |
093d3ff1 | 12455 | { |
32fe5131 | 12456 | arg6 = static_cast<bool >(SWIG_As_bool(obj5)); |
093d3ff1 RD |
12457 | if (SWIG_arg_fail(6)) SWIG_fail; |
12458 | } | |
d14a1e28 RD |
12459 | } |
12460 | { | |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
12463 | ||
12464 | wxPyEndAllowThreads(__tstate); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
12467 | Py_INCREF(Py_None); resultobj = Py_None; | |
12468 | return resultobj; | |
12469 | fail: | |
12470 | return NULL; | |
12471 | } | |
12472 | ||
12473 | ||
c32bde28 | 12474 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12475 | PyObject *resultobj = NULL; |
093d3ff1 | 12476 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
12477 | wxVisualAttributes result; |
12478 | PyObject * obj0 = 0 ; | |
12479 | char *kwnames[] = { | |
12480 | (char *) "variant", NULL | |
12481 | }; | |
12482 | ||
12483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12484 | if (obj0) { | |
093d3ff1 | 12485 | { |
32fe5131 | 12486 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
12487 | if (SWIG_arg_fail(1)) SWIG_fail; |
12488 | } | |
22bfe96c RD |
12489 | } |
12490 | { | |
110da5b0 | 12491 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 12492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 12493 | result = wxScrollBar::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
12494 | |
12495 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12496 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12497 | } |
12498 | { | |
12499 | wxVisualAttributes * resultptr; | |
32fe5131 | 12500 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
12501 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
12502 | } | |
12503 | return resultobj; | |
12504 | fail: | |
12505 | return NULL; | |
12506 | } | |
12507 | ||
12508 | ||
c32bde28 | 12509 | static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
12510 | PyObject *obj; |
12511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12512 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
12513 | Py_INCREF(obj); | |
12514 | return Py_BuildValue((char *)""); | |
12515 | } | |
c32bde28 | 12516 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) { |
b2dc1044 RD |
12517 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
12518 | return 1; | |
12519 | } | |
12520 | ||
12521 | ||
093d3ff1 | 12522 | static PyObject *_wrap_SPIN_BUTTON_NAME_get(void) { |
32fe5131 | 12523 | PyObject *pyobj = NULL; |
b2dc1044 RD |
12524 | |
12525 | { | |
12526 | #if wxUSE_UNICODE | |
12527 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12528 | #else | |
12529 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
12530 | #endif | |
12531 | } | |
12532 | return pyobj; | |
12533 | } | |
12534 | ||
12535 | ||
c32bde28 | 12536 | static int _wrap_SpinCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
12537 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
12538 | return 1; | |
12539 | } | |
12540 | ||
12541 | ||
093d3ff1 | 12542 | static PyObject *_wrap_SpinCtrlNameStr_get(void) { |
32fe5131 | 12543 | PyObject *pyobj = NULL; |
b2dc1044 RD |
12544 | |
12545 | { | |
12546 | #if wxUSE_UNICODE | |
12547 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12548 | #else | |
12549 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
12550 | #endif | |
12551 | } | |
12552 | return pyobj; | |
12553 | } | |
12554 | ||
12555 | ||
c32bde28 | 12556 | static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12557 | PyObject *resultobj = NULL; |
d14a1e28 | 12558 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 12559 | int arg2 = (int) -1 ; |
d14a1e28 RD |
12560 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12561 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12562 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12563 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12564 | long arg5 = (long) wxSP_HORIZONTAL ; | |
12565 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
12566 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12567 | wxSpinButton *result; | |
12568 | wxPoint temp3 ; | |
12569 | wxSize temp4 ; | |
ae8162c8 | 12570 | bool temp6 = false ; |
d14a1e28 | 12571 | PyObject * obj0 = 0 ; |
994141e6 | 12572 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12573 | PyObject * obj2 = 0 ; |
12574 | PyObject * obj3 = 0 ; | |
994141e6 | 12575 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12576 | PyObject * obj5 = 0 ; |
12577 | char *kwnames[] = { | |
12578 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12579 | }; | |
12580 | ||
994141e6 | 12581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
12582 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
12583 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 12584 | if (obj1) { |
093d3ff1 | 12585 | { |
32fe5131 | 12586 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12587 | if (SWIG_arg_fail(2)) SWIG_fail; |
12588 | } | |
994141e6 | 12589 | } |
d14a1e28 RD |
12590 | if (obj2) { |
12591 | { | |
12592 | arg3 = &temp3; | |
12593 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12594 | } | |
12595 | } | |
12596 | if (obj3) { | |
12597 | { | |
12598 | arg4 = &temp4; | |
12599 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12600 | } | |
12601 | } | |
994141e6 | 12602 | if (obj4) { |
093d3ff1 | 12603 | { |
32fe5131 | 12604 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
12605 | if (SWIG_arg_fail(5)) SWIG_fail; |
12606 | } | |
994141e6 | 12607 | } |
d14a1e28 RD |
12608 | if (obj5) { |
12609 | { | |
12610 | arg6 = wxString_in_helper(obj5); | |
12611 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 12612 | temp6 = true; |
d14a1e28 RD |
12613 | } |
12614 | } | |
12615 | { | |
e3b71cb8 | 12616 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12618 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12619 | ||
12620 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12621 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12622 | } |
15afbcd0 | 12623 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
12624 | { |
12625 | if (temp6) | |
12626 | delete arg6; | |
12627 | } | |
12628 | return resultobj; | |
12629 | fail: | |
12630 | { | |
12631 | if (temp6) | |
12632 | delete arg6; | |
12633 | } | |
12634 | return NULL; | |
12635 | } | |
12636 | ||
12637 | ||
c32bde28 | 12638 | static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12639 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12640 | wxSpinButton *result; |
12641 | char *kwnames[] = { | |
12642 | NULL | |
12643 | }; | |
12644 | ||
12645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
12646 | { | |
e3b71cb8 | 12647 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12649 | result = (wxSpinButton *)new wxSpinButton(); | |
12650 | ||
12651 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12652 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12653 | } |
15afbcd0 | 12654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
12655 | return resultobj; |
12656 | fail: | |
12657 | return NULL; | |
12658 | } | |
12659 | ||
12660 | ||
c32bde28 | 12661 | static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12662 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12663 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12664 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12665 | int arg3 = (int) -1 ; |
d14a1e28 RD |
12666 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12667 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12668 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12669 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12670 | long arg6 = (long) wxSP_HORIZONTAL ; | |
12671 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
12672 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12673 | bool result; | |
12674 | wxPoint temp4 ; | |
12675 | wxSize temp5 ; | |
ae8162c8 | 12676 | bool temp7 = false ; |
d14a1e28 RD |
12677 | PyObject * obj0 = 0 ; |
12678 | PyObject * obj1 = 0 ; | |
994141e6 | 12679 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12680 | PyObject * obj3 = 0 ; |
12681 | PyObject * obj4 = 0 ; | |
994141e6 | 12682 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12683 | PyObject * obj6 = 0 ; |
12684 | char *kwnames[] = { | |
12685 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12686 | }; | |
12687 | ||
994141e6 | 12688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
12689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12691 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
12692 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 12693 | if (obj2) { |
093d3ff1 | 12694 | { |
32fe5131 | 12695 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12696 | if (SWIG_arg_fail(3)) SWIG_fail; |
12697 | } | |
994141e6 | 12698 | } |
d14a1e28 RD |
12699 | if (obj3) { |
12700 | { | |
12701 | arg4 = &temp4; | |
12702 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12703 | } | |
12704 | } | |
12705 | if (obj4) { | |
12706 | { | |
12707 | arg5 = &temp5; | |
12708 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12709 | } | |
12710 | } | |
994141e6 | 12711 | if (obj5) { |
093d3ff1 | 12712 | { |
32fe5131 | 12713 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
12714 | if (SWIG_arg_fail(6)) SWIG_fail; |
12715 | } | |
994141e6 | 12716 | } |
d14a1e28 RD |
12717 | if (obj6) { |
12718 | { | |
12719 | arg7 = wxString_in_helper(obj6); | |
12720 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 12721 | temp7 = true; |
d14a1e28 RD |
12722 | } |
12723 | } | |
12724 | { | |
12725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12726 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12727 | ||
12728 | wxPyEndAllowThreads(__tstate); | |
12729 | if (PyErr_Occurred()) SWIG_fail; | |
12730 | } | |
4f89f6a3 RD |
12731 | { |
12732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12733 | } | |
d14a1e28 RD |
12734 | { |
12735 | if (temp7) | |
12736 | delete arg7; | |
12737 | } | |
12738 | return resultobj; | |
12739 | fail: | |
12740 | { | |
12741 | if (temp7) | |
12742 | delete arg7; | |
12743 | } | |
12744 | return NULL; | |
12745 | } | |
12746 | ||
12747 | ||
c32bde28 | 12748 | static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12749 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12750 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12751 | int result; | |
12752 | PyObject * obj0 = 0 ; | |
12753 | char *kwnames[] = { | |
12754 | (char *) "self", NULL | |
12755 | }; | |
12756 | ||
12757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12758 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12759 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12760 | { |
12761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12762 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
12763 | ||
12764 | wxPyEndAllowThreads(__tstate); | |
12765 | if (PyErr_Occurred()) SWIG_fail; | |
12766 | } | |
093d3ff1 | 12767 | { |
32fe5131 | 12768 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12769 | } |
d14a1e28 RD |
12770 | return resultobj; |
12771 | fail: | |
12772 | return NULL; | |
12773 | } | |
12774 | ||
12775 | ||
c32bde28 | 12776 | static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12777 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12778 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12779 | int result; | |
12780 | PyObject * obj0 = 0 ; | |
12781 | char *kwnames[] = { | |
12782 | (char *) "self", NULL | |
12783 | }; | |
12784 | ||
12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12788 | { |
12789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12790 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
12791 | ||
12792 | wxPyEndAllowThreads(__tstate); | |
12793 | if (PyErr_Occurred()) SWIG_fail; | |
12794 | } | |
093d3ff1 | 12795 | { |
32fe5131 | 12796 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12797 | } |
d14a1e28 RD |
12798 | return resultobj; |
12799 | fail: | |
12800 | return NULL; | |
12801 | } | |
12802 | ||
12803 | ||
c32bde28 | 12804 | static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12805 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12806 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12807 | int result; | |
12808 | PyObject * obj0 = 0 ; | |
12809 | char *kwnames[] = { | |
12810 | (char *) "self", NULL | |
12811 | }; | |
12812 | ||
12813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12814 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12815 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
12816 | { |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12818 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
12819 | ||
12820 | wxPyEndAllowThreads(__tstate); | |
12821 | if (PyErr_Occurred()) SWIG_fail; | |
12822 | } | |
093d3ff1 | 12823 | { |
32fe5131 | 12824 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 12825 | } |
d14a1e28 RD |
12826 | return resultobj; |
12827 | fail: | |
12828 | return NULL; | |
12829 | } | |
12830 | ||
12831 | ||
c32bde28 | 12832 | static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12833 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12834 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12835 | int arg2 ; | |
12836 | PyObject * obj0 = 0 ; | |
994141e6 | 12837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12838 | char *kwnames[] = { |
12839 | (char *) "self",(char *) "val", NULL | |
12840 | }; | |
12841 | ||
994141e6 | 12842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12845 | { | |
32fe5131 | 12846 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12847 | if (SWIG_arg_fail(2)) SWIG_fail; |
12848 | } | |
d14a1e28 RD |
12849 | { |
12850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12851 | (arg1)->SetValue(arg2); | |
12852 | ||
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
12856 | Py_INCREF(Py_None); resultobj = Py_None; | |
12857 | return resultobj; | |
12858 | fail: | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
c32bde28 | 12863 | static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12864 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12865 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12866 | int arg2 ; | |
12867 | PyObject * obj0 = 0 ; | |
994141e6 | 12868 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12869 | char *kwnames[] = { |
12870 | (char *) "self",(char *) "minVal", NULL | |
12871 | }; | |
12872 | ||
994141e6 | 12873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12874 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12875 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12876 | { | |
32fe5131 | 12877 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12878 | if (SWIG_arg_fail(2)) SWIG_fail; |
12879 | } | |
d14a1e28 RD |
12880 | { |
12881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12882 | (arg1)->SetMin(arg2); | |
12883 | ||
12884 | wxPyEndAllowThreads(__tstate); | |
12885 | if (PyErr_Occurred()) SWIG_fail; | |
12886 | } | |
12887 | Py_INCREF(Py_None); resultobj = Py_None; | |
12888 | return resultobj; | |
12889 | fail: | |
12890 | return NULL; | |
12891 | } | |
12892 | ||
12893 | ||
c32bde28 | 12894 | static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12895 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12896 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12897 | int arg2 ; | |
12898 | PyObject * obj0 = 0 ; | |
994141e6 | 12899 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12900 | char *kwnames[] = { |
12901 | (char *) "self",(char *) "maxVal", NULL | |
12902 | }; | |
12903 | ||
994141e6 | 12904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
12905 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12906 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12907 | { | |
32fe5131 | 12908 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12909 | if (SWIG_arg_fail(2)) SWIG_fail; |
12910 | } | |
d14a1e28 RD |
12911 | { |
12912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12913 | (arg1)->SetMax(arg2); | |
12914 | ||
12915 | wxPyEndAllowThreads(__tstate); | |
12916 | if (PyErr_Occurred()) SWIG_fail; | |
12917 | } | |
12918 | Py_INCREF(Py_None); resultobj = Py_None; | |
12919 | return resultobj; | |
12920 | fail: | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
c32bde28 | 12925 | static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12926 | PyObject *resultobj = NULL; |
d14a1e28 RD |
12927 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12928 | int arg2 ; | |
12929 | int arg3 ; | |
12930 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12931 | PyObject * obj1 = 0 ; |
12932 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12933 | char *kwnames[] = { |
12934 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
12935 | }; | |
12936 | ||
994141e6 | 12937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
12938 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12939 | if (SWIG_arg_fail(1)) SWIG_fail; | |
12940 | { | |
32fe5131 | 12941 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
12942 | if (SWIG_arg_fail(2)) SWIG_fail; |
12943 | } | |
12944 | { | |
32fe5131 | 12945 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
12946 | if (SWIG_arg_fail(3)) SWIG_fail; |
12947 | } | |
994141e6 | 12948 | { |
15afbcd0 RD |
12949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12950 | (arg1)->SetRange(arg2,arg3); | |
12951 | ||
12952 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
12953 | if (PyErr_Occurred()) SWIG_fail; |
12954 | } | |
22bfe96c RD |
12955 | Py_INCREF(Py_None); resultobj = Py_None; |
12956 | return resultobj; | |
12957 | fail: | |
12958 | return NULL; | |
12959 | } | |
12960 | ||
12961 | ||
c32bde28 | 12962 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12963 | PyObject *resultobj = NULL; |
22bfe96c RD |
12964 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; |
12965 | bool result; | |
12966 | PyObject * obj0 = 0 ; | |
12967 | char *kwnames[] = { | |
12968 | (char *) "self", NULL | |
12969 | }; | |
12970 | ||
12971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
12972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinButton, SWIG_POINTER_EXCEPTION | 0); |
12973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22bfe96c RD |
12974 | { |
12975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12976 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
12977 | ||
12978 | wxPyEndAllowThreads(__tstate); | |
12979 | if (PyErr_Occurred()) SWIG_fail; | |
12980 | } | |
12981 | { | |
12982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12983 | } | |
d14a1e28 RD |
12984 | return resultobj; |
12985 | fail: | |
12986 | return NULL; | |
12987 | } | |
12988 | ||
12989 | ||
c32bde28 | 12990 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 12991 | PyObject *resultobj = NULL; |
093d3ff1 | 12992 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c | 12993 | wxVisualAttributes result; |
d14a1e28 RD |
12994 | PyObject * obj0 = 0 ; |
12995 | char *kwnames[] = { | |
22bfe96c | 12996 | (char *) "variant", NULL |
d14a1e28 RD |
12997 | }; |
12998 | ||
22bfe96c RD |
12999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
13000 | if (obj0) { | |
093d3ff1 | 13001 | { |
32fe5131 | 13002 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
13003 | if (SWIG_arg_fail(1)) SWIG_fail; |
13004 | } | |
22bfe96c | 13005 | } |
d14a1e28 | 13006 | { |
110da5b0 | 13007 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 13009 | result = wxSpinButton::GetClassDefaultAttributes(arg1); |
d14a1e28 RD |
13010 | |
13011 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13012 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13013 | } |
4f89f6a3 | 13014 | { |
22bfe96c | 13015 | wxVisualAttributes * resultptr; |
32fe5131 | 13016 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c | 13017 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
4f89f6a3 | 13018 | } |
d14a1e28 RD |
13019 | return resultobj; |
13020 | fail: | |
13021 | return NULL; | |
13022 | } | |
13023 | ||
13024 | ||
c32bde28 | 13025 | static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13026 | PyObject *obj; |
13027 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13028 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
13029 | Py_INCREF(obj); | |
13030 | return Py_BuildValue((char *)""); | |
13031 | } | |
c32bde28 | 13032 | static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13033 | PyObject *resultobj = NULL; |
d14a1e28 | 13034 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 13035 | int arg2 = (int) -1 ; |
d14a1e28 RD |
13036 | wxString const &arg3_defvalue = wxPyEmptyString ; |
13037 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13038 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13039 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13040 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13041 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13042 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
13043 | int arg7 = (int) 0 ; | |
13044 | int arg8 = (int) 100 ; | |
13045 | int arg9 = (int) 0 ; | |
13046 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
13047 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
13048 | wxSpinCtrl *result; | |
ae8162c8 | 13049 | bool temp3 = false ; |
d14a1e28 RD |
13050 | wxPoint temp4 ; |
13051 | wxSize temp5 ; | |
ae8162c8 | 13052 | bool temp10 = false ; |
d14a1e28 | 13053 | PyObject * obj0 = 0 ; |
994141e6 | 13054 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13055 | PyObject * obj2 = 0 ; |
13056 | PyObject * obj3 = 0 ; | |
13057 | PyObject * obj4 = 0 ; | |
994141e6 RD |
13058 | PyObject * obj5 = 0 ; |
13059 | PyObject * obj6 = 0 ; | |
13060 | PyObject * obj7 = 0 ; | |
13061 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
13062 | PyObject * obj9 = 0 ; |
13063 | char *kwnames[] = { | |
13064 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
13065 | }; | |
13066 | ||
994141e6 | 13067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
093d3ff1 RD |
13068 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
13069 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 13070 | if (obj1) { |
093d3ff1 | 13071 | { |
32fe5131 | 13072 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13073 | if (SWIG_arg_fail(2)) SWIG_fail; |
13074 | } | |
994141e6 RD |
13075 | } |
13076 | if (obj2) { | |
d14a1e28 RD |
13077 | { |
13078 | arg3 = wxString_in_helper(obj2); | |
13079 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13080 | temp3 = true; |
d14a1e28 RD |
13081 | } |
13082 | } | |
13083 | if (obj3) { | |
13084 | { | |
13085 | arg4 = &temp4; | |
13086 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13087 | } | |
13088 | } | |
13089 | if (obj4) { | |
13090 | { | |
13091 | arg5 = &temp5; | |
13092 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13093 | } | |
13094 | } | |
994141e6 | 13095 | if (obj5) { |
093d3ff1 | 13096 | { |
32fe5131 | 13097 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
13098 | if (SWIG_arg_fail(6)) SWIG_fail; |
13099 | } | |
994141e6 RD |
13100 | } |
13101 | if (obj6) { | |
093d3ff1 | 13102 | { |
32fe5131 | 13103 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
13104 | if (SWIG_arg_fail(7)) SWIG_fail; |
13105 | } | |
994141e6 RD |
13106 | } |
13107 | if (obj7) { | |
093d3ff1 | 13108 | { |
32fe5131 | 13109 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
13110 | if (SWIG_arg_fail(8)) SWIG_fail; |
13111 | } | |
994141e6 RD |
13112 | } |
13113 | if (obj8) { | |
093d3ff1 | 13114 | { |
32fe5131 | 13115 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
13116 | if (SWIG_arg_fail(9)) SWIG_fail; |
13117 | } | |
994141e6 | 13118 | } |
d14a1e28 RD |
13119 | if (obj9) { |
13120 | { | |
13121 | arg10 = wxString_in_helper(obj9); | |
13122 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13123 | temp10 = true; |
d14a1e28 RD |
13124 | } |
13125 | } | |
13126 | { | |
e3b71cb8 | 13127 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13129 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
13130 | ||
13131 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13132 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13133 | } |
15afbcd0 | 13134 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
13135 | { |
13136 | if (temp3) | |
13137 | delete arg3; | |
13138 | } | |
13139 | { | |
13140 | if (temp10) | |
13141 | delete arg10; | |
13142 | } | |
13143 | return resultobj; | |
13144 | fail: | |
13145 | { | |
13146 | if (temp3) | |
13147 | delete arg3; | |
13148 | } | |
13149 | { | |
13150 | if (temp10) | |
13151 | delete arg10; | |
13152 | } | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
c32bde28 | 13157 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13158 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13159 | wxSpinCtrl *result; |
13160 | char *kwnames[] = { | |
13161 | NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
13165 | { | |
e3b71cb8 | 13166 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13168 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
13169 | ||
13170 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13171 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13172 | } |
15afbcd0 | 13173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
13174 | return resultobj; |
13175 | fail: | |
13176 | return NULL; | |
13177 | } | |
13178 | ||
13179 | ||
c32bde28 | 13180 | static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13181 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13182 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13183 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 13184 | int arg3 = (int) -1 ; |
d14a1e28 RD |
13185 | wxString const &arg4_defvalue = wxPyEmptyString ; |
13186 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13187 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13188 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13189 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13190 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13191 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
13192 | int arg8 = (int) 0 ; | |
13193 | int arg9 = (int) 100 ; | |
13194 | int arg10 = (int) 0 ; | |
13195 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
13196 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
13197 | bool result; | |
ae8162c8 | 13198 | bool temp4 = false ; |
d14a1e28 RD |
13199 | wxPoint temp5 ; |
13200 | wxSize temp6 ; | |
ae8162c8 | 13201 | bool temp11 = false ; |
d14a1e28 RD |
13202 | PyObject * obj0 = 0 ; |
13203 | PyObject * obj1 = 0 ; | |
994141e6 | 13204 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13205 | PyObject * obj3 = 0 ; |
13206 | PyObject * obj4 = 0 ; | |
13207 | PyObject * obj5 = 0 ; | |
994141e6 RD |
13208 | PyObject * obj6 = 0 ; |
13209 | PyObject * obj7 = 0 ; | |
13210 | PyObject * obj8 = 0 ; | |
13211 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
13212 | PyObject * obj10 = 0 ; |
13213 | char *kwnames[] = { | |
13214 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
13215 | }; | |
13216 | ||
994141e6 | 13217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
093d3ff1 RD |
13218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13220 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13221 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 13222 | if (obj2) { |
093d3ff1 | 13223 | { |
32fe5131 | 13224 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13225 | if (SWIG_arg_fail(3)) SWIG_fail; |
13226 | } | |
994141e6 | 13227 | } |
d14a1e28 RD |
13228 | if (obj3) { |
13229 | { | |
13230 | arg4 = wxString_in_helper(obj3); | |
13231 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13232 | temp4 = true; |
d14a1e28 RD |
13233 | } |
13234 | } | |
13235 | if (obj4) { | |
13236 | { | |
13237 | arg5 = &temp5; | |
13238 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13239 | } | |
13240 | } | |
13241 | if (obj5) { | |
13242 | { | |
13243 | arg6 = &temp6; | |
13244 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13245 | } | |
13246 | } | |
994141e6 | 13247 | if (obj6) { |
093d3ff1 | 13248 | { |
32fe5131 | 13249 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
13250 | if (SWIG_arg_fail(7)) SWIG_fail; |
13251 | } | |
994141e6 RD |
13252 | } |
13253 | if (obj7) { | |
093d3ff1 | 13254 | { |
32fe5131 | 13255 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
13256 | if (SWIG_arg_fail(8)) SWIG_fail; |
13257 | } | |
994141e6 RD |
13258 | } |
13259 | if (obj8) { | |
093d3ff1 | 13260 | { |
32fe5131 | 13261 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
13262 | if (SWIG_arg_fail(9)) SWIG_fail; |
13263 | } | |
994141e6 RD |
13264 | } |
13265 | if (obj9) { | |
093d3ff1 | 13266 | { |
32fe5131 | 13267 | arg10 = static_cast<int >(SWIG_As_int(obj9)); |
093d3ff1 RD |
13268 | if (SWIG_arg_fail(10)) SWIG_fail; |
13269 | } | |
994141e6 | 13270 | } |
d14a1e28 RD |
13271 | if (obj10) { |
13272 | { | |
13273 | arg11 = wxString_in_helper(obj10); | |
13274 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 13275 | temp11 = true; |
d14a1e28 RD |
13276 | } |
13277 | } | |
13278 | { | |
13279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13280 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
13281 | ||
13282 | wxPyEndAllowThreads(__tstate); | |
13283 | if (PyErr_Occurred()) SWIG_fail; | |
13284 | } | |
4f89f6a3 RD |
13285 | { |
13286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13287 | } | |
d14a1e28 RD |
13288 | { |
13289 | if (temp4) | |
13290 | delete arg4; | |
13291 | } | |
13292 | { | |
13293 | if (temp11) | |
13294 | delete arg11; | |
13295 | } | |
13296 | return resultobj; | |
13297 | fail: | |
13298 | { | |
13299 | if (temp4) | |
13300 | delete arg4; | |
13301 | } | |
13302 | { | |
13303 | if (temp11) | |
13304 | delete arg11; | |
13305 | } | |
13306 | return NULL; | |
13307 | } | |
13308 | ||
13309 | ||
c32bde28 | 13310 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13311 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13312 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13313 | int result; | |
13314 | PyObject * obj0 = 0 ; | |
13315 | char *kwnames[] = { | |
13316 | (char *) "self", NULL | |
13317 | }; | |
13318 | ||
13319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13320 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13321 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13322 | { |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
093d3ff1 | 13329 | { |
32fe5131 | 13330 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13331 | } |
d14a1e28 RD |
13332 | return resultobj; |
13333 | fail: | |
13334 | return NULL; | |
13335 | } | |
13336 | ||
13337 | ||
c32bde28 | 13338 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13339 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13340 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13341 | int arg2 ; | |
13342 | PyObject * obj0 = 0 ; | |
994141e6 | 13343 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13344 | char *kwnames[] = { |
13345 | (char *) "self",(char *) "value", NULL | |
13346 | }; | |
13347 | ||
994141e6 | 13348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13349 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13350 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13351 | { | |
32fe5131 | 13352 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13353 | if (SWIG_arg_fail(2)) SWIG_fail; |
13354 | } | |
d14a1e28 RD |
13355 | { |
13356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13357 | (arg1)->SetValue(arg2); | |
13358 | ||
13359 | wxPyEndAllowThreads(__tstate); | |
13360 | if (PyErr_Occurred()) SWIG_fail; | |
13361 | } | |
13362 | Py_INCREF(Py_None); resultobj = Py_None; | |
13363 | return resultobj; | |
13364 | fail: | |
13365 | return NULL; | |
13366 | } | |
13367 | ||
13368 | ||
c32bde28 | 13369 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13370 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13371 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13372 | wxString *arg2 = 0 ; | |
ae8162c8 | 13373 | bool temp2 = false ; |
d14a1e28 RD |
13374 | PyObject * obj0 = 0 ; |
13375 | PyObject * obj1 = 0 ; | |
13376 | char *kwnames[] = { | |
13377 | (char *) "self",(char *) "text", NULL | |
13378 | }; | |
13379 | ||
13380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
13381 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13382 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13383 | { |
13384 | arg2 = wxString_in_helper(obj1); | |
13385 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 13386 | temp2 = true; |
d14a1e28 RD |
13387 | } |
13388 | { | |
13389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13390 | (arg1)->SetValue((wxString const &)*arg2); | |
13391 | ||
13392 | wxPyEndAllowThreads(__tstate); | |
13393 | if (PyErr_Occurred()) SWIG_fail; | |
13394 | } | |
13395 | Py_INCREF(Py_None); resultobj = Py_None; | |
13396 | { | |
13397 | if (temp2) | |
13398 | delete arg2; | |
13399 | } | |
13400 | return resultobj; | |
13401 | fail: | |
13402 | { | |
13403 | if (temp2) | |
13404 | delete arg2; | |
13405 | } | |
13406 | return NULL; | |
13407 | } | |
13408 | ||
13409 | ||
c32bde28 | 13410 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13411 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13412 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13413 | int arg2 ; | |
13414 | int arg3 ; | |
13415 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13416 | PyObject * obj1 = 0 ; |
13417 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13418 | char *kwnames[] = { |
13419 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
13420 | }; | |
13421 | ||
994141e6 | 13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13425 | { | |
32fe5131 | 13426 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13427 | if (SWIG_arg_fail(2)) SWIG_fail; |
13428 | } | |
13429 | { | |
32fe5131 | 13430 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13431 | if (SWIG_arg_fail(3)) SWIG_fail; |
13432 | } | |
d14a1e28 RD |
13433 | { |
13434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13435 | (arg1)->SetRange(arg2,arg3); | |
13436 | ||
13437 | wxPyEndAllowThreads(__tstate); | |
13438 | if (PyErr_Occurred()) SWIG_fail; | |
13439 | } | |
13440 | Py_INCREF(Py_None); resultobj = Py_None; | |
13441 | return resultobj; | |
13442 | fail: | |
13443 | return NULL; | |
13444 | } | |
13445 | ||
13446 | ||
c32bde28 | 13447 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13448 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13449 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13450 | int result; | |
13451 | PyObject * obj0 = 0 ; | |
13452 | char *kwnames[] = { | |
13453 | (char *) "self", NULL | |
13454 | }; | |
13455 | ||
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13457 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13458 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13459 | { |
13460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13461 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
13462 | ||
13463 | wxPyEndAllowThreads(__tstate); | |
13464 | if (PyErr_Occurred()) SWIG_fail; | |
13465 | } | |
093d3ff1 | 13466 | { |
32fe5131 | 13467 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13468 | } |
d14a1e28 RD |
13469 | return resultobj; |
13470 | fail: | |
13471 | return NULL; | |
13472 | } | |
13473 | ||
13474 | ||
c32bde28 | 13475 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13476 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13477 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13478 | int result; | |
13479 | PyObject * obj0 = 0 ; | |
13480 | char *kwnames[] = { | |
13481 | (char *) "self", NULL | |
13482 | }; | |
13483 | ||
13484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
13487 | { |
13488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13489 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
13490 | ||
13491 | wxPyEndAllowThreads(__tstate); | |
13492 | if (PyErr_Occurred()) SWIG_fail; | |
13493 | } | |
093d3ff1 | 13494 | { |
32fe5131 | 13495 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13496 | } |
d14a1e28 RD |
13497 | return resultobj; |
13498 | fail: | |
13499 | return NULL; | |
13500 | } | |
13501 | ||
13502 | ||
c32bde28 | 13503 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13504 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13505 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; |
13506 | long arg2 ; | |
13507 | long arg3 ; | |
13508 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13509 | PyObject * obj1 = 0 ; |
13510 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13511 | char *kwnames[] = { |
13512 | (char *) "self",(char *) "from",(char *) "to", NULL | |
13513 | }; | |
13514 | ||
994141e6 | 13515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
13516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_EXCEPTION | 0); |
13517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13518 | { | |
32fe5131 | 13519 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
13520 | if (SWIG_arg_fail(2)) SWIG_fail; |
13521 | } | |
13522 | { | |
32fe5131 | 13523 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
13524 | if (SWIG_arg_fail(3)) SWIG_fail; |
13525 | } | |
d14a1e28 RD |
13526 | { |
13527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 13528 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
13529 | |
13530 | wxPyEndAllowThreads(__tstate); | |
13531 | if (PyErr_Occurred()) SWIG_fail; | |
13532 | } | |
13533 | Py_INCREF(Py_None); resultobj = Py_None; | |
13534 | return resultobj; | |
13535 | fail: | |
13536 | return NULL; | |
13537 | } | |
13538 | ||
13539 | ||
c32bde28 | 13540 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13541 | PyObject *resultobj = NULL; |
093d3ff1 | 13542 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
13543 | wxVisualAttributes result; |
13544 | PyObject * obj0 = 0 ; | |
13545 | char *kwnames[] = { | |
13546 | (char *) "variant", NULL | |
13547 | }; | |
13548 | ||
13549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13550 | if (obj0) { | |
093d3ff1 | 13551 | { |
32fe5131 | 13552 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
13553 | if (SWIG_arg_fail(1)) SWIG_fail; |
13554 | } | |
22bfe96c RD |
13555 | } |
13556 | { | |
110da5b0 | 13557 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 13558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 13559 | result = wxSpinCtrl::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
13560 | |
13561 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13562 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13563 | } |
13564 | { | |
13565 | wxVisualAttributes * resultptr; | |
32fe5131 | 13566 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
13567 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
13568 | } | |
13569 | return resultobj; | |
13570 | fail: | |
13571 | return NULL; | |
13572 | } | |
13573 | ||
13574 | ||
c32bde28 | 13575 | static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
13576 | PyObject *obj; |
13577 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13578 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
13579 | Py_INCREF(obj); | |
13580 | return Py_BuildValue((char *)""); | |
13581 | } | |
c32bde28 | 13582 | static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13583 | PyObject *resultobj = NULL; |
d1e20054 RD |
13584 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
13585 | int arg2 = (int) 0 ; | |
13586 | wxSpinEvent *result; | |
994141e6 RD |
13587 | PyObject * obj0 = 0 ; |
13588 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
13589 | char *kwnames[] = { |
13590 | (char *) "commandType",(char *) "winid", NULL | |
13591 | }; | |
13592 | ||
994141e6 RD |
13593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
13594 | if (obj0) { | |
093d3ff1 | 13595 | { |
32fe5131 | 13596 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
13597 | if (SWIG_arg_fail(1)) SWIG_fail; |
13598 | } | |
994141e6 RD |
13599 | } |
13600 | if (obj1) { | |
093d3ff1 | 13601 | { |
32fe5131 | 13602 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13603 | if (SWIG_arg_fail(2)) SWIG_fail; |
13604 | } | |
994141e6 | 13605 | } |
d1e20054 RD |
13606 | { |
13607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13608 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
13609 | ||
13610 | wxPyEndAllowThreads(__tstate); | |
13611 | if (PyErr_Occurred()) SWIG_fail; | |
13612 | } | |
15afbcd0 | 13613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
13614 | return resultobj; |
13615 | fail: | |
13616 | return NULL; | |
13617 | } | |
13618 | ||
13619 | ||
c32bde28 | 13620 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13621 | PyObject *resultobj = NULL; |
d1e20054 RD |
13622 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; |
13623 | int result; | |
13624 | PyObject * obj0 = 0 ; | |
13625 | char *kwnames[] = { | |
13626 | (char *) "self", NULL | |
13627 | }; | |
13628 | ||
13629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
13630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d1e20054 RD |
13632 | { |
13633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13634 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
13635 | ||
13636 | wxPyEndAllowThreads(__tstate); | |
13637 | if (PyErr_Occurred()) SWIG_fail; | |
13638 | } | |
093d3ff1 | 13639 | { |
32fe5131 | 13640 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 13641 | } |
d1e20054 RD |
13642 | return resultobj; |
13643 | fail: | |
13644 | return NULL; | |
13645 | } | |
13646 | ||
13647 | ||
c32bde28 | 13648 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13649 | PyObject *resultobj = NULL; |
d1e20054 RD |
13650 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; |
13651 | int arg2 ; | |
13652 | PyObject * obj0 = 0 ; | |
994141e6 | 13653 | PyObject * obj1 = 0 ; |
d1e20054 RD |
13654 | char *kwnames[] = { |
13655 | (char *) "self",(char *) "pos", NULL | |
13656 | }; | |
13657 | ||
994141e6 | 13658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
13659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_EXCEPTION | 0); |
13660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13661 | { | |
32fe5131 | 13662 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13663 | if (SWIG_arg_fail(2)) SWIG_fail; |
13664 | } | |
d1e20054 RD |
13665 | { |
13666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13667 | (arg1)->SetPosition(arg2); | |
13668 | ||
13669 | wxPyEndAllowThreads(__tstate); | |
13670 | if (PyErr_Occurred()) SWIG_fail; | |
13671 | } | |
13672 | Py_INCREF(Py_None); resultobj = Py_None; | |
13673 | return resultobj; | |
13674 | fail: | |
13675 | return NULL; | |
13676 | } | |
13677 | ||
13678 | ||
c32bde28 | 13679 | static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) { |
d1e20054 RD |
13680 | PyObject *obj; |
13681 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13682 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
13683 | Py_INCREF(obj); | |
13684 | return Py_BuildValue((char *)""); | |
13685 | } | |
c32bde28 | 13686 | static int _wrap_RadioBoxNameStr_set(PyObject *) { |
b2dc1044 RD |
13687 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
13688 | return 1; | |
13689 | } | |
13690 | ||
13691 | ||
093d3ff1 | 13692 | static PyObject *_wrap_RadioBoxNameStr_get(void) { |
32fe5131 | 13693 | PyObject *pyobj = NULL; |
b2dc1044 RD |
13694 | |
13695 | { | |
13696 | #if wxUSE_UNICODE | |
13697 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13698 | #else | |
13699 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
13700 | #endif | |
13701 | } | |
13702 | return pyobj; | |
13703 | } | |
13704 | ||
13705 | ||
c32bde28 | 13706 | static int _wrap_RadioButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
13707 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
13708 | return 1; | |
13709 | } | |
13710 | ||
13711 | ||
093d3ff1 | 13712 | static PyObject *_wrap_RadioButtonNameStr_get(void) { |
32fe5131 | 13713 | PyObject *pyobj = NULL; |
b2dc1044 RD |
13714 | |
13715 | { | |
13716 | #if wxUSE_UNICODE | |
13717 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13718 | #else | |
13719 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
13720 | #endif | |
13721 | } | |
13722 | return pyobj; | |
13723 | } | |
13724 | ||
13725 | ||
c32bde28 | 13726 | static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13727 | PyObject *resultobj = NULL; |
d14a1e28 | 13728 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
13729 | int arg2 = (int) -1 ; |
13730 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13731 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
13732 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13733 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13734 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13735 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
13736 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
13737 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
13738 | int arg7 = (int) 0 ; | |
13739 | long arg8 = (long) wxRA_HORIZONTAL ; | |
13740 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
13741 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
13742 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
13743 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 13744 | wxRadioBox *result; |
ae8162c8 | 13745 | bool temp3 = false ; |
d14a1e28 RD |
13746 | wxPoint temp4 ; |
13747 | wxSize temp5 ; | |
ae8162c8 RD |
13748 | bool temp6 = false ; |
13749 | bool temp10 = false ; | |
d14a1e28 | 13750 | PyObject * obj0 = 0 ; |
994141e6 | 13751 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13752 | PyObject * obj2 = 0 ; |
13753 | PyObject * obj3 = 0 ; | |
13754 | PyObject * obj4 = 0 ; | |
13755 | PyObject * obj5 = 0 ; | |
994141e6 RD |
13756 | PyObject * obj6 = 0 ; |
13757 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
13758 | PyObject * obj8 = 0 ; |
13759 | PyObject * obj9 = 0 ; | |
13760 | char *kwnames[] = { | |
994141e6 | 13761 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
13762 | }; |
13763 | ||
248ed943 | 13764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
093d3ff1 RD |
13765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
13766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 13767 | if (obj1) { |
093d3ff1 | 13768 | { |
32fe5131 | 13769 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
13770 | if (SWIG_arg_fail(2)) SWIG_fail; |
13771 | } | |
248ed943 RD |
13772 | } |
13773 | if (obj2) { | |
13774 | { | |
13775 | arg3 = wxString_in_helper(obj2); | |
13776 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 13777 | temp3 = true; |
248ed943 | 13778 | } |
d14a1e28 RD |
13779 | } |
13780 | if (obj3) { | |
13781 | { | |
13782 | arg4 = &temp4; | |
13783 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13784 | } | |
13785 | } | |
13786 | if (obj4) { | |
13787 | { | |
13788 | arg5 = &temp5; | |
13789 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13790 | } | |
13791 | } | |
13792 | if (obj5) { | |
13793 | { | |
4d5c3d91 RD |
13794 | if (! PySequence_Check(obj5)) { |
13795 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13796 | SWIG_fail; | |
13797 | } | |
13798 | arg6 = new wxArrayString; | |
ae8162c8 | 13799 | temp6 = true; |
4d5c3d91 RD |
13800 | int i, len=PySequence_Length(obj5); |
13801 | for (i=0; i<len; i++) { | |
13802 | PyObject* item = PySequence_GetItem(obj5, i); | |
71237536 | 13803 | wxString* s = wxString_in_helper(item); |
74a57fcd | 13804 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
13805 | arg6->Add(*s); |
13806 | delete s; | |
4d5c3d91 | 13807 | Py_DECREF(item); |
4d5c3d91 | 13808 | } |
d14a1e28 RD |
13809 | } |
13810 | } | |
994141e6 | 13811 | if (obj6) { |
093d3ff1 | 13812 | { |
32fe5131 | 13813 | arg7 = static_cast<int >(SWIG_As_int(obj6)); |
093d3ff1 RD |
13814 | if (SWIG_arg_fail(7)) SWIG_fail; |
13815 | } | |
994141e6 RD |
13816 | } |
13817 | if (obj7) { | |
093d3ff1 | 13818 | { |
32fe5131 | 13819 | arg8 = static_cast<long >(SWIG_As_long(obj7)); |
093d3ff1 RD |
13820 | if (SWIG_arg_fail(8)) SWIG_fail; |
13821 | } | |
994141e6 | 13822 | } |
d14a1e28 | 13823 | if (obj8) { |
093d3ff1 RD |
13824 | { |
13825 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
13826 | if (SWIG_arg_fail(9)) SWIG_fail; | |
13827 | if (arg9 == NULL) { | |
13828 | SWIG_null_ref("wxValidator"); | |
13829 | } | |
13830 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
13831 | } |
13832 | } | |
13833 | if (obj9) { | |
13834 | { | |
4d5c3d91 RD |
13835 | arg10 = wxString_in_helper(obj9); |
13836 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 13837 | temp10 = true; |
d14a1e28 RD |
13838 | } |
13839 | } | |
13840 | { | |
e3b71cb8 | 13841 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 13842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 13843 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); |
d14a1e28 RD |
13844 | |
13845 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13846 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13847 | } |
15afbcd0 | 13848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
13849 | { |
13850 | if (temp3) | |
13851 | delete arg3; | |
13852 | } | |
13853 | { | |
3adfb63b | 13854 | if (temp6) delete arg6; |
d14a1e28 RD |
13855 | } |
13856 | { | |
13857 | if (temp10) | |
4d5c3d91 | 13858 | delete arg10; |
d14a1e28 RD |
13859 | } |
13860 | return resultobj; | |
13861 | fail: | |
13862 | { | |
13863 | if (temp3) | |
13864 | delete arg3; | |
13865 | } | |
13866 | { | |
3adfb63b | 13867 | if (temp6) delete arg6; |
d14a1e28 RD |
13868 | } |
13869 | { | |
13870 | if (temp10) | |
4d5c3d91 | 13871 | delete arg10; |
d14a1e28 RD |
13872 | } |
13873 | return NULL; | |
13874 | } | |
13875 | ||
13876 | ||
c32bde28 | 13877 | static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13878 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13879 | wxRadioBox *result; |
13880 | char *kwnames[] = { | |
13881 | NULL | |
13882 | }; | |
13883 | ||
13884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
13885 | { | |
e3b71cb8 | 13886 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13888 | result = (wxRadioBox *)new wxRadioBox(); | |
13889 | ||
13890 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13891 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13892 | } |
15afbcd0 | 13893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
13894 | return resultobj; |
13895 | fail: | |
13896 | return NULL; | |
13897 | } | |
13898 | ||
13899 | ||
c32bde28 | 13900 | static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 13901 | PyObject *resultobj = NULL; |
d14a1e28 RD |
13902 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
13903 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13904 | int arg3 = (int) -1 ; |
13905 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13906 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
13907 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13908 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13909 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13910 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
13911 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
13912 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
13913 | int arg8 = (int) 0 ; | |
13914 | long arg9 = (long) wxRA_HORIZONTAL ; | |
13915 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
13916 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
13917 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
13918 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 13919 | bool result; |
ae8162c8 | 13920 | bool temp4 = false ; |
d14a1e28 RD |
13921 | wxPoint temp5 ; |
13922 | wxSize temp6 ; | |
ae8162c8 RD |
13923 | bool temp7 = false ; |
13924 | bool temp11 = false ; | |
d14a1e28 RD |
13925 | PyObject * obj0 = 0 ; |
13926 | PyObject * obj1 = 0 ; | |
994141e6 | 13927 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13928 | PyObject * obj3 = 0 ; |
13929 | PyObject * obj4 = 0 ; | |
13930 | PyObject * obj5 = 0 ; | |
13931 | PyObject * obj6 = 0 ; | |
994141e6 RD |
13932 | PyObject * obj7 = 0 ; |
13933 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
13934 | PyObject * obj9 = 0 ; |
13935 | PyObject * obj10 = 0 ; | |
13936 | char *kwnames[] = { | |
994141e6 | 13937 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
13938 | }; |
13939 | ||
248ed943 | 13940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
093d3ff1 RD |
13941 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
13942 | if (SWIG_arg_fail(1)) SWIG_fail; | |
13943 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
13944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 13945 | if (obj2) { |
093d3ff1 | 13946 | { |
32fe5131 | 13947 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
13948 | if (SWIG_arg_fail(3)) SWIG_fail; |
13949 | } | |
248ed943 RD |
13950 | } |
13951 | if (obj3) { | |
13952 | { | |
13953 | arg4 = wxString_in_helper(obj3); | |
13954 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 13955 | temp4 = true; |
248ed943 | 13956 | } |
d14a1e28 RD |
13957 | } |
13958 | if (obj4) { | |
13959 | { | |
13960 | arg5 = &temp5; | |
13961 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13962 | } | |
13963 | } | |
13964 | if (obj5) { | |
13965 | { | |
13966 | arg6 = &temp6; | |
13967 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13968 | } | |
13969 | } | |
13970 | if (obj6) { | |
13971 | { | |
4d5c3d91 RD |
13972 | if (! PySequence_Check(obj6)) { |
13973 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
13974 | SWIG_fail; | |
13975 | } | |
13976 | arg7 = new wxArrayString; | |
ae8162c8 | 13977 | temp7 = true; |
4d5c3d91 RD |
13978 | int i, len=PySequence_Length(obj6); |
13979 | for (i=0; i<len; i++) { | |
13980 | PyObject* item = PySequence_GetItem(obj6, i); | |
71237536 | 13981 | wxString* s = wxString_in_helper(item); |
74a57fcd | 13982 | if (PyErr_Occurred()) SWIG_fail; |
71237536 RD |
13983 | arg7->Add(*s); |
13984 | delete s; | |
4d5c3d91 | 13985 | Py_DECREF(item); |
4d5c3d91 | 13986 | } |
d14a1e28 RD |
13987 | } |
13988 | } | |
994141e6 | 13989 | if (obj7) { |
093d3ff1 | 13990 | { |
32fe5131 | 13991 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
13992 | if (SWIG_arg_fail(8)) SWIG_fail; |
13993 | } | |
994141e6 RD |
13994 | } |
13995 | if (obj8) { | |
093d3ff1 | 13996 | { |
32fe5131 | 13997 | arg9 = static_cast<long >(SWIG_As_long(obj8)); |
093d3ff1 RD |
13998 | if (SWIG_arg_fail(9)) SWIG_fail; |
13999 | } | |
994141e6 | 14000 | } |
d14a1e28 | 14001 | if (obj9) { |
093d3ff1 RD |
14002 | { |
14003 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14004 | if (SWIG_arg_fail(10)) SWIG_fail; | |
14005 | if (arg10 == NULL) { | |
14006 | SWIG_null_ref("wxValidator"); | |
14007 | } | |
14008 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d14a1e28 RD |
14009 | } |
14010 | } | |
14011 | if (obj10) { | |
14012 | { | |
4d5c3d91 RD |
14013 | arg11 = wxString_in_helper(obj10); |
14014 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 14015 | temp11 = true; |
d14a1e28 RD |
14016 | } |
14017 | } | |
14018 | { | |
14019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 14020 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); |
d14a1e28 RD |
14021 | |
14022 | wxPyEndAllowThreads(__tstate); | |
14023 | if (PyErr_Occurred()) SWIG_fail; | |
14024 | } | |
4f89f6a3 RD |
14025 | { |
14026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14027 | } | |
d14a1e28 RD |
14028 | { |
14029 | if (temp4) | |
14030 | delete arg4; | |
14031 | } | |
14032 | { | |
3adfb63b | 14033 | if (temp7) delete arg7; |
d14a1e28 RD |
14034 | } |
14035 | { | |
14036 | if (temp11) | |
4d5c3d91 | 14037 | delete arg11; |
d14a1e28 RD |
14038 | } |
14039 | return resultobj; | |
14040 | fail: | |
14041 | { | |
14042 | if (temp4) | |
14043 | delete arg4; | |
14044 | } | |
14045 | { | |
3adfb63b | 14046 | if (temp7) delete arg7; |
d14a1e28 RD |
14047 | } |
14048 | { | |
14049 | if (temp11) | |
4d5c3d91 | 14050 | delete arg11; |
d14a1e28 RD |
14051 | } |
14052 | return NULL; | |
14053 | } | |
14054 | ||
14055 | ||
c32bde28 | 14056 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14057 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14058 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14059 | int arg2 ; | |
14060 | PyObject * obj0 = 0 ; | |
994141e6 | 14061 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14062 | char *kwnames[] = { |
14063 | (char *) "self",(char *) "n", NULL | |
14064 | }; | |
14065 | ||
994141e6 | 14066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14069 | { | |
32fe5131 | 14070 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14071 | if (SWIG_arg_fail(2)) SWIG_fail; |
14072 | } | |
d14a1e28 RD |
14073 | { |
14074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14075 | (arg1)->SetSelection(arg2); | |
14076 | ||
14077 | wxPyEndAllowThreads(__tstate); | |
14078 | if (PyErr_Occurred()) SWIG_fail; | |
14079 | } | |
14080 | Py_INCREF(Py_None); resultobj = Py_None; | |
14081 | return resultobj; | |
14082 | fail: | |
14083 | return NULL; | |
14084 | } | |
14085 | ||
14086 | ||
c32bde28 | 14087 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14088 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14089 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14090 | int result; | |
14091 | PyObject * obj0 = 0 ; | |
14092 | char *kwnames[] = { | |
14093 | (char *) "self", NULL | |
14094 | }; | |
14095 | ||
14096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14097 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14098 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14099 | { |
14100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14101 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
14102 | ||
14103 | wxPyEndAllowThreads(__tstate); | |
14104 | if (PyErr_Occurred()) SWIG_fail; | |
14105 | } | |
093d3ff1 | 14106 | { |
32fe5131 | 14107 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14108 | } |
d14a1e28 RD |
14109 | return resultobj; |
14110 | fail: | |
14111 | return NULL; | |
14112 | } | |
14113 | ||
14114 | ||
c32bde28 | 14115 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14116 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14117 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14118 | wxString result; | |
14119 | PyObject * obj0 = 0 ; | |
14120 | char *kwnames[] = { | |
14121 | (char *) "self", NULL | |
14122 | }; | |
14123 | ||
14124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14127 | { |
14128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14129 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
14130 | ||
14131 | wxPyEndAllowThreads(__tstate); | |
14132 | if (PyErr_Occurred()) SWIG_fail; | |
14133 | } | |
14134 | { | |
14135 | #if wxUSE_UNICODE | |
14136 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14137 | #else | |
14138 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14139 | #endif | |
14140 | } | |
14141 | return resultobj; | |
14142 | fail: | |
14143 | return NULL; | |
14144 | } | |
14145 | ||
14146 | ||
c32bde28 | 14147 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14148 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14149 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14150 | wxString *arg2 = 0 ; | |
14151 | bool result; | |
ae8162c8 | 14152 | bool temp2 = false ; |
d14a1e28 RD |
14153 | PyObject * obj0 = 0 ; |
14154 | PyObject * obj1 = 0 ; | |
14155 | char *kwnames[] = { | |
14156 | (char *) "self",(char *) "s", NULL | |
14157 | }; | |
14158 | ||
14159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14160 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14161 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14162 | { |
14163 | arg2 = wxString_in_helper(obj1); | |
14164 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14165 | temp2 = true; |
d14a1e28 RD |
14166 | } |
14167 | { | |
14168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14169 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
14170 | ||
14171 | wxPyEndAllowThreads(__tstate); | |
14172 | if (PyErr_Occurred()) SWIG_fail; | |
14173 | } | |
4f89f6a3 RD |
14174 | { |
14175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14176 | } | |
d14a1e28 RD |
14177 | { |
14178 | if (temp2) | |
14179 | delete arg2; | |
14180 | } | |
14181 | return resultobj; | |
14182 | fail: | |
14183 | { | |
14184 | if (temp2) | |
14185 | delete arg2; | |
14186 | } | |
14187 | return NULL; | |
14188 | } | |
14189 | ||
14190 | ||
c32bde28 | 14191 | static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14192 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14193 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14194 | int result; | |
14195 | PyObject * obj0 = 0 ; | |
14196 | char *kwnames[] = { | |
14197 | (char *) "self", NULL | |
14198 | }; | |
14199 | ||
14200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14203 | { |
14204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14205 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
14206 | ||
14207 | wxPyEndAllowThreads(__tstate); | |
14208 | if (PyErr_Occurred()) SWIG_fail; | |
14209 | } | |
093d3ff1 | 14210 | { |
32fe5131 | 14211 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14212 | } |
d14a1e28 RD |
14213 | return resultobj; |
14214 | fail: | |
14215 | return NULL; | |
14216 | } | |
14217 | ||
14218 | ||
c32bde28 | 14219 | static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14220 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14221 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14222 | wxString *arg2 = 0 ; | |
14223 | int result; | |
ae8162c8 | 14224 | bool temp2 = false ; |
d14a1e28 RD |
14225 | PyObject * obj0 = 0 ; |
14226 | PyObject * obj1 = 0 ; | |
14227 | char *kwnames[] = { | |
14228 | (char *) "self",(char *) "s", NULL | |
14229 | }; | |
14230 | ||
14231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14234 | { |
14235 | arg2 = wxString_in_helper(obj1); | |
14236 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 14237 | temp2 = true; |
d14a1e28 RD |
14238 | } |
14239 | { | |
14240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14241 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
14242 | ||
14243 | wxPyEndAllowThreads(__tstate); | |
14244 | if (PyErr_Occurred()) SWIG_fail; | |
14245 | } | |
093d3ff1 | 14246 | { |
32fe5131 | 14247 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14248 | } |
d14a1e28 RD |
14249 | { |
14250 | if (temp2) | |
14251 | delete arg2; | |
14252 | } | |
14253 | return resultobj; | |
14254 | fail: | |
14255 | { | |
14256 | if (temp2) | |
14257 | delete arg2; | |
14258 | } | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
c32bde28 | 14263 | static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14264 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14265 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14266 | int arg2 ; | |
14267 | wxString result; | |
14268 | PyObject * obj0 = 0 ; | |
994141e6 | 14269 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14270 | char *kwnames[] = { |
14271 | (char *) "self",(char *) "n", NULL | |
14272 | }; | |
14273 | ||
994141e6 | 14274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
14275 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14276 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14277 | { | |
32fe5131 | 14278 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14279 | if (SWIG_arg_fail(2)) SWIG_fail; |
14280 | } | |
d14a1e28 RD |
14281 | { |
14282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14283 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
14284 | ||
14285 | wxPyEndAllowThreads(__tstate); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
14288 | { | |
14289 | #if wxUSE_UNICODE | |
14290 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14291 | #else | |
14292 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14293 | #endif | |
14294 | } | |
14295 | return resultobj; | |
14296 | fail: | |
14297 | return NULL; | |
14298 | } | |
14299 | ||
14300 | ||
c32bde28 | 14301 | static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14302 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14303 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14304 | int arg2 ; | |
14305 | wxString *arg3 = 0 ; | |
ae8162c8 | 14306 | bool temp3 = false ; |
d14a1e28 | 14307 | PyObject * obj0 = 0 ; |
994141e6 | 14308 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14309 | PyObject * obj2 = 0 ; |
14310 | char *kwnames[] = { | |
14311 | (char *) "self",(char *) "n",(char *) "label", NULL | |
14312 | }; | |
14313 | ||
994141e6 | 14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14317 | { | |
32fe5131 | 14318 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14319 | if (SWIG_arg_fail(2)) SWIG_fail; |
14320 | } | |
d14a1e28 RD |
14321 | { |
14322 | arg3 = wxString_in_helper(obj2); | |
14323 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14324 | temp3 = true; |
d14a1e28 RD |
14325 | } |
14326 | { | |
14327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14328 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
14329 | ||
14330 | wxPyEndAllowThreads(__tstate); | |
14331 | if (PyErr_Occurred()) SWIG_fail; | |
14332 | } | |
14333 | Py_INCREF(Py_None); resultobj = Py_None; | |
14334 | { | |
14335 | if (temp3) | |
14336 | delete arg3; | |
14337 | } | |
14338 | return resultobj; | |
14339 | fail: | |
14340 | { | |
14341 | if (temp3) | |
14342 | delete arg3; | |
14343 | } | |
14344 | return NULL; | |
14345 | } | |
14346 | ||
14347 | ||
c32bde28 | 14348 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14349 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14350 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14351 | int arg2 ; | |
ae8162c8 | 14352 | bool arg3 = (bool) true ; |
d14a1e28 | 14353 | PyObject * obj0 = 0 ; |
994141e6 | 14354 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14355 | PyObject * obj2 = 0 ; |
14356 | char *kwnames[] = { | |
14357 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
14358 | }; | |
14359 | ||
994141e6 | 14360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14363 | { | |
32fe5131 | 14364 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14365 | if (SWIG_arg_fail(2)) SWIG_fail; |
14366 | } | |
d14a1e28 | 14367 | if (obj2) { |
093d3ff1 | 14368 | { |
32fe5131 | 14369 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
14370 | if (SWIG_arg_fail(3)) SWIG_fail; |
14371 | } | |
d14a1e28 RD |
14372 | } |
14373 | { | |
14374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14375 | (arg1)->Enable(arg2,arg3); | |
14376 | ||
14377 | wxPyEndAllowThreads(__tstate); | |
14378 | if (PyErr_Occurred()) SWIG_fail; | |
14379 | } | |
14380 | Py_INCREF(Py_None); resultobj = Py_None; | |
14381 | return resultobj; | |
14382 | fail: | |
14383 | return NULL; | |
14384 | } | |
14385 | ||
14386 | ||
c32bde28 | 14387 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14388 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14389 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14390 | int arg2 ; | |
ae8162c8 | 14391 | bool arg3 = (bool) true ; |
d14a1e28 | 14392 | PyObject * obj0 = 0 ; |
994141e6 | 14393 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14394 | PyObject * obj2 = 0 ; |
14395 | char *kwnames[] = { | |
14396 | (char *) "self",(char *) "n",(char *) "show", NULL | |
14397 | }; | |
14398 | ||
994141e6 | 14399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
14400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14402 | { | |
32fe5131 | 14403 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14404 | if (SWIG_arg_fail(2)) SWIG_fail; |
14405 | } | |
d14a1e28 | 14406 | if (obj2) { |
093d3ff1 | 14407 | { |
32fe5131 | 14408 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
14409 | if (SWIG_arg_fail(3)) SWIG_fail; |
14410 | } | |
d14a1e28 RD |
14411 | } |
14412 | { | |
14413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14414 | (arg1)->Show(arg2,arg3); | |
14415 | ||
14416 | wxPyEndAllowThreads(__tstate); | |
14417 | if (PyErr_Occurred()) SWIG_fail; | |
14418 | } | |
14419 | Py_INCREF(Py_None); resultobj = Py_None; | |
14420 | return resultobj; | |
14421 | fail: | |
14422 | return NULL; | |
14423 | } | |
14424 | ||
14425 | ||
c32bde28 | 14426 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14427 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14428 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14429 | int result; | |
14430 | PyObject * obj0 = 0 ; | |
14431 | char *kwnames[] = { | |
14432 | (char *) "self", NULL | |
14433 | }; | |
14434 | ||
14435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14438 | { |
14439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14440 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
14441 | ||
14442 | wxPyEndAllowThreads(__tstate); | |
14443 | if (PyErr_Occurred()) SWIG_fail; | |
14444 | } | |
093d3ff1 | 14445 | { |
32fe5131 | 14446 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14447 | } |
d14a1e28 RD |
14448 | return resultobj; |
14449 | fail: | |
14450 | return NULL; | |
14451 | } | |
14452 | ||
14453 | ||
c32bde28 | 14454 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14455 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14456 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14457 | int result; | |
14458 | PyObject * obj0 = 0 ; | |
14459 | char *kwnames[] = { | |
14460 | (char *) "self", NULL | |
14461 | }; | |
14462 | ||
14463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14464 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14465 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14466 | { |
14467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14468 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
14469 | ||
14470 | wxPyEndAllowThreads(__tstate); | |
14471 | if (PyErr_Occurred()) SWIG_fail; | |
14472 | } | |
093d3ff1 | 14473 | { |
32fe5131 | 14474 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14475 | } |
d14a1e28 RD |
14476 | return resultobj; |
14477 | fail: | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
c32bde28 | 14482 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14483 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14484 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; |
14485 | int arg2 ; | |
093d3ff1 | 14486 | wxDirection arg3 ; |
d14a1e28 RD |
14487 | long arg4 ; |
14488 | int result; | |
14489 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14490 | PyObject * obj1 = 0 ; |
14491 | PyObject * obj2 = 0 ; | |
14492 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14493 | char *kwnames[] = { |
14494 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
14495 | }; | |
14496 | ||
994141e6 | 14497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
14498 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioBox, SWIG_POINTER_EXCEPTION | 0); |
14499 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14500 | { | |
32fe5131 | 14501 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14502 | if (SWIG_arg_fail(2)) SWIG_fail; |
14503 | } | |
14504 | { | |
32fe5131 | 14505 | arg3 = static_cast<wxDirection >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14506 | if (SWIG_arg_fail(3)) SWIG_fail; |
14507 | } | |
14508 | { | |
32fe5131 | 14509 | arg4 = static_cast<long >(SWIG_As_long(obj3)); |
093d3ff1 RD |
14510 | if (SWIG_arg_fail(4)) SWIG_fail; |
14511 | } | |
d14a1e28 RD |
14512 | { |
14513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 14514 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,arg3,arg4); |
d14a1e28 RD |
14515 | |
14516 | wxPyEndAllowThreads(__tstate); | |
14517 | if (PyErr_Occurred()) SWIG_fail; | |
14518 | } | |
093d3ff1 | 14519 | { |
32fe5131 | 14520 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 14521 | } |
d14a1e28 RD |
14522 | return resultobj; |
14523 | fail: | |
14524 | return NULL; | |
14525 | } | |
14526 | ||
14527 | ||
c32bde28 | 14528 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14529 | PyObject *resultobj = NULL; |
093d3ff1 | 14530 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
14531 | wxVisualAttributes result; |
14532 | PyObject * obj0 = 0 ; | |
14533 | char *kwnames[] = { | |
14534 | (char *) "variant", NULL | |
14535 | }; | |
14536 | ||
14537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14538 | if (obj0) { | |
093d3ff1 | 14539 | { |
32fe5131 | 14540 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
14541 | if (SWIG_arg_fail(1)) SWIG_fail; |
14542 | } | |
22bfe96c RD |
14543 | } |
14544 | { | |
110da5b0 | 14545 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 14546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 14547 | result = wxRadioBox::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
14548 | |
14549 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14550 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14551 | } |
14552 | { | |
14553 | wxVisualAttributes * resultptr; | |
32fe5131 | 14554 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
14555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14556 | } | |
14557 | return resultobj; | |
14558 | fail: | |
14559 | return NULL; | |
14560 | } | |
14561 | ||
14562 | ||
c32bde28 | 14563 | static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14564 | PyObject *obj; |
14565 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14566 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
14567 | Py_INCREF(obj); | |
14568 | return Py_BuildValue((char *)""); | |
14569 | } | |
c32bde28 | 14570 | static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14571 | PyObject *resultobj = NULL; |
d14a1e28 | 14572 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
14573 | int arg2 = (int) -1 ; |
14574 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14575 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
14576 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14577 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14578 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14579 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14580 | long arg6 = (long) 0 ; | |
14581 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
14582 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
14583 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
14584 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14585 | wxRadioButton *result; | |
ae8162c8 | 14586 | bool temp3 = false ; |
d14a1e28 RD |
14587 | wxPoint temp4 ; |
14588 | wxSize temp5 ; | |
ae8162c8 | 14589 | bool temp8 = false ; |
d14a1e28 | 14590 | PyObject * obj0 = 0 ; |
994141e6 | 14591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14592 | PyObject * obj2 = 0 ; |
14593 | PyObject * obj3 = 0 ; | |
14594 | PyObject * obj4 = 0 ; | |
994141e6 | 14595 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14596 | PyObject * obj6 = 0 ; |
14597 | PyObject * obj7 = 0 ; | |
14598 | char *kwnames[] = { | |
14599 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14600 | }; | |
14601 | ||
248ed943 | 14602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
14603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14605 | if (obj1) { |
093d3ff1 | 14606 | { |
32fe5131 | 14607 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14608 | if (SWIG_arg_fail(2)) SWIG_fail; |
14609 | } | |
248ed943 RD |
14610 | } |
14611 | if (obj2) { | |
14612 | { | |
14613 | arg3 = wxString_in_helper(obj2); | |
14614 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 14615 | temp3 = true; |
248ed943 | 14616 | } |
d14a1e28 RD |
14617 | } |
14618 | if (obj3) { | |
14619 | { | |
14620 | arg4 = &temp4; | |
14621 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14622 | } | |
14623 | } | |
14624 | if (obj4) { | |
14625 | { | |
14626 | arg5 = &temp5; | |
14627 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14628 | } | |
14629 | } | |
994141e6 | 14630 | if (obj5) { |
093d3ff1 | 14631 | { |
32fe5131 | 14632 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
14633 | if (SWIG_arg_fail(6)) SWIG_fail; |
14634 | } | |
994141e6 | 14635 | } |
d14a1e28 | 14636 | if (obj6) { |
093d3ff1 RD |
14637 | { |
14638 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14639 | if (SWIG_arg_fail(7)) SWIG_fail; | |
14640 | if (arg7 == NULL) { | |
14641 | SWIG_null_ref("wxValidator"); | |
14642 | } | |
14643 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
14644 | } |
14645 | } | |
14646 | if (obj7) { | |
14647 | { | |
14648 | arg8 = wxString_in_helper(obj7); | |
14649 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 14650 | temp8 = true; |
d14a1e28 RD |
14651 | } |
14652 | } | |
14653 | { | |
e3b71cb8 | 14654 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14656 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
14657 | ||
14658 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14659 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14660 | } |
15afbcd0 | 14661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
14662 | { |
14663 | if (temp3) | |
14664 | delete arg3; | |
14665 | } | |
14666 | { | |
14667 | if (temp8) | |
14668 | delete arg8; | |
14669 | } | |
14670 | return resultobj; | |
14671 | fail: | |
14672 | { | |
14673 | if (temp3) | |
14674 | delete arg3; | |
14675 | } | |
14676 | { | |
14677 | if (temp8) | |
14678 | delete arg8; | |
14679 | } | |
14680 | return NULL; | |
14681 | } | |
14682 | ||
14683 | ||
c32bde28 | 14684 | static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14685 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14686 | wxRadioButton *result; |
14687 | char *kwnames[] = { | |
14688 | NULL | |
14689 | }; | |
14690 | ||
14691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
14692 | { | |
e3b71cb8 | 14693 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
14694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14695 | result = (wxRadioButton *)new wxRadioButton(); | |
14696 | ||
14697 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14698 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 14699 | } |
15afbcd0 | 14700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
14701 | return resultobj; |
14702 | fail: | |
14703 | return NULL; | |
14704 | } | |
14705 | ||
14706 | ||
c32bde28 | 14707 | static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14708 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14709 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; |
14710 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14711 | int arg3 = (int) -1 ; |
14712 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14713 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
14714 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14715 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14716 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14717 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14718 | long arg7 = (long) 0 ; | |
14719 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
14720 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
14721 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
14722 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14723 | bool result; | |
ae8162c8 | 14724 | bool temp4 = false ; |
d14a1e28 RD |
14725 | wxPoint temp5 ; |
14726 | wxSize temp6 ; | |
ae8162c8 | 14727 | bool temp9 = false ; |
d14a1e28 RD |
14728 | PyObject * obj0 = 0 ; |
14729 | PyObject * obj1 = 0 ; | |
994141e6 | 14730 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14731 | PyObject * obj3 = 0 ; |
14732 | PyObject * obj4 = 0 ; | |
14733 | PyObject * obj5 = 0 ; | |
994141e6 | 14734 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14735 | PyObject * obj7 = 0 ; |
14736 | PyObject * obj8 = 0 ; | |
14737 | char *kwnames[] = { | |
14738 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
14739 | }; | |
14740 | ||
248ed943 | 14741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
14742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14744 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
14745 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 14746 | if (obj2) { |
093d3ff1 | 14747 | { |
32fe5131 | 14748 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14749 | if (SWIG_arg_fail(3)) SWIG_fail; |
14750 | } | |
248ed943 RD |
14751 | } |
14752 | if (obj3) { | |
14753 | { | |
14754 | arg4 = wxString_in_helper(obj3); | |
14755 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 14756 | temp4 = true; |
248ed943 | 14757 | } |
d14a1e28 RD |
14758 | } |
14759 | if (obj4) { | |
14760 | { | |
14761 | arg5 = &temp5; | |
14762 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14763 | } | |
14764 | } | |
14765 | if (obj5) { | |
14766 | { | |
14767 | arg6 = &temp6; | |
14768 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14769 | } | |
14770 | } | |
994141e6 | 14771 | if (obj6) { |
093d3ff1 | 14772 | { |
32fe5131 | 14773 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
14774 | if (SWIG_arg_fail(7)) SWIG_fail; |
14775 | } | |
994141e6 | 14776 | } |
d14a1e28 | 14777 | if (obj7) { |
093d3ff1 RD |
14778 | { |
14779 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
14780 | if (SWIG_arg_fail(8)) SWIG_fail; | |
14781 | if (arg8 == NULL) { | |
14782 | SWIG_null_ref("wxValidator"); | |
14783 | } | |
14784 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
14785 | } |
14786 | } | |
14787 | if (obj8) { | |
14788 | { | |
14789 | arg9 = wxString_in_helper(obj8); | |
14790 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 14791 | temp9 = true; |
d14a1e28 RD |
14792 | } |
14793 | } | |
14794 | { | |
14795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14796 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
14797 | ||
14798 | wxPyEndAllowThreads(__tstate); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | } | |
4f89f6a3 RD |
14801 | { |
14802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14803 | } | |
d14a1e28 RD |
14804 | { |
14805 | if (temp4) | |
14806 | delete arg4; | |
14807 | } | |
14808 | { | |
14809 | if (temp9) | |
14810 | delete arg9; | |
14811 | } | |
14812 | return resultobj; | |
14813 | fail: | |
14814 | { | |
14815 | if (temp4) | |
14816 | delete arg4; | |
14817 | } | |
14818 | { | |
14819 | if (temp9) | |
14820 | delete arg9; | |
14821 | } | |
14822 | return NULL; | |
14823 | } | |
14824 | ||
14825 | ||
c32bde28 | 14826 | static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14827 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14828 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; |
14829 | bool result; | |
14830 | PyObject * obj0 = 0 ; | |
14831 | char *kwnames[] = { | |
14832 | (char *) "self", NULL | |
14833 | }; | |
14834 | ||
14835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
14836 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14837 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
14838 | { |
14839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14840 | result = (bool)(arg1)->GetValue(); | |
14841 | ||
14842 | wxPyEndAllowThreads(__tstate); | |
14843 | if (PyErr_Occurred()) SWIG_fail; | |
14844 | } | |
4f89f6a3 RD |
14845 | { |
14846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14847 | } | |
d14a1e28 RD |
14848 | return resultobj; |
14849 | fail: | |
14850 | return NULL; | |
14851 | } | |
14852 | ||
14853 | ||
c32bde28 | 14854 | static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14855 | PyObject *resultobj = NULL; |
d14a1e28 RD |
14856 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; |
14857 | bool arg2 ; | |
14858 | PyObject * obj0 = 0 ; | |
14859 | PyObject * obj1 = 0 ; | |
14860 | char *kwnames[] = { | |
14861 | (char *) "self",(char *) "value", NULL | |
14862 | }; | |
14863 | ||
14864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
14865 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxRadioButton, SWIG_POINTER_EXCEPTION | 0); |
14866 | if (SWIG_arg_fail(1)) SWIG_fail; | |
14867 | { | |
32fe5131 | 14868 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
14869 | if (SWIG_arg_fail(2)) SWIG_fail; |
14870 | } | |
d14a1e28 RD |
14871 | { |
14872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14873 | (arg1)->SetValue(arg2); | |
14874 | ||
14875 | wxPyEndAllowThreads(__tstate); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
14877 | } | |
14878 | Py_INCREF(Py_None); resultobj = Py_None; | |
14879 | return resultobj; | |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
c32bde28 | 14885 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14886 | PyObject *resultobj = NULL; |
093d3ff1 | 14887 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
14888 | wxVisualAttributes result; |
14889 | PyObject * obj0 = 0 ; | |
14890 | char *kwnames[] = { | |
14891 | (char *) "variant", NULL | |
14892 | }; | |
14893 | ||
14894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14895 | if (obj0) { | |
093d3ff1 | 14896 | { |
32fe5131 | 14897 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
14898 | if (SWIG_arg_fail(1)) SWIG_fail; |
14899 | } | |
22bfe96c RD |
14900 | } |
14901 | { | |
110da5b0 | 14902 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 14903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 14904 | result = wxRadioButton::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
14905 | |
14906 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14907 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14908 | } |
14909 | { | |
14910 | wxVisualAttributes * resultptr; | |
32fe5131 | 14911 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
14912 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
14913 | } | |
14914 | return resultobj; | |
14915 | fail: | |
14916 | return NULL; | |
14917 | } | |
14918 | ||
14919 | ||
c32bde28 | 14920 | static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14921 | PyObject *obj; |
14922 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14923 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
14924 | Py_INCREF(obj); | |
14925 | return Py_BuildValue((char *)""); | |
14926 | } | |
c32bde28 | 14927 | static int _wrap_SliderNameStr_set(PyObject *) { |
b2dc1044 RD |
14928 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
14929 | return 1; | |
14930 | } | |
14931 | ||
14932 | ||
093d3ff1 | 14933 | static PyObject *_wrap_SliderNameStr_get(void) { |
32fe5131 | 14934 | PyObject *pyobj = NULL; |
b2dc1044 RD |
14935 | |
14936 | { | |
14937 | #if wxUSE_UNICODE | |
14938 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14939 | #else | |
14940 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
14941 | #endif | |
14942 | } | |
14943 | return pyobj; | |
14944 | } | |
14945 | ||
14946 | ||
c32bde28 | 14947 | static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 14948 | PyObject *resultobj = NULL; |
d14a1e28 | 14949 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
14950 | int arg2 = (int) -1 ; |
14951 | int arg3 = (int) 0 ; | |
14952 | int arg4 = (int) 0 ; | |
14953 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
14954 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
14955 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
14956 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
14957 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
14958 | long arg8 = (long) wxSL_HORIZONTAL ; | |
14959 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
14960 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
14961 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
14962 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
14963 | wxSlider *result; | |
14964 | wxPoint temp6 ; | |
14965 | wxSize temp7 ; | |
ae8162c8 | 14966 | bool temp10 = false ; |
d14a1e28 | 14967 | PyObject * obj0 = 0 ; |
994141e6 RD |
14968 | PyObject * obj1 = 0 ; |
14969 | PyObject * obj2 = 0 ; | |
14970 | PyObject * obj3 = 0 ; | |
14971 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
14972 | PyObject * obj5 = 0 ; |
14973 | PyObject * obj6 = 0 ; | |
994141e6 | 14974 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
14975 | PyObject * obj8 = 0 ; |
14976 | PyObject * obj9 = 0 ; | |
14977 | char *kwnames[] = { | |
994141e6 | 14978 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
14979 | }; |
14980 | ||
248ed943 | 14981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
093d3ff1 RD |
14982 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
14983 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 14984 | if (obj1) { |
093d3ff1 | 14985 | { |
32fe5131 | 14986 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
14987 | if (SWIG_arg_fail(2)) SWIG_fail; |
14988 | } | |
248ed943 RD |
14989 | } |
14990 | if (obj2) { | |
093d3ff1 | 14991 | { |
32fe5131 | 14992 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
14993 | if (SWIG_arg_fail(3)) SWIG_fail; |
14994 | } | |
248ed943 RD |
14995 | } |
14996 | if (obj3) { | |
093d3ff1 | 14997 | { |
32fe5131 | 14998 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
14999 | if (SWIG_arg_fail(4)) SWIG_fail; |
15000 | } | |
248ed943 RD |
15001 | } |
15002 | if (obj4) { | |
093d3ff1 | 15003 | { |
32fe5131 | 15004 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
15005 | if (SWIG_arg_fail(5)) SWIG_fail; |
15006 | } | |
248ed943 | 15007 | } |
d14a1e28 RD |
15008 | if (obj5) { |
15009 | { | |
15010 | arg6 = &temp6; | |
15011 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
15012 | } | |
15013 | } | |
15014 | if (obj6) { | |
15015 | { | |
15016 | arg7 = &temp7; | |
15017 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
15018 | } | |
15019 | } | |
994141e6 | 15020 | if (obj7) { |
093d3ff1 | 15021 | { |
32fe5131 | 15022 | arg8 = static_cast<long >(SWIG_As_long(obj7)); |
093d3ff1 RD |
15023 | if (SWIG_arg_fail(8)) SWIG_fail; |
15024 | } | |
994141e6 | 15025 | } |
d14a1e28 | 15026 | if (obj8) { |
093d3ff1 RD |
15027 | { |
15028 | SWIG_Python_ConvertPtr(obj8, (void **)&arg9, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15029 | if (SWIG_arg_fail(9)) SWIG_fail; | |
15030 | if (arg9 == NULL) { | |
15031 | SWIG_null_ref("wxValidator"); | |
15032 | } | |
15033 | if (SWIG_arg_fail(9)) SWIG_fail; | |
d14a1e28 RD |
15034 | } |
15035 | } | |
15036 | if (obj9) { | |
15037 | { | |
15038 | arg10 = wxString_in_helper(obj9); | |
15039 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 15040 | temp10 = true; |
d14a1e28 RD |
15041 | } |
15042 | } | |
15043 | { | |
e3b71cb8 | 15044 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15046 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
15047 | ||
15048 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15049 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15050 | } |
15afbcd0 | 15051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
15052 | { |
15053 | if (temp10) | |
15054 | delete arg10; | |
15055 | } | |
15056 | return resultobj; | |
15057 | fail: | |
15058 | { | |
15059 | if (temp10) | |
15060 | delete arg10; | |
15061 | } | |
15062 | return NULL; | |
15063 | } | |
15064 | ||
15065 | ||
c32bde28 | 15066 | static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15067 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15068 | wxSlider *result; |
15069 | char *kwnames[] = { | |
15070 | NULL | |
15071 | }; | |
15072 | ||
15073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
15074 | { | |
e3b71cb8 | 15075 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15077 | result = (wxSlider *)new wxSlider(); | |
15078 | ||
15079 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15081 | } |
15afbcd0 | 15082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
15083 | return resultobj; |
15084 | fail: | |
15085 | return NULL; | |
15086 | } | |
15087 | ||
15088 | ||
c32bde28 | 15089 | static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15090 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15091 | wxSlider *arg1 = (wxSlider *) 0 ; |
15092 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
15093 | int arg3 = (int) -1 ; |
15094 | int arg4 = (int) 0 ; | |
15095 | int arg5 = (int) 0 ; | |
15096 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
15097 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
15098 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
15099 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
15100 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
15101 | long arg9 = (long) wxSL_HORIZONTAL ; | |
15102 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
15103 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
15104 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
15105 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
15106 | bool result; | |
15107 | wxPoint temp7 ; | |
15108 | wxSize temp8 ; | |
ae8162c8 | 15109 | bool temp11 = false ; |
d14a1e28 RD |
15110 | PyObject * obj0 = 0 ; |
15111 | PyObject * obj1 = 0 ; | |
994141e6 RD |
15112 | PyObject * obj2 = 0 ; |
15113 | PyObject * obj3 = 0 ; | |
15114 | PyObject * obj4 = 0 ; | |
15115 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15116 | PyObject * obj6 = 0 ; |
15117 | PyObject * obj7 = 0 ; | |
994141e6 | 15118 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
15119 | PyObject * obj9 = 0 ; |
15120 | PyObject * obj10 = 0 ; | |
15121 | char *kwnames[] = { | |
994141e6 | 15122 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
15123 | }; |
15124 | ||
248ed943 | 15125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
093d3ff1 RD |
15126 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15127 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15128 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
15129 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 15130 | if (obj2) { |
093d3ff1 | 15131 | { |
32fe5131 | 15132 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15133 | if (SWIG_arg_fail(3)) SWIG_fail; |
15134 | } | |
248ed943 RD |
15135 | } |
15136 | if (obj3) { | |
093d3ff1 | 15137 | { |
32fe5131 | 15138 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
15139 | if (SWIG_arg_fail(4)) SWIG_fail; |
15140 | } | |
248ed943 RD |
15141 | } |
15142 | if (obj4) { | |
093d3ff1 | 15143 | { |
32fe5131 | 15144 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
15145 | if (SWIG_arg_fail(5)) SWIG_fail; |
15146 | } | |
248ed943 RD |
15147 | } |
15148 | if (obj5) { | |
093d3ff1 | 15149 | { |
32fe5131 | 15150 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
15151 | if (SWIG_arg_fail(6)) SWIG_fail; |
15152 | } | |
248ed943 | 15153 | } |
d14a1e28 RD |
15154 | if (obj6) { |
15155 | { | |
15156 | arg7 = &temp7; | |
15157 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
15158 | } | |
15159 | } | |
15160 | if (obj7) { | |
15161 | { | |
15162 | arg8 = &temp8; | |
15163 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
15164 | } | |
15165 | } | |
994141e6 | 15166 | if (obj8) { |
093d3ff1 | 15167 | { |
32fe5131 | 15168 | arg9 = static_cast<long >(SWIG_As_long(obj8)); |
093d3ff1 RD |
15169 | if (SWIG_arg_fail(9)) SWIG_fail; |
15170 | } | |
994141e6 | 15171 | } |
d14a1e28 | 15172 | if (obj9) { |
093d3ff1 RD |
15173 | { |
15174 | SWIG_Python_ConvertPtr(obj9, (void **)&arg10, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15175 | if (SWIG_arg_fail(10)) SWIG_fail; | |
15176 | if (arg10 == NULL) { | |
15177 | SWIG_null_ref("wxValidator"); | |
15178 | } | |
15179 | if (SWIG_arg_fail(10)) SWIG_fail; | |
d14a1e28 RD |
15180 | } |
15181 | } | |
15182 | if (obj10) { | |
15183 | { | |
15184 | arg11 = wxString_in_helper(obj10); | |
15185 | if (arg11 == NULL) SWIG_fail; | |
ae8162c8 | 15186 | temp11 = true; |
d14a1e28 RD |
15187 | } |
15188 | } | |
15189 | { | |
15190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15191 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
15192 | ||
15193 | wxPyEndAllowThreads(__tstate); | |
15194 | if (PyErr_Occurred()) SWIG_fail; | |
15195 | } | |
4f89f6a3 RD |
15196 | { |
15197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15198 | } | |
d14a1e28 RD |
15199 | { |
15200 | if (temp11) | |
15201 | delete arg11; | |
15202 | } | |
15203 | return resultobj; | |
15204 | fail: | |
15205 | { | |
15206 | if (temp11) | |
15207 | delete arg11; | |
15208 | } | |
15209 | return NULL; | |
15210 | } | |
15211 | ||
15212 | ||
c32bde28 | 15213 | static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15214 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15215 | wxSlider *arg1 = (wxSlider *) 0 ; |
15216 | int result; | |
15217 | PyObject * obj0 = 0 ; | |
15218 | char *kwnames[] = { | |
15219 | (char *) "self", NULL | |
15220 | }; | |
15221 | ||
15222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15223 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15224 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15225 | { |
15226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15227 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
15228 | ||
15229 | wxPyEndAllowThreads(__tstate); | |
15230 | if (PyErr_Occurred()) SWIG_fail; | |
15231 | } | |
093d3ff1 | 15232 | { |
32fe5131 | 15233 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15234 | } |
d14a1e28 RD |
15235 | return resultobj; |
15236 | fail: | |
15237 | return NULL; | |
15238 | } | |
15239 | ||
15240 | ||
c32bde28 | 15241 | static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15242 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15243 | wxSlider *arg1 = (wxSlider *) 0 ; |
15244 | int arg2 ; | |
15245 | PyObject * obj0 = 0 ; | |
994141e6 | 15246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15247 | char *kwnames[] = { |
15248 | (char *) "self",(char *) "value", NULL | |
15249 | }; | |
15250 | ||
994141e6 | 15251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15254 | { | |
32fe5131 | 15255 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15256 | if (SWIG_arg_fail(2)) SWIG_fail; |
15257 | } | |
d14a1e28 RD |
15258 | { |
15259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15260 | (arg1)->SetValue(arg2); | |
15261 | ||
15262 | wxPyEndAllowThreads(__tstate); | |
15263 | if (PyErr_Occurred()) SWIG_fail; | |
15264 | } | |
15265 | Py_INCREF(Py_None); resultobj = Py_None; | |
15266 | return resultobj; | |
15267 | fail: | |
15268 | return NULL; | |
15269 | } | |
15270 | ||
15271 | ||
c32bde28 | 15272 | static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15273 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15274 | wxSlider *arg1 = (wxSlider *) 0 ; |
15275 | int arg2 ; | |
15276 | int arg3 ; | |
15277 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15278 | PyObject * obj1 = 0 ; |
15279 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15280 | char *kwnames[] = { |
15281 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
15282 | }; | |
15283 | ||
994141e6 | 15284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15285 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15286 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15287 | { | |
32fe5131 | 15288 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15289 | if (SWIG_arg_fail(2)) SWIG_fail; |
15290 | } | |
15291 | { | |
32fe5131 | 15292 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15293 | if (SWIG_arg_fail(3)) SWIG_fail; |
15294 | } | |
d14a1e28 RD |
15295 | { |
15296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15297 | (arg1)->SetRange(arg2,arg3); | |
15298 | ||
15299 | wxPyEndAllowThreads(__tstate); | |
15300 | if (PyErr_Occurred()) SWIG_fail; | |
15301 | } | |
15302 | Py_INCREF(Py_None); resultobj = Py_None; | |
15303 | return resultobj; | |
15304 | fail: | |
15305 | return NULL; | |
15306 | } | |
15307 | ||
15308 | ||
c32bde28 | 15309 | static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15310 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15311 | wxSlider *arg1 = (wxSlider *) 0 ; |
15312 | int result; | |
15313 | PyObject * obj0 = 0 ; | |
15314 | char *kwnames[] = { | |
15315 | (char *) "self", NULL | |
15316 | }; | |
15317 | ||
15318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15319 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15320 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15321 | { |
15322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15323 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
15324 | ||
15325 | wxPyEndAllowThreads(__tstate); | |
15326 | if (PyErr_Occurred()) SWIG_fail; | |
15327 | } | |
093d3ff1 | 15328 | { |
32fe5131 | 15329 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15330 | } |
d14a1e28 RD |
15331 | return resultobj; |
15332 | fail: | |
15333 | return NULL; | |
15334 | } | |
15335 | ||
15336 | ||
c32bde28 | 15337 | static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15338 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15339 | wxSlider *arg1 = (wxSlider *) 0 ; |
15340 | int result; | |
15341 | PyObject * obj0 = 0 ; | |
15342 | char *kwnames[] = { | |
15343 | (char *) "self", NULL | |
15344 | }; | |
15345 | ||
15346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15349 | { |
15350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15351 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
15352 | ||
15353 | wxPyEndAllowThreads(__tstate); | |
15354 | if (PyErr_Occurred()) SWIG_fail; | |
15355 | } | |
093d3ff1 | 15356 | { |
32fe5131 | 15357 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15358 | } |
d14a1e28 RD |
15359 | return resultobj; |
15360 | fail: | |
15361 | return NULL; | |
15362 | } | |
15363 | ||
15364 | ||
c32bde28 | 15365 | static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15366 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15367 | wxSlider *arg1 = (wxSlider *) 0 ; |
15368 | int arg2 ; | |
15369 | PyObject * obj0 = 0 ; | |
994141e6 | 15370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15371 | char *kwnames[] = { |
15372 | (char *) "self",(char *) "minValue", NULL | |
15373 | }; | |
15374 | ||
994141e6 | 15375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15378 | { | |
32fe5131 | 15379 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15380 | if (SWIG_arg_fail(2)) SWIG_fail; |
15381 | } | |
d14a1e28 RD |
15382 | { |
15383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15384 | (arg1)->SetMin(arg2); | |
15385 | ||
15386 | wxPyEndAllowThreads(__tstate); | |
15387 | if (PyErr_Occurred()) SWIG_fail; | |
15388 | } | |
15389 | Py_INCREF(Py_None); resultobj = Py_None; | |
15390 | return resultobj; | |
15391 | fail: | |
15392 | return NULL; | |
15393 | } | |
15394 | ||
15395 | ||
c32bde28 | 15396 | static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15397 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15398 | wxSlider *arg1 = (wxSlider *) 0 ; |
15399 | int arg2 ; | |
15400 | PyObject * obj0 = 0 ; | |
994141e6 | 15401 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15402 | char *kwnames[] = { |
15403 | (char *) "self",(char *) "maxValue", NULL | |
15404 | }; | |
15405 | ||
994141e6 | 15406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15407 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15408 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15409 | { | |
32fe5131 | 15410 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15411 | if (SWIG_arg_fail(2)) SWIG_fail; |
15412 | } | |
d14a1e28 RD |
15413 | { |
15414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15415 | (arg1)->SetMax(arg2); | |
15416 | ||
15417 | wxPyEndAllowThreads(__tstate); | |
15418 | if (PyErr_Occurred()) SWIG_fail; | |
15419 | } | |
15420 | Py_INCREF(Py_None); resultobj = Py_None; | |
15421 | return resultobj; | |
15422 | fail: | |
15423 | return NULL; | |
15424 | } | |
15425 | ||
15426 | ||
c32bde28 | 15427 | static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15428 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15429 | wxSlider *arg1 = (wxSlider *) 0 ; |
15430 | int arg2 ; | |
15431 | PyObject * obj0 = 0 ; | |
994141e6 | 15432 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15433 | char *kwnames[] = { |
15434 | (char *) "self",(char *) "lineSize", NULL | |
15435 | }; | |
15436 | ||
994141e6 | 15437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15438 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15439 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15440 | { | |
32fe5131 | 15441 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15442 | if (SWIG_arg_fail(2)) SWIG_fail; |
15443 | } | |
d14a1e28 RD |
15444 | { |
15445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15446 | (arg1)->SetLineSize(arg2); | |
15447 | ||
15448 | wxPyEndAllowThreads(__tstate); | |
15449 | if (PyErr_Occurred()) SWIG_fail; | |
15450 | } | |
15451 | Py_INCREF(Py_None); resultobj = Py_None; | |
15452 | return resultobj; | |
15453 | fail: | |
15454 | return NULL; | |
15455 | } | |
15456 | ||
15457 | ||
c32bde28 | 15458 | static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15459 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15460 | wxSlider *arg1 = (wxSlider *) 0 ; |
15461 | int arg2 ; | |
15462 | PyObject * obj0 = 0 ; | |
994141e6 | 15463 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15464 | char *kwnames[] = { |
15465 | (char *) "self",(char *) "pageSize", NULL | |
15466 | }; | |
15467 | ||
994141e6 | 15468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15469 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15470 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15471 | { | |
32fe5131 | 15472 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15473 | if (SWIG_arg_fail(2)) SWIG_fail; |
15474 | } | |
d14a1e28 RD |
15475 | { |
15476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15477 | (arg1)->SetPageSize(arg2); | |
15478 | ||
15479 | wxPyEndAllowThreads(__tstate); | |
15480 | if (PyErr_Occurred()) SWIG_fail; | |
15481 | } | |
15482 | Py_INCREF(Py_None); resultobj = Py_None; | |
15483 | return resultobj; | |
15484 | fail: | |
15485 | return NULL; | |
15486 | } | |
15487 | ||
15488 | ||
c32bde28 | 15489 | static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15490 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15491 | wxSlider *arg1 = (wxSlider *) 0 ; |
15492 | int result; | |
15493 | PyObject * obj0 = 0 ; | |
15494 | char *kwnames[] = { | |
15495 | (char *) "self", NULL | |
15496 | }; | |
15497 | ||
15498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15499 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15500 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15501 | { |
15502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15503 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
15504 | ||
15505 | wxPyEndAllowThreads(__tstate); | |
15506 | if (PyErr_Occurred()) SWIG_fail; | |
15507 | } | |
093d3ff1 | 15508 | { |
32fe5131 | 15509 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15510 | } |
d14a1e28 RD |
15511 | return resultobj; |
15512 | fail: | |
15513 | return NULL; | |
15514 | } | |
15515 | ||
15516 | ||
c32bde28 | 15517 | static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15518 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15519 | wxSlider *arg1 = (wxSlider *) 0 ; |
15520 | int result; | |
15521 | PyObject * obj0 = 0 ; | |
15522 | char *kwnames[] = { | |
15523 | (char *) "self", NULL | |
15524 | }; | |
15525 | ||
15526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15529 | { |
15530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15531 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
15532 | ||
15533 | wxPyEndAllowThreads(__tstate); | |
15534 | if (PyErr_Occurred()) SWIG_fail; | |
15535 | } | |
093d3ff1 | 15536 | { |
32fe5131 | 15537 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15538 | } |
d14a1e28 RD |
15539 | return resultobj; |
15540 | fail: | |
15541 | return NULL; | |
15542 | } | |
15543 | ||
15544 | ||
c32bde28 | 15545 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15546 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15547 | wxSlider *arg1 = (wxSlider *) 0 ; |
15548 | int arg2 ; | |
15549 | PyObject * obj0 = 0 ; | |
994141e6 | 15550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15551 | char *kwnames[] = { |
15552 | (char *) "self",(char *) "lenPixels", NULL | |
15553 | }; | |
15554 | ||
994141e6 | 15555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15556 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15557 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15558 | { | |
32fe5131 | 15559 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15560 | if (SWIG_arg_fail(2)) SWIG_fail; |
15561 | } | |
d14a1e28 RD |
15562 | { |
15563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15564 | (arg1)->SetThumbLength(arg2); | |
15565 | ||
15566 | wxPyEndAllowThreads(__tstate); | |
15567 | if (PyErr_Occurred()) SWIG_fail; | |
15568 | } | |
15569 | Py_INCREF(Py_None); resultobj = Py_None; | |
15570 | return resultobj; | |
15571 | fail: | |
15572 | return NULL; | |
15573 | } | |
15574 | ||
15575 | ||
c32bde28 | 15576 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15577 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15578 | wxSlider *arg1 = (wxSlider *) 0 ; |
15579 | int result; | |
15580 | PyObject * obj0 = 0 ; | |
15581 | char *kwnames[] = { | |
15582 | (char *) "self", NULL | |
15583 | }; | |
15584 | ||
15585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15586 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15587 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15588 | { |
15589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15590 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
15591 | ||
15592 | wxPyEndAllowThreads(__tstate); | |
15593 | if (PyErr_Occurred()) SWIG_fail; | |
15594 | } | |
093d3ff1 | 15595 | { |
32fe5131 | 15596 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15597 | } |
d14a1e28 RD |
15598 | return resultobj; |
15599 | fail: | |
15600 | return NULL; | |
15601 | } | |
15602 | ||
15603 | ||
c32bde28 | 15604 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15605 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15606 | wxSlider *arg1 = (wxSlider *) 0 ; |
15607 | int arg2 ; | |
994141e6 | 15608 | int arg3 = (int) 1 ; |
d14a1e28 | 15609 | PyObject * obj0 = 0 ; |
994141e6 RD |
15610 | PyObject * obj1 = 0 ; |
15611 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15612 | char *kwnames[] = { |
15613 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
15614 | }; | |
15615 | ||
994141e6 | 15616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15617 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15618 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15619 | { | |
32fe5131 | 15620 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15621 | if (SWIG_arg_fail(2)) SWIG_fail; |
15622 | } | |
994141e6 | 15623 | if (obj2) { |
093d3ff1 | 15624 | { |
32fe5131 | 15625 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15626 | if (SWIG_arg_fail(3)) SWIG_fail; |
15627 | } | |
994141e6 | 15628 | } |
d14a1e28 RD |
15629 | { |
15630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15631 | (arg1)->SetTickFreq(arg2,arg3); | |
15632 | ||
15633 | wxPyEndAllowThreads(__tstate); | |
15634 | if (PyErr_Occurred()) SWIG_fail; | |
15635 | } | |
15636 | Py_INCREF(Py_None); resultobj = Py_None; | |
15637 | return resultobj; | |
15638 | fail: | |
15639 | return NULL; | |
15640 | } | |
15641 | ||
15642 | ||
c32bde28 | 15643 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15644 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15645 | wxSlider *arg1 = (wxSlider *) 0 ; |
15646 | int result; | |
15647 | PyObject * obj0 = 0 ; | |
15648 | char *kwnames[] = { | |
15649 | (char *) "self", NULL | |
15650 | }; | |
15651 | ||
15652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15653 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15654 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15655 | { |
15656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15657 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
15658 | ||
15659 | wxPyEndAllowThreads(__tstate); | |
15660 | if (PyErr_Occurred()) SWIG_fail; | |
15661 | } | |
093d3ff1 | 15662 | { |
32fe5131 | 15663 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15664 | } |
d14a1e28 RD |
15665 | return resultobj; |
15666 | fail: | |
15667 | return NULL; | |
15668 | } | |
15669 | ||
15670 | ||
c32bde28 | 15671 | static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15672 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15673 | wxSlider *arg1 = (wxSlider *) 0 ; |
15674 | PyObject * obj0 = 0 ; | |
15675 | char *kwnames[] = { | |
15676 | (char *) "self", NULL | |
15677 | }; | |
15678 | ||
15679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15680 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15681 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15682 | { |
15683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15684 | (arg1)->ClearTicks(); | |
15685 | ||
15686 | wxPyEndAllowThreads(__tstate); | |
15687 | if (PyErr_Occurred()) SWIG_fail; | |
15688 | } | |
15689 | Py_INCREF(Py_None); resultobj = Py_None; | |
15690 | return resultobj; | |
15691 | fail: | |
15692 | return NULL; | |
15693 | } | |
15694 | ||
15695 | ||
c32bde28 | 15696 | static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15697 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15698 | wxSlider *arg1 = (wxSlider *) 0 ; |
15699 | int arg2 ; | |
15700 | PyObject * obj0 = 0 ; | |
994141e6 | 15701 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15702 | char *kwnames[] = { |
15703 | (char *) "self",(char *) "tickPos", NULL | |
15704 | }; | |
15705 | ||
994141e6 | 15706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
15707 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15708 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15709 | { | |
32fe5131 | 15710 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15711 | if (SWIG_arg_fail(2)) SWIG_fail; |
15712 | } | |
d14a1e28 RD |
15713 | { |
15714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15715 | (arg1)->SetTick(arg2); | |
15716 | ||
15717 | wxPyEndAllowThreads(__tstate); | |
15718 | if (PyErr_Occurred()) SWIG_fail; | |
15719 | } | |
15720 | Py_INCREF(Py_None); resultobj = Py_None; | |
15721 | return resultobj; | |
15722 | fail: | |
15723 | return NULL; | |
15724 | } | |
15725 | ||
15726 | ||
c32bde28 | 15727 | static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15728 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15729 | wxSlider *arg1 = (wxSlider *) 0 ; |
15730 | PyObject * obj0 = 0 ; | |
15731 | char *kwnames[] = { | |
15732 | (char *) "self", NULL | |
15733 | }; | |
15734 | ||
15735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15738 | { |
15739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15740 | (arg1)->ClearSel(); | |
15741 | ||
15742 | wxPyEndAllowThreads(__tstate); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
15744 | } | |
15745 | Py_INCREF(Py_None); resultobj = Py_None; | |
15746 | return resultobj; | |
15747 | fail: | |
15748 | return NULL; | |
15749 | } | |
15750 | ||
15751 | ||
c32bde28 | 15752 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15753 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15754 | wxSlider *arg1 = (wxSlider *) 0 ; |
15755 | int result; | |
15756 | PyObject * obj0 = 0 ; | |
15757 | char *kwnames[] = { | |
15758 | (char *) "self", NULL | |
15759 | }; | |
15760 | ||
15761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15764 | { |
15765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15766 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
15767 | ||
15768 | wxPyEndAllowThreads(__tstate); | |
15769 | if (PyErr_Occurred()) SWIG_fail; | |
15770 | } | |
093d3ff1 | 15771 | { |
32fe5131 | 15772 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15773 | } |
d14a1e28 RD |
15774 | return resultobj; |
15775 | fail: | |
15776 | return NULL; | |
15777 | } | |
15778 | ||
15779 | ||
c32bde28 | 15780 | static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15781 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15782 | wxSlider *arg1 = (wxSlider *) 0 ; |
15783 | int result; | |
15784 | PyObject * obj0 = 0 ; | |
15785 | char *kwnames[] = { | |
15786 | (char *) "self", NULL | |
15787 | }; | |
15788 | ||
15789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
15790 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15791 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
15792 | { |
15793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15794 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
15795 | ||
15796 | wxPyEndAllowThreads(__tstate); | |
15797 | if (PyErr_Occurred()) SWIG_fail; | |
15798 | } | |
093d3ff1 | 15799 | { |
32fe5131 | 15800 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 15801 | } |
d14a1e28 RD |
15802 | return resultobj; |
15803 | fail: | |
15804 | return NULL; | |
15805 | } | |
15806 | ||
15807 | ||
c32bde28 | 15808 | static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15809 | PyObject *resultobj = NULL; |
d14a1e28 RD |
15810 | wxSlider *arg1 = (wxSlider *) 0 ; |
15811 | int arg2 ; | |
15812 | int arg3 ; | |
15813 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15814 | PyObject * obj1 = 0 ; |
15815 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15816 | char *kwnames[] = { |
15817 | (char *) "self",(char *) "min",(char *) "max", NULL | |
15818 | }; | |
15819 | ||
994141e6 | 15820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
15821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxSlider, SWIG_POINTER_EXCEPTION | 0); |
15822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
15823 | { | |
32fe5131 | 15824 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15825 | if (SWIG_arg_fail(2)) SWIG_fail; |
15826 | } | |
15827 | { | |
32fe5131 | 15828 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
15829 | if (SWIG_arg_fail(3)) SWIG_fail; |
15830 | } | |
d14a1e28 RD |
15831 | { |
15832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15833 | (arg1)->SetSelection(arg2,arg3); | |
15834 | ||
15835 | wxPyEndAllowThreads(__tstate); | |
15836 | if (PyErr_Occurred()) SWIG_fail; | |
15837 | } | |
15838 | Py_INCREF(Py_None); resultobj = Py_None; | |
15839 | return resultobj; | |
15840 | fail: | |
15841 | return NULL; | |
15842 | } | |
15843 | ||
15844 | ||
c32bde28 | 15845 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15846 | PyObject *resultobj = NULL; |
093d3ff1 | 15847 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
15848 | wxVisualAttributes result; |
15849 | PyObject * obj0 = 0 ; | |
15850 | char *kwnames[] = { | |
15851 | (char *) "variant", NULL | |
15852 | }; | |
15853 | ||
15854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15855 | if (obj0) { | |
093d3ff1 | 15856 | { |
32fe5131 | 15857 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
15858 | if (SWIG_arg_fail(1)) SWIG_fail; |
15859 | } | |
22bfe96c RD |
15860 | } |
15861 | { | |
110da5b0 | 15862 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 15863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 15864 | result = wxSlider::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
15865 | |
15866 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15867 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15868 | } |
15869 | { | |
15870 | wxVisualAttributes * resultptr; | |
32fe5131 | 15871 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
15872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
15873 | } | |
15874 | return resultobj; | |
15875 | fail: | |
15876 | return NULL; | |
15877 | } | |
15878 | ||
15879 | ||
c32bde28 | 15880 | static PyObject * Slider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15881 | PyObject *obj; |
15882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15883 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
15884 | Py_INCREF(obj); | |
15885 | return Py_BuildValue((char *)""); | |
15886 | } | |
c32bde28 | 15887 | static int _wrap_ToggleButtonNameStr_set(PyObject *) { |
b2dc1044 RD |
15888 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
15889 | return 1; | |
15890 | } | |
15891 | ||
15892 | ||
093d3ff1 | 15893 | static PyObject *_wrap_ToggleButtonNameStr_get(void) { |
32fe5131 | 15894 | PyObject *pyobj = NULL; |
b2dc1044 RD |
15895 | |
15896 | { | |
15897 | #if wxUSE_UNICODE | |
15898 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15899 | #else | |
15900 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
15901 | #endif | |
15902 | } | |
15903 | return pyobj; | |
15904 | } | |
15905 | ||
15906 | ||
c32bde28 | 15907 | static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 15908 | PyObject *resultobj = NULL; |
d14a1e28 | 15909 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 RD |
15910 | int arg2 = (int) -1 ; |
15911 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15912 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
15913 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15914 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15915 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15916 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15917 | long arg6 = (long) 0 ; | |
15918 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
15919 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
15920 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
15921 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15922 | wxToggleButton *result; | |
ae8162c8 | 15923 | bool temp3 = false ; |
d14a1e28 RD |
15924 | wxPoint temp4 ; |
15925 | wxSize temp5 ; | |
ae8162c8 | 15926 | bool temp8 = false ; |
d14a1e28 | 15927 | PyObject * obj0 = 0 ; |
994141e6 | 15928 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15929 | PyObject * obj2 = 0 ; |
15930 | PyObject * obj3 = 0 ; | |
15931 | PyObject * obj4 = 0 ; | |
994141e6 | 15932 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15933 | PyObject * obj6 = 0 ; |
15934 | PyObject * obj7 = 0 ; | |
15935 | char *kwnames[] = { | |
15936 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
15937 | }; | |
15938 | ||
248ed943 | 15939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
15940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
15941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 15942 | if (obj1) { |
093d3ff1 | 15943 | { |
32fe5131 | 15944 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
15945 | if (SWIG_arg_fail(2)) SWIG_fail; |
15946 | } | |
248ed943 RD |
15947 | } |
15948 | if (obj2) { | |
15949 | { | |
15950 | arg3 = wxString_in_helper(obj2); | |
15951 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 15952 | temp3 = true; |
248ed943 | 15953 | } |
d14a1e28 RD |
15954 | } |
15955 | if (obj3) { | |
15956 | { | |
15957 | arg4 = &temp4; | |
15958 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15959 | } | |
15960 | } | |
15961 | if (obj4) { | |
15962 | { | |
15963 | arg5 = &temp5; | |
15964 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15965 | } | |
15966 | } | |
994141e6 | 15967 | if (obj5) { |
093d3ff1 | 15968 | { |
32fe5131 | 15969 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
15970 | if (SWIG_arg_fail(6)) SWIG_fail; |
15971 | } | |
994141e6 | 15972 | } |
d14a1e28 | 15973 | if (obj6) { |
093d3ff1 RD |
15974 | { |
15975 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
15976 | if (SWIG_arg_fail(7)) SWIG_fail; | |
15977 | if (arg7 == NULL) { | |
15978 | SWIG_null_ref("wxValidator"); | |
15979 | } | |
15980 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
15981 | } |
15982 | } | |
15983 | if (obj7) { | |
15984 | { | |
15985 | arg8 = wxString_in_helper(obj7); | |
15986 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 15987 | temp8 = true; |
d14a1e28 RD |
15988 | } |
15989 | } | |
15990 | { | |
e3b71cb8 | 15991 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15993 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
15994 | ||
15995 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15996 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15997 | } |
15afbcd0 | 15998 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
15999 | { |
16000 | if (temp3) | |
16001 | delete arg3; | |
16002 | } | |
16003 | { | |
16004 | if (temp8) | |
16005 | delete arg8; | |
16006 | } | |
16007 | return resultobj; | |
16008 | fail: | |
16009 | { | |
16010 | if (temp3) | |
16011 | delete arg3; | |
16012 | } | |
16013 | { | |
16014 | if (temp8) | |
16015 | delete arg8; | |
16016 | } | |
16017 | return NULL; | |
16018 | } | |
16019 | ||
16020 | ||
c32bde28 | 16021 | static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16022 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16023 | wxToggleButton *result; |
16024 | char *kwnames[] = { | |
16025 | NULL | |
16026 | }; | |
16027 | ||
16028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
16029 | { | |
e3b71cb8 | 16030 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
16031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16032 | result = (wxToggleButton *)new wxToggleButton(); | |
16033 | ||
16034 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16035 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 16036 | } |
15afbcd0 | 16037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
16038 | return resultobj; |
16039 | fail: | |
16040 | return NULL; | |
16041 | } | |
16042 | ||
16043 | ||
c32bde28 | 16044 | static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16045 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16046 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; |
16047 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
16048 | int arg3 = (int) -1 ; |
16049 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16050 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
16051 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
16052 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
16053 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
16054 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
16055 | long arg7 = (long) 0 ; | |
16056 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
16057 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
16058 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
16059 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16060 | bool result; | |
ae8162c8 | 16061 | bool temp4 = false ; |
d14a1e28 RD |
16062 | wxPoint temp5 ; |
16063 | wxSize temp6 ; | |
ae8162c8 | 16064 | bool temp9 = false ; |
d14a1e28 RD |
16065 | PyObject * obj0 = 0 ; |
16066 | PyObject * obj1 = 0 ; | |
994141e6 | 16067 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16068 | PyObject * obj3 = 0 ; |
16069 | PyObject * obj4 = 0 ; | |
16070 | PyObject * obj5 = 0 ; | |
994141e6 | 16071 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16072 | PyObject * obj7 = 0 ; |
16073 | PyObject * obj8 = 0 ; | |
16074 | char *kwnames[] = { | |
16075 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
16076 | }; | |
16077 | ||
248ed943 | 16078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
16079 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16080 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16081 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
16082 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 16083 | if (obj2) { |
093d3ff1 | 16084 | { |
32fe5131 | 16085 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
16086 | if (SWIG_arg_fail(3)) SWIG_fail; |
16087 | } | |
248ed943 RD |
16088 | } |
16089 | if (obj3) { | |
16090 | { | |
16091 | arg4 = wxString_in_helper(obj3); | |
16092 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 16093 | temp4 = true; |
248ed943 | 16094 | } |
d14a1e28 RD |
16095 | } |
16096 | if (obj4) { | |
16097 | { | |
16098 | arg5 = &temp5; | |
16099 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
16100 | } | |
16101 | } | |
16102 | if (obj5) { | |
16103 | { | |
16104 | arg6 = &temp6; | |
16105 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
16106 | } | |
16107 | } | |
994141e6 | 16108 | if (obj6) { |
093d3ff1 | 16109 | { |
32fe5131 | 16110 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
16111 | if (SWIG_arg_fail(7)) SWIG_fail; |
16112 | } | |
994141e6 | 16113 | } |
d14a1e28 | 16114 | if (obj7) { |
093d3ff1 RD |
16115 | { |
16116 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
16117 | if (SWIG_arg_fail(8)) SWIG_fail; | |
16118 | if (arg8 == NULL) { | |
16119 | SWIG_null_ref("wxValidator"); | |
16120 | } | |
16121 | if (SWIG_arg_fail(8)) SWIG_fail; | |
d14a1e28 RD |
16122 | } |
16123 | } | |
16124 | if (obj8) { | |
16125 | { | |
16126 | arg9 = wxString_in_helper(obj8); | |
16127 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 16128 | temp9 = true; |
d14a1e28 RD |
16129 | } |
16130 | } | |
16131 | { | |
16132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16133 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
16134 | ||
16135 | wxPyEndAllowThreads(__tstate); | |
16136 | if (PyErr_Occurred()) SWIG_fail; | |
16137 | } | |
4f89f6a3 RD |
16138 | { |
16139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16140 | } | |
d14a1e28 RD |
16141 | { |
16142 | if (temp4) | |
16143 | delete arg4; | |
16144 | } | |
16145 | { | |
16146 | if (temp9) | |
16147 | delete arg9; | |
16148 | } | |
16149 | return resultobj; | |
16150 | fail: | |
16151 | { | |
16152 | if (temp4) | |
16153 | delete arg4; | |
16154 | } | |
16155 | { | |
16156 | if (temp9) | |
16157 | delete arg9; | |
16158 | } | |
16159 | return NULL; | |
16160 | } | |
16161 | ||
16162 | ||
c32bde28 | 16163 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16164 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16165 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; |
16166 | bool arg2 ; | |
16167 | PyObject * obj0 = 0 ; | |
16168 | PyObject * obj1 = 0 ; | |
16169 | char *kwnames[] = { | |
16170 | (char *) "self",(char *) "value", NULL | |
16171 | }; | |
16172 | ||
16173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16174 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16175 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16176 | { | |
32fe5131 | 16177 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
16178 | if (SWIG_arg_fail(2)) SWIG_fail; |
16179 | } | |
d14a1e28 RD |
16180 | { |
16181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16182 | (arg1)->SetValue(arg2); | |
16183 | ||
16184 | wxPyEndAllowThreads(__tstate); | |
16185 | if (PyErr_Occurred()) SWIG_fail; | |
16186 | } | |
16187 | Py_INCREF(Py_None); resultobj = Py_None; | |
16188 | return resultobj; | |
16189 | fail: | |
16190 | return NULL; | |
16191 | } | |
16192 | ||
16193 | ||
c32bde28 | 16194 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16195 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16196 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; |
16197 | bool result; | |
16198 | PyObject * obj0 = 0 ; | |
16199 | char *kwnames[] = { | |
16200 | (char *) "self", NULL | |
16201 | }; | |
16202 | ||
16203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
16204 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16205 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16206 | { |
16207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16208 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
16209 | ||
16210 | wxPyEndAllowThreads(__tstate); | |
16211 | if (PyErr_Occurred()) SWIG_fail; | |
16212 | } | |
4f89f6a3 RD |
16213 | { |
16214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16215 | } | |
d14a1e28 RD |
16216 | return resultobj; |
16217 | fail: | |
16218 | return NULL; | |
16219 | } | |
16220 | ||
16221 | ||
c32bde28 | 16222 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16223 | PyObject *resultobj = NULL; |
d14a1e28 RD |
16224 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; |
16225 | wxString *arg2 = 0 ; | |
ae8162c8 | 16226 | bool temp2 = false ; |
d14a1e28 RD |
16227 | PyObject * obj0 = 0 ; |
16228 | PyObject * obj1 = 0 ; | |
16229 | char *kwnames[] = { | |
16230 | (char *) "self",(char *) "label", NULL | |
16231 | }; | |
16232 | ||
16233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
16234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToggleButton, SWIG_POINTER_EXCEPTION | 0); |
16235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16236 | { |
16237 | arg2 = wxString_in_helper(obj1); | |
16238 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 16239 | temp2 = true; |
d14a1e28 RD |
16240 | } |
16241 | { | |
16242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16243 | (arg1)->SetLabel((wxString const &)*arg2); | |
16244 | ||
16245 | wxPyEndAllowThreads(__tstate); | |
16246 | if (PyErr_Occurred()) SWIG_fail; | |
16247 | } | |
16248 | Py_INCREF(Py_None); resultobj = Py_None; | |
16249 | { | |
16250 | if (temp2) | |
16251 | delete arg2; | |
16252 | } | |
16253 | return resultobj; | |
16254 | fail: | |
16255 | { | |
16256 | if (temp2) | |
16257 | delete arg2; | |
16258 | } | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
c32bde28 | 16263 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16264 | PyObject *resultobj = NULL; |
093d3ff1 | 16265 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
16266 | wxVisualAttributes result; |
16267 | PyObject * obj0 = 0 ; | |
16268 | char *kwnames[] = { | |
16269 | (char *) "variant", NULL | |
16270 | }; | |
16271 | ||
16272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
16273 | if (obj0) { | |
093d3ff1 | 16274 | { |
32fe5131 | 16275 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
16276 | if (SWIG_arg_fail(1)) SWIG_fail; |
16277 | } | |
22bfe96c RD |
16278 | } |
16279 | { | |
110da5b0 | 16280 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 16281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 16282 | result = wxToggleButton::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
16283 | |
16284 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 16285 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
16286 | } |
16287 | { | |
16288 | wxVisualAttributes * resultptr; | |
32fe5131 | 16289 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
16290 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
16291 | } | |
16292 | return resultobj; | |
16293 | fail: | |
16294 | return NULL; | |
16295 | } | |
16296 | ||
16297 | ||
c32bde28 | 16298 | static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
16299 | PyObject *obj; |
16300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16301 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
16302 | Py_INCREF(obj); | |
16303 | return Py_BuildValue((char *)""); | |
16304 | } | |
51b83b37 RD |
16305 | static int _wrap_NotebookNameStr_set(PyObject *) { |
16306 | PyErr_SetString(PyExc_TypeError,"Variable NotebookNameStr is read-only."); | |
b2dc1044 RD |
16307 | return 1; |
16308 | } | |
16309 | ||
16310 | ||
51b83b37 | 16311 | static PyObject *_wrap_NotebookNameStr_get(void) { |
32fe5131 | 16312 | PyObject *pyobj = NULL; |
b2dc1044 RD |
16313 | |
16314 | { | |
16315 | #if wxUSE_UNICODE | |
51b83b37 | 16316 | pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
b2dc1044 | 16317 | #else |
51b83b37 | 16318 | pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len()); |
b2dc1044 RD |
16319 | #endif |
16320 | } | |
16321 | return pyobj; | |
16322 | } | |
16323 | ||
16324 | ||
8ac8dba0 | 16325 | static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16326 | PyObject *resultobj = NULL; |
8ac8dba0 | 16327 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16328 | size_t result; |
16329 | PyObject * obj0 = 0 ; | |
16330 | char *kwnames[] = { | |
16331 | (char *) "self", NULL | |
16332 | }; | |
16333 | ||
8ac8dba0 | 16334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16337 | { |
16338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16339 | result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount(); |
d14a1e28 RD |
16340 | |
16341 | wxPyEndAllowThreads(__tstate); | |
16342 | if (PyErr_Occurred()) SWIG_fail; | |
16343 | } | |
093d3ff1 | 16344 | { |
32fe5131 | 16345 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 16346 | } |
d14a1e28 RD |
16347 | return resultobj; |
16348 | fail: | |
16349 | return NULL; | |
16350 | } | |
16351 | ||
16352 | ||
8ac8dba0 | 16353 | static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16354 | PyObject *resultobj = NULL; |
8ac8dba0 | 16355 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16356 | size_t arg2 ; |
16357 | wxWindow *result; | |
16358 | PyObject * obj0 = 0 ; | |
16359 | PyObject * obj1 = 0 ; | |
16360 | char *kwnames[] = { | |
16361 | (char *) "self",(char *) "n", NULL | |
16362 | }; | |
16363 | ||
8ac8dba0 | 16364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16365 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16366 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16367 | { | |
32fe5131 | 16368 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16369 | if (SWIG_arg_fail(2)) SWIG_fail; |
16370 | } | |
d14a1e28 RD |
16371 | { |
16372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16373 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
16374 | ||
16375 | wxPyEndAllowThreads(__tstate); | |
16376 | if (PyErr_Occurred()) SWIG_fail; | |
16377 | } | |
16378 | { | |
412d302d | 16379 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16380 | } |
16381 | return resultobj; | |
16382 | fail: | |
16383 | return NULL; | |
16384 | } | |
16385 | ||
16386 | ||
8ac8dba0 | 16387 | static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16388 | PyObject *resultobj = NULL; |
8ac8dba0 | 16389 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
8fb0e70a RD |
16390 | wxWindow *result; |
16391 | PyObject * obj0 = 0 ; | |
16392 | char *kwnames[] = { | |
16393 | (char *) "self", NULL | |
16394 | }; | |
16395 | ||
8ac8dba0 | 16396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
8fb0e70a RD |
16399 | { |
16400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16401 | result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage(); |
8fb0e70a RD |
16402 | |
16403 | wxPyEndAllowThreads(__tstate); | |
16404 | if (PyErr_Occurred()) SWIG_fail; | |
16405 | } | |
16406 | { | |
16407 | resultobj = wxPyMake_wxObject(result, 0); | |
16408 | } | |
16409 | return resultobj; | |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
8ac8dba0 | 16415 | static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16416 | PyObject *resultobj = NULL; |
8ac8dba0 | 16417 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16418 | int result; |
16419 | PyObject * obj0 = 0 ; | |
16420 | char *kwnames[] = { | |
16421 | (char *) "self", NULL | |
16422 | }; | |
16423 | ||
8ac8dba0 | 16424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16425 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16426 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16427 | { |
16428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16429 | result = (int)((wxBookCtrlBase const *)arg1)->GetSelection(); |
d14a1e28 RD |
16430 | |
16431 | wxPyEndAllowThreads(__tstate); | |
16432 | if (PyErr_Occurred()) SWIG_fail; | |
16433 | } | |
093d3ff1 | 16434 | { |
32fe5131 | 16435 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 16436 | } |
d14a1e28 RD |
16437 | return resultobj; |
16438 | fail: | |
16439 | return NULL; | |
16440 | } | |
16441 | ||
16442 | ||
8ac8dba0 | 16443 | static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16444 | PyObject *resultobj = NULL; |
8ac8dba0 | 16445 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16446 | size_t arg2 ; |
16447 | wxString *arg3 = 0 ; | |
16448 | bool result; | |
ae8162c8 | 16449 | bool temp3 = false ; |
d14a1e28 RD |
16450 | PyObject * obj0 = 0 ; |
16451 | PyObject * obj1 = 0 ; | |
16452 | PyObject * obj2 = 0 ; | |
16453 | char *kwnames[] = { | |
16454 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
16455 | }; | |
16456 | ||
8ac8dba0 | 16457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16458 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16459 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16460 | { | |
32fe5131 | 16461 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16462 | if (SWIG_arg_fail(2)) SWIG_fail; |
16463 | } | |
d14a1e28 RD |
16464 | { |
16465 | arg3 = wxString_in_helper(obj2); | |
16466 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 16467 | temp3 = true; |
d14a1e28 RD |
16468 | } |
16469 | { | |
16470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16471 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
16472 | ||
16473 | wxPyEndAllowThreads(__tstate); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
16475 | } | |
4f89f6a3 RD |
16476 | { |
16477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16478 | } | |
d14a1e28 RD |
16479 | { |
16480 | if (temp3) | |
16481 | delete arg3; | |
16482 | } | |
16483 | return resultobj; | |
16484 | fail: | |
16485 | { | |
16486 | if (temp3) | |
16487 | delete arg3; | |
16488 | } | |
16489 | return NULL; | |
16490 | } | |
16491 | ||
16492 | ||
8ac8dba0 | 16493 | static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16494 | PyObject *resultobj = NULL; |
8ac8dba0 | 16495 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16496 | size_t arg2 ; |
16497 | wxString result; | |
16498 | PyObject * obj0 = 0 ; | |
16499 | PyObject * obj1 = 0 ; | |
16500 | char *kwnames[] = { | |
16501 | (char *) "self",(char *) "n", NULL | |
16502 | }; | |
16503 | ||
8ac8dba0 | 16504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16507 | { | |
32fe5131 | 16508 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16509 | if (SWIG_arg_fail(2)) SWIG_fail; |
16510 | } | |
d14a1e28 RD |
16511 | { |
16512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16513 | result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2); |
d14a1e28 RD |
16514 | |
16515 | wxPyEndAllowThreads(__tstate); | |
16516 | if (PyErr_Occurred()) SWIG_fail; | |
16517 | } | |
16518 | { | |
16519 | #if wxUSE_UNICODE | |
16520 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16521 | #else | |
16522 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16523 | #endif | |
16524 | } | |
16525 | return resultobj; | |
16526 | fail: | |
16527 | return NULL; | |
16528 | } | |
16529 | ||
16530 | ||
8ac8dba0 | 16531 | static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16532 | PyObject *resultobj = NULL; |
8ac8dba0 | 16533 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16534 | wxImageList *arg2 = (wxImageList *) 0 ; |
16535 | PyObject * obj0 = 0 ; | |
16536 | PyObject * obj1 = 0 ; | |
16537 | char *kwnames[] = { | |
16538 | (char *) "self",(char *) "imageList", NULL | |
16539 | }; | |
16540 | ||
8ac8dba0 | 16541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16544 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
16545 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16546 | { |
16547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16548 | (arg1)->SetImageList(arg2); | |
16549 | ||
16550 | wxPyEndAllowThreads(__tstate); | |
16551 | if (PyErr_Occurred()) SWIG_fail; | |
16552 | } | |
16553 | Py_INCREF(Py_None); resultobj = Py_None; | |
16554 | return resultobj; | |
16555 | fail: | |
16556 | return NULL; | |
16557 | } | |
16558 | ||
16559 | ||
8ac8dba0 | 16560 | static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16561 | PyObject *resultobj = NULL; |
8ac8dba0 | 16562 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16563 | wxImageList *arg2 = (wxImageList *) 0 ; |
16564 | PyObject * obj0 = 0 ; | |
16565 | PyObject * obj1 = 0 ; | |
16566 | char *kwnames[] = { | |
16567 | (char *) "self",(char *) "imageList", NULL | |
16568 | }; | |
16569 | ||
8ac8dba0 | 16570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16571 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16572 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16573 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
16574 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
16575 | { |
16576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16577 | (arg1)->AssignImageList(arg2); | |
16578 | ||
16579 | wxPyEndAllowThreads(__tstate); | |
16580 | if (PyErr_Occurred()) SWIG_fail; | |
16581 | } | |
16582 | Py_INCREF(Py_None); resultobj = Py_None; | |
16583 | return resultobj; | |
16584 | fail: | |
16585 | return NULL; | |
16586 | } | |
16587 | ||
16588 | ||
8ac8dba0 | 16589 | static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16590 | PyObject *resultobj = NULL; |
8ac8dba0 | 16591 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16592 | wxImageList *result; |
16593 | PyObject * obj0 = 0 ; | |
16594 | char *kwnames[] = { | |
16595 | (char *) "self", NULL | |
16596 | }; | |
16597 | ||
8ac8dba0 | 16598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16599 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16600 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16601 | { |
16602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16603 | result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList(); |
d14a1e28 RD |
16604 | |
16605 | wxPyEndAllowThreads(__tstate); | |
16606 | if (PyErr_Occurred()) SWIG_fail; | |
16607 | } | |
16608 | { | |
7e08d4ef | 16609 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
16610 | } |
16611 | return resultobj; | |
16612 | fail: | |
16613 | return NULL; | |
16614 | } | |
16615 | ||
16616 | ||
8ac8dba0 | 16617 | static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16618 | PyObject *resultobj = NULL; |
8ac8dba0 | 16619 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16620 | size_t arg2 ; |
16621 | int result; | |
16622 | PyObject * obj0 = 0 ; | |
16623 | PyObject * obj1 = 0 ; | |
16624 | char *kwnames[] = { | |
16625 | (char *) "self",(char *) "n", NULL | |
16626 | }; | |
16627 | ||
8ac8dba0 | 16628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16629 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16630 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16631 | { | |
32fe5131 | 16632 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16633 | if (SWIG_arg_fail(2)) SWIG_fail; |
16634 | } | |
d14a1e28 RD |
16635 | { |
16636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16637 | result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2); |
d14a1e28 RD |
16638 | |
16639 | wxPyEndAllowThreads(__tstate); | |
16640 | if (PyErr_Occurred()) SWIG_fail; | |
16641 | } | |
093d3ff1 | 16642 | { |
32fe5131 | 16643 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 16644 | } |
d14a1e28 RD |
16645 | return resultobj; |
16646 | fail: | |
16647 | return NULL; | |
16648 | } | |
16649 | ||
16650 | ||
8ac8dba0 | 16651 | static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16652 | PyObject *resultobj = NULL; |
8ac8dba0 | 16653 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16654 | size_t arg2 ; |
16655 | int arg3 ; | |
16656 | bool result; | |
16657 | PyObject * obj0 = 0 ; | |
16658 | PyObject * obj1 = 0 ; | |
994141e6 | 16659 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16660 | char *kwnames[] = { |
16661 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
16662 | }; | |
16663 | ||
8ac8dba0 | 16664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
16665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16667 | { | |
32fe5131 | 16668 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16669 | if (SWIG_arg_fail(2)) SWIG_fail; |
16670 | } | |
16671 | { | |
32fe5131 | 16672 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
16673 | if (SWIG_arg_fail(3)) SWIG_fail; |
16674 | } | |
d14a1e28 RD |
16675 | { |
16676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16677 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
16678 | ||
16679 | wxPyEndAllowThreads(__tstate); | |
16680 | if (PyErr_Occurred()) SWIG_fail; | |
16681 | } | |
4f89f6a3 RD |
16682 | { |
16683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16684 | } | |
d14a1e28 RD |
16685 | return resultobj; |
16686 | fail: | |
16687 | return NULL; | |
16688 | } | |
16689 | ||
16690 | ||
8ac8dba0 | 16691 | static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16692 | PyObject *resultobj = NULL; |
8ac8dba0 | 16693 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16694 | wxSize *arg2 = 0 ; |
16695 | wxSize temp2 ; | |
16696 | PyObject * obj0 = 0 ; | |
16697 | PyObject * obj1 = 0 ; | |
16698 | char *kwnames[] = { | |
16699 | (char *) "self",(char *) "size", NULL | |
16700 | }; | |
16701 | ||
8ac8dba0 | 16702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16703 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16704 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16705 | { |
16706 | arg2 = &temp2; | |
16707 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16708 | } | |
16709 | { | |
16710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16711 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
16712 | ||
16713 | wxPyEndAllowThreads(__tstate); | |
16714 | if (PyErr_Occurred()) SWIG_fail; | |
16715 | } | |
16716 | Py_INCREF(Py_None); resultobj = Py_None; | |
16717 | return resultobj; | |
16718 | fail: | |
16719 | return NULL; | |
16720 | } | |
16721 | ||
16722 | ||
8ac8dba0 | 16723 | static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16724 | PyObject *resultobj = NULL; |
8ac8dba0 | 16725 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16726 | wxSize *arg2 = 0 ; |
16727 | wxSize result; | |
16728 | wxSize temp2 ; | |
16729 | PyObject * obj0 = 0 ; | |
16730 | PyObject * obj1 = 0 ; | |
16731 | char *kwnames[] = { | |
16732 | (char *) "self",(char *) "sizePage", NULL | |
16733 | }; | |
16734 | ||
8ac8dba0 | 16735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16736 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16737 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16738 | { |
16739 | arg2 = &temp2; | |
16740 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16741 | } | |
16742 | { | |
16743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 16744 | result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); |
d14a1e28 RD |
16745 | |
16746 | wxPyEndAllowThreads(__tstate); | |
16747 | if (PyErr_Occurred()) SWIG_fail; | |
16748 | } | |
16749 | { | |
16750 | wxSize * resultptr; | |
32fe5131 | 16751 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 16752 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16753 | } |
16754 | return resultobj; | |
16755 | fail: | |
16756 | return NULL; | |
16757 | } | |
16758 | ||
16759 | ||
7e08d4ef RD |
16760 | static PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
16761 | PyObject *resultobj = NULL; | |
16762 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16763 | unsigned int result; | |
16764 | PyObject * obj0 = 0 ; | |
16765 | char *kwnames[] = { | |
16766 | (char *) "self", NULL | |
16767 | }; | |
16768 | ||
16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetInternalBorder",kwnames,&obj0)) goto fail; | |
16770 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16771 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16772 | { | |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder(); | |
16775 | ||
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
16779 | { | |
16780 | resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result)); | |
16781 | } | |
16782 | return resultobj; | |
16783 | fail: | |
16784 | return NULL; | |
16785 | } | |
16786 | ||
16787 | ||
16788 | static PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *, PyObject *args, PyObject *kwargs) { | |
16789 | PyObject *resultobj = NULL; | |
16790 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16791 | unsigned int arg2 ; | |
16792 | PyObject * obj0 = 0 ; | |
16793 | PyObject * obj1 = 0 ; | |
16794 | char *kwnames[] = { | |
16795 | (char *) "self",(char *) "internalBorder", NULL | |
16796 | }; | |
16797 | ||
16798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) goto fail; | |
16799 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16800 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16801 | { | |
16802 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); | |
16803 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16804 | } | |
16805 | { | |
16806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16807 | (arg1)->SetInternalBorder(arg2); | |
16808 | ||
16809 | wxPyEndAllowThreads(__tstate); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
16812 | Py_INCREF(Py_None); resultobj = Py_None; | |
16813 | return resultobj; | |
16814 | fail: | |
16815 | return NULL; | |
16816 | } | |
16817 | ||
16818 | ||
16819 | static PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { | |
16820 | PyObject *resultobj = NULL; | |
16821 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16822 | bool result; | |
16823 | PyObject * obj0 = 0 ; | |
16824 | char *kwnames[] = { | |
16825 | (char *) "self", NULL | |
16826 | }; | |
16827 | ||
16828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_IsVertical",kwnames,&obj0)) goto fail; | |
16829 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); | |
16830 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16831 | { | |
16832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16833 | result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical(); | |
16834 | ||
16835 | wxPyEndAllowThreads(__tstate); | |
16836 | if (PyErr_Occurred()) SWIG_fail; | |
16837 | } | |
16838 | { | |
16839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16840 | } | |
16841 | return resultobj; | |
16842 | fail: | |
16843 | return NULL; | |
16844 | } | |
16845 | ||
16846 | ||
c26d9ab4 | 16847 | static PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
7e08d4ef RD |
16848 | PyObject *resultobj = NULL; |
16849 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16850 | bool arg2 ; | |
16851 | PyObject * obj0 = 0 ; | |
16852 | PyObject * obj1 = 0 ; | |
16853 | char *kwnames[] = { | |
c26d9ab4 | 16854 | (char *) "self",(char *) "fit", NULL |
7e08d4ef RD |
16855 | }; |
16856 | ||
c26d9ab4 | 16857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) goto fail; |
7e08d4ef RD |
16858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16860 | { | |
16861 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); | |
16862 | if (SWIG_arg_fail(2)) SWIG_fail; | |
16863 | } | |
16864 | { | |
16865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 16866 | (arg1)->SetFitToCurrentPage(arg2); |
7e08d4ef RD |
16867 | |
16868 | wxPyEndAllowThreads(__tstate); | |
16869 | if (PyErr_Occurred()) SWIG_fail; | |
16870 | } | |
16871 | Py_INCREF(Py_None); resultobj = Py_None; | |
16872 | return resultobj; | |
16873 | fail: | |
16874 | return NULL; | |
16875 | } | |
16876 | ||
16877 | ||
c26d9ab4 | 16878 | static PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) { |
7e08d4ef RD |
16879 | PyObject *resultobj = NULL; |
16880 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; | |
16881 | bool result; | |
16882 | PyObject * obj0 = 0 ; | |
16883 | char *kwnames[] = { | |
16884 | (char *) "self", NULL | |
16885 | }; | |
16886 | ||
c26d9ab4 | 16887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetFitToCurrentPage",kwnames,&obj0)) goto fail; |
7e08d4ef RD |
16888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16890 | { | |
16891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 16892 | result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage(); |
7e08d4ef RD |
16893 | |
16894 | wxPyEndAllowThreads(__tstate); | |
16895 | if (PyErr_Occurred()) SWIG_fail; | |
16896 | } | |
16897 | { | |
16898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16899 | } | |
16900 | return resultobj; | |
16901 | fail: | |
16902 | return NULL; | |
16903 | } | |
16904 | ||
16905 | ||
8ac8dba0 | 16906 | static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16907 | PyObject *resultobj = NULL; |
8ac8dba0 | 16908 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16909 | size_t arg2 ; |
16910 | bool result; | |
16911 | PyObject * obj0 = 0 ; | |
16912 | PyObject * obj1 = 0 ; | |
16913 | char *kwnames[] = { | |
16914 | (char *) "self",(char *) "n", NULL | |
16915 | }; | |
16916 | ||
8ac8dba0 | 16917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16920 | { | |
32fe5131 | 16921 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16922 | if (SWIG_arg_fail(2)) SWIG_fail; |
16923 | } | |
d14a1e28 RD |
16924 | { |
16925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16926 | result = (bool)(arg1)->DeletePage(arg2); | |
16927 | ||
16928 | wxPyEndAllowThreads(__tstate); | |
16929 | if (PyErr_Occurred()) SWIG_fail; | |
16930 | } | |
4f89f6a3 RD |
16931 | { |
16932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16933 | } | |
d14a1e28 RD |
16934 | return resultobj; |
16935 | fail: | |
16936 | return NULL; | |
16937 | } | |
16938 | ||
16939 | ||
8ac8dba0 | 16940 | static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16941 | PyObject *resultobj = NULL; |
8ac8dba0 | 16942 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16943 | size_t arg2 ; |
16944 | bool result; | |
16945 | PyObject * obj0 = 0 ; | |
16946 | PyObject * obj1 = 0 ; | |
16947 | char *kwnames[] = { | |
16948 | (char *) "self",(char *) "n", NULL | |
16949 | }; | |
16950 | ||
8ac8dba0 | 16951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
16952 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16953 | if (SWIG_arg_fail(1)) SWIG_fail; | |
16954 | { | |
32fe5131 | 16955 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
16956 | if (SWIG_arg_fail(2)) SWIG_fail; |
16957 | } | |
d14a1e28 RD |
16958 | { |
16959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16960 | result = (bool)(arg1)->RemovePage(arg2); | |
16961 | ||
16962 | wxPyEndAllowThreads(__tstate); | |
16963 | if (PyErr_Occurred()) SWIG_fail; | |
16964 | } | |
4f89f6a3 RD |
16965 | { |
16966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16967 | } | |
d14a1e28 RD |
16968 | return resultobj; |
16969 | fail: | |
16970 | return NULL; | |
16971 | } | |
16972 | ||
16973 | ||
8ac8dba0 | 16974 | static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 16975 | PyObject *resultobj = NULL; |
8ac8dba0 | 16976 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
16977 | bool result; |
16978 | PyObject * obj0 = 0 ; | |
16979 | char *kwnames[] = { | |
16980 | (char *) "self", NULL | |
16981 | }; | |
16982 | ||
8ac8dba0 | 16983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
16984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
16985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
16986 | { |
16987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16988 | result = (bool)(arg1)->DeleteAllPages(); | |
16989 | ||
16990 | wxPyEndAllowThreads(__tstate); | |
16991 | if (PyErr_Occurred()) SWIG_fail; | |
16992 | } | |
4f89f6a3 RD |
16993 | { |
16994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16995 | } | |
d14a1e28 RD |
16996 | return resultobj; |
16997 | fail: | |
16998 | return NULL; | |
16999 | } | |
17000 | ||
17001 | ||
8ac8dba0 | 17002 | static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17003 | PyObject *resultobj = NULL; |
8ac8dba0 | 17004 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
17005 | wxWindow *arg2 = (wxWindow *) 0 ; |
17006 | wxString *arg3 = 0 ; | |
ae8162c8 | 17007 | bool arg4 = (bool) false ; |
d14a1e28 RD |
17008 | int arg5 = (int) -1 ; |
17009 | bool result; | |
ae8162c8 | 17010 | bool temp3 = false ; |
d14a1e28 RD |
17011 | PyObject * obj0 = 0 ; |
17012 | PyObject * obj1 = 0 ; | |
17013 | PyObject * obj2 = 0 ; | |
17014 | PyObject * obj3 = 0 ; | |
994141e6 | 17015 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17016 | char *kwnames[] = { |
17017 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
17018 | }; | |
17019 | ||
8ac8dba0 | 17020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
17021 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
17022 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17023 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17024 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
17025 | { |
17026 | arg3 = wxString_in_helper(obj2); | |
17027 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 17028 | temp3 = true; |
d14a1e28 RD |
17029 | } |
17030 | if (obj3) { | |
093d3ff1 | 17031 | { |
32fe5131 | 17032 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
17033 | if (SWIG_arg_fail(4)) SWIG_fail; |
17034 | } | |
994141e6 RD |
17035 | } |
17036 | if (obj4) { | |
093d3ff1 | 17037 | { |
32fe5131 | 17038 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
17039 | if (SWIG_arg_fail(5)) SWIG_fail; |
17040 | } | |
d14a1e28 RD |
17041 | } |
17042 | { | |
17043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17044 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
17045 | ||
17046 | wxPyEndAllowThreads(__tstate); | |
17047 | if (PyErr_Occurred()) SWIG_fail; | |
17048 | } | |
4f89f6a3 RD |
17049 | { |
17050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17051 | } | |
d14a1e28 RD |
17052 | { |
17053 | if (temp3) | |
17054 | delete arg3; | |
17055 | } | |
17056 | return resultobj; | |
17057 | fail: | |
17058 | { | |
17059 | if (temp3) | |
17060 | delete arg3; | |
17061 | } | |
17062 | return NULL; | |
17063 | } | |
17064 | ||
17065 | ||
8ac8dba0 | 17066 | static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17067 | PyObject *resultobj = NULL; |
8ac8dba0 | 17068 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
17069 | size_t arg2 ; |
17070 | wxWindow *arg3 = (wxWindow *) 0 ; | |
17071 | wxString *arg4 = 0 ; | |
ae8162c8 | 17072 | bool arg5 = (bool) false ; |
d14a1e28 RD |
17073 | int arg6 = (int) -1 ; |
17074 | bool result; | |
ae8162c8 | 17075 | bool temp4 = false ; |
d14a1e28 RD |
17076 | PyObject * obj0 = 0 ; |
17077 | PyObject * obj1 = 0 ; | |
17078 | PyObject * obj2 = 0 ; | |
17079 | PyObject * obj3 = 0 ; | |
17080 | PyObject * obj4 = 0 ; | |
994141e6 | 17081 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17082 | char *kwnames[] = { |
17083 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
17084 | }; | |
17085 | ||
8ac8dba0 | 17086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17087 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
17088 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17089 | { | |
32fe5131 | 17090 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
17091 | if (SWIG_arg_fail(2)) SWIG_fail; |
17092 | } | |
17093 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17094 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
17095 | { |
17096 | arg4 = wxString_in_helper(obj3); | |
17097 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 17098 | temp4 = true; |
d14a1e28 RD |
17099 | } |
17100 | if (obj4) { | |
093d3ff1 | 17101 | { |
32fe5131 | 17102 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
093d3ff1 RD |
17103 | if (SWIG_arg_fail(5)) SWIG_fail; |
17104 | } | |
994141e6 RD |
17105 | } |
17106 | if (obj5) { | |
093d3ff1 | 17107 | { |
32fe5131 | 17108 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
17109 | if (SWIG_arg_fail(6)) SWIG_fail; |
17110 | } | |
d14a1e28 RD |
17111 | } |
17112 | { | |
17113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17114 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
17115 | ||
17116 | wxPyEndAllowThreads(__tstate); | |
17117 | if (PyErr_Occurred()) SWIG_fail; | |
17118 | } | |
4f89f6a3 RD |
17119 | { |
17120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17121 | } | |
d14a1e28 RD |
17122 | { |
17123 | if (temp4) | |
17124 | delete arg4; | |
17125 | } | |
17126 | return resultobj; | |
17127 | fail: | |
17128 | { | |
17129 | if (temp4) | |
17130 | delete arg4; | |
17131 | } | |
17132 | return NULL; | |
17133 | } | |
17134 | ||
17135 | ||
8ac8dba0 | 17136 | static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17137 | PyObject *resultobj = NULL; |
8ac8dba0 | 17138 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
d14a1e28 RD |
17139 | size_t arg2 ; |
17140 | int result; | |
17141 | PyObject * obj0 = 0 ; | |
17142 | PyObject * obj1 = 0 ; | |
17143 | char *kwnames[] = { | |
17144 | (char *) "self",(char *) "n", NULL | |
17145 | }; | |
17146 | ||
8ac8dba0 | 17147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
17149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17150 | { | |
32fe5131 | 17151 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
17152 | if (SWIG_arg_fail(2)) SWIG_fail; |
17153 | } | |
d14a1e28 RD |
17154 | { |
17155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17156 | result = (int)(arg1)->SetSelection(arg2); | |
17157 | ||
17158 | wxPyEndAllowThreads(__tstate); | |
17159 | if (PyErr_Occurred()) SWIG_fail; | |
17160 | } | |
093d3ff1 | 17161 | { |
32fe5131 | 17162 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17163 | } |
d14a1e28 RD |
17164 | return resultobj; |
17165 | fail: | |
17166 | return NULL; | |
17167 | } | |
17168 | ||
17169 | ||
8ac8dba0 | 17170 | static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17171 | PyObject *resultobj = NULL; |
8ac8dba0 | 17172 | wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ; |
ae8162c8 | 17173 | bool arg2 = (bool) true ; |
d14a1e28 RD |
17174 | PyObject * obj0 = 0 ; |
17175 | PyObject * obj1 = 0 ; | |
17176 | char *kwnames[] = { | |
17177 | (char *) "self",(char *) "forward", NULL | |
17178 | }; | |
17179 | ||
8ac8dba0 | 17180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17181 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBase, SWIG_POINTER_EXCEPTION | 0); |
17182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 17183 | if (obj1) { |
093d3ff1 | 17184 | { |
32fe5131 | 17185 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
17186 | if (SWIG_arg_fail(2)) SWIG_fail; |
17187 | } | |
d14a1e28 RD |
17188 | } |
17189 | { | |
17190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17191 | (arg1)->AdvanceSelection(arg2); | |
17192 | ||
17193 | wxPyEndAllowThreads(__tstate); | |
17194 | if (PyErr_Occurred()) SWIG_fail; | |
17195 | } | |
17196 | Py_INCREF(Py_None); resultobj = Py_None; | |
17197 | return resultobj; | |
17198 | fail: | |
17199 | return NULL; | |
17200 | } | |
17201 | ||
17202 | ||
8ac8dba0 | 17203 | static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17204 | PyObject *resultobj = NULL; |
093d3ff1 | 17205 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
17206 | wxVisualAttributes result; |
17207 | PyObject * obj0 = 0 ; | |
17208 | char *kwnames[] = { | |
17209 | (char *) "variant", NULL | |
17210 | }; | |
17211 | ||
8ac8dba0 | 17212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
22bfe96c | 17213 | if (obj0) { |
093d3ff1 | 17214 | { |
32fe5131 | 17215 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
17216 | if (SWIG_arg_fail(1)) SWIG_fail; |
17217 | } | |
22bfe96c RD |
17218 | } |
17219 | { | |
110da5b0 | 17220 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 17221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 17222 | result = wxBookCtrlBase::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
17223 | |
17224 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 17225 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
17226 | } |
17227 | { | |
17228 | wxVisualAttributes * resultptr; | |
32fe5131 | 17229 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
17230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
17231 | } | |
17232 | return resultobj; | |
17233 | fail: | |
17234 | return NULL; | |
17235 | } | |
17236 | ||
17237 | ||
8ac8dba0 | 17238 | static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17239 | PyObject *obj; |
17240 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 17241 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj); |
d14a1e28 RD |
17242 | Py_INCREF(obj); |
17243 | return Py_BuildValue((char *)""); | |
17244 | } | |
8ac8dba0 | 17245 | static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17246 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17247 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
17248 | int arg2 = (int) 0 ; | |
17249 | int arg3 = (int) -1 ; | |
17250 | int arg4 = (int) -1 ; | |
8ac8dba0 | 17251 | wxBookCtrlBaseEvent *result; |
994141e6 RD |
17252 | PyObject * obj0 = 0 ; |
17253 | PyObject * obj1 = 0 ; | |
17254 | PyObject * obj2 = 0 ; | |
17255 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17256 | char *kwnames[] = { |
17257 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17258 | }; | |
17259 | ||
8ac8dba0 | 17260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
994141e6 | 17261 | if (obj0) { |
093d3ff1 | 17262 | { |
32fe5131 | 17263 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
17264 | if (SWIG_arg_fail(1)) SWIG_fail; |
17265 | } | |
994141e6 RD |
17266 | } |
17267 | if (obj1) { | |
093d3ff1 | 17268 | { |
32fe5131 | 17269 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17270 | if (SWIG_arg_fail(2)) SWIG_fail; |
17271 | } | |
994141e6 RD |
17272 | } |
17273 | if (obj2) { | |
093d3ff1 | 17274 | { |
32fe5131 | 17275 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
17276 | if (SWIG_arg_fail(3)) SWIG_fail; |
17277 | } | |
994141e6 RD |
17278 | } |
17279 | if (obj3) { | |
093d3ff1 | 17280 | { |
32fe5131 | 17281 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
17282 | if (SWIG_arg_fail(4)) SWIG_fail; |
17283 | } | |
994141e6 | 17284 | } |
d14a1e28 RD |
17285 | { |
17286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17287 | result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
17288 | |
17289 | wxPyEndAllowThreads(__tstate); | |
17290 | if (PyErr_Occurred()) SWIG_fail; | |
17291 | } | |
8ac8dba0 | 17292 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1); |
d14a1e28 RD |
17293 | return resultobj; |
17294 | fail: | |
17295 | return NULL; | |
17296 | } | |
17297 | ||
17298 | ||
8ac8dba0 | 17299 | static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17300 | PyObject *resultobj = NULL; |
8ac8dba0 | 17301 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17302 | int result; |
17303 | PyObject * obj0 = 0 ; | |
17304 | char *kwnames[] = { | |
17305 | (char *) "self", NULL | |
17306 | }; | |
17307 | ||
8ac8dba0 | 17308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17311 | { |
17312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17313 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection(); |
d14a1e28 RD |
17314 | |
17315 | wxPyEndAllowThreads(__tstate); | |
17316 | if (PyErr_Occurred()) SWIG_fail; | |
17317 | } | |
093d3ff1 | 17318 | { |
32fe5131 | 17319 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17320 | } |
d14a1e28 RD |
17321 | return resultobj; |
17322 | fail: | |
17323 | return NULL; | |
17324 | } | |
17325 | ||
17326 | ||
8ac8dba0 | 17327 | static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17328 | PyObject *resultobj = NULL; |
8ac8dba0 | 17329 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17330 | int arg2 ; |
17331 | PyObject * obj0 = 0 ; | |
994141e6 | 17332 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17333 | char *kwnames[] = { |
17334 | (char *) "self",(char *) "nSel", NULL | |
17335 | }; | |
17336 | ||
8ac8dba0 | 17337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17338 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17339 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17340 | { | |
32fe5131 | 17341 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17342 | if (SWIG_arg_fail(2)) SWIG_fail; |
17343 | } | |
d14a1e28 RD |
17344 | { |
17345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17346 | (arg1)->SetSelection(arg2); | |
17347 | ||
17348 | wxPyEndAllowThreads(__tstate); | |
17349 | if (PyErr_Occurred()) SWIG_fail; | |
17350 | } | |
17351 | Py_INCREF(Py_None); resultobj = Py_None; | |
17352 | return resultobj; | |
17353 | fail: | |
17354 | return NULL; | |
17355 | } | |
17356 | ||
17357 | ||
8ac8dba0 | 17358 | static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17359 | PyObject *resultobj = NULL; |
8ac8dba0 | 17360 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17361 | int result; |
17362 | PyObject * obj0 = 0 ; | |
17363 | char *kwnames[] = { | |
17364 | (char *) "self", NULL | |
17365 | }; | |
17366 | ||
8ac8dba0 | 17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
17368 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17369 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17370 | { |
17371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8ac8dba0 | 17372 | result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection(); |
d14a1e28 RD |
17373 | |
17374 | wxPyEndAllowThreads(__tstate); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
17376 | } | |
093d3ff1 | 17377 | { |
32fe5131 | 17378 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17379 | } |
d14a1e28 RD |
17380 | return resultobj; |
17381 | fail: | |
17382 | return NULL; | |
17383 | } | |
17384 | ||
17385 | ||
8ac8dba0 | 17386 | static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17387 | PyObject *resultobj = NULL; |
8ac8dba0 | 17388 | wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ; |
d14a1e28 RD |
17389 | int arg2 ; |
17390 | PyObject * obj0 = 0 ; | |
994141e6 | 17391 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17392 | char *kwnames[] = { |
17393 | (char *) "self",(char *) "nOldSel", NULL | |
17394 | }; | |
17395 | ||
8ac8dba0 | 17396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17397 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_EXCEPTION | 0); |
17398 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17399 | { | |
32fe5131 | 17400 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17401 | if (SWIG_arg_fail(2)) SWIG_fail; |
17402 | } | |
d14a1e28 RD |
17403 | { |
17404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17405 | (arg1)->SetOldSelection(arg2); | |
17406 | ||
17407 | wxPyEndAllowThreads(__tstate); | |
17408 | if (PyErr_Occurred()) SWIG_fail; | |
17409 | } | |
17410 | Py_INCREF(Py_None); resultobj = Py_None; | |
17411 | return resultobj; | |
17412 | fail: | |
17413 | return NULL; | |
17414 | } | |
17415 | ||
17416 | ||
8ac8dba0 | 17417 | static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17418 | PyObject *obj; |
17419 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8ac8dba0 | 17420 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj); |
d14a1e28 RD |
17421 | Py_INCREF(obj); |
17422 | return Py_BuildValue((char *)""); | |
17423 | } | |
c32bde28 | 17424 | static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17425 | PyObject *resultobj = NULL; |
d14a1e28 | 17426 | wxWindow *arg1 = (wxWindow *) 0 ; |
4f89f6a3 | 17427 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17428 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17429 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17430 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17431 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17432 | long arg5 = (long) 0 ; | |
51b83b37 | 17433 | wxString const &arg6_defvalue = wxPyNotebookNameStr ; |
d14a1e28 RD |
17434 | wxString *arg6 = (wxString *) &arg6_defvalue ; |
17435 | wxNotebook *result; | |
17436 | wxPoint temp3 ; | |
17437 | wxSize temp4 ; | |
ae8162c8 | 17438 | bool temp6 = false ; |
d14a1e28 | 17439 | PyObject * obj0 = 0 ; |
994141e6 | 17440 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17441 | PyObject * obj2 = 0 ; |
17442 | PyObject * obj3 = 0 ; | |
994141e6 | 17443 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17444 | PyObject * obj5 = 0 ; |
17445 | char *kwnames[] = { | |
17446 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17447 | }; | |
17448 | ||
4f89f6a3 | 17449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17450 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17451 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 | 17452 | if (obj1) { |
093d3ff1 | 17453 | { |
32fe5131 | 17454 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17455 | if (SWIG_arg_fail(2)) SWIG_fail; |
17456 | } | |
4f89f6a3 | 17457 | } |
d14a1e28 RD |
17458 | if (obj2) { |
17459 | { | |
17460 | arg3 = &temp3; | |
17461 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17462 | } | |
17463 | } | |
17464 | if (obj3) { | |
17465 | { | |
17466 | arg4 = &temp4; | |
17467 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17468 | } | |
17469 | } | |
994141e6 | 17470 | if (obj4) { |
093d3ff1 | 17471 | { |
32fe5131 | 17472 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
17473 | if (SWIG_arg_fail(5)) SWIG_fail; |
17474 | } | |
994141e6 | 17475 | } |
d14a1e28 RD |
17476 | if (obj5) { |
17477 | { | |
17478 | arg6 = wxString_in_helper(obj5); | |
17479 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17480 | temp6 = true; |
d14a1e28 RD |
17481 | } |
17482 | } | |
17483 | { | |
e3b71cb8 | 17484 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17486 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17487 | ||
17488 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17489 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17490 | } |
b0f7404b | 17491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
17492 | { |
17493 | if (temp6) | |
17494 | delete arg6; | |
17495 | } | |
17496 | return resultobj; | |
17497 | fail: | |
17498 | { | |
17499 | if (temp6) | |
17500 | delete arg6; | |
17501 | } | |
17502 | return NULL; | |
17503 | } | |
17504 | ||
17505 | ||
c32bde28 | 17506 | static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17507 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17508 | wxNotebook *result; |
17509 | char *kwnames[] = { | |
17510 | NULL | |
17511 | }; | |
17512 | ||
17513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
17514 | { | |
e3b71cb8 | 17515 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17517 | result = (wxNotebook *)new wxNotebook(); | |
17518 | ||
17519 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17520 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17521 | } |
b0f7404b | 17522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
17523 | return resultobj; |
17524 | fail: | |
17525 | return NULL; | |
17526 | } | |
17527 | ||
17528 | ||
c32bde28 | 17529 | static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17530 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17531 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17532 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 17533 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17534 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17535 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17536 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17537 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17538 | long arg6 = (long) 0 ; | |
51b83b37 | 17539 | wxString const &arg7_defvalue = wxPyNotebookNameStr ; |
d14a1e28 RD |
17540 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
17541 | bool result; | |
17542 | wxPoint temp4 ; | |
17543 | wxSize temp5 ; | |
ae8162c8 | 17544 | bool temp7 = false ; |
d14a1e28 RD |
17545 | PyObject * obj0 = 0 ; |
17546 | PyObject * obj1 = 0 ; | |
994141e6 | 17547 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17548 | PyObject * obj3 = 0 ; |
17549 | PyObject * obj4 = 0 ; | |
994141e6 | 17550 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17551 | PyObject * obj6 = 0 ; |
17552 | char *kwnames[] = { | |
17553 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17554 | }; | |
17555 | ||
248ed943 | 17556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
17557 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17558 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17559 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
17560 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 17561 | if (obj2) { |
093d3ff1 | 17562 | { |
32fe5131 | 17563 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
17564 | if (SWIG_arg_fail(3)) SWIG_fail; |
17565 | } | |
248ed943 | 17566 | } |
d14a1e28 RD |
17567 | if (obj3) { |
17568 | { | |
17569 | arg4 = &temp4; | |
17570 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17571 | } | |
17572 | } | |
17573 | if (obj4) { | |
17574 | { | |
17575 | arg5 = &temp5; | |
17576 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17577 | } | |
17578 | } | |
994141e6 | 17579 | if (obj5) { |
093d3ff1 | 17580 | { |
32fe5131 | 17581 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
17582 | if (SWIG_arg_fail(6)) SWIG_fail; |
17583 | } | |
994141e6 | 17584 | } |
d14a1e28 RD |
17585 | if (obj6) { |
17586 | { | |
17587 | arg7 = wxString_in_helper(obj6); | |
17588 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 17589 | temp7 = true; |
d14a1e28 RD |
17590 | } |
17591 | } | |
17592 | { | |
17593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17594 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17595 | ||
17596 | wxPyEndAllowThreads(__tstate); | |
17597 | if (PyErr_Occurred()) SWIG_fail; | |
17598 | } | |
4f89f6a3 RD |
17599 | { |
17600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17601 | } | |
d14a1e28 RD |
17602 | { |
17603 | if (temp7) | |
17604 | delete arg7; | |
17605 | } | |
17606 | return resultobj; | |
17607 | fail: | |
17608 | { | |
17609 | if (temp7) | |
17610 | delete arg7; | |
17611 | } | |
17612 | return NULL; | |
17613 | } | |
17614 | ||
17615 | ||
c32bde28 | 17616 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17617 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17618 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17619 | int result; | |
17620 | PyObject * obj0 = 0 ; | |
17621 | char *kwnames[] = { | |
17622 | (char *) "self", NULL | |
17623 | }; | |
17624 | ||
17625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
17626 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17627 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17628 | { |
17629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17630 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
17631 | ||
17632 | wxPyEndAllowThreads(__tstate); | |
17633 | if (PyErr_Occurred()) SWIG_fail; | |
17634 | } | |
093d3ff1 | 17635 | { |
32fe5131 | 17636 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17637 | } |
d14a1e28 RD |
17638 | return resultobj; |
17639 | fail: | |
17640 | return NULL; | |
17641 | } | |
17642 | ||
17643 | ||
c32bde28 | 17644 | static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17645 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17646 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17647 | wxSize *arg2 = 0 ; | |
17648 | wxSize temp2 ; | |
17649 | PyObject * obj0 = 0 ; | |
17650 | PyObject * obj1 = 0 ; | |
17651 | char *kwnames[] = { | |
17652 | (char *) "self",(char *) "padding", NULL | |
17653 | }; | |
17654 | ||
17655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17656 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17657 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17658 | { |
17659 | arg2 = &temp2; | |
17660 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17661 | } | |
17662 | { | |
17663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17664 | (arg1)->SetPadding((wxSize const &)*arg2); | |
17665 | ||
17666 | wxPyEndAllowThreads(__tstate); | |
17667 | if (PyErr_Occurred()) SWIG_fail; | |
17668 | } | |
17669 | Py_INCREF(Py_None); resultobj = Py_None; | |
17670 | return resultobj; | |
17671 | fail: | |
17672 | return NULL; | |
17673 | } | |
17674 | ||
17675 | ||
c32bde28 | 17676 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17677 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17678 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17679 | wxSize *arg2 = 0 ; | |
17680 | wxSize temp2 ; | |
17681 | PyObject * obj0 = 0 ; | |
17682 | PyObject * obj1 = 0 ; | |
17683 | char *kwnames[] = { | |
17684 | (char *) "self",(char *) "sz", NULL | |
17685 | }; | |
17686 | ||
17687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17690 | { |
17691 | arg2 = &temp2; | |
17692 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17693 | } | |
17694 | { | |
17695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17696 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
17697 | ||
17698 | wxPyEndAllowThreads(__tstate); | |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
17700 | } | |
17701 | Py_INCREF(Py_None); resultobj = Py_None; | |
17702 | return resultobj; | |
17703 | fail: | |
17704 | return NULL; | |
17705 | } | |
17706 | ||
17707 | ||
c32bde28 | 17708 | static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17709 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17710 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17711 | wxPoint *arg2 = 0 ; | |
17712 | long *arg3 = (long *) 0 ; | |
17713 | int result; | |
17714 | wxPoint temp2 ; | |
17715 | long temp3 ; | |
c32bde28 | 17716 | int res3 = 0 ; |
d14a1e28 RD |
17717 | PyObject * obj0 = 0 ; |
17718 | PyObject * obj1 = 0 ; | |
17719 | char *kwnames[] = { | |
17720 | (char *) "self",(char *) "pt", NULL | |
17721 | }; | |
17722 | ||
c32bde28 | 17723 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 17724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
17725 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17726 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17727 | { |
17728 | arg2 = &temp2; | |
17729 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17730 | } | |
17731 | { | |
17732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17733 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
17734 | ||
17735 | wxPyEndAllowThreads(__tstate); | |
17736 | if (PyErr_Occurred()) SWIG_fail; | |
17737 | } | |
093d3ff1 | 17738 | { |
32fe5131 | 17739 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 17740 | } |
c32bde28 RD |
17741 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
17742 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d14a1e28 RD |
17743 | return resultobj; |
17744 | fail: | |
17745 | return NULL; | |
17746 | } | |
17747 | ||
17748 | ||
c32bde28 | 17749 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17750 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17751 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17752 | wxSize *arg2 = 0 ; | |
17753 | wxSize result; | |
17754 | wxSize temp2 ; | |
17755 | PyObject * obj0 = 0 ; | |
17756 | PyObject * obj1 = 0 ; | |
17757 | char *kwnames[] = { | |
17758 | (char *) "self",(char *) "sizePage", NULL | |
17759 | }; | |
17760 | ||
17761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
17762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); |
17763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
17764 | { |
17765 | arg2 = &temp2; | |
17766 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17767 | } | |
17768 | { | |
17769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17770 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
17771 | ||
17772 | wxPyEndAllowThreads(__tstate); | |
17773 | if (PyErr_Occurred()) SWIG_fail; | |
17774 | } | |
17775 | { | |
17776 | wxSize * resultptr; | |
32fe5131 | 17777 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 17778 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17779 | } |
17780 | return resultobj; | |
17781 | fail: | |
17782 | return NULL; | |
17783 | } | |
17784 | ||
17785 | ||
8e738329 | 17786 | static PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17787 | PyObject *resultobj = NULL; |
8e738329 RD |
17788 | wxNotebook *arg1 = (wxNotebook *) 0 ; |
17789 | wxColour result; | |
17790 | PyObject * obj0 = 0 ; | |
17791 | char *kwnames[] = { | |
17792 | (char *) "self", NULL | |
17793 | }; | |
17794 | ||
17795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetThemeBackgroundColour",kwnames,&obj0)) goto fail; | |
17796 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxNotebook, SWIG_POINTER_EXCEPTION | 0); | |
17797 | if (SWIG_arg_fail(1)) SWIG_fail; | |
17798 | { | |
17799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17800 | result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour(); | |
17801 | ||
17802 | wxPyEndAllowThreads(__tstate); | |
17803 | if (PyErr_Occurred()) SWIG_fail; | |
17804 | } | |
17805 | { | |
17806 | wxColour * resultptr; | |
32fe5131 | 17807 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
8e738329 RD |
17808 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
17809 | } | |
17810 | return resultobj; | |
17811 | fail: | |
17812 | return NULL; | |
17813 | } | |
17814 | ||
17815 | ||
c32bde28 | 17816 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17817 | PyObject *resultobj = NULL; |
093d3ff1 | 17818 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
17819 | wxVisualAttributes result; |
17820 | PyObject * obj0 = 0 ; | |
17821 | char *kwnames[] = { | |
17822 | (char *) "variant", NULL | |
17823 | }; | |
17824 | ||
17825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
17826 | if (obj0) { | |
093d3ff1 | 17827 | { |
32fe5131 | 17828 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
17829 | if (SWIG_arg_fail(1)) SWIG_fail; |
17830 | } | |
22bfe96c RD |
17831 | } |
17832 | { | |
110da5b0 | 17833 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 17834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 17835 | result = wxNotebook::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
17836 | |
17837 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 17838 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
17839 | } |
17840 | { | |
17841 | wxVisualAttributes * resultptr; | |
32fe5131 | 17842 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
17843 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
17844 | } | |
17845 | return resultobj; | |
17846 | fail: | |
17847 | return NULL; | |
17848 | } | |
17849 | ||
17850 | ||
c32bde28 | 17851 | static PyObject * Notebook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17852 | PyObject *obj; |
17853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17854 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
17855 | Py_INCREF(obj); | |
17856 | return Py_BuildValue((char *)""); | |
17857 | } | |
c32bde28 | 17858 | static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17859 | PyObject *resultobj = NULL; |
d14a1e28 RD |
17860 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
17861 | int arg2 = (int) 0 ; | |
17862 | int arg3 = (int) -1 ; | |
17863 | int arg4 = (int) -1 ; | |
17864 | wxNotebookEvent *result; | |
994141e6 RD |
17865 | PyObject * obj0 = 0 ; |
17866 | PyObject * obj1 = 0 ; | |
17867 | PyObject * obj2 = 0 ; | |
17868 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
17869 | char *kwnames[] = { |
17870 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
17871 | }; | |
17872 | ||
994141e6 RD |
17873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
17874 | if (obj0) { | |
093d3ff1 | 17875 | { |
32fe5131 | 17876 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
17877 | if (SWIG_arg_fail(1)) SWIG_fail; |
17878 | } | |
994141e6 RD |
17879 | } |
17880 | if (obj1) { | |
093d3ff1 | 17881 | { |
32fe5131 | 17882 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17883 | if (SWIG_arg_fail(2)) SWIG_fail; |
17884 | } | |
994141e6 RD |
17885 | } |
17886 | if (obj2) { | |
093d3ff1 | 17887 | { |
32fe5131 | 17888 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
17889 | if (SWIG_arg_fail(3)) SWIG_fail; |
17890 | } | |
994141e6 RD |
17891 | } |
17892 | if (obj3) { | |
093d3ff1 | 17893 | { |
32fe5131 | 17894 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
17895 | if (SWIG_arg_fail(4)) SWIG_fail; |
17896 | } | |
994141e6 | 17897 | } |
d14a1e28 RD |
17898 | { |
17899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17900 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
17901 | ||
17902 | wxPyEndAllowThreads(__tstate); | |
17903 | if (PyErr_Occurred()) SWIG_fail; | |
17904 | } | |
15afbcd0 | 17905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
17906 | return resultobj; |
17907 | fail: | |
17908 | return NULL; | |
17909 | } | |
17910 | ||
17911 | ||
c32bde28 | 17912 | static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17913 | PyObject *obj; |
17914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17915 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
17916 | Py_INCREF(obj); | |
17917 | return Py_BuildValue((char *)""); | |
17918 | } | |
c32bde28 | 17919 | static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 17920 | PyObject *resultobj = NULL; |
d14a1e28 | 17921 | wxWindow *arg1 = (wxWindow *) 0 ; |
4f89f6a3 | 17922 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17923 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17924 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17925 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17926 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17927 | long arg5 = (long) 0 ; | |
17928 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
17929 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17930 | wxListbook *result; | |
17931 | wxPoint temp3 ; | |
17932 | wxSize temp4 ; | |
ae8162c8 | 17933 | bool temp6 = false ; |
d14a1e28 | 17934 | PyObject * obj0 = 0 ; |
994141e6 | 17935 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17936 | PyObject * obj2 = 0 ; |
17937 | PyObject * obj3 = 0 ; | |
994141e6 | 17938 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17939 | PyObject * obj5 = 0 ; |
17940 | char *kwnames[] = { | |
17941 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17942 | }; | |
17943 | ||
4f89f6a3 | 17944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
17945 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
17946 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4f89f6a3 | 17947 | if (obj1) { |
093d3ff1 | 17948 | { |
32fe5131 | 17949 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
17950 | if (SWIG_arg_fail(2)) SWIG_fail; |
17951 | } | |
4f89f6a3 | 17952 | } |
d14a1e28 RD |
17953 | if (obj2) { |
17954 | { | |
17955 | arg3 = &temp3; | |
17956 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17957 | } | |
17958 | } | |
17959 | if (obj3) { | |
17960 | { | |
17961 | arg4 = &temp4; | |
17962 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17963 | } | |
17964 | } | |
994141e6 | 17965 | if (obj4) { |
093d3ff1 | 17966 | { |
32fe5131 | 17967 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
17968 | if (SWIG_arg_fail(5)) SWIG_fail; |
17969 | } | |
994141e6 | 17970 | } |
d14a1e28 RD |
17971 | if (obj5) { |
17972 | { | |
17973 | arg6 = wxString_in_helper(obj5); | |
17974 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 17975 | temp6 = true; |
d14a1e28 RD |
17976 | } |
17977 | } | |
17978 | { | |
e3b71cb8 | 17979 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
17980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17981 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17982 | ||
17983 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17984 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 17985 | } |
15afbcd0 | 17986 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
17987 | { |
17988 | if (temp6) | |
17989 | delete arg6; | |
17990 | } | |
17991 | return resultobj; | |
17992 | fail: | |
17993 | { | |
17994 | if (temp6) | |
17995 | delete arg6; | |
17996 | } | |
17997 | return NULL; | |
17998 | } | |
17999 | ||
18000 | ||
c32bde28 | 18001 | static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18002 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18003 | wxListbook *result; |
18004 | char *kwnames[] = { | |
18005 | NULL | |
18006 | }; | |
18007 | ||
18008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
18009 | { | |
e3b71cb8 | 18010 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18012 | result = (wxListbook *)new wxListbook(); | |
18013 | ||
18014 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18015 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 18016 | } |
15afbcd0 | 18017 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
18018 | return resultobj; |
18019 | fail: | |
18020 | return NULL; | |
18021 | } | |
18022 | ||
18023 | ||
c32bde28 | 18024 | static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18025 | PyObject *resultobj = NULL; |
d14a1e28 RD |
18026 | wxListbook *arg1 = (wxListbook *) 0 ; |
18027 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 18028 | int arg3 = (int) -1 ; |
d14a1e28 RD |
18029 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18030 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18031 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18032 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18033 | long arg6 = (long) 0 ; | |
18034 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18035 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18036 | bool result; | |
18037 | wxPoint temp4 ; | |
18038 | wxSize temp5 ; | |
ae8162c8 | 18039 | bool temp7 = false ; |
d14a1e28 RD |
18040 | PyObject * obj0 = 0 ; |
18041 | PyObject * obj1 = 0 ; | |
994141e6 | 18042 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18043 | PyObject * obj3 = 0 ; |
18044 | PyObject * obj4 = 0 ; | |
994141e6 | 18045 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
18046 | PyObject * obj6 = 0 ; |
18047 | char *kwnames[] = { | |
18048 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18049 | }; | |
18050 | ||
248ed943 | 18051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
18052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); |
18053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18054 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18055 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 18056 | if (obj2) { |
093d3ff1 | 18057 | { |
32fe5131 | 18058 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
18059 | if (SWIG_arg_fail(3)) SWIG_fail; |
18060 | } | |
248ed943 | 18061 | } |
d14a1e28 RD |
18062 | if (obj3) { |
18063 | { | |
18064 | arg4 = &temp4; | |
18065 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18066 | } | |
18067 | } | |
18068 | if (obj4) { | |
18069 | { | |
18070 | arg5 = &temp5; | |
18071 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18072 | } | |
18073 | } | |
994141e6 | 18074 | if (obj5) { |
093d3ff1 | 18075 | { |
32fe5131 | 18076 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
18077 | if (SWIG_arg_fail(6)) SWIG_fail; |
18078 | } | |
994141e6 | 18079 | } |
d14a1e28 RD |
18080 | if (obj6) { |
18081 | { | |
18082 | arg7 = wxString_in_helper(obj6); | |
18083 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 18084 | temp7 = true; |
d14a1e28 RD |
18085 | } |
18086 | } | |
18087 | { | |
18088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18089 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18090 | ||
18091 | wxPyEndAllowThreads(__tstate); | |
18092 | if (PyErr_Occurred()) SWIG_fail; | |
18093 | } | |
4f89f6a3 RD |
18094 | { |
18095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18096 | } | |
d14a1e28 RD |
18097 | { |
18098 | if (temp7) | |
18099 | delete arg7; | |
18100 | } | |
18101 | return resultobj; | |
18102 | fail: | |
18103 | { | |
18104 | if (temp7) | |
18105 | delete arg7; | |
18106 | } | |
18107 | return NULL; | |
18108 | } | |
18109 | ||
18110 | ||
7e08d4ef RD |
18111 | static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) { |
18112 | PyObject *resultobj = NULL; | |
18113 | wxListbook *arg1 = (wxListbook *) 0 ; | |
18114 | wxListView *result; | |
18115 | PyObject * obj0 = 0 ; | |
18116 | char *kwnames[] = { | |
18117 | (char *) "self", NULL | |
18118 | }; | |
18119 | ||
18120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail; | |
18121 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListbook, SWIG_POINTER_EXCEPTION | 0); | |
18122 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18123 | { | |
18124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18125 | result = (wxListView *)(arg1)->GetListView(); | |
18126 | ||
18127 | wxPyEndAllowThreads(__tstate); | |
18128 | if (PyErr_Occurred()) SWIG_fail; | |
18129 | } | |
18130 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0); | |
18131 | return resultobj; | |
18132 | fail: | |
18133 | return NULL; | |
18134 | } | |
18135 | ||
18136 | ||
18137 | static PyObject * Listbook_swigregister(PyObject *, PyObject *args) { | |
18138 | PyObject *obj; | |
18139 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18140 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
18141 | Py_INCREF(obj); | |
18142 | return Py_BuildValue((char *)""); | |
18143 | } | |
18144 | static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
18145 | PyObject *resultobj = NULL; | |
18146 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18147 | int arg2 = (int) 0 ; | |
18148 | int arg3 = (int) -1 ; | |
18149 | int arg4 = (int) -1 ; | |
18150 | wxListbookEvent *result; | |
18151 | PyObject * obj0 = 0 ; | |
18152 | PyObject * obj1 = 0 ; | |
18153 | PyObject * obj2 = 0 ; | |
18154 | PyObject * obj3 = 0 ; | |
18155 | char *kwnames[] = { | |
18156 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18157 | }; | |
18158 | ||
18159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18160 | if (obj0) { | |
18161 | { | |
18162 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); | |
18163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18164 | } | |
18165 | } | |
18166 | if (obj1) { | |
18167 | { | |
18168 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
18169 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18170 | } | |
18171 | } | |
18172 | if (obj2) { | |
18173 | { | |
18174 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
18175 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18176 | } | |
18177 | } | |
18178 | if (obj3) { | |
18179 | { | |
18180 | arg4 = static_cast<int >(SWIG_As_int(obj3)); | |
18181 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18182 | } | |
18183 | } | |
18184 | { | |
18185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18186 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
18187 | ||
18188 | wxPyEndAllowThreads(__tstate); | |
18189 | if (PyErr_Occurred()) SWIG_fail; | |
18190 | } | |
18191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
18192 | return resultobj; | |
18193 | fail: | |
18194 | return NULL; | |
18195 | } | |
18196 | ||
18197 | ||
18198 | static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) { | |
18199 | PyObject *obj; | |
18200 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18201 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
18202 | Py_INCREF(obj); | |
18203 | return Py_BuildValue((char *)""); | |
18204 | } | |
18205 | static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
18206 | PyObject *resultobj = NULL; | |
18207 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18208 | int arg2 ; | |
18209 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
18210 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18211 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18212 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18213 | long arg5 = (long) 0 ; | |
18214 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
18215 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18216 | wxChoicebook *result; | |
18217 | wxPoint temp3 ; | |
18218 | wxSize temp4 ; | |
18219 | bool temp6 = false ; | |
18220 | PyObject * obj0 = 0 ; | |
18221 | PyObject * obj1 = 0 ; | |
18222 | PyObject * obj2 = 0 ; | |
18223 | PyObject * obj3 = 0 ; | |
18224 | PyObject * obj4 = 0 ; | |
18225 | PyObject * obj5 = 0 ; | |
18226 | char *kwnames[] = { | |
18227 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18228 | }; | |
18229 | ||
18230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18231 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18232 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18233 | { | |
18234 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
18235 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18236 | } | |
18237 | if (obj2) { | |
18238 | { | |
18239 | arg3 = &temp3; | |
18240 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18241 | } | |
18242 | } | |
18243 | if (obj3) { | |
18244 | { | |
18245 | arg4 = &temp4; | |
18246 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18247 | } | |
18248 | } | |
18249 | if (obj4) { | |
18250 | { | |
18251 | arg5 = static_cast<long >(SWIG_As_long(obj4)); | |
18252 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18253 | } | |
18254 | } | |
18255 | if (obj5) { | |
18256 | { | |
18257 | arg6 = wxString_in_helper(obj5); | |
18258 | if (arg6 == NULL) SWIG_fail; | |
18259 | temp6 = true; | |
18260 | } | |
18261 | } | |
18262 | { | |
18263 | if (!wxPyCheckForApp()) SWIG_fail; | |
18264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18265 | result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18266 | ||
18267 | wxPyEndAllowThreads(__tstate); | |
18268 | if (PyErr_Occurred()) SWIG_fail; | |
18269 | } | |
18270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
18271 | { | |
18272 | if (temp6) | |
18273 | delete arg6; | |
18274 | } | |
18275 | return resultobj; | |
18276 | fail: | |
18277 | { | |
18278 | if (temp6) | |
18279 | delete arg6; | |
18280 | } | |
18281 | return NULL; | |
18282 | } | |
18283 | ||
18284 | ||
18285 | static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
18286 | PyObject *resultobj = NULL; | |
18287 | wxChoicebook *result; | |
18288 | char *kwnames[] = { | |
18289 | NULL | |
18290 | }; | |
18291 | ||
18292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail; | |
18293 | { | |
18294 | if (!wxPyCheckForApp()) SWIG_fail; | |
18295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18296 | result = (wxChoicebook *)new wxChoicebook(); | |
18297 | ||
18298 | wxPyEndAllowThreads(__tstate); | |
18299 | if (PyErr_Occurred()) SWIG_fail; | |
18300 | } | |
18301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1); | |
18302 | return resultobj; | |
18303 | fail: | |
18304 | return NULL; | |
18305 | } | |
18306 | ||
18307 | ||
18308 | static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
18309 | PyObject *resultobj = NULL; | |
18310 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18311 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18312 | int arg3 ; | |
18313 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18314 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18315 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18316 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18317 | long arg6 = (long) 0 ; | |
18318 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18319 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18320 | bool result; | |
18321 | wxPoint temp4 ; | |
18322 | wxSize temp5 ; | |
18323 | bool temp7 = false ; | |
18324 | PyObject * obj0 = 0 ; | |
18325 | PyObject * obj1 = 0 ; | |
18326 | PyObject * obj2 = 0 ; | |
18327 | PyObject * obj3 = 0 ; | |
18328 | PyObject * obj4 = 0 ; | |
18329 | PyObject * obj5 = 0 ; | |
18330 | PyObject * obj6 = 0 ; | |
18331 | char *kwnames[] = { | |
18332 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18333 | }; | |
18334 | ||
18335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
18336 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18337 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18338 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18339 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18340 | { | |
18341 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
18342 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18343 | } | |
18344 | if (obj3) { | |
18345 | { | |
18346 | arg4 = &temp4; | |
18347 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18348 | } | |
18349 | } | |
18350 | if (obj4) { | |
18351 | { | |
18352 | arg5 = &temp5; | |
18353 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18354 | } | |
18355 | } | |
18356 | if (obj5) { | |
18357 | { | |
18358 | arg6 = static_cast<long >(SWIG_As_long(obj5)); | |
18359 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18360 | } | |
18361 | } | |
18362 | if (obj6) { | |
18363 | { | |
18364 | arg7 = wxString_in_helper(obj6); | |
18365 | if (arg7 == NULL) SWIG_fail; | |
18366 | temp7 = true; | |
18367 | } | |
18368 | } | |
18369 | { | |
18370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18371 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18372 | ||
18373 | wxPyEndAllowThreads(__tstate); | |
18374 | if (PyErr_Occurred()) SWIG_fail; | |
18375 | } | |
18376 | { | |
18377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18378 | } | |
18379 | { | |
18380 | if (temp7) | |
18381 | delete arg7; | |
18382 | } | |
18383 | return resultobj; | |
18384 | fail: | |
18385 | { | |
18386 | if (temp7) | |
18387 | delete arg7; | |
18388 | } | |
18389 | return NULL; | |
18390 | } | |
18391 | ||
18392 | ||
18393 | static PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
18394 | PyObject *resultobj = NULL; | |
18395 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18396 | wxChoice *result; | |
18397 | PyObject * obj0 = 0 ; | |
18398 | char *kwnames[] = { | |
18399 | (char *) "self", NULL | |
18400 | }; | |
18401 | ||
18402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_GetChoiceCtrl",kwnames,&obj0)) goto fail; | |
18403 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18404 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18405 | { | |
18406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18407 | result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl(); | |
18408 | ||
18409 | wxPyEndAllowThreads(__tstate); | |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
18411 | } | |
18412 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 0); | |
18413 | return resultobj; | |
18414 | fail: | |
18415 | return NULL; | |
18416 | } | |
18417 | ||
18418 | ||
18419 | static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) { | |
18420 | PyObject *resultobj = NULL; | |
18421 | wxChoicebook *arg1 = (wxChoicebook *) 0 ; | |
18422 | bool result; | |
18423 | PyObject * obj0 = 0 ; | |
18424 | char *kwnames[] = { | |
18425 | (char *) "self", NULL | |
18426 | }; | |
18427 | ||
18428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail; | |
18429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxChoicebook, SWIG_POINTER_EXCEPTION | 0); | |
18430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18431 | { | |
18432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18433 | result = (bool)(arg1)->DeleteAllPages(); | |
18434 | ||
18435 | wxPyEndAllowThreads(__tstate); | |
18436 | if (PyErr_Occurred()) SWIG_fail; | |
18437 | } | |
18438 | { | |
18439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18440 | } | |
18441 | return resultobj; | |
18442 | fail: | |
18443 | return NULL; | |
18444 | } | |
18445 | ||
18446 | ||
18447 | static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) { | |
18448 | PyObject *obj; | |
18449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18450 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj); | |
18451 | Py_INCREF(obj); | |
18452 | return Py_BuildValue((char *)""); | |
18453 | } | |
18454 | static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { | |
18455 | PyObject *resultobj = NULL; | |
18456 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18457 | int arg2 = (int) 0 ; | |
18458 | int arg3 = (int) -1 ; | |
18459 | int arg4 = (int) -1 ; | |
18460 | wxChoicebookEvent *result; | |
18461 | PyObject * obj0 = 0 ; | |
18462 | PyObject * obj1 = 0 ; | |
18463 | PyObject * obj2 = 0 ; | |
18464 | PyObject * obj3 = 0 ; | |
18465 | char *kwnames[] = { | |
18466 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
18467 | }; | |
18468 | ||
18469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18470 | if (obj0) { | |
18471 | { | |
18472 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); | |
18473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18474 | } | |
18475 | } | |
18476 | if (obj1) { | |
18477 | { | |
18478 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
18479 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18480 | } | |
18481 | } | |
18482 | if (obj2) { | |
18483 | { | |
18484 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
18485 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18486 | } | |
18487 | } | |
18488 | if (obj3) { | |
18489 | { | |
18490 | arg4 = static_cast<int >(SWIG_As_int(obj3)); | |
18491 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18492 | } | |
18493 | } | |
18494 | { | |
18495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18496 | result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4); | |
18497 | ||
18498 | wxPyEndAllowThreads(__tstate); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
18501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1); | |
18502 | return resultobj; | |
18503 | fail: | |
18504 | return NULL; | |
18505 | } | |
18506 | ||
18507 | ||
18508 | static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) { | |
18509 | PyObject *obj; | |
18510 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18511 | SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj); | |
18512 | Py_INCREF(obj); | |
18513 | return Py_BuildValue((char *)""); | |
18514 | } | |
18515 | static PyObject *_wrap_new_Treebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
18516 | PyObject *resultobj = NULL; | |
18517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18518 | int arg2 ; | |
18519 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
18520 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18521 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18522 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18523 | long arg5 = (long) wxBK_DEFAULT ; | |
18524 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
18525 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18526 | wxTreebook *result; | |
18527 | wxPoint temp3 ; | |
18528 | wxSize temp4 ; | |
18529 | bool temp6 = false ; | |
18530 | PyObject * obj0 = 0 ; | |
18531 | PyObject * obj1 = 0 ; | |
18532 | PyObject * obj2 = 0 ; | |
18533 | PyObject * obj3 = 0 ; | |
18534 | PyObject * obj4 = 0 ; | |
18535 | PyObject * obj5 = 0 ; | |
18536 | char *kwnames[] = { | |
18537 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18538 | }; | |
18539 | ||
18540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18541 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18542 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18543 | { | |
18544 | arg2 = static_cast<int >(SWIG_As_int(obj1)); | |
18545 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18546 | } | |
18547 | if (obj2) { | |
18548 | { | |
18549 | arg3 = &temp3; | |
18550 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18551 | } | |
18552 | } | |
18553 | if (obj3) { | |
18554 | { | |
18555 | arg4 = &temp4; | |
18556 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18557 | } | |
18558 | } | |
18559 | if (obj4) { | |
18560 | { | |
18561 | arg5 = static_cast<long >(SWIG_As_long(obj4)); | |
18562 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18563 | } | |
18564 | } | |
18565 | if (obj5) { | |
18566 | { | |
18567 | arg6 = wxString_in_helper(obj5); | |
18568 | if (arg6 == NULL) SWIG_fail; | |
18569 | temp6 = true; | |
18570 | } | |
18571 | } | |
18572 | { | |
18573 | if (!wxPyCheckForApp()) SWIG_fail; | |
18574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18575 | result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18576 | ||
18577 | wxPyEndAllowThreads(__tstate); | |
18578 | if (PyErr_Occurred()) SWIG_fail; | |
18579 | } | |
18580 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreebook, 1); | |
18581 | { | |
18582 | if (temp6) | |
18583 | delete arg6; | |
18584 | } | |
18585 | return resultobj; | |
18586 | fail: | |
18587 | { | |
18588 | if (temp6) | |
18589 | delete arg6; | |
18590 | } | |
18591 | return NULL; | |
18592 | } | |
18593 | ||
18594 | ||
18595 | static PyObject *_wrap_new_PreTreebook(PyObject *, PyObject *args, PyObject *kwargs) { | |
18596 | PyObject *resultobj = NULL; | |
18597 | wxTreebook *result; | |
18598 | char *kwnames[] = { | |
18599 | NULL | |
18600 | }; | |
18601 | ||
18602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreebook",kwnames)) goto fail; | |
18603 | { | |
18604 | if (!wxPyCheckForApp()) SWIG_fail; | |
18605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18606 | result = (wxTreebook *)new wxTreebook(); | |
18607 | ||
18608 | wxPyEndAllowThreads(__tstate); | |
18609 | if (PyErr_Occurred()) SWIG_fail; | |
18610 | } | |
18611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreebook, 1); | |
18612 | return resultobj; | |
18613 | fail: | |
18614 | return NULL; | |
18615 | } | |
18616 | ||
18617 | ||
18618 | static PyObject *_wrap_Treebook_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
18619 | PyObject *resultobj = NULL; | |
18620 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
18621 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18622 | int arg3 ; | |
18623 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
18624 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18625 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18626 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18627 | long arg6 = (long) wxBK_DEFAULT ; | |
18628 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18629 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18630 | bool result; | |
18631 | wxPoint temp4 ; | |
18632 | wxSize temp5 ; | |
18633 | bool temp7 = false ; | |
18634 | PyObject * obj0 = 0 ; | |
18635 | PyObject * obj1 = 0 ; | |
18636 | PyObject * obj2 = 0 ; | |
18637 | PyObject * obj3 = 0 ; | |
18638 | PyObject * obj4 = 0 ; | |
18639 | PyObject * obj5 = 0 ; | |
18640 | PyObject * obj6 = 0 ; | |
18641 | char *kwnames[] = { | |
18642 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18643 | }; | |
18644 | ||
18645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
18646 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
18647 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18648 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18649 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18650 | { | |
18651 | arg3 = static_cast<int >(SWIG_As_int(obj2)); | |
18652 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18653 | } | |
18654 | if (obj3) { | |
18655 | { | |
18656 | arg4 = &temp4; | |
18657 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18658 | } | |
18659 | } | |
18660 | if (obj4) { | |
18661 | { | |
18662 | arg5 = &temp5; | |
18663 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18664 | } | |
18665 | } | |
18666 | if (obj5) { | |
18667 | { | |
18668 | arg6 = static_cast<long >(SWIG_As_long(obj5)); | |
18669 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18670 | } | |
18671 | } | |
18672 | if (obj6) { | |
18673 | { | |
18674 | arg7 = wxString_in_helper(obj6); | |
18675 | if (arg7 == NULL) SWIG_fail; | |
18676 | temp7 = true; | |
18677 | } | |
18678 | } | |
18679 | { | |
18680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18681 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18682 | ||
18683 | wxPyEndAllowThreads(__tstate); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | } | |
18686 | { | |
18687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18688 | } | |
18689 | { | |
18690 | if (temp7) | |
18691 | delete arg7; | |
18692 | } | |
18693 | return resultobj; | |
18694 | fail: | |
18695 | { | |
18696 | if (temp7) | |
18697 | delete arg7; | |
18698 | } | |
18699 | return NULL; | |
18700 | } | |
18701 | ||
18702 | ||
18703 | static PyObject *_wrap_Treebook_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18704 | PyObject *resultobj = NULL; | |
18705 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
18706 | size_t arg2 ; | |
18707 | wxWindow *arg3 = (wxWindow *) 0 ; | |
18708 | wxString *arg4 = 0 ; | |
18709 | bool arg5 = (bool) false ; | |
18710 | int arg6 = (int) wxNOT_FOUND ; | |
18711 | bool result; | |
18712 | bool temp4 = false ; | |
18713 | PyObject * obj0 = 0 ; | |
18714 | PyObject * obj1 = 0 ; | |
18715 | PyObject * obj2 = 0 ; | |
18716 | PyObject * obj3 = 0 ; | |
18717 | PyObject * obj4 = 0 ; | |
18718 | PyObject * obj5 = 0 ; | |
18719 | char *kwnames[] = { | |
18720 | (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
18721 | }; | |
18722 | ||
18723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
18725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18726 | { | |
18727 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); | |
18728 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18729 | } | |
18730 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18731 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18732 | { | |
18733 | arg4 = wxString_in_helper(obj3); | |
18734 | if (arg4 == NULL) SWIG_fail; | |
18735 | temp4 = true; | |
18736 | } | |
18737 | if (obj4) { | |
18738 | { | |
18739 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); | |
18740 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18741 | } | |
18742 | } | |
18743 | if (obj5) { | |
18744 | { | |
18745 | arg6 = static_cast<int >(SWIG_As_int(obj5)); | |
18746 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18747 | } | |
18748 | } | |
18749 | { | |
18750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18751 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
18752 | ||
18753 | wxPyEndAllowThreads(__tstate); | |
18754 | if (PyErr_Occurred()) SWIG_fail; | |
18755 | } | |
18756 | { | |
18757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18758 | } | |
18759 | { | |
18760 | if (temp4) | |
18761 | delete arg4; | |
18762 | } | |
18763 | return resultobj; | |
18764 | fail: | |
18765 | { | |
18766 | if (temp4) | |
18767 | delete arg4; | |
18768 | } | |
18769 | return NULL; | |
18770 | } | |
18771 | ||
18772 | ||
18773 | static PyObject *_wrap_Treebook_InsertSubPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18774 | PyObject *resultobj = NULL; | |
18775 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
18776 | size_t arg2 ; | |
18777 | wxWindow *arg3 = (wxWindow *) 0 ; | |
18778 | wxString *arg4 = 0 ; | |
18779 | bool arg5 = (bool) false ; | |
18780 | int arg6 = (int) wxNOT_FOUND ; | |
18781 | bool result; | |
18782 | bool temp4 = false ; | |
18783 | PyObject * obj0 = 0 ; | |
18784 | PyObject * obj1 = 0 ; | |
18785 | PyObject * obj2 = 0 ; | |
18786 | PyObject * obj3 = 0 ; | |
18787 | PyObject * obj4 = 0 ; | |
18788 | PyObject * obj5 = 0 ; | |
18789 | char *kwnames[] = { | |
18790 | (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
18791 | }; | |
18792 | ||
18793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18794 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
18795 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18796 | { | |
18797 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); | |
18798 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18799 | } | |
18800 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18801 | if (SWIG_arg_fail(3)) SWIG_fail; | |
18802 | { | |
18803 | arg4 = wxString_in_helper(obj3); | |
18804 | if (arg4 == NULL) SWIG_fail; | |
18805 | temp4 = true; | |
18806 | } | |
18807 | if (obj4) { | |
18808 | { | |
18809 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); | |
18810 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18811 | } | |
18812 | } | |
18813 | if (obj5) { | |
18814 | { | |
18815 | arg6 = static_cast<int >(SWIG_As_int(obj5)); | |
18816 | if (SWIG_arg_fail(6)) SWIG_fail; | |
18817 | } | |
18818 | } | |
18819 | { | |
18820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 18821 | result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); |
7e08d4ef RD |
18822 | |
18823 | wxPyEndAllowThreads(__tstate); | |
18824 | if (PyErr_Occurred()) SWIG_fail; | |
18825 | } | |
18826 | { | |
18827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18828 | } | |
18829 | { | |
18830 | if (temp4) | |
18831 | delete arg4; | |
18832 | } | |
18833 | return resultobj; | |
18834 | fail: | |
18835 | { | |
18836 | if (temp4) | |
18837 | delete arg4; | |
18838 | } | |
18839 | return NULL; | |
18840 | } | |
18841 | ||
18842 | ||
18843 | static PyObject *_wrap_Treebook_AddPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 18844 | PyObject *resultobj = NULL; |
7e08d4ef RD |
18845 | wxTreebook *arg1 = (wxTreebook *) 0 ; |
18846 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18847 | wxString *arg3 = 0 ; | |
18848 | bool arg4 = (bool) false ; | |
18849 | int arg5 = (int) wxNOT_FOUND ; | |
d14a1e28 | 18850 | bool result; |
7e08d4ef | 18851 | bool temp3 = false ; |
d14a1e28 | 18852 | PyObject * obj0 = 0 ; |
7e08d4ef RD |
18853 | PyObject * obj1 = 0 ; |
18854 | PyObject * obj2 = 0 ; | |
18855 | PyObject * obj3 = 0 ; | |
18856 | PyObject * obj4 = 0 ; | |
d14a1e28 | 18857 | char *kwnames[] = { |
7e08d4ef | 18858 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL |
d14a1e28 RD |
18859 | }; |
18860 | ||
7e08d4ef RD |
18861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
18862 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
093d3ff1 | 18863 | if (SWIG_arg_fail(1)) SWIG_fail; |
7e08d4ef RD |
18864 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
18865 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18866 | { | |
18867 | arg3 = wxString_in_helper(obj2); | |
18868 | if (arg3 == NULL) SWIG_fail; | |
18869 | temp3 = true; | |
18870 | } | |
18871 | if (obj3) { | |
18872 | { | |
18873 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); | |
18874 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18875 | } | |
18876 | } | |
18877 | if (obj4) { | |
18878 | { | |
18879 | arg5 = static_cast<int >(SWIG_As_int(obj4)); | |
18880 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18881 | } | |
18882 | } | |
d14a1e28 RD |
18883 | { |
18884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 18885 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); |
d14a1e28 RD |
18886 | |
18887 | wxPyEndAllowThreads(__tstate); | |
18888 | if (PyErr_Occurred()) SWIG_fail; | |
18889 | } | |
4f89f6a3 RD |
18890 | { |
18891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18892 | } | |
7e08d4ef RD |
18893 | { |
18894 | if (temp3) | |
18895 | delete arg3; | |
18896 | } | |
d14a1e28 RD |
18897 | return resultobj; |
18898 | fail: | |
7e08d4ef RD |
18899 | { |
18900 | if (temp3) | |
18901 | delete arg3; | |
18902 | } | |
d14a1e28 RD |
18903 | return NULL; |
18904 | } | |
18905 | ||
18906 | ||
7e08d4ef | 18907 | static PyObject *_wrap_Treebook_AddSubPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 18908 | PyObject *resultobj = NULL; |
7e08d4ef RD |
18909 | wxTreebook *arg1 = (wxTreebook *) 0 ; |
18910 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18911 | wxString *arg3 = 0 ; | |
18912 | bool arg4 = (bool) false ; | |
18913 | int arg5 = (int) wxNOT_FOUND ; | |
18914 | bool result; | |
18915 | bool temp3 = false ; | |
18916 | PyObject * obj0 = 0 ; | |
18917 | PyObject * obj1 = 0 ; | |
18918 | PyObject * obj2 = 0 ; | |
18919 | PyObject * obj3 = 0 ; | |
18920 | PyObject * obj4 = 0 ; | |
18921 | char *kwnames[] = { | |
18922 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
18923 | }; | |
18924 | ||
18925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18926 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
18927 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18928 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
18929 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18930 | { | |
18931 | arg3 = wxString_in_helper(obj2); | |
18932 | if (arg3 == NULL) SWIG_fail; | |
18933 | temp3 = true; | |
18934 | } | |
18935 | if (obj3) { | |
18936 | { | |
18937 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); | |
18938 | if (SWIG_arg_fail(4)) SWIG_fail; | |
18939 | } | |
18940 | } | |
18941 | if (obj4) { | |
18942 | { | |
18943 | arg5 = static_cast<int >(SWIG_As_int(obj4)); | |
18944 | if (SWIG_arg_fail(5)) SWIG_fail; | |
18945 | } | |
18946 | } | |
18947 | { | |
18948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18949 | result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
18950 | ||
18951 | wxPyEndAllowThreads(__tstate); | |
18952 | if (PyErr_Occurred()) SWIG_fail; | |
18953 | } | |
18954 | { | |
18955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18956 | } | |
18957 | { | |
18958 | if (temp3) | |
18959 | delete arg3; | |
18960 | } | |
18961 | return resultobj; | |
18962 | fail: | |
18963 | { | |
18964 | if (temp3) | |
18965 | delete arg3; | |
18966 | } | |
18967 | return NULL; | |
18968 | } | |
18969 | ||
18970 | ||
18971 | static PyObject *_wrap_Treebook_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) { | |
18972 | PyObject *resultobj = NULL; | |
18973 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
18974 | size_t arg2 ; | |
18975 | bool result; | |
18976 | PyObject * obj0 = 0 ; | |
18977 | PyObject * obj1 = 0 ; | |
18978 | char *kwnames[] = { | |
18979 | (char *) "self",(char *) "pos", NULL | |
18980 | }; | |
18981 | ||
18982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
18983 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
18984 | if (SWIG_arg_fail(1)) SWIG_fail; | |
18985 | { | |
18986 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); | |
18987 | if (SWIG_arg_fail(2)) SWIG_fail; | |
18988 | } | |
18989 | { | |
18990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18991 | result = (bool)(arg1)->DeletePage(arg2); | |
18992 | ||
18993 | wxPyEndAllowThreads(__tstate); | |
18994 | if (PyErr_Occurred()) SWIG_fail; | |
18995 | } | |
18996 | { | |
18997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18998 | } | |
18999 | return resultobj; | |
19000 | fail: | |
19001 | return NULL; | |
19002 | } | |
19003 | ||
19004 | ||
19005 | static PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *, PyObject *args, PyObject *kwargs) { | |
19006 | PyObject *resultobj = NULL; | |
19007 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
19008 | size_t arg2 ; | |
19009 | bool result; | |
19010 | PyObject * obj0 = 0 ; | |
19011 | PyObject * obj1 = 0 ; | |
19012 | char *kwnames[] = { | |
19013 | (char *) "self",(char *) "pos", NULL | |
19014 | }; | |
19015 | ||
19016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) goto fail; | |
19017 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
19018 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19019 | { | |
19020 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); | |
19021 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19022 | } | |
19023 | { | |
19024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19025 | result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2); | |
19026 | ||
19027 | wxPyEndAllowThreads(__tstate); | |
19028 | if (PyErr_Occurred()) SWIG_fail; | |
19029 | } | |
19030 | { | |
19031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19032 | } | |
19033 | return resultobj; | |
19034 | fail: | |
19035 | return NULL; | |
19036 | } | |
19037 | ||
19038 | ||
19039 | static PyObject *_wrap_Treebook_ExpandNode(PyObject *, PyObject *args, PyObject *kwargs) { | |
19040 | PyObject *resultobj = NULL; | |
19041 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
19042 | size_t arg2 ; | |
19043 | bool arg3 = (bool) true ; | |
19044 | bool result; | |
19045 | PyObject * obj0 = 0 ; | |
19046 | PyObject * obj1 = 0 ; | |
19047 | PyObject * obj2 = 0 ; | |
19048 | char *kwnames[] = { | |
19049 | (char *) "self",(char *) "pos",(char *) "expand", NULL | |
19050 | }; | |
19051 | ||
19052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19053 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
19054 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19055 | { | |
19056 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); | |
19057 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19058 | } | |
19059 | if (obj2) { | |
19060 | { | |
19061 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); | |
19062 | if (SWIG_arg_fail(3)) SWIG_fail; | |
19063 | } | |
19064 | } | |
19065 | { | |
19066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19067 | result = (bool)(arg1)->ExpandNode(arg2,arg3); | |
19068 | ||
19069 | wxPyEndAllowThreads(__tstate); | |
19070 | if (PyErr_Occurred()) SWIG_fail; | |
19071 | } | |
19072 | { | |
19073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19074 | } | |
19075 | return resultobj; | |
19076 | fail: | |
19077 | return NULL; | |
19078 | } | |
19079 | ||
19080 | ||
19081 | static PyObject *_wrap_Treebook_CollapseNode(PyObject *, PyObject *args, PyObject *kwargs) { | |
19082 | PyObject *resultobj = NULL; | |
19083 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
19084 | size_t arg2 ; | |
19085 | bool result; | |
19086 | PyObject * obj0 = 0 ; | |
19087 | PyObject * obj1 = 0 ; | |
19088 | char *kwnames[] = { | |
19089 | (char *) "self",(char *) "pos", NULL | |
19090 | }; | |
19091 | ||
19092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) goto fail; | |
19093 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
19094 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19095 | { | |
19096 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); | |
19097 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19098 | } | |
19099 | { | |
19100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19101 | result = (bool)(arg1)->CollapseNode(arg2); | |
19102 | ||
19103 | wxPyEndAllowThreads(__tstate); | |
19104 | if (PyErr_Occurred()) SWIG_fail; | |
19105 | } | |
19106 | { | |
19107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19108 | } | |
19109 | return resultobj; | |
19110 | fail: | |
19111 | return NULL; | |
19112 | } | |
19113 | ||
19114 | ||
19115 | static PyObject *_wrap_Treebook_GetPageParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
19116 | PyObject *resultobj = NULL; | |
19117 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
19118 | size_t arg2 ; | |
19119 | int result; | |
19120 | PyObject * obj0 = 0 ; | |
19121 | PyObject * obj1 = 0 ; | |
19122 | char *kwnames[] = { | |
19123 | (char *) "self",(char *) "pos", NULL | |
19124 | }; | |
19125 | ||
19126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) goto fail; | |
19127 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
19128 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19129 | { | |
19130 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); | |
19131 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19132 | } | |
19133 | { | |
19134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19135 | result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2); | |
19136 | ||
19137 | wxPyEndAllowThreads(__tstate); | |
19138 | if (PyErr_Occurred()) SWIG_fail; | |
19139 | } | |
19140 | { | |
19141 | resultobj = SWIG_From_int(static_cast<int >(result)); | |
19142 | } | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | static PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj = NULL; | |
19151 | wxTreebook *arg1 = (wxTreebook *) 0 ; | |
19152 | wxTreeCtrl *result; | |
1fbf26be RD |
19153 | PyObject * obj0 = 0 ; |
19154 | char *kwnames[] = { | |
19155 | (char *) "self", NULL | |
19156 | }; | |
19157 | ||
7e08d4ef RD |
19158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Treebook_GetTreeCtrl",kwnames,&obj0)) goto fail; |
19159 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreebook, SWIG_POINTER_EXCEPTION | 0); | |
093d3ff1 | 19160 | if (SWIG_arg_fail(1)) SWIG_fail; |
1fbf26be RD |
19161 | { |
19162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 19163 | result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl(); |
1fbf26be RD |
19164 | |
19165 | wxPyEndAllowThreads(__tstate); | |
19166 | if (PyErr_Occurred()) SWIG_fail; | |
19167 | } | |
7e08d4ef | 19168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeCtrl, 0); |
1fbf26be RD |
19169 | return resultobj; |
19170 | fail: | |
19171 | return NULL; | |
19172 | } | |
19173 | ||
19174 | ||
7e08d4ef | 19175 | static PyObject * Treebook_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19176 | PyObject *obj; |
19177 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7e08d4ef | 19178 | SWIG_TypeClientData(SWIGTYPE_p_wxTreebook, obj); |
d14a1e28 RD |
19179 | Py_INCREF(obj); |
19180 | return Py_BuildValue((char *)""); | |
19181 | } | |
7e08d4ef | 19182 | static PyObject *_wrap_new_TreebookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19183 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19184 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
19185 | int arg2 = (int) 0 ; | |
7e08d4ef RD |
19186 | int arg3 = (int) wxNOT_FOUND ; |
19187 | int arg4 = (int) wxNOT_FOUND ; | |
19188 | wxTreebookEvent *result; | |
994141e6 RD |
19189 | PyObject * obj0 = 0 ; |
19190 | PyObject * obj1 = 0 ; | |
19191 | PyObject * obj2 = 0 ; | |
19192 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
19193 | char *kwnames[] = { |
19194 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
19195 | }; | |
19196 | ||
7e08d4ef | 19197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
994141e6 | 19198 | if (obj0) { |
093d3ff1 | 19199 | { |
32fe5131 | 19200 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
19201 | if (SWIG_arg_fail(1)) SWIG_fail; |
19202 | } | |
994141e6 RD |
19203 | } |
19204 | if (obj1) { | |
093d3ff1 | 19205 | { |
32fe5131 | 19206 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19207 | if (SWIG_arg_fail(2)) SWIG_fail; |
19208 | } | |
994141e6 RD |
19209 | } |
19210 | if (obj2) { | |
093d3ff1 | 19211 | { |
32fe5131 | 19212 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
19213 | if (SWIG_arg_fail(3)) SWIG_fail; |
19214 | } | |
994141e6 RD |
19215 | } |
19216 | if (obj3) { | |
093d3ff1 | 19217 | { |
32fe5131 | 19218 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
19219 | if (SWIG_arg_fail(4)) SWIG_fail; |
19220 | } | |
994141e6 | 19221 | } |
d14a1e28 RD |
19222 | { |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 19224 | result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4); |
d14a1e28 RD |
19225 | |
19226 | wxPyEndAllowThreads(__tstate); | |
19227 | if (PyErr_Occurred()) SWIG_fail; | |
19228 | } | |
7e08d4ef | 19229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreebookEvent, 1); |
d14a1e28 RD |
19230 | return resultobj; |
19231 | fail: | |
19232 | return NULL; | |
19233 | } | |
19234 | ||
19235 | ||
7e08d4ef | 19236 | static PyObject * TreebookEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
19237 | PyObject *obj; |
19238 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7e08d4ef | 19239 | SWIG_TypeClientData(SWIGTYPE_p_wxTreebookEvent, obj); |
d14a1e28 RD |
19240 | Py_INCREF(obj); |
19241 | return Py_BuildValue((char *)""); | |
19242 | } | |
7e08d4ef | 19243 | static PyObject *_wrap_new_Toolbook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19244 | PyObject *resultobj = NULL; |
2ef75293 RD |
19245 | wxWindow *arg1 = (wxWindow *) 0 ; |
19246 | int arg2 ; | |
19247 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19248 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19249 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19250 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7e08d4ef | 19251 | long arg5 = (long) wxBK_DEFAULT ; |
2ef75293 RD |
19252 | wxString const &arg6_defvalue = wxPyEmptyString ; |
19253 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7e08d4ef | 19254 | wxToolbook *result; |
2ef75293 RD |
19255 | wxPoint temp3 ; |
19256 | wxSize temp4 ; | |
ae8162c8 | 19257 | bool temp6 = false ; |
2ef75293 RD |
19258 | PyObject * obj0 = 0 ; |
19259 | PyObject * obj1 = 0 ; | |
19260 | PyObject * obj2 = 0 ; | |
19261 | PyObject * obj3 = 0 ; | |
19262 | PyObject * obj4 = 0 ; | |
19263 | PyObject * obj5 = 0 ; | |
19264 | char *kwnames[] = { | |
19265 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19266 | }; | |
19267 | ||
7e08d4ef | 19268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
19269 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
19270 | if (SWIG_arg_fail(1)) SWIG_fail; | |
19271 | { | |
32fe5131 | 19272 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19273 | if (SWIG_arg_fail(2)) SWIG_fail; |
19274 | } | |
2ef75293 RD |
19275 | if (obj2) { |
19276 | { | |
19277 | arg3 = &temp3; | |
19278 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19279 | } | |
19280 | } | |
19281 | if (obj3) { | |
19282 | { | |
19283 | arg4 = &temp4; | |
19284 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19285 | } | |
19286 | } | |
19287 | if (obj4) { | |
093d3ff1 | 19288 | { |
32fe5131 | 19289 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
19290 | if (SWIG_arg_fail(5)) SWIG_fail; |
19291 | } | |
2ef75293 RD |
19292 | } |
19293 | if (obj5) { | |
19294 | { | |
19295 | arg6 = wxString_in_helper(obj5); | |
19296 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 19297 | temp6 = true; |
2ef75293 RD |
19298 | } |
19299 | } | |
19300 | { | |
2ef75293 | 19301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e08d4ef | 19302 | result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); |
2ef75293 RD |
19303 | |
19304 | wxPyEndAllowThreads(__tstate); | |
19305 | if (PyErr_Occurred()) SWIG_fail; | |
19306 | } | |
7e08d4ef | 19307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolbook, 1); |
2ef75293 RD |
19308 | { |
19309 | if (temp6) | |
19310 | delete arg6; | |
19311 | } | |
19312 | return resultobj; | |
19313 | fail: | |
19314 | { | |
19315 | if (temp6) | |
19316 | delete arg6; | |
19317 | } | |
19318 | return NULL; | |
19319 | } | |
19320 | ||
19321 | ||
7e08d4ef | 19322 | static PyObject *_wrap_new_PreToolbook(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19323 | PyObject *resultobj = NULL; |
7e08d4ef | 19324 | wxToolbook *result; |
2ef75293 RD |
19325 | char *kwnames[] = { |
19326 | NULL | |
19327 | }; | |
19328 | ||
7e08d4ef | 19329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolbook",kwnames)) goto fail; |
2ef75293 | 19330 | { |
2ef75293 | 19331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e08d4ef | 19332 | result = (wxToolbook *)new wxToolbook(); |
2ef75293 RD |
19333 | |
19334 | wxPyEndAllowThreads(__tstate); | |
19335 | if (PyErr_Occurred()) SWIG_fail; | |
19336 | } | |
7e08d4ef | 19337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolbook, 1); |
2ef75293 RD |
19338 | return resultobj; |
19339 | fail: | |
19340 | return NULL; | |
19341 | } | |
19342 | ||
19343 | ||
7e08d4ef | 19344 | static PyObject *_wrap_Toolbook_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19345 | PyObject *resultobj = NULL; |
7e08d4ef | 19346 | wxToolbook *arg1 = (wxToolbook *) 0 ; |
2ef75293 RD |
19347 | wxWindow *arg2 = (wxWindow *) 0 ; |
19348 | int arg3 ; | |
19349 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
19350 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19351 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19352 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19353 | long arg6 = (long) 0 ; | |
7e08d4ef | 19354 | wxString const &arg7_defvalue = wxEmptyString ; |
2ef75293 RD |
19355 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
19356 | bool result; | |
19357 | wxPoint temp4 ; | |
19358 | wxSize temp5 ; | |
ae8162c8 | 19359 | bool temp7 = false ; |
2ef75293 RD |
19360 | PyObject * obj0 = 0 ; |
19361 | PyObject * obj1 = 0 ; | |
19362 | PyObject * obj2 = 0 ; | |
19363 | PyObject * obj3 = 0 ; | |
19364 | PyObject * obj4 = 0 ; | |
19365 | PyObject * obj5 = 0 ; | |
19366 | PyObject * obj6 = 0 ; | |
19367 | char *kwnames[] = { | |
19368 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
19369 | }; | |
19370 | ||
7e08d4ef RD |
19371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
19372 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolbook, SWIG_POINTER_EXCEPTION | 0); | |
093d3ff1 RD |
19373 | if (SWIG_arg_fail(1)) SWIG_fail; |
19374 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
19375 | if (SWIG_arg_fail(2)) SWIG_fail; | |
19376 | { | |
32fe5131 | 19377 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
19378 | if (SWIG_arg_fail(3)) SWIG_fail; |
19379 | } | |
2ef75293 RD |
19380 | if (obj3) { |
19381 | { | |
19382 | arg4 = &temp4; | |
19383 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19384 | } | |
19385 | } | |
19386 | if (obj4) { | |
19387 | { | |
19388 | arg5 = &temp5; | |
19389 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19390 | } | |
19391 | } | |
19392 | if (obj5) { | |
093d3ff1 | 19393 | { |
32fe5131 | 19394 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
19395 | if (SWIG_arg_fail(6)) SWIG_fail; |
19396 | } | |
2ef75293 RD |
19397 | } |
19398 | if (obj6) { | |
19399 | { | |
19400 | arg7 = wxString_in_helper(obj6); | |
19401 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 19402 | temp7 = true; |
2ef75293 RD |
19403 | } |
19404 | } | |
19405 | { | |
19406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19407 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
19408 | ||
19409 | wxPyEndAllowThreads(__tstate); | |
19410 | if (PyErr_Occurred()) SWIG_fail; | |
19411 | } | |
19412 | { | |
19413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19414 | } | |
19415 | { | |
19416 | if (temp7) | |
19417 | delete arg7; | |
19418 | } | |
19419 | return resultobj; | |
19420 | fail: | |
19421 | { | |
19422 | if (temp7) | |
19423 | delete arg7; | |
19424 | } | |
19425 | return NULL; | |
19426 | } | |
19427 | ||
19428 | ||
7e08d4ef | 19429 | static PyObject *_wrap_Toolbook_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19430 | PyObject *resultobj = NULL; |
7e08d4ef RD |
19431 | wxToolbook *arg1 = (wxToolbook *) 0 ; |
19432 | wxToolBarBase *result; | |
2ef75293 RD |
19433 | PyObject * obj0 = 0 ; |
19434 | char *kwnames[] = { | |
19435 | (char *) "self", NULL | |
19436 | }; | |
19437 | ||
7e08d4ef RD |
19438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Toolbook_GetToolBar",kwnames,&obj0)) goto fail; |
19439 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolbook, SWIG_POINTER_EXCEPTION | 0); | |
093d3ff1 | 19440 | if (SWIG_arg_fail(1)) SWIG_fail; |
2ef75293 RD |
19441 | { |
19442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 19443 | result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar(); |
2ef75293 RD |
19444 | |
19445 | wxPyEndAllowThreads(__tstate); | |
19446 | if (PyErr_Occurred()) SWIG_fail; | |
19447 | } | |
19448 | { | |
7e08d4ef | 19449 | resultobj = wxPyMake_wxObject(result, (bool)0); |
70b7a5fe | 19450 | } |
70b7a5fe RD |
19451 | return resultobj; |
19452 | fail: | |
19453 | return NULL; | |
19454 | } | |
19455 | ||
19456 | ||
7e08d4ef | 19457 | static PyObject *_wrap_Toolbook_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19458 | PyObject *resultobj = NULL; |
7e08d4ef | 19459 | wxToolbook *arg1 = (wxToolbook *) 0 ; |
2ef75293 RD |
19460 | PyObject * obj0 = 0 ; |
19461 | char *kwnames[] = { | |
19462 | (char *) "self", NULL | |
19463 | }; | |
19464 | ||
7e08d4ef RD |
19465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Toolbook_Realize",kwnames,&obj0)) goto fail; |
19466 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolbook, SWIG_POINTER_EXCEPTION | 0); | |
093d3ff1 | 19467 | if (SWIG_arg_fail(1)) SWIG_fail; |
2ef75293 RD |
19468 | { |
19469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 19470 | (arg1)->Realize(); |
2ef75293 RD |
19471 | |
19472 | wxPyEndAllowThreads(__tstate); | |
19473 | if (PyErr_Occurred()) SWIG_fail; | |
19474 | } | |
7e08d4ef | 19475 | Py_INCREF(Py_None); resultobj = Py_None; |
2ef75293 RD |
19476 | return resultobj; |
19477 | fail: | |
19478 | return NULL; | |
19479 | } | |
19480 | ||
19481 | ||
7e08d4ef | 19482 | static PyObject * Toolbook_swigregister(PyObject *, PyObject *args) { |
2ef75293 RD |
19483 | PyObject *obj; |
19484 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7e08d4ef | 19485 | SWIG_TypeClientData(SWIGTYPE_p_wxToolbook, obj); |
2ef75293 RD |
19486 | Py_INCREF(obj); |
19487 | return Py_BuildValue((char *)""); | |
19488 | } | |
7e08d4ef | 19489 | static PyObject *_wrap_new_ToolbookEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19490 | PyObject *resultobj = NULL; |
2ef75293 RD |
19491 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
19492 | int arg2 = (int) 0 ; | |
7e08d4ef RD |
19493 | int arg3 = (int) wxNOT_FOUND ; |
19494 | int arg4 = (int) wxNOT_FOUND ; | |
19495 | wxToolbookEvent *result; | |
2ef75293 RD |
19496 | PyObject * obj0 = 0 ; |
19497 | PyObject * obj1 = 0 ; | |
19498 | PyObject * obj2 = 0 ; | |
19499 | PyObject * obj3 = 0 ; | |
19500 | char *kwnames[] = { | |
19501 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
19502 | }; | |
19503 | ||
7e08d4ef | 19504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2ef75293 | 19505 | if (obj0) { |
093d3ff1 | 19506 | { |
32fe5131 | 19507 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
19508 | if (SWIG_arg_fail(1)) SWIG_fail; |
19509 | } | |
2ef75293 RD |
19510 | } |
19511 | if (obj1) { | |
093d3ff1 | 19512 | { |
32fe5131 | 19513 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
19514 | if (SWIG_arg_fail(2)) SWIG_fail; |
19515 | } | |
2ef75293 RD |
19516 | } |
19517 | if (obj2) { | |
093d3ff1 | 19518 | { |
32fe5131 | 19519 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
19520 | if (SWIG_arg_fail(3)) SWIG_fail; |
19521 | } | |
2ef75293 RD |
19522 | } |
19523 | if (obj3) { | |
093d3ff1 | 19524 | { |
32fe5131 | 19525 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
19526 | if (SWIG_arg_fail(4)) SWIG_fail; |
19527 | } | |
2ef75293 RD |
19528 | } |
19529 | { | |
19530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7e08d4ef | 19531 | result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4); |
2ef75293 RD |
19532 | |
19533 | wxPyEndAllowThreads(__tstate); | |
19534 | if (PyErr_Occurred()) SWIG_fail; | |
19535 | } | |
7e08d4ef | 19536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolbookEvent, 1); |
2ef75293 RD |
19537 | return resultobj; |
19538 | fail: | |
19539 | return NULL; | |
19540 | } | |
19541 | ||
19542 | ||
7e08d4ef | 19543 | static PyObject * ToolbookEvent_swigregister(PyObject *, PyObject *args) { |
2ef75293 RD |
19544 | PyObject *obj; |
19545 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7e08d4ef | 19546 | SWIG_TypeClientData(SWIGTYPE_p_wxToolbookEvent, obj); |
2ef75293 RD |
19547 | Py_INCREF(obj); |
19548 | return Py_BuildValue((char *)""); | |
19549 | } | |
c32bde28 | 19550 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19551 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19552 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19553 | int result; | |
19554 | PyObject * obj0 = 0 ; | |
19555 | char *kwnames[] = { | |
19556 | (char *) "self", NULL | |
19557 | }; | |
19558 | ||
19559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19562 | { |
19563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19564 | result = (int)(arg1)->GetId(); | |
19565 | ||
19566 | wxPyEndAllowThreads(__tstate); | |
19567 | if (PyErr_Occurred()) SWIG_fail; | |
19568 | } | |
093d3ff1 | 19569 | { |
32fe5131 | 19570 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 19571 | } |
d14a1e28 RD |
19572 | return resultobj; |
19573 | fail: | |
19574 | return NULL; | |
19575 | } | |
19576 | ||
19577 | ||
c32bde28 | 19578 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19579 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19580 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19581 | wxControl *result; | |
19582 | PyObject * obj0 = 0 ; | |
19583 | char *kwnames[] = { | |
19584 | (char *) "self", NULL | |
19585 | }; | |
19586 | ||
19587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19588 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19589 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19590 | { |
19591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19592 | result = (wxControl *)(arg1)->GetControl(); | |
19593 | ||
19594 | wxPyEndAllowThreads(__tstate); | |
19595 | if (PyErr_Occurred()) SWIG_fail; | |
19596 | } | |
19597 | { | |
412d302d | 19598 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
19599 | } |
19600 | return resultobj; | |
19601 | fail: | |
19602 | return NULL; | |
19603 | } | |
19604 | ||
19605 | ||
c32bde28 | 19606 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19607 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19608 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19609 | wxToolBarBase *result; | |
19610 | PyObject * obj0 = 0 ; | |
19611 | char *kwnames[] = { | |
19612 | (char *) "self", NULL | |
19613 | }; | |
19614 | ||
19615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19616 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19617 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19618 | { |
19619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19620 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
19621 | ||
19622 | wxPyEndAllowThreads(__tstate); | |
19623 | if (PyErr_Occurred()) SWIG_fail; | |
19624 | } | |
19625 | { | |
7e08d4ef | 19626 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
19627 | } |
19628 | return resultobj; | |
19629 | fail: | |
19630 | return NULL; | |
19631 | } | |
19632 | ||
19633 | ||
c32bde28 | 19634 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19635 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19636 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19637 | int result; | |
19638 | PyObject * obj0 = 0 ; | |
19639 | char *kwnames[] = { | |
19640 | (char *) "self", NULL | |
19641 | }; | |
19642 | ||
19643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19646 | { |
19647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19648 | result = (int)(arg1)->IsButton(); | |
19649 | ||
19650 | wxPyEndAllowThreads(__tstate); | |
19651 | if (PyErr_Occurred()) SWIG_fail; | |
19652 | } | |
093d3ff1 | 19653 | { |
32fe5131 | 19654 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 19655 | } |
d14a1e28 RD |
19656 | return resultobj; |
19657 | fail: | |
19658 | return NULL; | |
19659 | } | |
19660 | ||
19661 | ||
c32bde28 | 19662 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19663 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19664 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19665 | int result; | |
19666 | PyObject * obj0 = 0 ; | |
19667 | char *kwnames[] = { | |
19668 | (char *) "self", NULL | |
19669 | }; | |
19670 | ||
19671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19674 | { |
19675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19676 | result = (int)(arg1)->IsControl(); | |
19677 | ||
19678 | wxPyEndAllowThreads(__tstate); | |
19679 | if (PyErr_Occurred()) SWIG_fail; | |
19680 | } | |
093d3ff1 | 19681 | { |
32fe5131 | 19682 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 19683 | } |
d14a1e28 RD |
19684 | return resultobj; |
19685 | fail: | |
19686 | return NULL; | |
19687 | } | |
19688 | ||
19689 | ||
c32bde28 | 19690 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19691 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19692 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19693 | int result; | |
19694 | PyObject * obj0 = 0 ; | |
19695 | char *kwnames[] = { | |
19696 | (char *) "self", NULL | |
19697 | }; | |
19698 | ||
19699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19700 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19701 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19702 | { |
19703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19704 | result = (int)(arg1)->IsSeparator(); | |
19705 | ||
19706 | wxPyEndAllowThreads(__tstate); | |
19707 | if (PyErr_Occurred()) SWIG_fail; | |
19708 | } | |
093d3ff1 | 19709 | { |
32fe5131 | 19710 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 19711 | } |
d14a1e28 RD |
19712 | return resultobj; |
19713 | fail: | |
19714 | return NULL; | |
19715 | } | |
19716 | ||
19717 | ||
c32bde28 | 19718 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19719 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19720 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19721 | int result; | |
19722 | PyObject * obj0 = 0 ; | |
19723 | char *kwnames[] = { | |
19724 | (char *) "self", NULL | |
19725 | }; | |
19726 | ||
19727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19728 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19729 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19730 | { |
19731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19732 | result = (int)(arg1)->GetStyle(); | |
19733 | ||
19734 | wxPyEndAllowThreads(__tstate); | |
19735 | if (PyErr_Occurred()) SWIG_fail; | |
19736 | } | |
093d3ff1 | 19737 | { |
32fe5131 | 19738 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 19739 | } |
d14a1e28 RD |
19740 | return resultobj; |
19741 | fail: | |
19742 | return NULL; | |
19743 | } | |
19744 | ||
19745 | ||
c32bde28 | 19746 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19747 | PyObject *resultobj = NULL; |
d14a1e28 | 19748 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
093d3ff1 | 19749 | wxItemKind result; |
d14a1e28 RD |
19750 | PyObject * obj0 = 0 ; |
19751 | char *kwnames[] = { | |
19752 | (char *) "self", NULL | |
19753 | }; | |
19754 | ||
19755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19756 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19757 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19758 | { |
19759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 19760 | result = (wxItemKind)(arg1)->GetKind(); |
d14a1e28 RD |
19761 | |
19762 | wxPyEndAllowThreads(__tstate); | |
19763 | if (PyErr_Occurred()) SWIG_fail; | |
19764 | } | |
093d3ff1 | 19765 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
19766 | return resultobj; |
19767 | fail: | |
19768 | return NULL; | |
19769 | } | |
19770 | ||
19771 | ||
c32bde28 | 19772 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19773 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19774 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19775 | bool result; | |
19776 | PyObject * obj0 = 0 ; | |
19777 | char *kwnames[] = { | |
19778 | (char *) "self", NULL | |
19779 | }; | |
19780 | ||
19781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19782 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19783 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19784 | { |
19785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19786 | result = (bool)(arg1)->IsEnabled(); | |
19787 | ||
19788 | wxPyEndAllowThreads(__tstate); | |
19789 | if (PyErr_Occurred()) SWIG_fail; | |
19790 | } | |
4f89f6a3 RD |
19791 | { |
19792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19793 | } | |
d14a1e28 RD |
19794 | return resultobj; |
19795 | fail: | |
19796 | return NULL; | |
19797 | } | |
19798 | ||
19799 | ||
c32bde28 | 19800 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19801 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19802 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19803 | bool result; | |
19804 | PyObject * obj0 = 0 ; | |
19805 | char *kwnames[] = { | |
19806 | (char *) "self", NULL | |
19807 | }; | |
19808 | ||
19809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19812 | { |
19813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19814 | result = (bool)(arg1)->IsToggled(); | |
19815 | ||
19816 | wxPyEndAllowThreads(__tstate); | |
19817 | if (PyErr_Occurred()) SWIG_fail; | |
19818 | } | |
4f89f6a3 RD |
19819 | { |
19820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19821 | } | |
d14a1e28 RD |
19822 | return resultobj; |
19823 | fail: | |
19824 | return NULL; | |
19825 | } | |
19826 | ||
19827 | ||
c32bde28 | 19828 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19829 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19830 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19831 | bool result; | |
19832 | PyObject * obj0 = 0 ; | |
19833 | char *kwnames[] = { | |
19834 | (char *) "self", NULL | |
19835 | }; | |
19836 | ||
19837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19840 | { |
19841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19842 | result = (bool)(arg1)->CanBeToggled(); | |
19843 | ||
19844 | wxPyEndAllowThreads(__tstate); | |
19845 | if (PyErr_Occurred()) SWIG_fail; | |
19846 | } | |
4f89f6a3 RD |
19847 | { |
19848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19849 | } | |
d14a1e28 RD |
19850 | return resultobj; |
19851 | fail: | |
19852 | return NULL; | |
19853 | } | |
19854 | ||
19855 | ||
c32bde28 | 19856 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19857 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19858 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19859 | wxBitmap *result; | |
19860 | PyObject * obj0 = 0 ; | |
19861 | char *kwnames[] = { | |
19862 | (char *) "self", NULL | |
19863 | }; | |
19864 | ||
19865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19868 | { |
19869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19870 | { | |
19871 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
19872 | result = (wxBitmap *) &_result_ref; | |
19873 | } | |
19874 | ||
19875 | wxPyEndAllowThreads(__tstate); | |
19876 | if (PyErr_Occurred()) SWIG_fail; | |
19877 | } | |
4276dc52 RD |
19878 | { |
19879 | wxBitmap* resultptr = new wxBitmap(*result); | |
19880 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
19881 | } | |
d14a1e28 RD |
19882 | return resultobj; |
19883 | fail: | |
19884 | return NULL; | |
19885 | } | |
19886 | ||
19887 | ||
c32bde28 | 19888 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19889 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19890 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19891 | wxBitmap *result; | |
19892 | PyObject * obj0 = 0 ; | |
19893 | char *kwnames[] = { | |
19894 | (char *) "self", NULL | |
19895 | }; | |
19896 | ||
19897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19898 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19899 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19900 | { |
19901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19902 | { | |
19903 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
19904 | result = (wxBitmap *) &_result_ref; | |
19905 | } | |
19906 | ||
19907 | wxPyEndAllowThreads(__tstate); | |
19908 | if (PyErr_Occurred()) SWIG_fail; | |
19909 | } | |
4276dc52 RD |
19910 | { |
19911 | wxBitmap* resultptr = new wxBitmap(*result); | |
19912 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
19913 | } | |
d14a1e28 RD |
19914 | return resultobj; |
19915 | fail: | |
19916 | return NULL; | |
19917 | } | |
19918 | ||
19919 | ||
c32bde28 | 19920 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19921 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19922 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19923 | wxBitmap result; | |
19924 | PyObject * obj0 = 0 ; | |
19925 | char *kwnames[] = { | |
19926 | (char *) "self", NULL | |
19927 | }; | |
19928 | ||
19929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19930 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19931 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19932 | { |
19933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19934 | result = (arg1)->GetBitmap(); | |
19935 | ||
19936 | wxPyEndAllowThreads(__tstate); | |
19937 | if (PyErr_Occurred()) SWIG_fail; | |
19938 | } | |
19939 | { | |
19940 | wxBitmap * resultptr; | |
32fe5131 | 19941 | resultptr = new wxBitmap(static_cast<wxBitmap & >(result)); |
15afbcd0 | 19942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
19943 | } |
19944 | return resultobj; | |
19945 | fail: | |
19946 | return NULL; | |
19947 | } | |
19948 | ||
19949 | ||
c32bde28 | 19950 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19951 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19952 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19953 | wxString result; | |
19954 | PyObject * obj0 = 0 ; | |
19955 | char *kwnames[] = { | |
19956 | (char *) "self", NULL | |
19957 | }; | |
19958 | ||
19959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19962 | { |
19963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19964 | result = (arg1)->GetLabel(); | |
19965 | ||
19966 | wxPyEndAllowThreads(__tstate); | |
19967 | if (PyErr_Occurred()) SWIG_fail; | |
19968 | } | |
19969 | { | |
19970 | #if wxUSE_UNICODE | |
19971 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19972 | #else | |
19973 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19974 | #endif | |
19975 | } | |
19976 | return resultobj; | |
19977 | fail: | |
19978 | return NULL; | |
19979 | } | |
19980 | ||
19981 | ||
c32bde28 | 19982 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 19983 | PyObject *resultobj = NULL; |
d14a1e28 RD |
19984 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
19985 | wxString result; | |
19986 | PyObject * obj0 = 0 ; | |
19987 | char *kwnames[] = { | |
19988 | (char *) "self", NULL | |
19989 | }; | |
19990 | ||
19991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
19992 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
19993 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
19994 | { |
19995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19996 | result = (arg1)->GetShortHelp(); | |
19997 | ||
19998 | wxPyEndAllowThreads(__tstate); | |
19999 | if (PyErr_Occurred()) SWIG_fail; | |
20000 | } | |
20001 | { | |
20002 | #if wxUSE_UNICODE | |
20003 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20004 | #else | |
20005 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20006 | #endif | |
20007 | } | |
20008 | return resultobj; | |
20009 | fail: | |
20010 | return NULL; | |
20011 | } | |
20012 | ||
20013 | ||
c32bde28 | 20014 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20015 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20016 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20017 | wxString result; | |
20018 | PyObject * obj0 = 0 ; | |
20019 | char *kwnames[] = { | |
20020 | (char *) "self", NULL | |
20021 | }; | |
20022 | ||
20023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20026 | { |
20027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20028 | result = (arg1)->GetLongHelp(); | |
20029 | ||
20030 | wxPyEndAllowThreads(__tstate); | |
20031 | if (PyErr_Occurred()) SWIG_fail; | |
20032 | } | |
20033 | { | |
20034 | #if wxUSE_UNICODE | |
20035 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20036 | #else | |
20037 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20038 | #endif | |
20039 | } | |
20040 | return resultobj; | |
20041 | fail: | |
20042 | return NULL; | |
20043 | } | |
20044 | ||
20045 | ||
c32bde28 | 20046 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20047 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20048 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20049 | bool arg2 ; | |
20050 | bool result; | |
20051 | PyObject * obj0 = 0 ; | |
20052 | PyObject * obj1 = 0 ; | |
20053 | char *kwnames[] = { | |
20054 | (char *) "self",(char *) "enable", NULL | |
20055 | }; | |
20056 | ||
20057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20058 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20059 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20060 | { | |
32fe5131 | 20061 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
20062 | if (SWIG_arg_fail(2)) SWIG_fail; |
20063 | } | |
d14a1e28 RD |
20064 | { |
20065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20066 | result = (bool)(arg1)->Enable(arg2); | |
20067 | ||
20068 | wxPyEndAllowThreads(__tstate); | |
20069 | if (PyErr_Occurred()) SWIG_fail; | |
20070 | } | |
4f89f6a3 RD |
20071 | { |
20072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20073 | } | |
d14a1e28 RD |
20074 | return resultobj; |
20075 | fail: | |
20076 | return NULL; | |
20077 | } | |
20078 | ||
20079 | ||
c32bde28 | 20080 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20081 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20082 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20083 | PyObject * obj0 = 0 ; | |
20084 | char *kwnames[] = { | |
20085 | (char *) "self", NULL | |
20086 | }; | |
20087 | ||
20088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20089 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20090 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20091 | { |
20092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20093 | (arg1)->Toggle(); | |
20094 | ||
20095 | wxPyEndAllowThreads(__tstate); | |
20096 | if (PyErr_Occurred()) SWIG_fail; | |
20097 | } | |
20098 | Py_INCREF(Py_None); resultobj = Py_None; | |
20099 | return resultobj; | |
20100 | fail: | |
20101 | return NULL; | |
20102 | } | |
20103 | ||
20104 | ||
c32bde28 | 20105 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20106 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20107 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20108 | bool arg2 ; | |
20109 | bool result; | |
20110 | PyObject * obj0 = 0 ; | |
20111 | PyObject * obj1 = 0 ; | |
20112 | char *kwnames[] = { | |
20113 | (char *) "self",(char *) "toggle", NULL | |
20114 | }; | |
20115 | ||
20116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20117 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20118 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20119 | { | |
32fe5131 | 20120 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
20121 | if (SWIG_arg_fail(2)) SWIG_fail; |
20122 | } | |
d14a1e28 RD |
20123 | { |
20124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20125 | result = (bool)(arg1)->SetToggle(arg2); | |
20126 | ||
20127 | wxPyEndAllowThreads(__tstate); | |
20128 | if (PyErr_Occurred()) SWIG_fail; | |
20129 | } | |
4f89f6a3 RD |
20130 | { |
20131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20132 | } | |
d14a1e28 RD |
20133 | return resultobj; |
20134 | fail: | |
20135 | return NULL; | |
20136 | } | |
20137 | ||
20138 | ||
c32bde28 | 20139 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20140 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20141 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20142 | wxString *arg2 = 0 ; | |
20143 | bool result; | |
ae8162c8 | 20144 | bool temp2 = false ; |
d14a1e28 RD |
20145 | PyObject * obj0 = 0 ; |
20146 | PyObject * obj1 = 0 ; | |
20147 | char *kwnames[] = { | |
20148 | (char *) "self",(char *) "help", NULL | |
20149 | }; | |
20150 | ||
20151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20152 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20153 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20154 | { |
20155 | arg2 = wxString_in_helper(obj1); | |
20156 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20157 | temp2 = true; |
d14a1e28 RD |
20158 | } |
20159 | { | |
20160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20161 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
20162 | ||
20163 | wxPyEndAllowThreads(__tstate); | |
20164 | if (PyErr_Occurred()) SWIG_fail; | |
20165 | } | |
4f89f6a3 RD |
20166 | { |
20167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20168 | } | |
d14a1e28 RD |
20169 | { |
20170 | if (temp2) | |
20171 | delete arg2; | |
20172 | } | |
20173 | return resultobj; | |
20174 | fail: | |
20175 | { | |
20176 | if (temp2) | |
20177 | delete arg2; | |
20178 | } | |
20179 | return NULL; | |
20180 | } | |
20181 | ||
20182 | ||
c32bde28 | 20183 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20184 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20185 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20186 | wxString *arg2 = 0 ; | |
20187 | bool result; | |
ae8162c8 | 20188 | bool temp2 = false ; |
d14a1e28 RD |
20189 | PyObject * obj0 = 0 ; |
20190 | PyObject * obj1 = 0 ; | |
20191 | char *kwnames[] = { | |
20192 | (char *) "self",(char *) "help", NULL | |
20193 | }; | |
20194 | ||
20195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20196 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20197 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20198 | { |
20199 | arg2 = wxString_in_helper(obj1); | |
20200 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20201 | temp2 = true; |
d14a1e28 RD |
20202 | } |
20203 | { | |
20204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20205 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
20206 | ||
20207 | wxPyEndAllowThreads(__tstate); | |
20208 | if (PyErr_Occurred()) SWIG_fail; | |
20209 | } | |
4f89f6a3 RD |
20210 | { |
20211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20212 | } | |
d14a1e28 RD |
20213 | { |
20214 | if (temp2) | |
20215 | delete arg2; | |
20216 | } | |
20217 | return resultobj; | |
20218 | fail: | |
20219 | { | |
20220 | if (temp2) | |
20221 | delete arg2; | |
20222 | } | |
20223 | return NULL; | |
20224 | } | |
20225 | ||
20226 | ||
c32bde28 | 20227 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20228 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20229 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20230 | wxBitmap *arg2 = 0 ; | |
20231 | PyObject * obj0 = 0 ; | |
20232 | PyObject * obj1 = 0 ; | |
20233 | char *kwnames[] = { | |
20234 | (char *) "self",(char *) "bmp", NULL | |
20235 | }; | |
20236 | ||
20237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20240 | { | |
20241 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
20242 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20243 | if (arg2 == NULL) { | |
20244 | SWIG_null_ref("wxBitmap"); | |
20245 | } | |
20246 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
20247 | } |
20248 | { | |
20249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20250 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
20251 | ||
20252 | wxPyEndAllowThreads(__tstate); | |
20253 | if (PyErr_Occurred()) SWIG_fail; | |
20254 | } | |
20255 | Py_INCREF(Py_None); resultobj = Py_None; | |
20256 | return resultobj; | |
20257 | fail: | |
20258 | return NULL; | |
20259 | } | |
20260 | ||
20261 | ||
c32bde28 | 20262 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20263 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20264 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20265 | wxBitmap *arg2 = 0 ; | |
20266 | PyObject * obj0 = 0 ; | |
20267 | PyObject * obj1 = 0 ; | |
20268 | char *kwnames[] = { | |
20269 | (char *) "self",(char *) "bmp", NULL | |
20270 | }; | |
20271 | ||
20272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20273 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20274 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20275 | { | |
20276 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
20277 | if (SWIG_arg_fail(2)) SWIG_fail; | |
20278 | if (arg2 == NULL) { | |
20279 | SWIG_null_ref("wxBitmap"); | |
20280 | } | |
20281 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
20282 | } |
20283 | { | |
20284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20285 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
20286 | ||
20287 | wxPyEndAllowThreads(__tstate); | |
20288 | if (PyErr_Occurred()) SWIG_fail; | |
20289 | } | |
20290 | Py_INCREF(Py_None); resultobj = Py_None; | |
20291 | return resultobj; | |
20292 | fail: | |
20293 | return NULL; | |
20294 | } | |
20295 | ||
20296 | ||
c32bde28 | 20297 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20298 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20299 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20300 | wxString *arg2 = 0 ; | |
ae8162c8 | 20301 | bool temp2 = false ; |
d14a1e28 RD |
20302 | PyObject * obj0 = 0 ; |
20303 | PyObject * obj1 = 0 ; | |
20304 | char *kwnames[] = { | |
20305 | (char *) "self",(char *) "label", NULL | |
20306 | }; | |
20307 | ||
20308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20309 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20310 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20311 | { |
20312 | arg2 = wxString_in_helper(obj1); | |
20313 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 20314 | temp2 = true; |
d14a1e28 RD |
20315 | } |
20316 | { | |
20317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20318 | (arg1)->SetLabel((wxString const &)*arg2); | |
20319 | ||
20320 | wxPyEndAllowThreads(__tstate); | |
20321 | if (PyErr_Occurred()) SWIG_fail; | |
20322 | } | |
20323 | Py_INCREF(Py_None); resultobj = Py_None; | |
20324 | { | |
20325 | if (temp2) | |
20326 | delete arg2; | |
20327 | } | |
20328 | return resultobj; | |
20329 | fail: | |
20330 | { | |
20331 | if (temp2) | |
20332 | delete arg2; | |
20333 | } | |
20334 | return NULL; | |
20335 | } | |
20336 | ||
20337 | ||
c32bde28 | 20338 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20339 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20340 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20341 | PyObject * obj0 = 0 ; | |
20342 | char *kwnames[] = { | |
20343 | (char *) "self", NULL | |
20344 | }; | |
20345 | ||
20346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20347 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20348 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20349 | { |
20350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20351 | (arg1)->Detach(); | |
20352 | ||
20353 | wxPyEndAllowThreads(__tstate); | |
20354 | if (PyErr_Occurred()) SWIG_fail; | |
20355 | } | |
20356 | Py_INCREF(Py_None); resultobj = Py_None; | |
20357 | return resultobj; | |
20358 | fail: | |
20359 | return NULL; | |
20360 | } | |
20361 | ||
20362 | ||
c32bde28 | 20363 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20364 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20365 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20366 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
20367 | PyObject * obj0 = 0 ; | |
20368 | PyObject * obj1 = 0 ; | |
20369 | char *kwnames[] = { | |
20370 | (char *) "self",(char *) "tbar", NULL | |
20371 | }; | |
20372 | ||
20373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20374 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20375 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20376 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); | |
20377 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
20378 | { |
20379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20380 | (arg1)->Attach(arg2); | |
20381 | ||
20382 | wxPyEndAllowThreads(__tstate); | |
20383 | if (PyErr_Occurred()) SWIG_fail; | |
20384 | } | |
20385 | Py_INCREF(Py_None); resultobj = Py_None; | |
20386 | return resultobj; | |
20387 | fail: | |
20388 | return NULL; | |
20389 | } | |
20390 | ||
20391 | ||
c32bde28 | 20392 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20393 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20394 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20395 | PyObject *result; | |
20396 | PyObject * obj0 = 0 ; | |
20397 | char *kwnames[] = { | |
20398 | (char *) "self", NULL | |
20399 | }; | |
20400 | ||
20401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20402 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20403 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20404 | { |
20405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20406 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
20407 | ||
20408 | wxPyEndAllowThreads(__tstate); | |
20409 | if (PyErr_Occurred()) SWIG_fail; | |
20410 | } | |
20411 | resultobj = result; | |
20412 | return resultobj; | |
20413 | fail: | |
20414 | return NULL; | |
20415 | } | |
20416 | ||
20417 | ||
c32bde28 | 20418 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20419 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20420 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; |
20421 | PyObject *arg2 = (PyObject *) 0 ; | |
20422 | PyObject * obj0 = 0 ; | |
20423 | PyObject * obj1 = 0 ; | |
20424 | char *kwnames[] = { | |
20425 | (char *) "self",(char *) "clientData", NULL | |
20426 | }; | |
20427 | ||
20428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); |
20430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20431 | arg2 = obj1; |
20432 | { | |
20433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20434 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
20435 | ||
20436 | wxPyEndAllowThreads(__tstate); | |
20437 | if (PyErr_Occurred()) SWIG_fail; | |
20438 | } | |
20439 | Py_INCREF(Py_None); resultobj = Py_None; | |
20440 | return resultobj; | |
20441 | fail: | |
20442 | return NULL; | |
20443 | } | |
20444 | ||
20445 | ||
c32bde28 | 20446 | static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
20447 | PyObject *obj; |
20448 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20449 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
20450 | Py_INCREF(obj); | |
20451 | return Py_BuildValue((char *)""); | |
20452 | } | |
c32bde28 | 20453 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20454 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20455 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20456 | int arg2 ; | |
20457 | wxString *arg3 = 0 ; | |
20458 | wxBitmap *arg4 = 0 ; | |
20459 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
20460 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
093d3ff1 | 20461 | wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
20462 | wxString const &arg7_defvalue = wxPyEmptyString ; |
20463 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20464 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
20465 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20466 | PyObject *arg9 = (PyObject *) NULL ; | |
20467 | wxToolBarToolBase *result; | |
ae8162c8 RD |
20468 | bool temp3 = false ; |
20469 | bool temp7 = false ; | |
20470 | bool temp8 = false ; | |
d14a1e28 | 20471 | PyObject * obj0 = 0 ; |
994141e6 | 20472 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20473 | PyObject * obj2 = 0 ; |
20474 | PyObject * obj3 = 0 ; | |
20475 | PyObject * obj4 = 0 ; | |
994141e6 | 20476 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20477 | PyObject * obj6 = 0 ; |
20478 | PyObject * obj7 = 0 ; | |
20479 | PyObject * obj8 = 0 ; | |
20480 | char *kwnames[] = { | |
20481 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
20482 | }; | |
20483 | ||
994141e6 | 20484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
20485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20487 | { | |
32fe5131 | 20488 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20489 | if (SWIG_arg_fail(2)) SWIG_fail; |
20490 | } | |
d14a1e28 RD |
20491 | { |
20492 | arg3 = wxString_in_helper(obj2); | |
20493 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 20494 | temp3 = true; |
d14a1e28 | 20495 | } |
093d3ff1 RD |
20496 | { |
20497 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
20498 | if (SWIG_arg_fail(4)) SWIG_fail; | |
20499 | if (arg4 == NULL) { | |
20500 | SWIG_null_ref("wxBitmap"); | |
20501 | } | |
20502 | if (SWIG_arg_fail(4)) SWIG_fail; | |
d14a1e28 RD |
20503 | } |
20504 | if (obj4) { | |
093d3ff1 RD |
20505 | { |
20506 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
20507 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20508 | if (arg5 == NULL) { | |
20509 | SWIG_null_ref("wxBitmap"); | |
20510 | } | |
20511 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
20512 | } |
20513 | } | |
994141e6 | 20514 | if (obj5) { |
093d3ff1 | 20515 | { |
32fe5131 | 20516 | arg6 = static_cast<wxItemKind >(SWIG_As_int(obj5)); |
093d3ff1 RD |
20517 | if (SWIG_arg_fail(6)) SWIG_fail; |
20518 | } | |
994141e6 | 20519 | } |
d14a1e28 RD |
20520 | if (obj6) { |
20521 | { | |
20522 | arg7 = wxString_in_helper(obj6); | |
20523 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 20524 | temp7 = true; |
d14a1e28 RD |
20525 | } |
20526 | } | |
20527 | if (obj7) { | |
20528 | { | |
20529 | arg8 = wxString_in_helper(obj7); | |
20530 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 20531 | temp8 = true; |
d14a1e28 RD |
20532 | } |
20533 | } | |
20534 | if (obj8) { | |
20535 | arg9 = obj8; | |
20536 | } | |
20537 | { | |
20538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20539 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); |
d14a1e28 RD |
20540 | |
20541 | wxPyEndAllowThreads(__tstate); | |
20542 | if (PyErr_Occurred()) SWIG_fail; | |
20543 | } | |
20544 | { | |
7e08d4ef | 20545 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
20546 | } |
20547 | { | |
20548 | if (temp3) | |
20549 | delete arg3; | |
20550 | } | |
20551 | { | |
20552 | if (temp7) | |
20553 | delete arg7; | |
20554 | } | |
20555 | { | |
20556 | if (temp8) | |
20557 | delete arg8; | |
20558 | } | |
20559 | return resultobj; | |
20560 | fail: | |
20561 | { | |
20562 | if (temp3) | |
20563 | delete arg3; | |
20564 | } | |
20565 | { | |
20566 | if (temp7) | |
20567 | delete arg7; | |
20568 | } | |
20569 | { | |
20570 | if (temp8) | |
20571 | delete arg8; | |
20572 | } | |
20573 | return NULL; | |
20574 | } | |
20575 | ||
20576 | ||
c32bde28 | 20577 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20578 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20579 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20580 | size_t arg2 ; | |
20581 | int arg3 ; | |
20582 | wxString *arg4 = 0 ; | |
20583 | wxBitmap *arg5 = 0 ; | |
20584 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
20585 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
093d3ff1 | 20586 | wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ; |
d14a1e28 RD |
20587 | wxString const &arg8_defvalue = wxPyEmptyString ; |
20588 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20589 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
20590 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
20591 | PyObject *arg10 = (PyObject *) NULL ; | |
20592 | wxToolBarToolBase *result; | |
ae8162c8 RD |
20593 | bool temp4 = false ; |
20594 | bool temp8 = false ; | |
20595 | bool temp9 = false ; | |
d14a1e28 RD |
20596 | PyObject * obj0 = 0 ; |
20597 | PyObject * obj1 = 0 ; | |
994141e6 | 20598 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20599 | PyObject * obj3 = 0 ; |
20600 | PyObject * obj4 = 0 ; | |
20601 | PyObject * obj5 = 0 ; | |
994141e6 | 20602 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
20603 | PyObject * obj7 = 0 ; |
20604 | PyObject * obj8 = 0 ; | |
20605 | PyObject * obj9 = 0 ; | |
20606 | char *kwnames[] = { | |
20607 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
20608 | }; | |
20609 | ||
994141e6 | 20610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
093d3ff1 RD |
20611 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20612 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20613 | { | |
32fe5131 | 20614 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
20615 | if (SWIG_arg_fail(2)) SWIG_fail; |
20616 | } | |
20617 | { | |
32fe5131 | 20618 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
20619 | if (SWIG_arg_fail(3)) SWIG_fail; |
20620 | } | |
d14a1e28 RD |
20621 | { |
20622 | arg4 = wxString_in_helper(obj3); | |
20623 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 20624 | temp4 = true; |
d14a1e28 | 20625 | } |
093d3ff1 RD |
20626 | { |
20627 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
20628 | if (SWIG_arg_fail(5)) SWIG_fail; | |
20629 | if (arg5 == NULL) { | |
20630 | SWIG_null_ref("wxBitmap"); | |
20631 | } | |
20632 | if (SWIG_arg_fail(5)) SWIG_fail; | |
d14a1e28 RD |
20633 | } |
20634 | if (obj5) { | |
093d3ff1 RD |
20635 | { |
20636 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
20637 | if (SWIG_arg_fail(6)) SWIG_fail; | |
20638 | if (arg6 == NULL) { | |
20639 | SWIG_null_ref("wxBitmap"); | |
20640 | } | |
20641 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
20642 | } |
20643 | } | |
994141e6 | 20644 | if (obj6) { |
093d3ff1 | 20645 | { |
32fe5131 | 20646 | arg7 = static_cast<wxItemKind >(SWIG_As_int(obj6)); |
093d3ff1 RD |
20647 | if (SWIG_arg_fail(7)) SWIG_fail; |
20648 | } | |
994141e6 | 20649 | } |
d14a1e28 RD |
20650 | if (obj7) { |
20651 | { | |
20652 | arg8 = wxString_in_helper(obj7); | |
20653 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 20654 | temp8 = true; |
d14a1e28 RD |
20655 | } |
20656 | } | |
20657 | if (obj8) { | |
20658 | { | |
20659 | arg9 = wxString_in_helper(obj8); | |
20660 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 20661 | temp9 = true; |
d14a1e28 RD |
20662 | } |
20663 | } | |
20664 | if (obj9) { | |
20665 | arg10 = obj9; | |
20666 | } | |
20667 | { | |
20668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 20669 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); |
d14a1e28 RD |
20670 | |
20671 | wxPyEndAllowThreads(__tstate); | |
20672 | if (PyErr_Occurred()) SWIG_fail; | |
20673 | } | |
20674 | { | |
7e08d4ef | 20675 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
20676 | } |
20677 | { | |
20678 | if (temp4) | |
20679 | delete arg4; | |
20680 | } | |
20681 | { | |
20682 | if (temp8) | |
20683 | delete arg8; | |
20684 | } | |
20685 | { | |
20686 | if (temp9) | |
20687 | delete arg9; | |
20688 | } | |
20689 | return resultobj; | |
20690 | fail: | |
20691 | { | |
20692 | if (temp4) | |
20693 | delete arg4; | |
20694 | } | |
20695 | { | |
20696 | if (temp8) | |
20697 | delete arg8; | |
20698 | } | |
20699 | { | |
20700 | if (temp9) | |
20701 | delete arg9; | |
20702 | } | |
20703 | return NULL; | |
20704 | } | |
20705 | ||
20706 | ||
c32bde28 | 20707 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20708 | PyObject *resultobj = NULL; |
3a04f143 RD |
20709 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20710 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
20711 | wxToolBarToolBase *result; | |
20712 | PyObject * obj0 = 0 ; | |
20713 | PyObject * obj1 = 0 ; | |
20714 | char *kwnames[] = { | |
20715 | (char *) "self",(char *) "tool", NULL | |
20716 | }; | |
20717 | ||
20718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20719 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20720 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20721 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
20722 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3a04f143 RD |
20723 | { |
20724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20725 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
20726 | ||
20727 | wxPyEndAllowThreads(__tstate); | |
20728 | if (PyErr_Occurred()) SWIG_fail; | |
20729 | } | |
20730 | { | |
7e08d4ef | 20731 | resultobj = wxPyMake_wxObject(result, (bool)0); |
3a04f143 RD |
20732 | } |
20733 | return resultobj; | |
20734 | fail: | |
20735 | return NULL; | |
20736 | } | |
20737 | ||
20738 | ||
c32bde28 | 20739 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20740 | PyObject *resultobj = NULL; |
3a04f143 RD |
20741 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20742 | size_t arg2 ; | |
20743 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
20744 | wxToolBarToolBase *result; | |
20745 | PyObject * obj0 = 0 ; | |
20746 | PyObject * obj1 = 0 ; | |
20747 | PyObject * obj2 = 0 ; | |
20748 | char *kwnames[] = { | |
20749 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
20750 | }; | |
20751 | ||
20752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20753 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20754 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20755 | { | |
32fe5131 | 20756 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
20757 | if (SWIG_arg_fail(2)) SWIG_fail; |
20758 | } | |
20759 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxToolBarToolBase, SWIG_POINTER_EXCEPTION | 0); | |
20760 | if (SWIG_arg_fail(3)) SWIG_fail; | |
3a04f143 RD |
20761 | { |
20762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20763 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
20764 | ||
20765 | wxPyEndAllowThreads(__tstate); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | } | |
20768 | { | |
7e08d4ef | 20769 | resultobj = wxPyMake_wxObject(result, (bool)0); |
3a04f143 RD |
20770 | } |
20771 | return resultobj; | |
20772 | fail: | |
20773 | return NULL; | |
20774 | } | |
20775 | ||
20776 | ||
c32bde28 | 20777 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20778 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20779 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20780 | wxControl *arg2 = (wxControl *) 0 ; | |
20781 | wxToolBarToolBase *result; | |
20782 | PyObject * obj0 = 0 ; | |
20783 | PyObject * obj1 = 0 ; | |
20784 | char *kwnames[] = { | |
20785 | (char *) "self",(char *) "control", NULL | |
20786 | }; | |
20787 | ||
20788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20789 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20790 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20791 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
20792 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
20793 | { |
20794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20795 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
20796 | ||
20797 | wxPyEndAllowThreads(__tstate); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | } | |
20800 | { | |
7e08d4ef | 20801 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
20802 | } |
20803 | return resultobj; | |
20804 | fail: | |
20805 | return NULL; | |
20806 | } | |
20807 | ||
20808 | ||
c32bde28 | 20809 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20810 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20811 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20812 | size_t arg2 ; | |
20813 | wxControl *arg3 = (wxControl *) 0 ; | |
20814 | wxToolBarToolBase *result; | |
20815 | PyObject * obj0 = 0 ; | |
20816 | PyObject * obj1 = 0 ; | |
20817 | PyObject * obj2 = 0 ; | |
20818 | char *kwnames[] = { | |
20819 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
20820 | }; | |
20821 | ||
20822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
20823 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20824 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20825 | { | |
32fe5131 | 20826 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
20827 | if (SWIG_arg_fail(2)) SWIG_fail; |
20828 | } | |
20829 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxControl, SWIG_POINTER_EXCEPTION | 0); | |
20830 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
20831 | { |
20832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20833 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
20834 | ||
20835 | wxPyEndAllowThreads(__tstate); | |
20836 | if (PyErr_Occurred()) SWIG_fail; | |
20837 | } | |
20838 | { | |
7e08d4ef | 20839 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
20840 | } |
20841 | return resultobj; | |
20842 | fail: | |
20843 | return NULL; | |
20844 | } | |
20845 | ||
20846 | ||
c32bde28 | 20847 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20848 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20849 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20850 | int arg2 ; | |
20851 | wxControl *result; | |
20852 | PyObject * obj0 = 0 ; | |
994141e6 | 20853 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20854 | char *kwnames[] = { |
20855 | (char *) "self",(char *) "id", NULL | |
20856 | }; | |
20857 | ||
994141e6 | 20858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20859 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20860 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20861 | { | |
32fe5131 | 20862 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20863 | if (SWIG_arg_fail(2)) SWIG_fail; |
20864 | } | |
d14a1e28 RD |
20865 | { |
20866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20867 | result = (wxControl *)(arg1)->FindControl(arg2); | |
20868 | ||
20869 | wxPyEndAllowThreads(__tstate); | |
20870 | if (PyErr_Occurred()) SWIG_fail; | |
20871 | } | |
20872 | { | |
412d302d | 20873 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20874 | } |
20875 | return resultobj; | |
20876 | fail: | |
20877 | return NULL; | |
20878 | } | |
20879 | ||
20880 | ||
c32bde28 | 20881 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20882 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20883 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20884 | wxToolBarToolBase *result; | |
20885 | PyObject * obj0 = 0 ; | |
20886 | char *kwnames[] = { | |
20887 | (char *) "self", NULL | |
20888 | }; | |
20889 | ||
20890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
20891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
20893 | { |
20894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20895 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
20896 | ||
20897 | wxPyEndAllowThreads(__tstate); | |
20898 | if (PyErr_Occurred()) SWIG_fail; | |
20899 | } | |
20900 | { | |
7e08d4ef | 20901 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
20902 | } |
20903 | return resultobj; | |
20904 | fail: | |
20905 | return NULL; | |
20906 | } | |
20907 | ||
20908 | ||
c32bde28 | 20909 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20910 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20911 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20912 | size_t arg2 ; | |
20913 | wxToolBarToolBase *result; | |
20914 | PyObject * obj0 = 0 ; | |
20915 | PyObject * obj1 = 0 ; | |
20916 | char *kwnames[] = { | |
20917 | (char *) "self",(char *) "pos", NULL | |
20918 | }; | |
20919 | ||
20920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20921 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20922 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20923 | { | |
32fe5131 | 20924 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
20925 | if (SWIG_arg_fail(2)) SWIG_fail; |
20926 | } | |
d14a1e28 RD |
20927 | { |
20928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20929 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
20930 | ||
20931 | wxPyEndAllowThreads(__tstate); | |
20932 | if (PyErr_Occurred()) SWIG_fail; | |
20933 | } | |
20934 | { | |
7e08d4ef | 20935 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
20936 | } |
20937 | return resultobj; | |
20938 | fail: | |
20939 | return NULL; | |
20940 | } | |
20941 | ||
20942 | ||
c32bde28 | 20943 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20944 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20945 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20946 | int arg2 ; | |
20947 | wxToolBarToolBase *result; | |
20948 | PyObject * obj0 = 0 ; | |
994141e6 | 20949 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20950 | char *kwnames[] = { |
20951 | (char *) "self",(char *) "id", NULL | |
20952 | }; | |
20953 | ||
994141e6 | 20954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
20955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20957 | { | |
32fe5131 | 20958 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
20959 | if (SWIG_arg_fail(2)) SWIG_fail; |
20960 | } | |
d14a1e28 RD |
20961 | { |
20962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20963 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
20964 | ||
20965 | wxPyEndAllowThreads(__tstate); | |
20966 | if (PyErr_Occurred()) SWIG_fail; | |
20967 | } | |
20968 | { | |
7e08d4ef | 20969 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
20970 | } |
20971 | return resultobj; | |
20972 | fail: | |
20973 | return NULL; | |
20974 | } | |
20975 | ||
20976 | ||
c32bde28 | 20977 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 20978 | PyObject *resultobj = NULL; |
d14a1e28 RD |
20979 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
20980 | size_t arg2 ; | |
20981 | bool result; | |
20982 | PyObject * obj0 = 0 ; | |
20983 | PyObject * obj1 = 0 ; | |
20984 | char *kwnames[] = { | |
20985 | (char *) "self",(char *) "pos", NULL | |
20986 | }; | |
20987 | ||
20988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
20989 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
20990 | if (SWIG_arg_fail(1)) SWIG_fail; | |
20991 | { | |
32fe5131 | 20992 | arg2 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj1)); |
093d3ff1 RD |
20993 | if (SWIG_arg_fail(2)) SWIG_fail; |
20994 | } | |
d14a1e28 RD |
20995 | { |
20996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20997 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
20998 | ||
20999 | wxPyEndAllowThreads(__tstate); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
21001 | } | |
4f89f6a3 RD |
21002 | { |
21003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21004 | } | |
d14a1e28 RD |
21005 | return resultobj; |
21006 | fail: | |
21007 | return NULL; | |
21008 | } | |
21009 | ||
21010 | ||
c32bde28 | 21011 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21012 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21013 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21014 | int arg2 ; | |
21015 | bool result; | |
21016 | PyObject * obj0 = 0 ; | |
994141e6 | 21017 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21018 | char *kwnames[] = { |
21019 | (char *) "self",(char *) "id", NULL | |
21020 | }; | |
21021 | ||
994141e6 | 21022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21023 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21024 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21025 | { | |
32fe5131 | 21026 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21027 | if (SWIG_arg_fail(2)) SWIG_fail; |
21028 | } | |
d14a1e28 RD |
21029 | { |
21030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21031 | result = (bool)(arg1)->DeleteTool(arg2); | |
21032 | ||
21033 | wxPyEndAllowThreads(__tstate); | |
21034 | if (PyErr_Occurred()) SWIG_fail; | |
21035 | } | |
4f89f6a3 RD |
21036 | { |
21037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21038 | } | |
d14a1e28 RD |
21039 | return resultobj; |
21040 | fail: | |
21041 | return NULL; | |
21042 | } | |
21043 | ||
21044 | ||
c32bde28 | 21045 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21046 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21047 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21048 | PyObject * obj0 = 0 ; | |
21049 | char *kwnames[] = { | |
21050 | (char *) "self", NULL | |
21051 | }; | |
21052 | ||
21053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21054 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21055 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21056 | { |
21057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21058 | (arg1)->ClearTools(); | |
21059 | ||
21060 | wxPyEndAllowThreads(__tstate); | |
21061 | if (PyErr_Occurred()) SWIG_fail; | |
21062 | } | |
21063 | Py_INCREF(Py_None); resultobj = Py_None; | |
21064 | return resultobj; | |
21065 | fail: | |
21066 | return NULL; | |
21067 | } | |
21068 | ||
21069 | ||
c32bde28 | 21070 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21071 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21072 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21073 | bool result; | |
21074 | PyObject * obj0 = 0 ; | |
21075 | char *kwnames[] = { | |
21076 | (char *) "self", NULL | |
21077 | }; | |
21078 | ||
21079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21080 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21081 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21082 | { |
21083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21084 | result = (bool)(arg1)->Realize(); | |
21085 | ||
21086 | wxPyEndAllowThreads(__tstate); | |
21087 | if (PyErr_Occurred()) SWIG_fail; | |
21088 | } | |
4f89f6a3 RD |
21089 | { |
21090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21091 | } | |
d14a1e28 RD |
21092 | return resultobj; |
21093 | fail: | |
21094 | return NULL; | |
21095 | } | |
21096 | ||
21097 | ||
c32bde28 | 21098 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21099 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21100 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21101 | int arg2 ; | |
21102 | bool arg3 ; | |
21103 | PyObject * obj0 = 0 ; | |
994141e6 | 21104 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21105 | PyObject * obj2 = 0 ; |
21106 | char *kwnames[] = { | |
21107 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
21108 | }; | |
21109 | ||
994141e6 | 21110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21111 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21112 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21113 | { | |
32fe5131 | 21114 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21115 | if (SWIG_arg_fail(2)) SWIG_fail; |
21116 | } | |
21117 | { | |
32fe5131 | 21118 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
21119 | if (SWIG_arg_fail(3)) SWIG_fail; |
21120 | } | |
d14a1e28 RD |
21121 | { |
21122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21123 | (arg1)->EnableTool(arg2,arg3); | |
21124 | ||
21125 | wxPyEndAllowThreads(__tstate); | |
21126 | if (PyErr_Occurred()) SWIG_fail; | |
21127 | } | |
21128 | Py_INCREF(Py_None); resultobj = Py_None; | |
21129 | return resultobj; | |
21130 | fail: | |
21131 | return NULL; | |
21132 | } | |
21133 | ||
21134 | ||
c32bde28 | 21135 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21136 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21137 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21138 | int arg2 ; | |
21139 | bool arg3 ; | |
21140 | PyObject * obj0 = 0 ; | |
994141e6 | 21141 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21142 | PyObject * obj2 = 0 ; |
21143 | char *kwnames[] = { | |
21144 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
21145 | }; | |
21146 | ||
994141e6 | 21147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21148 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21149 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21150 | { | |
32fe5131 | 21151 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21152 | if (SWIG_arg_fail(2)) SWIG_fail; |
21153 | } | |
21154 | { | |
32fe5131 | 21155 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
21156 | if (SWIG_arg_fail(3)) SWIG_fail; |
21157 | } | |
d14a1e28 RD |
21158 | { |
21159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21160 | (arg1)->ToggleTool(arg2,arg3); | |
21161 | ||
21162 | wxPyEndAllowThreads(__tstate); | |
21163 | if (PyErr_Occurred()) SWIG_fail; | |
21164 | } | |
21165 | Py_INCREF(Py_None); resultobj = Py_None; | |
21166 | return resultobj; | |
21167 | fail: | |
21168 | return NULL; | |
21169 | } | |
21170 | ||
21171 | ||
c32bde28 | 21172 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21173 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21174 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21175 | int arg2 ; | |
21176 | bool arg3 ; | |
21177 | PyObject * obj0 = 0 ; | |
994141e6 | 21178 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21179 | PyObject * obj2 = 0 ; |
21180 | char *kwnames[] = { | |
21181 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
21182 | }; | |
21183 | ||
994141e6 | 21184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21185 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21186 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21187 | { | |
32fe5131 | 21188 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21189 | if (SWIG_arg_fail(2)) SWIG_fail; |
21190 | } | |
21191 | { | |
32fe5131 | 21192 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
21193 | if (SWIG_arg_fail(3)) SWIG_fail; |
21194 | } | |
d14a1e28 RD |
21195 | { |
21196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21197 | (arg1)->SetToggle(arg2,arg3); | |
21198 | ||
21199 | wxPyEndAllowThreads(__tstate); | |
21200 | if (PyErr_Occurred()) SWIG_fail; | |
21201 | } | |
21202 | Py_INCREF(Py_None); resultobj = Py_None; | |
21203 | return resultobj; | |
21204 | fail: | |
21205 | return NULL; | |
21206 | } | |
21207 | ||
21208 | ||
c32bde28 | 21209 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21210 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21211 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21212 | int arg2 ; | |
21213 | PyObject *result; | |
21214 | PyObject * obj0 = 0 ; | |
994141e6 | 21215 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21216 | char *kwnames[] = { |
21217 | (char *) "self",(char *) "id", NULL | |
21218 | }; | |
21219 | ||
994141e6 | 21220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21221 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21222 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21223 | { | |
32fe5131 | 21224 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21225 | if (SWIG_arg_fail(2)) SWIG_fail; |
21226 | } | |
d14a1e28 RD |
21227 | { |
21228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21229 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
21230 | ||
21231 | wxPyEndAllowThreads(__tstate); | |
21232 | if (PyErr_Occurred()) SWIG_fail; | |
21233 | } | |
21234 | resultobj = result; | |
21235 | return resultobj; | |
21236 | fail: | |
21237 | return NULL; | |
21238 | } | |
21239 | ||
21240 | ||
c32bde28 | 21241 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21242 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21243 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21244 | int arg2 ; | |
21245 | PyObject *arg3 = (PyObject *) 0 ; | |
21246 | PyObject * obj0 = 0 ; | |
994141e6 | 21247 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21248 | PyObject * obj2 = 0 ; |
21249 | char *kwnames[] = { | |
21250 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
21251 | }; | |
21252 | ||
994141e6 | 21253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21254 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21255 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21256 | { | |
32fe5131 | 21257 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21258 | if (SWIG_arg_fail(2)) SWIG_fail; |
21259 | } | |
d14a1e28 RD |
21260 | arg3 = obj2; |
21261 | { | |
21262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21263 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
21264 | ||
21265 | wxPyEndAllowThreads(__tstate); | |
21266 | if (PyErr_Occurred()) SWIG_fail; | |
21267 | } | |
21268 | Py_INCREF(Py_None); resultobj = Py_None; | |
21269 | return resultobj; | |
21270 | fail: | |
21271 | return NULL; | |
21272 | } | |
21273 | ||
21274 | ||
c32bde28 | 21275 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21276 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21277 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21278 | int arg2 ; | |
21279 | int result; | |
21280 | PyObject * obj0 = 0 ; | |
994141e6 | 21281 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21282 | char *kwnames[] = { |
21283 | (char *) "self",(char *) "id", NULL | |
21284 | }; | |
21285 | ||
994141e6 | 21286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21287 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21288 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21289 | { | |
32fe5131 | 21290 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21291 | if (SWIG_arg_fail(2)) SWIG_fail; |
21292 | } | |
d14a1e28 RD |
21293 | { |
21294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21295 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
21296 | ||
21297 | wxPyEndAllowThreads(__tstate); | |
21298 | if (PyErr_Occurred()) SWIG_fail; | |
21299 | } | |
093d3ff1 | 21300 | { |
32fe5131 | 21301 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 21302 | } |
d14a1e28 RD |
21303 | return resultobj; |
21304 | fail: | |
21305 | return NULL; | |
21306 | } | |
21307 | ||
21308 | ||
c32bde28 | 21309 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21310 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21311 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21312 | int arg2 ; | |
21313 | bool result; | |
21314 | PyObject * obj0 = 0 ; | |
994141e6 | 21315 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21316 | char *kwnames[] = { |
21317 | (char *) "self",(char *) "id", NULL | |
21318 | }; | |
21319 | ||
994141e6 | 21320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21323 | { | |
32fe5131 | 21324 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21325 | if (SWIG_arg_fail(2)) SWIG_fail; |
21326 | } | |
d14a1e28 RD |
21327 | { |
21328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21329 | result = (bool)(arg1)->GetToolState(arg2); | |
21330 | ||
21331 | wxPyEndAllowThreads(__tstate); | |
21332 | if (PyErr_Occurred()) SWIG_fail; | |
21333 | } | |
4f89f6a3 RD |
21334 | { |
21335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21336 | } | |
d14a1e28 RD |
21337 | return resultobj; |
21338 | fail: | |
21339 | return NULL; | |
21340 | } | |
21341 | ||
21342 | ||
c32bde28 | 21343 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21344 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21345 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21346 | int arg2 ; | |
21347 | bool result; | |
21348 | PyObject * obj0 = 0 ; | |
994141e6 | 21349 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21350 | char *kwnames[] = { |
21351 | (char *) "self",(char *) "id", NULL | |
21352 | }; | |
21353 | ||
994141e6 | 21354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21355 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21356 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21357 | { | |
32fe5131 | 21358 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21359 | if (SWIG_arg_fail(2)) SWIG_fail; |
21360 | } | |
d14a1e28 RD |
21361 | { |
21362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21363 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
21364 | ||
21365 | wxPyEndAllowThreads(__tstate); | |
21366 | if (PyErr_Occurred()) SWIG_fail; | |
21367 | } | |
4f89f6a3 RD |
21368 | { |
21369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21370 | } | |
d14a1e28 RD |
21371 | return resultobj; |
21372 | fail: | |
21373 | return NULL; | |
21374 | } | |
21375 | ||
21376 | ||
c32bde28 | 21377 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21378 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21379 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21380 | int arg2 ; | |
21381 | wxString *arg3 = 0 ; | |
ae8162c8 | 21382 | bool temp3 = false ; |
d14a1e28 | 21383 | PyObject * obj0 = 0 ; |
994141e6 | 21384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21385 | PyObject * obj2 = 0 ; |
21386 | char *kwnames[] = { | |
21387 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
21388 | }; | |
21389 | ||
994141e6 | 21390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21393 | { | |
32fe5131 | 21394 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21395 | if (SWIG_arg_fail(2)) SWIG_fail; |
21396 | } | |
d14a1e28 RD |
21397 | { |
21398 | arg3 = wxString_in_helper(obj2); | |
21399 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 21400 | temp3 = true; |
d14a1e28 RD |
21401 | } |
21402 | { | |
21403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21404 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
21405 | ||
21406 | wxPyEndAllowThreads(__tstate); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
21409 | Py_INCREF(Py_None); resultobj = Py_None; | |
21410 | { | |
21411 | if (temp3) | |
21412 | delete arg3; | |
21413 | } | |
21414 | return resultobj; | |
21415 | fail: | |
21416 | { | |
21417 | if (temp3) | |
21418 | delete arg3; | |
21419 | } | |
21420 | return NULL; | |
21421 | } | |
21422 | ||
21423 | ||
c32bde28 | 21424 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21425 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21426 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21427 | int arg2 ; | |
21428 | wxString result; | |
21429 | PyObject * obj0 = 0 ; | |
994141e6 | 21430 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21431 | char *kwnames[] = { |
21432 | (char *) "self",(char *) "id", NULL | |
21433 | }; | |
21434 | ||
994141e6 | 21435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21438 | { | |
32fe5131 | 21439 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21440 | if (SWIG_arg_fail(2)) SWIG_fail; |
21441 | } | |
d14a1e28 RD |
21442 | { |
21443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21444 | result = (arg1)->GetToolShortHelp(arg2); | |
21445 | ||
21446 | wxPyEndAllowThreads(__tstate); | |
21447 | if (PyErr_Occurred()) SWIG_fail; | |
21448 | } | |
21449 | { | |
21450 | #if wxUSE_UNICODE | |
21451 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21452 | #else | |
21453 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21454 | #endif | |
21455 | } | |
21456 | return resultobj; | |
21457 | fail: | |
21458 | return NULL; | |
21459 | } | |
21460 | ||
21461 | ||
c32bde28 | 21462 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21463 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21464 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21465 | int arg2 ; | |
21466 | wxString *arg3 = 0 ; | |
ae8162c8 | 21467 | bool temp3 = false ; |
d14a1e28 | 21468 | PyObject * obj0 = 0 ; |
994141e6 | 21469 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21470 | PyObject * obj2 = 0 ; |
21471 | char *kwnames[] = { | |
21472 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
21473 | }; | |
21474 | ||
994141e6 | 21475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21476 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21477 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21478 | { | |
32fe5131 | 21479 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21480 | if (SWIG_arg_fail(2)) SWIG_fail; |
21481 | } | |
d14a1e28 RD |
21482 | { |
21483 | arg3 = wxString_in_helper(obj2); | |
21484 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 21485 | temp3 = true; |
d14a1e28 RD |
21486 | } |
21487 | { | |
21488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21489 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
21490 | ||
21491 | wxPyEndAllowThreads(__tstate); | |
21492 | if (PyErr_Occurred()) SWIG_fail; | |
21493 | } | |
21494 | Py_INCREF(Py_None); resultobj = Py_None; | |
21495 | { | |
21496 | if (temp3) | |
21497 | delete arg3; | |
21498 | } | |
21499 | return resultobj; | |
21500 | fail: | |
21501 | { | |
21502 | if (temp3) | |
21503 | delete arg3; | |
21504 | } | |
21505 | return NULL; | |
21506 | } | |
21507 | ||
21508 | ||
c32bde28 | 21509 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21510 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21511 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21512 | int arg2 ; | |
21513 | wxString result; | |
21514 | PyObject * obj0 = 0 ; | |
994141e6 | 21515 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21516 | char *kwnames[] = { |
21517 | (char *) "self",(char *) "id", NULL | |
21518 | }; | |
21519 | ||
994141e6 | 21520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21523 | { | |
32fe5131 | 21524 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21525 | if (SWIG_arg_fail(2)) SWIG_fail; |
21526 | } | |
d14a1e28 RD |
21527 | { |
21528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21529 | result = (arg1)->GetToolLongHelp(arg2); | |
21530 | ||
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
21534 | { | |
21535 | #if wxUSE_UNICODE | |
21536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21537 | #else | |
21538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21539 | #endif | |
21540 | } | |
21541 | return resultobj; | |
21542 | fail: | |
21543 | return NULL; | |
21544 | } | |
21545 | ||
21546 | ||
c32bde28 | 21547 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21548 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21549 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21550 | int arg2 ; | |
21551 | int arg3 ; | |
21552 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21553 | PyObject * obj1 = 0 ; |
21554 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21555 | char *kwnames[] = { |
21556 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21557 | }; | |
21558 | ||
994141e6 | 21559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21562 | { | |
32fe5131 | 21563 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21564 | if (SWIG_arg_fail(2)) SWIG_fail; |
21565 | } | |
21566 | { | |
32fe5131 | 21567 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21568 | if (SWIG_arg_fail(3)) SWIG_fail; |
21569 | } | |
d14a1e28 RD |
21570 | { |
21571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21572 | (arg1)->SetMargins(arg2,arg3); | |
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 | ||
c32bde28 | 21584 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21585 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21586 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21587 | wxSize *arg2 = 0 ; | |
21588 | wxSize temp2 ; | |
21589 | PyObject * obj0 = 0 ; | |
21590 | PyObject * obj1 = 0 ; | |
21591 | char *kwnames[] = { | |
21592 | (char *) "self",(char *) "size", NULL | |
21593 | }; | |
21594 | ||
21595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21596 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21597 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21598 | { |
21599 | arg2 = &temp2; | |
21600 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21601 | } | |
21602 | { | |
21603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21604 | (arg1)->SetMargins((wxSize const &)*arg2); | |
21605 | ||
21606 | wxPyEndAllowThreads(__tstate); | |
21607 | if (PyErr_Occurred()) SWIG_fail; | |
21608 | } | |
21609 | Py_INCREF(Py_None); resultobj = Py_None; | |
21610 | return resultobj; | |
21611 | fail: | |
21612 | return NULL; | |
21613 | } | |
21614 | ||
21615 | ||
c32bde28 | 21616 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21617 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21618 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21619 | int arg2 ; | |
21620 | PyObject * obj0 = 0 ; | |
994141e6 | 21621 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21622 | char *kwnames[] = { |
21623 | (char *) "self",(char *) "packing", NULL | |
21624 | }; | |
21625 | ||
994141e6 | 21626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21627 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21628 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21629 | { | |
32fe5131 | 21630 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21631 | if (SWIG_arg_fail(2)) SWIG_fail; |
21632 | } | |
d14a1e28 RD |
21633 | { |
21634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21635 | (arg1)->SetToolPacking(arg2); | |
21636 | ||
21637 | wxPyEndAllowThreads(__tstate); | |
21638 | if (PyErr_Occurred()) SWIG_fail; | |
21639 | } | |
21640 | Py_INCREF(Py_None); resultobj = Py_None; | |
21641 | return resultobj; | |
21642 | fail: | |
21643 | return NULL; | |
21644 | } | |
21645 | ||
21646 | ||
c32bde28 | 21647 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21648 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21649 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21650 | int arg2 ; | |
21651 | PyObject * obj0 = 0 ; | |
994141e6 | 21652 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21653 | char *kwnames[] = { |
21654 | (char *) "self",(char *) "separation", NULL | |
21655 | }; | |
21656 | ||
994141e6 | 21657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21660 | { | |
32fe5131 | 21661 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21662 | if (SWIG_arg_fail(2)) SWIG_fail; |
21663 | } | |
d14a1e28 RD |
21664 | { |
21665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21666 | (arg1)->SetToolSeparation(arg2); | |
21667 | ||
21668 | wxPyEndAllowThreads(__tstate); | |
21669 | if (PyErr_Occurred()) SWIG_fail; | |
21670 | } | |
21671 | Py_INCREF(Py_None); resultobj = Py_None; | |
21672 | return resultobj; | |
21673 | fail: | |
21674 | return NULL; | |
21675 | } | |
21676 | ||
21677 | ||
c32bde28 | 21678 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21679 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21680 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21681 | wxSize result; | |
21682 | PyObject * obj0 = 0 ; | |
21683 | char *kwnames[] = { | |
21684 | (char *) "self", NULL | |
21685 | }; | |
21686 | ||
21687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21688 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21689 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21690 | { |
21691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21692 | result = (arg1)->GetToolMargins(); | |
21693 | ||
21694 | wxPyEndAllowThreads(__tstate); | |
21695 | if (PyErr_Occurred()) SWIG_fail; | |
21696 | } | |
21697 | { | |
21698 | wxSize * resultptr; | |
32fe5131 | 21699 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 21700 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21701 | } |
21702 | return resultobj; | |
21703 | fail: | |
21704 | return NULL; | |
21705 | } | |
21706 | ||
21707 | ||
c32bde28 | 21708 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21709 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21710 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21711 | wxSize result; | |
21712 | PyObject * obj0 = 0 ; | |
21713 | char *kwnames[] = { | |
21714 | (char *) "self", NULL | |
21715 | }; | |
21716 | ||
21717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21718 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21719 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21720 | { |
21721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21722 | result = (arg1)->GetMargins(); | |
21723 | ||
21724 | wxPyEndAllowThreads(__tstate); | |
21725 | if (PyErr_Occurred()) SWIG_fail; | |
21726 | } | |
21727 | { | |
21728 | wxSize * resultptr; | |
32fe5131 | 21729 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 21730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21731 | } |
21732 | return resultobj; | |
21733 | fail: | |
21734 | return NULL; | |
21735 | } | |
21736 | ||
21737 | ||
c32bde28 | 21738 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21739 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21740 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21741 | int result; | |
21742 | PyObject * obj0 = 0 ; | |
21743 | char *kwnames[] = { | |
21744 | (char *) "self", NULL | |
21745 | }; | |
21746 | ||
21747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21750 | { |
21751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21752 | result = (int)(arg1)->GetToolPacking(); | |
21753 | ||
21754 | wxPyEndAllowThreads(__tstate); | |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
21756 | } | |
093d3ff1 | 21757 | { |
32fe5131 | 21758 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 21759 | } |
d14a1e28 RD |
21760 | return resultobj; |
21761 | fail: | |
21762 | return NULL; | |
21763 | } | |
21764 | ||
21765 | ||
c32bde28 | 21766 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21767 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21768 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21769 | int result; | |
21770 | PyObject * obj0 = 0 ; | |
21771 | char *kwnames[] = { | |
21772 | (char *) "self", NULL | |
21773 | }; | |
21774 | ||
21775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21776 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21777 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21778 | { |
21779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21780 | result = (int)(arg1)->GetToolSeparation(); | |
21781 | ||
21782 | wxPyEndAllowThreads(__tstate); | |
21783 | if (PyErr_Occurred()) SWIG_fail; | |
21784 | } | |
093d3ff1 | 21785 | { |
32fe5131 | 21786 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 21787 | } |
d14a1e28 RD |
21788 | return resultobj; |
21789 | fail: | |
21790 | return NULL; | |
21791 | } | |
21792 | ||
21793 | ||
c32bde28 | 21794 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21795 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21796 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21797 | int arg2 ; | |
21798 | PyObject * obj0 = 0 ; | |
994141e6 | 21799 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21800 | char *kwnames[] = { |
21801 | (char *) "self",(char *) "nRows", NULL | |
21802 | }; | |
21803 | ||
994141e6 | 21804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
21805 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21806 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21807 | { | |
32fe5131 | 21808 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21809 | if (SWIG_arg_fail(2)) SWIG_fail; |
21810 | } | |
d14a1e28 RD |
21811 | { |
21812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21813 | (arg1)->SetRows(arg2); | |
21814 | ||
21815 | wxPyEndAllowThreads(__tstate); | |
21816 | if (PyErr_Occurred()) SWIG_fail; | |
21817 | } | |
21818 | Py_INCREF(Py_None); resultobj = Py_None; | |
21819 | return resultobj; | |
21820 | fail: | |
21821 | return NULL; | |
21822 | } | |
21823 | ||
21824 | ||
c32bde28 | 21825 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21826 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21827 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21828 | int arg2 ; | |
21829 | int arg3 ; | |
21830 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21831 | PyObject * obj1 = 0 ; |
21832 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21833 | char *kwnames[] = { |
21834 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
21835 | }; | |
21836 | ||
994141e6 | 21837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
21838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
21840 | { | |
32fe5131 | 21841 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
21842 | if (SWIG_arg_fail(2)) SWIG_fail; |
21843 | } | |
21844 | { | |
32fe5131 | 21845 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
21846 | if (SWIG_arg_fail(3)) SWIG_fail; |
21847 | } | |
d14a1e28 RD |
21848 | { |
21849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21850 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
21851 | ||
21852 | wxPyEndAllowThreads(__tstate); | |
21853 | if (PyErr_Occurred()) SWIG_fail; | |
21854 | } | |
21855 | Py_INCREF(Py_None); resultobj = Py_None; | |
21856 | return resultobj; | |
21857 | fail: | |
21858 | return NULL; | |
21859 | } | |
21860 | ||
21861 | ||
c32bde28 | 21862 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21863 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21864 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21865 | int result; | |
21866 | PyObject * obj0 = 0 ; | |
21867 | char *kwnames[] = { | |
21868 | (char *) "self", NULL | |
21869 | }; | |
21870 | ||
21871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21874 | { |
21875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21876 | result = (int)(arg1)->GetMaxRows(); | |
21877 | ||
21878 | wxPyEndAllowThreads(__tstate); | |
21879 | if (PyErr_Occurred()) SWIG_fail; | |
21880 | } | |
093d3ff1 | 21881 | { |
32fe5131 | 21882 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 21883 | } |
d14a1e28 RD |
21884 | return resultobj; |
21885 | fail: | |
21886 | return NULL; | |
21887 | } | |
21888 | ||
21889 | ||
c32bde28 | 21890 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21891 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21892 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21893 | int result; | |
21894 | PyObject * obj0 = 0 ; | |
21895 | char *kwnames[] = { | |
21896 | (char *) "self", NULL | |
21897 | }; | |
21898 | ||
21899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21902 | { |
21903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21904 | result = (int)(arg1)->GetMaxCols(); | |
21905 | ||
21906 | wxPyEndAllowThreads(__tstate); | |
21907 | if (PyErr_Occurred()) SWIG_fail; | |
21908 | } | |
093d3ff1 | 21909 | { |
32fe5131 | 21910 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 21911 | } |
d14a1e28 RD |
21912 | return resultobj; |
21913 | fail: | |
21914 | return NULL; | |
21915 | } | |
21916 | ||
21917 | ||
c32bde28 | 21918 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21919 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21920 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21921 | wxSize *arg2 = 0 ; | |
21922 | wxSize temp2 ; | |
21923 | PyObject * obj0 = 0 ; | |
21924 | PyObject * obj1 = 0 ; | |
21925 | char *kwnames[] = { | |
21926 | (char *) "self",(char *) "size", NULL | |
21927 | }; | |
21928 | ||
21929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
21930 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21931 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21932 | { |
21933 | arg2 = &temp2; | |
21934 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
21935 | } | |
21936 | { | |
21937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21938 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
21939 | ||
21940 | wxPyEndAllowThreads(__tstate); | |
21941 | if (PyErr_Occurred()) SWIG_fail; | |
21942 | } | |
21943 | Py_INCREF(Py_None); resultobj = Py_None; | |
21944 | return resultobj; | |
21945 | fail: | |
21946 | return NULL; | |
21947 | } | |
21948 | ||
21949 | ||
c32bde28 | 21950 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21951 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21952 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21953 | wxSize result; | |
21954 | PyObject * obj0 = 0 ; | |
21955 | char *kwnames[] = { | |
21956 | (char *) "self", NULL | |
21957 | }; | |
21958 | ||
21959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21962 | { |
21963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21964 | result = (arg1)->GetToolBitmapSize(); | |
21965 | ||
21966 | wxPyEndAllowThreads(__tstate); | |
21967 | if (PyErr_Occurred()) SWIG_fail; | |
21968 | } | |
21969 | { | |
21970 | wxSize * resultptr; | |
32fe5131 | 21971 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 21972 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21973 | } |
21974 | return resultobj; | |
21975 | fail: | |
21976 | return NULL; | |
21977 | } | |
21978 | ||
21979 | ||
c32bde28 | 21980 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 21981 | PyObject *resultobj = NULL; |
d14a1e28 RD |
21982 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
21983 | wxSize result; | |
21984 | PyObject * obj0 = 0 ; | |
21985 | char *kwnames[] = { | |
21986 | (char *) "self", NULL | |
21987 | }; | |
21988 | ||
21989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
21990 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
21991 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
21992 | { |
21993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21994 | result = (arg1)->GetToolSize(); | |
21995 | ||
21996 | wxPyEndAllowThreads(__tstate); | |
21997 | if (PyErr_Occurred()) SWIG_fail; | |
21998 | } | |
21999 | { | |
22000 | wxSize * resultptr; | |
32fe5131 | 22001 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 22002 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22003 | } |
22004 | return resultobj; | |
22005 | fail: | |
22006 | return NULL; | |
22007 | } | |
22008 | ||
22009 | ||
c32bde28 | 22010 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22011 | PyObject *resultobj = NULL; |
d14a1e28 | 22012 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
e811c8ce RD |
22013 | int arg2 ; |
22014 | int arg3 ; | |
d14a1e28 RD |
22015 | wxToolBarToolBase *result; |
22016 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22017 | PyObject * obj1 = 0 ; |
22018 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22019 | char *kwnames[] = { |
22020 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22021 | }; | |
22022 | ||
994141e6 | 22023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
22024 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
22025 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22026 | { | |
32fe5131 | 22027 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22028 | if (SWIG_arg_fail(2)) SWIG_fail; |
22029 | } | |
22030 | { | |
32fe5131 | 22031 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
22032 | if (SWIG_arg_fail(3)) SWIG_fail; |
22033 | } | |
d14a1e28 RD |
22034 | { |
22035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22036 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
22037 | ||
22038 | wxPyEndAllowThreads(__tstate); | |
22039 | if (PyErr_Occurred()) SWIG_fail; | |
22040 | } | |
22041 | { | |
7e08d4ef | 22042 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
22043 | } |
22044 | return resultobj; | |
22045 | fail: | |
22046 | return NULL; | |
22047 | } | |
22048 | ||
22049 | ||
c32bde28 | 22050 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22051 | PyObject *resultobj = NULL; |
3a04f143 RD |
22052 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
22053 | int arg2 ; | |
22054 | wxToolBarToolBase *result; | |
22055 | PyObject * obj0 = 0 ; | |
994141e6 | 22056 | PyObject * obj1 = 0 ; |
3a04f143 RD |
22057 | char *kwnames[] = { |
22058 | (char *) "self",(char *) "toolid", NULL | |
22059 | }; | |
22060 | ||
994141e6 | 22061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22062 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
22063 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22064 | { | |
32fe5131 | 22065 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22066 | if (SWIG_arg_fail(2)) SWIG_fail; |
22067 | } | |
3a04f143 RD |
22068 | { |
22069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22070 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
22071 | ||
22072 | wxPyEndAllowThreads(__tstate); | |
22073 | if (PyErr_Occurred()) SWIG_fail; | |
22074 | } | |
22075 | { | |
7e08d4ef | 22076 | resultobj = wxPyMake_wxObject(result, (bool)0); |
3a04f143 RD |
22077 | } |
22078 | return resultobj; | |
22079 | fail: | |
22080 | return NULL; | |
22081 | } | |
22082 | ||
22083 | ||
c32bde28 | 22084 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22085 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22086 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; |
22087 | bool result; | |
22088 | PyObject * obj0 = 0 ; | |
22089 | char *kwnames[] = { | |
22090 | (char *) "self", NULL | |
22091 | }; | |
22092 | ||
22093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBarBase, SWIG_POINTER_EXCEPTION | 0); |
22095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22096 | { |
22097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22098 | result = (bool)(arg1)->IsVertical(); | |
22099 | ||
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
4f89f6a3 RD |
22103 | { |
22104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22105 | } | |
d14a1e28 RD |
22106 | return resultobj; |
22107 | fail: | |
22108 | return NULL; | |
22109 | } | |
22110 | ||
22111 | ||
c32bde28 | 22112 | static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
22113 | PyObject *obj; |
22114 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22115 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
22116 | Py_INCREF(obj); | |
22117 | return Py_BuildValue((char *)""); | |
22118 | } | |
c32bde28 | 22119 | static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22120 | PyObject *resultobj = NULL; |
d14a1e28 | 22121 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 22122 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22123 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22124 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22125 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22126 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22127 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
22128 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
22129 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22130 | wxToolBar *result; | |
22131 | wxPoint temp3 ; | |
22132 | wxSize temp4 ; | |
ae8162c8 | 22133 | bool temp6 = false ; |
d14a1e28 | 22134 | PyObject * obj0 = 0 ; |
994141e6 | 22135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22136 | PyObject * obj2 = 0 ; |
22137 | PyObject * obj3 = 0 ; | |
994141e6 | 22138 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22139 | PyObject * obj5 = 0 ; |
22140 | char *kwnames[] = { | |
22141 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22142 | }; | |
22143 | ||
248ed943 | 22144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
22145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
22146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 22147 | if (obj1) { |
093d3ff1 | 22148 | { |
32fe5131 | 22149 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22150 | if (SWIG_arg_fail(2)) SWIG_fail; |
22151 | } | |
248ed943 | 22152 | } |
d14a1e28 RD |
22153 | if (obj2) { |
22154 | { | |
22155 | arg3 = &temp3; | |
22156 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22157 | } | |
22158 | } | |
22159 | if (obj3) { | |
22160 | { | |
22161 | arg4 = &temp4; | |
22162 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22163 | } | |
22164 | } | |
994141e6 | 22165 | if (obj4) { |
093d3ff1 | 22166 | { |
32fe5131 | 22167 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
22168 | if (SWIG_arg_fail(5)) SWIG_fail; |
22169 | } | |
994141e6 | 22170 | } |
d14a1e28 RD |
22171 | if (obj5) { |
22172 | { | |
22173 | arg6 = wxString_in_helper(obj5); | |
22174 | if (arg6 == NULL) SWIG_fail; | |
ae8162c8 | 22175 | temp6 = true; |
d14a1e28 RD |
22176 | } |
22177 | } | |
22178 | { | |
e3b71cb8 | 22179 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
22180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22181 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22182 | ||
22183 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22184 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22185 | } |
b0f7404b | 22186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
22187 | { |
22188 | if (temp6) | |
22189 | delete arg6; | |
22190 | } | |
22191 | return resultobj; | |
22192 | fail: | |
22193 | { | |
22194 | if (temp6) | |
22195 | delete arg6; | |
22196 | } | |
22197 | return NULL; | |
22198 | } | |
22199 | ||
22200 | ||
c32bde28 | 22201 | static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22202 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22203 | wxToolBar *result; |
22204 | char *kwnames[] = { | |
22205 | NULL | |
22206 | }; | |
22207 | ||
22208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
22209 | { | |
e3b71cb8 | 22210 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
22211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22212 | result = (wxToolBar *)new wxToolBar(); | |
22213 | ||
22214 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22215 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 22216 | } |
b0f7404b | 22217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
22218 | return resultobj; |
22219 | fail: | |
22220 | return NULL; | |
22221 | } | |
22222 | ||
22223 | ||
c32bde28 | 22224 | static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22225 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22226 | wxToolBar *arg1 = (wxToolBar *) 0 ; |
22227 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 22228 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22229 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22230 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22231 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22232 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22233 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
22234 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
22235 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22236 | bool result; | |
22237 | wxPoint temp4 ; | |
22238 | wxSize temp5 ; | |
ae8162c8 | 22239 | bool temp7 = false ; |
d14a1e28 RD |
22240 | PyObject * obj0 = 0 ; |
22241 | PyObject * obj1 = 0 ; | |
994141e6 | 22242 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22243 | PyObject * obj3 = 0 ; |
22244 | PyObject * obj4 = 0 ; | |
994141e6 | 22245 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22246 | PyObject * obj6 = 0 ; |
22247 | char *kwnames[] = { | |
22248 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22249 | }; | |
22250 | ||
248ed943 | 22251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
22252 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
22253 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22254 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
22255 | if (SWIG_arg_fail(2)) SWIG_fail; | |
248ed943 | 22256 | if (obj2) { |
093d3ff1 | 22257 | { |
32fe5131 | 22258 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
22259 | if (SWIG_arg_fail(3)) SWIG_fail; |
22260 | } | |
248ed943 | 22261 | } |
d14a1e28 RD |
22262 | if (obj3) { |
22263 | { | |
22264 | arg4 = &temp4; | |
22265 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22266 | } | |
22267 | } | |
22268 | if (obj4) { | |
22269 | { | |
22270 | arg5 = &temp5; | |
22271 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22272 | } | |
22273 | } | |
994141e6 | 22274 | if (obj5) { |
093d3ff1 | 22275 | { |
32fe5131 | 22276 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
22277 | if (SWIG_arg_fail(6)) SWIG_fail; |
22278 | } | |
994141e6 | 22279 | } |
d14a1e28 RD |
22280 | if (obj6) { |
22281 | { | |
22282 | arg7 = wxString_in_helper(obj6); | |
22283 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 22284 | temp7 = true; |
d14a1e28 RD |
22285 | } |
22286 | } | |
22287 | { | |
22288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22289 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22290 | ||
22291 | wxPyEndAllowThreads(__tstate); | |
22292 | if (PyErr_Occurred()) SWIG_fail; | |
22293 | } | |
4f89f6a3 RD |
22294 | { |
22295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22296 | } | |
d14a1e28 RD |
22297 | { |
22298 | if (temp7) | |
22299 | delete arg7; | |
22300 | } | |
22301 | return resultobj; | |
22302 | fail: | |
22303 | { | |
22304 | if (temp7) | |
22305 | delete arg7; | |
22306 | } | |
22307 | return NULL; | |
22308 | } | |
22309 | ||
22310 | ||
c32bde28 | 22311 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22312 | PyObject *resultobj = NULL; |
d14a1e28 | 22313 | wxToolBar *arg1 = (wxToolBar *) 0 ; |
e811c8ce RD |
22314 | int arg2 ; |
22315 | int arg3 ; | |
d14a1e28 RD |
22316 | wxToolBarToolBase *result; |
22317 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22318 | PyObject * obj1 = 0 ; |
22319 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22320 | char *kwnames[] = { |
22321 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22322 | }; | |
22323 | ||
994141e6 | 22324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
22325 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolBar, SWIG_POINTER_EXCEPTION | 0); |
22326 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22327 | { | |
32fe5131 | 22328 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
22329 | if (SWIG_arg_fail(2)) SWIG_fail; |
22330 | } | |
22331 | { | |
32fe5131 | 22332 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
22333 | if (SWIG_arg_fail(3)) SWIG_fail; |
22334 | } | |
d14a1e28 RD |
22335 | { |
22336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22337 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
22338 | ||
22339 | wxPyEndAllowThreads(__tstate); | |
22340 | if (PyErr_Occurred()) SWIG_fail; | |
22341 | } | |
22342 | { | |
7e08d4ef | 22343 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
22344 | } |
22345 | return resultobj; | |
22346 | fail: | |
22347 | return NULL; | |
22348 | } | |
22349 | ||
22350 | ||
c32bde28 | 22351 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22352 | PyObject *resultobj = NULL; |
093d3ff1 | 22353 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
22bfe96c RD |
22354 | wxVisualAttributes result; |
22355 | PyObject * obj0 = 0 ; | |
22356 | char *kwnames[] = { | |
22357 | (char *) "variant", NULL | |
22358 | }; | |
22359 | ||
22360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
22361 | if (obj0) { | |
093d3ff1 | 22362 | { |
32fe5131 | 22363 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
22364 | if (SWIG_arg_fail(1)) SWIG_fail; |
22365 | } | |
22bfe96c RD |
22366 | } |
22367 | { | |
110da5b0 | 22368 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c | 22369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 22370 | result = wxToolBar::GetClassDefaultAttributes(arg1); |
22bfe96c RD |
22371 | |
22372 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 22373 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
22374 | } |
22375 | { | |
22376 | wxVisualAttributes * resultptr; | |
32fe5131 | 22377 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
22bfe96c RD |
22378 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
22379 | } | |
22380 | return resultobj; | |
22381 | fail: | |
22382 | return NULL; | |
22383 | } | |
22384 | ||
22385 | ||
c32bde28 | 22386 | static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
22387 | PyObject *obj; |
22388 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22389 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
22390 | Py_INCREF(obj); | |
22391 | return Py_BuildValue((char *)""); | |
22392 | } | |
c32bde28 | 22393 | static int _wrap_ListCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
22394 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
22395 | return 1; | |
22396 | } | |
22397 | ||
22398 | ||
093d3ff1 | 22399 | static PyObject *_wrap_ListCtrlNameStr_get(void) { |
32fe5131 | 22400 | PyObject *pyobj = NULL; |
b2dc1044 RD |
22401 | |
22402 | { | |
22403 | #if wxUSE_UNICODE | |
22404 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
22405 | #else | |
22406 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
22407 | #endif | |
22408 | } | |
22409 | return pyobj; | |
22410 | } | |
22411 | ||
22412 | ||
c32bde28 | 22413 | static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22414 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22415 | wxColour const &arg1_defvalue = wxNullColour ; |
22416 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
22417 | wxColour const &arg2_defvalue = wxNullColour ; | |
22418 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
22419 | wxFont const &arg3_defvalue = wxNullFont ; | |
22420 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
22421 | wxListItemAttr *result; | |
22422 | wxColour temp1 ; | |
22423 | wxColour temp2 ; | |
22424 | PyObject * obj0 = 0 ; | |
22425 | PyObject * obj1 = 0 ; | |
22426 | PyObject * obj2 = 0 ; | |
22427 | char *kwnames[] = { | |
22428 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
22429 | }; | |
22430 | ||
22431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22432 | if (obj0) { | |
22433 | { | |
22434 | arg1 = &temp1; | |
22435 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
22436 | } | |
22437 | } | |
22438 | if (obj1) { | |
22439 | { | |
22440 | arg2 = &temp2; | |
22441 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22442 | } | |
22443 | } | |
22444 | if (obj2) { | |
093d3ff1 RD |
22445 | { |
22446 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
22447 | if (SWIG_arg_fail(3)) SWIG_fail; | |
22448 | if (arg3 == NULL) { | |
22449 | SWIG_null_ref("wxFont"); | |
22450 | } | |
22451 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
22452 | } |
22453 | } | |
22454 | { | |
22455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22456 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
22457 | ||
22458 | wxPyEndAllowThreads(__tstate); | |
22459 | if (PyErr_Occurred()) SWIG_fail; | |
22460 | } | |
15afbcd0 | 22461 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
22462 | return resultobj; |
22463 | fail: | |
22464 | return NULL; | |
22465 | } | |
22466 | ||
22467 | ||
7e08d4ef RD |
22468 | static PyObject *_wrap_delete_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) { |
22469 | PyObject *resultobj = NULL; | |
22470 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
22471 | PyObject * obj0 = 0 ; | |
22472 | char *kwnames[] = { | |
22473 | (char *) "self", NULL | |
22474 | }; | |
22475 | ||
22476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItemAttr",kwnames,&obj0)) goto fail; | |
22477 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
22478 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22479 | { | |
22480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22481 | delete arg1; | |
22482 | ||
22483 | wxPyEndAllowThreads(__tstate); | |
22484 | if (PyErr_Occurred()) SWIG_fail; | |
22485 | } | |
22486 | Py_INCREF(Py_None); resultobj = Py_None; | |
22487 | return resultobj; | |
22488 | fail: | |
22489 | return NULL; | |
22490 | } | |
22491 | ||
22492 | ||
c32bde28 | 22493 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22494 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22495 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22496 | wxColour *arg2 = 0 ; | |
22497 | wxColour temp2 ; | |
22498 | PyObject * obj0 = 0 ; | |
22499 | PyObject * obj1 = 0 ; | |
22500 | char *kwnames[] = { | |
22501 | (char *) "self",(char *) "colText", NULL | |
22502 | }; | |
22503 | ||
22504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22505 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22506 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22507 | { |
22508 | arg2 = &temp2; | |
22509 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22510 | } | |
22511 | { | |
22512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22513 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22514 | ||
22515 | wxPyEndAllowThreads(__tstate); | |
22516 | if (PyErr_Occurred()) SWIG_fail; | |
22517 | } | |
22518 | Py_INCREF(Py_None); resultobj = Py_None; | |
22519 | return resultobj; | |
22520 | fail: | |
22521 | return NULL; | |
22522 | } | |
22523 | ||
22524 | ||
c32bde28 | 22525 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22526 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22527 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22528 | wxColour *arg2 = 0 ; | |
22529 | wxColour temp2 ; | |
22530 | PyObject * obj0 = 0 ; | |
22531 | PyObject * obj1 = 0 ; | |
22532 | char *kwnames[] = { | |
22533 | (char *) "self",(char *) "colBack", NULL | |
22534 | }; | |
22535 | ||
22536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22537 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22538 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22539 | { |
22540 | arg2 = &temp2; | |
22541 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22542 | } | |
22543 | { | |
22544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22545 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
22546 | ||
22547 | wxPyEndAllowThreads(__tstate); | |
22548 | if (PyErr_Occurred()) SWIG_fail; | |
22549 | } | |
22550 | Py_INCREF(Py_None); resultobj = Py_None; | |
22551 | return resultobj; | |
22552 | fail: | |
22553 | return NULL; | |
22554 | } | |
22555 | ||
22556 | ||
c32bde28 | 22557 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22558 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22559 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22560 | wxFont *arg2 = 0 ; | |
22561 | PyObject * obj0 = 0 ; | |
22562 | PyObject * obj1 = 0 ; | |
22563 | char *kwnames[] = { | |
22564 | (char *) "self",(char *) "font", NULL | |
22565 | }; | |
22566 | ||
22567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
22568 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22569 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22570 | { | |
22571 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
22572 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22573 | if (arg2 == NULL) { | |
22574 | SWIG_null_ref("wxFont"); | |
22575 | } | |
22576 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
22577 | } |
22578 | { | |
22579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22580 | (arg1)->SetFont((wxFont const &)*arg2); | |
22581 | ||
22582 | wxPyEndAllowThreads(__tstate); | |
22583 | if (PyErr_Occurred()) SWIG_fail; | |
22584 | } | |
22585 | Py_INCREF(Py_None); resultobj = Py_None; | |
22586 | return resultobj; | |
22587 | fail: | |
22588 | return NULL; | |
22589 | } | |
22590 | ||
22591 | ||
c32bde28 | 22592 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22593 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22594 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22595 | bool result; | |
22596 | PyObject * obj0 = 0 ; | |
22597 | char *kwnames[] = { | |
22598 | (char *) "self", NULL | |
22599 | }; | |
22600 | ||
22601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22602 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22603 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22604 | { |
22605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22606 | result = (bool)(arg1)->HasTextColour(); | |
22607 | ||
22608 | wxPyEndAllowThreads(__tstate); | |
22609 | if (PyErr_Occurred()) SWIG_fail; | |
22610 | } | |
4f89f6a3 RD |
22611 | { |
22612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22613 | } | |
d14a1e28 RD |
22614 | return resultobj; |
22615 | fail: | |
22616 | return NULL; | |
22617 | } | |
22618 | ||
22619 | ||
c32bde28 | 22620 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22621 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22622 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22623 | bool result; | |
22624 | PyObject * obj0 = 0 ; | |
22625 | char *kwnames[] = { | |
22626 | (char *) "self", NULL | |
22627 | }; | |
22628 | ||
22629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22630 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22631 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22632 | { |
22633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22634 | result = (bool)(arg1)->HasBackgroundColour(); | |
22635 | ||
22636 | wxPyEndAllowThreads(__tstate); | |
22637 | if (PyErr_Occurred()) SWIG_fail; | |
22638 | } | |
4f89f6a3 RD |
22639 | { |
22640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22641 | } | |
d14a1e28 RD |
22642 | return resultobj; |
22643 | fail: | |
22644 | return NULL; | |
22645 | } | |
22646 | ||
22647 | ||
c32bde28 | 22648 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22649 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22650 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22651 | bool result; | |
22652 | PyObject * obj0 = 0 ; | |
22653 | char *kwnames[] = { | |
22654 | (char *) "self", NULL | |
22655 | }; | |
22656 | ||
22657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22658 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22659 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22660 | { |
22661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22662 | result = (bool)(arg1)->HasFont(); | |
22663 | ||
22664 | wxPyEndAllowThreads(__tstate); | |
22665 | if (PyErr_Occurred()) SWIG_fail; | |
22666 | } | |
4f89f6a3 RD |
22667 | { |
22668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22669 | } | |
d14a1e28 RD |
22670 | return resultobj; |
22671 | fail: | |
22672 | return NULL; | |
22673 | } | |
22674 | ||
22675 | ||
c32bde28 | 22676 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22677 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22678 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22679 | wxColour result; | |
22680 | PyObject * obj0 = 0 ; | |
22681 | char *kwnames[] = { | |
22682 | (char *) "self", NULL | |
22683 | }; | |
22684 | ||
22685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22686 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22687 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22688 | { |
22689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22690 | result = (arg1)->GetTextColour(); | |
22691 | ||
22692 | wxPyEndAllowThreads(__tstate); | |
22693 | if (PyErr_Occurred()) SWIG_fail; | |
22694 | } | |
22695 | { | |
22696 | wxColour * resultptr; | |
32fe5131 | 22697 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 22698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22699 | } |
22700 | return resultobj; | |
22701 | fail: | |
22702 | return NULL; | |
22703 | } | |
22704 | ||
22705 | ||
c32bde28 | 22706 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22707 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22708 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22709 | wxColour result; | |
22710 | PyObject * obj0 = 0 ; | |
22711 | char *kwnames[] = { | |
22712 | (char *) "self", NULL | |
22713 | }; | |
22714 | ||
22715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22716 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22717 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22718 | { |
22719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22720 | result = (arg1)->GetBackgroundColour(); | |
22721 | ||
22722 | wxPyEndAllowThreads(__tstate); | |
22723 | if (PyErr_Occurred()) SWIG_fail; | |
22724 | } | |
22725 | { | |
22726 | wxColour * resultptr; | |
32fe5131 | 22727 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 22728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22729 | } |
22730 | return resultobj; | |
22731 | fail: | |
22732 | return NULL; | |
22733 | } | |
22734 | ||
22735 | ||
c32bde28 | 22736 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22737 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22738 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22739 | wxFont result; | |
22740 | PyObject * obj0 = 0 ; | |
22741 | char *kwnames[] = { | |
22742 | (char *) "self", NULL | |
22743 | }; | |
22744 | ||
22745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22746 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22747 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22748 | { |
22749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22750 | result = (arg1)->GetFont(); | |
22751 | ||
22752 | wxPyEndAllowThreads(__tstate); | |
22753 | if (PyErr_Occurred()) SWIG_fail; | |
22754 | } | |
22755 | { | |
22756 | wxFont * resultptr; | |
32fe5131 | 22757 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
15afbcd0 | 22758 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
22759 | } |
22760 | return resultobj; | |
22761 | fail: | |
22762 | return NULL; | |
22763 | } | |
22764 | ||
22765 | ||
7e08d4ef RD |
22766 | static PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
22767 | PyObject *resultobj = NULL; | |
22768 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
22769 | wxListItemAttr *arg2 = 0 ; | |
22770 | PyObject * obj0 = 0 ; | |
22771 | PyObject * obj1 = 0 ; | |
22772 | char *kwnames[] = { | |
22773 | (char *) "self",(char *) "source", NULL | |
22774 | }; | |
22775 | ||
22776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) goto fail; | |
22777 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
22778 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22779 | { | |
22780 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); | |
22781 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22782 | if (arg2 == NULL) { | |
22783 | SWIG_null_ref("wxListItemAttr"); | |
22784 | } | |
22785 | if (SWIG_arg_fail(2)) SWIG_fail; | |
22786 | } | |
22787 | { | |
22788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22789 | (arg1)->AssignFrom((wxListItemAttr const &)*arg2); | |
22790 | ||
22791 | wxPyEndAllowThreads(__tstate); | |
22792 | if (PyErr_Occurred()) SWIG_fail; | |
22793 | } | |
22794 | Py_INCREF(Py_None); resultobj = Py_None; | |
22795 | return resultobj; | |
22796 | fail: | |
22797 | return NULL; | |
22798 | } | |
22799 | ||
22800 | ||
c32bde28 | 22801 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22802 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22803 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; |
22804 | PyObject * obj0 = 0 ; | |
22805 | char *kwnames[] = { | |
22806 | (char *) "self", NULL | |
22807 | }; | |
22808 | ||
22809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22810 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_EXCEPTION | 0); |
22811 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22812 | { |
22813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22814 | wxListItemAttr_Destroy(arg1); | |
22815 | ||
22816 | wxPyEndAllowThreads(__tstate); | |
22817 | if (PyErr_Occurred()) SWIG_fail; | |
22818 | } | |
22819 | Py_INCREF(Py_None); resultobj = Py_None; | |
22820 | return resultobj; | |
22821 | fail: | |
22822 | return NULL; | |
22823 | } | |
22824 | ||
22825 | ||
c32bde28 | 22826 | static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
22827 | PyObject *obj; |
22828 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22829 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
22830 | Py_INCREF(obj); | |
22831 | return Py_BuildValue((char *)""); | |
22832 | } | |
c32bde28 | 22833 | static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22834 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22835 | wxListItem *result; |
22836 | char *kwnames[] = { | |
22837 | NULL | |
22838 | }; | |
22839 | ||
22840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
22841 | { | |
22842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22843 | result = (wxListItem *)new wxListItem(); | |
22844 | ||
22845 | wxPyEndAllowThreads(__tstate); | |
22846 | if (PyErr_Occurred()) SWIG_fail; | |
22847 | } | |
22848 | { | |
7e08d4ef | 22849 | resultobj = wxPyMake_wxObject(result, (bool)1); |
d14a1e28 RD |
22850 | } |
22851 | return resultobj; | |
22852 | fail: | |
22853 | return NULL; | |
22854 | } | |
22855 | ||
22856 | ||
c32bde28 | 22857 | static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22858 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22859 | wxListItem *arg1 = (wxListItem *) 0 ; |
22860 | PyObject * obj0 = 0 ; | |
22861 | char *kwnames[] = { | |
22862 | (char *) "self", NULL | |
22863 | }; | |
22864 | ||
22865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22866 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22867 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22868 | { |
22869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22870 | delete arg1; | |
22871 | ||
22872 | wxPyEndAllowThreads(__tstate); | |
22873 | if (PyErr_Occurred()) SWIG_fail; | |
22874 | } | |
22875 | Py_INCREF(Py_None); resultobj = Py_None; | |
22876 | return resultobj; | |
22877 | fail: | |
22878 | return NULL; | |
22879 | } | |
22880 | ||
22881 | ||
c32bde28 | 22882 | static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22883 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22884 | wxListItem *arg1 = (wxListItem *) 0 ; |
22885 | PyObject * obj0 = 0 ; | |
22886 | char *kwnames[] = { | |
22887 | (char *) "self", NULL | |
22888 | }; | |
22889 | ||
22890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22891 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22892 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22893 | { |
22894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22895 | (arg1)->Clear(); | |
22896 | ||
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | Py_INCREF(Py_None); resultobj = Py_None; | |
22901 | return resultobj; | |
22902 | fail: | |
22903 | return NULL; | |
22904 | } | |
22905 | ||
22906 | ||
c32bde28 | 22907 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22908 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22909 | wxListItem *arg1 = (wxListItem *) 0 ; |
22910 | PyObject * obj0 = 0 ; | |
22911 | char *kwnames[] = { | |
22912 | (char *) "self", NULL | |
22913 | }; | |
22914 | ||
22915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
22916 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22917 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
22918 | { |
22919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22920 | (arg1)->ClearAttributes(); | |
22921 | ||
22922 | wxPyEndAllowThreads(__tstate); | |
22923 | if (PyErr_Occurred()) SWIG_fail; | |
22924 | } | |
22925 | Py_INCREF(Py_None); resultobj = Py_None; | |
22926 | return resultobj; | |
22927 | fail: | |
22928 | return NULL; | |
22929 | } | |
22930 | ||
22931 | ||
c32bde28 | 22932 | static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22933 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22934 | wxListItem *arg1 = (wxListItem *) 0 ; |
22935 | long arg2 ; | |
22936 | PyObject * obj0 = 0 ; | |
994141e6 | 22937 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22938 | char *kwnames[] = { |
22939 | (char *) "self",(char *) "mask", NULL | |
22940 | }; | |
22941 | ||
994141e6 | 22942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22943 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22944 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22945 | { | |
32fe5131 | 22946 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
22947 | if (SWIG_arg_fail(2)) SWIG_fail; |
22948 | } | |
d14a1e28 RD |
22949 | { |
22950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22951 | (arg1)->SetMask(arg2); | |
22952 | ||
22953 | wxPyEndAllowThreads(__tstate); | |
22954 | if (PyErr_Occurred()) SWIG_fail; | |
22955 | } | |
22956 | Py_INCREF(Py_None); resultobj = Py_None; | |
22957 | return resultobj; | |
22958 | fail: | |
22959 | return NULL; | |
22960 | } | |
22961 | ||
22962 | ||
c32bde28 | 22963 | static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22964 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22965 | wxListItem *arg1 = (wxListItem *) 0 ; |
22966 | long arg2 ; | |
22967 | PyObject * obj0 = 0 ; | |
994141e6 | 22968 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22969 | char *kwnames[] = { |
22970 | (char *) "self",(char *) "id", NULL | |
22971 | }; | |
22972 | ||
994141e6 | 22973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
22974 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
22975 | if (SWIG_arg_fail(1)) SWIG_fail; | |
22976 | { | |
32fe5131 | 22977 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
22978 | if (SWIG_arg_fail(2)) SWIG_fail; |
22979 | } | |
d14a1e28 RD |
22980 | { |
22981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22982 | (arg1)->SetId(arg2); | |
22983 | ||
22984 | wxPyEndAllowThreads(__tstate); | |
22985 | if (PyErr_Occurred()) SWIG_fail; | |
22986 | } | |
22987 | Py_INCREF(Py_None); resultobj = Py_None; | |
22988 | return resultobj; | |
22989 | fail: | |
22990 | return NULL; | |
22991 | } | |
22992 | ||
22993 | ||
c32bde28 | 22994 | static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 22995 | PyObject *resultobj = NULL; |
d14a1e28 RD |
22996 | wxListItem *arg1 = (wxListItem *) 0 ; |
22997 | int arg2 ; | |
22998 | PyObject * obj0 = 0 ; | |
994141e6 | 22999 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23000 | char *kwnames[] = { |
23001 | (char *) "self",(char *) "col", NULL | |
23002 | }; | |
23003 | ||
994141e6 | 23004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23005 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23006 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23007 | { | |
32fe5131 | 23008 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23009 | if (SWIG_arg_fail(2)) SWIG_fail; |
23010 | } | |
d14a1e28 RD |
23011 | { |
23012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23013 | (arg1)->SetColumn(arg2); | |
23014 | ||
23015 | wxPyEndAllowThreads(__tstate); | |
23016 | if (PyErr_Occurred()) SWIG_fail; | |
23017 | } | |
23018 | Py_INCREF(Py_None); resultobj = Py_None; | |
23019 | return resultobj; | |
23020 | fail: | |
23021 | return NULL; | |
23022 | } | |
23023 | ||
23024 | ||
c32bde28 | 23025 | static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23026 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23027 | wxListItem *arg1 = (wxListItem *) 0 ; |
23028 | long arg2 ; | |
23029 | PyObject * obj0 = 0 ; | |
994141e6 | 23030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23031 | char *kwnames[] = { |
23032 | (char *) "self",(char *) "state", NULL | |
23033 | }; | |
23034 | ||
994141e6 | 23035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23036 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23037 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23038 | { | |
32fe5131 | 23039 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23040 | if (SWIG_arg_fail(2)) SWIG_fail; |
23041 | } | |
d14a1e28 RD |
23042 | { |
23043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23044 | (arg1)->SetState(arg2); | |
23045 | ||
23046 | wxPyEndAllowThreads(__tstate); | |
23047 | if (PyErr_Occurred()) SWIG_fail; | |
23048 | } | |
23049 | Py_INCREF(Py_None); resultobj = Py_None; | |
23050 | return resultobj; | |
23051 | fail: | |
23052 | return NULL; | |
23053 | } | |
23054 | ||
23055 | ||
c32bde28 | 23056 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23057 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23058 | wxListItem *arg1 = (wxListItem *) 0 ; |
23059 | long arg2 ; | |
23060 | PyObject * obj0 = 0 ; | |
994141e6 | 23061 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23062 | char *kwnames[] = { |
23063 | (char *) "self",(char *) "stateMask", NULL | |
23064 | }; | |
23065 | ||
994141e6 | 23066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23067 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23068 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23069 | { | |
32fe5131 | 23070 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23071 | if (SWIG_arg_fail(2)) SWIG_fail; |
23072 | } | |
d14a1e28 RD |
23073 | { |
23074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23075 | (arg1)->SetStateMask(arg2); | |
23076 | ||
23077 | wxPyEndAllowThreads(__tstate); | |
23078 | if (PyErr_Occurred()) SWIG_fail; | |
23079 | } | |
23080 | Py_INCREF(Py_None); resultobj = Py_None; | |
23081 | return resultobj; | |
23082 | fail: | |
23083 | return NULL; | |
23084 | } | |
23085 | ||
23086 | ||
c32bde28 | 23087 | static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23088 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23089 | wxListItem *arg1 = (wxListItem *) 0 ; |
23090 | wxString *arg2 = 0 ; | |
ae8162c8 | 23091 | bool temp2 = false ; |
d14a1e28 RD |
23092 | PyObject * obj0 = 0 ; |
23093 | PyObject * obj1 = 0 ; | |
23094 | char *kwnames[] = { | |
23095 | (char *) "self",(char *) "text", NULL | |
23096 | }; | |
23097 | ||
23098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23101 | { |
23102 | arg2 = wxString_in_helper(obj1); | |
23103 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 23104 | temp2 = true; |
d14a1e28 RD |
23105 | } |
23106 | { | |
23107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23108 | (arg1)->SetText((wxString const &)*arg2); | |
23109 | ||
23110 | wxPyEndAllowThreads(__tstate); | |
23111 | if (PyErr_Occurred()) SWIG_fail; | |
23112 | } | |
23113 | Py_INCREF(Py_None); resultobj = Py_None; | |
23114 | { | |
23115 | if (temp2) | |
23116 | delete arg2; | |
23117 | } | |
23118 | return resultobj; | |
23119 | fail: | |
23120 | { | |
23121 | if (temp2) | |
23122 | delete arg2; | |
23123 | } | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
c32bde28 | 23128 | static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23129 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23130 | wxListItem *arg1 = (wxListItem *) 0 ; |
23131 | int arg2 ; | |
23132 | PyObject * obj0 = 0 ; | |
994141e6 | 23133 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23134 | char *kwnames[] = { |
23135 | (char *) "self",(char *) "image", NULL | |
23136 | }; | |
23137 | ||
994141e6 | 23138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23139 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23140 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23141 | { | |
32fe5131 | 23142 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23143 | if (SWIG_arg_fail(2)) SWIG_fail; |
23144 | } | |
d14a1e28 RD |
23145 | { |
23146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23147 | (arg1)->SetImage(arg2); | |
23148 | ||
23149 | wxPyEndAllowThreads(__tstate); | |
23150 | if (PyErr_Occurred()) SWIG_fail; | |
23151 | } | |
23152 | Py_INCREF(Py_None); resultobj = Py_None; | |
23153 | return resultobj; | |
23154 | fail: | |
23155 | return NULL; | |
23156 | } | |
23157 | ||
23158 | ||
c32bde28 | 23159 | static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23160 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23161 | wxListItem *arg1 = (wxListItem *) 0 ; |
23162 | long arg2 ; | |
23163 | PyObject * obj0 = 0 ; | |
994141e6 | 23164 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23165 | char *kwnames[] = { |
23166 | (char *) "self",(char *) "data", NULL | |
23167 | }; | |
23168 | ||
994141e6 | 23169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23172 | { | |
32fe5131 | 23173 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23174 | if (SWIG_arg_fail(2)) SWIG_fail; |
23175 | } | |
d14a1e28 RD |
23176 | { |
23177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23178 | (arg1)->SetData(arg2); | |
23179 | ||
23180 | wxPyEndAllowThreads(__tstate); | |
23181 | if (PyErr_Occurred()) SWIG_fail; | |
23182 | } | |
23183 | Py_INCREF(Py_None); resultobj = Py_None; | |
23184 | return resultobj; | |
23185 | fail: | |
23186 | return NULL; | |
23187 | } | |
23188 | ||
23189 | ||
c32bde28 | 23190 | static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23191 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23192 | wxListItem *arg1 = (wxListItem *) 0 ; |
23193 | int arg2 ; | |
23194 | PyObject * obj0 = 0 ; | |
994141e6 | 23195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23196 | char *kwnames[] = { |
23197 | (char *) "self",(char *) "width", NULL | |
23198 | }; | |
23199 | ||
994141e6 | 23200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23201 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23202 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23203 | { | |
32fe5131 | 23204 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23205 | if (SWIG_arg_fail(2)) SWIG_fail; |
23206 | } | |
d14a1e28 RD |
23207 | { |
23208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23209 | (arg1)->SetWidth(arg2); | |
23210 | ||
23211 | wxPyEndAllowThreads(__tstate); | |
23212 | if (PyErr_Occurred()) SWIG_fail; | |
23213 | } | |
23214 | Py_INCREF(Py_None); resultobj = Py_None; | |
23215 | return resultobj; | |
23216 | fail: | |
23217 | return NULL; | |
23218 | } | |
23219 | ||
23220 | ||
c32bde28 | 23221 | static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23222 | PyObject *resultobj = NULL; |
d14a1e28 | 23223 | wxListItem *arg1 = (wxListItem *) 0 ; |
093d3ff1 | 23224 | wxListColumnFormat arg2 ; |
d14a1e28 | 23225 | PyObject * obj0 = 0 ; |
994141e6 | 23226 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23227 | char *kwnames[] = { |
23228 | (char *) "self",(char *) "align", NULL | |
23229 | }; | |
23230 | ||
994141e6 | 23231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23232 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23233 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23234 | { | |
32fe5131 | 23235 | arg2 = static_cast<wxListColumnFormat >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23236 | if (SWIG_arg_fail(2)) SWIG_fail; |
23237 | } | |
d14a1e28 RD |
23238 | { |
23239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 23240 | (arg1)->SetAlign(arg2); |
d14a1e28 RD |
23241 | |
23242 | wxPyEndAllowThreads(__tstate); | |
23243 | if (PyErr_Occurred()) SWIG_fail; | |
23244 | } | |
23245 | Py_INCREF(Py_None); resultobj = Py_None; | |
23246 | return resultobj; | |
23247 | fail: | |
23248 | return NULL; | |
23249 | } | |
23250 | ||
23251 | ||
c32bde28 | 23252 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23253 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23254 | wxListItem *arg1 = (wxListItem *) 0 ; |
23255 | wxColour *arg2 = 0 ; | |
23256 | wxColour temp2 ; | |
23257 | PyObject * obj0 = 0 ; | |
23258 | PyObject * obj1 = 0 ; | |
23259 | char *kwnames[] = { | |
23260 | (char *) "self",(char *) "colText", NULL | |
23261 | }; | |
23262 | ||
23263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23264 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23265 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23266 | { |
23267 | arg2 = &temp2; | |
23268 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23269 | } | |
23270 | { | |
23271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23272 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
23273 | ||
23274 | wxPyEndAllowThreads(__tstate); | |
23275 | if (PyErr_Occurred()) SWIG_fail; | |
23276 | } | |
23277 | Py_INCREF(Py_None); resultobj = Py_None; | |
23278 | return resultobj; | |
23279 | fail: | |
23280 | return NULL; | |
23281 | } | |
23282 | ||
23283 | ||
c32bde28 | 23284 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23285 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23286 | wxListItem *arg1 = (wxListItem *) 0 ; |
23287 | wxColour *arg2 = 0 ; | |
23288 | wxColour temp2 ; | |
23289 | PyObject * obj0 = 0 ; | |
23290 | PyObject * obj1 = 0 ; | |
23291 | char *kwnames[] = { | |
23292 | (char *) "self",(char *) "colBack", NULL | |
23293 | }; | |
23294 | ||
23295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23298 | { |
23299 | arg2 = &temp2; | |
23300 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
23301 | } | |
23302 | { | |
23303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23304 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
23305 | ||
23306 | wxPyEndAllowThreads(__tstate); | |
23307 | if (PyErr_Occurred()) SWIG_fail; | |
23308 | } | |
23309 | Py_INCREF(Py_None); resultobj = Py_None; | |
23310 | return resultobj; | |
23311 | fail: | |
23312 | return NULL; | |
23313 | } | |
23314 | ||
23315 | ||
c32bde28 | 23316 | static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23317 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23318 | wxListItem *arg1 = (wxListItem *) 0 ; |
23319 | wxFont *arg2 = 0 ; | |
23320 | PyObject * obj0 = 0 ; | |
23321 | PyObject * obj1 = 0 ; | |
23322 | char *kwnames[] = { | |
23323 | (char *) "self",(char *) "font", NULL | |
23324 | }; | |
23325 | ||
23326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
23327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23329 | { | |
23330 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
23331 | if (SWIG_arg_fail(2)) SWIG_fail; | |
23332 | if (arg2 == NULL) { | |
23333 | SWIG_null_ref("wxFont"); | |
23334 | } | |
23335 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
23336 | } |
23337 | { | |
23338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23339 | (arg1)->SetFont((wxFont const &)*arg2); | |
23340 | ||
23341 | wxPyEndAllowThreads(__tstate); | |
23342 | if (PyErr_Occurred()) SWIG_fail; | |
23343 | } | |
23344 | Py_INCREF(Py_None); resultobj = Py_None; | |
23345 | return resultobj; | |
23346 | fail: | |
23347 | return NULL; | |
23348 | } | |
23349 | ||
23350 | ||
c32bde28 | 23351 | static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23352 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23353 | wxListItem *arg1 = (wxListItem *) 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:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23363 | { |
23364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23365 | result = (long)(arg1)->GetMask(); | |
23366 | ||
23367 | wxPyEndAllowThreads(__tstate); | |
23368 | if (PyErr_Occurred()) SWIG_fail; | |
23369 | } | |
093d3ff1 | 23370 | { |
32fe5131 | 23371 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23372 | } |
d14a1e28 RD |
23373 | return resultobj; |
23374 | fail: | |
23375 | return NULL; | |
23376 | } | |
23377 | ||
23378 | ||
c32bde28 | 23379 | static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23380 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23381 | wxListItem *arg1 = (wxListItem *) 0 ; |
23382 | long result; | |
23383 | PyObject * obj0 = 0 ; | |
23384 | char *kwnames[] = { | |
23385 | (char *) "self", NULL | |
23386 | }; | |
23387 | ||
23388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23389 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23390 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23391 | { |
23392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23393 | result = (long)(arg1)->GetId(); | |
23394 | ||
23395 | wxPyEndAllowThreads(__tstate); | |
23396 | if (PyErr_Occurred()) SWIG_fail; | |
23397 | } | |
093d3ff1 | 23398 | { |
32fe5131 | 23399 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23400 | } |
d14a1e28 RD |
23401 | return resultobj; |
23402 | fail: | |
23403 | return NULL; | |
23404 | } | |
23405 | ||
23406 | ||
c32bde28 | 23407 | static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23408 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23409 | wxListItem *arg1 = (wxListItem *) 0 ; |
23410 | int result; | |
23411 | PyObject * obj0 = 0 ; | |
23412 | char *kwnames[] = { | |
23413 | (char *) "self", NULL | |
23414 | }; | |
23415 | ||
23416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23417 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23418 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23419 | { |
23420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23421 | result = (int)(arg1)->GetColumn(); | |
23422 | ||
23423 | wxPyEndAllowThreads(__tstate); | |
23424 | if (PyErr_Occurred()) SWIG_fail; | |
23425 | } | |
093d3ff1 | 23426 | { |
32fe5131 | 23427 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23428 | } |
d14a1e28 RD |
23429 | return resultobj; |
23430 | fail: | |
23431 | return NULL; | |
23432 | } | |
23433 | ||
23434 | ||
c32bde28 | 23435 | static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23436 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23437 | wxListItem *arg1 = (wxListItem *) 0 ; |
23438 | long result; | |
23439 | PyObject * obj0 = 0 ; | |
23440 | char *kwnames[] = { | |
23441 | (char *) "self", NULL | |
23442 | }; | |
23443 | ||
23444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23447 | { |
23448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23449 | result = (long)(arg1)->GetState(); | |
23450 | ||
23451 | wxPyEndAllowThreads(__tstate); | |
23452 | if (PyErr_Occurred()) SWIG_fail; | |
23453 | } | |
093d3ff1 | 23454 | { |
32fe5131 | 23455 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23456 | } |
d14a1e28 RD |
23457 | return resultobj; |
23458 | fail: | |
23459 | return NULL; | |
23460 | } | |
23461 | ||
23462 | ||
c32bde28 | 23463 | static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23464 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23465 | wxListItem *arg1 = (wxListItem *) 0 ; |
23466 | wxString *result; | |
23467 | PyObject * obj0 = 0 ; | |
23468 | char *kwnames[] = { | |
23469 | (char *) "self", NULL | |
23470 | }; | |
23471 | ||
23472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23473 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23474 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23475 | { |
23476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23477 | { | |
23478 | wxString const &_result_ref = (arg1)->GetText(); | |
23479 | result = (wxString *) &_result_ref; | |
23480 | } | |
23481 | ||
23482 | wxPyEndAllowThreads(__tstate); | |
23483 | if (PyErr_Occurred()) SWIG_fail; | |
23484 | } | |
cc6dd355 RD |
23485 | { |
23486 | #if wxUSE_UNICODE | |
23487 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23488 | #else | |
23489 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23490 | #endif | |
23491 | } | |
d14a1e28 RD |
23492 | return resultobj; |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
c32bde28 | 23498 | static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23499 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23500 | wxListItem *arg1 = (wxListItem *) 0 ; |
23501 | int result; | |
23502 | PyObject * obj0 = 0 ; | |
23503 | char *kwnames[] = { | |
23504 | (char *) "self", NULL | |
23505 | }; | |
23506 | ||
23507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23510 | { |
23511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23512 | result = (int)(arg1)->GetImage(); | |
23513 | ||
23514 | wxPyEndAllowThreads(__tstate); | |
23515 | if (PyErr_Occurred()) SWIG_fail; | |
23516 | } | |
093d3ff1 | 23517 | { |
32fe5131 | 23518 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23519 | } |
d14a1e28 RD |
23520 | return resultobj; |
23521 | fail: | |
23522 | return NULL; | |
23523 | } | |
23524 | ||
23525 | ||
c32bde28 | 23526 | static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23527 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23528 | wxListItem *arg1 = (wxListItem *) 0 ; |
23529 | long result; | |
23530 | PyObject * obj0 = 0 ; | |
23531 | char *kwnames[] = { | |
23532 | (char *) "self", NULL | |
23533 | }; | |
23534 | ||
23535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23536 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23537 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23538 | { |
23539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23540 | result = (long)(arg1)->GetData(); | |
23541 | ||
23542 | wxPyEndAllowThreads(__tstate); | |
23543 | if (PyErr_Occurred()) SWIG_fail; | |
23544 | } | |
093d3ff1 | 23545 | { |
32fe5131 | 23546 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23547 | } |
d14a1e28 RD |
23548 | return resultobj; |
23549 | fail: | |
23550 | return NULL; | |
23551 | } | |
23552 | ||
23553 | ||
c32bde28 | 23554 | static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23555 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23556 | wxListItem *arg1 = (wxListItem *) 0 ; |
23557 | int result; | |
23558 | PyObject * obj0 = 0 ; | |
23559 | char *kwnames[] = { | |
23560 | (char *) "self", NULL | |
23561 | }; | |
23562 | ||
23563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23564 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23565 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23566 | { |
23567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23568 | result = (int)(arg1)->GetWidth(); | |
23569 | ||
23570 | wxPyEndAllowThreads(__tstate); | |
23571 | if (PyErr_Occurred()) SWIG_fail; | |
23572 | } | |
093d3ff1 | 23573 | { |
32fe5131 | 23574 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23575 | } |
d14a1e28 RD |
23576 | return resultobj; |
23577 | fail: | |
23578 | return NULL; | |
23579 | } | |
23580 | ||
23581 | ||
c32bde28 | 23582 | static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23583 | PyObject *resultobj = NULL; |
d14a1e28 | 23584 | wxListItem *arg1 = (wxListItem *) 0 ; |
093d3ff1 | 23585 | wxListColumnFormat result; |
d14a1e28 RD |
23586 | PyObject * obj0 = 0 ; |
23587 | char *kwnames[] = { | |
23588 | (char *) "self", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23592 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23593 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23594 | { |
23595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 23596 | result = (wxListColumnFormat)(arg1)->GetAlign(); |
d14a1e28 RD |
23597 | |
23598 | wxPyEndAllowThreads(__tstate); | |
23599 | if (PyErr_Occurred()) SWIG_fail; | |
23600 | } | |
093d3ff1 | 23601 | resultobj = SWIG_From_int((result)); |
d14a1e28 RD |
23602 | return resultobj; |
23603 | fail: | |
23604 | return NULL; | |
23605 | } | |
23606 | ||
23607 | ||
c32bde28 | 23608 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23609 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23610 | wxListItem *arg1 = (wxListItem *) 0 ; |
23611 | wxListItemAttr *result; | |
23612 | PyObject * obj0 = 0 ; | |
23613 | char *kwnames[] = { | |
23614 | (char *) "self", NULL | |
23615 | }; | |
23616 | ||
23617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23618 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23619 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23620 | { |
23621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23622 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
23623 | ||
23624 | wxPyEndAllowThreads(__tstate); | |
23625 | if (PyErr_Occurred()) SWIG_fail; | |
23626 | } | |
15afbcd0 | 23627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
23628 | return resultobj; |
23629 | fail: | |
23630 | return NULL; | |
23631 | } | |
23632 | ||
23633 | ||
c32bde28 | 23634 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23635 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23636 | wxListItem *arg1 = (wxListItem *) 0 ; |
23637 | bool result; | |
23638 | PyObject * obj0 = 0 ; | |
23639 | char *kwnames[] = { | |
23640 | (char *) "self", NULL | |
23641 | }; | |
23642 | ||
23643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23646 | { |
23647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23648 | result = (bool)(arg1)->HasAttributes(); | |
23649 | ||
23650 | wxPyEndAllowThreads(__tstate); | |
23651 | if (PyErr_Occurred()) SWIG_fail; | |
23652 | } | |
4f89f6a3 RD |
23653 | { |
23654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23655 | } | |
d14a1e28 RD |
23656 | return resultobj; |
23657 | fail: | |
23658 | return NULL; | |
23659 | } | |
23660 | ||
23661 | ||
c32bde28 | 23662 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23663 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23664 | wxListItem *arg1 = (wxListItem *) 0 ; |
23665 | wxColour result; | |
23666 | PyObject * obj0 = 0 ; | |
23667 | char *kwnames[] = { | |
23668 | (char *) "self", NULL | |
23669 | }; | |
23670 | ||
23671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23674 | { |
23675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23676 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
23677 | ||
23678 | wxPyEndAllowThreads(__tstate); | |
23679 | if (PyErr_Occurred()) SWIG_fail; | |
23680 | } | |
23681 | { | |
23682 | wxColour * resultptr; | |
32fe5131 | 23683 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 23684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23685 | } |
23686 | return resultobj; | |
23687 | fail: | |
23688 | return NULL; | |
23689 | } | |
23690 | ||
23691 | ||
c32bde28 | 23692 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23693 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23694 | wxListItem *arg1 = (wxListItem *) 0 ; |
23695 | wxColour result; | |
23696 | PyObject * obj0 = 0 ; | |
23697 | char *kwnames[] = { | |
23698 | (char *) "self", NULL | |
23699 | }; | |
23700 | ||
23701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23702 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23703 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23704 | { |
23705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23706 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
23707 | ||
23708 | wxPyEndAllowThreads(__tstate); | |
23709 | if (PyErr_Occurred()) SWIG_fail; | |
23710 | } | |
23711 | { | |
23712 | wxColour * resultptr; | |
32fe5131 | 23713 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 23714 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23715 | } |
23716 | return resultobj; | |
23717 | fail: | |
23718 | return NULL; | |
23719 | } | |
23720 | ||
23721 | ||
c32bde28 | 23722 | static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23723 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23724 | wxListItem *arg1 = (wxListItem *) 0 ; |
23725 | wxFont result; | |
23726 | PyObject * obj0 = 0 ; | |
23727 | char *kwnames[] = { | |
23728 | (char *) "self", NULL | |
23729 | }; | |
23730 | ||
23731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23732 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23733 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23734 | { |
23735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23736 | result = ((wxListItem const *)arg1)->GetFont(); | |
23737 | ||
23738 | wxPyEndAllowThreads(__tstate); | |
23739 | if (PyErr_Occurred()) SWIG_fail; | |
23740 | } | |
23741 | { | |
23742 | wxFont * resultptr; | |
32fe5131 | 23743 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
15afbcd0 | 23744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
23745 | } |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
23749 | } | |
23750 | ||
23751 | ||
c32bde28 | 23752 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23753 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23754 | wxListItem *arg1 = (wxListItem *) 0 ; |
23755 | long arg2 ; | |
23756 | PyObject * obj0 = 0 ; | |
994141e6 | 23757 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23758 | char *kwnames[] = { |
23759 | (char *) "self",(char *) "m_mask", NULL | |
23760 | }; | |
23761 | ||
994141e6 | 23762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23763 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23764 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23765 | { | |
32fe5131 | 23766 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23767 | if (SWIG_arg_fail(2)) SWIG_fail; |
23768 | } | |
d14a1e28 RD |
23769 | if (arg1) (arg1)->m_mask = arg2; |
23770 | ||
23771 | Py_INCREF(Py_None); resultobj = Py_None; | |
23772 | return resultobj; | |
23773 | fail: | |
23774 | return NULL; | |
23775 | } | |
23776 | ||
23777 | ||
c32bde28 | 23778 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23779 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23780 | wxListItem *arg1 = (wxListItem *) 0 ; |
23781 | long result; | |
23782 | PyObject * obj0 = 0 ; | |
23783 | char *kwnames[] = { | |
23784 | (char *) "self", NULL | |
23785 | }; | |
23786 | ||
23787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23788 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23789 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23790 | result = (long) ((arg1)->m_mask); |
23791 | ||
093d3ff1 | 23792 | { |
32fe5131 | 23793 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23794 | } |
d14a1e28 RD |
23795 | return resultobj; |
23796 | fail: | |
23797 | return NULL; | |
23798 | } | |
23799 | ||
23800 | ||
c32bde28 | 23801 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23802 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23803 | wxListItem *arg1 = (wxListItem *) 0 ; |
23804 | long arg2 ; | |
23805 | PyObject * obj0 = 0 ; | |
994141e6 | 23806 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23807 | char *kwnames[] = { |
23808 | (char *) "self",(char *) "m_itemId", NULL | |
23809 | }; | |
23810 | ||
994141e6 | 23811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23812 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23813 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23814 | { | |
32fe5131 | 23815 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23816 | if (SWIG_arg_fail(2)) SWIG_fail; |
23817 | } | |
d14a1e28 RD |
23818 | if (arg1) (arg1)->m_itemId = arg2; |
23819 | ||
23820 | Py_INCREF(Py_None); resultobj = Py_None; | |
23821 | return resultobj; | |
23822 | fail: | |
23823 | return NULL; | |
23824 | } | |
23825 | ||
23826 | ||
c32bde28 | 23827 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23828 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23829 | wxListItem *arg1 = (wxListItem *) 0 ; |
23830 | long result; | |
23831 | PyObject * obj0 = 0 ; | |
23832 | char *kwnames[] = { | |
23833 | (char *) "self", NULL | |
23834 | }; | |
23835 | ||
23836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23837 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23838 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23839 | result = (long) ((arg1)->m_itemId); |
23840 | ||
093d3ff1 | 23841 | { |
32fe5131 | 23842 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23843 | } |
d14a1e28 RD |
23844 | return resultobj; |
23845 | fail: | |
23846 | return NULL; | |
23847 | } | |
23848 | ||
23849 | ||
c32bde28 | 23850 | static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23851 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23852 | wxListItem *arg1 = (wxListItem *) 0 ; |
23853 | int arg2 ; | |
23854 | PyObject * obj0 = 0 ; | |
994141e6 | 23855 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23856 | char *kwnames[] = { |
23857 | (char *) "self",(char *) "m_col", NULL | |
23858 | }; | |
23859 | ||
994141e6 | 23860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23861 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23862 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23863 | { | |
32fe5131 | 23864 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
23865 | if (SWIG_arg_fail(2)) SWIG_fail; |
23866 | } | |
d14a1e28 RD |
23867 | if (arg1) (arg1)->m_col = arg2; |
23868 | ||
23869 | Py_INCREF(Py_None); resultobj = Py_None; | |
23870 | return resultobj; | |
23871 | fail: | |
23872 | return NULL; | |
23873 | } | |
23874 | ||
23875 | ||
c32bde28 | 23876 | static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23877 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23878 | wxListItem *arg1 = (wxListItem *) 0 ; |
23879 | int result; | |
23880 | PyObject * obj0 = 0 ; | |
23881 | char *kwnames[] = { | |
23882 | (char *) "self", NULL | |
23883 | }; | |
23884 | ||
23885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23886 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23887 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23888 | result = (int) ((arg1)->m_col); |
23889 | ||
093d3ff1 | 23890 | { |
32fe5131 | 23891 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 23892 | } |
d14a1e28 RD |
23893 | return resultobj; |
23894 | fail: | |
23895 | return NULL; | |
23896 | } | |
23897 | ||
23898 | ||
c32bde28 | 23899 | static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23900 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23901 | wxListItem *arg1 = (wxListItem *) 0 ; |
23902 | long arg2 ; | |
23903 | PyObject * obj0 = 0 ; | |
994141e6 | 23904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23905 | char *kwnames[] = { |
23906 | (char *) "self",(char *) "m_state", NULL | |
23907 | }; | |
23908 | ||
994141e6 | 23909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23912 | { | |
32fe5131 | 23913 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23914 | if (SWIG_arg_fail(2)) SWIG_fail; |
23915 | } | |
d14a1e28 RD |
23916 | if (arg1) (arg1)->m_state = arg2; |
23917 | ||
23918 | Py_INCREF(Py_None); resultobj = Py_None; | |
23919 | return resultobj; | |
23920 | fail: | |
23921 | return NULL; | |
23922 | } | |
23923 | ||
23924 | ||
c32bde28 | 23925 | static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23926 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23927 | wxListItem *arg1 = (wxListItem *) 0 ; |
23928 | long result; | |
23929 | PyObject * obj0 = 0 ; | |
23930 | char *kwnames[] = { | |
23931 | (char *) "self", NULL | |
23932 | }; | |
23933 | ||
23934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23935 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23936 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23937 | result = (long) ((arg1)->m_state); |
23938 | ||
093d3ff1 | 23939 | { |
32fe5131 | 23940 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23941 | } |
d14a1e28 RD |
23942 | return resultobj; |
23943 | fail: | |
23944 | return NULL; | |
23945 | } | |
23946 | ||
23947 | ||
c32bde28 | 23948 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23949 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23950 | wxListItem *arg1 = (wxListItem *) 0 ; |
23951 | long arg2 ; | |
23952 | PyObject * obj0 = 0 ; | |
994141e6 | 23953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23954 | char *kwnames[] = { |
23955 | (char *) "self",(char *) "m_stateMask", NULL | |
23956 | }; | |
23957 | ||
994141e6 | 23958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
23959 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23960 | if (SWIG_arg_fail(1)) SWIG_fail; | |
23961 | { | |
32fe5131 | 23962 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
23963 | if (SWIG_arg_fail(2)) SWIG_fail; |
23964 | } | |
d14a1e28 RD |
23965 | if (arg1) (arg1)->m_stateMask = arg2; |
23966 | ||
23967 | Py_INCREF(Py_None); resultobj = Py_None; | |
23968 | return resultobj; | |
23969 | fail: | |
23970 | return NULL; | |
23971 | } | |
23972 | ||
23973 | ||
c32bde28 | 23974 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23975 | PyObject *resultobj = NULL; |
d14a1e28 RD |
23976 | wxListItem *arg1 = (wxListItem *) 0 ; |
23977 | long result; | |
23978 | PyObject * obj0 = 0 ; | |
23979 | char *kwnames[] = { | |
23980 | (char *) "self", NULL | |
23981 | }; | |
23982 | ||
23983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
23984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
23985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
23986 | result = (long) ((arg1)->m_stateMask); |
23987 | ||
093d3ff1 | 23988 | { |
32fe5131 | 23989 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 23990 | } |
d14a1e28 RD |
23991 | return resultobj; |
23992 | fail: | |
23993 | return NULL; | |
23994 | } | |
23995 | ||
23996 | ||
c32bde28 | 23997 | static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 23998 | PyObject *resultobj = NULL; |
d14a1e28 | 23999 | wxListItem *arg1 = (wxListItem *) 0 ; |
196addbf | 24000 | wxString *arg2 = (wxString *) 0 ; |
ae8162c8 | 24001 | bool temp2 = false ; |
d14a1e28 RD |
24002 | PyObject * obj0 = 0 ; |
24003 | PyObject * obj1 = 0 ; | |
24004 | char *kwnames[] = { | |
24005 | (char *) "self",(char *) "m_text", NULL | |
24006 | }; | |
24007 | ||
24008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24009 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24010 | if (SWIG_arg_fail(1)) SWIG_fail; | |
7eae615b RD |
24011 | { |
24012 | arg2 = wxString_in_helper(obj1); | |
24013 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 24014 | temp2 = true; |
7eae615b | 24015 | } |
196addbf | 24016 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
24017 | |
24018 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
24019 | { |
24020 | if (temp2) | |
24021 | delete arg2; | |
24022 | } | |
d14a1e28 RD |
24023 | return resultobj; |
24024 | fail: | |
7eae615b RD |
24025 | { |
24026 | if (temp2) | |
24027 | delete arg2; | |
24028 | } | |
d14a1e28 RD |
24029 | return NULL; |
24030 | } | |
24031 | ||
24032 | ||
c32bde28 | 24033 | static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24034 | PyObject *resultobj = NULL; |
d14a1e28 | 24035 | wxListItem *arg1 = (wxListItem *) 0 ; |
196addbf | 24036 | wxString *result; |
d14a1e28 RD |
24037 | PyObject * obj0 = 0 ; |
24038 | char *kwnames[] = { | |
24039 | (char *) "self", NULL | |
24040 | }; | |
24041 | ||
24042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24043 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24044 | if (SWIG_arg_fail(1)) SWIG_fail; | |
196addbf | 24045 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
24046 | |
24047 | { | |
24048 | #if wxUSE_UNICODE | |
196addbf | 24049 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 24050 | #else |
196addbf | 24051 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
24052 | #endif |
24053 | } | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
c32bde28 | 24060 | static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24061 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24062 | wxListItem *arg1 = (wxListItem *) 0 ; |
24063 | int arg2 ; | |
24064 | PyObject * obj0 = 0 ; | |
994141e6 | 24065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24066 | char *kwnames[] = { |
24067 | (char *) "self",(char *) "m_image", NULL | |
24068 | }; | |
24069 | ||
994141e6 | 24070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24071 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24072 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24073 | { | |
32fe5131 | 24074 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24075 | if (SWIG_arg_fail(2)) SWIG_fail; |
24076 | } | |
d14a1e28 RD |
24077 | if (arg1) (arg1)->m_image = arg2; |
24078 | ||
24079 | Py_INCREF(Py_None); resultobj = Py_None; | |
24080 | return resultobj; | |
24081 | fail: | |
24082 | return NULL; | |
24083 | } | |
24084 | ||
24085 | ||
c32bde28 | 24086 | static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24087 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24088 | wxListItem *arg1 = (wxListItem *) 0 ; |
24089 | int result; | |
24090 | PyObject * obj0 = 0 ; | |
24091 | char *kwnames[] = { | |
24092 | (char *) "self", NULL | |
24093 | }; | |
24094 | ||
24095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24096 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24097 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24098 | result = (int) ((arg1)->m_image); |
24099 | ||
093d3ff1 | 24100 | { |
32fe5131 | 24101 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24102 | } |
d14a1e28 RD |
24103 | return resultobj; |
24104 | fail: | |
24105 | return NULL; | |
24106 | } | |
24107 | ||
24108 | ||
c32bde28 | 24109 | static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24110 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24111 | wxListItem *arg1 = (wxListItem *) 0 ; |
24112 | long arg2 ; | |
24113 | PyObject * obj0 = 0 ; | |
994141e6 | 24114 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24115 | char *kwnames[] = { |
24116 | (char *) "self",(char *) "m_data", NULL | |
24117 | }; | |
24118 | ||
994141e6 | 24119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24120 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24121 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24122 | { | |
32fe5131 | 24123 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24124 | if (SWIG_arg_fail(2)) SWIG_fail; |
24125 | } | |
d14a1e28 RD |
24126 | if (arg1) (arg1)->m_data = arg2; |
24127 | ||
24128 | Py_INCREF(Py_None); resultobj = Py_None; | |
24129 | return resultobj; | |
24130 | fail: | |
24131 | return NULL; | |
24132 | } | |
24133 | ||
24134 | ||
c32bde28 | 24135 | static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24136 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24137 | wxListItem *arg1 = (wxListItem *) 0 ; |
24138 | long result; | |
24139 | PyObject * obj0 = 0 ; | |
24140 | char *kwnames[] = { | |
24141 | (char *) "self", NULL | |
24142 | }; | |
24143 | ||
24144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24145 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24146 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24147 | result = (long) ((arg1)->m_data); |
24148 | ||
093d3ff1 | 24149 | { |
32fe5131 | 24150 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24151 | } |
d14a1e28 RD |
24152 | return resultobj; |
24153 | fail: | |
24154 | return NULL; | |
24155 | } | |
24156 | ||
24157 | ||
c32bde28 | 24158 | static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24159 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24160 | wxListItem *arg1 = (wxListItem *) 0 ; |
24161 | int arg2 ; | |
24162 | PyObject * obj0 = 0 ; | |
994141e6 | 24163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24164 | char *kwnames[] = { |
24165 | (char *) "self",(char *) "m_format", NULL | |
24166 | }; | |
24167 | ||
994141e6 | 24168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24171 | { | |
32fe5131 | 24172 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24173 | if (SWIG_arg_fail(2)) SWIG_fail; |
24174 | } | |
d14a1e28 RD |
24175 | if (arg1) (arg1)->m_format = arg2; |
24176 | ||
24177 | Py_INCREF(Py_None); resultobj = Py_None; | |
24178 | return resultobj; | |
24179 | fail: | |
24180 | return NULL; | |
24181 | } | |
24182 | ||
24183 | ||
c32bde28 | 24184 | static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24185 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24186 | wxListItem *arg1 = (wxListItem *) 0 ; |
24187 | int result; | |
24188 | PyObject * obj0 = 0 ; | |
24189 | char *kwnames[] = { | |
24190 | (char *) "self", NULL | |
24191 | }; | |
24192 | ||
24193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24194 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24195 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24196 | result = (int) ((arg1)->m_format); |
24197 | ||
093d3ff1 | 24198 | { |
32fe5131 | 24199 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24200 | } |
d14a1e28 RD |
24201 | return resultobj; |
24202 | fail: | |
24203 | return NULL; | |
24204 | } | |
24205 | ||
24206 | ||
c32bde28 | 24207 | static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24208 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24209 | wxListItem *arg1 = (wxListItem *) 0 ; |
24210 | int arg2 ; | |
24211 | PyObject * obj0 = 0 ; | |
994141e6 | 24212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24213 | char *kwnames[] = { |
24214 | (char *) "self",(char *) "m_width", NULL | |
24215 | }; | |
24216 | ||
994141e6 | 24217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24218 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24219 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24220 | { | |
32fe5131 | 24221 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24222 | if (SWIG_arg_fail(2)) SWIG_fail; |
24223 | } | |
d14a1e28 RD |
24224 | if (arg1) (arg1)->m_width = arg2; |
24225 | ||
24226 | Py_INCREF(Py_None); resultobj = Py_None; | |
24227 | return resultobj; | |
24228 | fail: | |
24229 | return NULL; | |
24230 | } | |
24231 | ||
24232 | ||
c32bde28 | 24233 | static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24234 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24235 | wxListItem *arg1 = (wxListItem *) 0 ; |
24236 | int result; | |
24237 | PyObject * obj0 = 0 ; | |
24238 | char *kwnames[] = { | |
24239 | (char *) "self", NULL | |
24240 | }; | |
24241 | ||
24242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); |
24244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24245 | result = (int) ((arg1)->m_width); |
24246 | ||
093d3ff1 | 24247 | { |
32fe5131 | 24248 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24249 | } |
d14a1e28 RD |
24250 | return resultobj; |
24251 | fail: | |
24252 | return NULL; | |
24253 | } | |
24254 | ||
24255 | ||
c32bde28 | 24256 | static PyObject * ListItem_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24257 | PyObject *obj; |
24258 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24259 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
24260 | Py_INCREF(obj); | |
24261 | return Py_BuildValue((char *)""); | |
24262 | } | |
c32bde28 | 24263 | static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24264 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24265 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
24266 | int arg2 = (int) 0 ; | |
24267 | wxListEvent *result; | |
994141e6 RD |
24268 | PyObject * obj0 = 0 ; |
24269 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
24270 | char *kwnames[] = { |
24271 | (char *) "commandType",(char *) "id", NULL | |
24272 | }; | |
24273 | ||
994141e6 RD |
24274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
24275 | if (obj0) { | |
093d3ff1 | 24276 | { |
32fe5131 | 24277 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
24278 | if (SWIG_arg_fail(1)) SWIG_fail; |
24279 | } | |
994141e6 RD |
24280 | } |
24281 | if (obj1) { | |
093d3ff1 | 24282 | { |
32fe5131 | 24283 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24284 | if (SWIG_arg_fail(2)) SWIG_fail; |
24285 | } | |
994141e6 | 24286 | } |
d14a1e28 RD |
24287 | { |
24288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24289 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
24290 | ||
24291 | wxPyEndAllowThreads(__tstate); | |
24292 | if (PyErr_Occurred()) SWIG_fail; | |
24293 | } | |
15afbcd0 | 24294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
24295 | return resultobj; |
24296 | fail: | |
24297 | return NULL; | |
24298 | } | |
24299 | ||
24300 | ||
c32bde28 | 24301 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24302 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24303 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24304 | int arg2 ; | |
24305 | PyObject * obj0 = 0 ; | |
994141e6 | 24306 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24307 | char *kwnames[] = { |
24308 | (char *) "self",(char *) "m_code", NULL | |
24309 | }; | |
24310 | ||
994141e6 | 24311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24312 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24313 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24314 | { | |
32fe5131 | 24315 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24316 | if (SWIG_arg_fail(2)) SWIG_fail; |
24317 | } | |
d14a1e28 RD |
24318 | if (arg1) (arg1)->m_code = arg2; |
24319 | ||
24320 | Py_INCREF(Py_None); resultobj = Py_None; | |
24321 | return resultobj; | |
24322 | fail: | |
24323 | return NULL; | |
24324 | } | |
24325 | ||
24326 | ||
c32bde28 | 24327 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24328 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24329 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24330 | int result; | |
24331 | PyObject * obj0 = 0 ; | |
24332 | char *kwnames[] = { | |
24333 | (char *) "self", NULL | |
24334 | }; | |
24335 | ||
24336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24339 | result = (int) ((arg1)->m_code); |
24340 | ||
093d3ff1 | 24341 | { |
32fe5131 | 24342 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24343 | } |
d14a1e28 RD |
24344 | return resultobj; |
24345 | fail: | |
24346 | return NULL; | |
24347 | } | |
24348 | ||
24349 | ||
c32bde28 | 24350 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24351 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24352 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24353 | long arg2 ; | |
24354 | PyObject * obj0 = 0 ; | |
994141e6 | 24355 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24356 | char *kwnames[] = { |
24357 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
24358 | }; | |
24359 | ||
994141e6 | 24360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24363 | { | |
32fe5131 | 24364 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24365 | if (SWIG_arg_fail(2)) SWIG_fail; |
24366 | } | |
d14a1e28 RD |
24367 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
24368 | ||
24369 | Py_INCREF(Py_None); resultobj = Py_None; | |
24370 | return resultobj; | |
24371 | fail: | |
24372 | return NULL; | |
24373 | } | |
24374 | ||
24375 | ||
c32bde28 | 24376 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24377 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24378 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24379 | long result; | |
24380 | PyObject * obj0 = 0 ; | |
24381 | char *kwnames[] = { | |
24382 | (char *) "self", NULL | |
24383 | }; | |
24384 | ||
24385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24388 | result = (long) ((arg1)->m_oldItemIndex); |
24389 | ||
093d3ff1 | 24390 | { |
32fe5131 | 24391 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24392 | } |
d14a1e28 RD |
24393 | return resultobj; |
24394 | fail: | |
24395 | return NULL; | |
24396 | } | |
24397 | ||
24398 | ||
c32bde28 | 24399 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24400 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24401 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24402 | long arg2 ; | |
24403 | PyObject * obj0 = 0 ; | |
994141e6 | 24404 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24405 | char *kwnames[] = { |
24406 | (char *) "self",(char *) "m_itemIndex", NULL | |
24407 | }; | |
24408 | ||
994141e6 | 24409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24410 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24411 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24412 | { | |
32fe5131 | 24413 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
24414 | if (SWIG_arg_fail(2)) SWIG_fail; |
24415 | } | |
d14a1e28 RD |
24416 | if (arg1) (arg1)->m_itemIndex = arg2; |
24417 | ||
24418 | Py_INCREF(Py_None); resultobj = Py_None; | |
24419 | return resultobj; | |
24420 | fail: | |
24421 | return NULL; | |
24422 | } | |
24423 | ||
24424 | ||
c32bde28 | 24425 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24426 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24427 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24428 | long result; | |
24429 | PyObject * obj0 = 0 ; | |
24430 | char *kwnames[] = { | |
24431 | (char *) "self", NULL | |
24432 | }; | |
24433 | ||
24434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24435 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24436 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24437 | result = (long) ((arg1)->m_itemIndex); |
24438 | ||
093d3ff1 | 24439 | { |
32fe5131 | 24440 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24441 | } |
d14a1e28 RD |
24442 | return resultobj; |
24443 | fail: | |
24444 | return NULL; | |
24445 | } | |
24446 | ||
24447 | ||
c32bde28 | 24448 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24449 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24450 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24451 | int arg2 ; | |
24452 | PyObject * obj0 = 0 ; | |
994141e6 | 24453 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24454 | char *kwnames[] = { |
24455 | (char *) "self",(char *) "m_col", NULL | |
24456 | }; | |
24457 | ||
994141e6 | 24458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
24459 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24460 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24461 | { | |
32fe5131 | 24462 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
24463 | if (SWIG_arg_fail(2)) SWIG_fail; |
24464 | } | |
d14a1e28 RD |
24465 | if (arg1) (arg1)->m_col = arg2; |
24466 | ||
24467 | Py_INCREF(Py_None); resultobj = Py_None; | |
24468 | return resultobj; | |
24469 | fail: | |
24470 | return NULL; | |
24471 | } | |
24472 | ||
24473 | ||
c32bde28 | 24474 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24475 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24476 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24477 | int result; | |
24478 | PyObject * obj0 = 0 ; | |
24479 | char *kwnames[] = { | |
24480 | (char *) "self", NULL | |
24481 | }; | |
24482 | ||
24483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24484 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24485 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24486 | result = (int) ((arg1)->m_col); |
24487 | ||
093d3ff1 | 24488 | { |
32fe5131 | 24489 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24490 | } |
d14a1e28 RD |
24491 | return resultobj; |
24492 | fail: | |
24493 | return NULL; | |
24494 | } | |
24495 | ||
24496 | ||
c32bde28 | 24497 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24498 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24499 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24500 | wxPoint *arg2 = (wxPoint *) 0 ; | |
24501 | PyObject * obj0 = 0 ; | |
24502 | PyObject * obj1 = 0 ; | |
24503 | char *kwnames[] = { | |
24504 | (char *) "self",(char *) "m_pointDrag", NULL | |
24505 | }; | |
24506 | ||
24507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24508 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24509 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24510 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPoint, SWIG_POINTER_EXCEPTION | 0); | |
24511 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
24512 | if (arg1) (arg1)->m_pointDrag = *arg2; |
24513 | ||
24514 | Py_INCREF(Py_None); resultobj = Py_None; | |
24515 | return resultobj; | |
24516 | fail: | |
24517 | return NULL; | |
24518 | } | |
24519 | ||
24520 | ||
c32bde28 | 24521 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24522 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24523 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24524 | wxPoint *result; | |
24525 | PyObject * obj0 = 0 ; | |
24526 | char *kwnames[] = { | |
24527 | (char *) "self", NULL | |
24528 | }; | |
24529 | ||
24530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24533 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
24534 | ||
15afbcd0 | 24535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
24536 | return resultobj; |
24537 | fail: | |
24538 | return NULL; | |
24539 | } | |
24540 | ||
24541 | ||
c32bde28 | 24542 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24543 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24544 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24545 | wxListItem *result; | |
24546 | PyObject * obj0 = 0 ; | |
24547 | char *kwnames[] = { | |
24548 | (char *) "self", NULL | |
24549 | }; | |
24550 | ||
24551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24552 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24553 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24554 | result = (wxListItem *)& ((arg1)->m_item); |
24555 | ||
24556 | { | |
7e08d4ef | 24557 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
24558 | } |
24559 | return resultobj; | |
24560 | fail: | |
24561 | return NULL; | |
24562 | } | |
24563 | ||
24564 | ||
c32bde28 | 24565 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24566 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24567 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24568 | int result; | |
24569 | PyObject * obj0 = 0 ; | |
24570 | char *kwnames[] = { | |
24571 | (char *) "self", NULL | |
24572 | }; | |
24573 | ||
24574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24575 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24576 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24577 | { |
24578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24579 | result = (int)(arg1)->GetKeyCode(); | |
24580 | ||
24581 | wxPyEndAllowThreads(__tstate); | |
24582 | if (PyErr_Occurred()) SWIG_fail; | |
24583 | } | |
093d3ff1 | 24584 | { |
32fe5131 | 24585 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24586 | } |
d14a1e28 RD |
24587 | return resultobj; |
24588 | fail: | |
24589 | return NULL; | |
24590 | } | |
24591 | ||
24592 | ||
c32bde28 | 24593 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24594 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24595 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24596 | long result; | |
24597 | PyObject * obj0 = 0 ; | |
24598 | char *kwnames[] = { | |
24599 | (char *) "self", NULL | |
24600 | }; | |
24601 | ||
24602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24603 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24604 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24605 | { |
24606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24607 | result = (long)(arg1)->GetIndex(); | |
24608 | ||
24609 | wxPyEndAllowThreads(__tstate); | |
24610 | if (PyErr_Occurred()) SWIG_fail; | |
24611 | } | |
093d3ff1 | 24612 | { |
32fe5131 | 24613 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24614 | } |
d14a1e28 RD |
24615 | return resultobj; |
24616 | fail: | |
24617 | return NULL; | |
24618 | } | |
24619 | ||
24620 | ||
c32bde28 | 24621 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24622 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24623 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24624 | int result; | |
24625 | PyObject * obj0 = 0 ; | |
24626 | char *kwnames[] = { | |
24627 | (char *) "self", NULL | |
24628 | }; | |
24629 | ||
24630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24631 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24632 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24633 | { |
24634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24635 | result = (int)(arg1)->GetColumn(); | |
24636 | ||
24637 | wxPyEndAllowThreads(__tstate); | |
24638 | if (PyErr_Occurred()) SWIG_fail; | |
24639 | } | |
093d3ff1 | 24640 | { |
32fe5131 | 24641 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24642 | } |
d14a1e28 RD |
24643 | return resultobj; |
24644 | fail: | |
24645 | return NULL; | |
24646 | } | |
24647 | ||
24648 | ||
c32bde28 | 24649 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24650 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24651 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24652 | wxPoint result; | |
24653 | PyObject * obj0 = 0 ; | |
24654 | char *kwnames[] = { | |
24655 | (char *) "self", NULL | |
24656 | }; | |
24657 | ||
24658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24659 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24660 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24661 | { |
24662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24663 | result = (arg1)->GetPoint(); | |
24664 | ||
24665 | wxPyEndAllowThreads(__tstate); | |
24666 | if (PyErr_Occurred()) SWIG_fail; | |
24667 | } | |
24668 | { | |
24669 | wxPoint * resultptr; | |
32fe5131 | 24670 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 24671 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24672 | } |
24673 | return resultobj; | |
24674 | fail: | |
24675 | return NULL; | |
24676 | } | |
24677 | ||
24678 | ||
c32bde28 | 24679 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24680 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24681 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24682 | wxString *result; | |
24683 | PyObject * obj0 = 0 ; | |
24684 | char *kwnames[] = { | |
24685 | (char *) "self", NULL | |
24686 | }; | |
24687 | ||
24688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24689 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24690 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24691 | { |
24692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24693 | { | |
24694 | wxString const &_result_ref = (arg1)->GetLabel(); | |
24695 | result = (wxString *) &_result_ref; | |
24696 | } | |
24697 | ||
24698 | wxPyEndAllowThreads(__tstate); | |
24699 | if (PyErr_Occurred()) SWIG_fail; | |
24700 | } | |
cc6dd355 RD |
24701 | { |
24702 | #if wxUSE_UNICODE | |
24703 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24704 | #else | |
24705 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24706 | #endif | |
24707 | } | |
d14a1e28 RD |
24708 | return resultobj; |
24709 | fail: | |
24710 | return NULL; | |
24711 | } | |
24712 | ||
24713 | ||
c32bde28 | 24714 | static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24715 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24716 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24717 | wxString *result; | |
24718 | PyObject * obj0 = 0 ; | |
24719 | char *kwnames[] = { | |
24720 | (char *) "self", NULL | |
24721 | }; | |
24722 | ||
24723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24724 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24725 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24726 | { |
24727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24728 | { | |
24729 | wxString const &_result_ref = (arg1)->GetText(); | |
24730 | result = (wxString *) &_result_ref; | |
24731 | } | |
24732 | ||
24733 | wxPyEndAllowThreads(__tstate); | |
24734 | if (PyErr_Occurred()) SWIG_fail; | |
24735 | } | |
cc6dd355 RD |
24736 | { |
24737 | #if wxUSE_UNICODE | |
24738 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24739 | #else | |
24740 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24741 | #endif | |
24742 | } | |
d14a1e28 RD |
24743 | return resultobj; |
24744 | fail: | |
24745 | return NULL; | |
24746 | } | |
24747 | ||
24748 | ||
c32bde28 | 24749 | static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24750 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24751 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24752 | int result; | |
24753 | PyObject * obj0 = 0 ; | |
24754 | char *kwnames[] = { | |
24755 | (char *) "self", NULL | |
24756 | }; | |
24757 | ||
24758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24759 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24760 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24761 | { |
24762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24763 | result = (int)(arg1)->GetImage(); | |
24764 | ||
24765 | wxPyEndAllowThreads(__tstate); | |
24766 | if (PyErr_Occurred()) SWIG_fail; | |
24767 | } | |
093d3ff1 | 24768 | { |
32fe5131 | 24769 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 24770 | } |
d14a1e28 RD |
24771 | return resultobj; |
24772 | fail: | |
24773 | return NULL; | |
24774 | } | |
24775 | ||
24776 | ||
c32bde28 | 24777 | static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24778 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24779 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24780 | long result; | |
24781 | PyObject * obj0 = 0 ; | |
24782 | char *kwnames[] = { | |
24783 | (char *) "self", NULL | |
24784 | }; | |
24785 | ||
24786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24787 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24788 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24789 | { |
24790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24791 | result = (long)(arg1)->GetData(); | |
24792 | ||
24793 | wxPyEndAllowThreads(__tstate); | |
24794 | if (PyErr_Occurred()) SWIG_fail; | |
24795 | } | |
093d3ff1 | 24796 | { |
32fe5131 | 24797 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24798 | } |
d14a1e28 RD |
24799 | return resultobj; |
24800 | fail: | |
24801 | return NULL; | |
24802 | } | |
24803 | ||
24804 | ||
c32bde28 | 24805 | static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24806 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24807 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24808 | long result; | |
24809 | PyObject * obj0 = 0 ; | |
24810 | char *kwnames[] = { | |
24811 | (char *) "self", NULL | |
24812 | }; | |
24813 | ||
24814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24815 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24816 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24817 | { |
24818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24819 | result = (long)(arg1)->GetMask(); | |
24820 | ||
24821 | wxPyEndAllowThreads(__tstate); | |
24822 | if (PyErr_Occurred()) SWIG_fail; | |
24823 | } | |
093d3ff1 | 24824 | { |
32fe5131 | 24825 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24826 | } |
d14a1e28 RD |
24827 | return resultobj; |
24828 | fail: | |
24829 | return NULL; | |
24830 | } | |
24831 | ||
24832 | ||
c32bde28 | 24833 | static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24834 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24835 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24836 | wxListItem *result; | |
24837 | PyObject * obj0 = 0 ; | |
24838 | char *kwnames[] = { | |
24839 | (char *) "self", NULL | |
24840 | }; | |
24841 | ||
24842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24845 | { |
24846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24847 | { | |
24848 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
24849 | result = (wxListItem *) &_result_ref; | |
24850 | } | |
24851 | ||
24852 | wxPyEndAllowThreads(__tstate); | |
24853 | if (PyErr_Occurred()) SWIG_fail; | |
24854 | } | |
15afbcd0 | 24855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
24856 | return resultobj; |
24857 | fail: | |
24858 | return NULL; | |
24859 | } | |
24860 | ||
24861 | ||
c32bde28 | 24862 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24863 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24864 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24865 | long result; | |
24866 | PyObject * obj0 = 0 ; | |
24867 | char *kwnames[] = { | |
24868 | (char *) "self", NULL | |
24869 | }; | |
24870 | ||
24871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24872 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24873 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24874 | { |
24875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24876 | result = (long)(arg1)->GetCacheFrom(); | |
24877 | ||
24878 | wxPyEndAllowThreads(__tstate); | |
24879 | if (PyErr_Occurred()) SWIG_fail; | |
24880 | } | |
093d3ff1 | 24881 | { |
32fe5131 | 24882 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24883 | } |
d14a1e28 RD |
24884 | return resultobj; |
24885 | fail: | |
24886 | return NULL; | |
24887 | } | |
24888 | ||
24889 | ||
c32bde28 | 24890 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24891 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24892 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24893 | long result; | |
24894 | PyObject * obj0 = 0 ; | |
24895 | char *kwnames[] = { | |
24896 | (char *) "self", NULL | |
24897 | }; | |
24898 | ||
24899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24900 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24901 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24902 | { |
24903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24904 | result = (long)(arg1)->GetCacheTo(); | |
24905 | ||
24906 | wxPyEndAllowThreads(__tstate); | |
24907 | if (PyErr_Occurred()) SWIG_fail; | |
24908 | } | |
093d3ff1 | 24909 | { |
32fe5131 | 24910 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 24911 | } |
d14a1e28 RD |
24912 | return resultobj; |
24913 | fail: | |
24914 | return NULL; | |
24915 | } | |
24916 | ||
24917 | ||
c32bde28 | 24918 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24919 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24920 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24921 | bool result; | |
24922 | PyObject * obj0 = 0 ; | |
24923 | char *kwnames[] = { | |
24924 | (char *) "self", NULL | |
24925 | }; | |
24926 | ||
24927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
24928 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24929 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
24930 | { |
24931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24932 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
24933 | ||
24934 | wxPyEndAllowThreads(__tstate); | |
24935 | if (PyErr_Occurred()) SWIG_fail; | |
24936 | } | |
4f89f6a3 RD |
24937 | { |
24938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24939 | } | |
d14a1e28 RD |
24940 | return resultobj; |
24941 | fail: | |
24942 | return NULL; | |
24943 | } | |
24944 | ||
24945 | ||
c32bde28 | 24946 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24947 | PyObject *resultobj = NULL; |
d14a1e28 RD |
24948 | wxListEvent *arg1 = (wxListEvent *) 0 ; |
24949 | bool arg2 ; | |
24950 | PyObject * obj0 = 0 ; | |
24951 | PyObject * obj1 = 0 ; | |
24952 | char *kwnames[] = { | |
24953 | (char *) "self",(char *) "editCancelled", NULL | |
24954 | }; | |
24955 | ||
24956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
24957 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListEvent, SWIG_POINTER_EXCEPTION | 0); |
24958 | if (SWIG_arg_fail(1)) SWIG_fail; | |
24959 | { | |
32fe5131 | 24960 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
24961 | if (SWIG_arg_fail(2)) SWIG_fail; |
24962 | } | |
d14a1e28 RD |
24963 | { |
24964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24965 | (arg1)->SetEditCanceled(arg2); | |
24966 | ||
24967 | wxPyEndAllowThreads(__tstate); | |
24968 | if (PyErr_Occurred()) SWIG_fail; | |
24969 | } | |
24970 | Py_INCREF(Py_None); resultobj = Py_None; | |
24971 | return resultobj; | |
24972 | fail: | |
24973 | return NULL; | |
24974 | } | |
24975 | ||
24976 | ||
c32bde28 | 24977 | static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
24978 | PyObject *obj; |
24979 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24980 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
24981 | Py_INCREF(obj); | |
24982 | return Py_BuildValue((char *)""); | |
24983 | } | |
c32bde28 | 24984 | static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 24985 | PyObject *resultobj = NULL; |
d14a1e28 | 24986 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 24987 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24988 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24989 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24990 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24991 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24992 | long arg5 = (long) wxLC_ICON ; | |
24993 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24994 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24995 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
24996 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24997 | wxPyListCtrl *result; | |
24998 | wxPoint temp3 ; | |
24999 | wxSize temp4 ; | |
ae8162c8 | 25000 | bool temp7 = false ; |
d14a1e28 | 25001 | PyObject * obj0 = 0 ; |
994141e6 | 25002 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25003 | PyObject * obj2 = 0 ; |
25004 | PyObject * obj3 = 0 ; | |
994141e6 | 25005 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
25006 | PyObject * obj5 = 0 ; |
25007 | PyObject * obj6 = 0 ; | |
25008 | char *kwnames[] = { | |
25009 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25010 | }; | |
25011 | ||
994141e6 | 25012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
25013 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
25014 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 25015 | if (obj1) { |
093d3ff1 | 25016 | { |
32fe5131 | 25017 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25018 | if (SWIG_arg_fail(2)) SWIG_fail; |
25019 | } | |
994141e6 | 25020 | } |
d14a1e28 RD |
25021 | if (obj2) { |
25022 | { | |
25023 | arg3 = &temp3; | |
25024 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25025 | } | |
25026 | } | |
25027 | if (obj3) { | |
25028 | { | |
25029 | arg4 = &temp4; | |
25030 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25031 | } | |
25032 | } | |
994141e6 | 25033 | if (obj4) { |
093d3ff1 | 25034 | { |
32fe5131 | 25035 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
25036 | if (SWIG_arg_fail(5)) SWIG_fail; |
25037 | } | |
994141e6 | 25038 | } |
d14a1e28 | 25039 | if (obj5) { |
093d3ff1 RD |
25040 | { |
25041 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
25042 | if (SWIG_arg_fail(6)) SWIG_fail; | |
25043 | if (arg6 == NULL) { | |
25044 | SWIG_null_ref("wxValidator"); | |
25045 | } | |
25046 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
25047 | } |
25048 | } | |
25049 | if (obj6) { | |
25050 | { | |
25051 | arg7 = wxString_in_helper(obj6); | |
25052 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 25053 | temp7 = true; |
d14a1e28 RD |
25054 | } |
25055 | } | |
25056 | { | |
e3b71cb8 | 25057 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25059 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25060 | ||
25061 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25062 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25063 | } |
15afbcd0 | 25064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
25065 | { |
25066 | if (temp7) | |
25067 | delete arg7; | |
25068 | } | |
25069 | return resultobj; | |
25070 | fail: | |
25071 | { | |
25072 | if (temp7) | |
25073 | delete arg7; | |
25074 | } | |
25075 | return NULL; | |
25076 | } | |
25077 | ||
25078 | ||
c32bde28 | 25079 | static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25080 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25081 | wxPyListCtrl *result; |
25082 | char *kwnames[] = { | |
25083 | NULL | |
25084 | }; | |
25085 | ||
25086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
25087 | { | |
e3b71cb8 | 25088 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25090 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
25091 | ||
25092 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25093 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25094 | } |
15afbcd0 | 25095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
25096 | return resultobj; |
25097 | fail: | |
25098 | return NULL; | |
25099 | } | |
25100 | ||
25101 | ||
c32bde28 | 25102 | static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25103 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25104 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25105 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 25106 | int arg3 = (int) -1 ; |
d14a1e28 RD |
25107 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
25108 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25109 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25110 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25111 | long arg6 = (long) wxLC_ICON ; | |
25112 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25113 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
25114 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
25115 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
25116 | bool result; | |
25117 | wxPoint temp4 ; | |
25118 | wxSize temp5 ; | |
ae8162c8 | 25119 | bool temp8 = false ; |
d14a1e28 RD |
25120 | PyObject * obj0 = 0 ; |
25121 | PyObject * obj1 = 0 ; | |
994141e6 | 25122 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25123 | PyObject * obj3 = 0 ; |
25124 | PyObject * obj4 = 0 ; | |
994141e6 | 25125 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
25126 | PyObject * obj6 = 0 ; |
25127 | PyObject * obj7 = 0 ; | |
25128 | char *kwnames[] = { | |
25129 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25130 | }; | |
25131 | ||
994141e6 | 25132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
25133 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25134 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25135 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
25136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 25137 | if (obj2) { |
093d3ff1 | 25138 | { |
32fe5131 | 25139 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
25140 | if (SWIG_arg_fail(3)) SWIG_fail; |
25141 | } | |
994141e6 | 25142 | } |
d14a1e28 RD |
25143 | if (obj3) { |
25144 | { | |
25145 | arg4 = &temp4; | |
25146 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25147 | } | |
25148 | } | |
25149 | if (obj4) { | |
25150 | { | |
25151 | arg5 = &temp5; | |
25152 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25153 | } | |
25154 | } | |
994141e6 | 25155 | if (obj5) { |
093d3ff1 | 25156 | { |
32fe5131 | 25157 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
25158 | if (SWIG_arg_fail(6)) SWIG_fail; |
25159 | } | |
994141e6 | 25160 | } |
d14a1e28 | 25161 | if (obj6) { |
093d3ff1 RD |
25162 | { |
25163 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
25164 | if (SWIG_arg_fail(7)) SWIG_fail; | |
25165 | if (arg7 == NULL) { | |
25166 | SWIG_null_ref("wxValidator"); | |
25167 | } | |
25168 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
25169 | } |
25170 | } | |
25171 | if (obj7) { | |
25172 | { | |
25173 | arg8 = wxString_in_helper(obj7); | |
25174 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 25175 | temp8 = true; |
d14a1e28 RD |
25176 | } |
25177 | } | |
25178 | { | |
25179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25180 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25181 | ||
25182 | wxPyEndAllowThreads(__tstate); | |
25183 | if (PyErr_Occurred()) SWIG_fail; | |
25184 | } | |
4f89f6a3 RD |
25185 | { |
25186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25187 | } | |
d14a1e28 RD |
25188 | { |
25189 | if (temp8) | |
25190 | delete arg8; | |
25191 | } | |
25192 | return resultobj; | |
25193 | fail: | |
25194 | { | |
25195 | if (temp8) | |
25196 | delete arg8; | |
25197 | } | |
25198 | return NULL; | |
25199 | } | |
25200 | ||
25201 | ||
c32bde28 | 25202 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25203 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25204 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25205 | PyObject *arg2 = (PyObject *) 0 ; | |
25206 | PyObject *arg3 = (PyObject *) 0 ; | |
25207 | PyObject * obj0 = 0 ; | |
25208 | PyObject * obj1 = 0 ; | |
25209 | PyObject * obj2 = 0 ; | |
25210 | char *kwnames[] = { | |
25211 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25212 | }; | |
25213 | ||
25214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
25215 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25216 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25217 | arg2 = obj1; |
25218 | arg3 = obj2; | |
25219 | { | |
25220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25221 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25222 | ||
25223 | wxPyEndAllowThreads(__tstate); | |
25224 | if (PyErr_Occurred()) SWIG_fail; | |
25225 | } | |
25226 | Py_INCREF(Py_None); resultobj = Py_None; | |
25227 | return resultobj; | |
25228 | fail: | |
25229 | return NULL; | |
25230 | } | |
25231 | ||
25232 | ||
c32bde28 | 25233 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25234 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25235 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25236 | wxColour *arg2 = 0 ; | |
25237 | bool result; | |
25238 | wxColour temp2 ; | |
25239 | PyObject * obj0 = 0 ; | |
25240 | PyObject * obj1 = 0 ; | |
25241 | char *kwnames[] = { | |
25242 | (char *) "self",(char *) "col", NULL | |
25243 | }; | |
25244 | ||
25245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25246 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25247 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25248 | { |
25249 | arg2 = &temp2; | |
25250 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25251 | } | |
25252 | { | |
25253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25254 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
25255 | ||
25256 | wxPyEndAllowThreads(__tstate); | |
25257 | if (PyErr_Occurred()) SWIG_fail; | |
25258 | } | |
4f89f6a3 RD |
25259 | { |
25260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25261 | } | |
d14a1e28 RD |
25262 | return resultobj; |
25263 | fail: | |
25264 | return NULL; | |
25265 | } | |
25266 | ||
25267 | ||
c32bde28 | 25268 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25269 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25270 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25271 | wxColour *arg2 = 0 ; | |
25272 | bool result; | |
25273 | wxColour temp2 ; | |
25274 | PyObject * obj0 = 0 ; | |
25275 | PyObject * obj1 = 0 ; | |
25276 | char *kwnames[] = { | |
25277 | (char *) "self",(char *) "col", NULL | |
25278 | }; | |
25279 | ||
25280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25281 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25282 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25283 | { |
25284 | arg2 = &temp2; | |
25285 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25286 | } | |
25287 | { | |
25288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25289 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25290 | ||
25291 | wxPyEndAllowThreads(__tstate); | |
25292 | if (PyErr_Occurred()) SWIG_fail; | |
25293 | } | |
4f89f6a3 RD |
25294 | { |
25295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25296 | } | |
d14a1e28 RD |
25297 | return resultobj; |
25298 | fail: | |
25299 | return NULL; | |
25300 | } | |
25301 | ||
25302 | ||
c32bde28 | 25303 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25304 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25305 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25306 | int arg2 ; | |
25307 | wxListItem *result; | |
25308 | PyObject * obj0 = 0 ; | |
994141e6 | 25309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25310 | char *kwnames[] = { |
25311 | (char *) "self",(char *) "col", NULL | |
25312 | }; | |
25313 | ||
994141e6 | 25314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25315 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25316 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25317 | { | |
32fe5131 | 25318 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25319 | if (SWIG_arg_fail(2)) SWIG_fail; |
25320 | } | |
d14a1e28 RD |
25321 | { |
25322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25323 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
25324 | ||
25325 | wxPyEndAllowThreads(__tstate); | |
25326 | if (PyErr_Occurred()) SWIG_fail; | |
25327 | } | |
25328 | { | |
7e08d4ef | 25329 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
25330 | } |
25331 | return resultobj; | |
25332 | fail: | |
25333 | return NULL; | |
25334 | } | |
25335 | ||
25336 | ||
c32bde28 | 25337 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25338 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25339 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25340 | int arg2 ; | |
25341 | wxListItem *arg3 = 0 ; | |
25342 | bool result; | |
25343 | PyObject * obj0 = 0 ; | |
994141e6 | 25344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25345 | PyObject * obj2 = 0 ; |
25346 | char *kwnames[] = { | |
25347 | (char *) "self",(char *) "col",(char *) "item", NULL | |
25348 | }; | |
25349 | ||
994141e6 | 25350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25351 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25352 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25353 | { | |
32fe5131 | 25354 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25355 | if (SWIG_arg_fail(2)) SWIG_fail; |
25356 | } | |
25357 | { | |
25358 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25359 | if (SWIG_arg_fail(3)) SWIG_fail; | |
25360 | if (arg3 == NULL) { | |
25361 | SWIG_null_ref("wxListItem"); | |
25362 | } | |
25363 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
25364 | } |
25365 | { | |
25366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25367 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
25368 | ||
25369 | wxPyEndAllowThreads(__tstate); | |
25370 | if (PyErr_Occurred()) SWIG_fail; | |
25371 | } | |
4f89f6a3 RD |
25372 | { |
25373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25374 | } | |
d14a1e28 RD |
25375 | return resultobj; |
25376 | fail: | |
25377 | return NULL; | |
25378 | } | |
25379 | ||
25380 | ||
c32bde28 | 25381 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25382 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25383 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25384 | int arg2 ; | |
25385 | int result; | |
25386 | PyObject * obj0 = 0 ; | |
994141e6 | 25387 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25388 | char *kwnames[] = { |
25389 | (char *) "self",(char *) "col", NULL | |
25390 | }; | |
25391 | ||
994141e6 | 25392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25393 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25394 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25395 | { | |
32fe5131 | 25396 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25397 | if (SWIG_arg_fail(2)) SWIG_fail; |
25398 | } | |
d14a1e28 RD |
25399 | { |
25400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25401 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
25402 | ||
25403 | wxPyEndAllowThreads(__tstate); | |
25404 | if (PyErr_Occurred()) SWIG_fail; | |
25405 | } | |
093d3ff1 | 25406 | { |
32fe5131 | 25407 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 25408 | } |
d14a1e28 RD |
25409 | return resultobj; |
25410 | fail: | |
25411 | return NULL; | |
25412 | } | |
25413 | ||
25414 | ||
c32bde28 | 25415 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25416 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25417 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25418 | int arg2 ; | |
25419 | int arg3 ; | |
25420 | bool result; | |
25421 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25422 | PyObject * obj1 = 0 ; |
25423 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25424 | char *kwnames[] = { |
25425 | (char *) "self",(char *) "col",(char *) "width", NULL | |
25426 | }; | |
25427 | ||
994141e6 | 25428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25429 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25430 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25431 | { | |
32fe5131 | 25432 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
25433 | if (SWIG_arg_fail(2)) SWIG_fail; |
25434 | } | |
25435 | { | |
32fe5131 | 25436 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
25437 | if (SWIG_arg_fail(3)) SWIG_fail; |
25438 | } | |
d14a1e28 RD |
25439 | { |
25440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25441 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
25442 | ||
25443 | wxPyEndAllowThreads(__tstate); | |
25444 | if (PyErr_Occurred()) SWIG_fail; | |
25445 | } | |
4f89f6a3 RD |
25446 | { |
25447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25448 | } | |
d14a1e28 RD |
25449 | return resultobj; |
25450 | fail: | |
25451 | return NULL; | |
25452 | } | |
25453 | ||
25454 | ||
c32bde28 | 25455 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25456 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25457 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25458 | int result; | |
25459 | PyObject * obj0 = 0 ; | |
25460 | char *kwnames[] = { | |
25461 | (char *) "self", NULL | |
25462 | }; | |
25463 | ||
25464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25465 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25466 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25467 | { |
25468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25469 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
25470 | ||
25471 | wxPyEndAllowThreads(__tstate); | |
25472 | if (PyErr_Occurred()) SWIG_fail; | |
25473 | } | |
093d3ff1 | 25474 | { |
32fe5131 | 25475 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 25476 | } |
d14a1e28 RD |
25477 | return resultobj; |
25478 | fail: | |
25479 | return NULL; | |
25480 | } | |
25481 | ||
25482 | ||
c32bde28 | 25483 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25484 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25485 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25486 | wxRect result; | |
25487 | PyObject * obj0 = 0 ; | |
25488 | char *kwnames[] = { | |
25489 | (char *) "self", NULL | |
25490 | }; | |
25491 | ||
25492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
25493 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25494 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
25495 | { |
25496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25497 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
25498 | ||
25499 | wxPyEndAllowThreads(__tstate); | |
25500 | if (PyErr_Occurred()) SWIG_fail; | |
25501 | } | |
25502 | { | |
25503 | wxRect * resultptr; | |
32fe5131 | 25504 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
15afbcd0 | 25505 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
25506 | } |
25507 | return resultobj; | |
25508 | fail: | |
25509 | return NULL; | |
25510 | } | |
25511 | ||
25512 | ||
c32bde28 | 25513 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25514 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25515 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25516 | long arg2 ; | |
25517 | int arg3 = (int) 0 ; | |
25518 | wxListItem *result; | |
25519 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25520 | PyObject * obj1 = 0 ; |
25521 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25522 | char *kwnames[] = { |
25523 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
25524 | }; | |
25525 | ||
994141e6 | 25526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25527 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25528 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25529 | { | |
32fe5131 | 25530 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25531 | if (SWIG_arg_fail(2)) SWIG_fail; |
25532 | } | |
994141e6 | 25533 | if (obj2) { |
093d3ff1 | 25534 | { |
32fe5131 | 25535 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
25536 | if (SWIG_arg_fail(3)) SWIG_fail; |
25537 | } | |
994141e6 | 25538 | } |
d14a1e28 RD |
25539 | { |
25540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25541 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
25542 | ||
25543 | wxPyEndAllowThreads(__tstate); | |
25544 | if (PyErr_Occurred()) SWIG_fail; | |
25545 | } | |
25546 | { | |
7e08d4ef | 25547 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
25548 | } |
25549 | return resultobj; | |
25550 | fail: | |
25551 | return NULL; | |
25552 | } | |
25553 | ||
25554 | ||
c32bde28 | 25555 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25556 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25557 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25558 | wxListItem *arg2 = 0 ; | |
25559 | bool result; | |
25560 | PyObject * obj0 = 0 ; | |
25561 | PyObject * obj1 = 0 ; | |
25562 | char *kwnames[] = { | |
25563 | (char *) "self",(char *) "info", NULL | |
25564 | }; | |
25565 | ||
25566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
25567 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25568 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25569 | { | |
25570 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
25571 | if (SWIG_arg_fail(2)) SWIG_fail; | |
25572 | if (arg2 == NULL) { | |
25573 | SWIG_null_ref("wxListItem"); | |
25574 | } | |
25575 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
25576 | } |
25577 | { | |
25578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25579 | result = (bool)(arg1)->SetItem(*arg2); | |
25580 | ||
25581 | wxPyEndAllowThreads(__tstate); | |
25582 | if (PyErr_Occurred()) SWIG_fail; | |
25583 | } | |
4f89f6a3 RD |
25584 | { |
25585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25586 | } | |
d14a1e28 RD |
25587 | return resultobj; |
25588 | fail: | |
25589 | return NULL; | |
25590 | } | |
25591 | ||
25592 | ||
c32bde28 | 25593 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25594 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25595 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25596 | long arg2 ; | |
25597 | int arg3 ; | |
25598 | wxString *arg4 = 0 ; | |
25599 | int arg5 = (int) -1 ; | |
25600 | long result; | |
ae8162c8 | 25601 | bool temp4 = false ; |
d14a1e28 | 25602 | PyObject * obj0 = 0 ; |
994141e6 RD |
25603 | PyObject * obj1 = 0 ; |
25604 | PyObject * obj2 = 0 ; | |
d14a1e28 | 25605 | PyObject * obj3 = 0 ; |
994141e6 | 25606 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
25607 | char *kwnames[] = { |
25608 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
25609 | }; | |
25610 | ||
994141e6 | 25611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
25612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25614 | { | |
32fe5131 | 25615 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25616 | if (SWIG_arg_fail(2)) SWIG_fail; |
25617 | } | |
25618 | { | |
32fe5131 | 25619 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
25620 | if (SWIG_arg_fail(3)) SWIG_fail; |
25621 | } | |
d14a1e28 RD |
25622 | { |
25623 | arg4 = wxString_in_helper(obj3); | |
25624 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 25625 | temp4 = true; |
d14a1e28 | 25626 | } |
994141e6 | 25627 | if (obj4) { |
093d3ff1 | 25628 | { |
32fe5131 | 25629 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
25630 | if (SWIG_arg_fail(5)) SWIG_fail; |
25631 | } | |
994141e6 | 25632 | } |
d14a1e28 RD |
25633 | { |
25634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25635 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
25636 | ||
25637 | wxPyEndAllowThreads(__tstate); | |
25638 | if (PyErr_Occurred()) SWIG_fail; | |
25639 | } | |
093d3ff1 | 25640 | { |
32fe5131 | 25641 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25642 | } |
d14a1e28 RD |
25643 | { |
25644 | if (temp4) | |
25645 | delete arg4; | |
25646 | } | |
25647 | return resultobj; | |
25648 | fail: | |
25649 | { | |
25650 | if (temp4) | |
25651 | delete arg4; | |
25652 | } | |
25653 | return NULL; | |
25654 | } | |
25655 | ||
25656 | ||
c32bde28 | 25657 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25658 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25659 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25660 | long arg2 ; | |
25661 | long arg3 ; | |
25662 | int result; | |
25663 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25664 | PyObject * obj1 = 0 ; |
25665 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25666 | char *kwnames[] = { |
25667 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
25668 | }; | |
25669 | ||
994141e6 | 25670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25671 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25672 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25673 | { | |
32fe5131 | 25674 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25675 | if (SWIG_arg_fail(2)) SWIG_fail; |
25676 | } | |
25677 | { | |
32fe5131 | 25678 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
25679 | if (SWIG_arg_fail(3)) SWIG_fail; |
25680 | } | |
d14a1e28 RD |
25681 | { |
25682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25683 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
25684 | ||
25685 | wxPyEndAllowThreads(__tstate); | |
25686 | if (PyErr_Occurred()) SWIG_fail; | |
25687 | } | |
093d3ff1 | 25688 | { |
32fe5131 | 25689 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 25690 | } |
d14a1e28 RD |
25691 | return resultobj; |
25692 | fail: | |
25693 | return NULL; | |
25694 | } | |
25695 | ||
25696 | ||
c32bde28 | 25697 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25698 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25699 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25700 | long arg2 ; | |
25701 | long arg3 ; | |
25702 | long arg4 ; | |
25703 | bool result; | |
25704 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25705 | PyObject * obj1 = 0 ; |
25706 | PyObject * obj2 = 0 ; | |
25707 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25708 | char *kwnames[] = { |
25709 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
25710 | }; | |
25711 | ||
994141e6 | 25712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25713 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25714 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25715 | { | |
32fe5131 | 25716 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25717 | if (SWIG_arg_fail(2)) SWIG_fail; |
25718 | } | |
25719 | { | |
32fe5131 | 25720 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
25721 | if (SWIG_arg_fail(3)) SWIG_fail; |
25722 | } | |
25723 | { | |
32fe5131 | 25724 | arg4 = static_cast<long >(SWIG_As_long(obj3)); |
093d3ff1 RD |
25725 | if (SWIG_arg_fail(4)) SWIG_fail; |
25726 | } | |
d14a1e28 RD |
25727 | { |
25728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25729 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
25730 | ||
25731 | wxPyEndAllowThreads(__tstate); | |
25732 | if (PyErr_Occurred()) SWIG_fail; | |
25733 | } | |
4f89f6a3 RD |
25734 | { |
25735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25736 | } | |
d14a1e28 RD |
25737 | return resultobj; |
25738 | fail: | |
25739 | return NULL; | |
25740 | } | |
25741 | ||
25742 | ||
c32bde28 | 25743 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25744 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25745 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25746 | long arg2 ; | |
25747 | int arg3 ; | |
1fc3b23a | 25748 | int arg4 = (int) -1 ; |
d14a1e28 RD |
25749 | bool result; |
25750 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25751 | PyObject * obj1 = 0 ; |
25752 | PyObject * obj2 = 0 ; | |
25753 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25754 | char *kwnames[] = { |
25755 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
25756 | }; | |
25757 | ||
1fc3b23a | 25758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
25759 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25760 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25761 | { | |
32fe5131 | 25762 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25763 | if (SWIG_arg_fail(2)) SWIG_fail; |
25764 | } | |
25765 | { | |
32fe5131 | 25766 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
25767 | if (SWIG_arg_fail(3)) SWIG_fail; |
25768 | } | |
1fc3b23a | 25769 | if (obj3) { |
093d3ff1 | 25770 | { |
32fe5131 | 25771 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
25772 | if (SWIG_arg_fail(4)) SWIG_fail; |
25773 | } | |
1fc3b23a | 25774 | } |
d14a1e28 RD |
25775 | { |
25776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25777 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
25778 | ||
25779 | wxPyEndAllowThreads(__tstate); | |
25780 | if (PyErr_Occurred()) SWIG_fail; | |
25781 | } | |
4f89f6a3 RD |
25782 | { |
25783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25784 | } | |
d14a1e28 RD |
25785 | return resultobj; |
25786 | fail: | |
25787 | return NULL; | |
25788 | } | |
25789 | ||
25790 | ||
c32bde28 | 25791 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25792 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25793 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25794 | long arg2 ; | |
25795 | wxString result; | |
25796 | PyObject * obj0 = 0 ; | |
994141e6 | 25797 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25798 | char *kwnames[] = { |
25799 | (char *) "self",(char *) "item", NULL | |
25800 | }; | |
25801 | ||
994141e6 | 25802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25803 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25804 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25805 | { | |
32fe5131 | 25806 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25807 | if (SWIG_arg_fail(2)) SWIG_fail; |
25808 | } | |
d14a1e28 RD |
25809 | { |
25810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25811 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
25812 | ||
25813 | wxPyEndAllowThreads(__tstate); | |
25814 | if (PyErr_Occurred()) SWIG_fail; | |
25815 | } | |
25816 | { | |
25817 | #if wxUSE_UNICODE | |
25818 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25819 | #else | |
25820 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25821 | #endif | |
25822 | } | |
25823 | return resultobj; | |
25824 | fail: | |
25825 | return NULL; | |
25826 | } | |
25827 | ||
25828 | ||
c32bde28 | 25829 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25830 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25831 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25832 | long arg2 ; | |
25833 | wxString *arg3 = 0 ; | |
ae8162c8 | 25834 | bool temp3 = false ; |
d14a1e28 | 25835 | PyObject * obj0 = 0 ; |
994141e6 | 25836 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25837 | PyObject * obj2 = 0 ; |
25838 | char *kwnames[] = { | |
25839 | (char *) "self",(char *) "item",(char *) "str", NULL | |
25840 | }; | |
25841 | ||
994141e6 | 25842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25843 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25844 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25845 | { | |
32fe5131 | 25846 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25847 | if (SWIG_arg_fail(2)) SWIG_fail; |
25848 | } | |
d14a1e28 RD |
25849 | { |
25850 | arg3 = wxString_in_helper(obj2); | |
25851 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 25852 | temp3 = true; |
d14a1e28 RD |
25853 | } |
25854 | { | |
25855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25856 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
25857 | ||
25858 | wxPyEndAllowThreads(__tstate); | |
25859 | if (PyErr_Occurred()) SWIG_fail; | |
25860 | } | |
25861 | Py_INCREF(Py_None); resultobj = Py_None; | |
25862 | { | |
25863 | if (temp3) | |
25864 | delete arg3; | |
25865 | } | |
25866 | return resultobj; | |
25867 | fail: | |
25868 | { | |
25869 | if (temp3) | |
25870 | delete arg3; | |
25871 | } | |
25872 | return NULL; | |
25873 | } | |
25874 | ||
25875 | ||
c32bde28 | 25876 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25877 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25878 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25879 | long arg2 ; | |
25880 | long result; | |
25881 | PyObject * obj0 = 0 ; | |
994141e6 | 25882 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25883 | char *kwnames[] = { |
25884 | (char *) "self",(char *) "item", NULL | |
25885 | }; | |
25886 | ||
994141e6 | 25887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25888 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25889 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25890 | { | |
32fe5131 | 25891 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25892 | if (SWIG_arg_fail(2)) SWIG_fail; |
25893 | } | |
d14a1e28 RD |
25894 | { |
25895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25896 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
25897 | ||
25898 | wxPyEndAllowThreads(__tstate); | |
25899 | if (PyErr_Occurred()) SWIG_fail; | |
25900 | } | |
093d3ff1 | 25901 | { |
32fe5131 | 25902 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 25903 | } |
d14a1e28 RD |
25904 | return resultobj; |
25905 | fail: | |
25906 | return NULL; | |
25907 | } | |
25908 | ||
25909 | ||
c32bde28 | 25910 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25911 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25912 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25913 | long arg2 ; | |
25914 | long arg3 ; | |
25915 | bool result; | |
25916 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25917 | PyObject * obj1 = 0 ; |
25918 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25919 | char *kwnames[] = { |
25920 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25921 | }; | |
25922 | ||
994141e6 | 25923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
25924 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25925 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25926 | { | |
32fe5131 | 25927 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25928 | if (SWIG_arg_fail(2)) SWIG_fail; |
25929 | } | |
25930 | { | |
32fe5131 | 25931 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
25932 | if (SWIG_arg_fail(3)) SWIG_fail; |
25933 | } | |
d14a1e28 RD |
25934 | { |
25935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25936 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
25937 | ||
25938 | wxPyEndAllowThreads(__tstate); | |
25939 | if (PyErr_Occurred()) SWIG_fail; | |
25940 | } | |
4f89f6a3 RD |
25941 | { |
25942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25943 | } | |
d14a1e28 RD |
25944 | return resultobj; |
25945 | fail: | |
25946 | return NULL; | |
25947 | } | |
25948 | ||
25949 | ||
c32bde28 | 25950 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25951 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25952 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25953 | long arg2 ; | |
25954 | wxPoint result; | |
25955 | PyObject * obj0 = 0 ; | |
994141e6 | 25956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25957 | char *kwnames[] = { |
25958 | (char *) "self",(char *) "item", NULL | |
25959 | }; | |
25960 | ||
994141e6 | 25961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
25962 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
25963 | if (SWIG_arg_fail(1)) SWIG_fail; | |
25964 | { | |
32fe5131 | 25965 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
25966 | if (SWIG_arg_fail(2)) SWIG_fail; |
25967 | } | |
d14a1e28 RD |
25968 | { |
25969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25970 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
25971 | ||
25972 | wxPyEndAllowThreads(__tstate); | |
25973 | if (PyErr_Occurred()) SWIG_fail; | |
25974 | } | |
25975 | { | |
25976 | wxPoint * resultptr; | |
32fe5131 | 25977 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 25978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25979 | } |
25980 | return resultobj; | |
25981 | fail: | |
25982 | return NULL; | |
25983 | } | |
25984 | ||
25985 | ||
c32bde28 | 25986 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 25987 | PyObject *resultobj = NULL; |
d14a1e28 RD |
25988 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
25989 | long arg2 ; | |
25990 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
25991 | wxRect result; | |
25992 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25993 | PyObject * obj1 = 0 ; |
25994 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25995 | char *kwnames[] = { |
25996 | (char *) "self",(char *) "item",(char *) "code", NULL | |
25997 | }; | |
25998 | ||
994141e6 | 25999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26000 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26001 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26002 | { | |
32fe5131 | 26003 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26004 | if (SWIG_arg_fail(2)) SWIG_fail; |
26005 | } | |
994141e6 | 26006 | if (obj2) { |
093d3ff1 | 26007 | { |
32fe5131 | 26008 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26009 | if (SWIG_arg_fail(3)) SWIG_fail; |
26010 | } | |
994141e6 | 26011 | } |
d14a1e28 RD |
26012 | { |
26013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26014 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
26015 | ||
26016 | wxPyEndAllowThreads(__tstate); | |
26017 | if (PyErr_Occurred()) SWIG_fail; | |
26018 | } | |
26019 | { | |
26020 | wxRect * resultptr; | |
32fe5131 | 26021 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
15afbcd0 | 26022 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
26023 | } |
26024 | return resultobj; | |
26025 | fail: | |
26026 | return NULL; | |
26027 | } | |
26028 | ||
26029 | ||
c32bde28 | 26030 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26031 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26032 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26033 | long arg2 ; | |
26034 | wxPoint *arg3 = 0 ; | |
26035 | bool result; | |
26036 | wxPoint temp3 ; | |
26037 | PyObject * obj0 = 0 ; | |
994141e6 | 26038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26039 | PyObject * obj2 = 0 ; |
26040 | char *kwnames[] = { | |
26041 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
26042 | }; | |
26043 | ||
994141e6 | 26044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26045 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26046 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26047 | { | |
32fe5131 | 26048 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26049 | if (SWIG_arg_fail(2)) SWIG_fail; |
26050 | } | |
d14a1e28 RD |
26051 | { |
26052 | arg3 = &temp3; | |
26053 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26054 | } | |
26055 | { | |
26056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26057 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
26058 | ||
26059 | wxPyEndAllowThreads(__tstate); | |
26060 | if (PyErr_Occurred()) SWIG_fail; | |
26061 | } | |
4f89f6a3 RD |
26062 | { |
26063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26064 | } | |
d14a1e28 RD |
26065 | return resultobj; |
26066 | fail: | |
26067 | return NULL; | |
26068 | } | |
26069 | ||
26070 | ||
c32bde28 | 26071 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26072 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26073 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26074 | int result; | |
26075 | PyObject * obj0 = 0 ; | |
26076 | char *kwnames[] = { | |
26077 | (char *) "self", NULL | |
26078 | }; | |
26079 | ||
26080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26081 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26082 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26083 | { |
26084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26085 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
26086 | ||
26087 | wxPyEndAllowThreads(__tstate); | |
26088 | if (PyErr_Occurred()) SWIG_fail; | |
26089 | } | |
093d3ff1 | 26090 | { |
32fe5131 | 26091 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26092 | } |
d14a1e28 RD |
26093 | return resultobj; |
26094 | fail: | |
26095 | return NULL; | |
26096 | } | |
26097 | ||
26098 | ||
c32bde28 | 26099 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26100 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26101 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26102 | int result; | |
26103 | PyObject * obj0 = 0 ; | |
26104 | char *kwnames[] = { | |
26105 | (char *) "self", NULL | |
26106 | }; | |
26107 | ||
26108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26109 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26110 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26111 | { |
26112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26113 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
26114 | ||
26115 | wxPyEndAllowThreads(__tstate); | |
26116 | if (PyErr_Occurred()) SWIG_fail; | |
26117 | } | |
093d3ff1 | 26118 | { |
32fe5131 | 26119 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26120 | } |
d14a1e28 RD |
26121 | return resultobj; |
26122 | fail: | |
26123 | return NULL; | |
26124 | } | |
26125 | ||
26126 | ||
c32bde28 | 26127 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26128 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26129 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26130 | wxSize result; | |
26131 | PyObject * obj0 = 0 ; | |
26132 | char *kwnames[] = { | |
26133 | (char *) "self", NULL | |
26134 | }; | |
26135 | ||
26136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26139 | { |
26140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26141 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
26142 | ||
26143 | wxPyEndAllowThreads(__tstate); | |
26144 | if (PyErr_Occurred()) SWIG_fail; | |
26145 | } | |
26146 | { | |
26147 | wxSize * resultptr; | |
32fe5131 | 26148 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 26149 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
26150 | } |
26151 | return resultobj; | |
26152 | fail: | |
26153 | return NULL; | |
26154 | } | |
26155 | ||
26156 | ||
c32bde28 | 26157 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26158 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26159 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26160 | int arg2 ; | |
ae8162c8 | 26161 | bool arg3 = (bool) false ; |
d14a1e28 | 26162 | PyObject * obj0 = 0 ; |
994141e6 | 26163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26164 | PyObject * obj2 = 0 ; |
26165 | char *kwnames[] = { | |
26166 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
26167 | }; | |
26168 | ||
994141e6 | 26169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26172 | { | |
32fe5131 | 26173 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26174 | if (SWIG_arg_fail(2)) SWIG_fail; |
26175 | } | |
d14a1e28 | 26176 | if (obj2) { |
093d3ff1 | 26177 | { |
32fe5131 | 26178 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
26179 | if (SWIG_arg_fail(3)) SWIG_fail; |
26180 | } | |
d14a1e28 RD |
26181 | } |
26182 | { | |
26183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26184 | (arg1)->SetItemSpacing(arg2,arg3); | |
26185 | ||
26186 | wxPyEndAllowThreads(__tstate); | |
26187 | if (PyErr_Occurred()) SWIG_fail; | |
26188 | } | |
26189 | Py_INCREF(Py_None); resultobj = Py_None; | |
26190 | return resultobj; | |
26191 | fail: | |
26192 | return NULL; | |
26193 | } | |
26194 | ||
26195 | ||
c32bde28 | 26196 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26197 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26198 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26199 | int result; | |
26200 | PyObject * obj0 = 0 ; | |
26201 | char *kwnames[] = { | |
26202 | (char *) "self", NULL | |
26203 | }; | |
26204 | ||
26205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26206 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26207 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26208 | { |
26209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26210 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
26211 | ||
26212 | wxPyEndAllowThreads(__tstate); | |
26213 | if (PyErr_Occurred()) SWIG_fail; | |
26214 | } | |
093d3ff1 | 26215 | { |
32fe5131 | 26216 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 26217 | } |
d14a1e28 RD |
26218 | return resultobj; |
26219 | fail: | |
26220 | return NULL; | |
26221 | } | |
26222 | ||
26223 | ||
c32bde28 | 26224 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26225 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26226 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26227 | wxColour result; | |
26228 | PyObject * obj0 = 0 ; | |
26229 | char *kwnames[] = { | |
26230 | (char *) "self", NULL | |
26231 | }; | |
26232 | ||
26233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26234 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26235 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26236 | { |
26237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26238 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
26239 | ||
26240 | wxPyEndAllowThreads(__tstate); | |
26241 | if (PyErr_Occurred()) SWIG_fail; | |
26242 | } | |
26243 | { | |
26244 | wxColour * resultptr; | |
32fe5131 | 26245 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 26246 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26247 | } |
26248 | return resultobj; | |
26249 | fail: | |
26250 | return NULL; | |
26251 | } | |
26252 | ||
26253 | ||
c32bde28 | 26254 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26255 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26256 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26257 | wxColour *arg2 = 0 ; | |
26258 | wxColour temp2 ; | |
26259 | PyObject * obj0 = 0 ; | |
26260 | PyObject * obj1 = 0 ; | |
26261 | char *kwnames[] = { | |
26262 | (char *) "self",(char *) "col", NULL | |
26263 | }; | |
26264 | ||
26265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
26266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26268 | { |
26269 | arg2 = &temp2; | |
26270 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26271 | } | |
26272 | { | |
26273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26274 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
26275 | ||
26276 | wxPyEndAllowThreads(__tstate); | |
26277 | if (PyErr_Occurred()) SWIG_fail; | |
26278 | } | |
26279 | Py_INCREF(Py_None); resultobj = Py_None; | |
26280 | return resultobj; | |
26281 | fail: | |
26282 | return NULL; | |
26283 | } | |
26284 | ||
26285 | ||
c32bde28 | 26286 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26287 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26288 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26289 | long result; | |
26290 | PyObject * obj0 = 0 ; | |
26291 | char *kwnames[] = { | |
26292 | (char *) "self", NULL | |
26293 | }; | |
26294 | ||
26295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26296 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26297 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26298 | { |
26299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26300 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
26301 | ||
26302 | wxPyEndAllowThreads(__tstate); | |
26303 | if (PyErr_Occurred()) SWIG_fail; | |
26304 | } | |
093d3ff1 | 26305 | { |
32fe5131 | 26306 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26307 | } |
d14a1e28 RD |
26308 | return resultobj; |
26309 | fail: | |
26310 | return NULL; | |
26311 | } | |
26312 | ||
26313 | ||
c32bde28 | 26314 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26315 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26316 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26317 | long arg2 ; | |
ae8162c8 | 26318 | bool arg3 = (bool) true ; |
d14a1e28 | 26319 | PyObject * obj0 = 0 ; |
994141e6 | 26320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26321 | PyObject * obj2 = 0 ; |
26322 | char *kwnames[] = { | |
26323 | (char *) "self",(char *) "style",(char *) "add", NULL | |
26324 | }; | |
26325 | ||
994141e6 | 26326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26327 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26328 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26329 | { | |
32fe5131 | 26330 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26331 | if (SWIG_arg_fail(2)) SWIG_fail; |
26332 | } | |
d14a1e28 | 26333 | if (obj2) { |
093d3ff1 | 26334 | { |
32fe5131 | 26335 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
26336 | if (SWIG_arg_fail(3)) SWIG_fail; |
26337 | } | |
d14a1e28 RD |
26338 | } |
26339 | { | |
26340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26341 | (arg1)->SetSingleStyle(arg2,arg3); | |
26342 | ||
26343 | wxPyEndAllowThreads(__tstate); | |
26344 | if (PyErr_Occurred()) SWIG_fail; | |
26345 | } | |
26346 | Py_INCREF(Py_None); resultobj = Py_None; | |
26347 | return resultobj; | |
26348 | fail: | |
26349 | return NULL; | |
26350 | } | |
26351 | ||
26352 | ||
c32bde28 | 26353 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26354 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26355 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26356 | long arg2 ; | |
26357 | PyObject * obj0 = 0 ; | |
994141e6 | 26358 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26359 | char *kwnames[] = { |
26360 | (char *) "self",(char *) "style", NULL | |
26361 | }; | |
26362 | ||
994141e6 | 26363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26364 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26365 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26366 | { | |
32fe5131 | 26367 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26368 | if (SWIG_arg_fail(2)) SWIG_fail; |
26369 | } | |
d14a1e28 RD |
26370 | { |
26371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26372 | (arg1)->SetWindowStyleFlag(arg2); | |
26373 | ||
26374 | wxPyEndAllowThreads(__tstate); | |
26375 | if (PyErr_Occurred()) SWIG_fail; | |
26376 | } | |
26377 | Py_INCREF(Py_None); resultobj = Py_None; | |
26378 | return resultobj; | |
26379 | fail: | |
26380 | return NULL; | |
26381 | } | |
26382 | ||
26383 | ||
c32bde28 | 26384 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26385 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26386 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26387 | long arg2 ; | |
26388 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
26389 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
26390 | long result; | |
26391 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26392 | PyObject * obj1 = 0 ; |
26393 | PyObject * obj2 = 0 ; | |
26394 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26395 | char *kwnames[] = { |
26396 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
26397 | }; | |
26398 | ||
994141e6 | 26399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
26400 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26401 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26402 | { | |
32fe5131 | 26403 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26404 | if (SWIG_arg_fail(2)) SWIG_fail; |
26405 | } | |
994141e6 | 26406 | if (obj2) { |
093d3ff1 | 26407 | { |
32fe5131 | 26408 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26409 | if (SWIG_arg_fail(3)) SWIG_fail; |
26410 | } | |
994141e6 RD |
26411 | } |
26412 | if (obj3) { | |
093d3ff1 | 26413 | { |
32fe5131 | 26414 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
26415 | if (SWIG_arg_fail(4)) SWIG_fail; |
26416 | } | |
994141e6 | 26417 | } |
d14a1e28 RD |
26418 | { |
26419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26420 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
26421 | ||
26422 | wxPyEndAllowThreads(__tstate); | |
26423 | if (PyErr_Occurred()) SWIG_fail; | |
26424 | } | |
093d3ff1 | 26425 | { |
32fe5131 | 26426 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26427 | } |
d14a1e28 RD |
26428 | return resultobj; |
26429 | fail: | |
26430 | return NULL; | |
26431 | } | |
26432 | ||
26433 | ||
c32bde28 | 26434 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26435 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26436 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26437 | int arg2 ; | |
26438 | wxImageList *result; | |
26439 | PyObject * obj0 = 0 ; | |
994141e6 | 26440 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26441 | char *kwnames[] = { |
26442 | (char *) "self",(char *) "which", NULL | |
26443 | }; | |
26444 | ||
994141e6 | 26445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26448 | { | |
32fe5131 | 26449 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26450 | if (SWIG_arg_fail(2)) SWIG_fail; |
26451 | } | |
d14a1e28 RD |
26452 | { |
26453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26454 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
26455 | ||
26456 | wxPyEndAllowThreads(__tstate); | |
26457 | if (PyErr_Occurred()) SWIG_fail; | |
26458 | } | |
26459 | { | |
7e08d4ef | 26460 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
26461 | } |
26462 | return resultobj; | |
26463 | fail: | |
26464 | return NULL; | |
26465 | } | |
26466 | ||
26467 | ||
c32bde28 | 26468 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26469 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26470 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26471 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26472 | int arg3 ; | |
26473 | PyObject * obj0 = 0 ; | |
26474 | PyObject * obj1 = 0 ; | |
994141e6 | 26475 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26476 | char *kwnames[] = { |
26477 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
26478 | }; | |
26479 | ||
994141e6 | 26480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26481 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26482 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26483 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
26484 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26485 | { | |
32fe5131 | 26486 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26487 | if (SWIG_arg_fail(3)) SWIG_fail; |
26488 | } | |
d14a1e28 RD |
26489 | { |
26490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26491 | (arg1)->SetImageList(arg2,arg3); | |
26492 | ||
26493 | wxPyEndAllowThreads(__tstate); | |
26494 | if (PyErr_Occurred()) SWIG_fail; | |
26495 | } | |
26496 | Py_INCREF(Py_None); resultobj = Py_None; | |
26497 | return resultobj; | |
26498 | fail: | |
26499 | return NULL; | |
26500 | } | |
26501 | ||
26502 | ||
c32bde28 | 26503 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26504 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26505 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26506 | wxImageList *arg2 = (wxImageList *) 0 ; | |
26507 | int arg3 ; | |
26508 | PyObject * obj0 = 0 ; | |
26509 | PyObject * obj1 = 0 ; | |
994141e6 | 26510 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
26511 | char *kwnames[] = { |
26512 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
26513 | }; | |
26514 | ||
994141e6 | 26515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26516 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26517 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26518 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
26519 | if (SWIG_arg_fail(2)) SWIG_fail; | |
26520 | { | |
32fe5131 | 26521 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
26522 | if (SWIG_arg_fail(3)) SWIG_fail; |
26523 | } | |
d14a1e28 RD |
26524 | { |
26525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26526 | (arg1)->AssignImageList(arg2,arg3); | |
26527 | ||
26528 | wxPyEndAllowThreads(__tstate); | |
26529 | if (PyErr_Occurred()) SWIG_fail; | |
26530 | } | |
26531 | Py_INCREF(Py_None); resultobj = Py_None; | |
26532 | return resultobj; | |
26533 | fail: | |
26534 | return NULL; | |
26535 | } | |
26536 | ||
26537 | ||
c32bde28 | 26538 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26539 | PyObject *resultobj = NULL; |
4276dc52 RD |
26540 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26541 | bool result; | |
26542 | PyObject * obj0 = 0 ; | |
26543 | char *kwnames[] = { | |
26544 | (char *) "self", NULL | |
26545 | }; | |
26546 | ||
26547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26548 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26549 | if (SWIG_arg_fail(1)) SWIG_fail; | |
4276dc52 RD |
26550 | { |
26551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26552 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
26553 | ||
26554 | wxPyEndAllowThreads(__tstate); | |
26555 | if (PyErr_Occurred()) SWIG_fail; | |
26556 | } | |
4f89f6a3 RD |
26557 | { |
26558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26559 | } | |
4276dc52 RD |
26560 | return resultobj; |
26561 | fail: | |
26562 | return NULL; | |
26563 | } | |
26564 | ||
26565 | ||
c32bde28 | 26566 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26567 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26568 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26569 | bool result; | |
26570 | PyObject * obj0 = 0 ; | |
26571 | char *kwnames[] = { | |
26572 | (char *) "self", NULL | |
26573 | }; | |
26574 | ||
26575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26576 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26577 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26578 | { |
26579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26580 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
26581 | ||
26582 | wxPyEndAllowThreads(__tstate); | |
26583 | if (PyErr_Occurred()) SWIG_fail; | |
26584 | } | |
4f89f6a3 RD |
26585 | { |
26586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26587 | } | |
d14a1e28 RD |
26588 | return resultobj; |
26589 | fail: | |
26590 | return NULL; | |
26591 | } | |
26592 | ||
26593 | ||
c32bde28 | 26594 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26595 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26596 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26597 | long arg2 ; | |
26598 | PyObject * obj0 = 0 ; | |
994141e6 | 26599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26600 | char *kwnames[] = { |
26601 | (char *) "self",(char *) "item", NULL | |
26602 | }; | |
26603 | ||
994141e6 | 26604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26605 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26606 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26607 | { | |
32fe5131 | 26608 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26609 | if (SWIG_arg_fail(2)) SWIG_fail; |
26610 | } | |
d14a1e28 RD |
26611 | { |
26612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26613 | (arg1)->RefreshItem(arg2); | |
26614 | ||
26615 | wxPyEndAllowThreads(__tstate); | |
26616 | if (PyErr_Occurred()) SWIG_fail; | |
26617 | } | |
26618 | Py_INCREF(Py_None); resultobj = Py_None; | |
26619 | return resultobj; | |
26620 | fail: | |
26621 | return NULL; | |
26622 | } | |
26623 | ||
26624 | ||
c32bde28 | 26625 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26626 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26627 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26628 | long arg2 ; | |
26629 | long arg3 ; | |
26630 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26631 | PyObject * obj1 = 0 ; |
26632 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26633 | char *kwnames[] = { |
26634 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
26635 | }; | |
26636 | ||
994141e6 | 26637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26638 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26639 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26640 | { | |
32fe5131 | 26641 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26642 | if (SWIG_arg_fail(2)) SWIG_fail; |
26643 | } | |
26644 | { | |
32fe5131 | 26645 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
26646 | if (SWIG_arg_fail(3)) SWIG_fail; |
26647 | } | |
d14a1e28 RD |
26648 | { |
26649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26650 | (arg1)->RefreshItems(arg2,arg3); | |
26651 | ||
26652 | wxPyEndAllowThreads(__tstate); | |
26653 | if (PyErr_Occurred()) SWIG_fail; | |
26654 | } | |
26655 | Py_INCREF(Py_None); resultobj = Py_None; | |
26656 | return resultobj; | |
26657 | fail: | |
26658 | return NULL; | |
26659 | } | |
26660 | ||
26661 | ||
c32bde28 | 26662 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26663 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26664 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26665 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
26666 | bool result; | |
26667 | PyObject * obj0 = 0 ; | |
994141e6 | 26668 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26669 | char *kwnames[] = { |
26670 | (char *) "self",(char *) "flag", NULL | |
26671 | }; | |
26672 | ||
994141e6 | 26673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26674 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26675 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 26676 | if (obj1) { |
093d3ff1 | 26677 | { |
32fe5131 | 26678 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26679 | if (SWIG_arg_fail(2)) SWIG_fail; |
26680 | } | |
994141e6 | 26681 | } |
d14a1e28 RD |
26682 | { |
26683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26684 | result = (bool)(arg1)->Arrange(arg2); | |
26685 | ||
26686 | wxPyEndAllowThreads(__tstate); | |
26687 | if (PyErr_Occurred()) SWIG_fail; | |
26688 | } | |
4f89f6a3 RD |
26689 | { |
26690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26691 | } | |
d14a1e28 RD |
26692 | return resultobj; |
26693 | fail: | |
26694 | return NULL; | |
26695 | } | |
26696 | ||
26697 | ||
c32bde28 | 26698 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26699 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26700 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26701 | long arg2 ; | |
26702 | bool result; | |
26703 | PyObject * obj0 = 0 ; | |
994141e6 | 26704 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26705 | char *kwnames[] = { |
26706 | (char *) "self",(char *) "item", NULL | |
26707 | }; | |
26708 | ||
994141e6 | 26709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26710 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26711 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26712 | { | |
32fe5131 | 26713 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26714 | if (SWIG_arg_fail(2)) SWIG_fail; |
26715 | } | |
d14a1e28 RD |
26716 | { |
26717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26718 | result = (bool)(arg1)->DeleteItem(arg2); | |
26719 | ||
26720 | wxPyEndAllowThreads(__tstate); | |
26721 | if (PyErr_Occurred()) SWIG_fail; | |
26722 | } | |
4f89f6a3 RD |
26723 | { |
26724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26725 | } | |
d14a1e28 RD |
26726 | return resultobj; |
26727 | fail: | |
26728 | return NULL; | |
26729 | } | |
26730 | ||
26731 | ||
c32bde28 | 26732 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26733 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26734 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26735 | bool result; | |
26736 | PyObject * obj0 = 0 ; | |
26737 | char *kwnames[] = { | |
26738 | (char *) "self", NULL | |
26739 | }; | |
26740 | ||
26741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26742 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26743 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26744 | { |
26745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26746 | result = (bool)(arg1)->DeleteAllItems(); | |
26747 | ||
26748 | wxPyEndAllowThreads(__tstate); | |
26749 | if (PyErr_Occurred()) SWIG_fail; | |
26750 | } | |
4f89f6a3 RD |
26751 | { |
26752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26753 | } | |
d14a1e28 RD |
26754 | return resultobj; |
26755 | fail: | |
26756 | return NULL; | |
26757 | } | |
26758 | ||
26759 | ||
c32bde28 | 26760 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26761 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26762 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26763 | int arg2 ; | |
26764 | bool result; | |
26765 | PyObject * obj0 = 0 ; | |
994141e6 | 26766 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26767 | char *kwnames[] = { |
26768 | (char *) "self",(char *) "col", NULL | |
26769 | }; | |
26770 | ||
994141e6 | 26771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26772 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26773 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26774 | { | |
32fe5131 | 26775 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
26776 | if (SWIG_arg_fail(2)) SWIG_fail; |
26777 | } | |
d14a1e28 RD |
26778 | { |
26779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26780 | result = (bool)(arg1)->DeleteColumn(arg2); | |
26781 | ||
26782 | wxPyEndAllowThreads(__tstate); | |
26783 | if (PyErr_Occurred()) SWIG_fail; | |
26784 | } | |
4f89f6a3 RD |
26785 | { |
26786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26787 | } | |
d14a1e28 RD |
26788 | return resultobj; |
26789 | fail: | |
26790 | return NULL; | |
26791 | } | |
26792 | ||
26793 | ||
c32bde28 | 26794 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26795 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26796 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26797 | bool result; | |
26798 | PyObject * obj0 = 0 ; | |
26799 | char *kwnames[] = { | |
26800 | (char *) "self", NULL | |
26801 | }; | |
26802 | ||
26803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26804 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26805 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26806 | { |
26807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26808 | result = (bool)(arg1)->DeleteAllColumns(); | |
26809 | ||
26810 | wxPyEndAllowThreads(__tstate); | |
26811 | if (PyErr_Occurred()) SWIG_fail; | |
26812 | } | |
4f89f6a3 RD |
26813 | { |
26814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26815 | } | |
d14a1e28 RD |
26816 | return resultobj; |
26817 | fail: | |
26818 | return NULL; | |
26819 | } | |
26820 | ||
26821 | ||
c32bde28 | 26822 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26823 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26824 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26825 | PyObject * obj0 = 0 ; | |
26826 | char *kwnames[] = { | |
26827 | (char *) "self", NULL | |
26828 | }; | |
26829 | ||
26830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
26831 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26832 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
26833 | { |
26834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26835 | (arg1)->ClearAll(); | |
26836 | ||
26837 | wxPyEndAllowThreads(__tstate); | |
26838 | if (PyErr_Occurred()) SWIG_fail; | |
26839 | } | |
26840 | Py_INCREF(Py_None); resultobj = Py_None; | |
26841 | return resultobj; | |
26842 | fail: | |
26843 | return NULL; | |
26844 | } | |
26845 | ||
26846 | ||
c32bde28 | 26847 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26848 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26849 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26850 | long arg2 ; | |
26851 | PyObject * obj0 = 0 ; | |
994141e6 | 26852 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26853 | char *kwnames[] = { |
26854 | (char *) "self",(char *) "item", NULL | |
26855 | }; | |
26856 | ||
994141e6 | 26857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26860 | { | |
32fe5131 | 26861 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26862 | if (SWIG_arg_fail(2)) SWIG_fail; |
26863 | } | |
d14a1e28 RD |
26864 | { |
26865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26866 | (arg1)->EditLabel(arg2); | |
26867 | ||
26868 | wxPyEndAllowThreads(__tstate); | |
26869 | if (PyErr_Occurred()) SWIG_fail; | |
26870 | } | |
26871 | Py_INCREF(Py_None); resultobj = Py_None; | |
26872 | return resultobj; | |
26873 | fail: | |
26874 | return NULL; | |
26875 | } | |
26876 | ||
26877 | ||
c32bde28 | 26878 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26879 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26880 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26881 | long arg2 ; | |
26882 | bool result; | |
26883 | PyObject * obj0 = 0 ; | |
994141e6 | 26884 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26885 | char *kwnames[] = { |
26886 | (char *) "self",(char *) "item", NULL | |
26887 | }; | |
26888 | ||
994141e6 | 26889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
26890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26892 | { | |
32fe5131 | 26893 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26894 | if (SWIG_arg_fail(2)) SWIG_fail; |
26895 | } | |
d14a1e28 RD |
26896 | { |
26897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26898 | result = (bool)(arg1)->EnsureVisible(arg2); | |
26899 | ||
26900 | wxPyEndAllowThreads(__tstate); | |
26901 | if (PyErr_Occurred()) SWIG_fail; | |
26902 | } | |
4f89f6a3 RD |
26903 | { |
26904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26905 | } | |
d14a1e28 RD |
26906 | return resultobj; |
26907 | fail: | |
26908 | return NULL; | |
26909 | } | |
26910 | ||
26911 | ||
c32bde28 | 26912 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26913 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26914 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26915 | long arg2 ; | |
26916 | wxString *arg3 = 0 ; | |
ae8162c8 | 26917 | bool arg4 = (bool) false ; |
d14a1e28 | 26918 | long result; |
ae8162c8 | 26919 | bool temp3 = false ; |
d14a1e28 | 26920 | PyObject * obj0 = 0 ; |
994141e6 | 26921 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26922 | PyObject * obj2 = 0 ; |
26923 | PyObject * obj3 = 0 ; | |
26924 | char *kwnames[] = { | |
26925 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
26926 | }; | |
26927 | ||
994141e6 | 26928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
26929 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26930 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26931 | { | |
32fe5131 | 26932 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26933 | if (SWIG_arg_fail(2)) SWIG_fail; |
26934 | } | |
d14a1e28 RD |
26935 | { |
26936 | arg3 = wxString_in_helper(obj2); | |
26937 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 26938 | temp3 = true; |
d14a1e28 RD |
26939 | } |
26940 | if (obj3) { | |
093d3ff1 | 26941 | { |
32fe5131 | 26942 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
26943 | if (SWIG_arg_fail(4)) SWIG_fail; |
26944 | } | |
d14a1e28 RD |
26945 | } |
26946 | { | |
26947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26948 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
26949 | ||
26950 | wxPyEndAllowThreads(__tstate); | |
26951 | if (PyErr_Occurred()) SWIG_fail; | |
26952 | } | |
093d3ff1 | 26953 | { |
32fe5131 | 26954 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 26955 | } |
d14a1e28 RD |
26956 | { |
26957 | if (temp3) | |
26958 | delete arg3; | |
26959 | } | |
26960 | return resultobj; | |
26961 | fail: | |
26962 | { | |
26963 | if (temp3) | |
26964 | delete arg3; | |
26965 | } | |
26966 | return NULL; | |
26967 | } | |
26968 | ||
26969 | ||
c32bde28 | 26970 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 26971 | PyObject *resultobj = NULL; |
d14a1e28 RD |
26972 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
26973 | long arg2 ; | |
26974 | long arg3 ; | |
26975 | long result; | |
26976 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26977 | PyObject * obj1 = 0 ; |
26978 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26979 | char *kwnames[] = { |
26980 | (char *) "self",(char *) "start",(char *) "data", NULL | |
26981 | }; | |
26982 | ||
994141e6 | 26983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
26984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
26985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
26986 | { | |
32fe5131 | 26987 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
26988 | if (SWIG_arg_fail(2)) SWIG_fail; |
26989 | } | |
26990 | { | |
32fe5131 | 26991 | arg3 = static_cast<long >(SWIG_As_long(obj2)); |
093d3ff1 RD |
26992 | if (SWIG_arg_fail(3)) SWIG_fail; |
26993 | } | |
d14a1e28 RD |
26994 | { |
26995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26996 | result = (long)(arg1)->FindItem(arg2,arg3); | |
26997 | ||
26998 | wxPyEndAllowThreads(__tstate); | |
26999 | if (PyErr_Occurred()) SWIG_fail; | |
27000 | } | |
093d3ff1 | 27001 | { |
32fe5131 | 27002 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27003 | } |
d14a1e28 RD |
27004 | return resultobj; |
27005 | fail: | |
27006 | return NULL; | |
27007 | } | |
27008 | ||
27009 | ||
c32bde28 | 27010 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27011 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27012 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27013 | long arg2 ; | |
27014 | wxPoint *arg3 = 0 ; | |
27015 | int arg4 ; | |
27016 | long result; | |
27017 | wxPoint temp3 ; | |
27018 | PyObject * obj0 = 0 ; | |
994141e6 | 27019 | PyObject * obj1 = 0 ; |
d14a1e28 | 27020 | PyObject * obj2 = 0 ; |
994141e6 | 27021 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
27022 | char *kwnames[] = { |
27023 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
27024 | }; | |
27025 | ||
994141e6 | 27026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
27027 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27028 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27029 | { | |
32fe5131 | 27030 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27031 | if (SWIG_arg_fail(2)) SWIG_fail; |
27032 | } | |
d14a1e28 RD |
27033 | { |
27034 | arg3 = &temp3; | |
27035 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27036 | } | |
093d3ff1 | 27037 | { |
32fe5131 | 27038 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
27039 | if (SWIG_arg_fail(4)) SWIG_fail; |
27040 | } | |
d14a1e28 RD |
27041 | { |
27042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27043 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
27044 | ||
27045 | wxPyEndAllowThreads(__tstate); | |
27046 | if (PyErr_Occurred()) SWIG_fail; | |
27047 | } | |
093d3ff1 | 27048 | { |
32fe5131 | 27049 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27050 | } |
d14a1e28 RD |
27051 | return resultobj; |
27052 | fail: | |
27053 | return NULL; | |
27054 | } | |
27055 | ||
27056 | ||
c32bde28 | 27057 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27058 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27059 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27060 | wxPoint *arg2 = 0 ; | |
27061 | int *arg3 = 0 ; | |
27062 | long result; | |
27063 | wxPoint temp2 ; | |
27064 | int temp3 ; | |
c32bde28 | 27065 | int res3 = 0 ; |
d14a1e28 RD |
27066 | PyObject * obj0 = 0 ; |
27067 | PyObject * obj1 = 0 ; | |
27068 | char *kwnames[] = { | |
27069 | (char *) "self",(char *) "point", NULL | |
27070 | }; | |
27071 | ||
c32bde28 | 27072 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 27073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27074 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27075 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27076 | { |
27077 | arg2 = &temp2; | |
27078 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27079 | } | |
27080 | { | |
27081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27082 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27083 | ||
27084 | wxPyEndAllowThreads(__tstate); | |
27085 | if (PyErr_Occurred()) SWIG_fail; | |
27086 | } | |
093d3ff1 | 27087 | { |
32fe5131 | 27088 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27089 | } |
c32bde28 RD |
27090 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27091 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
27092 | return resultobj; |
27093 | fail: | |
27094 | return NULL; | |
27095 | } | |
27096 | ||
27097 | ||
c32bde28 | 27098 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27099 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27100 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27101 | wxListItem *arg2 = 0 ; | |
27102 | long result; | |
27103 | PyObject * obj0 = 0 ; | |
27104 | PyObject * obj1 = 0 ; | |
27105 | char *kwnames[] = { | |
27106 | (char *) "self",(char *) "info", NULL | |
27107 | }; | |
27108 | ||
27109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27110 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27111 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27112 | { | |
27113 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
27114 | if (SWIG_arg_fail(2)) SWIG_fail; | |
27115 | if (arg2 == NULL) { | |
27116 | SWIG_null_ref("wxListItem"); | |
27117 | } | |
27118 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
27119 | } |
27120 | { | |
27121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27122 | result = (long)(arg1)->InsertItem(*arg2); | |
27123 | ||
27124 | wxPyEndAllowThreads(__tstate); | |
27125 | if (PyErr_Occurred()) SWIG_fail; | |
27126 | } | |
093d3ff1 | 27127 | { |
32fe5131 | 27128 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27129 | } |
d14a1e28 RD |
27130 | return resultobj; |
27131 | fail: | |
27132 | return NULL; | |
27133 | } | |
27134 | ||
27135 | ||
c32bde28 | 27136 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27137 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27138 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27139 | long arg2 ; | |
27140 | wxString *arg3 = 0 ; | |
32fe5131 | 27141 | int arg4 = (int) -1 ; |
d14a1e28 | 27142 | long result; |
ae8162c8 | 27143 | bool temp3 = false ; |
d14a1e28 | 27144 | PyObject * obj0 = 0 ; |
994141e6 | 27145 | PyObject * obj1 = 0 ; |
d14a1e28 | 27146 | PyObject * obj2 = 0 ; |
32fe5131 | 27147 | PyObject * obj3 = 0 ; |
d14a1e28 | 27148 | char *kwnames[] = { |
32fe5131 | 27149 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL |
d14a1e28 RD |
27150 | }; |
27151 | ||
32fe5131 | 27152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
27153 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27154 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27155 | { | |
32fe5131 | 27156 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27157 | if (SWIG_arg_fail(2)) SWIG_fail; |
27158 | } | |
d14a1e28 RD |
27159 | { |
27160 | arg3 = wxString_in_helper(obj2); | |
27161 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 27162 | temp3 = true; |
d14a1e28 | 27163 | } |
32fe5131 RD |
27164 | if (obj3) { |
27165 | { | |
27166 | arg4 = static_cast<int >(SWIG_As_int(obj3)); | |
27167 | if (SWIG_arg_fail(4)) SWIG_fail; | |
27168 | } | |
27169 | } | |
d14a1e28 RD |
27170 | { |
27171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 27172 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); |
d14a1e28 RD |
27173 | |
27174 | wxPyEndAllowThreads(__tstate); | |
27175 | if (PyErr_Occurred()) SWIG_fail; | |
27176 | } | |
093d3ff1 | 27177 | { |
32fe5131 | 27178 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27179 | } |
d14a1e28 RD |
27180 | { |
27181 | if (temp3) | |
27182 | delete arg3; | |
27183 | } | |
27184 | return resultobj; | |
27185 | fail: | |
27186 | { | |
27187 | if (temp3) | |
27188 | delete arg3; | |
27189 | } | |
27190 | return NULL; | |
27191 | } | |
27192 | ||
27193 | ||
c32bde28 | 27194 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27195 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27196 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27197 | long arg2 ; | |
27198 | int arg3 ; | |
27199 | long result; | |
27200 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27201 | PyObject * obj1 = 0 ; |
27202 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27203 | char *kwnames[] = { |
27204 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
27205 | }; | |
27206 | ||
994141e6 | 27207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27210 | { | |
32fe5131 | 27211 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27212 | if (SWIG_arg_fail(2)) SWIG_fail; |
27213 | } | |
27214 | { | |
32fe5131 | 27215 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
27216 | if (SWIG_arg_fail(3)) SWIG_fail; |
27217 | } | |
d14a1e28 RD |
27218 | { |
27219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27220 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
27221 | ||
27222 | wxPyEndAllowThreads(__tstate); | |
27223 | if (PyErr_Occurred()) SWIG_fail; | |
27224 | } | |
093d3ff1 | 27225 | { |
32fe5131 | 27226 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27227 | } |
d14a1e28 RD |
27228 | return resultobj; |
27229 | fail: | |
27230 | return NULL; | |
27231 | } | |
27232 | ||
27233 | ||
c32bde28 | 27234 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27235 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27236 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27237 | long arg2 ; | |
27238 | wxString *arg3 = 0 ; | |
27239 | int arg4 ; | |
27240 | long result; | |
ae8162c8 | 27241 | bool temp3 = false ; |
d14a1e28 | 27242 | PyObject * obj0 = 0 ; |
994141e6 | 27243 | PyObject * obj1 = 0 ; |
d14a1e28 | 27244 | PyObject * obj2 = 0 ; |
994141e6 | 27245 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
27246 | char *kwnames[] = { |
27247 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
27248 | }; | |
27249 | ||
994141e6 | 27250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
27251 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27252 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27253 | { | |
32fe5131 | 27254 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27255 | if (SWIG_arg_fail(2)) SWIG_fail; |
27256 | } | |
d14a1e28 RD |
27257 | { |
27258 | arg3 = wxString_in_helper(obj2); | |
27259 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 27260 | temp3 = true; |
d14a1e28 | 27261 | } |
093d3ff1 | 27262 | { |
32fe5131 | 27263 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
27264 | if (SWIG_arg_fail(4)) SWIG_fail; |
27265 | } | |
d14a1e28 RD |
27266 | { |
27267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27268 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
27269 | ||
27270 | wxPyEndAllowThreads(__tstate); | |
27271 | if (PyErr_Occurred()) SWIG_fail; | |
27272 | } | |
093d3ff1 | 27273 | { |
32fe5131 | 27274 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27275 | } |
d14a1e28 RD |
27276 | { |
27277 | if (temp3) | |
27278 | delete arg3; | |
27279 | } | |
27280 | return resultobj; | |
27281 | fail: | |
27282 | { | |
27283 | if (temp3) | |
27284 | delete arg3; | |
27285 | } | |
27286 | return NULL; | |
27287 | } | |
27288 | ||
27289 | ||
a3957d3d | 27290 | static PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27291 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27292 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27293 | long arg2 ; | |
27294 | wxListItem *arg3 = 0 ; | |
27295 | long result; | |
27296 | PyObject * obj0 = 0 ; | |
994141e6 | 27297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27298 | PyObject * obj2 = 0 ; |
27299 | char *kwnames[] = { | |
27300 | (char *) "self",(char *) "col",(char *) "info", NULL | |
27301 | }; | |
27302 | ||
a3957d3d | 27303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27304 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27305 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27306 | { | |
32fe5131 | 27307 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27308 | if (SWIG_arg_fail(2)) SWIG_fail; |
27309 | } | |
27310 | { | |
27311 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxListItem, SWIG_POINTER_EXCEPTION | 0); | |
27312 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27313 | if (arg3 == NULL) { | |
27314 | SWIG_null_ref("wxListItem"); | |
27315 | } | |
27316 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
27317 | } |
27318 | { | |
27319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27320 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
27321 | ||
27322 | wxPyEndAllowThreads(__tstate); | |
27323 | if (PyErr_Occurred()) SWIG_fail; | |
27324 | } | |
093d3ff1 | 27325 | { |
32fe5131 | 27326 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27327 | } |
d14a1e28 RD |
27328 | return resultobj; |
27329 | fail: | |
27330 | return NULL; | |
27331 | } | |
27332 | ||
27333 | ||
c32bde28 | 27334 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27335 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27336 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27337 | long arg2 ; | |
27338 | wxString *arg3 = 0 ; | |
27339 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
27340 | int arg5 = (int) -1 ; | |
27341 | long result; | |
ae8162c8 | 27342 | bool temp3 = false ; |
d14a1e28 | 27343 | PyObject * obj0 = 0 ; |
994141e6 | 27344 | PyObject * obj1 = 0 ; |
d14a1e28 | 27345 | PyObject * obj2 = 0 ; |
994141e6 RD |
27346 | PyObject * obj3 = 0 ; |
27347 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27348 | char *kwnames[] = { |
27349 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
27350 | }; | |
27351 | ||
994141e6 | 27352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
27353 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27354 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27355 | { | |
32fe5131 | 27356 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27357 | if (SWIG_arg_fail(2)) SWIG_fail; |
27358 | } | |
d14a1e28 RD |
27359 | { |
27360 | arg3 = wxString_in_helper(obj2); | |
27361 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 27362 | temp3 = true; |
d14a1e28 | 27363 | } |
994141e6 | 27364 | if (obj3) { |
093d3ff1 | 27365 | { |
32fe5131 | 27366 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
27367 | if (SWIG_arg_fail(4)) SWIG_fail; |
27368 | } | |
994141e6 RD |
27369 | } |
27370 | if (obj4) { | |
093d3ff1 | 27371 | { |
32fe5131 | 27372 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
27373 | if (SWIG_arg_fail(5)) SWIG_fail; |
27374 | } | |
994141e6 | 27375 | } |
d14a1e28 RD |
27376 | { |
27377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27378 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
27379 | ||
27380 | wxPyEndAllowThreads(__tstate); | |
27381 | if (PyErr_Occurred()) SWIG_fail; | |
27382 | } | |
093d3ff1 | 27383 | { |
32fe5131 | 27384 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 27385 | } |
d14a1e28 RD |
27386 | { |
27387 | if (temp3) | |
27388 | delete arg3; | |
27389 | } | |
27390 | return resultobj; | |
27391 | fail: | |
27392 | { | |
27393 | if (temp3) | |
27394 | delete arg3; | |
27395 | } | |
27396 | return NULL; | |
27397 | } | |
27398 | ||
27399 | ||
c32bde28 | 27400 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27401 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27402 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27403 | long arg2 ; | |
27404 | PyObject * obj0 = 0 ; | |
994141e6 | 27405 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27406 | char *kwnames[] = { |
27407 | (char *) "self",(char *) "count", NULL | |
27408 | }; | |
27409 | ||
994141e6 | 27410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27411 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27412 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27413 | { | |
32fe5131 | 27414 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27415 | if (SWIG_arg_fail(2)) SWIG_fail; |
27416 | } | |
d14a1e28 RD |
27417 | { |
27418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27419 | (arg1)->SetItemCount(arg2); | |
27420 | ||
27421 | wxPyEndAllowThreads(__tstate); | |
27422 | if (PyErr_Occurred()) SWIG_fail; | |
27423 | } | |
27424 | Py_INCREF(Py_None); resultobj = Py_None; | |
27425 | return resultobj; | |
27426 | fail: | |
27427 | return NULL; | |
27428 | } | |
27429 | ||
27430 | ||
c32bde28 | 27431 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27432 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27433 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27434 | int arg2 ; | |
27435 | int arg3 ; | |
27436 | bool result; | |
27437 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27438 | PyObject * obj1 = 0 ; |
27439 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27440 | char *kwnames[] = { |
27441 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
27442 | }; | |
27443 | ||
994141e6 | 27444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27445 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27446 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27447 | { | |
32fe5131 | 27448 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27449 | if (SWIG_arg_fail(2)) SWIG_fail; |
27450 | } | |
27451 | { | |
32fe5131 | 27452 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
27453 | if (SWIG_arg_fail(3)) SWIG_fail; |
27454 | } | |
d14a1e28 RD |
27455 | { |
27456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27457 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
27458 | ||
27459 | wxPyEndAllowThreads(__tstate); | |
27460 | if (PyErr_Occurred()) SWIG_fail; | |
27461 | } | |
4f89f6a3 RD |
27462 | { |
27463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27464 | } | |
d14a1e28 RD |
27465 | return resultobj; |
27466 | fail: | |
27467 | return NULL; | |
27468 | } | |
27469 | ||
27470 | ||
c32bde28 | 27471 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27472 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27473 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27474 | long arg2 ; | |
27475 | wxColour *arg3 = 0 ; | |
27476 | wxColour temp3 ; | |
27477 | PyObject * obj0 = 0 ; | |
994141e6 | 27478 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27479 | PyObject * obj2 = 0 ; |
27480 | char *kwnames[] = { | |
27481 | (char *) "self",(char *) "item",(char *) "col", NULL | |
27482 | }; | |
27483 | ||
994141e6 | 27484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27485 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27486 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27487 | { | |
32fe5131 | 27488 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27489 | if (SWIG_arg_fail(2)) SWIG_fail; |
27490 | } | |
d14a1e28 RD |
27491 | { |
27492 | arg3 = &temp3; | |
27493 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
27494 | } | |
27495 | { | |
27496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27497 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
27498 | ||
27499 | wxPyEndAllowThreads(__tstate); | |
27500 | if (PyErr_Occurred()) SWIG_fail; | |
27501 | } | |
27502 | Py_INCREF(Py_None); resultobj = Py_None; | |
27503 | return resultobj; | |
27504 | fail: | |
27505 | return NULL; | |
27506 | } | |
27507 | ||
27508 | ||
c32bde28 | 27509 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27510 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27511 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27512 | long arg2 ; | |
27513 | wxColour result; | |
27514 | PyObject * obj0 = 0 ; | |
994141e6 | 27515 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27516 | char *kwnames[] = { |
27517 | (char *) "self",(char *) "item", NULL | |
27518 | }; | |
27519 | ||
994141e6 | 27520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27521 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27522 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27523 | { | |
32fe5131 | 27524 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27525 | if (SWIG_arg_fail(2)) SWIG_fail; |
27526 | } | |
d14a1e28 RD |
27527 | { |
27528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27529 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
27530 | ||
27531 | wxPyEndAllowThreads(__tstate); | |
27532 | if (PyErr_Occurred()) SWIG_fail; | |
27533 | } | |
27534 | { | |
27535 | wxColour * resultptr; | |
32fe5131 | 27536 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 27537 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
27538 | } |
27539 | return resultobj; | |
27540 | fail: | |
27541 | return NULL; | |
27542 | } | |
27543 | ||
27544 | ||
c32bde28 | 27545 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27546 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27547 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27548 | long arg2 ; | |
27549 | wxColour *arg3 = 0 ; | |
27550 | wxColour temp3 ; | |
27551 | PyObject * obj0 = 0 ; | |
994141e6 | 27552 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27553 | PyObject * obj2 = 0 ; |
27554 | char *kwnames[] = { | |
27555 | (char *) "self",(char *) "item",(char *) "col", NULL | |
27556 | }; | |
27557 | ||
994141e6 | 27558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
27559 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27560 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27561 | { | |
32fe5131 | 27562 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27563 | if (SWIG_arg_fail(2)) SWIG_fail; |
27564 | } | |
d14a1e28 RD |
27565 | { |
27566 | arg3 = &temp3; | |
27567 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
27568 | } | |
27569 | { | |
27570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27571 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
27572 | ||
27573 | wxPyEndAllowThreads(__tstate); | |
27574 | if (PyErr_Occurred()) SWIG_fail; | |
27575 | } | |
27576 | Py_INCREF(Py_None); resultobj = Py_None; | |
27577 | return resultobj; | |
27578 | fail: | |
27579 | return NULL; | |
27580 | } | |
27581 | ||
27582 | ||
c32bde28 | 27583 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27584 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27585 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27586 | long arg2 ; | |
27587 | wxColour result; | |
27588 | PyObject * obj0 = 0 ; | |
994141e6 | 27589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27590 | char *kwnames[] = { |
27591 | (char *) "self",(char *) "item", NULL | |
27592 | }; | |
27593 | ||
994141e6 | 27594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
27595 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27596 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27597 | { | |
32fe5131 | 27598 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
27599 | if (SWIG_arg_fail(2)) SWIG_fail; |
27600 | } | |
d14a1e28 RD |
27601 | { |
27602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27603 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
27604 | ||
27605 | wxPyEndAllowThreads(__tstate); | |
27606 | if (PyErr_Occurred()) SWIG_fail; | |
27607 | } | |
27608 | { | |
27609 | wxColour * resultptr; | |
32fe5131 | 27610 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 27611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
27612 | } |
27613 | return resultobj; | |
27614 | fail: | |
27615 | return NULL; | |
27616 | } | |
27617 | ||
27618 | ||
943e8dfd | 27619 | static PyObject *_wrap_ListCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27620 | PyObject *resultobj = NULL; |
943e8dfd RD |
27621 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27622 | long arg2 ; | |
27623 | wxFont *arg3 = 0 ; | |
27624 | PyObject * obj0 = 0 ; | |
27625 | PyObject * obj1 = 0 ; | |
27626 | PyObject * obj2 = 0 ; | |
27627 | char *kwnames[] = { | |
27628 | (char *) "self",(char *) "item",(char *) "f", NULL | |
27629 | }; | |
27630 | ||
27631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
27633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27634 | { | |
32fe5131 | 27635 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
943e8dfd RD |
27636 | if (SWIG_arg_fail(2)) SWIG_fail; |
27637 | } | |
27638 | { | |
27639 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
27640 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27641 | if (arg3 == NULL) { | |
27642 | SWIG_null_ref("wxFont"); | |
27643 | } | |
27644 | if (SWIG_arg_fail(3)) SWIG_fail; | |
27645 | } | |
27646 | { | |
27647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27648 | (arg1)->SetItemFont(arg2,(wxFont const &)*arg3); | |
27649 | ||
27650 | wxPyEndAllowThreads(__tstate); | |
27651 | if (PyErr_Occurred()) SWIG_fail; | |
27652 | } | |
27653 | Py_INCREF(Py_None); resultobj = Py_None; | |
27654 | return resultobj; | |
27655 | fail: | |
27656 | return NULL; | |
27657 | } | |
27658 | ||
27659 | ||
27660 | static PyObject *_wrap_ListCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 27661 | PyObject *resultobj = NULL; |
943e8dfd RD |
27662 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27663 | long arg2 ; | |
27664 | wxFont result; | |
27665 | PyObject * obj0 = 0 ; | |
27666 | PyObject * obj1 = 0 ; | |
27667 | char *kwnames[] = { | |
27668 | (char *) "self",(char *) "item", NULL | |
27669 | }; | |
27670 | ||
27671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
27672 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
27673 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27674 | { | |
32fe5131 | 27675 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
943e8dfd RD |
27676 | if (SWIG_arg_fail(2)) SWIG_fail; |
27677 | } | |
27678 | { | |
27679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27680 | result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2); | |
27681 | ||
27682 | wxPyEndAllowThreads(__tstate); | |
27683 | if (PyErr_Occurred()) SWIG_fail; | |
27684 | } | |
27685 | { | |
27686 | wxFont * resultptr; | |
32fe5131 | 27687 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
943e8dfd RD |
27688 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
27689 | } | |
27690 | return resultobj; | |
27691 | fail: | |
27692 | return NULL; | |
27693 | } | |
27694 | ||
27695 | ||
c32bde28 | 27696 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27697 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27698 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27699 | PyObject *arg2 = (PyObject *) 0 ; | |
27700 | bool result; | |
27701 | PyObject * obj0 = 0 ; | |
27702 | PyObject * obj1 = 0 ; | |
27703 | char *kwnames[] = { | |
27704 | (char *) "self",(char *) "func", NULL | |
27705 | }; | |
27706 | ||
27707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
27708 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27709 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27710 | arg2 = obj1; |
27711 | { | |
27712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27713 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
27714 | ||
27715 | wxPyEndAllowThreads(__tstate); | |
27716 | if (PyErr_Occurred()) SWIG_fail; | |
27717 | } | |
4f89f6a3 RD |
27718 | { |
27719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27720 | } | |
d14a1e28 RD |
27721 | return resultobj; |
27722 | fail: | |
27723 | return NULL; | |
27724 | } | |
27725 | ||
27726 | ||
c32bde28 | 27727 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27728 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27729 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; |
27730 | wxWindow *result; | |
27731 | PyObject * obj0 = 0 ; | |
27732 | char *kwnames[] = { | |
27733 | (char *) "self", NULL | |
27734 | }; | |
27735 | ||
27736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
27737 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); |
27738 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
27739 | { |
27740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27741 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
27742 | ||
27743 | wxPyEndAllowThreads(__tstate); | |
27744 | if (PyErr_Occurred()) SWIG_fail; | |
27745 | } | |
27746 | { | |
412d302d | 27747 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
27748 | } |
27749 | return resultobj; | |
27750 | fail: | |
27751 | return NULL; | |
27752 | } | |
27753 | ||
27754 | ||
c32bde28 | 27755 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27756 | PyObject *resultobj = NULL; |
093d3ff1 | 27757 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
27758 | wxVisualAttributes result; |
27759 | PyObject * obj0 = 0 ; | |
27760 | char *kwnames[] = { | |
27761 | (char *) "variant", NULL | |
27762 | }; | |
27763 | ||
27764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27765 | if (obj0) { | |
093d3ff1 | 27766 | { |
32fe5131 | 27767 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
27768 | if (SWIG_arg_fail(1)) SWIG_fail; |
27769 | } | |
74a57fcd RD |
27770 | } |
27771 | { | |
110da5b0 | 27772 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd | 27773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 27774 | result = wxPyListCtrl::GetClassDefaultAttributes(arg1); |
74a57fcd RD |
27775 | |
27776 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 27777 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
27778 | } |
27779 | { | |
27780 | wxVisualAttributes * resultptr; | |
32fe5131 | 27781 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
74a57fcd RD |
27782 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
27783 | } | |
27784 | return resultobj; | |
27785 | fail: | |
27786 | return NULL; | |
27787 | } | |
27788 | ||
27789 | ||
c32bde28 | 27790 | static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
27791 | PyObject *obj; |
27792 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27793 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
27794 | Py_INCREF(obj); | |
27795 | return Py_BuildValue((char *)""); | |
27796 | } | |
c32bde28 | 27797 | static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27798 | PyObject *resultobj = NULL; |
d14a1e28 | 27799 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 27800 | int arg2 = (int) -1 ; |
d14a1e28 RD |
27801 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27802 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27803 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27804 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27805 | long arg5 = (long) wxLC_REPORT ; | |
27806 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
27807 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
27808 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
27809 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27810 | wxListView *result; | |
27811 | wxPoint temp3 ; | |
27812 | wxSize temp4 ; | |
ae8162c8 | 27813 | bool temp7 = false ; |
d14a1e28 | 27814 | PyObject * obj0 = 0 ; |
994141e6 | 27815 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27816 | PyObject * obj2 = 0 ; |
27817 | PyObject * obj3 = 0 ; | |
994141e6 | 27818 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27819 | PyObject * obj5 = 0 ; |
27820 | PyObject * obj6 = 0 ; | |
27821 | char *kwnames[] = { | |
27822 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27823 | }; | |
27824 | ||
994141e6 | 27825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
27826 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
27827 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 27828 | if (obj1) { |
093d3ff1 | 27829 | { |
32fe5131 | 27830 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
27831 | if (SWIG_arg_fail(2)) SWIG_fail; |
27832 | } | |
994141e6 | 27833 | } |
d14a1e28 RD |
27834 | if (obj2) { |
27835 | { | |
27836 | arg3 = &temp3; | |
27837 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27838 | } | |
27839 | } | |
27840 | if (obj3) { | |
27841 | { | |
27842 | arg4 = &temp4; | |
27843 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27844 | } | |
27845 | } | |
994141e6 | 27846 | if (obj4) { |
093d3ff1 | 27847 | { |
32fe5131 | 27848 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
27849 | if (SWIG_arg_fail(5)) SWIG_fail; |
27850 | } | |
994141e6 | 27851 | } |
d14a1e28 | 27852 | if (obj5) { |
093d3ff1 RD |
27853 | { |
27854 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
27855 | if (SWIG_arg_fail(6)) SWIG_fail; | |
27856 | if (arg6 == NULL) { | |
27857 | SWIG_null_ref("wxValidator"); | |
27858 | } | |
27859 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
27860 | } |
27861 | } | |
27862 | if (obj6) { | |
27863 | { | |
27864 | arg7 = wxString_in_helper(obj6); | |
27865 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 27866 | temp7 = true; |
d14a1e28 RD |
27867 | } |
27868 | } | |
27869 | { | |
e3b71cb8 | 27870 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
27871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27872 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
27873 | ||
27874 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27875 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 27876 | } |
15afbcd0 | 27877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
27878 | { |
27879 | if (temp7) | |
27880 | delete arg7; | |
27881 | } | |
27882 | return resultobj; | |
27883 | fail: | |
27884 | { | |
27885 | if (temp7) | |
27886 | delete arg7; | |
27887 | } | |
27888 | return NULL; | |
27889 | } | |
27890 | ||
27891 | ||
c32bde28 | 27892 | static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27893 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27894 | wxListView *result; |
27895 | char *kwnames[] = { | |
27896 | NULL | |
27897 | }; | |
27898 | ||
27899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
27900 | { | |
e3b71cb8 | 27901 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
27902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27903 | result = (wxListView *)new wxListView(); | |
27904 | ||
27905 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27906 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 27907 | } |
15afbcd0 | 27908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
27909 | return resultobj; |
27910 | fail: | |
27911 | return NULL; | |
27912 | } | |
27913 | ||
27914 | ||
c32bde28 | 27915 | static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 27916 | PyObject *resultobj = NULL; |
d14a1e28 RD |
27917 | wxListView *arg1 = (wxListView *) 0 ; |
27918 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 27919 | int arg3 = (int) -1 ; |
d14a1e28 RD |
27920 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
27921 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27922 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27923 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27924 | long arg6 = (long) wxLC_REPORT ; | |
27925 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
27926 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
27927 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
27928 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27929 | bool result; | |
27930 | wxPoint temp4 ; | |
27931 | wxSize temp5 ; | |
ae8162c8 | 27932 | bool temp8 = false ; |
d14a1e28 RD |
27933 | PyObject * obj0 = 0 ; |
27934 | PyObject * obj1 = 0 ; | |
994141e6 | 27935 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27936 | PyObject * obj3 = 0 ; |
27937 | PyObject * obj4 = 0 ; | |
994141e6 | 27938 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
27939 | PyObject * obj6 = 0 ; |
27940 | PyObject * obj7 = 0 ; | |
27941 | char *kwnames[] = { | |
27942 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
27943 | }; | |
27944 | ||
994141e6 | 27945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
27946 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
27947 | if (SWIG_arg_fail(1)) SWIG_fail; | |
27948 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
27949 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 27950 | if (obj2) { |
093d3ff1 | 27951 | { |
32fe5131 | 27952 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
27953 | if (SWIG_arg_fail(3)) SWIG_fail; |
27954 | } | |
994141e6 | 27955 | } |
d14a1e28 RD |
27956 | if (obj3) { |
27957 | { | |
27958 | arg4 = &temp4; | |
27959 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27960 | } | |
27961 | } | |
27962 | if (obj4) { | |
27963 | { | |
27964 | arg5 = &temp5; | |
27965 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27966 | } | |
27967 | } | |
994141e6 | 27968 | if (obj5) { |
093d3ff1 | 27969 | { |
32fe5131 | 27970 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
27971 | if (SWIG_arg_fail(6)) SWIG_fail; |
27972 | } | |
994141e6 | 27973 | } |
d14a1e28 | 27974 | if (obj6) { |
093d3ff1 RD |
27975 | { |
27976 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
27977 | if (SWIG_arg_fail(7)) SWIG_fail; | |
27978 | if (arg7 == NULL) { | |
27979 | SWIG_null_ref("wxValidator"); | |
27980 | } | |
27981 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
27982 | } |
27983 | } | |
27984 | if (obj7) { | |
27985 | { | |
27986 | arg8 = wxString_in_helper(obj7); | |
27987 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 27988 | temp8 = true; |
d14a1e28 RD |
27989 | } |
27990 | } | |
27991 | { | |
27992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27993 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
27994 | ||
27995 | wxPyEndAllowThreads(__tstate); | |
27996 | if (PyErr_Occurred()) SWIG_fail; | |
27997 | } | |
4f89f6a3 RD |
27998 | { |
27999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28000 | } | |
d14a1e28 RD |
28001 | { |
28002 | if (temp8) | |
28003 | delete arg8; | |
28004 | } | |
28005 | return resultobj; | |
28006 | fail: | |
28007 | { | |
28008 | if (temp8) | |
28009 | delete arg8; | |
28010 | } | |
28011 | return NULL; | |
28012 | } | |
28013 | ||
28014 | ||
c32bde28 | 28015 | static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28016 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28017 | wxListView *arg1 = (wxListView *) 0 ; |
28018 | long arg2 ; | |
ae8162c8 | 28019 | bool arg3 = (bool) true ; |
d14a1e28 | 28020 | PyObject * obj0 = 0 ; |
994141e6 | 28021 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28022 | PyObject * obj2 = 0 ; |
28023 | char *kwnames[] = { | |
28024 | (char *) "self",(char *) "n",(char *) "on", NULL | |
28025 | }; | |
28026 | ||
15afbcd0 | 28027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28028 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
28029 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28030 | { | |
32fe5131 | 28031 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
28032 | if (SWIG_arg_fail(2)) SWIG_fail; |
28033 | } | |
d14a1e28 | 28034 | if (obj2) { |
093d3ff1 | 28035 | { |
32fe5131 | 28036 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
28037 | if (SWIG_arg_fail(3)) SWIG_fail; |
28038 | } | |
d14a1e28 RD |
28039 | } |
28040 | { | |
28041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28042 | (arg1)->Select(arg2,arg3); | |
28043 | ||
28044 | wxPyEndAllowThreads(__tstate); | |
28045 | if (PyErr_Occurred()) SWIG_fail; | |
28046 | } | |
28047 | Py_INCREF(Py_None); resultobj = Py_None; | |
28048 | return resultobj; | |
28049 | fail: | |
28050 | return NULL; | |
28051 | } | |
28052 | ||
28053 | ||
c32bde28 | 28054 | static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28055 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28056 | wxListView *arg1 = (wxListView *) 0 ; |
28057 | long arg2 ; | |
28058 | PyObject * obj0 = 0 ; | |
994141e6 | 28059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28060 | char *kwnames[] = { |
28061 | (char *) "self",(char *) "index", NULL | |
28062 | }; | |
28063 | ||
994141e6 | 28064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
28066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28067 | { | |
32fe5131 | 28068 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
28069 | if (SWIG_arg_fail(2)) SWIG_fail; |
28070 | } | |
d14a1e28 RD |
28071 | { |
28072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28073 | (arg1)->Focus(arg2); | |
28074 | ||
28075 | wxPyEndAllowThreads(__tstate); | |
28076 | if (PyErr_Occurred()) SWIG_fail; | |
28077 | } | |
28078 | Py_INCREF(Py_None); resultobj = Py_None; | |
28079 | return resultobj; | |
28080 | fail: | |
28081 | return NULL; | |
28082 | } | |
28083 | ||
28084 | ||
c32bde28 | 28085 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28086 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28087 | wxListView *arg1 = (wxListView *) 0 ; |
28088 | long result; | |
28089 | PyObject * obj0 = 0 ; | |
28090 | char *kwnames[] = { | |
28091 | (char *) "self", NULL | |
28092 | }; | |
28093 | ||
28094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
28096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28097 | { |
28098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28099 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
28100 | ||
28101 | wxPyEndAllowThreads(__tstate); | |
28102 | if (PyErr_Occurred()) SWIG_fail; | |
28103 | } | |
093d3ff1 | 28104 | { |
32fe5131 | 28105 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 28106 | } |
d14a1e28 RD |
28107 | return resultobj; |
28108 | fail: | |
28109 | return NULL; | |
28110 | } | |
28111 | ||
28112 | ||
c32bde28 | 28113 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28114 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28115 | wxListView *arg1 = (wxListView *) 0 ; |
28116 | long arg2 ; | |
28117 | long result; | |
28118 | PyObject * obj0 = 0 ; | |
994141e6 | 28119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28120 | char *kwnames[] = { |
28121 | (char *) "self",(char *) "item", NULL | |
28122 | }; | |
28123 | ||
994141e6 | 28124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28125 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
28126 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28127 | { | |
32fe5131 | 28128 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
28129 | if (SWIG_arg_fail(2)) SWIG_fail; |
28130 | } | |
d14a1e28 RD |
28131 | { |
28132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28133 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
28134 | ||
28135 | wxPyEndAllowThreads(__tstate); | |
28136 | if (PyErr_Occurred()) SWIG_fail; | |
28137 | } | |
093d3ff1 | 28138 | { |
32fe5131 | 28139 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 28140 | } |
d14a1e28 RD |
28141 | return resultobj; |
28142 | fail: | |
28143 | return NULL; | |
28144 | } | |
28145 | ||
28146 | ||
c32bde28 | 28147 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28148 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28149 | wxListView *arg1 = (wxListView *) 0 ; |
28150 | long result; | |
28151 | PyObject * obj0 = 0 ; | |
28152 | char *kwnames[] = { | |
28153 | (char *) "self", NULL | |
28154 | }; | |
28155 | ||
28156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28157 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
28158 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28159 | { |
28160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28161 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
28162 | ||
28163 | wxPyEndAllowThreads(__tstate); | |
28164 | if (PyErr_Occurred()) SWIG_fail; | |
28165 | } | |
093d3ff1 | 28166 | { |
32fe5131 | 28167 | resultobj = SWIG_From_long(static_cast<long >(result)); |
093d3ff1 | 28168 | } |
d14a1e28 RD |
28169 | return resultobj; |
28170 | fail: | |
28171 | return NULL; | |
28172 | } | |
28173 | ||
28174 | ||
c32bde28 | 28175 | static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28176 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28177 | wxListView *arg1 = (wxListView *) 0 ; |
28178 | long arg2 ; | |
28179 | bool result; | |
28180 | PyObject * obj0 = 0 ; | |
994141e6 | 28181 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28182 | char *kwnames[] = { |
28183 | (char *) "self",(char *) "index", NULL | |
28184 | }; | |
28185 | ||
994141e6 | 28186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28187 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
28188 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28189 | { | |
32fe5131 | 28190 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 RD |
28191 | if (SWIG_arg_fail(2)) SWIG_fail; |
28192 | } | |
d14a1e28 RD |
28193 | { |
28194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28195 | result = (bool)(arg1)->IsSelected(arg2); | |
28196 | ||
28197 | wxPyEndAllowThreads(__tstate); | |
28198 | if (PyErr_Occurred()) SWIG_fail; | |
28199 | } | |
4f89f6a3 RD |
28200 | { |
28201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28202 | } | |
d14a1e28 RD |
28203 | return resultobj; |
28204 | fail: | |
28205 | return NULL; | |
28206 | } | |
28207 | ||
28208 | ||
c32bde28 | 28209 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28210 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28211 | wxListView *arg1 = (wxListView *) 0 ; |
28212 | int arg2 ; | |
28213 | int arg3 ; | |
28214 | PyObject * obj0 = 0 ; | |
994141e6 RD |
28215 | PyObject * obj1 = 0 ; |
28216 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28217 | char *kwnames[] = { |
28218 | (char *) "self",(char *) "col",(char *) "image", NULL | |
28219 | }; | |
28220 | ||
994141e6 | 28221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
28222 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
28223 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28224 | { | |
32fe5131 | 28225 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28226 | if (SWIG_arg_fail(2)) SWIG_fail; |
28227 | } | |
28228 | { | |
32fe5131 | 28229 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
28230 | if (SWIG_arg_fail(3)) SWIG_fail; |
28231 | } | |
d14a1e28 RD |
28232 | { |
28233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28234 | (arg1)->SetColumnImage(arg2,arg3); | |
28235 | ||
28236 | wxPyEndAllowThreads(__tstate); | |
28237 | if (PyErr_Occurred()) SWIG_fail; | |
28238 | } | |
28239 | Py_INCREF(Py_None); resultobj = Py_None; | |
28240 | return resultobj; | |
28241 | fail: | |
28242 | return NULL; | |
28243 | } | |
28244 | ||
28245 | ||
c32bde28 | 28246 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28247 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28248 | wxListView *arg1 = (wxListView *) 0 ; |
28249 | int arg2 ; | |
28250 | PyObject * obj0 = 0 ; | |
994141e6 | 28251 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28252 | char *kwnames[] = { |
28253 | (char *) "self",(char *) "col", NULL | |
28254 | }; | |
28255 | ||
994141e6 | 28256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
28257 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxListView, SWIG_POINTER_EXCEPTION | 0); |
28258 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28259 | { | |
32fe5131 | 28260 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28261 | if (SWIG_arg_fail(2)) SWIG_fail; |
28262 | } | |
d14a1e28 RD |
28263 | { |
28264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28265 | (arg1)->ClearColumnImage(arg2); | |
28266 | ||
28267 | wxPyEndAllowThreads(__tstate); | |
28268 | if (PyErr_Occurred()) SWIG_fail; | |
28269 | } | |
28270 | Py_INCREF(Py_None); resultobj = Py_None; | |
28271 | return resultobj; | |
28272 | fail: | |
28273 | return NULL; | |
28274 | } | |
28275 | ||
28276 | ||
c32bde28 | 28277 | static PyObject * ListView_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28278 | PyObject *obj; |
28279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28280 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
28281 | Py_INCREF(obj); | |
28282 | return Py_BuildValue((char *)""); | |
28283 | } | |
c32bde28 | 28284 | static int _wrap_TreeCtrlNameStr_set(PyObject *) { |
b2dc1044 RD |
28285 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
28286 | return 1; | |
28287 | } | |
28288 | ||
28289 | ||
093d3ff1 | 28290 | static PyObject *_wrap_TreeCtrlNameStr_get(void) { |
32fe5131 | 28291 | PyObject *pyobj = NULL; |
b2dc1044 RD |
28292 | |
28293 | { | |
28294 | #if wxUSE_UNICODE | |
28295 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
28296 | #else | |
28297 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
28298 | #endif | |
28299 | } | |
28300 | return pyobj; | |
28301 | } | |
28302 | ||
28303 | ||
c32bde28 | 28304 | static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28305 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28306 | wxTreeItemId *result; |
28307 | char *kwnames[] = { | |
28308 | NULL | |
28309 | }; | |
28310 | ||
28311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
28312 | { | |
28313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28314 | result = (wxTreeItemId *)new wxTreeItemId(); | |
28315 | ||
28316 | wxPyEndAllowThreads(__tstate); | |
28317 | if (PyErr_Occurred()) SWIG_fail; | |
28318 | } | |
15afbcd0 | 28319 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28320 | return resultobj; |
28321 | fail: | |
28322 | return NULL; | |
28323 | } | |
28324 | ||
28325 | ||
c32bde28 | 28326 | static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28327 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28328 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
28329 | PyObject * obj0 = 0 ; | |
28330 | char *kwnames[] = { | |
28331 | (char *) "self", NULL | |
28332 | }; | |
28333 | ||
28334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28335 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
28336 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28337 | { |
28338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28339 | delete arg1; | |
28340 | ||
28341 | wxPyEndAllowThreads(__tstate); | |
28342 | if (PyErr_Occurred()) SWIG_fail; | |
28343 | } | |
28344 | Py_INCREF(Py_None); resultobj = Py_None; | |
28345 | return resultobj; | |
28346 | fail: | |
28347 | return NULL; | |
28348 | } | |
28349 | ||
28350 | ||
c32bde28 | 28351 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28352 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28353 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
28354 | bool result; | |
28355 | PyObject * obj0 = 0 ; | |
28356 | char *kwnames[] = { | |
28357 | (char *) "self", NULL | |
28358 | }; | |
28359 | ||
28360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28361 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
28362 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28363 | { |
28364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28365 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
28366 | ||
28367 | wxPyEndAllowThreads(__tstate); | |
28368 | if (PyErr_Occurred()) SWIG_fail; | |
28369 | } | |
4f89f6a3 RD |
28370 | { |
28371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28372 | } | |
d14a1e28 RD |
28373 | return resultobj; |
28374 | fail: | |
28375 | return NULL; | |
28376 | } | |
28377 | ||
28378 | ||
c32bde28 | 28379 | static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28380 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28381 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
28382 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
28383 | bool result; | |
28384 | PyObject * obj0 = 0 ; | |
28385 | PyObject * obj1 = 0 ; | |
28386 | char *kwnames[] = { | |
28387 | (char *) "self",(char *) "other", NULL | |
28388 | }; | |
28389 | ||
28390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28391 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
28392 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28393 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28394 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28395 | { |
28396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 28397 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
28398 | |
28399 | wxPyEndAllowThreads(__tstate); | |
28400 | if (PyErr_Occurred()) SWIG_fail; | |
28401 | } | |
4f89f6a3 RD |
28402 | { |
28403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28404 | } | |
d14a1e28 RD |
28405 | return resultobj; |
28406 | fail: | |
28407 | return NULL; | |
28408 | } | |
28409 | ||
28410 | ||
c32bde28 | 28411 | static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28412 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28413 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
28414 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
28415 | bool result; | |
28416 | PyObject * obj0 = 0 ; | |
28417 | PyObject * obj1 = 0 ; | |
28418 | char *kwnames[] = { | |
28419 | (char *) "self",(char *) "other", NULL | |
28420 | }; | |
28421 | ||
28422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28423 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
28424 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28425 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28426 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28427 | { |
28428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 28429 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
28430 | |
28431 | wxPyEndAllowThreads(__tstate); | |
28432 | if (PyErr_Occurred()) SWIG_fail; | |
28433 | } | |
4f89f6a3 RD |
28434 | { |
28435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28436 | } | |
d14a1e28 RD |
28437 | return resultobj; |
28438 | fail: | |
28439 | return NULL; | |
28440 | } | |
28441 | ||
28442 | ||
c32bde28 | 28443 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28444 | PyObject *resultobj = NULL; |
d14a1e28 | 28445 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
58203fa6 | 28446 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
28447 | PyObject * obj0 = 0 ; |
28448 | PyObject * obj1 = 0 ; | |
28449 | char *kwnames[] = { | |
28450 | (char *) "self",(char *) "m_pItem", NULL | |
28451 | }; | |
28452 | ||
28453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28454 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
28455 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28456 | { | |
32fe5131 | 28457 | if ((SWIG_ConvertPtr(obj1,reinterpret_cast<void ** >(&arg2),0,SWIG_POINTER_EXCEPTION|SWIG_POINTER_DISOWN))== -1) { |
093d3ff1 RD |
28458 | SWIG_arg_fail(2);SWIG_fail; |
28459 | } | |
28460 | } | |
d14a1e28 RD |
28461 | if (arg1) (arg1)->m_pItem = arg2; |
28462 | ||
28463 | Py_INCREF(Py_None); resultobj = Py_None; | |
28464 | return resultobj; | |
28465 | fail: | |
28466 | return NULL; | |
28467 | } | |
28468 | ||
28469 | ||
c32bde28 | 28470 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28471 | PyObject *resultobj = NULL; |
d14a1e28 | 28472 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; |
58203fa6 | 28473 | void *result; |
d14a1e28 RD |
28474 | PyObject * obj0 = 0 ; |
28475 | char *kwnames[] = { | |
28476 | (char *) "self", NULL | |
28477 | }; | |
28478 | ||
28479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28480 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); |
28481 | if (SWIG_arg_fail(1)) SWIG_fail; | |
58203fa6 | 28482 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 28483 | |
15afbcd0 | 28484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
28485 | return resultobj; |
28486 | fail: | |
28487 | return NULL; | |
28488 | } | |
28489 | ||
28490 | ||
c32bde28 | 28491 | static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28492 | PyObject *obj; |
28493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28494 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
28495 | Py_INCREF(obj); | |
28496 | return Py_BuildValue((char *)""); | |
28497 | } | |
c32bde28 | 28498 | static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28499 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28500 | PyObject *arg1 = (PyObject *) NULL ; |
28501 | wxPyTreeItemData *result; | |
28502 | PyObject * obj0 = 0 ; | |
28503 | char *kwnames[] = { | |
28504 | (char *) "obj", NULL | |
28505 | }; | |
28506 | ||
28507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
28508 | if (obj0) { | |
28509 | arg1 = obj0; | |
28510 | } | |
28511 | { | |
28512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28513 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
28514 | ||
28515 | wxPyEndAllowThreads(__tstate); | |
28516 | if (PyErr_Occurred()) SWIG_fail; | |
28517 | } | |
15afbcd0 | 28518 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
28519 | return resultobj; |
28520 | fail: | |
28521 | return NULL; | |
28522 | } | |
28523 | ||
28524 | ||
7e08d4ef RD |
28525 | static PyObject *_wrap_delete_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
28526 | PyObject *resultobj = NULL; | |
28527 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
28528 | PyObject * obj0 = 0 ; | |
28529 | char *kwnames[] = { | |
28530 | (char *) "self", NULL | |
28531 | }; | |
28532 | ||
28533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemData",kwnames,&obj0)) goto fail; | |
28534 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); | |
28535 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28536 | { | |
28537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28538 | delete arg1; | |
28539 | ||
28540 | wxPyEndAllowThreads(__tstate); | |
28541 | if (PyErr_Occurred()) SWIG_fail; | |
28542 | } | |
28543 | Py_INCREF(Py_None); resultobj = Py_None; | |
28544 | return resultobj; | |
28545 | fail: | |
28546 | return NULL; | |
28547 | } | |
28548 | ||
28549 | ||
c32bde28 | 28550 | static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28551 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28552 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
28553 | PyObject *result; | |
28554 | PyObject * obj0 = 0 ; | |
28555 | char *kwnames[] = { | |
28556 | (char *) "self", NULL | |
28557 | }; | |
28558 | ||
28559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28560 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28561 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28562 | { |
28563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28564 | result = (PyObject *)(arg1)->GetData(); | |
28565 | ||
28566 | wxPyEndAllowThreads(__tstate); | |
28567 | if (PyErr_Occurred()) SWIG_fail; | |
28568 | } | |
28569 | resultobj = result; | |
28570 | return resultobj; | |
28571 | fail: | |
28572 | return NULL; | |
28573 | } | |
28574 | ||
28575 | ||
c32bde28 | 28576 | static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28577 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28578 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
28579 | PyObject *arg2 = (PyObject *) 0 ; | |
28580 | PyObject * obj0 = 0 ; | |
28581 | PyObject * obj1 = 0 ; | |
28582 | char *kwnames[] = { | |
28583 | (char *) "self",(char *) "obj", NULL | |
28584 | }; | |
28585 | ||
28586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28587 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28588 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28589 | arg2 = obj1; |
28590 | { | |
28591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28592 | (arg1)->SetData(arg2); | |
28593 | ||
28594 | wxPyEndAllowThreads(__tstate); | |
28595 | if (PyErr_Occurred()) SWIG_fail; | |
28596 | } | |
28597 | Py_INCREF(Py_None); resultobj = Py_None; | |
28598 | return resultobj; | |
28599 | fail: | |
28600 | return NULL; | |
28601 | } | |
28602 | ||
28603 | ||
c32bde28 | 28604 | static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28605 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28606 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
28607 | wxTreeItemId *result; | |
28608 | PyObject * obj0 = 0 ; | |
28609 | char *kwnames[] = { | |
28610 | (char *) "self", NULL | |
28611 | }; | |
28612 | ||
28613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28614 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28615 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28616 | { |
28617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28618 | { | |
28619 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
28620 | result = (wxTreeItemId *) &_result_ref; | |
28621 | } | |
28622 | ||
28623 | wxPyEndAllowThreads(__tstate); | |
28624 | if (PyErr_Occurred()) SWIG_fail; | |
28625 | } | |
15afbcd0 | 28626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
28627 | return resultobj; |
28628 | fail: | |
28629 | return NULL; | |
28630 | } | |
28631 | ||
28632 | ||
c32bde28 | 28633 | static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28634 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28635 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
28636 | wxTreeItemId *arg2 = 0 ; | |
28637 | PyObject * obj0 = 0 ; | |
28638 | PyObject * obj1 = 0 ; | |
28639 | char *kwnames[] = { | |
28640 | (char *) "self",(char *) "id", NULL | |
28641 | }; | |
28642 | ||
28643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28644 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28645 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28646 | { | |
28647 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28648 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28649 | if (arg2 == NULL) { | |
28650 | SWIG_null_ref("wxTreeItemId"); | |
28651 | } | |
28652 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28653 | } |
28654 | { | |
28655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28656 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
28657 | ||
28658 | wxPyEndAllowThreads(__tstate); | |
28659 | if (PyErr_Occurred()) SWIG_fail; | |
28660 | } | |
28661 | Py_INCREF(Py_None); resultobj = Py_None; | |
28662 | return resultobj; | |
28663 | fail: | |
28664 | return NULL; | |
28665 | } | |
28666 | ||
28667 | ||
c32bde28 | 28668 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28669 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28670 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; |
28671 | PyObject * obj0 = 0 ; | |
28672 | char *kwnames[] = { | |
28673 | (char *) "self", NULL | |
28674 | }; | |
28675 | ||
28676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28677 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | 0); |
28678 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28679 | { |
28680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28681 | wxPyTreeItemData_Destroy(arg1); | |
28682 | ||
28683 | wxPyEndAllowThreads(__tstate); | |
28684 | if (PyErr_Occurred()) SWIG_fail; | |
28685 | } | |
28686 | Py_INCREF(Py_None); resultobj = Py_None; | |
28687 | return resultobj; | |
28688 | fail: | |
28689 | return NULL; | |
28690 | } | |
28691 | ||
28692 | ||
c32bde28 | 28693 | static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
28694 | PyObject *obj; |
28695 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28696 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
28697 | Py_INCREF(obj); | |
28698 | return Py_BuildValue((char *)""); | |
28699 | } | |
c32bde28 | 28700 | static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28701 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28702 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
28703 | int arg2 = (int) 0 ; | |
28704 | wxTreeEvent *result; | |
994141e6 RD |
28705 | PyObject * obj0 = 0 ; |
28706 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
28707 | char *kwnames[] = { |
28708 | (char *) "commandType",(char *) "id", NULL | |
28709 | }; | |
28710 | ||
994141e6 RD |
28711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
28712 | if (obj0) { | |
093d3ff1 | 28713 | { |
32fe5131 | 28714 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
28715 | if (SWIG_arg_fail(1)) SWIG_fail; |
28716 | } | |
994141e6 RD |
28717 | } |
28718 | if (obj1) { | |
093d3ff1 | 28719 | { |
32fe5131 | 28720 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
28721 | if (SWIG_arg_fail(2)) SWIG_fail; |
28722 | } | |
994141e6 | 28723 | } |
d14a1e28 RD |
28724 | { |
28725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28726 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
28727 | ||
28728 | wxPyEndAllowThreads(__tstate); | |
28729 | if (PyErr_Occurred()) SWIG_fail; | |
28730 | } | |
15afbcd0 | 28731 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
28732 | return resultobj; |
28733 | fail: | |
28734 | return NULL; | |
28735 | } | |
28736 | ||
28737 | ||
c32bde28 | 28738 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28739 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28740 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28741 | wxTreeItemId result; | |
28742 | PyObject * obj0 = 0 ; | |
28743 | char *kwnames[] = { | |
28744 | (char *) "self", NULL | |
28745 | }; | |
28746 | ||
28747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28748 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28749 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28750 | { |
28751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28752 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
28753 | ||
28754 | wxPyEndAllowThreads(__tstate); | |
28755 | if (PyErr_Occurred()) SWIG_fail; | |
28756 | } | |
28757 | { | |
28758 | wxTreeItemId * resultptr; | |
32fe5131 | 28759 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 28760 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28761 | } |
28762 | return resultobj; | |
28763 | fail: | |
28764 | return NULL; | |
28765 | } | |
28766 | ||
28767 | ||
c32bde28 | 28768 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28769 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28770 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28771 | wxTreeItemId *arg2 = 0 ; | |
28772 | PyObject * obj0 = 0 ; | |
28773 | PyObject * obj1 = 0 ; | |
28774 | char *kwnames[] = { | |
28775 | (char *) "self",(char *) "item", NULL | |
28776 | }; | |
28777 | ||
28778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28779 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28780 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28781 | { | |
28782 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28783 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28784 | if (arg2 == NULL) { | |
28785 | SWIG_null_ref("wxTreeItemId"); | |
28786 | } | |
28787 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28788 | } |
28789 | { | |
28790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28791 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
28792 | ||
28793 | wxPyEndAllowThreads(__tstate); | |
28794 | if (PyErr_Occurred()) SWIG_fail; | |
28795 | } | |
28796 | Py_INCREF(Py_None); resultobj = Py_None; | |
28797 | return resultobj; | |
28798 | fail: | |
28799 | return NULL; | |
28800 | } | |
28801 | ||
28802 | ||
c32bde28 | 28803 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28804 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28805 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28806 | wxTreeItemId result; | |
28807 | PyObject * obj0 = 0 ; | |
28808 | char *kwnames[] = { | |
28809 | (char *) "self", NULL | |
28810 | }; | |
28811 | ||
28812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28813 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28814 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28815 | { |
28816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28817 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
28818 | ||
28819 | wxPyEndAllowThreads(__tstate); | |
28820 | if (PyErr_Occurred()) SWIG_fail; | |
28821 | } | |
28822 | { | |
28823 | wxTreeItemId * resultptr; | |
32fe5131 | 28824 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 28825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28826 | } |
28827 | return resultobj; | |
28828 | fail: | |
28829 | return NULL; | |
28830 | } | |
28831 | ||
28832 | ||
c32bde28 | 28833 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28834 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28835 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28836 | wxTreeItemId *arg2 = 0 ; | |
28837 | PyObject * obj0 = 0 ; | |
28838 | PyObject * obj1 = 0 ; | |
28839 | char *kwnames[] = { | |
28840 | (char *) "self",(char *) "item", NULL | |
28841 | }; | |
28842 | ||
28843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28844 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28845 | if (SWIG_arg_fail(1)) SWIG_fail; | |
28846 | { | |
28847 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
28848 | if (SWIG_arg_fail(2)) SWIG_fail; | |
28849 | if (arg2 == NULL) { | |
28850 | SWIG_null_ref("wxTreeItemId"); | |
28851 | } | |
28852 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
28853 | } |
28854 | { | |
28855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28856 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
28857 | ||
28858 | wxPyEndAllowThreads(__tstate); | |
28859 | if (PyErr_Occurred()) SWIG_fail; | |
28860 | } | |
28861 | Py_INCREF(Py_None); resultobj = Py_None; | |
28862 | return resultobj; | |
28863 | fail: | |
28864 | return NULL; | |
28865 | } | |
28866 | ||
28867 | ||
c32bde28 | 28868 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28869 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28870 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28871 | wxPoint result; | |
28872 | PyObject * obj0 = 0 ; | |
28873 | char *kwnames[] = { | |
28874 | (char *) "self", NULL | |
28875 | }; | |
28876 | ||
28877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28878 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28879 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28880 | { |
28881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28882 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
28883 | ||
28884 | wxPyEndAllowThreads(__tstate); | |
28885 | if (PyErr_Occurred()) SWIG_fail; | |
28886 | } | |
28887 | { | |
28888 | wxPoint * resultptr; | |
32fe5131 | 28889 | resultptr = new wxPoint(static_cast<wxPoint & >(result)); |
15afbcd0 | 28890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
28891 | } |
28892 | return resultobj; | |
28893 | fail: | |
28894 | return NULL; | |
28895 | } | |
28896 | ||
28897 | ||
c32bde28 | 28898 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28899 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28900 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28901 | wxPoint *arg2 = 0 ; | |
28902 | wxPoint temp2 ; | |
28903 | PyObject * obj0 = 0 ; | |
28904 | PyObject * obj1 = 0 ; | |
28905 | char *kwnames[] = { | |
28906 | (char *) "self",(char *) "pt", NULL | |
28907 | }; | |
28908 | ||
28909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28912 | { |
28913 | arg2 = &temp2; | |
28914 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28915 | } | |
28916 | { | |
28917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28918 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
28919 | ||
28920 | wxPyEndAllowThreads(__tstate); | |
28921 | if (PyErr_Occurred()) SWIG_fail; | |
28922 | } | |
28923 | Py_INCREF(Py_None); resultobj = Py_None; | |
28924 | return resultobj; | |
28925 | fail: | |
28926 | return NULL; | |
28927 | } | |
28928 | ||
28929 | ||
c32bde28 | 28930 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28931 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28932 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28933 | wxKeyEvent *result; | |
28934 | PyObject * obj0 = 0 ; | |
28935 | char *kwnames[] = { | |
28936 | (char *) "self", NULL | |
28937 | }; | |
28938 | ||
28939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28942 | { |
28943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28944 | { | |
28945 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
28946 | result = (wxKeyEvent *) &_result_ref; | |
28947 | } | |
28948 | ||
28949 | wxPyEndAllowThreads(__tstate); | |
28950 | if (PyErr_Occurred()) SWIG_fail; | |
28951 | } | |
15afbcd0 | 28952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
28953 | return resultobj; |
28954 | fail: | |
28955 | return NULL; | |
28956 | } | |
28957 | ||
28958 | ||
c32bde28 | 28959 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28960 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28961 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28962 | int result; | |
28963 | PyObject * obj0 = 0 ; | |
28964 | char *kwnames[] = { | |
28965 | (char *) "self", NULL | |
28966 | }; | |
28967 | ||
28968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
28969 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28970 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
28971 | { |
28972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28973 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
28974 | ||
28975 | wxPyEndAllowThreads(__tstate); | |
28976 | if (PyErr_Occurred()) SWIG_fail; | |
28977 | } | |
093d3ff1 | 28978 | { |
32fe5131 | 28979 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 28980 | } |
d14a1e28 RD |
28981 | return resultobj; |
28982 | fail: | |
28983 | return NULL; | |
28984 | } | |
28985 | ||
28986 | ||
c32bde28 | 28987 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 28988 | PyObject *resultobj = NULL; |
d14a1e28 RD |
28989 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
28990 | wxKeyEvent *arg2 = 0 ; | |
28991 | PyObject * obj0 = 0 ; | |
28992 | PyObject * obj1 = 0 ; | |
28993 | char *kwnames[] = { | |
28994 | (char *) "self",(char *) "evt", NULL | |
28995 | }; | |
28996 | ||
28997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
28998 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
28999 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29000 | { | |
29001 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_EXCEPTION | 0); | |
29002 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29003 | if (arg2 == NULL) { | |
29004 | SWIG_null_ref("wxKeyEvent"); | |
29005 | } | |
29006 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29007 | } |
29008 | { | |
29009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29010 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
29011 | ||
29012 | wxPyEndAllowThreads(__tstate); | |
29013 | if (PyErr_Occurred()) SWIG_fail; | |
29014 | } | |
29015 | Py_INCREF(Py_None); resultobj = Py_None; | |
29016 | return resultobj; | |
29017 | fail: | |
29018 | return NULL; | |
29019 | } | |
29020 | ||
29021 | ||
c32bde28 | 29022 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29023 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29024 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
29025 | wxString *result; | |
29026 | PyObject * obj0 = 0 ; | |
29027 | char *kwnames[] = { | |
29028 | (char *) "self", NULL | |
29029 | }; | |
29030 | ||
29031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29032 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
29033 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29034 | { |
29035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29036 | { | |
29037 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
29038 | result = (wxString *) &_result_ref; | |
29039 | } | |
29040 | ||
29041 | wxPyEndAllowThreads(__tstate); | |
29042 | if (PyErr_Occurred()) SWIG_fail; | |
29043 | } | |
cc6dd355 RD |
29044 | { |
29045 | #if wxUSE_UNICODE | |
29046 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29047 | #else | |
29048 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29049 | #endif | |
29050 | } | |
d14a1e28 RD |
29051 | return resultobj; |
29052 | fail: | |
29053 | return NULL; | |
29054 | } | |
29055 | ||
29056 | ||
c32bde28 | 29057 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29058 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29059 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
29060 | wxString *arg2 = 0 ; | |
ae8162c8 | 29061 | bool temp2 = false ; |
d14a1e28 RD |
29062 | PyObject * obj0 = 0 ; |
29063 | PyObject * obj1 = 0 ; | |
29064 | char *kwnames[] = { | |
29065 | (char *) "self",(char *) "label", NULL | |
29066 | }; | |
29067 | ||
29068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29069 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
29070 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29071 | { |
29072 | arg2 = wxString_in_helper(obj1); | |
29073 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29074 | temp2 = true; |
d14a1e28 RD |
29075 | } |
29076 | { | |
29077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29078 | (arg1)->SetLabel((wxString const &)*arg2); | |
29079 | ||
29080 | wxPyEndAllowThreads(__tstate); | |
29081 | if (PyErr_Occurred()) SWIG_fail; | |
29082 | } | |
29083 | Py_INCREF(Py_None); resultobj = Py_None; | |
29084 | { | |
29085 | if (temp2) | |
29086 | delete arg2; | |
29087 | } | |
29088 | return resultobj; | |
29089 | fail: | |
29090 | { | |
29091 | if (temp2) | |
29092 | delete arg2; | |
29093 | } | |
29094 | return NULL; | |
29095 | } | |
29096 | ||
29097 | ||
c32bde28 | 29098 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29099 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29100 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
29101 | bool result; | |
29102 | PyObject * obj0 = 0 ; | |
29103 | char *kwnames[] = { | |
29104 | (char *) "self", NULL | |
29105 | }; | |
29106 | ||
29107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29108 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
29109 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29110 | { |
29111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29112 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
29113 | ||
29114 | wxPyEndAllowThreads(__tstate); | |
29115 | if (PyErr_Occurred()) SWIG_fail; | |
29116 | } | |
4f89f6a3 RD |
29117 | { |
29118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29119 | } | |
d14a1e28 RD |
29120 | return resultobj; |
29121 | fail: | |
29122 | return NULL; | |
29123 | } | |
29124 | ||
29125 | ||
c32bde28 | 29126 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29127 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29128 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
29129 | bool arg2 ; | |
29130 | PyObject * obj0 = 0 ; | |
29131 | PyObject * obj1 = 0 ; | |
29132 | char *kwnames[] = { | |
29133 | (char *) "self",(char *) "editCancelled", NULL | |
29134 | }; | |
29135 | ||
29136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29137 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
29138 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29139 | { | |
32fe5131 | 29140 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
29141 | if (SWIG_arg_fail(2)) SWIG_fail; |
29142 | } | |
d14a1e28 RD |
29143 | { |
29144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29145 | (arg1)->SetEditCanceled(arg2); | |
29146 | ||
29147 | wxPyEndAllowThreads(__tstate); | |
29148 | if (PyErr_Occurred()) SWIG_fail; | |
29149 | } | |
29150 | Py_INCREF(Py_None); resultobj = Py_None; | |
29151 | return resultobj; | |
29152 | fail: | |
29153 | return NULL; | |
29154 | } | |
29155 | ||
29156 | ||
c32bde28 | 29157 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29158 | PyObject *resultobj = NULL; |
c9c7117a RD |
29159 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
29160 | wxString *arg2 = 0 ; | |
ae8162c8 | 29161 | bool temp2 = false ; |
c9c7117a RD |
29162 | PyObject * obj0 = 0 ; |
29163 | PyObject * obj1 = 0 ; | |
29164 | char *kwnames[] = { | |
29165 | (char *) "self",(char *) "toolTip", NULL | |
29166 | }; | |
29167 | ||
29168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); |
29170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
c9c7117a RD |
29171 | { |
29172 | arg2 = wxString_in_helper(obj1); | |
29173 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 29174 | temp2 = true; |
c9c7117a RD |
29175 | } |
29176 | { | |
29177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29178 | (arg1)->SetToolTip((wxString const &)*arg2); | |
29179 | ||
29180 | wxPyEndAllowThreads(__tstate); | |
29181 | if (PyErr_Occurred()) SWIG_fail; | |
29182 | } | |
29183 | Py_INCREF(Py_None); resultobj = Py_None; | |
29184 | { | |
29185 | if (temp2) | |
29186 | delete arg2; | |
29187 | } | |
29188 | return resultobj; | |
29189 | fail: | |
29190 | { | |
29191 | if (temp2) | |
29192 | delete arg2; | |
29193 | } | |
29194 | return NULL; | |
29195 | } | |
29196 | ||
29197 | ||
562ecc31 | 29198 | static PyObject *_wrap_TreeEvent_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29199 | PyObject *resultobj = NULL; |
562ecc31 RD |
29200 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; |
29201 | wxString result; | |
29202 | PyObject * obj0 = 0 ; | |
29203 | char *kwnames[] = { | |
29204 | (char *) "self", NULL | |
29205 | }; | |
29206 | ||
29207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetToolTip",kwnames,&obj0)) goto fail; | |
29208 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_EXCEPTION | 0); | |
29209 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29210 | { | |
29211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29212 | result = (arg1)->GetToolTip(); | |
29213 | ||
29214 | wxPyEndAllowThreads(__tstate); | |
29215 | if (PyErr_Occurred()) SWIG_fail; | |
29216 | } | |
29217 | { | |
29218 | #if wxUSE_UNICODE | |
29219 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29220 | #else | |
29221 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29222 | #endif | |
29223 | } | |
29224 | return resultobj; | |
29225 | fail: | |
29226 | return NULL; | |
29227 | } | |
29228 | ||
29229 | ||
c32bde28 | 29230 | static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
29231 | PyObject *obj; |
29232 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29233 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
29234 | Py_INCREF(obj); | |
29235 | return Py_BuildValue((char *)""); | |
29236 | } | |
c32bde28 | 29237 | static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29238 | PyObject *resultobj = NULL; |
d14a1e28 | 29239 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 29240 | int arg2 = (int) -1 ; |
d14a1e28 RD |
29241 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29242 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29243 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29244 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29245 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
29246 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29247 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 29248 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
29249 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
29250 | wxPyTreeCtrl *result; | |
29251 | wxPoint temp3 ; | |
29252 | wxSize temp4 ; | |
ae8162c8 | 29253 | bool temp7 = false ; |
d14a1e28 | 29254 | PyObject * obj0 = 0 ; |
994141e6 | 29255 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29256 | PyObject * obj2 = 0 ; |
29257 | PyObject * obj3 = 0 ; | |
994141e6 | 29258 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29259 | PyObject * obj5 = 0 ; |
29260 | PyObject * obj6 = 0 ; | |
29261 | char *kwnames[] = { | |
29262 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29263 | }; | |
29264 | ||
994141e6 | 29265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
29266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
29267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 29268 | if (obj1) { |
093d3ff1 | 29269 | { |
32fe5131 | 29270 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
29271 | if (SWIG_arg_fail(2)) SWIG_fail; |
29272 | } | |
994141e6 | 29273 | } |
d14a1e28 RD |
29274 | if (obj2) { |
29275 | { | |
29276 | arg3 = &temp3; | |
29277 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29278 | } | |
29279 | } | |
29280 | if (obj3) { | |
29281 | { | |
994141e6 RD |
29282 | arg4 = &temp4; |
29283 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29284 | } | |
29285 | } | |
29286 | if (obj4) { | |
093d3ff1 | 29287 | { |
32fe5131 | 29288 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
29289 | if (SWIG_arg_fail(5)) SWIG_fail; |
29290 | } | |
d14a1e28 RD |
29291 | } |
29292 | if (obj5) { | |
093d3ff1 RD |
29293 | { |
29294 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
29295 | if (SWIG_arg_fail(6)) SWIG_fail; | |
29296 | if (arg6 == NULL) { | |
29297 | SWIG_null_ref("wxValidator"); | |
29298 | } | |
29299 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
29300 | } |
29301 | } | |
29302 | if (obj6) { | |
29303 | { | |
29304 | arg7 = wxString_in_helper(obj6); | |
29305 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 29306 | temp7 = true; |
d14a1e28 RD |
29307 | } |
29308 | } | |
29309 | { | |
e3b71cb8 | 29310 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29312 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29313 | ||
29314 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29315 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29316 | } |
b0f7404b | 29317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
29318 | { |
29319 | if (temp7) | |
29320 | delete arg7; | |
29321 | } | |
29322 | return resultobj; | |
29323 | fail: | |
29324 | { | |
29325 | if (temp7) | |
29326 | delete arg7; | |
29327 | } | |
29328 | return NULL; | |
29329 | } | |
29330 | ||
29331 | ||
c32bde28 | 29332 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29333 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29334 | wxPyTreeCtrl *result; |
29335 | char *kwnames[] = { | |
29336 | NULL | |
29337 | }; | |
29338 | ||
29339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
29340 | { | |
e3b71cb8 | 29341 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29343 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
29344 | ||
29345 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29346 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29347 | } |
b0f7404b | 29348 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
29349 | return resultobj; |
29350 | fail: | |
29351 | return NULL; | |
29352 | } | |
29353 | ||
29354 | ||
c32bde28 | 29355 | static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29356 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29357 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29358 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 29359 | int arg3 = (int) -1 ; |
d14a1e28 RD |
29360 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
29361 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29362 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29363 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29364 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
29365 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
29366 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 29367 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
29368 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
29369 | bool result; | |
29370 | wxPoint temp4 ; | |
29371 | wxSize temp5 ; | |
ae8162c8 | 29372 | bool temp8 = false ; |
d14a1e28 RD |
29373 | PyObject * obj0 = 0 ; |
29374 | PyObject * obj1 = 0 ; | |
994141e6 | 29375 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29376 | PyObject * obj3 = 0 ; |
29377 | PyObject * obj4 = 0 ; | |
994141e6 | 29378 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
29379 | PyObject * obj6 = 0 ; |
29380 | PyObject * obj7 = 0 ; | |
29381 | char *kwnames[] = { | |
29382 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29383 | }; | |
29384 | ||
994141e6 | 29385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
093d3ff1 RD |
29386 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29387 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29388 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
29389 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 29390 | if (obj2) { |
093d3ff1 | 29391 | { |
32fe5131 | 29392 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
29393 | if (SWIG_arg_fail(3)) SWIG_fail; |
29394 | } | |
994141e6 | 29395 | } |
d14a1e28 RD |
29396 | if (obj3) { |
29397 | { | |
29398 | arg4 = &temp4; | |
29399 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29400 | } | |
29401 | } | |
29402 | if (obj4) { | |
29403 | { | |
29404 | arg5 = &temp5; | |
29405 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
29406 | } | |
29407 | } | |
994141e6 | 29408 | if (obj5) { |
093d3ff1 | 29409 | { |
32fe5131 | 29410 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
29411 | if (SWIG_arg_fail(6)) SWIG_fail; |
29412 | } | |
994141e6 | 29413 | } |
d14a1e28 | 29414 | if (obj6) { |
093d3ff1 RD |
29415 | { |
29416 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
29417 | if (SWIG_arg_fail(7)) SWIG_fail; | |
29418 | if (arg7 == NULL) { | |
29419 | SWIG_null_ref("wxValidator"); | |
29420 | } | |
29421 | if (SWIG_arg_fail(7)) SWIG_fail; | |
d14a1e28 RD |
29422 | } |
29423 | } | |
29424 | if (obj7) { | |
29425 | { | |
29426 | arg8 = wxString_in_helper(obj7); | |
29427 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 29428 | temp8 = true; |
d14a1e28 RD |
29429 | } |
29430 | } | |
29431 | { | |
29432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29433 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
29434 | ||
29435 | wxPyEndAllowThreads(__tstate); | |
29436 | if (PyErr_Occurred()) SWIG_fail; | |
29437 | } | |
4f89f6a3 RD |
29438 | { |
29439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29440 | } | |
d14a1e28 RD |
29441 | { |
29442 | if (temp8) | |
29443 | delete arg8; | |
29444 | } | |
29445 | return resultobj; | |
29446 | fail: | |
29447 | { | |
29448 | if (temp8) | |
29449 | delete arg8; | |
29450 | } | |
29451 | return NULL; | |
29452 | } | |
29453 | ||
29454 | ||
c32bde28 | 29455 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29456 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29457 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29458 | PyObject *arg2 = (PyObject *) 0 ; | |
29459 | PyObject *arg3 = (PyObject *) 0 ; | |
29460 | PyObject * obj0 = 0 ; | |
29461 | PyObject * obj1 = 0 ; | |
29462 | PyObject * obj2 = 0 ; | |
29463 | char *kwnames[] = { | |
29464 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29465 | }; | |
29466 | ||
29467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
29468 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29469 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29470 | arg2 = obj1; |
29471 | arg3 = obj2; | |
29472 | { | |
29473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29474 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29475 | ||
29476 | wxPyEndAllowThreads(__tstate); | |
29477 | if (PyErr_Occurred()) SWIG_fail; | |
29478 | } | |
29479 | Py_INCREF(Py_None); resultobj = Py_None; | |
29480 | return resultobj; | |
29481 | fail: | |
29482 | return NULL; | |
29483 | } | |
29484 | ||
29485 | ||
c32bde28 | 29486 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29487 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29488 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29489 | size_t result; | |
29490 | PyObject * obj0 = 0 ; | |
29491 | char *kwnames[] = { | |
29492 | (char *) "self", NULL | |
29493 | }; | |
29494 | ||
29495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29496 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29497 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29498 | { |
29499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29500 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
29501 | ||
29502 | wxPyEndAllowThreads(__tstate); | |
29503 | if (PyErr_Occurred()) SWIG_fail; | |
29504 | } | |
093d3ff1 | 29505 | { |
32fe5131 | 29506 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 29507 | } |
d14a1e28 RD |
29508 | return resultobj; |
29509 | fail: | |
29510 | return NULL; | |
29511 | } | |
29512 | ||
29513 | ||
c32bde28 | 29514 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29515 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29516 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29517 | unsigned int result; | |
29518 | PyObject * obj0 = 0 ; | |
29519 | char *kwnames[] = { | |
29520 | (char *) "self", NULL | |
29521 | }; | |
29522 | ||
29523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29524 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29525 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29526 | { |
29527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29528 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
29529 | ||
29530 | wxPyEndAllowThreads(__tstate); | |
29531 | if (PyErr_Occurred()) SWIG_fail; | |
29532 | } | |
093d3ff1 | 29533 | { |
32fe5131 | 29534 | resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result)); |
093d3ff1 | 29535 | } |
d14a1e28 RD |
29536 | return resultobj; |
29537 | fail: | |
29538 | return NULL; | |
29539 | } | |
29540 | ||
29541 | ||
c32bde28 | 29542 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29543 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29544 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29545 | unsigned int arg2 ; | |
29546 | PyObject * obj0 = 0 ; | |
29547 | PyObject * obj1 = 0 ; | |
29548 | char *kwnames[] = { | |
29549 | (char *) "self",(char *) "indent", NULL | |
29550 | }; | |
29551 | ||
29552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29553 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29554 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29555 | { | |
32fe5131 | 29556 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
29557 | if (SWIG_arg_fail(2)) SWIG_fail; |
29558 | } | |
d14a1e28 RD |
29559 | { |
29560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29561 | (arg1)->SetIndent(arg2); | |
29562 | ||
29563 | wxPyEndAllowThreads(__tstate); | |
29564 | if (PyErr_Occurred()) SWIG_fail; | |
29565 | } | |
29566 | Py_INCREF(Py_None); resultobj = Py_None; | |
29567 | return resultobj; | |
29568 | fail: | |
29569 | return NULL; | |
29570 | } | |
29571 | ||
29572 | ||
c32bde28 | 29573 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29574 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29575 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29576 | unsigned int result; | |
29577 | PyObject * obj0 = 0 ; | |
29578 | char *kwnames[] = { | |
29579 | (char *) "self", NULL | |
29580 | }; | |
29581 | ||
29582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29583 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29584 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29585 | { |
29586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29587 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
29588 | ||
29589 | wxPyEndAllowThreads(__tstate); | |
29590 | if (PyErr_Occurred()) SWIG_fail; | |
29591 | } | |
093d3ff1 | 29592 | { |
32fe5131 | 29593 | resultobj = SWIG_From_unsigned_SS_int(static_cast<unsigned int >(result)); |
093d3ff1 | 29594 | } |
d14a1e28 RD |
29595 | return resultobj; |
29596 | fail: | |
29597 | return NULL; | |
29598 | } | |
29599 | ||
29600 | ||
c32bde28 | 29601 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29602 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29603 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29604 | unsigned int arg2 ; | |
29605 | PyObject * obj0 = 0 ; | |
29606 | PyObject * obj1 = 0 ; | |
29607 | char *kwnames[] = { | |
29608 | (char *) "self",(char *) "spacing", NULL | |
29609 | }; | |
29610 | ||
29611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29612 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29613 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29614 | { | |
32fe5131 | 29615 | arg2 = static_cast<unsigned int >(SWIG_As_unsigned_SS_int(obj1)); |
093d3ff1 RD |
29616 | if (SWIG_arg_fail(2)) SWIG_fail; |
29617 | } | |
d14a1e28 RD |
29618 | { |
29619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29620 | (arg1)->SetSpacing(arg2); | |
29621 | ||
29622 | wxPyEndAllowThreads(__tstate); | |
29623 | if (PyErr_Occurred()) SWIG_fail; | |
29624 | } | |
29625 | Py_INCREF(Py_None); resultobj = Py_None; | |
29626 | return resultobj; | |
29627 | fail: | |
29628 | return NULL; | |
29629 | } | |
29630 | ||
29631 | ||
c32bde28 | 29632 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29633 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29634 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29635 | wxImageList *result; | |
29636 | PyObject * obj0 = 0 ; | |
29637 | char *kwnames[] = { | |
29638 | (char *) "self", NULL | |
29639 | }; | |
29640 | ||
29641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29642 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29643 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29644 | { |
29645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29646 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
29647 | ||
29648 | wxPyEndAllowThreads(__tstate); | |
29649 | if (PyErr_Occurred()) SWIG_fail; | |
29650 | } | |
29651 | { | |
7e08d4ef | 29652 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
29653 | } |
29654 | return resultobj; | |
29655 | fail: | |
29656 | return NULL; | |
29657 | } | |
29658 | ||
29659 | ||
c32bde28 | 29660 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29661 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29662 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29663 | wxImageList *result; | |
29664 | PyObject * obj0 = 0 ; | |
29665 | char *kwnames[] = { | |
29666 | (char *) "self", NULL | |
29667 | }; | |
29668 | ||
29669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
29670 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29671 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
29672 | { |
29673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29674 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
29675 | ||
29676 | wxPyEndAllowThreads(__tstate); | |
29677 | if (PyErr_Occurred()) SWIG_fail; | |
29678 | } | |
29679 | { | |
7e08d4ef | 29680 | resultobj = wxPyMake_wxObject(result, (bool)0); |
d14a1e28 RD |
29681 | } |
29682 | return resultobj; | |
29683 | fail: | |
29684 | return NULL; | |
29685 | } | |
29686 | ||
29687 | ||
c32bde28 | 29688 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29689 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29690 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29691 | wxImageList *arg2 = (wxImageList *) 0 ; | |
29692 | PyObject * obj0 = 0 ; | |
29693 | PyObject * obj1 = 0 ; | |
29694 | char *kwnames[] = { | |
29695 | (char *) "self",(char *) "imageList", NULL | |
29696 | }; | |
29697 | ||
29698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29699 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29700 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29701 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
29702 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29703 | { |
29704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29705 | (arg1)->SetImageList(arg2); | |
29706 | ||
29707 | wxPyEndAllowThreads(__tstate); | |
29708 | if (PyErr_Occurred()) SWIG_fail; | |
29709 | } | |
29710 | Py_INCREF(Py_None); resultobj = Py_None; | |
29711 | return resultobj; | |
29712 | fail: | |
29713 | return NULL; | |
29714 | } | |
29715 | ||
29716 | ||
c32bde28 | 29717 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29718 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29719 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29720 | wxImageList *arg2 = (wxImageList *) 0 ; | |
29721 | PyObject * obj0 = 0 ; | |
29722 | PyObject * obj1 = 0 ; | |
29723 | char *kwnames[] = { | |
29724 | (char *) "self",(char *) "imageList", NULL | |
29725 | }; | |
29726 | ||
29727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29728 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29729 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29730 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | 0); | |
29731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29732 | { |
29733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29734 | (arg1)->SetStateImageList(arg2); | |
29735 | ||
29736 | wxPyEndAllowThreads(__tstate); | |
29737 | if (PyErr_Occurred()) SWIG_fail; | |
29738 | } | |
29739 | Py_INCREF(Py_None); resultobj = Py_None; | |
29740 | return resultobj; | |
29741 | fail: | |
29742 | return NULL; | |
29743 | } | |
29744 | ||
29745 | ||
c32bde28 | 29746 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29747 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29748 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29749 | wxImageList *arg2 = (wxImageList *) 0 ; | |
29750 | PyObject * obj0 = 0 ; | |
29751 | PyObject * obj1 = 0 ; | |
29752 | char *kwnames[] = { | |
29753 | (char *) "self",(char *) "imageList", NULL | |
29754 | }; | |
29755 | ||
29756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29757 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29758 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29759 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
29760 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29761 | { |
29762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29763 | (arg1)->AssignImageList(arg2); | |
29764 | ||
29765 | wxPyEndAllowThreads(__tstate); | |
29766 | if (PyErr_Occurred()) SWIG_fail; | |
29767 | } | |
29768 | Py_INCREF(Py_None); resultobj = Py_None; | |
29769 | return resultobj; | |
29770 | fail: | |
29771 | return NULL; | |
29772 | } | |
29773 | ||
29774 | ||
c32bde28 | 29775 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29776 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29777 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29778 | wxImageList *arg2 = (wxImageList *) 0 ; | |
29779 | PyObject * obj0 = 0 ; | |
29780 | PyObject * obj1 = 0 ; | |
29781 | char *kwnames[] = { | |
29782 | (char *) "self",(char *) "imageList", NULL | |
29783 | }; | |
29784 | ||
29785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29786 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29787 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29788 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxImageList, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); | |
29789 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29790 | { |
29791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29792 | (arg1)->AssignStateImageList(arg2); | |
29793 | ||
29794 | wxPyEndAllowThreads(__tstate); | |
29795 | if (PyErr_Occurred()) SWIG_fail; | |
29796 | } | |
29797 | Py_INCREF(Py_None); resultobj = Py_None; | |
29798 | return resultobj; | |
29799 | fail: | |
29800 | return NULL; | |
29801 | } | |
29802 | ||
29803 | ||
c32bde28 | 29804 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29805 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29806 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29807 | wxTreeItemId *arg2 = 0 ; | |
29808 | wxString result; | |
29809 | PyObject * obj0 = 0 ; | |
29810 | PyObject * obj1 = 0 ; | |
29811 | char *kwnames[] = { | |
29812 | (char *) "self",(char *) "item", NULL | |
29813 | }; | |
29814 | ||
29815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29816 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29817 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29818 | { | |
29819 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29820 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29821 | if (arg2 == NULL) { | |
29822 | SWIG_null_ref("wxTreeItemId"); | |
29823 | } | |
29824 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29825 | } |
29826 | { | |
29827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29828 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
29829 | ||
29830 | wxPyEndAllowThreads(__tstate); | |
29831 | if (PyErr_Occurred()) SWIG_fail; | |
29832 | } | |
29833 | { | |
29834 | #if wxUSE_UNICODE | |
29835 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29836 | #else | |
29837 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29838 | #endif | |
29839 | } | |
29840 | return resultobj; | |
29841 | fail: | |
29842 | return NULL; | |
29843 | } | |
29844 | ||
29845 | ||
c32bde28 | 29846 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29847 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29848 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29849 | wxTreeItemId *arg2 = 0 ; | |
093d3ff1 | 29850 | wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d14a1e28 RD |
29851 | int result; |
29852 | PyObject * obj0 = 0 ; | |
29853 | PyObject * obj1 = 0 ; | |
994141e6 | 29854 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29855 | char *kwnames[] = { |
29856 | (char *) "self",(char *) "item",(char *) "which", NULL | |
29857 | }; | |
29858 | ||
994141e6 | 29859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
29860 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29861 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29862 | { | |
29863 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29864 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29865 | if (arg2 == NULL) { | |
29866 | SWIG_null_ref("wxTreeItemId"); | |
29867 | } | |
29868 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 29869 | } |
994141e6 | 29870 | if (obj2) { |
093d3ff1 | 29871 | { |
32fe5131 | 29872 | arg3 = static_cast<wxTreeItemIcon >(SWIG_As_int(obj2)); |
093d3ff1 RD |
29873 | if (SWIG_arg_fail(3)) SWIG_fail; |
29874 | } | |
994141e6 | 29875 | } |
d14a1e28 RD |
29876 | { |
29877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 29878 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
29879 | |
29880 | wxPyEndAllowThreads(__tstate); | |
29881 | if (PyErr_Occurred()) SWIG_fail; | |
29882 | } | |
093d3ff1 | 29883 | { |
32fe5131 | 29884 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 29885 | } |
d14a1e28 RD |
29886 | return resultobj; |
29887 | fail: | |
29888 | return NULL; | |
29889 | } | |
29890 | ||
29891 | ||
c32bde28 | 29892 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29893 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29894 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29895 | wxTreeItemId *arg2 = 0 ; | |
29896 | wxPyTreeItemData *result; | |
29897 | PyObject * obj0 = 0 ; | |
29898 | PyObject * obj1 = 0 ; | |
29899 | char *kwnames[] = { | |
29900 | (char *) "self",(char *) "item", NULL | |
29901 | }; | |
29902 | ||
29903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29904 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29905 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29906 | { | |
29907 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29908 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29909 | if (arg2 == NULL) { | |
29910 | SWIG_null_ref("wxTreeItemId"); | |
29911 | } | |
29912 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29913 | } |
29914 | { | |
29915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29916 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
29917 | ||
29918 | wxPyEndAllowThreads(__tstate); | |
29919 | if (PyErr_Occurred()) SWIG_fail; | |
29920 | } | |
15afbcd0 | 29921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
29922 | return resultobj; |
29923 | fail: | |
29924 | return NULL; | |
29925 | } | |
29926 | ||
29927 | ||
c32bde28 | 29928 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29929 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29930 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29931 | wxTreeItemId *arg2 = 0 ; | |
29932 | PyObject *result; | |
29933 | PyObject * obj0 = 0 ; | |
29934 | PyObject * obj1 = 0 ; | |
29935 | char *kwnames[] = { | |
29936 | (char *) "self",(char *) "item", NULL | |
29937 | }; | |
29938 | ||
29939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29940 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29941 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29942 | { | |
29943 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29944 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29945 | if (arg2 == NULL) { | |
29946 | SWIG_null_ref("wxTreeItemId"); | |
29947 | } | |
29948 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29949 | } |
29950 | { | |
29951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29952 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
29953 | ||
29954 | wxPyEndAllowThreads(__tstate); | |
29955 | if (PyErr_Occurred()) SWIG_fail; | |
29956 | } | |
29957 | resultobj = result; | |
29958 | return resultobj; | |
29959 | fail: | |
29960 | return NULL; | |
29961 | } | |
29962 | ||
29963 | ||
c32bde28 | 29964 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 29965 | PyObject *resultobj = NULL; |
d14a1e28 RD |
29966 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
29967 | wxTreeItemId *arg2 = 0 ; | |
29968 | wxColour result; | |
29969 | PyObject * obj0 = 0 ; | |
29970 | PyObject * obj1 = 0 ; | |
29971 | char *kwnames[] = { | |
29972 | (char *) "self",(char *) "item", NULL | |
29973 | }; | |
29974 | ||
29975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
29976 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
29977 | if (SWIG_arg_fail(1)) SWIG_fail; | |
29978 | { | |
29979 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
29980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
29981 | if (arg2 == NULL) { | |
29982 | SWIG_null_ref("wxTreeItemId"); | |
29983 | } | |
29984 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
29985 | } |
29986 | { | |
29987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29988 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
29989 | ||
29990 | wxPyEndAllowThreads(__tstate); | |
29991 | if (PyErr_Occurred()) SWIG_fail; | |
29992 | } | |
29993 | { | |
29994 | wxColour * resultptr; | |
32fe5131 | 29995 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 29996 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
29997 | } |
29998 | return resultobj; | |
29999 | fail: | |
30000 | return NULL; | |
30001 | } | |
30002 | ||
30003 | ||
c32bde28 | 30004 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30005 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30007 | wxTreeItemId *arg2 = 0 ; | |
30008 | wxColour result; | |
30009 | PyObject * obj0 = 0 ; | |
30010 | PyObject * obj1 = 0 ; | |
30011 | char *kwnames[] = { | |
30012 | (char *) "self",(char *) "item", NULL | |
30013 | }; | |
30014 | ||
30015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30016 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30017 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30018 | { | |
30019 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30020 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30021 | if (arg2 == NULL) { | |
30022 | SWIG_null_ref("wxTreeItemId"); | |
30023 | } | |
30024 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30025 | } |
30026 | { | |
30027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30028 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
30029 | ||
30030 | wxPyEndAllowThreads(__tstate); | |
30031 | if (PyErr_Occurred()) SWIG_fail; | |
30032 | } | |
30033 | { | |
30034 | wxColour * resultptr; | |
32fe5131 | 30035 | resultptr = new wxColour(static_cast<wxColour & >(result)); |
15afbcd0 | 30036 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
30037 | } |
30038 | return resultobj; | |
30039 | fail: | |
30040 | return NULL; | |
30041 | } | |
30042 | ||
30043 | ||
c32bde28 | 30044 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30045 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30046 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30047 | wxTreeItemId *arg2 = 0 ; | |
30048 | wxFont result; | |
30049 | PyObject * obj0 = 0 ; | |
30050 | PyObject * obj1 = 0 ; | |
30051 | char *kwnames[] = { | |
30052 | (char *) "self",(char *) "item", NULL | |
30053 | }; | |
30054 | ||
30055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30056 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30057 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30058 | { | |
30059 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30060 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30061 | if (arg2 == NULL) { | |
30062 | SWIG_null_ref("wxTreeItemId"); | |
30063 | } | |
30064 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30065 | } |
30066 | { | |
30067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30068 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
30069 | ||
30070 | wxPyEndAllowThreads(__tstate); | |
30071 | if (PyErr_Occurred()) SWIG_fail; | |
30072 | } | |
30073 | { | |
30074 | wxFont * resultptr; | |
32fe5131 | 30075 | resultptr = new wxFont(static_cast<wxFont & >(result)); |
15afbcd0 | 30076 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
30077 | } |
30078 | return resultobj; | |
30079 | fail: | |
30080 | return NULL; | |
30081 | } | |
30082 | ||
30083 | ||
c32bde28 | 30084 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30085 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30086 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30087 | wxTreeItemId *arg2 = 0 ; | |
30088 | wxString *arg3 = 0 ; | |
ae8162c8 | 30089 | bool temp3 = false ; |
d14a1e28 RD |
30090 | PyObject * obj0 = 0 ; |
30091 | PyObject * obj1 = 0 ; | |
30092 | PyObject * obj2 = 0 ; | |
30093 | char *kwnames[] = { | |
30094 | (char *) "self",(char *) "item",(char *) "text", NULL | |
30095 | }; | |
30096 | ||
30097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30098 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30099 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30100 | { | |
30101 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30102 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30103 | if (arg2 == NULL) { | |
30104 | SWIG_null_ref("wxTreeItemId"); | |
30105 | } | |
30106 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30107 | } |
30108 | { | |
30109 | arg3 = wxString_in_helper(obj2); | |
30110 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 30111 | temp3 = true; |
d14a1e28 RD |
30112 | } |
30113 | { | |
30114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30115 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
30116 | ||
30117 | wxPyEndAllowThreads(__tstate); | |
30118 | if (PyErr_Occurred()) SWIG_fail; | |
30119 | } | |
30120 | Py_INCREF(Py_None); resultobj = Py_None; | |
30121 | { | |
30122 | if (temp3) | |
30123 | delete arg3; | |
30124 | } | |
30125 | return resultobj; | |
30126 | fail: | |
30127 | { | |
30128 | if (temp3) | |
30129 | delete arg3; | |
30130 | } | |
30131 | return NULL; | |
30132 | } | |
30133 | ||
30134 | ||
c32bde28 | 30135 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30136 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30137 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30138 | wxTreeItemId *arg2 = 0 ; | |
30139 | int arg3 ; | |
093d3ff1 | 30140 | wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ; |
d14a1e28 RD |
30141 | PyObject * obj0 = 0 ; |
30142 | PyObject * obj1 = 0 ; | |
994141e6 RD |
30143 | PyObject * obj2 = 0 ; |
30144 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
30145 | char *kwnames[] = { |
30146 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
30147 | }; | |
30148 | ||
994141e6 | 30149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
093d3ff1 RD |
30150 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30152 | { | |
30153 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30154 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30155 | if (arg2 == NULL) { | |
30156 | SWIG_null_ref("wxTreeItemId"); | |
30157 | } | |
30158 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30159 | } | |
30160 | { | |
32fe5131 | 30161 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
30162 | if (SWIG_arg_fail(3)) SWIG_fail; |
30163 | } | |
994141e6 | 30164 | if (obj3) { |
093d3ff1 | 30165 | { |
32fe5131 | 30166 | arg4 = static_cast<wxTreeItemIcon >(SWIG_As_int(obj3)); |
093d3ff1 RD |
30167 | if (SWIG_arg_fail(4)) SWIG_fail; |
30168 | } | |
994141e6 | 30169 | } |
d14a1e28 RD |
30170 | { |
30171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32fe5131 | 30172 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4); |
d14a1e28 RD |
30173 | |
30174 | wxPyEndAllowThreads(__tstate); | |
30175 | if (PyErr_Occurred()) SWIG_fail; | |
30176 | } | |
30177 | Py_INCREF(Py_None); resultobj = Py_None; | |
30178 | return resultobj; | |
30179 | fail: | |
30180 | return NULL; | |
30181 | } | |
30182 | ||
30183 | ||
c32bde28 | 30184 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30185 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30186 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30187 | wxTreeItemId *arg2 = 0 ; | |
30188 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
30189 | PyObject * obj0 = 0 ; | |
30190 | PyObject * obj1 = 0 ; | |
30191 | PyObject * obj2 = 0 ; | |
30192 | char *kwnames[] = { | |
30193 | (char *) "self",(char *) "item",(char *) "data", NULL | |
30194 | }; | |
30195 | ||
30196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30197 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30198 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30199 | { | |
30200 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30201 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30202 | if (arg2 == NULL) { | |
30203 | SWIG_null_ref("wxTreeItemId"); | |
30204 | } | |
30205 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 30206 | } |
7e08d4ef | 30207 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 30208 | if (SWIG_arg_fail(3)) SWIG_fail; |
d14a1e28 RD |
30209 | { |
30210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30211 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
30212 | ||
30213 | wxPyEndAllowThreads(__tstate); | |
30214 | if (PyErr_Occurred()) SWIG_fail; | |
30215 | } | |
30216 | Py_INCREF(Py_None); resultobj = Py_None; | |
30217 | return resultobj; | |
30218 | fail: | |
30219 | return NULL; | |
30220 | } | |
30221 | ||
30222 | ||
c32bde28 | 30223 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30224 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30225 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30226 | wxTreeItemId *arg2 = 0 ; | |
30227 | PyObject *arg3 = (PyObject *) 0 ; | |
30228 | PyObject * obj0 = 0 ; | |
30229 | PyObject * obj1 = 0 ; | |
30230 | PyObject * obj2 = 0 ; | |
30231 | char *kwnames[] = { | |
30232 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
30233 | }; | |
30234 | ||
30235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30236 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30237 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30238 | { | |
30239 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30240 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30241 | if (arg2 == NULL) { | |
30242 | SWIG_null_ref("wxTreeItemId"); | |
30243 | } | |
30244 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30245 | } |
30246 | arg3 = obj2; | |
30247 | { | |
30248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30249 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
30250 | ||
30251 | wxPyEndAllowThreads(__tstate); | |
30252 | if (PyErr_Occurred()) SWIG_fail; | |
30253 | } | |
30254 | Py_INCREF(Py_None); resultobj = Py_None; | |
30255 | return resultobj; | |
30256 | fail: | |
30257 | return NULL; | |
30258 | } | |
30259 | ||
30260 | ||
c32bde28 | 30261 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30262 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30263 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30264 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30265 | bool arg3 = (bool) true ; |
d14a1e28 RD |
30266 | PyObject * obj0 = 0 ; |
30267 | PyObject * obj1 = 0 ; | |
30268 | PyObject * obj2 = 0 ; | |
30269 | char *kwnames[] = { | |
30270 | (char *) "self",(char *) "item",(char *) "has", NULL | |
30271 | }; | |
30272 | ||
30273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30274 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30275 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30276 | { | |
30277 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30278 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30279 | if (arg2 == NULL) { | |
30280 | SWIG_null_ref("wxTreeItemId"); | |
30281 | } | |
30282 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30283 | } |
30284 | if (obj2) { | |
093d3ff1 | 30285 | { |
32fe5131 | 30286 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
30287 | if (SWIG_arg_fail(3)) SWIG_fail; |
30288 | } | |
d14a1e28 RD |
30289 | } |
30290 | { | |
30291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30292 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
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 | ||
c32bde28 | 30304 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30305 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30306 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30307 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30308 | bool arg3 = (bool) true ; |
d14a1e28 RD |
30309 | PyObject * obj0 = 0 ; |
30310 | PyObject * obj1 = 0 ; | |
30311 | PyObject * obj2 = 0 ; | |
30312 | char *kwnames[] = { | |
30313 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
30314 | }; | |
30315 | ||
30316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30317 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30318 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30319 | { | |
30320 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30321 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30322 | if (arg2 == NULL) { | |
30323 | SWIG_null_ref("wxTreeItemId"); | |
30324 | } | |
30325 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30326 | } |
30327 | if (obj2) { | |
093d3ff1 | 30328 | { |
32fe5131 | 30329 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
30330 | if (SWIG_arg_fail(3)) SWIG_fail; |
30331 | } | |
d14a1e28 RD |
30332 | } |
30333 | { | |
30334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30335 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
30336 | ||
30337 | wxPyEndAllowThreads(__tstate); | |
30338 | if (PyErr_Occurred()) SWIG_fail; | |
30339 | } | |
30340 | Py_INCREF(Py_None); resultobj = Py_None; | |
30341 | return resultobj; | |
30342 | fail: | |
30343 | return NULL; | |
30344 | } | |
30345 | ||
30346 | ||
fef4c27a | 30347 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30348 | PyObject *resultobj = NULL; |
fef4c27a RD |
30349 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30350 | wxTreeItemId *arg2 = 0 ; | |
30351 | bool arg3 = (bool) true ; | |
30352 | PyObject * obj0 = 0 ; | |
30353 | PyObject * obj1 = 0 ; | |
30354 | PyObject * obj2 = 0 ; | |
30355 | char *kwnames[] = { | |
30356 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
30357 | }; | |
30358 | ||
30359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30360 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
30361 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30362 | { | |
30363 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30364 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30365 | if (arg2 == NULL) { | |
30366 | SWIG_null_ref("wxTreeItemId"); | |
30367 | } | |
30368 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30369 | } | |
30370 | if (obj2) { | |
30371 | { | |
32fe5131 | 30372 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
fef4c27a RD |
30373 | if (SWIG_arg_fail(3)) SWIG_fail; |
30374 | } | |
30375 | } | |
30376 | { | |
30377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30378 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
30379 | ||
30380 | wxPyEndAllowThreads(__tstate); | |
30381 | if (PyErr_Occurred()) SWIG_fail; | |
30382 | } | |
30383 | Py_INCREF(Py_None); resultobj = Py_None; | |
30384 | return resultobj; | |
30385 | fail: | |
30386 | return NULL; | |
30387 | } | |
30388 | ||
30389 | ||
c32bde28 | 30390 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30391 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30392 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30393 | wxTreeItemId *arg2 = 0 ; | |
30394 | wxColour *arg3 = 0 ; | |
30395 | wxColour temp3 ; | |
30396 | PyObject * obj0 = 0 ; | |
30397 | PyObject * obj1 = 0 ; | |
30398 | PyObject * obj2 = 0 ; | |
30399 | char *kwnames[] = { | |
30400 | (char *) "self",(char *) "item",(char *) "col", NULL | |
30401 | }; | |
30402 | ||
30403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30404 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30405 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30406 | { | |
30407 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30408 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30409 | if (arg2 == NULL) { | |
30410 | SWIG_null_ref("wxTreeItemId"); | |
30411 | } | |
30412 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30413 | } |
30414 | { | |
30415 | arg3 = &temp3; | |
30416 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30417 | } | |
30418 | { | |
30419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30420 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
30421 | ||
30422 | wxPyEndAllowThreads(__tstate); | |
30423 | if (PyErr_Occurred()) SWIG_fail; | |
30424 | } | |
30425 | Py_INCREF(Py_None); resultobj = Py_None; | |
30426 | return resultobj; | |
30427 | fail: | |
30428 | return NULL; | |
30429 | } | |
30430 | ||
30431 | ||
c32bde28 | 30432 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30433 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30434 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30435 | wxTreeItemId *arg2 = 0 ; | |
30436 | wxColour *arg3 = 0 ; | |
30437 | wxColour temp3 ; | |
30438 | PyObject * obj0 = 0 ; | |
30439 | PyObject * obj1 = 0 ; | |
30440 | PyObject * obj2 = 0 ; | |
30441 | char *kwnames[] = { | |
30442 | (char *) "self",(char *) "item",(char *) "col", NULL | |
30443 | }; | |
30444 | ||
30445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30446 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30447 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30448 | { | |
30449 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30450 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30451 | if (arg2 == NULL) { | |
30452 | SWIG_null_ref("wxTreeItemId"); | |
30453 | } | |
30454 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30455 | } |
30456 | { | |
30457 | arg3 = &temp3; | |
30458 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30459 | } | |
30460 | { | |
30461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30462 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
30463 | ||
30464 | wxPyEndAllowThreads(__tstate); | |
30465 | if (PyErr_Occurred()) SWIG_fail; | |
30466 | } | |
30467 | Py_INCREF(Py_None); resultobj = Py_None; | |
30468 | return resultobj; | |
30469 | fail: | |
30470 | return NULL; | |
30471 | } | |
30472 | ||
30473 | ||
c32bde28 | 30474 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30475 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30476 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30477 | wxTreeItemId *arg2 = 0 ; | |
30478 | wxFont *arg3 = 0 ; | |
30479 | PyObject * obj0 = 0 ; | |
30480 | PyObject * obj1 = 0 ; | |
30481 | PyObject * obj2 = 0 ; | |
30482 | char *kwnames[] = { | |
30483 | (char *) "self",(char *) "item",(char *) "font", NULL | |
30484 | }; | |
30485 | ||
30486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30487 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30488 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30489 | { | |
30490 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30491 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30492 | if (arg2 == NULL) { | |
30493 | SWIG_null_ref("wxTreeItemId"); | |
30494 | } | |
30495 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 | 30496 | } |
093d3ff1 RD |
30497 | { |
30498 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxFont, SWIG_POINTER_EXCEPTION | 0); | |
30499 | if (SWIG_arg_fail(3)) SWIG_fail; | |
30500 | if (arg3 == NULL) { | |
30501 | SWIG_null_ref("wxFont"); | |
30502 | } | |
30503 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
30504 | } |
30505 | { | |
30506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30507 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
30508 | ||
30509 | wxPyEndAllowThreads(__tstate); | |
30510 | if (PyErr_Occurred()) SWIG_fail; | |
30511 | } | |
30512 | Py_INCREF(Py_None); resultobj = Py_None; | |
30513 | return resultobj; | |
30514 | fail: | |
30515 | return NULL; | |
30516 | } | |
30517 | ||
30518 | ||
c32bde28 | 30519 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30520 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30521 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30522 | wxTreeItemId *arg2 = 0 ; | |
30523 | bool result; | |
30524 | PyObject * obj0 = 0 ; | |
30525 | PyObject * obj1 = 0 ; | |
30526 | char *kwnames[] = { | |
30527 | (char *) "self",(char *) "item", NULL | |
30528 | }; | |
30529 | ||
30530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30531 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30532 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30533 | { | |
30534 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30535 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30536 | if (arg2 == NULL) { | |
30537 | SWIG_null_ref("wxTreeItemId"); | |
30538 | } | |
30539 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30540 | } |
30541 | { | |
30542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30543 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
30544 | ||
30545 | wxPyEndAllowThreads(__tstate); | |
30546 | if (PyErr_Occurred()) SWIG_fail; | |
30547 | } | |
4f89f6a3 RD |
30548 | { |
30549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30550 | } | |
d14a1e28 RD |
30551 | return resultobj; |
30552 | fail: | |
30553 | return NULL; | |
30554 | } | |
30555 | ||
30556 | ||
c32bde28 | 30557 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30558 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30559 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30560 | wxTreeItemId *arg2 = 0 ; | |
30561 | bool result; | |
30562 | PyObject * obj0 = 0 ; | |
30563 | PyObject * obj1 = 0 ; | |
30564 | char *kwnames[] = { | |
30565 | (char *) "self",(char *) "item", NULL | |
30566 | }; | |
30567 | ||
30568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30569 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30570 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30571 | { | |
30572 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30573 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30574 | if (arg2 == NULL) { | |
30575 | SWIG_null_ref("wxTreeItemId"); | |
30576 | } | |
30577 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30578 | } |
30579 | { | |
30580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30581 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
30582 | ||
30583 | wxPyEndAllowThreads(__tstate); | |
30584 | if (PyErr_Occurred()) SWIG_fail; | |
30585 | } | |
4f89f6a3 RD |
30586 | { |
30587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30588 | } | |
d14a1e28 RD |
30589 | return resultobj; |
30590 | fail: | |
30591 | return NULL; | |
30592 | } | |
30593 | ||
30594 | ||
c32bde28 | 30595 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30596 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30597 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30598 | wxTreeItemId *arg2 = 0 ; | |
30599 | bool result; | |
30600 | PyObject * obj0 = 0 ; | |
30601 | PyObject * obj1 = 0 ; | |
30602 | char *kwnames[] = { | |
30603 | (char *) "self",(char *) "item", NULL | |
30604 | }; | |
30605 | ||
30606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30607 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30608 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30609 | { | |
30610 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30611 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30612 | if (arg2 == NULL) { | |
30613 | SWIG_null_ref("wxTreeItemId"); | |
30614 | } | |
30615 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30616 | } |
30617 | { | |
30618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30619 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
30620 | ||
30621 | wxPyEndAllowThreads(__tstate); | |
30622 | if (PyErr_Occurred()) SWIG_fail; | |
30623 | } | |
4f89f6a3 RD |
30624 | { |
30625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30626 | } | |
d14a1e28 RD |
30627 | return resultobj; |
30628 | fail: | |
30629 | return NULL; | |
30630 | } | |
30631 | ||
30632 | ||
c32bde28 | 30633 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30634 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30635 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30636 | wxTreeItemId *arg2 = 0 ; | |
30637 | bool result; | |
30638 | PyObject * obj0 = 0 ; | |
30639 | PyObject * obj1 = 0 ; | |
30640 | char *kwnames[] = { | |
30641 | (char *) "self",(char *) "item", NULL | |
30642 | }; | |
30643 | ||
30644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30645 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30646 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30647 | { | |
30648 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30649 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30650 | if (arg2 == NULL) { | |
30651 | SWIG_null_ref("wxTreeItemId"); | |
30652 | } | |
30653 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30654 | } |
30655 | { | |
30656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30657 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
30658 | ||
30659 | wxPyEndAllowThreads(__tstate); | |
30660 | if (PyErr_Occurred()) SWIG_fail; | |
30661 | } | |
4f89f6a3 RD |
30662 | { |
30663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30664 | } | |
d14a1e28 RD |
30665 | return resultobj; |
30666 | fail: | |
30667 | return NULL; | |
30668 | } | |
30669 | ||
30670 | ||
c32bde28 | 30671 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30672 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30673 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30674 | wxTreeItemId *arg2 = 0 ; | |
30675 | bool result; | |
30676 | PyObject * obj0 = 0 ; | |
30677 | PyObject * obj1 = 0 ; | |
30678 | char *kwnames[] = { | |
30679 | (char *) "self",(char *) "item", NULL | |
30680 | }; | |
30681 | ||
30682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30685 | { | |
30686 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30688 | if (arg2 == NULL) { | |
30689 | SWIG_null_ref("wxTreeItemId"); | |
30690 | } | |
30691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30692 | } |
30693 | { | |
30694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30695 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
30696 | ||
30697 | wxPyEndAllowThreads(__tstate); | |
30698 | if (PyErr_Occurred()) SWIG_fail; | |
30699 | } | |
4f89f6a3 RD |
30700 | { |
30701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30702 | } | |
d14a1e28 RD |
30703 | return resultobj; |
30704 | fail: | |
30705 | return NULL; | |
30706 | } | |
30707 | ||
30708 | ||
c32bde28 | 30709 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30710 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30711 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30712 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 30713 | bool arg3 = (bool) true ; |
d14a1e28 RD |
30714 | size_t result; |
30715 | PyObject * obj0 = 0 ; | |
30716 | PyObject * obj1 = 0 ; | |
30717 | PyObject * obj2 = 0 ; | |
30718 | char *kwnames[] = { | |
30719 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
30720 | }; | |
30721 | ||
30722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30723 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30724 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30725 | { | |
30726 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30727 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30728 | if (arg2 == NULL) { | |
30729 | SWIG_null_ref("wxTreeItemId"); | |
30730 | } | |
30731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30732 | } |
30733 | if (obj2) { | |
093d3ff1 | 30734 | { |
32fe5131 | 30735 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
30736 | if (SWIG_arg_fail(3)) SWIG_fail; |
30737 | } | |
d14a1e28 RD |
30738 | } |
30739 | { | |
30740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30741 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
30742 | ||
30743 | wxPyEndAllowThreads(__tstate); | |
30744 | if (PyErr_Occurred()) SWIG_fail; | |
30745 | } | |
093d3ff1 | 30746 | { |
32fe5131 | 30747 | resultobj = SWIG_From_unsigned_SS_long(static_cast<unsigned long >(result)); |
093d3ff1 | 30748 | } |
d14a1e28 RD |
30749 | return resultobj; |
30750 | fail: | |
30751 | return NULL; | |
30752 | } | |
30753 | ||
30754 | ||
c32bde28 | 30755 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30756 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30757 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30758 | wxTreeItemId result; | |
30759 | PyObject * obj0 = 0 ; | |
30760 | char *kwnames[] = { | |
30761 | (char *) "self", NULL | |
30762 | }; | |
30763 | ||
30764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30765 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30766 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30767 | { |
30768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30769 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
30770 | ||
30771 | wxPyEndAllowThreads(__tstate); | |
30772 | if (PyErr_Occurred()) SWIG_fail; | |
30773 | } | |
30774 | { | |
30775 | wxTreeItemId * resultptr; | |
32fe5131 | 30776 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30777 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30778 | } |
30779 | return resultobj; | |
30780 | fail: | |
30781 | return NULL; | |
30782 | } | |
30783 | ||
30784 | ||
c32bde28 | 30785 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30786 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30787 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30788 | wxTreeItemId result; | |
30789 | PyObject * obj0 = 0 ; | |
30790 | char *kwnames[] = { | |
30791 | (char *) "self", NULL | |
30792 | }; | |
30793 | ||
30794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30795 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30796 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30797 | { |
30798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30799 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
30800 | ||
30801 | wxPyEndAllowThreads(__tstate); | |
30802 | if (PyErr_Occurred()) SWIG_fail; | |
30803 | } | |
30804 | { | |
30805 | wxTreeItemId * resultptr; | |
32fe5131 | 30806 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30808 | } |
30809 | return resultobj; | |
30810 | fail: | |
30811 | return NULL; | |
30812 | } | |
30813 | ||
30814 | ||
c32bde28 | 30815 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30816 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30817 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30818 | PyObject *result; | |
30819 | PyObject * obj0 = 0 ; | |
30820 | char *kwnames[] = { | |
30821 | (char *) "self", NULL | |
30822 | }; | |
30823 | ||
30824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
30825 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30826 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
30827 | { |
30828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30829 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
30830 | ||
30831 | wxPyEndAllowThreads(__tstate); | |
30832 | if (PyErr_Occurred()) SWIG_fail; | |
30833 | } | |
30834 | resultobj = result; | |
30835 | return resultobj; | |
30836 | fail: | |
30837 | return NULL; | |
30838 | } | |
30839 | ||
30840 | ||
c32bde28 | 30841 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30842 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30843 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30844 | wxTreeItemId *arg2 = 0 ; | |
30845 | wxTreeItemId result; | |
30846 | PyObject * obj0 = 0 ; | |
30847 | PyObject * obj1 = 0 ; | |
30848 | char *kwnames[] = { | |
30849 | (char *) "self",(char *) "item", NULL | |
30850 | }; | |
30851 | ||
30852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30853 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30854 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30855 | { | |
30856 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30857 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30858 | if (arg2 == NULL) { | |
30859 | SWIG_null_ref("wxTreeItemId"); | |
30860 | } | |
30861 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30862 | } |
30863 | { | |
30864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30865 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
30866 | ||
30867 | wxPyEndAllowThreads(__tstate); | |
30868 | if (PyErr_Occurred()) SWIG_fail; | |
30869 | } | |
30870 | { | |
30871 | wxTreeItemId * resultptr; | |
32fe5131 | 30872 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30873 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30874 | } |
30875 | return resultobj; | |
30876 | fail: | |
30877 | return NULL; | |
30878 | } | |
30879 | ||
30880 | ||
c32bde28 | 30881 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30882 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30883 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30884 | wxTreeItemId *arg2 = 0 ; | |
30885 | PyObject *result; | |
30886 | PyObject * obj0 = 0 ; | |
30887 | PyObject * obj1 = 0 ; | |
30888 | char *kwnames[] = { | |
30889 | (char *) "self",(char *) "item", NULL | |
30890 | }; | |
30891 | ||
30892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30893 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30894 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30895 | { | |
30896 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30897 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30898 | if (arg2 == NULL) { | |
30899 | SWIG_null_ref("wxTreeItemId"); | |
30900 | } | |
30901 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30902 | } |
30903 | { | |
30904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30905 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
30906 | ||
30907 | wxPyEndAllowThreads(__tstate); | |
30908 | if (PyErr_Occurred()) SWIG_fail; | |
30909 | } | |
30910 | resultobj = result; | |
30911 | return resultobj; | |
30912 | fail: | |
30913 | return NULL; | |
30914 | } | |
30915 | ||
30916 | ||
c32bde28 | 30917 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30918 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30919 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30920 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 30921 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
30922 | PyObject *result; |
30923 | PyObject * obj0 = 0 ; | |
30924 | PyObject * obj1 = 0 ; | |
30925 | PyObject * obj2 = 0 ; | |
30926 | char *kwnames[] = { | |
30927 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
30928 | }; | |
30929 | ||
30930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
30931 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30932 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30933 | { | |
30934 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30935 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30936 | if (arg2 == NULL) { | |
30937 | SWIG_null_ref("wxTreeItemId"); | |
30938 | } | |
30939 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30940 | } | |
30941 | { | |
32fe5131 | 30942 | if ((SWIG_ConvertPtr(obj2,reinterpret_cast<void ** >(&arg3),0,SWIG_POINTER_EXCEPTION|0))== -1) { |
093d3ff1 RD |
30943 | SWIG_arg_fail(3);SWIG_fail; |
30944 | } | |
d14a1e28 | 30945 | } |
d14a1e28 RD |
30946 | { |
30947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 30948 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
30949 | |
30950 | wxPyEndAllowThreads(__tstate); | |
30951 | if (PyErr_Occurred()) SWIG_fail; | |
30952 | } | |
30953 | resultobj = result; | |
30954 | return resultobj; | |
30955 | fail: | |
30956 | return NULL; | |
30957 | } | |
30958 | ||
30959 | ||
c32bde28 | 30960 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 30961 | PyObject *resultobj = NULL; |
d14a1e28 RD |
30962 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
30963 | wxTreeItemId *arg2 = 0 ; | |
30964 | wxTreeItemId result; | |
30965 | PyObject * obj0 = 0 ; | |
30966 | PyObject * obj1 = 0 ; | |
30967 | char *kwnames[] = { | |
30968 | (char *) "self",(char *) "item", NULL | |
30969 | }; | |
30970 | ||
30971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
30972 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
30973 | if (SWIG_arg_fail(1)) SWIG_fail; | |
30974 | { | |
30975 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
30976 | if (SWIG_arg_fail(2)) SWIG_fail; | |
30977 | if (arg2 == NULL) { | |
30978 | SWIG_null_ref("wxTreeItemId"); | |
30979 | } | |
30980 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
30981 | } |
30982 | { | |
30983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30984 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
30985 | ||
30986 | wxPyEndAllowThreads(__tstate); | |
30987 | if (PyErr_Occurred()) SWIG_fail; | |
30988 | } | |
30989 | { | |
30990 | wxTreeItemId * resultptr; | |
32fe5131 | 30991 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 30992 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
30993 | } |
30994 | return resultobj; | |
30995 | fail: | |
30996 | return NULL; | |
30997 | } | |
30998 | ||
30999 | ||
c32bde28 | 31000 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31001 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31002 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31003 | wxTreeItemId *arg2 = 0 ; | |
31004 | wxTreeItemId result; | |
31005 | PyObject * obj0 = 0 ; | |
31006 | PyObject * obj1 = 0 ; | |
31007 | char *kwnames[] = { | |
31008 | (char *) "self",(char *) "item", NULL | |
31009 | }; | |
31010 | ||
31011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31012 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31013 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31014 | { | |
31015 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31016 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31017 | if (arg2 == NULL) { | |
31018 | SWIG_null_ref("wxTreeItemId"); | |
31019 | } | |
31020 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31021 | } |
31022 | { | |
31023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31024 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
31025 | ||
31026 | wxPyEndAllowThreads(__tstate); | |
31027 | if (PyErr_Occurred()) SWIG_fail; | |
31028 | } | |
31029 | { | |
31030 | wxTreeItemId * resultptr; | |
32fe5131 | 31031 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31033 | } |
31034 | return resultobj; | |
31035 | fail: | |
31036 | return NULL; | |
31037 | } | |
31038 | ||
31039 | ||
c32bde28 | 31040 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31041 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31042 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31043 | wxTreeItemId *arg2 = 0 ; | |
31044 | wxTreeItemId result; | |
31045 | PyObject * obj0 = 0 ; | |
31046 | PyObject * obj1 = 0 ; | |
31047 | char *kwnames[] = { | |
31048 | (char *) "self",(char *) "item", NULL | |
31049 | }; | |
31050 | ||
31051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31052 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31053 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31054 | { | |
31055 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31056 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31057 | if (arg2 == NULL) { | |
31058 | SWIG_null_ref("wxTreeItemId"); | |
31059 | } | |
31060 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31061 | } |
31062 | { | |
31063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31064 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
31065 | ||
31066 | wxPyEndAllowThreads(__tstate); | |
31067 | if (PyErr_Occurred()) SWIG_fail; | |
31068 | } | |
31069 | { | |
31070 | wxTreeItemId * resultptr; | |
32fe5131 | 31071 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31072 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31073 | } |
31074 | return resultobj; | |
31075 | fail: | |
31076 | return NULL; | |
31077 | } | |
31078 | ||
31079 | ||
c32bde28 | 31080 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31081 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31082 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31083 | wxTreeItemId result; | |
31084 | PyObject * obj0 = 0 ; | |
31085 | char *kwnames[] = { | |
31086 | (char *) "self", NULL | |
31087 | }; | |
31088 | ||
31089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31090 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31091 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31092 | { |
31093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31094 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
31095 | ||
31096 | wxPyEndAllowThreads(__tstate); | |
31097 | if (PyErr_Occurred()) SWIG_fail; | |
31098 | } | |
31099 | { | |
31100 | wxTreeItemId * resultptr; | |
32fe5131 | 31101 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31102 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31103 | } |
31104 | return resultobj; | |
31105 | fail: | |
31106 | return NULL; | |
31107 | } | |
31108 | ||
31109 | ||
c32bde28 | 31110 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31111 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31112 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31113 | wxTreeItemId *arg2 = 0 ; | |
31114 | wxTreeItemId result; | |
31115 | PyObject * obj0 = 0 ; | |
31116 | PyObject * obj1 = 0 ; | |
31117 | char *kwnames[] = { | |
31118 | (char *) "self",(char *) "item", NULL | |
31119 | }; | |
31120 | ||
31121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31122 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31123 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31124 | { | |
31125 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31126 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31127 | if (arg2 == NULL) { | |
31128 | SWIG_null_ref("wxTreeItemId"); | |
31129 | } | |
31130 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31131 | } |
31132 | { | |
31133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31134 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
31135 | ||
31136 | wxPyEndAllowThreads(__tstate); | |
31137 | if (PyErr_Occurred()) SWIG_fail; | |
31138 | } | |
31139 | { | |
31140 | wxTreeItemId * resultptr; | |
32fe5131 | 31141 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31142 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31143 | } |
31144 | return resultobj; | |
31145 | fail: | |
31146 | return NULL; | |
31147 | } | |
31148 | ||
31149 | ||
c32bde28 | 31150 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31151 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31152 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31153 | wxTreeItemId *arg2 = 0 ; | |
31154 | wxTreeItemId result; | |
31155 | PyObject * obj0 = 0 ; | |
31156 | PyObject * obj1 = 0 ; | |
31157 | char *kwnames[] = { | |
31158 | (char *) "self",(char *) "item", NULL | |
31159 | }; | |
31160 | ||
31161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31162 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31163 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31164 | { | |
31165 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31166 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31167 | if (arg2 == NULL) { | |
31168 | SWIG_null_ref("wxTreeItemId"); | |
31169 | } | |
31170 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31171 | } |
31172 | { | |
31173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31174 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
31175 | ||
31176 | wxPyEndAllowThreads(__tstate); | |
31177 | if (PyErr_Occurred()) SWIG_fail; | |
31178 | } | |
31179 | { | |
31180 | wxTreeItemId * resultptr; | |
32fe5131 | 31181 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31183 | } |
31184 | return resultobj; | |
31185 | fail: | |
31186 | return NULL; | |
31187 | } | |
31188 | ||
31189 | ||
c32bde28 | 31190 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31191 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31192 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31193 | wxString *arg2 = 0 ; | |
31194 | int arg3 = (int) -1 ; | |
31195 | int arg4 = (int) -1 ; | |
31196 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
31197 | wxTreeItemId result; | |
ae8162c8 | 31198 | bool temp2 = false ; |
d14a1e28 RD |
31199 | PyObject * obj0 = 0 ; |
31200 | PyObject * obj1 = 0 ; | |
994141e6 RD |
31201 | PyObject * obj2 = 0 ; |
31202 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
31203 | PyObject * obj4 = 0 ; |
31204 | char *kwnames[] = { | |
31205 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
31206 | }; | |
31207 | ||
994141e6 | 31208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
31209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31211 | { |
31212 | arg2 = wxString_in_helper(obj1); | |
31213 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 31214 | temp2 = true; |
d14a1e28 | 31215 | } |
994141e6 | 31216 | if (obj2) { |
093d3ff1 | 31217 | { |
32fe5131 | 31218 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
31219 | if (SWIG_arg_fail(3)) SWIG_fail; |
31220 | } | |
994141e6 RD |
31221 | } |
31222 | if (obj3) { | |
093d3ff1 | 31223 | { |
32fe5131 | 31224 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
31225 | if (SWIG_arg_fail(4)) SWIG_fail; |
31226 | } | |
994141e6 | 31227 | } |
d14a1e28 | 31228 | if (obj4) { |
7e08d4ef | 31229 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 31230 | if (SWIG_arg_fail(5)) SWIG_fail; |
d14a1e28 RD |
31231 | } |
31232 | { | |
31233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31234 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
31235 | ||
31236 | wxPyEndAllowThreads(__tstate); | |
31237 | if (PyErr_Occurred()) SWIG_fail; | |
31238 | } | |
31239 | { | |
31240 | wxTreeItemId * resultptr; | |
32fe5131 | 31241 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31243 | } |
31244 | { | |
31245 | if (temp2) | |
31246 | delete arg2; | |
31247 | } | |
31248 | return resultobj; | |
31249 | fail: | |
31250 | { | |
31251 | if (temp2) | |
31252 | delete arg2; | |
31253 | } | |
31254 | return NULL; | |
31255 | } | |
31256 | ||
31257 | ||
c32bde28 | 31258 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31259 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31260 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31261 | wxTreeItemId *arg2 = 0 ; | |
31262 | wxString *arg3 = 0 ; | |
31263 | int arg4 = (int) -1 ; | |
31264 | int arg5 = (int) -1 ; | |
31265 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
31266 | wxTreeItemId result; | |
ae8162c8 | 31267 | bool temp3 = false ; |
d14a1e28 RD |
31268 | PyObject * obj0 = 0 ; |
31269 | PyObject * obj1 = 0 ; | |
31270 | PyObject * obj2 = 0 ; | |
994141e6 RD |
31271 | PyObject * obj3 = 0 ; |
31272 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
31273 | PyObject * obj5 = 0 ; |
31274 | char *kwnames[] = { | |
31275 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
31276 | }; | |
31277 | ||
994141e6 | 31278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
31279 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31280 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31281 | { | |
31282 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31283 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31284 | if (arg2 == NULL) { | |
31285 | SWIG_null_ref("wxTreeItemId"); | |
31286 | } | |
31287 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31288 | } |
31289 | { | |
31290 | arg3 = wxString_in_helper(obj2); | |
31291 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31292 | temp3 = true; |
d14a1e28 | 31293 | } |
994141e6 | 31294 | if (obj3) { |
093d3ff1 | 31295 | { |
32fe5131 | 31296 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
31297 | if (SWIG_arg_fail(4)) SWIG_fail; |
31298 | } | |
994141e6 RD |
31299 | } |
31300 | if (obj4) { | |
093d3ff1 | 31301 | { |
32fe5131 | 31302 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
31303 | if (SWIG_arg_fail(5)) SWIG_fail; |
31304 | } | |
994141e6 | 31305 | } |
d14a1e28 | 31306 | if (obj5) { |
7e08d4ef | 31307 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 31308 | if (SWIG_arg_fail(6)) SWIG_fail; |
d14a1e28 RD |
31309 | } |
31310 | { | |
31311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31312 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
31313 | ||
31314 | wxPyEndAllowThreads(__tstate); | |
31315 | if (PyErr_Occurred()) SWIG_fail; | |
31316 | } | |
31317 | { | |
31318 | wxTreeItemId * resultptr; | |
32fe5131 | 31319 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31321 | } |
31322 | { | |
31323 | if (temp3) | |
31324 | delete arg3; | |
31325 | } | |
31326 | return resultobj; | |
31327 | fail: | |
31328 | { | |
31329 | if (temp3) | |
31330 | delete arg3; | |
31331 | } | |
31332 | return NULL; | |
31333 | } | |
31334 | ||
31335 | ||
c32bde28 | 31336 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31337 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31338 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31339 | wxTreeItemId *arg2 = 0 ; | |
31340 | wxTreeItemId *arg3 = 0 ; | |
31341 | wxString *arg4 = 0 ; | |
31342 | int arg5 = (int) -1 ; | |
31343 | int arg6 = (int) -1 ; | |
31344 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
31345 | wxTreeItemId result; | |
ae8162c8 | 31346 | bool temp4 = false ; |
d14a1e28 RD |
31347 | PyObject * obj0 = 0 ; |
31348 | PyObject * obj1 = 0 ; | |
31349 | PyObject * obj2 = 0 ; | |
31350 | PyObject * obj3 = 0 ; | |
994141e6 RD |
31351 | PyObject * obj4 = 0 ; |
31352 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
31353 | PyObject * obj6 = 0 ; |
31354 | char *kwnames[] = { | |
31355 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
31356 | }; | |
31357 | ||
994141e6 | 31358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
31359 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31360 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31361 | { | |
31362 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31363 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31364 | if (arg2 == NULL) { | |
31365 | SWIG_null_ref("wxTreeItemId"); | |
31366 | } | |
31367 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31368 | } | |
31369 | { | |
31370 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31371 | if (SWIG_arg_fail(3)) SWIG_fail; | |
31372 | if (arg3 == NULL) { | |
31373 | SWIG_null_ref("wxTreeItemId"); | |
31374 | } | |
31375 | if (SWIG_arg_fail(3)) SWIG_fail; | |
d14a1e28 RD |
31376 | } |
31377 | { | |
31378 | arg4 = wxString_in_helper(obj3); | |
31379 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31380 | temp4 = true; |
d14a1e28 | 31381 | } |
994141e6 | 31382 | if (obj4) { |
093d3ff1 | 31383 | { |
32fe5131 | 31384 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
31385 | if (SWIG_arg_fail(5)) SWIG_fail; |
31386 | } | |
994141e6 RD |
31387 | } |
31388 | if (obj5) { | |
093d3ff1 | 31389 | { |
32fe5131 | 31390 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
31391 | if (SWIG_arg_fail(6)) SWIG_fail; |
31392 | } | |
994141e6 | 31393 | } |
d14a1e28 | 31394 | if (obj6) { |
7e08d4ef | 31395 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 31396 | if (SWIG_arg_fail(7)) SWIG_fail; |
d14a1e28 RD |
31397 | } |
31398 | { | |
31399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31400 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
31401 | ||
31402 | wxPyEndAllowThreads(__tstate); | |
31403 | if (PyErr_Occurred()) SWIG_fail; | |
31404 | } | |
31405 | { | |
31406 | wxTreeItemId * resultptr; | |
32fe5131 | 31407 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31408 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31409 | } |
31410 | { | |
31411 | if (temp4) | |
31412 | delete arg4; | |
31413 | } | |
31414 | return resultobj; | |
31415 | fail: | |
31416 | { | |
31417 | if (temp4) | |
31418 | delete arg4; | |
31419 | } | |
31420 | return NULL; | |
31421 | } | |
31422 | ||
31423 | ||
c32bde28 | 31424 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31425 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31426 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31427 | wxTreeItemId *arg2 = 0 ; | |
31428 | size_t arg3 ; | |
31429 | wxString *arg4 = 0 ; | |
31430 | int arg5 = (int) -1 ; | |
31431 | int arg6 = (int) -1 ; | |
31432 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
31433 | wxTreeItemId result; | |
ae8162c8 | 31434 | bool temp4 = false ; |
d14a1e28 RD |
31435 | PyObject * obj0 = 0 ; |
31436 | PyObject * obj1 = 0 ; | |
31437 | PyObject * obj2 = 0 ; | |
31438 | PyObject * obj3 = 0 ; | |
994141e6 RD |
31439 | PyObject * obj4 = 0 ; |
31440 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
31441 | PyObject * obj6 = 0 ; |
31442 | char *kwnames[] = { | |
31443 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
31444 | }; | |
31445 | ||
994141e6 | 31446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
31447 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31448 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31449 | { | |
31450 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31451 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31452 | if (arg2 == NULL) { | |
31453 | SWIG_null_ref("wxTreeItemId"); | |
31454 | } | |
31455 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31456 | } | |
31457 | { | |
32fe5131 | 31458 | arg3 = static_cast<size_t >(SWIG_As_unsigned_SS_long(obj2)); |
093d3ff1 RD |
31459 | if (SWIG_arg_fail(3)) SWIG_fail; |
31460 | } | |
d14a1e28 RD |
31461 | { |
31462 | arg4 = wxString_in_helper(obj3); | |
31463 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 31464 | temp4 = true; |
d14a1e28 | 31465 | } |
994141e6 | 31466 | if (obj4) { |
093d3ff1 | 31467 | { |
32fe5131 | 31468 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
31469 | if (SWIG_arg_fail(5)) SWIG_fail; |
31470 | } | |
994141e6 RD |
31471 | } |
31472 | if (obj5) { | |
093d3ff1 | 31473 | { |
32fe5131 | 31474 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
31475 | if (SWIG_arg_fail(6)) SWIG_fail; |
31476 | } | |
994141e6 | 31477 | } |
d14a1e28 | 31478 | if (obj6) { |
7e08d4ef | 31479 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 31480 | if (SWIG_arg_fail(7)) SWIG_fail; |
d14a1e28 RD |
31481 | } |
31482 | { | |
31483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31484 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
31485 | ||
31486 | wxPyEndAllowThreads(__tstate); | |
31487 | if (PyErr_Occurred()) SWIG_fail; | |
31488 | } | |
31489 | { | |
31490 | wxTreeItemId * resultptr; | |
32fe5131 | 31491 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31492 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31493 | } |
31494 | { | |
31495 | if (temp4) | |
31496 | delete arg4; | |
31497 | } | |
31498 | return resultobj; | |
31499 | fail: | |
31500 | { | |
31501 | if (temp4) | |
31502 | delete arg4; | |
31503 | } | |
31504 | return NULL; | |
31505 | } | |
31506 | ||
31507 | ||
c32bde28 | 31508 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31509 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31510 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31511 | wxTreeItemId *arg2 = 0 ; | |
31512 | wxString *arg3 = 0 ; | |
31513 | int arg4 = (int) -1 ; | |
31514 | int arg5 = (int) -1 ; | |
31515 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
31516 | wxTreeItemId result; | |
ae8162c8 | 31517 | bool temp3 = false ; |
d14a1e28 RD |
31518 | PyObject * obj0 = 0 ; |
31519 | PyObject * obj1 = 0 ; | |
31520 | PyObject * obj2 = 0 ; | |
994141e6 RD |
31521 | PyObject * obj3 = 0 ; |
31522 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
31523 | PyObject * obj5 = 0 ; |
31524 | char *kwnames[] = { | |
31525 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
31526 | }; | |
31527 | ||
994141e6 | 31528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
31529 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31530 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31531 | { | |
31532 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31533 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31534 | if (arg2 == NULL) { | |
31535 | SWIG_null_ref("wxTreeItemId"); | |
31536 | } | |
31537 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31538 | } |
31539 | { | |
31540 | arg3 = wxString_in_helper(obj2); | |
31541 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 31542 | temp3 = true; |
d14a1e28 | 31543 | } |
994141e6 | 31544 | if (obj3) { |
093d3ff1 | 31545 | { |
32fe5131 | 31546 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
31547 | if (SWIG_arg_fail(4)) SWIG_fail; |
31548 | } | |
994141e6 RD |
31549 | } |
31550 | if (obj4) { | |
093d3ff1 | 31551 | { |
32fe5131 | 31552 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
31553 | if (SWIG_arg_fail(5)) SWIG_fail; |
31554 | } | |
994141e6 | 31555 | } |
d14a1e28 | 31556 | if (obj5) { |
7e08d4ef | 31557 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 31558 | if (SWIG_arg_fail(6)) SWIG_fail; |
d14a1e28 RD |
31559 | } |
31560 | { | |
31561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31562 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
31563 | ||
31564 | wxPyEndAllowThreads(__tstate); | |
31565 | if (PyErr_Occurred()) SWIG_fail; | |
31566 | } | |
31567 | { | |
31568 | wxTreeItemId * resultptr; | |
32fe5131 | 31569 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 31570 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
31571 | } |
31572 | { | |
31573 | if (temp3) | |
31574 | delete arg3; | |
31575 | } | |
31576 | return resultobj; | |
31577 | fail: | |
31578 | { | |
31579 | if (temp3) | |
31580 | delete arg3; | |
31581 | } | |
31582 | return NULL; | |
31583 | } | |
31584 | ||
31585 | ||
c32bde28 | 31586 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31587 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31588 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31589 | wxTreeItemId *arg2 = 0 ; | |
31590 | PyObject * obj0 = 0 ; | |
31591 | PyObject * obj1 = 0 ; | |
31592 | char *kwnames[] = { | |
31593 | (char *) "self",(char *) "item", NULL | |
31594 | }; | |
31595 | ||
31596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31597 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31598 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31599 | { | |
31600 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31601 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31602 | if (arg2 == NULL) { | |
31603 | SWIG_null_ref("wxTreeItemId"); | |
31604 | } | |
31605 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31606 | } |
31607 | { | |
31608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31609 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
31610 | ||
31611 | wxPyEndAllowThreads(__tstate); | |
31612 | if (PyErr_Occurred()) SWIG_fail; | |
31613 | } | |
31614 | Py_INCREF(Py_None); resultobj = Py_None; | |
31615 | return resultobj; | |
31616 | fail: | |
31617 | return NULL; | |
31618 | } | |
31619 | ||
31620 | ||
c32bde28 | 31621 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31622 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31623 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31624 | wxTreeItemId *arg2 = 0 ; | |
31625 | PyObject * obj0 = 0 ; | |
31626 | PyObject * obj1 = 0 ; | |
31627 | char *kwnames[] = { | |
31628 | (char *) "self",(char *) "item", NULL | |
31629 | }; | |
31630 | ||
31631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31632 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31633 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31634 | { | |
31635 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31636 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31637 | if (arg2 == NULL) { | |
31638 | SWIG_null_ref("wxTreeItemId"); | |
31639 | } | |
31640 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31641 | } |
31642 | { | |
31643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31644 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
31645 | ||
31646 | wxPyEndAllowThreads(__tstate); | |
31647 | if (PyErr_Occurred()) SWIG_fail; | |
31648 | } | |
31649 | Py_INCREF(Py_None); resultobj = Py_None; | |
31650 | return resultobj; | |
31651 | fail: | |
31652 | return NULL; | |
31653 | } | |
31654 | ||
31655 | ||
c32bde28 | 31656 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31657 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31658 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31659 | PyObject * obj0 = 0 ; | |
31660 | char *kwnames[] = { | |
31661 | (char *) "self", NULL | |
31662 | }; | |
31663 | ||
31664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31665 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31666 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31667 | { |
31668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31669 | (arg1)->DeleteAllItems(); | |
31670 | ||
31671 | wxPyEndAllowThreads(__tstate); | |
31672 | if (PyErr_Occurred()) SWIG_fail; | |
31673 | } | |
31674 | Py_INCREF(Py_None); resultobj = Py_None; | |
31675 | return resultobj; | |
31676 | fail: | |
31677 | return NULL; | |
31678 | } | |
31679 | ||
31680 | ||
c32bde28 | 31681 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31682 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31683 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31684 | wxTreeItemId *arg2 = 0 ; | |
31685 | PyObject * obj0 = 0 ; | |
31686 | PyObject * obj1 = 0 ; | |
31687 | char *kwnames[] = { | |
31688 | (char *) "self",(char *) "item", NULL | |
31689 | }; | |
31690 | ||
31691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31694 | { | |
31695 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31696 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31697 | if (arg2 == NULL) { | |
31698 | SWIG_null_ref("wxTreeItemId"); | |
31699 | } | |
31700 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31701 | } |
31702 | { | |
31703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31704 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
31705 | ||
31706 | wxPyEndAllowThreads(__tstate); | |
31707 | if (PyErr_Occurred()) SWIG_fail; | |
31708 | } | |
31709 | Py_INCREF(Py_None); resultobj = Py_None; | |
31710 | return resultobj; | |
31711 | fail: | |
31712 | return NULL; | |
31713 | } | |
31714 | ||
31715 | ||
c32bde28 | 31716 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31717 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31718 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31719 | wxTreeItemId *arg2 = 0 ; | |
31720 | PyObject * obj0 = 0 ; | |
31721 | PyObject * obj1 = 0 ; | |
31722 | char *kwnames[] = { | |
31723 | (char *) "self",(char *) "item", NULL | |
31724 | }; | |
31725 | ||
31726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31727 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31728 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31729 | { | |
31730 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31731 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31732 | if (arg2 == NULL) { | |
31733 | SWIG_null_ref("wxTreeItemId"); | |
31734 | } | |
31735 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31736 | } |
31737 | { | |
31738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31739 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
31740 | ||
31741 | wxPyEndAllowThreads(__tstate); | |
31742 | if (PyErr_Occurred()) SWIG_fail; | |
31743 | } | |
31744 | Py_INCREF(Py_None); resultobj = Py_None; | |
31745 | return resultobj; | |
31746 | fail: | |
31747 | return NULL; | |
31748 | } | |
31749 | ||
31750 | ||
c32bde28 | 31751 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31752 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31753 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31754 | wxTreeItemId *arg2 = 0 ; | |
31755 | PyObject * obj0 = 0 ; | |
31756 | PyObject * obj1 = 0 ; | |
31757 | char *kwnames[] = { | |
31758 | (char *) "self",(char *) "item", NULL | |
31759 | }; | |
31760 | ||
31761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31762 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31763 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31764 | { | |
31765 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31766 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31767 | if (arg2 == NULL) { | |
31768 | SWIG_null_ref("wxTreeItemId"); | |
31769 | } | |
31770 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31771 | } |
31772 | { | |
31773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31774 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
31775 | ||
31776 | wxPyEndAllowThreads(__tstate); | |
31777 | if (PyErr_Occurred()) SWIG_fail; | |
31778 | } | |
31779 | Py_INCREF(Py_None); resultobj = Py_None; | |
31780 | return resultobj; | |
31781 | fail: | |
31782 | return NULL; | |
31783 | } | |
31784 | ||
31785 | ||
c32bde28 | 31786 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31787 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31788 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31789 | wxTreeItemId *arg2 = 0 ; | |
31790 | PyObject * obj0 = 0 ; | |
31791 | PyObject * obj1 = 0 ; | |
31792 | char *kwnames[] = { | |
31793 | (char *) "self",(char *) "item", NULL | |
31794 | }; | |
31795 | ||
31796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31797 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31798 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31799 | { | |
31800 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31801 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31802 | if (arg2 == NULL) { | |
31803 | SWIG_null_ref("wxTreeItemId"); | |
31804 | } | |
31805 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31806 | } |
31807 | { | |
31808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31809 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
31810 | ||
31811 | wxPyEndAllowThreads(__tstate); | |
31812 | if (PyErr_Occurred()) SWIG_fail; | |
31813 | } | |
31814 | Py_INCREF(Py_None); resultobj = Py_None; | |
31815 | return resultobj; | |
31816 | fail: | |
31817 | return NULL; | |
31818 | } | |
31819 | ||
31820 | ||
c32bde28 | 31821 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31822 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31823 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31824 | PyObject * obj0 = 0 ; | |
31825 | char *kwnames[] = { | |
31826 | (char *) "self", NULL | |
31827 | }; | |
31828 | ||
31829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31830 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31831 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31832 | { |
31833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31834 | (arg1)->Unselect(); | |
31835 | ||
31836 | wxPyEndAllowThreads(__tstate); | |
31837 | if (PyErr_Occurred()) SWIG_fail; | |
31838 | } | |
31839 | Py_INCREF(Py_None); resultobj = Py_None; | |
31840 | return resultobj; | |
31841 | fail: | |
31842 | return NULL; | |
31843 | } | |
31844 | ||
31845 | ||
c32bde28 | 31846 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31847 | PyObject *resultobj = NULL; |
3adfb63b RD |
31848 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31849 | wxTreeItemId *arg2 = 0 ; | |
31850 | PyObject * obj0 = 0 ; | |
31851 | PyObject * obj1 = 0 ; | |
31852 | char *kwnames[] = { | |
31853 | (char *) "self",(char *) "item", NULL | |
31854 | }; | |
31855 | ||
31856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31857 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31858 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31859 | { | |
31860 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31861 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31862 | if (arg2 == NULL) { | |
31863 | SWIG_null_ref("wxTreeItemId"); | |
31864 | } | |
31865 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3adfb63b RD |
31866 | } |
31867 | { | |
31868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31869 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
31870 | ||
31871 | wxPyEndAllowThreads(__tstate); | |
31872 | if (PyErr_Occurred()) SWIG_fail; | |
31873 | } | |
31874 | Py_INCREF(Py_None); resultobj = Py_None; | |
31875 | return resultobj; | |
31876 | fail: | |
31877 | return NULL; | |
31878 | } | |
31879 | ||
31880 | ||
c32bde28 | 31881 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31882 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31883 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31884 | PyObject * obj0 = 0 ; | |
31885 | char *kwnames[] = { | |
31886 | (char *) "self", NULL | |
31887 | }; | |
31888 | ||
31889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
31890 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31891 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
31892 | { |
31893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31894 | (arg1)->UnselectAll(); | |
31895 | ||
31896 | wxPyEndAllowThreads(__tstate); | |
31897 | if (PyErr_Occurred()) SWIG_fail; | |
31898 | } | |
31899 | Py_INCREF(Py_None); resultobj = Py_None; | |
31900 | return resultobj; | |
31901 | fail: | |
31902 | return NULL; | |
31903 | } | |
31904 | ||
31905 | ||
c32bde28 | 31906 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31907 | PyObject *resultobj = NULL; |
3adfb63b RD |
31908 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31909 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 31910 | bool arg3 = (bool) true ; |
3adfb63b RD |
31911 | PyObject * obj0 = 0 ; |
31912 | PyObject * obj1 = 0 ; | |
31913 | PyObject * obj2 = 0 ; | |
31914 | char *kwnames[] = { | |
31915 | (char *) "self",(char *) "item",(char *) "select", NULL | |
31916 | }; | |
31917 | ||
31918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
31919 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31920 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31921 | { | |
31922 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31923 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31924 | if (arg2 == NULL) { | |
31925 | SWIG_null_ref("wxTreeItemId"); | |
31926 | } | |
31927 | if (SWIG_arg_fail(2)) SWIG_fail; | |
3adfb63b RD |
31928 | } |
31929 | if (obj2) { | |
093d3ff1 | 31930 | { |
32fe5131 | 31931 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
31932 | if (SWIG_arg_fail(3)) SWIG_fail; |
31933 | } | |
3adfb63b RD |
31934 | } |
31935 | { | |
31936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31937 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
31938 | ||
31939 | wxPyEndAllowThreads(__tstate); | |
31940 | if (PyErr_Occurred()) SWIG_fail; | |
31941 | } | |
31942 | Py_INCREF(Py_None); resultobj = Py_None; | |
31943 | return resultobj; | |
31944 | fail: | |
31945 | return NULL; | |
31946 | } | |
31947 | ||
31948 | ||
c32bde28 | 31949 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31950 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31951 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31952 | wxTreeItemId *arg2 = 0 ; | |
31953 | PyObject * obj0 = 0 ; | |
31954 | PyObject * obj1 = 0 ; | |
31955 | char *kwnames[] = { | |
31956 | (char *) "self",(char *) "item", NULL | |
31957 | }; | |
31958 | ||
3adfb63b | 31959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
31960 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31961 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31962 | { | |
31963 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31964 | if (SWIG_arg_fail(2)) SWIG_fail; | |
31965 | if (arg2 == NULL) { | |
31966 | SWIG_null_ref("wxTreeItemId"); | |
31967 | } | |
31968 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
31969 | } |
31970 | { | |
31971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 31972 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
31973 | |
31974 | wxPyEndAllowThreads(__tstate); | |
31975 | if (PyErr_Occurred()) SWIG_fail; | |
31976 | } | |
31977 | Py_INCREF(Py_None); resultobj = Py_None; | |
31978 | return resultobj; | |
31979 | fail: | |
31980 | return NULL; | |
31981 | } | |
31982 | ||
31983 | ||
c32bde28 | 31984 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 31985 | PyObject *resultobj = NULL; |
d14a1e28 RD |
31986 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
31987 | wxTreeItemId *arg2 = 0 ; | |
31988 | PyObject * obj0 = 0 ; | |
31989 | PyObject * obj1 = 0 ; | |
31990 | char *kwnames[] = { | |
31991 | (char *) "self",(char *) "item", NULL | |
31992 | }; | |
31993 | ||
31994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
31995 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
31996 | if (SWIG_arg_fail(1)) SWIG_fail; | |
31997 | { | |
31998 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
31999 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32000 | if (arg2 == NULL) { | |
32001 | SWIG_null_ref("wxTreeItemId"); | |
32002 | } | |
32003 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32004 | } |
32005 | { | |
32006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32007 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
32008 | ||
32009 | wxPyEndAllowThreads(__tstate); | |
32010 | if (PyErr_Occurred()) SWIG_fail; | |
32011 | } | |
32012 | Py_INCREF(Py_None); resultobj = Py_None; | |
32013 | return resultobj; | |
32014 | fail: | |
32015 | return NULL; | |
32016 | } | |
32017 | ||
32018 | ||
c32bde28 | 32019 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32020 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32021 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
32022 | wxTreeItemId *arg2 = 0 ; | |
32023 | PyObject * obj0 = 0 ; | |
32024 | PyObject * obj1 = 0 ; | |
32025 | char *kwnames[] = { | |
32026 | (char *) "self",(char *) "item", NULL | |
32027 | }; | |
32028 | ||
32029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32030 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
32031 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32032 | { | |
32033 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
32034 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32035 | if (arg2 == NULL) { | |
32036 | SWIG_null_ref("wxTreeItemId"); | |
32037 | } | |
32038 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32039 | } |
32040 | { | |
32041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32042 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
32043 | ||
32044 | wxPyEndAllowThreads(__tstate); | |
32045 | if (PyErr_Occurred()) SWIG_fail; | |
32046 | } | |
32047 | Py_INCREF(Py_None); resultobj = Py_None; | |
32048 | return resultobj; | |
32049 | fail: | |
32050 | return NULL; | |
32051 | } | |
32052 | ||
32053 | ||
c32bde28 | 32054 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32055 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32056 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
32057 | wxTreeItemId *arg2 = 0 ; | |
32058 | PyObject * obj0 = 0 ; | |
32059 | PyObject * obj1 = 0 ; | |
32060 | char *kwnames[] = { | |
32061 | (char *) "self",(char *) "item", NULL | |
32062 | }; | |
32063 | ||
32064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32065 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
32066 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32067 | { | |
32068 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
32069 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32070 | if (arg2 == NULL) { | |
32071 | SWIG_null_ref("wxTreeItemId"); | |
32072 | } | |
32073 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32074 | } |
32075 | { | |
32076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32077 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
32078 | ||
32079 | wxPyEndAllowThreads(__tstate); | |
32080 | if (PyErr_Occurred()) SWIG_fail; | |
32081 | } | |
32082 | Py_INCREF(Py_None); resultobj = Py_None; | |
32083 | return resultobj; | |
32084 | fail: | |
32085 | return NULL; | |
32086 | } | |
32087 | ||
32088 | ||
c32bde28 | 32089 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32090 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32091 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
32092 | wxTextCtrl *result; | |
32093 | PyObject * obj0 = 0 ; | |
32094 | char *kwnames[] = { | |
32095 | (char *) "self", NULL | |
32096 | }; | |
32097 | ||
32098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32099 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
32100 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32101 | { |
32102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32103 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
32104 | ||
32105 | wxPyEndAllowThreads(__tstate); | |
32106 | if (PyErr_Occurred()) SWIG_fail; | |
32107 | } | |
32108 | { | |
412d302d | 32109 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32110 | } |
32111 | return resultobj; | |
32112 | fail: | |
32113 | return NULL; | |
32114 | } | |
32115 | ||
32116 | ||
c32bde28 | 32117 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32118 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32119 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
32120 | wxTreeItemId *arg2 = 0 ; | |
32121 | PyObject * obj0 = 0 ; | |
32122 | PyObject * obj1 = 0 ; | |
32123 | char *kwnames[] = { | |
32124 | (char *) "self",(char *) "item", NULL | |
32125 | }; | |
32126 | ||
32127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
32129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32130 | { | |
32131 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
32132 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32133 | if (arg2 == NULL) { | |
32134 | SWIG_null_ref("wxTreeItemId"); | |
32135 | } | |
32136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32137 | } |
32138 | { | |
32139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32140 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
32141 | ||
32142 | wxPyEndAllowThreads(__tstate); | |
32143 | if (PyErr_Occurred()) SWIG_fail; | |
32144 | } | |
32145 | Py_INCREF(Py_None); resultobj = Py_None; | |
32146 | return resultobj; | |
32147 | fail: | |
32148 | return NULL; | |
32149 | } | |
32150 | ||
32151 | ||
c32bde28 | 32152 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32153 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32154 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
32155 | wxPoint *arg2 = 0 ; | |
32156 | int *arg3 = 0 ; | |
32157 | wxTreeItemId result; | |
32158 | wxPoint temp2 ; | |
32159 | int temp3 ; | |
c32bde28 | 32160 | int res3 = 0 ; |
d14a1e28 RD |
32161 | PyObject * obj0 = 0 ; |
32162 | PyObject * obj1 = 0 ; | |
32163 | char *kwnames[] = { | |
32164 | (char *) "self",(char *) "point", NULL | |
32165 | }; | |
32166 | ||
c32bde28 | 32167 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d14a1e28 | 32168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
32169 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
32170 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32171 | { |
32172 | arg2 = &temp2; | |
32173 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
32174 | } | |
32175 | { | |
32176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32177 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
32178 | ||
32179 | wxPyEndAllowThreads(__tstate); | |
32180 | if (PyErr_Occurred()) SWIG_fail; | |
32181 | } | |
32182 | { | |
32183 | wxTreeItemId * resultptr; | |
32fe5131 | 32184 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 32185 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 32186 | } |
c32bde28 RD |
32187 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
32188 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
32189 | return resultobj; |
32190 | fail: | |
32191 | return NULL; | |
32192 | } | |
32193 | ||
32194 | ||
c32bde28 | 32195 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32196 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32197 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; |
32198 | wxTreeItemId *arg2 = 0 ; | |
ae8162c8 | 32199 | bool arg3 = (bool) false ; |
d14a1e28 RD |
32200 | PyObject *result; |
32201 | PyObject * obj0 = 0 ; | |
32202 | PyObject * obj1 = 0 ; | |
32203 | PyObject * obj2 = 0 ; | |
32204 | char *kwnames[] = { | |
32205 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
32206 | }; | |
32207 | ||
32208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
32209 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); |
32210 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32211 | { | |
32212 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
32213 | if (SWIG_arg_fail(2)) SWIG_fail; | |
32214 | if (arg2 == NULL) { | |
32215 | SWIG_null_ref("wxTreeItemId"); | |
32216 | } | |
32217 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
32218 | } |
32219 | if (obj2) { | |
093d3ff1 | 32220 | { |
32fe5131 | 32221 | arg3 = static_cast<bool >(SWIG_As_bool(obj2)); |
093d3ff1 RD |
32222 | if (SWIG_arg_fail(3)) SWIG_fail; |
32223 | } | |
d14a1e28 RD |
32224 | } |
32225 | { | |
32226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32227 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
32228 | ||
32229 | wxPyEndAllowThreads(__tstate); | |
32230 | if (PyErr_Occurred()) SWIG_fail; | |
32231 | } | |
32232 | resultobj = result; | |
32233 | return resultobj; | |
32234 | fail: | |
32235 | return NULL; | |
32236 | } | |
32237 | ||
32238 | ||
c32bde28 | 32239 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32240 | PyObject *resultobj = NULL; |
093d3ff1 | 32241 | wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ; |
74a57fcd RD |
32242 | wxVisualAttributes result; |
32243 | PyObject * obj0 = 0 ; | |
32244 | char *kwnames[] = { | |
32245 | (char *) "variant", NULL | |
32246 | }; | |
32247 | ||
32248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
32249 | if (obj0) { | |
093d3ff1 | 32250 | { |
32fe5131 | 32251 | arg1 = static_cast<wxWindowVariant >(SWIG_As_int(obj0)); |
093d3ff1 RD |
32252 | if (SWIG_arg_fail(1)) SWIG_fail; |
32253 | } | |
74a57fcd RD |
32254 | } |
32255 | { | |
110da5b0 | 32256 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd | 32257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32fe5131 | 32258 | result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1); |
74a57fcd RD |
32259 | |
32260 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 32261 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
32262 | } |
32263 | { | |
32264 | wxVisualAttributes * resultptr; | |
32fe5131 | 32265 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
74a57fcd RD |
32266 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
32267 | } | |
32268 | return resultobj; | |
32269 | fail: | |
32270 | return NULL; | |
32271 | } | |
32272 | ||
32273 | ||
c32bde28 | 32274 | static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
32275 | PyObject *obj; |
32276 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32277 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
32278 | Py_INCREF(obj); | |
32279 | return Py_BuildValue((char *)""); | |
32280 | } | |
c32bde28 | 32281 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) { |
b2dc1044 RD |
32282 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
32283 | return 1; | |
32284 | } | |
32285 | ||
32286 | ||
093d3ff1 | 32287 | static PyObject *_wrap_DirDialogDefaultFolderStr_get(void) { |
32fe5131 | 32288 | PyObject *pyobj = NULL; |
b2dc1044 RD |
32289 | |
32290 | { | |
32291 | #if wxUSE_UNICODE | |
32292 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
32293 | #else | |
32294 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
32295 | #endif | |
32296 | } | |
32297 | return pyobj; | |
32298 | } | |
32299 | ||
32300 | ||
c32bde28 | 32301 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32302 | PyObject *resultobj = NULL; |
d14a1e28 | 32303 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 32304 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
32305 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
32306 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32307 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
32308 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32309 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32310 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32311 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
32312 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
32313 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32314 | int arg8 = (int) 0 ; | |
b2dc1044 | 32315 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
32316 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
32317 | wxGenericDirCtrl *result; | |
ae8162c8 | 32318 | bool temp3 = false ; |
d14a1e28 RD |
32319 | wxPoint temp4 ; |
32320 | wxSize temp5 ; | |
ae8162c8 RD |
32321 | bool temp7 = false ; |
32322 | bool temp9 = false ; | |
d14a1e28 | 32323 | PyObject * obj0 = 0 ; |
994141e6 | 32324 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32325 | PyObject * obj2 = 0 ; |
32326 | PyObject * obj3 = 0 ; | |
32327 | PyObject * obj4 = 0 ; | |
994141e6 | 32328 | PyObject * obj5 = 0 ; |
d14a1e28 | 32329 | PyObject * obj6 = 0 ; |
994141e6 | 32330 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
32331 | PyObject * obj8 = 0 ; |
32332 | char *kwnames[] = { | |
32333 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
32334 | }; | |
32335 | ||
994141e6 | 32336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
093d3ff1 RD |
32337 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
32338 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 32339 | if (obj1) { |
093d3ff1 | 32340 | { |
32fe5131 | 32341 | arg2 = static_cast<int const >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32342 | if (SWIG_arg_fail(2)) SWIG_fail; |
32343 | } | |
994141e6 | 32344 | } |
d14a1e28 RD |
32345 | if (obj2) { |
32346 | { | |
32347 | arg3 = wxString_in_helper(obj2); | |
32348 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 32349 | temp3 = true; |
d14a1e28 RD |
32350 | } |
32351 | } | |
32352 | if (obj3) { | |
32353 | { | |
32354 | arg4 = &temp4; | |
32355 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32356 | } | |
32357 | } | |
32358 | if (obj4) { | |
32359 | { | |
32360 | arg5 = &temp5; | |
32361 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32362 | } | |
32363 | } | |
994141e6 | 32364 | if (obj5) { |
093d3ff1 | 32365 | { |
32fe5131 | 32366 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
32367 | if (SWIG_arg_fail(6)) SWIG_fail; |
32368 | } | |
994141e6 | 32369 | } |
d14a1e28 RD |
32370 | if (obj6) { |
32371 | { | |
32372 | arg7 = wxString_in_helper(obj6); | |
32373 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 32374 | temp7 = true; |
d14a1e28 RD |
32375 | } |
32376 | } | |
994141e6 | 32377 | if (obj7) { |
093d3ff1 | 32378 | { |
32fe5131 | 32379 | arg8 = static_cast<int >(SWIG_As_int(obj7)); |
093d3ff1 RD |
32380 | if (SWIG_arg_fail(8)) SWIG_fail; |
32381 | } | |
994141e6 | 32382 | } |
d14a1e28 RD |
32383 | if (obj8) { |
32384 | { | |
32385 | arg9 = wxString_in_helper(obj8); | |
32386 | if (arg9 == NULL) SWIG_fail; | |
ae8162c8 | 32387 | temp9 = true; |
d14a1e28 RD |
32388 | } |
32389 | } | |
32390 | { | |
e3b71cb8 | 32391 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32393 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
32394 | ||
32395 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32396 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32397 | } |
15afbcd0 | 32398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
32399 | { |
32400 | if (temp3) | |
32401 | delete arg3; | |
32402 | } | |
32403 | { | |
32404 | if (temp7) | |
32405 | delete arg7; | |
32406 | } | |
32407 | { | |
32408 | if (temp9) | |
32409 | delete arg9; | |
32410 | } | |
32411 | return resultobj; | |
32412 | fail: | |
32413 | { | |
32414 | if (temp3) | |
32415 | delete arg3; | |
32416 | } | |
32417 | { | |
32418 | if (temp7) | |
32419 | delete arg7; | |
32420 | } | |
32421 | { | |
32422 | if (temp9) | |
32423 | delete arg9; | |
32424 | } | |
32425 | return NULL; | |
32426 | } | |
32427 | ||
32428 | ||
c32bde28 | 32429 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32430 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32431 | wxGenericDirCtrl *result; |
32432 | char *kwnames[] = { | |
32433 | NULL | |
32434 | }; | |
32435 | ||
32436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
32437 | { | |
e3b71cb8 | 32438 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32440 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
32441 | ||
32442 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 32443 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 32444 | } |
15afbcd0 | 32445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
32446 | return resultobj; |
32447 | fail: | |
32448 | return NULL; | |
32449 | } | |
32450 | ||
32451 | ||
c32bde28 | 32452 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32453 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32454 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32455 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 32456 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
32457 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
32458 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32459 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
32460 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
32461 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
32462 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
32463 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
32464 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
32465 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32466 | int arg9 = (int) 0 ; | |
b2dc1044 | 32467 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
32468 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
32469 | bool result; | |
ae8162c8 | 32470 | bool temp4 = false ; |
d14a1e28 RD |
32471 | wxPoint temp5 ; |
32472 | wxSize temp6 ; | |
ae8162c8 RD |
32473 | bool temp8 = false ; |
32474 | bool temp10 = false ; | |
d14a1e28 RD |
32475 | PyObject * obj0 = 0 ; |
32476 | PyObject * obj1 = 0 ; | |
994141e6 | 32477 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32478 | PyObject * obj3 = 0 ; |
32479 | PyObject * obj4 = 0 ; | |
32480 | PyObject * obj5 = 0 ; | |
994141e6 | 32481 | PyObject * obj6 = 0 ; |
d14a1e28 | 32482 | PyObject * obj7 = 0 ; |
994141e6 | 32483 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
32484 | PyObject * obj9 = 0 ; |
32485 | char *kwnames[] = { | |
32486 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
32487 | }; | |
32488 | ||
994141e6 | 32489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
093d3ff1 RD |
32490 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32491 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32492 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
32493 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 32494 | if (obj2) { |
093d3ff1 | 32495 | { |
32fe5131 | 32496 | arg3 = static_cast<int const >(SWIG_As_int(obj2)); |
093d3ff1 RD |
32497 | if (SWIG_arg_fail(3)) SWIG_fail; |
32498 | } | |
994141e6 | 32499 | } |
d14a1e28 RD |
32500 | if (obj3) { |
32501 | { | |
32502 | arg4 = wxString_in_helper(obj3); | |
32503 | if (arg4 == NULL) SWIG_fail; | |
ae8162c8 | 32504 | temp4 = true; |
d14a1e28 RD |
32505 | } |
32506 | } | |
32507 | if (obj4) { | |
32508 | { | |
32509 | arg5 = &temp5; | |
32510 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
32511 | } | |
32512 | } | |
32513 | if (obj5) { | |
32514 | { | |
32515 | arg6 = &temp6; | |
32516 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
32517 | } | |
32518 | } | |
994141e6 | 32519 | if (obj6) { |
093d3ff1 | 32520 | { |
32fe5131 | 32521 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
093d3ff1 RD |
32522 | if (SWIG_arg_fail(7)) SWIG_fail; |
32523 | } | |
994141e6 | 32524 | } |
d14a1e28 RD |
32525 | if (obj7) { |
32526 | { | |
32527 | arg8 = wxString_in_helper(obj7); | |
32528 | if (arg8 == NULL) SWIG_fail; | |
ae8162c8 | 32529 | temp8 = true; |
d14a1e28 RD |
32530 | } |
32531 | } | |
994141e6 | 32532 | if (obj8) { |
093d3ff1 | 32533 | { |
32fe5131 | 32534 | arg9 = static_cast<int >(SWIG_As_int(obj8)); |
093d3ff1 RD |
32535 | if (SWIG_arg_fail(9)) SWIG_fail; |
32536 | } | |
994141e6 | 32537 | } |
d14a1e28 RD |
32538 | if (obj9) { |
32539 | { | |
32540 | arg10 = wxString_in_helper(obj9); | |
32541 | if (arg10 == NULL) SWIG_fail; | |
ae8162c8 | 32542 | temp10 = true; |
d14a1e28 RD |
32543 | } |
32544 | } | |
32545 | { | |
32546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32547 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
32548 | ||
32549 | wxPyEndAllowThreads(__tstate); | |
32550 | if (PyErr_Occurred()) SWIG_fail; | |
32551 | } | |
4f89f6a3 RD |
32552 | { |
32553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32554 | } | |
d14a1e28 RD |
32555 | { |
32556 | if (temp4) | |
32557 | delete arg4; | |
32558 | } | |
32559 | { | |
32560 | if (temp8) | |
32561 | delete arg8; | |
32562 | } | |
32563 | { | |
32564 | if (temp10) | |
32565 | delete arg10; | |
32566 | } | |
32567 | return resultobj; | |
32568 | fail: | |
32569 | { | |
32570 | if (temp4) | |
32571 | delete arg4; | |
32572 | } | |
32573 | { | |
32574 | if (temp8) | |
32575 | delete arg8; | |
32576 | } | |
32577 | { | |
32578 | if (temp10) | |
32579 | delete arg10; | |
32580 | } | |
32581 | return NULL; | |
32582 | } | |
32583 | ||
32584 | ||
c32bde28 | 32585 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32586 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32587 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32588 | wxString *arg2 = 0 ; | |
32589 | bool result; | |
ae8162c8 | 32590 | bool temp2 = false ; |
d14a1e28 RD |
32591 | PyObject * obj0 = 0 ; |
32592 | PyObject * obj1 = 0 ; | |
32593 | char *kwnames[] = { | |
32594 | (char *) "self",(char *) "path", NULL | |
32595 | }; | |
32596 | ||
32597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32598 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32599 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32600 | { |
32601 | arg2 = wxString_in_helper(obj1); | |
32602 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32603 | temp2 = true; |
d14a1e28 RD |
32604 | } |
32605 | { | |
32606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32607 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
32608 | ||
32609 | wxPyEndAllowThreads(__tstate); | |
32610 | if (PyErr_Occurred()) SWIG_fail; | |
32611 | } | |
4f89f6a3 RD |
32612 | { |
32613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32614 | } | |
d14a1e28 RD |
32615 | { |
32616 | if (temp2) | |
32617 | delete arg2; | |
32618 | } | |
32619 | return resultobj; | |
32620 | fail: | |
32621 | { | |
32622 | if (temp2) | |
32623 | delete arg2; | |
32624 | } | |
32625 | return NULL; | |
32626 | } | |
32627 | ||
32628 | ||
c32bde28 | 32629 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32630 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32631 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32632 | wxString result; | |
32633 | PyObject * obj0 = 0 ; | |
32634 | char *kwnames[] = { | |
32635 | (char *) "self", NULL | |
32636 | }; | |
32637 | ||
32638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32639 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32640 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32641 | { |
32642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32643 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
32644 | ||
32645 | wxPyEndAllowThreads(__tstate); | |
32646 | if (PyErr_Occurred()) SWIG_fail; | |
32647 | } | |
32648 | { | |
32649 | #if wxUSE_UNICODE | |
32650 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32651 | #else | |
32652 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32653 | #endif | |
32654 | } | |
32655 | return resultobj; | |
32656 | fail: | |
32657 | return NULL; | |
32658 | } | |
32659 | ||
32660 | ||
c32bde28 | 32661 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32662 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32663 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32664 | wxString *arg2 = 0 ; | |
ae8162c8 | 32665 | bool temp2 = false ; |
d14a1e28 RD |
32666 | PyObject * obj0 = 0 ; |
32667 | PyObject * obj1 = 0 ; | |
32668 | char *kwnames[] = { | |
32669 | (char *) "self",(char *) "path", NULL | |
32670 | }; | |
32671 | ||
32672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32673 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32674 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32675 | { |
32676 | arg2 = wxString_in_helper(obj1); | |
32677 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32678 | temp2 = true; |
d14a1e28 RD |
32679 | } |
32680 | { | |
32681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32682 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
32683 | ||
32684 | wxPyEndAllowThreads(__tstate); | |
32685 | if (PyErr_Occurred()) SWIG_fail; | |
32686 | } | |
32687 | Py_INCREF(Py_None); resultobj = Py_None; | |
32688 | { | |
32689 | if (temp2) | |
32690 | delete arg2; | |
32691 | } | |
32692 | return resultobj; | |
32693 | fail: | |
32694 | { | |
32695 | if (temp2) | |
32696 | delete arg2; | |
32697 | } | |
32698 | return NULL; | |
32699 | } | |
32700 | ||
32701 | ||
c32bde28 | 32702 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32703 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32704 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32705 | wxString result; | |
32706 | PyObject * obj0 = 0 ; | |
32707 | char *kwnames[] = { | |
32708 | (char *) "self", NULL | |
32709 | }; | |
32710 | ||
32711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32712 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32713 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32714 | { |
32715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32716 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
32717 | ||
32718 | wxPyEndAllowThreads(__tstate); | |
32719 | if (PyErr_Occurred()) SWIG_fail; | |
32720 | } | |
32721 | { | |
32722 | #if wxUSE_UNICODE | |
32723 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32724 | #else | |
32725 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32726 | #endif | |
32727 | } | |
32728 | return resultobj; | |
32729 | fail: | |
32730 | return NULL; | |
32731 | } | |
32732 | ||
32733 | ||
c32bde28 | 32734 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32735 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32736 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32737 | wxString result; | |
32738 | PyObject * obj0 = 0 ; | |
32739 | char *kwnames[] = { | |
32740 | (char *) "self", NULL | |
32741 | }; | |
32742 | ||
32743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32744 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32745 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32746 | { |
32747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32748 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
32749 | ||
32750 | wxPyEndAllowThreads(__tstate); | |
32751 | if (PyErr_Occurred()) SWIG_fail; | |
32752 | } | |
32753 | { | |
32754 | #if wxUSE_UNICODE | |
32755 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32756 | #else | |
32757 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32758 | #endif | |
32759 | } | |
32760 | return resultobj; | |
32761 | fail: | |
32762 | return NULL; | |
32763 | } | |
32764 | ||
32765 | ||
c32bde28 | 32766 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32767 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32768 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32769 | wxString *arg2 = 0 ; | |
ae8162c8 | 32770 | bool temp2 = false ; |
d14a1e28 RD |
32771 | PyObject * obj0 = 0 ; |
32772 | PyObject * obj1 = 0 ; | |
32773 | char *kwnames[] = { | |
32774 | (char *) "self",(char *) "path", NULL | |
32775 | }; | |
32776 | ||
32777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32778 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32779 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32780 | { |
32781 | arg2 = wxString_in_helper(obj1); | |
32782 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32783 | temp2 = true; |
d14a1e28 RD |
32784 | } |
32785 | { | |
32786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32787 | (arg1)->SetPath((wxString const &)*arg2); | |
32788 | ||
32789 | wxPyEndAllowThreads(__tstate); | |
32790 | if (PyErr_Occurred()) SWIG_fail; | |
32791 | } | |
32792 | Py_INCREF(Py_None); resultobj = Py_None; | |
32793 | { | |
32794 | if (temp2) | |
32795 | delete arg2; | |
32796 | } | |
32797 | return resultobj; | |
32798 | fail: | |
32799 | { | |
32800 | if (temp2) | |
32801 | delete arg2; | |
32802 | } | |
32803 | return NULL; | |
32804 | } | |
32805 | ||
32806 | ||
c32bde28 | 32807 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32808 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32809 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32810 | bool arg2 ; | |
32811 | PyObject * obj0 = 0 ; | |
32812 | PyObject * obj1 = 0 ; | |
32813 | char *kwnames[] = { | |
32814 | (char *) "self",(char *) "show", NULL | |
32815 | }; | |
32816 | ||
32817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32818 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32819 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32820 | { | |
32fe5131 | 32821 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
32822 | if (SWIG_arg_fail(2)) SWIG_fail; |
32823 | } | |
d14a1e28 RD |
32824 | { |
32825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32826 | (arg1)->ShowHidden(arg2); | |
32827 | ||
32828 | wxPyEndAllowThreads(__tstate); | |
32829 | if (PyErr_Occurred()) SWIG_fail; | |
32830 | } | |
32831 | Py_INCREF(Py_None); resultobj = Py_None; | |
32832 | return resultobj; | |
32833 | fail: | |
32834 | return NULL; | |
32835 | } | |
32836 | ||
32837 | ||
c32bde28 | 32838 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32839 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32840 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32841 | bool result; | |
32842 | PyObject * obj0 = 0 ; | |
32843 | char *kwnames[] = { | |
32844 | (char *) "self", NULL | |
32845 | }; | |
32846 | ||
32847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32850 | { |
32851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32852 | result = (bool)(arg1)->GetShowHidden(); | |
32853 | ||
32854 | wxPyEndAllowThreads(__tstate); | |
32855 | if (PyErr_Occurred()) SWIG_fail; | |
32856 | } | |
4f89f6a3 RD |
32857 | { |
32858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32859 | } | |
d14a1e28 RD |
32860 | return resultobj; |
32861 | fail: | |
32862 | return NULL; | |
32863 | } | |
32864 | ||
32865 | ||
c32bde28 | 32866 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32867 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32868 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32869 | wxString result; | |
32870 | PyObject * obj0 = 0 ; | |
32871 | char *kwnames[] = { | |
32872 | (char *) "self", NULL | |
32873 | }; | |
32874 | ||
32875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32876 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32877 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32878 | { |
32879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32880 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
32881 | ||
32882 | wxPyEndAllowThreads(__tstate); | |
32883 | if (PyErr_Occurred()) SWIG_fail; | |
32884 | } | |
32885 | { | |
32886 | #if wxUSE_UNICODE | |
32887 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32888 | #else | |
32889 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32890 | #endif | |
32891 | } | |
32892 | return resultobj; | |
32893 | fail: | |
32894 | return NULL; | |
32895 | } | |
32896 | ||
32897 | ||
c32bde28 | 32898 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32899 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32900 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32901 | wxString *arg2 = 0 ; | |
ae8162c8 | 32902 | bool temp2 = false ; |
d14a1e28 RD |
32903 | PyObject * obj0 = 0 ; |
32904 | PyObject * obj1 = 0 ; | |
32905 | char *kwnames[] = { | |
32906 | (char *) "self",(char *) "filter", NULL | |
32907 | }; | |
32908 | ||
32909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
32910 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32911 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32912 | { |
32913 | arg2 = wxString_in_helper(obj1); | |
32914 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 32915 | temp2 = true; |
d14a1e28 RD |
32916 | } |
32917 | { | |
32918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32919 | (arg1)->SetFilter((wxString const &)*arg2); | |
32920 | ||
32921 | wxPyEndAllowThreads(__tstate); | |
32922 | if (PyErr_Occurred()) SWIG_fail; | |
32923 | } | |
32924 | Py_INCREF(Py_None); resultobj = Py_None; | |
32925 | { | |
32926 | if (temp2) | |
32927 | delete arg2; | |
32928 | } | |
32929 | return resultobj; | |
32930 | fail: | |
32931 | { | |
32932 | if (temp2) | |
32933 | delete arg2; | |
32934 | } | |
32935 | return NULL; | |
32936 | } | |
32937 | ||
32938 | ||
c32bde28 | 32939 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32940 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32941 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32942 | int result; | |
32943 | PyObject * obj0 = 0 ; | |
32944 | char *kwnames[] = { | |
32945 | (char *) "self", NULL | |
32946 | }; | |
32947 | ||
32948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
32949 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32950 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
32951 | { |
32952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32953 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
32954 | ||
32955 | wxPyEndAllowThreads(__tstate); | |
32956 | if (PyErr_Occurred()) SWIG_fail; | |
32957 | } | |
093d3ff1 | 32958 | { |
32fe5131 | 32959 | resultobj = SWIG_From_int(static_cast<int >(result)); |
093d3ff1 | 32960 | } |
d14a1e28 RD |
32961 | return resultobj; |
32962 | fail: | |
32963 | return NULL; | |
32964 | } | |
32965 | ||
32966 | ||
c32bde28 | 32967 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32968 | PyObject *resultobj = NULL; |
d14a1e28 RD |
32969 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
32970 | int arg2 ; | |
32971 | PyObject * obj0 = 0 ; | |
994141e6 | 32972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32973 | char *kwnames[] = { |
32974 | (char *) "self",(char *) "n", NULL | |
32975 | }; | |
32976 | ||
994141e6 | 32977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
32978 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
32979 | if (SWIG_arg_fail(1)) SWIG_fail; | |
32980 | { | |
32fe5131 | 32981 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
32982 | if (SWIG_arg_fail(2)) SWIG_fail; |
32983 | } | |
d14a1e28 RD |
32984 | { |
32985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32986 | (arg1)->SetFilterIndex(arg2); | |
32987 | ||
32988 | wxPyEndAllowThreads(__tstate); | |
32989 | if (PyErr_Occurred()) SWIG_fail; | |
32990 | } | |
32991 | Py_INCREF(Py_None); resultobj = Py_None; | |
32992 | return resultobj; | |
32993 | fail: | |
32994 | return NULL; | |
32995 | } | |
32996 | ||
32997 | ||
c32bde28 | 32998 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 32999 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33000 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
33001 | wxTreeItemId result; | |
33002 | PyObject * obj0 = 0 ; | |
33003 | char *kwnames[] = { | |
33004 | (char *) "self", NULL | |
33005 | }; | |
33006 | ||
33007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33008 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
33009 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33010 | { |
33011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33012 | result = (arg1)->GetRootId(); | |
33013 | ||
33014 | wxPyEndAllowThreads(__tstate); | |
33015 | if (PyErr_Occurred()) SWIG_fail; | |
33016 | } | |
33017 | { | |
33018 | wxTreeItemId * resultptr; | |
32fe5131 | 33019 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 33020 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
33021 | } |
33022 | return resultobj; | |
33023 | fail: | |
33024 | return NULL; | |
33025 | } | |
33026 | ||
33027 | ||
c32bde28 | 33028 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33029 | PyObject *resultobj = NULL; |
d14a1e28 | 33030 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
b2dc1044 | 33031 | wxPyTreeCtrl *result; |
d14a1e28 RD |
33032 | PyObject * obj0 = 0 ; |
33033 | char *kwnames[] = { | |
33034 | (char *) "self", NULL | |
33035 | }; | |
33036 | ||
33037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33038 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
33039 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33040 | { |
33041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 33042 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
33043 | |
33044 | wxPyEndAllowThreads(__tstate); | |
33045 | if (PyErr_Occurred()) SWIG_fail; | |
33046 | } | |
33047 | { | |
412d302d | 33048 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
33049 | } |
33050 | return resultobj; | |
33051 | fail: | |
33052 | return NULL; | |
33053 | } | |
33054 | ||
33055 | ||
c32bde28 | 33056 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33057 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33058 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
33059 | wxDirFilterListCtrl *result; | |
33060 | PyObject * obj0 = 0 ; | |
33061 | char *kwnames[] = { | |
33062 | (char *) "self", NULL | |
33063 | }; | |
33064 | ||
33065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
33067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33068 | { |
33069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33070 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
33071 | ||
33072 | wxPyEndAllowThreads(__tstate); | |
33073 | if (PyErr_Occurred()) SWIG_fail; | |
33074 | } | |
15afbcd0 | 33075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
33076 | return resultobj; |
33077 | fail: | |
33078 | return NULL; | |
33079 | } | |
33080 | ||
33081 | ||
c32bde28 | 33082 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33083 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33084 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
33085 | wxTreeItemId arg2 ; | |
33086 | wxString *arg3 = 0 ; | |
33087 | bool *arg4 = 0 ; | |
33088 | wxTreeItemId result; | |
ae8162c8 | 33089 | bool temp3 = false ; |
d14a1e28 | 33090 | bool temp4 ; |
c32bde28 | 33091 | int res4 = 0 ; |
d14a1e28 RD |
33092 | PyObject * obj0 = 0 ; |
33093 | PyObject * obj1 = 0 ; | |
33094 | PyObject * obj2 = 0 ; | |
33095 | char *kwnames[] = { | |
33096 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
33097 | }; | |
33098 | ||
c32bde28 | 33099 | arg4 = &temp4; res4 = SWIG_NEWOBJ; |
d14a1e28 | 33100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
33101 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
33102 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33103 | { | |
33104 | wxTreeItemId * argp; | |
33105 | SWIG_Python_ConvertPtr(obj1, (void **)&argp, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION); | |
33106 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33107 | if (argp == NULL) { | |
33108 | SWIG_null_ref("wxTreeItemId"); | |
33109 | } | |
33110 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33111 | arg2 = *argp; | |
33112 | } | |
d14a1e28 RD |
33113 | { |
33114 | arg3 = wxString_in_helper(obj2); | |
33115 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 33116 | temp3 = true; |
d14a1e28 RD |
33117 | } |
33118 | { | |
33119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33120 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
33121 | ||
33122 | wxPyEndAllowThreads(__tstate); | |
33123 | if (PyErr_Occurred()) SWIG_fail; | |
33124 | } | |
33125 | { | |
33126 | wxTreeItemId * resultptr; | |
32fe5131 | 33127 | resultptr = new wxTreeItemId(static_cast<wxTreeItemId & >(result)); |
15afbcd0 | 33128 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 | 33129 | } |
c32bde28 RD |
33130 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? |
33131 | SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0))); | |
d14a1e28 RD |
33132 | { |
33133 | if (temp3) | |
33134 | delete arg3; | |
33135 | } | |
33136 | return resultobj; | |
33137 | fail: | |
33138 | { | |
33139 | if (temp3) | |
33140 | delete arg3; | |
33141 | } | |
33142 | return NULL; | |
33143 | } | |
33144 | ||
33145 | ||
c32bde28 | 33146 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33147 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33148 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
33149 | PyObject * obj0 = 0 ; | |
33150 | char *kwnames[] = { | |
33151 | (char *) "self", NULL | |
33152 | }; | |
33153 | ||
33154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33155 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
33156 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33157 | { |
33158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33159 | (arg1)->DoResize(); | |
33160 | ||
33161 | wxPyEndAllowThreads(__tstate); | |
33162 | if (PyErr_Occurred()) SWIG_fail; | |
33163 | } | |
33164 | Py_INCREF(Py_None); resultobj = Py_None; | |
33165 | return resultobj; | |
33166 | fail: | |
33167 | return NULL; | |
33168 | } | |
33169 | ||
33170 | ||
c32bde28 | 33171 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33172 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33173 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
33174 | PyObject * obj0 = 0 ; | |
33175 | char *kwnames[] = { | |
33176 | (char *) "self", NULL | |
33177 | }; | |
33178 | ||
33179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
33180 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
33181 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33182 | { |
33183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33184 | (arg1)->ReCreateTree(); | |
33185 | ||
33186 | wxPyEndAllowThreads(__tstate); | |
33187 | if (PyErr_Occurred()) SWIG_fail; | |
33188 | } | |
33189 | Py_INCREF(Py_None); resultobj = Py_None; | |
33190 | return resultobj; | |
33191 | fail: | |
33192 | return NULL; | |
33193 | } | |
33194 | ||
33195 | ||
c32bde28 | 33196 | static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33197 | PyObject *obj; |
33198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33199 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
33200 | Py_INCREF(obj); | |
33201 | return Py_BuildValue((char *)""); | |
33202 | } | |
c32bde28 | 33203 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33204 | PyObject *resultobj = NULL; |
d14a1e28 | 33205 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; |
e811c8ce | 33206 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
33207 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33208 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33209 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33210 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33211 | long arg5 = (long) 0 ; | |
33212 | wxDirFilterListCtrl *result; | |
33213 | wxPoint temp3 ; | |
33214 | wxSize temp4 ; | |
33215 | PyObject * obj0 = 0 ; | |
994141e6 | 33216 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33217 | PyObject * obj2 = 0 ; |
33218 | PyObject * obj3 = 0 ; | |
994141e6 | 33219 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
33220 | char *kwnames[] = { |
33221 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
33222 | }; | |
33223 | ||
994141e6 | 33224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33225 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); |
33226 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 33227 | if (obj1) { |
093d3ff1 | 33228 | { |
32fe5131 | 33229 | arg2 = static_cast<int const >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33230 | if (SWIG_arg_fail(2)) SWIG_fail; |
33231 | } | |
994141e6 | 33232 | } |
d14a1e28 RD |
33233 | if (obj2) { |
33234 | { | |
33235 | arg3 = &temp3; | |
33236 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33237 | } | |
33238 | } | |
33239 | if (obj3) { | |
33240 | { | |
33241 | arg4 = &temp4; | |
33242 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33243 | } | |
33244 | } | |
994141e6 | 33245 | if (obj4) { |
093d3ff1 | 33246 | { |
32fe5131 | 33247 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
33248 | if (SWIG_arg_fail(5)) SWIG_fail; |
33249 | } | |
994141e6 | 33250 | } |
d14a1e28 | 33251 | { |
e3b71cb8 | 33252 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33254 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
33255 | ||
33256 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33257 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33258 | } |
15afbcd0 | 33259 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
33260 | return resultobj; |
33261 | fail: | |
33262 | return NULL; | |
33263 | } | |
33264 | ||
33265 | ||
c32bde28 | 33266 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33267 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33268 | wxDirFilterListCtrl *result; |
33269 | char *kwnames[] = { | |
33270 | NULL | |
33271 | }; | |
33272 | ||
33273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
33274 | { | |
e3b71cb8 | 33275 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33277 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
33278 | ||
33279 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33280 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33281 | } |
15afbcd0 | 33282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
33283 | return resultobj; |
33284 | fail: | |
33285 | return NULL; | |
33286 | } | |
33287 | ||
33288 | ||
c32bde28 | 33289 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33290 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33291 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; |
33292 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 33293 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
33294 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
33295 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33296 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33297 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33298 | long arg6 = (long) 0 ; | |
33299 | bool result; | |
33300 | wxPoint temp4 ; | |
33301 | wxSize temp5 ; | |
33302 | PyObject * obj0 = 0 ; | |
33303 | PyObject * obj1 = 0 ; | |
994141e6 | 33304 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33305 | PyObject * obj3 = 0 ; |
33306 | PyObject * obj4 = 0 ; | |
994141e6 | 33307 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
33308 | char *kwnames[] = { |
33309 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
33310 | }; | |
33311 | ||
994141e6 | 33312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
33313 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
33314 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33315 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_EXCEPTION | 0); | |
33316 | if (SWIG_arg_fail(2)) SWIG_fail; | |
994141e6 | 33317 | if (obj2) { |
093d3ff1 | 33318 | { |
32fe5131 | 33319 | arg3 = static_cast<int const >(SWIG_As_int(obj2)); |
093d3ff1 RD |
33320 | if (SWIG_arg_fail(3)) SWIG_fail; |
33321 | } | |
994141e6 | 33322 | } |
d14a1e28 RD |
33323 | if (obj3) { |
33324 | { | |
33325 | arg4 = &temp4; | |
33326 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33327 | } | |
33328 | } | |
33329 | if (obj4) { | |
33330 | { | |
33331 | arg5 = &temp5; | |
33332 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33333 | } | |
33334 | } | |
994141e6 | 33335 | if (obj5) { |
093d3ff1 | 33336 | { |
32fe5131 | 33337 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
093d3ff1 RD |
33338 | if (SWIG_arg_fail(6)) SWIG_fail; |
33339 | } | |
994141e6 | 33340 | } |
d14a1e28 RD |
33341 | { |
33342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33343 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
33344 | ||
33345 | wxPyEndAllowThreads(__tstate); | |
33346 | if (PyErr_Occurred()) SWIG_fail; | |
33347 | } | |
4f89f6a3 RD |
33348 | { |
33349 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33350 | } | |
d14a1e28 RD |
33351 | return resultobj; |
33352 | fail: | |
33353 | return NULL; | |
33354 | } | |
33355 | ||
33356 | ||
c32bde28 | 33357 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33358 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33359 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; |
33360 | wxString *arg2 = 0 ; | |
33361 | int arg3 ; | |
ae8162c8 | 33362 | bool temp2 = false ; |
d14a1e28 RD |
33363 | PyObject * obj0 = 0 ; |
33364 | PyObject * obj1 = 0 ; | |
994141e6 | 33365 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33366 | char *kwnames[] = { |
33367 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
33368 | }; | |
33369 | ||
994141e6 | 33370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
33371 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_EXCEPTION | 0); |
33372 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33373 | { |
33374 | arg2 = wxString_in_helper(obj1); | |
33375 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 33376 | temp2 = true; |
d14a1e28 | 33377 | } |
093d3ff1 | 33378 | { |
32fe5131 | 33379 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
33380 | if (SWIG_arg_fail(3)) SWIG_fail; |
33381 | } | |
d14a1e28 RD |
33382 | { |
33383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33384 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
33385 | ||
33386 | wxPyEndAllowThreads(__tstate); | |
33387 | if (PyErr_Occurred()) SWIG_fail; | |
33388 | } | |
33389 | Py_INCREF(Py_None); resultobj = Py_None; | |
33390 | { | |
33391 | if (temp2) | |
33392 | delete arg2; | |
33393 | } | |
33394 | return resultobj; | |
33395 | fail: | |
33396 | { | |
33397 | if (temp2) | |
33398 | delete arg2; | |
33399 | } | |
33400 | return NULL; | |
33401 | } | |
33402 | ||
33403 | ||
c32bde28 | 33404 | static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
33405 | PyObject *obj; |
33406 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33407 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
33408 | Py_INCREF(obj); | |
33409 | return Py_BuildValue((char *)""); | |
33410 | } | |
c32bde28 | 33411 | static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33412 | PyObject *resultobj = NULL; |
d14a1e28 | 33413 | wxWindow *arg1 = (wxWindow *) 0 ; |
248ed943 | 33414 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
33415 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33416 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33417 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33418 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33419 | long arg5 = (long) 0 ; | |
33420 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33421 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33422 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33423 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33424 | wxPyControl *result; | |
33425 | wxPoint temp3 ; | |
33426 | wxSize temp4 ; | |
ae8162c8 | 33427 | bool temp7 = false ; |
d14a1e28 | 33428 | PyObject * obj0 = 0 ; |
994141e6 | 33429 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33430 | PyObject * obj2 = 0 ; |
33431 | PyObject * obj3 = 0 ; | |
994141e6 | 33432 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
33433 | PyObject * obj5 = 0 ; |
33434 | PyObject * obj6 = 0 ; | |
33435 | char *kwnames[] = { | |
33436 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33437 | }; | |
33438 | ||
248ed943 | 33439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
093d3ff1 RD |
33440 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
33441 | if (SWIG_arg_fail(1)) SWIG_fail; | |
248ed943 | 33442 | if (obj1) { |
093d3ff1 | 33443 | { |
32fe5131 | 33444 | arg2 = static_cast<int const >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33445 | if (SWIG_arg_fail(2)) SWIG_fail; |
33446 | } | |
248ed943 | 33447 | } |
d14a1e28 RD |
33448 | if (obj2) { |
33449 | { | |
33450 | arg3 = &temp3; | |
33451 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33452 | } | |
33453 | } | |
33454 | if (obj3) { | |
33455 | { | |
33456 | arg4 = &temp4; | |
33457 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33458 | } | |
33459 | } | |
994141e6 | 33460 | if (obj4) { |
093d3ff1 | 33461 | { |
32fe5131 | 33462 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
33463 | if (SWIG_arg_fail(5)) SWIG_fail; |
33464 | } | |
994141e6 | 33465 | } |
d14a1e28 | 33466 | if (obj5) { |
093d3ff1 RD |
33467 | { |
33468 | SWIG_Python_ConvertPtr(obj5, (void **)&arg6, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
33469 | if (SWIG_arg_fail(6)) SWIG_fail; | |
33470 | if (arg6 == NULL) { | |
33471 | SWIG_null_ref("wxValidator"); | |
33472 | } | |
33473 | if (SWIG_arg_fail(6)) SWIG_fail; | |
d14a1e28 RD |
33474 | } |
33475 | } | |
33476 | if (obj6) { | |
33477 | { | |
33478 | arg7 = wxString_in_helper(obj6); | |
33479 | if (arg7 == NULL) SWIG_fail; | |
ae8162c8 | 33480 | temp7 = true; |
d14a1e28 RD |
33481 | } |
33482 | } | |
33483 | { | |
e3b71cb8 | 33484 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33486 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33487 | ||
33488 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33489 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33490 | } |
15afbcd0 | 33491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
33492 | { |
33493 | if (temp7) | |
33494 | delete arg7; | |
33495 | } | |
33496 | return resultobj; | |
33497 | fail: | |
33498 | { | |
33499 | if (temp7) | |
33500 | delete arg7; | |
33501 | } | |
33502 | return NULL; | |
33503 | } | |
33504 | ||
33505 | ||
c32bde28 | 33506 | static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33507 | PyObject *resultobj = NULL; |
1cb4a8aa RD |
33508 | wxPyControl *result; |
33509 | char *kwnames[] = { | |
33510 | NULL | |
33511 | }; | |
33512 | ||
33513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
33514 | { | |
e3b71cb8 | 33515 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
33516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33517 | result = (wxPyControl *)new wxPyControl(); | |
33518 | ||
33519 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33520 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
33521 | } |
33522 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
33523 | return resultobj; | |
33524 | fail: | |
33525 | return NULL; | |
33526 | } | |
33527 | ||
33528 | ||
c32bde28 | 33529 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33530 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33531 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33532 | PyObject *arg2 = (PyObject *) 0 ; | |
33533 | PyObject *arg3 = (PyObject *) 0 ; | |
33534 | PyObject * obj0 = 0 ; | |
33535 | PyObject * obj1 = 0 ; | |
33536 | PyObject * obj2 = 0 ; | |
33537 | char *kwnames[] = { | |
33538 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
33539 | }; | |
33540 | ||
33541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
33542 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33543 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33544 | arg2 = obj1; |
33545 | arg3 = obj2; | |
33546 | { | |
33547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33548 | (arg1)->_setCallbackInfo(arg2,arg3); | |
33549 | ||
33550 | wxPyEndAllowThreads(__tstate); | |
33551 | if (PyErr_Occurred()) SWIG_fail; | |
33552 | } | |
33553 | Py_INCREF(Py_None); resultobj = Py_None; | |
33554 | return resultobj; | |
33555 | fail: | |
33556 | return NULL; | |
33557 | } | |
33558 | ||
33559 | ||
c32bde28 | 33560 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33561 | PyObject *resultobj = NULL; |
db3e571a RD |
33562 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33563 | wxSize *arg2 = 0 ; | |
33564 | wxSize temp2 ; | |
33565 | PyObject * obj0 = 0 ; | |
33566 | PyObject * obj1 = 0 ; | |
33567 | char *kwnames[] = { | |
33568 | (char *) "self",(char *) "size", NULL | |
33569 | }; | |
33570 | ||
33571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
33572 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33573 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db3e571a RD |
33574 | { |
33575 | arg2 = &temp2; | |
33576 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
33577 | } | |
33578 | { | |
33579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33580 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
33581 | ||
33582 | wxPyEndAllowThreads(__tstate); | |
33583 | if (PyErr_Occurred()) SWIG_fail; | |
33584 | } | |
33585 | Py_INCREF(Py_None); resultobj = Py_None; | |
33586 | return resultobj; | |
33587 | fail: | |
33588 | return NULL; | |
33589 | } | |
33590 | ||
33591 | ||
976dbff5 | 33592 | static PyObject *_wrap_PyControl_DoEraseBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33593 | PyObject *resultobj = NULL; |
976dbff5 RD |
33594 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33595 | wxDC *arg2 = (wxDC *) 0 ; | |
33596 | bool result; | |
33597 | PyObject * obj0 = 0 ; | |
33598 | PyObject * obj1 = 0 ; | |
33599 | char *kwnames[] = { | |
33600 | (char *) "self",(char *) "dc", NULL | |
33601 | }; | |
33602 | ||
33603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) goto fail; | |
33604 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); | |
33605 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33606 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
33607 | if (SWIG_arg_fail(2)) SWIG_fail; | |
33608 | { | |
33609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33610 | result = (bool)(arg1)->DoEraseBackground(arg2); | |
33611 | ||
33612 | wxPyEndAllowThreads(__tstate); | |
33613 | if (PyErr_Occurred()) SWIG_fail; | |
33614 | } | |
33615 | { | |
33616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33617 | } | |
33618 | return resultobj; | |
33619 | fail: | |
33620 | return NULL; | |
33621 | } | |
33622 | ||
33623 | ||
c26d9ab4 | 33624 | static PyObject *_wrap_PyControl_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33625 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33626 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33627 | int arg2 ; | |
33628 | int arg3 ; | |
33629 | int arg4 ; | |
33630 | int arg5 ; | |
33631 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33632 | PyObject * obj1 = 0 ; |
33633 | PyObject * obj2 = 0 ; | |
33634 | PyObject * obj3 = 0 ; | |
33635 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33636 | char *kwnames[] = { |
33637 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
33638 | }; | |
33639 | ||
c26d9ab4 | 33640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
33641 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33642 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33643 | { | |
32fe5131 | 33644 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33645 | if (SWIG_arg_fail(2)) SWIG_fail; |
33646 | } | |
33647 | { | |
32fe5131 | 33648 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
33649 | if (SWIG_arg_fail(3)) SWIG_fail; |
33650 | } | |
33651 | { | |
32fe5131 | 33652 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
33653 | if (SWIG_arg_fail(4)) SWIG_fail; |
33654 | } | |
33655 | { | |
32fe5131 | 33656 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
33657 | if (SWIG_arg_fail(5)) SWIG_fail; |
33658 | } | |
d14a1e28 RD |
33659 | { |
33660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33661 | (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
33662 | |
33663 | wxPyEndAllowThreads(__tstate); | |
33664 | if (PyErr_Occurred()) SWIG_fail; | |
33665 | } | |
33666 | Py_INCREF(Py_None); resultobj = Py_None; | |
33667 | return resultobj; | |
33668 | fail: | |
33669 | return NULL; | |
33670 | } | |
33671 | ||
33672 | ||
c26d9ab4 | 33673 | static PyObject *_wrap_PyControl_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33674 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33675 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33676 | int arg2 ; | |
33677 | int arg3 ; | |
33678 | int arg4 ; | |
33679 | int arg5 ; | |
33680 | int arg6 = (int) wxSIZE_AUTO ; | |
33681 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33682 | PyObject * obj1 = 0 ; |
33683 | PyObject * obj2 = 0 ; | |
33684 | PyObject * obj3 = 0 ; | |
33685 | PyObject * obj4 = 0 ; | |
33686 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
33687 | char *kwnames[] = { |
33688 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
33689 | }; | |
33690 | ||
c26d9ab4 | 33691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
093d3ff1 RD |
33692 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33693 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33694 | { | |
32fe5131 | 33695 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33696 | if (SWIG_arg_fail(2)) SWIG_fail; |
33697 | } | |
33698 | { | |
32fe5131 | 33699 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
33700 | if (SWIG_arg_fail(3)) SWIG_fail; |
33701 | } | |
33702 | { | |
32fe5131 | 33703 | arg4 = static_cast<int >(SWIG_As_int(obj3)); |
093d3ff1 RD |
33704 | if (SWIG_arg_fail(4)) SWIG_fail; |
33705 | } | |
33706 | { | |
32fe5131 | 33707 | arg5 = static_cast<int >(SWIG_As_int(obj4)); |
093d3ff1 RD |
33708 | if (SWIG_arg_fail(5)) SWIG_fail; |
33709 | } | |
994141e6 | 33710 | if (obj5) { |
093d3ff1 | 33711 | { |
32fe5131 | 33712 | arg6 = static_cast<int >(SWIG_As_int(obj5)); |
093d3ff1 RD |
33713 | if (SWIG_arg_fail(6)) SWIG_fail; |
33714 | } | |
994141e6 | 33715 | } |
d14a1e28 RD |
33716 | { |
33717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33718 | (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
33719 | |
33720 | wxPyEndAllowThreads(__tstate); | |
33721 | if (PyErr_Occurred()) SWIG_fail; | |
33722 | } | |
33723 | Py_INCREF(Py_None); resultobj = Py_None; | |
33724 | return resultobj; | |
33725 | fail: | |
33726 | return NULL; | |
33727 | } | |
33728 | ||
33729 | ||
c26d9ab4 | 33730 | static PyObject *_wrap_PyControl_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33731 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33732 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33733 | int arg2 ; | |
33734 | int arg3 ; | |
33735 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33736 | PyObject * obj1 = 0 ; |
33737 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33738 | char *kwnames[] = { |
33739 | (char *) "self",(char *) "width",(char *) "height", NULL | |
33740 | }; | |
33741 | ||
c26d9ab4 | 33742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
33743 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33744 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33745 | { | |
32fe5131 | 33746 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33747 | if (SWIG_arg_fail(2)) SWIG_fail; |
33748 | } | |
33749 | { | |
32fe5131 | 33750 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
33751 | if (SWIG_arg_fail(3)) SWIG_fail; |
33752 | } | |
d14a1e28 RD |
33753 | { |
33754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33755 | (arg1)->DoSetClientSize(arg2,arg3); |
d14a1e28 RD |
33756 | |
33757 | wxPyEndAllowThreads(__tstate); | |
33758 | if (PyErr_Occurred()) SWIG_fail; | |
33759 | } | |
33760 | Py_INCREF(Py_None); resultobj = Py_None; | |
33761 | return resultobj; | |
33762 | fail: | |
33763 | return NULL; | |
33764 | } | |
33765 | ||
33766 | ||
c26d9ab4 | 33767 | static PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33768 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33769 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33770 | int arg2 ; | |
33771 | int arg3 ; | |
33772 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33773 | PyObject * obj1 = 0 ; |
33774 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33775 | char *kwnames[] = { |
33776 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33777 | }; | |
33778 | ||
c26d9ab4 | 33779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
33780 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33781 | if (SWIG_arg_fail(1)) SWIG_fail; | |
33782 | { | |
32fe5131 | 33783 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
33784 | if (SWIG_arg_fail(2)) SWIG_fail; |
33785 | } | |
33786 | { | |
32fe5131 | 33787 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
093d3ff1 RD |
33788 | if (SWIG_arg_fail(3)) SWIG_fail; |
33789 | } | |
d14a1e28 RD |
33790 | { |
33791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33792 | (arg1)->DoSetVirtualSize(arg2,arg3); |
d14a1e28 RD |
33793 | |
33794 | wxPyEndAllowThreads(__tstate); | |
33795 | if (PyErr_Occurred()) SWIG_fail; | |
33796 | } | |
33797 | Py_INCREF(Py_None); resultobj = Py_None; | |
33798 | return resultobj; | |
33799 | fail: | |
33800 | return NULL; | |
33801 | } | |
33802 | ||
33803 | ||
c26d9ab4 | 33804 | static PyObject *_wrap_PyControl_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33805 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33806 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33807 | int *arg2 = (int *) 0 ; | |
33808 | int *arg3 = (int *) 0 ; | |
33809 | int temp2 ; | |
c32bde28 | 33810 | int res2 = 0 ; |
d14a1e28 | 33811 | int temp3 ; |
c32bde28 | 33812 | int res3 = 0 ; |
d14a1e28 RD |
33813 | PyObject * obj0 = 0 ; |
33814 | char *kwnames[] = { | |
33815 | (char *) "self", NULL | |
33816 | }; | |
33817 | ||
c32bde28 RD |
33818 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
33819 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
c26d9ab4 | 33820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_DoGetSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
33821 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33822 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33823 | { |
33824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33825 | ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3); |
d14a1e28 RD |
33826 | |
33827 | wxPyEndAllowThreads(__tstate); | |
33828 | if (PyErr_Occurred()) SWIG_fail; | |
33829 | } | |
33830 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
33831 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
33832 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
33833 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
33834 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
33835 | return resultobj; |
33836 | fail: | |
33837 | return NULL; | |
33838 | } | |
33839 | ||
33840 | ||
c26d9ab4 | 33841 | static PyObject *_wrap_PyControl_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33842 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33843 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33844 | int *arg2 = (int *) 0 ; | |
33845 | int *arg3 = (int *) 0 ; | |
33846 | int temp2 ; | |
c32bde28 | 33847 | int res2 = 0 ; |
d14a1e28 | 33848 | int temp3 ; |
c32bde28 | 33849 | int res3 = 0 ; |
d14a1e28 RD |
33850 | PyObject * obj0 = 0 ; |
33851 | char *kwnames[] = { | |
33852 | (char *) "self", NULL | |
33853 | }; | |
33854 | ||
c32bde28 RD |
33855 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
33856 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
c26d9ab4 | 33857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_DoGetClientSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
33858 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33859 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33860 | { |
33861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33862 | ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3); |
d14a1e28 RD |
33863 | |
33864 | wxPyEndAllowThreads(__tstate); | |
33865 | if (PyErr_Occurred()) SWIG_fail; | |
33866 | } | |
33867 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
33868 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
33869 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
33870 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
33871 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
33872 | return resultobj; |
33873 | fail: | |
33874 | return NULL; | |
33875 | } | |
33876 | ||
33877 | ||
c26d9ab4 | 33878 | static PyObject *_wrap_PyControl_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33879 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33880 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33881 | int *arg2 = (int *) 0 ; | |
33882 | int *arg3 = (int *) 0 ; | |
33883 | int temp2 ; | |
c32bde28 | 33884 | int res2 = 0 ; |
d14a1e28 | 33885 | int temp3 ; |
c32bde28 | 33886 | int res3 = 0 ; |
d14a1e28 RD |
33887 | PyObject * obj0 = 0 ; |
33888 | char *kwnames[] = { | |
33889 | (char *) "self", NULL | |
33890 | }; | |
33891 | ||
c32bde28 RD |
33892 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
33893 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
c26d9ab4 | 33894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_DoGetPosition",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
33895 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33896 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33897 | { |
33898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33899 | ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3); |
d14a1e28 RD |
33900 | |
33901 | wxPyEndAllowThreads(__tstate); | |
33902 | if (PyErr_Occurred()) SWIG_fail; | |
33903 | } | |
33904 | Py_INCREF(Py_None); resultobj = Py_None; | |
c32bde28 RD |
33905 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
33906 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
33907 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
33908 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d14a1e28 RD |
33909 | return resultobj; |
33910 | fail: | |
33911 | return NULL; | |
33912 | } | |
33913 | ||
33914 | ||
c26d9ab4 | 33915 | static PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33916 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33917 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33918 | wxSize result; | |
33919 | PyObject * obj0 = 0 ; | |
33920 | char *kwnames[] = { | |
33921 | (char *) "self", NULL | |
33922 | }; | |
33923 | ||
c26d9ab4 | 33924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_DoGetVirtualSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
33925 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33926 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33927 | { |
33928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33929 | result = ((wxPyControl const *)arg1)->DoGetVirtualSize(); |
d14a1e28 RD |
33930 | |
33931 | wxPyEndAllowThreads(__tstate); | |
33932 | if (PyErr_Occurred()) SWIG_fail; | |
33933 | } | |
33934 | { | |
33935 | wxSize * resultptr; | |
32fe5131 | 33936 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 33937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33938 | } |
33939 | return resultobj; | |
33940 | fail: | |
33941 | return NULL; | |
33942 | } | |
33943 | ||
33944 | ||
c26d9ab4 | 33945 | static PyObject *_wrap_PyControl_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33946 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33947 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33948 | wxSize result; | |
33949 | PyObject * obj0 = 0 ; | |
33950 | char *kwnames[] = { | |
33951 | (char *) "self", NULL | |
33952 | }; | |
33953 | ||
c26d9ab4 | 33954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_DoGetBestSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
33955 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33956 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33957 | { |
33958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33959 | result = ((wxPyControl const *)arg1)->DoGetBestSize(); |
d14a1e28 RD |
33960 | |
33961 | wxPyEndAllowThreads(__tstate); | |
33962 | if (PyErr_Occurred()) SWIG_fail; | |
33963 | } | |
33964 | { | |
33965 | wxSize * resultptr; | |
32fe5131 | 33966 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 33967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33968 | } |
33969 | return resultobj; | |
33970 | fail: | |
33971 | return NULL; | |
33972 | } | |
33973 | ||
33974 | ||
c26d9ab4 | 33975 | static PyObject *_wrap_PyControl_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 33976 | PyObject *resultobj = NULL; |
d14a1e28 RD |
33977 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
33978 | PyObject * obj0 = 0 ; | |
33979 | char *kwnames[] = { | |
33980 | (char *) "self", NULL | |
33981 | }; | |
33982 | ||
c26d9ab4 | 33983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_InitDialog",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
33984 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
33985 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
33986 | { |
33987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 33988 | (arg1)->InitDialog(); |
d14a1e28 RD |
33989 | |
33990 | wxPyEndAllowThreads(__tstate); | |
33991 | if (PyErr_Occurred()) SWIG_fail; | |
33992 | } | |
33993 | Py_INCREF(Py_None); resultobj = Py_None; | |
33994 | return resultobj; | |
33995 | fail: | |
33996 | return NULL; | |
33997 | } | |
33998 | ||
33999 | ||
c26d9ab4 | 34000 | static PyObject *_wrap_PyControl_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34001 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34002 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34003 | bool result; | |
34004 | PyObject * obj0 = 0 ; | |
34005 | char *kwnames[] = { | |
34006 | (char *) "self", NULL | |
34007 | }; | |
34008 | ||
c26d9ab4 | 34009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_TransferDataToWindow",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
34010 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34011 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34012 | { |
34013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34014 | result = (bool)(arg1)->TransferDataToWindow(); |
d14a1e28 RD |
34015 | |
34016 | wxPyEndAllowThreads(__tstate); | |
34017 | if (PyErr_Occurred()) SWIG_fail; | |
34018 | } | |
4f89f6a3 RD |
34019 | { |
34020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34021 | } | |
d14a1e28 RD |
34022 | return resultobj; |
34023 | fail: | |
34024 | return NULL; | |
34025 | } | |
34026 | ||
34027 | ||
c26d9ab4 | 34028 | static PyObject *_wrap_PyControl_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34029 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34030 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34031 | bool result; | |
34032 | PyObject * obj0 = 0 ; | |
34033 | char *kwnames[] = { | |
34034 | (char *) "self", NULL | |
34035 | }; | |
34036 | ||
c26d9ab4 | 34037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_TransferDataFromWindow",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
34038 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34039 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34040 | { |
34041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34042 | result = (bool)(arg1)->TransferDataFromWindow(); |
d14a1e28 RD |
34043 | |
34044 | wxPyEndAllowThreads(__tstate); | |
34045 | if (PyErr_Occurred()) SWIG_fail; | |
34046 | } | |
4f89f6a3 RD |
34047 | { |
34048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34049 | } | |
d14a1e28 RD |
34050 | return resultobj; |
34051 | fail: | |
34052 | return NULL; | |
34053 | } | |
34054 | ||
34055 | ||
c26d9ab4 | 34056 | static PyObject *_wrap_PyControl_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34057 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34058 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34059 | bool result; | |
34060 | PyObject * obj0 = 0 ; | |
34061 | char *kwnames[] = { | |
34062 | (char *) "self", NULL | |
34063 | }; | |
34064 | ||
c26d9ab4 | 34065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_Validate",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
34066 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34067 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34068 | { |
34069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34070 | result = (bool)(arg1)->Validate(); |
d14a1e28 RD |
34071 | |
34072 | wxPyEndAllowThreads(__tstate); | |
34073 | if (PyErr_Occurred()) SWIG_fail; | |
34074 | } | |
4f89f6a3 RD |
34075 | { |
34076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34077 | } | |
d14a1e28 RD |
34078 | return resultobj; |
34079 | fail: | |
34080 | return NULL; | |
34081 | } | |
34082 | ||
34083 | ||
c26d9ab4 | 34084 | static PyObject *_wrap_PyControl_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34085 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34086 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34087 | bool result; | |
34088 | PyObject * obj0 = 0 ; | |
34089 | char *kwnames[] = { | |
34090 | (char *) "self", NULL | |
34091 | }; | |
34092 | ||
c26d9ab4 | 34093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_AcceptsFocus",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
34094 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34095 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34096 | { |
34097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34098 | result = (bool)((wxPyControl const *)arg1)->AcceptsFocus(); |
d14a1e28 RD |
34099 | |
34100 | wxPyEndAllowThreads(__tstate); | |
34101 | if (PyErr_Occurred()) SWIG_fail; | |
34102 | } | |
4f89f6a3 RD |
34103 | { |
34104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34105 | } | |
d14a1e28 RD |
34106 | return resultobj; |
34107 | fail: | |
34108 | return NULL; | |
34109 | } | |
34110 | ||
34111 | ||
c26d9ab4 | 34112 | static PyObject *_wrap_PyControl_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34113 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34114 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34115 | bool result; | |
34116 | PyObject * obj0 = 0 ; | |
34117 | char *kwnames[] = { | |
34118 | (char *) "self", NULL | |
34119 | }; | |
34120 | ||
c26d9ab4 | 34121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
34122 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34123 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34124 | { |
34125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34126 | result = (bool)((wxPyControl const *)arg1)->AcceptsFocusFromKeyboard(); |
d14a1e28 RD |
34127 | |
34128 | wxPyEndAllowThreads(__tstate); | |
34129 | if (PyErr_Occurred()) SWIG_fail; | |
34130 | } | |
4f89f6a3 RD |
34131 | { |
34132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34133 | } | |
d14a1e28 RD |
34134 | return resultobj; |
34135 | fail: | |
34136 | return NULL; | |
34137 | } | |
34138 | ||
34139 | ||
c26d9ab4 | 34140 | static PyObject *_wrap_PyControl_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34141 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34142 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34143 | wxSize result; | |
34144 | PyObject * obj0 = 0 ; | |
34145 | char *kwnames[] = { | |
34146 | (char *) "self", NULL | |
34147 | }; | |
34148 | ||
c26d9ab4 | 34149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_GetMaxSize",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
34150 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34152 | { |
34153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34154 | result = ((wxPyControl const *)arg1)->GetMaxSize(); |
d14a1e28 RD |
34155 | |
34156 | wxPyEndAllowThreads(__tstate); | |
34157 | if (PyErr_Occurred()) SWIG_fail; | |
34158 | } | |
34159 | { | |
34160 | wxSize * resultptr; | |
32fe5131 | 34161 | resultptr = new wxSize(static_cast<wxSize & >(result)); |
15afbcd0 | 34162 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34163 | } |
34164 | return resultobj; | |
34165 | fail: | |
34166 | return NULL; | |
34167 | } | |
34168 | ||
34169 | ||
c26d9ab4 | 34170 | static PyObject *_wrap_PyControl_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34171 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34172 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34173 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34174 | PyObject * obj0 = 0 ; | |
34175 | PyObject * obj1 = 0 ; | |
34176 | char *kwnames[] = { | |
34177 | (char *) "self",(char *) "child", NULL | |
34178 | }; | |
34179 | ||
c26d9ab4 | 34180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_AddChild",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
34181 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34182 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34183 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34184 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34185 | { |
34186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34187 | (arg1)->AddChild(arg2); |
d14a1e28 RD |
34188 | |
34189 | wxPyEndAllowThreads(__tstate); | |
34190 | if (PyErr_Occurred()) SWIG_fail; | |
34191 | } | |
34192 | Py_INCREF(Py_None); resultobj = Py_None; | |
34193 | return resultobj; | |
34194 | fail: | |
34195 | return NULL; | |
34196 | } | |
34197 | ||
34198 | ||
c26d9ab4 | 34199 | static PyObject *_wrap_PyControl_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34200 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34201 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34202 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34203 | PyObject * obj0 = 0 ; | |
34204 | PyObject * obj1 = 0 ; | |
34205 | char *kwnames[] = { | |
34206 | (char *) "self",(char *) "child", NULL | |
34207 | }; | |
34208 | ||
c26d9ab4 | 34209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_RemoveChild",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
34210 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34211 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34212 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34213 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34214 | { |
34215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34216 | (arg1)->RemoveChild(arg2); |
d14a1e28 RD |
34217 | |
34218 | wxPyEndAllowThreads(__tstate); | |
34219 | if (PyErr_Occurred()) SWIG_fail; | |
34220 | } | |
34221 | Py_INCREF(Py_None); resultobj = Py_None; | |
34222 | return resultobj; | |
34223 | fail: | |
34224 | return NULL; | |
34225 | } | |
34226 | ||
34227 | ||
c26d9ab4 | 34228 | static PyObject *_wrap_PyControl_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34229 | PyObject *resultobj = NULL; |
1cb4a8aa RD |
34230 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34231 | bool result; | |
34232 | PyObject * obj0 = 0 ; | |
34233 | char *kwnames[] = { | |
34234 | (char *) "self", NULL | |
34235 | }; | |
34236 | ||
c26d9ab4 | 34237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_ShouldInheritColours",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
34238 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34239 | if (SWIG_arg_fail(1)) SWIG_fail; | |
1cb4a8aa RD |
34240 | { |
34241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34242 | result = (bool)((wxPyControl const *)arg1)->ShouldInheritColours(); |
1cb4a8aa RD |
34243 | |
34244 | wxPyEndAllowThreads(__tstate); | |
34245 | if (PyErr_Occurred()) SWIG_fail; | |
34246 | } | |
34247 | { | |
34248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34249 | } | |
34250 | return resultobj; | |
34251 | fail: | |
34252 | return NULL; | |
34253 | } | |
34254 | ||
34255 | ||
c26d9ab4 | 34256 | static PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34257 | PyObject *resultobj = NULL; |
db3e571a RD |
34258 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34259 | wxVisualAttributes result; | |
34260 | PyObject * obj0 = 0 ; | |
34261 | char *kwnames[] = { | |
34262 | (char *) "self", NULL | |
34263 | }; | |
34264 | ||
c26d9ab4 | 34265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_GetDefaultAttributes",kwnames,&obj0)) goto fail; |
093d3ff1 RD |
34266 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34267 | if (SWIG_arg_fail(1)) SWIG_fail; | |
db3e571a RD |
34268 | { |
34269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34270 | result = (arg1)->GetDefaultAttributes(); |
db3e571a RD |
34271 | |
34272 | wxPyEndAllowThreads(__tstate); | |
34273 | if (PyErr_Occurred()) SWIG_fail; | |
34274 | } | |
34275 | { | |
34276 | wxVisualAttributes * resultptr; | |
32fe5131 | 34277 | resultptr = new wxVisualAttributes(static_cast<wxVisualAttributes & >(result)); |
db3e571a RD |
34278 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); |
34279 | } | |
34280 | return resultobj; | |
34281 | fail: | |
34282 | return NULL; | |
34283 | } | |
34284 | ||
34285 | ||
c26d9ab4 | 34286 | static PyObject *_wrap_PyControl_OnInternalIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34287 | PyObject *resultobj = NULL; |
8d38bd1d RD |
34288 | wxPyControl *arg1 = (wxPyControl *) 0 ; |
34289 | PyObject * obj0 = 0 ; | |
34290 | char *kwnames[] = { | |
34291 | (char *) "self", NULL | |
34292 | }; | |
34293 | ||
c26d9ab4 | 34294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_OnInternalIdle",kwnames,&obj0)) goto fail; |
8d38bd1d RD |
34295 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyControl, SWIG_POINTER_EXCEPTION | 0); |
34296 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34297 | { | |
34298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c26d9ab4 | 34299 | (arg1)->OnInternalIdle(); |
8d38bd1d RD |
34300 | |
34301 | wxPyEndAllowThreads(__tstate); | |
34302 | if (PyErr_Occurred()) SWIG_fail; | |
34303 | } | |
34304 | Py_INCREF(Py_None); resultobj = Py_None; | |
34305 | return resultobj; | |
34306 | fail: | |
34307 | return NULL; | |
34308 | } | |
34309 | ||
34310 | ||
c32bde28 | 34311 | static PyObject * PyControl_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34312 | PyObject *obj; |
34313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34314 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
34315 | Py_INCREF(obj); | |
34316 | return Py_BuildValue((char *)""); | |
34317 | } | |
c32bde28 | 34318 | static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34319 | PyObject *resultobj = NULL; |
d14a1e28 | 34320 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; |
e811c8ce | 34321 | int arg2 = (int) 0 ; |
d14a1e28 RD |
34322 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
34323 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
34324 | wxHelpEvent *result; | |
34325 | wxPoint temp3 ; | |
994141e6 RD |
34326 | PyObject * obj0 = 0 ; |
34327 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
34328 | PyObject * obj2 = 0 ; |
34329 | char *kwnames[] = { | |
34330 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
34331 | }; | |
34332 | ||
994141e6 RD |
34333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
34334 | if (obj0) { | |
093d3ff1 | 34335 | { |
32fe5131 | 34336 | arg1 = static_cast<wxEventType >(SWIG_As_int(obj0)); |
093d3ff1 RD |
34337 | if (SWIG_arg_fail(1)) SWIG_fail; |
34338 | } | |
994141e6 RD |
34339 | } |
34340 | if (obj1) { | |
093d3ff1 | 34341 | { |
32fe5131 | 34342 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
34343 | if (SWIG_arg_fail(2)) SWIG_fail; |
34344 | } | |
994141e6 | 34345 | } |
d14a1e28 RD |
34346 | if (obj2) { |
34347 | { | |
34348 | arg3 = &temp3; | |
34349 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34350 | } | |
34351 | } | |
34352 | { | |
34353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34354 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
34355 | ||
34356 | wxPyEndAllowThreads(__tstate); | |
34357 | if (PyErr_Occurred()) SWIG_fail; | |
34358 | } | |
15afbcd0 | 34359 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
34360 | return resultobj; |
34361 | fail: | |
34362 | return NULL; | |
34363 | } | |
34364 | ||
34365 | ||
c32bde28 | 34366 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34367 | PyObject *resultobj = NULL; |
d14a1e28 | 34368 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
15afbcd0 | 34369 | wxPoint result; |
d14a1e28 RD |
34370 | PyObject * obj0 = 0 ; |
34371 | char *kwnames[] = { | |
34372 | (char *) "self", NULL | |
34373 | }; | |
34374 | ||
34375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34376 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
34377 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34378 | { |
34379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 34380 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
34381 | |
34382 | wxPyEndAllowThreads(__tstate); | |
34383 | if (PyErr_Occurred()) SWIG_fail; | |
34384 | } | |
15afbcd0 RD |
34385 | { |
34386 | wxPoint * resultptr; | |
32fe5131 | 34387 | resultptr = new wxPoint(static_cast<wxPoint const & >(result)); |
15afbcd0 RD |
34388 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
34389 | } | |
d14a1e28 RD |
34390 | return resultobj; |
34391 | fail: | |
34392 | return NULL; | |
34393 | } | |
34394 | ||
34395 | ||
c32bde28 | 34396 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34397 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34398 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
34399 | wxPoint *arg2 = 0 ; | |
34400 | wxPoint temp2 ; | |
34401 | PyObject * obj0 = 0 ; | |
34402 | PyObject * obj1 = 0 ; | |
34403 | char *kwnames[] = { | |
34404 | (char *) "self",(char *) "pos", NULL | |
34405 | }; | |
34406 | ||
34407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34408 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
34409 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34410 | { |
34411 | arg2 = &temp2; | |
34412 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34413 | } | |
34414 | { | |
34415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34416 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
34417 | ||
34418 | wxPyEndAllowThreads(__tstate); | |
34419 | if (PyErr_Occurred()) SWIG_fail; | |
34420 | } | |
34421 | Py_INCREF(Py_None); resultobj = Py_None; | |
34422 | return resultobj; | |
34423 | fail: | |
34424 | return NULL; | |
34425 | } | |
34426 | ||
34427 | ||
c32bde28 | 34428 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34429 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34430 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
34431 | wxString *result; | |
34432 | PyObject * obj0 = 0 ; | |
34433 | char *kwnames[] = { | |
34434 | (char *) "self", NULL | |
34435 | }; | |
34436 | ||
34437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34438 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
34439 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34440 | { |
34441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34442 | { | |
34443 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
34444 | result = (wxString *) &_result_ref; | |
34445 | } | |
34446 | ||
34447 | wxPyEndAllowThreads(__tstate); | |
34448 | if (PyErr_Occurred()) SWIG_fail; | |
34449 | } | |
cc6dd355 RD |
34450 | { |
34451 | #if wxUSE_UNICODE | |
34452 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
34453 | #else | |
34454 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
34455 | #endif | |
34456 | } | |
d14a1e28 RD |
34457 | return resultobj; |
34458 | fail: | |
34459 | return NULL; | |
34460 | } | |
34461 | ||
34462 | ||
c32bde28 | 34463 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34464 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34465 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
34466 | wxString *arg2 = 0 ; | |
ae8162c8 | 34467 | bool temp2 = false ; |
d14a1e28 RD |
34468 | PyObject * obj0 = 0 ; |
34469 | PyObject * obj1 = 0 ; | |
34470 | char *kwnames[] = { | |
34471 | (char *) "self",(char *) "link", NULL | |
34472 | }; | |
34473 | ||
34474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34475 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
34476 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34477 | { |
34478 | arg2 = wxString_in_helper(obj1); | |
34479 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34480 | temp2 = true; |
d14a1e28 RD |
34481 | } |
34482 | { | |
34483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34484 | (arg1)->SetLink((wxString const &)*arg2); | |
34485 | ||
34486 | wxPyEndAllowThreads(__tstate); | |
34487 | if (PyErr_Occurred()) SWIG_fail; | |
34488 | } | |
34489 | Py_INCREF(Py_None); resultobj = Py_None; | |
34490 | { | |
34491 | if (temp2) | |
34492 | delete arg2; | |
34493 | } | |
34494 | return resultobj; | |
34495 | fail: | |
34496 | { | |
34497 | if (temp2) | |
34498 | delete arg2; | |
34499 | } | |
34500 | return NULL; | |
34501 | } | |
34502 | ||
34503 | ||
c32bde28 | 34504 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34505 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34506 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
34507 | wxString *result; | |
34508 | PyObject * obj0 = 0 ; | |
34509 | char *kwnames[] = { | |
34510 | (char *) "self", NULL | |
34511 | }; | |
34512 | ||
34513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34514 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
34515 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34516 | { |
34517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34518 | { | |
34519 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
34520 | result = (wxString *) &_result_ref; | |
34521 | } | |
34522 | ||
34523 | wxPyEndAllowThreads(__tstate); | |
34524 | if (PyErr_Occurred()) SWIG_fail; | |
34525 | } | |
cc6dd355 RD |
34526 | { |
34527 | #if wxUSE_UNICODE | |
34528 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
34529 | #else | |
34530 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
34531 | #endif | |
34532 | } | |
d14a1e28 RD |
34533 | return resultobj; |
34534 | fail: | |
34535 | return NULL; | |
34536 | } | |
34537 | ||
34538 | ||
c32bde28 | 34539 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34540 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34541 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; |
34542 | wxString *arg2 = 0 ; | |
ae8162c8 | 34543 | bool temp2 = false ; |
d14a1e28 RD |
34544 | PyObject * obj0 = 0 ; |
34545 | PyObject * obj1 = 0 ; | |
34546 | char *kwnames[] = { | |
34547 | (char *) "self",(char *) "target", NULL | |
34548 | }; | |
34549 | ||
34550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34551 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_EXCEPTION | 0); |
34552 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34553 | { |
34554 | arg2 = wxString_in_helper(obj1); | |
34555 | if (arg2 == NULL) SWIG_fail; | |
ae8162c8 | 34556 | temp2 = true; |
d14a1e28 RD |
34557 | } |
34558 | { | |
34559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34560 | (arg1)->SetTarget((wxString const &)*arg2); | |
34561 | ||
34562 | wxPyEndAllowThreads(__tstate); | |
34563 | if (PyErr_Occurred()) SWIG_fail; | |
34564 | } | |
34565 | Py_INCREF(Py_None); resultobj = Py_None; | |
34566 | { | |
34567 | if (temp2) | |
34568 | delete arg2; | |
34569 | } | |
34570 | return resultobj; | |
34571 | fail: | |
34572 | { | |
34573 | if (temp2) | |
34574 | delete arg2; | |
34575 | } | |
34576 | return NULL; | |
34577 | } | |
34578 | ||
34579 | ||
c32bde28 | 34580 | static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34581 | PyObject *obj; |
34582 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34583 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
34584 | Py_INCREF(obj); | |
34585 | return Py_BuildValue((char *)""); | |
34586 | } | |
c32bde28 | 34587 | static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34588 | PyObject *resultobj = NULL; |
d14a1e28 | 34589 | wxWindow *arg1 = (wxWindow *) NULL ; |
ae8162c8 | 34590 | bool arg2 = (bool) true ; |
d14a1e28 RD |
34591 | wxContextHelp *result; |
34592 | PyObject * obj0 = 0 ; | |
34593 | PyObject * obj1 = 0 ; | |
34594 | char *kwnames[] = { | |
34595 | (char *) "window",(char *) "doNow", NULL | |
34596 | }; | |
34597 | ||
34598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
34599 | if (obj0) { | |
093d3ff1 RD |
34600 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34601 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34602 | } |
34603 | if (obj1) { | |
093d3ff1 | 34604 | { |
32fe5131 | 34605 | arg2 = static_cast<bool >(SWIG_As_bool(obj1)); |
093d3ff1 RD |
34606 | if (SWIG_arg_fail(2)) SWIG_fail; |
34607 | } | |
d14a1e28 RD |
34608 | } |
34609 | { | |
e3b71cb8 | 34610 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
34611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34612 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
34613 | ||
34614 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34615 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 34616 | } |
15afbcd0 | 34617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
34618 | return resultobj; |
34619 | fail: | |
34620 | return NULL; | |
34621 | } | |
34622 | ||
34623 | ||
c32bde28 | 34624 | static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34625 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34626 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; |
34627 | PyObject * obj0 = 0 ; | |
34628 | char *kwnames[] = { | |
34629 | (char *) "self", NULL | |
34630 | }; | |
34631 | ||
34632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
34634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34635 | { |
34636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34637 | delete arg1; | |
34638 | ||
34639 | wxPyEndAllowThreads(__tstate); | |
34640 | if (PyErr_Occurred()) SWIG_fail; | |
34641 | } | |
34642 | Py_INCREF(Py_None); resultobj = Py_None; | |
34643 | return resultobj; | |
34644 | fail: | |
34645 | return NULL; | |
34646 | } | |
34647 | ||
34648 | ||
c32bde28 | 34649 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34650 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34651 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; |
34652 | wxWindow *arg2 = (wxWindow *) NULL ; | |
34653 | bool result; | |
34654 | PyObject * obj0 = 0 ; | |
34655 | PyObject * obj1 = 0 ; | |
34656 | char *kwnames[] = { | |
34657 | (char *) "self",(char *) "window", NULL | |
34658 | }; | |
34659 | ||
34660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34661 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
34662 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 | 34663 | if (obj1) { |
093d3ff1 RD |
34664 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34665 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34666 | } |
34667 | { | |
34668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34669 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
34670 | ||
34671 | wxPyEndAllowThreads(__tstate); | |
34672 | if (PyErr_Occurred()) SWIG_fail; | |
34673 | } | |
4f89f6a3 RD |
34674 | { |
34675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34676 | } | |
d14a1e28 RD |
34677 | return resultobj; |
34678 | fail: | |
34679 | return NULL; | |
34680 | } | |
34681 | ||
34682 | ||
c32bde28 | 34683 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34684 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34685 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; |
34686 | bool result; | |
34687 | PyObject * obj0 = 0 ; | |
34688 | char *kwnames[] = { | |
34689 | (char *) "self", NULL | |
34690 | }; | |
34691 | ||
34692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
34693 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxContextHelp, SWIG_POINTER_EXCEPTION | 0); |
34694 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
34695 | { |
34696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34697 | result = (bool)(arg1)->EndContextHelp(); | |
34698 | ||
34699 | wxPyEndAllowThreads(__tstate); | |
34700 | if (PyErr_Occurred()) SWIG_fail; | |
34701 | } | |
4f89f6a3 RD |
34702 | { |
34703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34704 | } | |
d14a1e28 RD |
34705 | return resultobj; |
34706 | fail: | |
34707 | return NULL; | |
34708 | } | |
34709 | ||
34710 | ||
c32bde28 | 34711 | static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34712 | PyObject *obj; |
34713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34714 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
34715 | Py_INCREF(obj); | |
34716 | return Py_BuildValue((char *)""); | |
34717 | } | |
c32bde28 | 34718 | static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34719 | PyObject *resultobj = NULL; |
d14a1e28 | 34720 | wxWindow *arg1 = (wxWindow *) 0 ; |
e811c8ce | 34721 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
34722 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
34723 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
34724 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
34725 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
34726 | long arg5 = (long) wxBU_AUTODRAW ; | |
34727 | wxContextHelpButton *result; | |
34728 | wxPoint temp3 ; | |
34729 | wxSize temp4 ; | |
34730 | PyObject * obj0 = 0 ; | |
994141e6 | 34731 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34732 | PyObject * obj2 = 0 ; |
34733 | PyObject * obj3 = 0 ; | |
994141e6 | 34734 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
34735 | char *kwnames[] = { |
34736 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
34737 | }; | |
34738 | ||
994141e6 | 34739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
093d3ff1 RD |
34740 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
34741 | if (SWIG_arg_fail(1)) SWIG_fail; | |
994141e6 | 34742 | if (obj1) { |
093d3ff1 | 34743 | { |
32fe5131 | 34744 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
34745 | if (SWIG_arg_fail(2)) SWIG_fail; |
34746 | } | |
994141e6 | 34747 | } |
d14a1e28 RD |
34748 | if (obj2) { |
34749 | { | |
34750 | arg3 = &temp3; | |
34751 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34752 | } | |
34753 | } | |
34754 | if (obj3) { | |
34755 | { | |
34756 | arg4 = &temp4; | |
34757 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
34758 | } | |
34759 | } | |
994141e6 | 34760 | if (obj4) { |
093d3ff1 | 34761 | { |
32fe5131 | 34762 | arg5 = static_cast<long >(SWIG_As_long(obj4)); |
093d3ff1 RD |
34763 | if (SWIG_arg_fail(5)) SWIG_fail; |
34764 | } | |
994141e6 | 34765 | } |
d14a1e28 | 34766 | { |
e3b71cb8 | 34767 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
34768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34769 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
34770 | ||
34771 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 34772 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 34773 | } |
15afbcd0 | 34774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
34775 | return resultobj; |
34776 | fail: | |
34777 | return NULL; | |
34778 | } | |
34779 | ||
34780 | ||
c32bde28 | 34781 | static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
34782 | PyObject *obj; |
34783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34784 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
34785 | Py_INCREF(obj); | |
34786 | return Py_BuildValue((char *)""); | |
34787 | } | |
c32bde28 | 34788 | static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34789 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34790 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
34791 | wxHelpProvider *result; | |
34792 | PyObject * obj0 = 0 ; | |
34793 | char *kwnames[] = { | |
34794 | (char *) "helpProvider", NULL | |
34795 | }; | |
34796 | ||
34797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
7e08d4ef | 34798 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN); |
093d3ff1 | 34799 | if (SWIG_arg_fail(1)) SWIG_fail; |
d14a1e28 RD |
34800 | { |
34801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34802 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
34803 | ||
34804 | wxPyEndAllowThreads(__tstate); | |
34805 | if (PyErr_Occurred()) SWIG_fail; | |
34806 | } | |
7e08d4ef | 34807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 1); |
d14a1e28 RD |
34808 | return resultobj; |
34809 | fail: | |
34810 | return NULL; | |
34811 | } | |
34812 | ||
34813 | ||
c32bde28 | 34814 | static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34815 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34816 | wxHelpProvider *result; |
34817 | char *kwnames[] = { | |
34818 | NULL | |
34819 | }; | |
34820 | ||
34821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
34822 | { | |
34823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34824 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
34825 | ||
34826 | wxPyEndAllowThreads(__tstate); | |
34827 | if (PyErr_Occurred()) SWIG_fail; | |
34828 | } | |
15afbcd0 | 34829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
34830 | return resultobj; |
34831 | fail: | |
34832 | return NULL; | |
34833 | } | |
34834 | ||
34835 | ||
c32bde28 | 34836 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34837 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34838 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
34839 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34840 | wxString result; | |
34841 | PyObject * obj0 = 0 ; | |
34842 | PyObject * obj1 = 0 ; | |
34843 | char *kwnames[] = { | |
34844 | (char *) "self",(char *) "window", NULL | |
34845 | }; | |
34846 | ||
34847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34848 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
34849 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34850 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34851 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34852 | { |
34853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34854 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
34855 | ||
34856 | wxPyEndAllowThreads(__tstate); | |
34857 | if (PyErr_Occurred()) SWIG_fail; | |
34858 | } | |
34859 | { | |
34860 | #if wxUSE_UNICODE | |
34861 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34862 | #else | |
34863 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34864 | #endif | |
34865 | } | |
34866 | return resultobj; | |
34867 | fail: | |
34868 | return NULL; | |
34869 | } | |
34870 | ||
34871 | ||
c32bde28 | 34872 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34873 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34874 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
34875 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34876 | bool result; | |
34877 | PyObject * obj0 = 0 ; | |
34878 | PyObject * obj1 = 0 ; | |
34879 | char *kwnames[] = { | |
34880 | (char *) "self",(char *) "window", NULL | |
34881 | }; | |
34882 | ||
34883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
34884 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
34885 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34886 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34887 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34888 | { |
34889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34890 | result = (bool)(arg1)->ShowHelp(arg2); | |
34891 | ||
34892 | wxPyEndAllowThreads(__tstate); | |
34893 | if (PyErr_Occurred()) SWIG_fail; | |
34894 | } | |
4f89f6a3 RD |
34895 | { |
34896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34897 | } | |
d14a1e28 RD |
34898 | return resultobj; |
34899 | fail: | |
34900 | return NULL; | |
34901 | } | |
34902 | ||
34903 | ||
c32bde28 | 34904 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34905 | PyObject *resultobj = NULL; |
d14a1e28 RD |
34906 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
34907 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34908 | wxString *arg3 = 0 ; | |
ae8162c8 | 34909 | bool temp3 = false ; |
d14a1e28 RD |
34910 | PyObject * obj0 = 0 ; |
34911 | PyObject * obj1 = 0 ; | |
34912 | PyObject * obj2 = 0 ; | |
34913 | char *kwnames[] = { | |
34914 | (char *) "self",(char *) "window",(char *) "text", NULL | |
34915 | }; | |
34916 | ||
34917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
34918 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
34919 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34920 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
34921 | if (SWIG_arg_fail(2)) SWIG_fail; | |
d14a1e28 RD |
34922 | { |
34923 | arg3 = wxString_in_helper(obj2); | |
34924 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34925 | temp3 = true; |
d14a1e28 RD |
34926 | } |
34927 | { | |
34928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34929 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
34930 | ||
34931 | wxPyEndAllowThreads(__tstate); | |
34932 | if (PyErr_Occurred()) SWIG_fail; | |
34933 | } | |
34934 | Py_INCREF(Py_None); resultobj = Py_None; | |
34935 | { | |
34936 | if (temp3) | |
34937 | delete arg3; | |
34938 | } | |
34939 | return resultobj; | |
34940 | fail: | |
34941 | { | |
34942 | if (temp3) | |
34943 | delete arg3; | |
34944 | } | |
34945 | return NULL; | |
34946 | } | |
34947 | ||
34948 | ||
c32bde28 | 34949 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34950 | PyObject *resultobj = NULL; |
d14a1e28 | 34951 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
e811c8ce | 34952 | int arg2 ; |
d14a1e28 | 34953 | wxString *arg3 = 0 ; |
ae8162c8 | 34954 | bool temp3 = false ; |
d14a1e28 | 34955 | PyObject * obj0 = 0 ; |
994141e6 | 34956 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34957 | PyObject * obj2 = 0 ; |
34958 | char *kwnames[] = { | |
34959 | (char *) "self",(char *) "id",(char *) "text", NULL | |
34960 | }; | |
34961 | ||
994141e6 | 34962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
093d3ff1 RD |
34963 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
34964 | if (SWIG_arg_fail(1)) SWIG_fail; | |
34965 | { | |
32fe5131 | 34966 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
093d3ff1 RD |
34967 | if (SWIG_arg_fail(2)) SWIG_fail; |
34968 | } | |
d14a1e28 RD |
34969 | { |
34970 | arg3 = wxString_in_helper(obj2); | |
34971 | if (arg3 == NULL) SWIG_fail; | |
ae8162c8 | 34972 | temp3 = true; |
d14a1e28 RD |
34973 | } |
34974 | { | |
34975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34976 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
34977 | ||
34978 | wxPyEndAllowThreads(__tstate); | |
34979 | if (PyErr_Occurred()) SWIG_fail; | |
34980 | } | |
34981 | Py_INCREF(Py_None); resultobj = Py_None; | |
34982 | { | |
34983 | if (temp3) | |
34984 | delete arg3; | |
34985 | } | |
34986 | return resultobj; | |
34987 | fail: | |
34988 | { | |
34989 | if (temp3) | |
34990 | delete arg3; | |
34991 | } | |
34992 | return NULL; | |
34993 | } | |
34994 | ||
34995 | ||
c32bde28 | 34996 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 34997 | PyObject *resultobj = NULL; |
15afbcd0 RD |
34998 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
34999 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35000 | PyObject * obj0 = 0 ; | |
35001 | PyObject * obj1 = 0 ; | |
35002 | char *kwnames[] = { | |
35003 | (char *) "self",(char *) "window", NULL | |
35004 | }; | |
35005 | ||
35006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35007 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
35008 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35009 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
35010 | if (SWIG_arg_fail(2)) SWIG_fail; | |
15afbcd0 RD |
35011 | { |
35012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35013 | (arg1)->RemoveHelp(arg2); | |
35014 | ||
35015 | wxPyEndAllowThreads(__tstate); | |
35016 | if (PyErr_Occurred()) SWIG_fail; | |
35017 | } | |
35018 | Py_INCREF(Py_None); resultobj = Py_None; | |
35019 | return resultobj; | |
35020 | fail: | |
35021 | return NULL; | |
35022 | } | |
35023 | ||
35024 | ||
c32bde28 | 35025 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35026 | PyObject *resultobj = NULL; |
d14a1e28 RD |
35027 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; |
35028 | PyObject * obj0 = 0 ; | |
35029 | char *kwnames[] = { | |
35030 | (char *) "self", NULL | |
35031 | }; | |
35032 | ||
35033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35034 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_EXCEPTION | 0); |
35035 | if (SWIG_arg_fail(1)) SWIG_fail; | |
d14a1e28 RD |
35036 | { |
35037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35038 | wxHelpProvider_Destroy(arg1); | |
35039 | ||
35040 | wxPyEndAllowThreads(__tstate); | |
35041 | if (PyErr_Occurred()) SWIG_fail; | |
35042 | } | |
35043 | Py_INCREF(Py_None); resultobj = Py_None; | |
35044 | return resultobj; | |
35045 | fail: | |
35046 | return NULL; | |
35047 | } | |
35048 | ||
35049 | ||
c32bde28 | 35050 | static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
35051 | PyObject *obj; |
35052 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35053 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
35054 | Py_INCREF(obj); | |
35055 | return Py_BuildValue((char *)""); | |
35056 | } | |
c32bde28 | 35057 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35058 | PyObject *resultobj = NULL; |
d14a1e28 RD |
35059 | wxSimpleHelpProvider *result; |
35060 | char *kwnames[] = { | |
35061 | NULL | |
35062 | }; | |
35063 | ||
35064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
35065 | { | |
35066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35067 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
35068 | ||
35069 | wxPyEndAllowThreads(__tstate); | |
35070 | if (PyErr_Occurred()) SWIG_fail; | |
35071 | } | |
15afbcd0 | 35072 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
35073 | return resultobj; |
35074 | fail: | |
35075 | return NULL; | |
35076 | } | |
35077 | ||
35078 | ||
c32bde28 | 35079 | static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
35080 | PyObject *obj; |
35081 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35082 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
35083 | Py_INCREF(obj); | |
35084 | return Py_BuildValue((char *)""); | |
35085 | } | |
c32bde28 | 35086 | static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35087 | PyObject *resultobj = NULL; |
e811c8ce RD |
35088 | wxBitmap *arg1 = 0 ; |
35089 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
35090 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
35091 | wxGenericDragImage *result; | |
35092 | PyObject * obj0 = 0 ; | |
35093 | PyObject * obj1 = 0 ; | |
35094 | char *kwnames[] = { | |
35095 | (char *) "image",(char *) "cursor", NULL | |
35096 | }; | |
35097 | ||
35098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35099 | { |
35100 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
35101 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35102 | if (arg1 == NULL) { | |
35103 | SWIG_null_ref("wxBitmap"); | |
35104 | } | |
35105 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35106 | } |
35107 | if (obj1) { | |
093d3ff1 RD |
35108 | { |
35109 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
35110 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35111 | if (arg2 == NULL) { | |
35112 | SWIG_null_ref("wxCursor"); | |
35113 | } | |
35114 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
35115 | } |
35116 | } | |
35117 | { | |
e3b71cb8 | 35118 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
35119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35120 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
35121 | ||
35122 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 35123 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 35124 | } |
15afbcd0 | 35125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
35126 | return resultobj; |
35127 | fail: | |
35128 | return NULL; | |
35129 | } | |
35130 | ||
35131 | ||
c32bde28 | 35132 | static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35133 | PyObject *resultobj = NULL; |
e811c8ce RD |
35134 | wxIcon *arg1 = 0 ; |
35135 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
35136 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
35137 | wxGenericDragImage *result; | |
35138 | PyObject * obj0 = 0 ; | |
35139 | PyObject * obj1 = 0 ; | |
35140 | char *kwnames[] = { | |
35141 | (char *) "image",(char *) "cursor", NULL | |
35142 | }; | |
35143 | ||
35144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35145 | { |
35146 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxIcon, SWIG_POINTER_EXCEPTION | 0); | |
35147 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35148 | if (arg1 == NULL) { | |
35149 | SWIG_null_ref("wxIcon"); | |
35150 | } | |
35151 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35152 | } |
35153 | if (obj1) { | |
093d3ff1 RD |
35154 | { |
35155 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
35156 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35157 | if (arg2 == NULL) { | |
35158 | SWIG_null_ref("wxCursor"); | |
35159 | } | |
35160 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
35161 | } |
35162 | } | |
35163 | { | |
e3b71cb8 | 35164 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
35165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35166 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
35167 | ||
35168 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 35169 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 35170 | } |
15afbcd0 | 35171 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
35172 | return resultobj; |
35173 | fail: | |
35174 | return NULL; | |
35175 | } | |
35176 | ||
35177 | ||
c32bde28 | 35178 | static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35179 | PyObject *resultobj = NULL; |
e811c8ce RD |
35180 | wxString *arg1 = 0 ; |
35181 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
35182 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
35183 | wxGenericDragImage *result; | |
ae8162c8 | 35184 | bool temp1 = false ; |
e811c8ce RD |
35185 | PyObject * obj0 = 0 ; |
35186 | PyObject * obj1 = 0 ; | |
35187 | char *kwnames[] = { | |
35188 | (char *) "str",(char *) "cursor", NULL | |
35189 | }; | |
35190 | ||
35191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
35192 | { | |
35193 | arg1 = wxString_in_helper(obj0); | |
35194 | if (arg1 == NULL) SWIG_fail; | |
ae8162c8 | 35195 | temp1 = true; |
e811c8ce RD |
35196 | } |
35197 | if (obj1) { | |
093d3ff1 RD |
35198 | { |
35199 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxCursor, SWIG_POINTER_EXCEPTION | 0); | |
35200 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35201 | if (arg2 == NULL) { | |
35202 | SWIG_null_ref("wxCursor"); | |
35203 | } | |
35204 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
35205 | } |
35206 | } | |
35207 | { | |
e3b71cb8 | 35208 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
35209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35210 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
35211 | ||
35212 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 35213 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 35214 | } |
15afbcd0 | 35215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
35216 | { |
35217 | if (temp1) | |
35218 | delete arg1; | |
35219 | } | |
35220 | return resultobj; | |
35221 | fail: | |
35222 | { | |
35223 | if (temp1) | |
35224 | delete arg1; | |
35225 | } | |
35226 | return NULL; | |
35227 | } | |
35228 | ||
35229 | ||
c32bde28 | 35230 | static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35231 | PyObject *resultobj = NULL; |
e811c8ce RD |
35232 | wxPyTreeCtrl *arg1 = 0 ; |
35233 | wxTreeItemId *arg2 = 0 ; | |
35234 | wxGenericDragImage *result; | |
35235 | PyObject * obj0 = 0 ; | |
35236 | PyObject * obj1 = 0 ; | |
35237 | char *kwnames[] = { | |
35238 | (char *) "treeCtrl",(char *) "id", NULL | |
35239 | }; | |
35240 | ||
35241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35242 | { |
35243 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_EXCEPTION | 0); | |
35244 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35245 | if (arg1 == NULL) { | |
35246 | SWIG_null_ref("wxPyTreeCtrl"); | |
35247 | } | |
35248 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce | 35249 | } |
093d3ff1 RD |
35250 | { |
35251 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_EXCEPTION | 0); | |
35252 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35253 | if (arg2 == NULL) { | |
35254 | SWIG_null_ref("wxTreeItemId"); | |
35255 | } | |
35256 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
35257 | } |
35258 | { | |
e3b71cb8 | 35259 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
35260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35261 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
35262 | ||
35263 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 35264 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 35265 | } |
15afbcd0 | 35266 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
35267 | return resultobj; |
35268 | fail: | |
35269 | return NULL; | |
35270 | } | |
35271 | ||
35272 | ||
c32bde28 | 35273 | static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35274 | PyObject *resultobj = NULL; |
e811c8ce RD |
35275 | wxPyListCtrl *arg1 = 0 ; |
35276 | long arg2 ; | |
35277 | wxGenericDragImage *result; | |
35278 | PyObject * obj0 = 0 ; | |
994141e6 | 35279 | PyObject * obj1 = 0 ; |
e811c8ce RD |
35280 | char *kwnames[] = { |
35281 | (char *) "listCtrl",(char *) "id", NULL | |
35282 | }; | |
35283 | ||
994141e6 | 35284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
093d3ff1 RD |
35285 | { |
35286 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_EXCEPTION | 0); | |
35287 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35288 | if (arg1 == NULL) { | |
35289 | SWIG_null_ref("wxPyListCtrl"); | |
35290 | } | |
35291 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35292 | } | |
35293 | { | |
32fe5131 | 35294 | arg2 = static_cast<long >(SWIG_As_long(obj1)); |
093d3ff1 | 35295 | if (SWIG_arg_fail(2)) SWIG_fail; |
994141e6 | 35296 | } |
e811c8ce | 35297 | { |
e3b71cb8 | 35298 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
35299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
35300 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
35301 | ||
35302 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 35303 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 35304 | } |
15afbcd0 | 35305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
35306 | return resultobj; |
35307 | fail: | |
35308 | return NULL; | |
35309 | } | |
35310 | ||
35311 | ||
c32bde28 | 35312 | static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35313 | PyObject *resultobj = NULL; |
e811c8ce RD |
35314 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35315 | PyObject * obj0 = 0 ; | |
35316 | char *kwnames[] = { | |
35317 | (char *) "self", NULL | |
35318 | }; | |
35319 | ||
35320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35321 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35322 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35323 | { |
35324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35325 | delete arg1; | |
35326 | ||
35327 | wxPyEndAllowThreads(__tstate); | |
35328 | if (PyErr_Occurred()) SWIG_fail; | |
35329 | } | |
35330 | Py_INCREF(Py_None); resultobj = Py_None; | |
35331 | return resultobj; | |
35332 | fail: | |
35333 | return NULL; | |
35334 | } | |
35335 | ||
35336 | ||
c32bde28 | 35337 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35338 | PyObject *resultobj = NULL; |
e811c8ce RD |
35339 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35340 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
35341 | PyObject * obj0 = 0 ; | |
35342 | PyObject * obj1 = 0 ; | |
35343 | char *kwnames[] = { | |
35344 | (char *) "self",(char *) "bitmap", NULL | |
35345 | }; | |
35346 | ||
35347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35348 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35349 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35350 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0); | |
35351 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
35352 | { |
35353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35354 | (arg1)->SetBackingBitmap(arg2); | |
35355 | ||
35356 | wxPyEndAllowThreads(__tstate); | |
35357 | if (PyErr_Occurred()) SWIG_fail; | |
35358 | } | |
35359 | Py_INCREF(Py_None); resultobj = Py_None; | |
35360 | return resultobj; | |
35361 | fail: | |
35362 | return NULL; | |
35363 | } | |
35364 | ||
35365 | ||
c32bde28 | 35366 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35367 | PyObject *resultobj = NULL; |
e811c8ce RD |
35368 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35369 | wxPoint *arg2 = 0 ; | |
35370 | wxWindow *arg3 = (wxWindow *) 0 ; | |
ae8162c8 | 35371 | bool arg4 = (bool) false ; |
e811c8ce RD |
35372 | wxRect *arg5 = (wxRect *) NULL ; |
35373 | bool result; | |
35374 | wxPoint temp2 ; | |
35375 | PyObject * obj0 = 0 ; | |
35376 | PyObject * obj1 = 0 ; | |
35377 | PyObject * obj2 = 0 ; | |
35378 | PyObject * obj3 = 0 ; | |
35379 | PyObject * obj4 = 0 ; | |
35380 | char *kwnames[] = { | |
35381 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
35382 | }; | |
35383 | ||
35384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
35385 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35386 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35387 | { |
35388 | arg2 = &temp2; | |
35389 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35390 | } | |
093d3ff1 RD |
35391 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
35392 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e811c8ce | 35393 | if (obj3) { |
093d3ff1 | 35394 | { |
32fe5131 | 35395 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
35396 | if (SWIG_arg_fail(4)) SWIG_fail; |
35397 | } | |
e811c8ce RD |
35398 | } |
35399 | if (obj4) { | |
093d3ff1 RD |
35400 | SWIG_Python_ConvertPtr(obj4, (void **)&arg5, SWIGTYPE_p_wxRect, SWIG_POINTER_EXCEPTION | 0); |
35401 | if (SWIG_arg_fail(5)) SWIG_fail; | |
e811c8ce RD |
35402 | } |
35403 | { | |
35404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35405 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
35406 | ||
35407 | wxPyEndAllowThreads(__tstate); | |
35408 | if (PyErr_Occurred()) SWIG_fail; | |
35409 | } | |
4f89f6a3 RD |
35410 | { |
35411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35412 | } | |
e811c8ce RD |
35413 | return resultobj; |
35414 | fail: | |
35415 | return NULL; | |
35416 | } | |
35417 | ||
35418 | ||
c32bde28 | 35419 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35420 | PyObject *resultobj = NULL; |
e811c8ce RD |
35421 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35422 | wxPoint *arg2 = 0 ; | |
35423 | wxWindow *arg3 = (wxWindow *) 0 ; | |
35424 | wxWindow *arg4 = (wxWindow *) 0 ; | |
35425 | bool result; | |
35426 | wxPoint temp2 ; | |
35427 | PyObject * obj0 = 0 ; | |
35428 | PyObject * obj1 = 0 ; | |
35429 | PyObject * obj2 = 0 ; | |
35430 | PyObject * obj3 = 0 ; | |
35431 | char *kwnames[] = { | |
35432 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
35433 | }; | |
35434 | ||
35435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
093d3ff1 RD |
35436 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35437 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35438 | { |
35439 | arg2 = &temp2; | |
35440 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35441 | } | |
093d3ff1 RD |
35442 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); |
35443 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35444 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
35445 | if (SWIG_arg_fail(4)) SWIG_fail; | |
e811c8ce RD |
35446 | { |
35447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35448 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
35449 | ||
35450 | wxPyEndAllowThreads(__tstate); | |
35451 | if (PyErr_Occurred()) SWIG_fail; | |
35452 | } | |
4f89f6a3 RD |
35453 | { |
35454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35455 | } | |
e811c8ce RD |
35456 | return resultobj; |
35457 | fail: | |
35458 | return NULL; | |
35459 | } | |
35460 | ||
35461 | ||
c32bde28 | 35462 | static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35463 | PyObject *resultobj = NULL; |
e811c8ce RD |
35464 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35465 | bool result; | |
35466 | PyObject * obj0 = 0 ; | |
35467 | char *kwnames[] = { | |
35468 | (char *) "self", NULL | |
35469 | }; | |
35470 | ||
35471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35472 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35473 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35474 | { |
35475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35476 | result = (bool)(arg1)->EndDrag(); | |
35477 | ||
35478 | wxPyEndAllowThreads(__tstate); | |
35479 | if (PyErr_Occurred()) SWIG_fail; | |
35480 | } | |
4f89f6a3 RD |
35481 | { |
35482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35483 | } | |
e811c8ce RD |
35484 | return resultobj; |
35485 | fail: | |
35486 | return NULL; | |
35487 | } | |
35488 | ||
35489 | ||
c32bde28 | 35490 | static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35491 | PyObject *resultobj = NULL; |
e811c8ce RD |
35492 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35493 | wxPoint *arg2 = 0 ; | |
35494 | bool result; | |
35495 | wxPoint temp2 ; | |
35496 | PyObject * obj0 = 0 ; | |
35497 | PyObject * obj1 = 0 ; | |
35498 | char *kwnames[] = { | |
35499 | (char *) "self",(char *) "pt", NULL | |
35500 | }; | |
35501 | ||
35502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35503 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35504 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35505 | { |
35506 | arg2 = &temp2; | |
35507 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35508 | } | |
35509 | { | |
35510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35511 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
35512 | ||
35513 | wxPyEndAllowThreads(__tstate); | |
35514 | if (PyErr_Occurred()) SWIG_fail; | |
35515 | } | |
4f89f6a3 RD |
35516 | { |
35517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35518 | } | |
e811c8ce RD |
35519 | return resultobj; |
35520 | fail: | |
35521 | return NULL; | |
35522 | } | |
35523 | ||
35524 | ||
c32bde28 | 35525 | static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35526 | PyObject *resultobj = NULL; |
e811c8ce RD |
35527 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35528 | bool result; | |
35529 | PyObject * obj0 = 0 ; | |
35530 | char *kwnames[] = { | |
35531 | (char *) "self", NULL | |
35532 | }; | |
35533 | ||
35534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35535 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35536 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35537 | { |
35538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35539 | result = (bool)(arg1)->Show(); | |
35540 | ||
35541 | wxPyEndAllowThreads(__tstate); | |
35542 | if (PyErr_Occurred()) SWIG_fail; | |
35543 | } | |
4f89f6a3 RD |
35544 | { |
35545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35546 | } | |
e811c8ce RD |
35547 | return resultobj; |
35548 | fail: | |
35549 | return NULL; | |
35550 | } | |
35551 | ||
35552 | ||
c32bde28 | 35553 | static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35554 | PyObject *resultobj = NULL; |
e811c8ce RD |
35555 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35556 | bool result; | |
35557 | PyObject * obj0 = 0 ; | |
35558 | char *kwnames[] = { | |
35559 | (char *) "self", NULL | |
35560 | }; | |
35561 | ||
35562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
093d3ff1 RD |
35563 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35564 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35565 | { |
35566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35567 | result = (bool)(arg1)->Hide(); | |
35568 | ||
35569 | wxPyEndAllowThreads(__tstate); | |
35570 | if (PyErr_Occurred()) SWIG_fail; | |
35571 | } | |
4f89f6a3 RD |
35572 | { |
35573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35574 | } | |
e811c8ce RD |
35575 | return resultobj; |
35576 | fail: | |
35577 | return NULL; | |
35578 | } | |
35579 | ||
35580 | ||
c32bde28 | 35581 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35582 | PyObject *resultobj = NULL; |
e811c8ce RD |
35583 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35584 | wxPoint *arg2 = 0 ; | |
35585 | wxRect result; | |
35586 | wxPoint temp2 ; | |
35587 | PyObject * obj0 = 0 ; | |
35588 | PyObject * obj1 = 0 ; | |
35589 | char *kwnames[] = { | |
35590 | (char *) "self",(char *) "pos", NULL | |
35591 | }; | |
35592 | ||
35593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
093d3ff1 RD |
35594 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35595 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35596 | { |
35597 | arg2 = &temp2; | |
35598 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35599 | } | |
35600 | { | |
35601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35602 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
35603 | ||
35604 | wxPyEndAllowThreads(__tstate); | |
35605 | if (PyErr_Occurred()) SWIG_fail; | |
35606 | } | |
35607 | { | |
35608 | wxRect * resultptr; | |
32fe5131 | 35609 | resultptr = new wxRect(static_cast<wxRect & >(result)); |
15afbcd0 | 35610 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
35611 | } |
35612 | return resultobj; | |
35613 | fail: | |
35614 | return NULL; | |
35615 | } | |
35616 | ||
35617 | ||
c32bde28 | 35618 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35619 | PyObject *resultobj = NULL; |
e811c8ce RD |
35620 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35621 | wxDC *arg2 = 0 ; | |
35622 | wxPoint *arg3 = 0 ; | |
35623 | bool result; | |
35624 | wxPoint temp3 ; | |
35625 | PyObject * obj0 = 0 ; | |
35626 | PyObject * obj1 = 0 ; | |
35627 | PyObject * obj2 = 0 ; | |
35628 | char *kwnames[] = { | |
35629 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
35630 | }; | |
35631 | ||
35632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
093d3ff1 RD |
35633 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35634 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35635 | { | |
35636 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
35637 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35638 | if (arg2 == NULL) { | |
35639 | SWIG_null_ref("wxDC"); | |
35640 | } | |
35641 | if (SWIG_arg_fail(2)) SWIG_fail; | |
e811c8ce RD |
35642 | } |
35643 | { | |
35644 | arg3 = &temp3; | |
35645 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
35646 | } | |
35647 | { | |
35648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35649 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
35650 | ||
35651 | wxPyEndAllowThreads(__tstate); | |
35652 | if (PyErr_Occurred()) SWIG_fail; | |
35653 | } | |
4f89f6a3 RD |
35654 | { |
35655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35656 | } | |
e811c8ce RD |
35657 | return resultobj; |
35658 | fail: | |
35659 | return NULL; | |
35660 | } | |
35661 | ||
35662 | ||
c32bde28 | 35663 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35664 | PyObject *resultobj = NULL; |
e811c8ce RD |
35665 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35666 | wxDC *arg2 = 0 ; | |
35667 | wxMemoryDC *arg3 = 0 ; | |
35668 | wxRect *arg4 = 0 ; | |
35669 | wxRect *arg5 = 0 ; | |
35670 | bool result; | |
35671 | wxRect temp4 ; | |
35672 | wxRect temp5 ; | |
35673 | PyObject * obj0 = 0 ; | |
35674 | PyObject * obj1 = 0 ; | |
35675 | PyObject * obj2 = 0 ; | |
35676 | PyObject * obj3 = 0 ; | |
35677 | PyObject * obj4 = 0 ; | |
35678 | char *kwnames[] = { | |
35679 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
35680 | }; | |
35681 | ||
35682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
35683 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35684 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35685 | { | |
35686 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0); | |
35687 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35688 | if (arg2 == NULL) { | |
35689 | SWIG_null_ref("wxDC"); | |
35690 | } | |
35691 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35692 | } | |
35693 | { | |
35694 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_EXCEPTION | 0); | |
35695 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35696 | if (arg3 == NULL) { | |
35697 | SWIG_null_ref("wxMemoryDC"); | |
35698 | } | |
35699 | if (SWIG_arg_fail(3)) SWIG_fail; | |
e811c8ce RD |
35700 | } |
35701 | { | |
35702 | arg4 = &temp4; | |
35703 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35704 | } | |
35705 | { | |
35706 | arg5 = &temp5; | |
35707 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
35708 | } | |
35709 | { | |
35710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35711 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
35712 | ||
35713 | wxPyEndAllowThreads(__tstate); | |
35714 | if (PyErr_Occurred()) SWIG_fail; | |
35715 | } | |
4f89f6a3 RD |
35716 | { |
35717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35718 | } | |
e811c8ce RD |
35719 | return resultobj; |
35720 | fail: | |
35721 | return NULL; | |
35722 | } | |
35723 | ||
35724 | ||
c32bde28 | 35725 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) { |
32fe5131 | 35726 | PyObject *resultobj = NULL; |
e811c8ce RD |
35727 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; |
35728 | wxPoint *arg2 = 0 ; | |
35729 | wxPoint *arg3 = 0 ; | |
35730 | bool arg4 ; | |
35731 | bool arg5 ; | |
35732 | bool result; | |
35733 | wxPoint temp2 ; | |
35734 | wxPoint temp3 ; | |
35735 | PyObject * obj0 = 0 ; | |
35736 | PyObject * obj1 = 0 ; | |
35737 | PyObject * obj2 = 0 ; | |
35738 | PyObject * obj3 = 0 ; | |
35739 | PyObject * obj4 = 0 ; | |
35740 | char *kwnames[] = { | |
35741 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
35742 | }; | |
35743 | ||
35744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
093d3ff1 RD |
35745 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_EXCEPTION | 0); |
35746 | if (SWIG_arg_fail(1)) SWIG_fail; | |
e811c8ce RD |
35747 | { |
35748 | arg2 = &temp2; | |
35749 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
35750 | } | |
35751 | { | |
35752 | arg3 = &temp3; | |
35753 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
35754 | } | |
093d3ff1 | 35755 | { |
32fe5131 | 35756 | arg4 = static_cast<bool >(SWIG_As_bool(obj3)); |
093d3ff1 RD |
35757 | if (SWIG_arg_fail(4)) SWIG_fail; |
35758 | } | |
35759 | { | |
32fe5131 | 35760 | arg5 = static_cast<bool >(SWIG_As_bool(obj4)); |
093d3ff1 RD |
35761 | if (SWIG_arg_fail(5)) SWIG_fail; |
35762 | } | |
e811c8ce RD |
35763 | { |
35764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35765 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
35766 | ||
35767 | wxPyEndAllowThreads(__tstate); | |
35768 | if (PyErr_Occurred()) SWIG_fail; | |
35769 | } | |
4f89f6a3 RD |
35770 | { |
35771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35772 | } | |
e811c8ce RD |
35773 | return resultobj; |
35774 | fail: | |
35775 | return NULL; | |
35776 | } | |
35777 | ||
35778 | ||
c32bde28 | 35779 | static PyObject * DragImage_swigregister(PyObject *, PyObject *args) { |
e811c8ce RD |
35780 | PyObject *obj; |
35781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35782 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
35783 | Py_INCREF(obj); | |
35784 | return Py_BuildValue((char *)""); | |
35785 | } | |
53aa7709 RD |
35786 | static int _wrap_DatePickerCtrlNameStr_set(PyObject *) { |
35787 | PyErr_SetString(PyExc_TypeError,"Variable DatePickerCtrlNameStr is read-only."); | |
35788 | return 1; | |
35789 | } | |
35790 | ||
35791 | ||
35792 | static PyObject *_wrap_DatePickerCtrlNameStr_get(void) { | |
32fe5131 | 35793 | PyObject *pyobj = NULL; |
53aa7709 RD |
35794 | |
35795 | { | |
35796 | #if wxUSE_UNICODE | |
35797 | pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
35798 | #else | |
35799 | pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len()); | |
35800 | #endif | |
35801 | } | |
35802 | return pyobj; | |
35803 | } | |
35804 | ||
35805 | ||
35806 | static PyObject *_wrap_new_DatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 35807 | PyObject *resultobj = NULL; |
53aa7709 RD |
35808 | wxWindow *arg1 = (wxWindow *) 0 ; |
35809 | int arg2 = (int) -1 ; | |
35810 | wxDateTime const &arg3_defvalue = wxDefaultDateTime ; | |
35811 | wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ; | |
35812 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
35813 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
35814 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
35815 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
35816 | long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
35817 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
35818 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
35819 | wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ; | |
35820 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
35821 | wxDatePickerCtrl *result; | |
35822 | wxPoint temp4 ; | |
35823 | wxSize temp5 ; | |
35824 | bool temp8 = false ; | |
35825 | PyObject * obj0 = 0 ; | |
35826 | PyObject * obj1 = 0 ; | |
35827 | PyObject * obj2 = 0 ; | |
35828 | PyObject * obj3 = 0 ; | |
35829 | PyObject * obj4 = 0 ; | |
35830 | PyObject * obj5 = 0 ; | |
35831 | PyObject * obj6 = 0 ; | |
35832 | PyObject * obj7 = 0 ; | |
35833 | char *kwnames[] = { | |
35834 | (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
35835 | }; | |
35836 | ||
35837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
35838 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
35839 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35840 | if (obj1) { | |
35841 | { | |
32fe5131 | 35842 | arg2 = static_cast<int >(SWIG_As_int(obj1)); |
53aa7709 RD |
35843 | if (SWIG_arg_fail(2)) SWIG_fail; |
35844 | } | |
35845 | } | |
35846 | if (obj2) { | |
35847 | { | |
35848 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
35849 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35850 | if (arg3 == NULL) { | |
35851 | SWIG_null_ref("wxDateTime"); | |
35852 | } | |
35853 | if (SWIG_arg_fail(3)) SWIG_fail; | |
35854 | } | |
35855 | } | |
35856 | if (obj3) { | |
35857 | { | |
35858 | arg4 = &temp4; | |
35859 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
35860 | } | |
35861 | } | |
35862 | if (obj4) { | |
35863 | { | |
35864 | arg5 = &temp5; | |
35865 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
35866 | } | |
35867 | } | |
35868 | if (obj5) { | |
35869 | { | |
32fe5131 | 35870 | arg6 = static_cast<long >(SWIG_As_long(obj5)); |
53aa7709 RD |
35871 | if (SWIG_arg_fail(6)) SWIG_fail; |
35872 | } | |
35873 | } | |
35874 | if (obj6) { | |
35875 | { | |
35876 | SWIG_Python_ConvertPtr(obj6, (void **)&arg7, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
35877 | if (SWIG_arg_fail(7)) SWIG_fail; | |
35878 | if (arg7 == NULL) { | |
35879 | SWIG_null_ref("wxValidator"); | |
35880 | } | |
35881 | if (SWIG_arg_fail(7)) SWIG_fail; | |
35882 | } | |
35883 | } | |
35884 | if (obj7) { | |
35885 | { | |
35886 | arg8 = wxString_in_helper(obj7); | |
35887 | if (arg8 == NULL) SWIG_fail; | |
35888 | temp8 = true; | |
35889 | } | |
35890 | } | |
35891 | { | |
35892 | if (!wxPyCheckForApp()) SWIG_fail; | |
35893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35894 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
35895 | ||
35896 | wxPyEndAllowThreads(__tstate); | |
35897 | if (PyErr_Occurred()) SWIG_fail; | |
35898 | } | |
35899 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
35900 | { | |
35901 | if (temp8) | |
35902 | delete arg8; | |
35903 | } | |
35904 | return resultobj; | |
35905 | fail: | |
35906 | { | |
35907 | if (temp8) | |
35908 | delete arg8; | |
35909 | } | |
35910 | return NULL; | |
35911 | } | |
35912 | ||
35913 | ||
35914 | static PyObject *_wrap_new_PreDatePickerCtrl(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 35915 | PyObject *resultobj = NULL; |
53aa7709 RD |
35916 | wxDatePickerCtrl *result; |
35917 | char *kwnames[] = { | |
35918 | NULL | |
35919 | }; | |
35920 | ||
35921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDatePickerCtrl",kwnames)) goto fail; | |
35922 | { | |
35923 | if (!wxPyCheckForApp()) SWIG_fail; | |
35924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35925 | result = (wxDatePickerCtrl *)new wxDatePickerCtrl(); | |
35926 | ||
35927 | wxPyEndAllowThreads(__tstate); | |
35928 | if (PyErr_Occurred()) SWIG_fail; | |
35929 | } | |
35930 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDatePickerCtrl, 1); | |
35931 | return resultobj; | |
35932 | fail: | |
35933 | return NULL; | |
35934 | } | |
35935 | ||
35936 | ||
35937 | static PyObject *_wrap_DatePickerCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 35938 | PyObject *resultobj = NULL; |
53aa7709 RD |
35939 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
35940 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35941 | int arg3 = (int) -1 ; | |
35942 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
35943 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
35944 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
35945 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
35946 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
35947 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
35948 | long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ; | |
35949 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
35950 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
35951 | wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ; | |
35952 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
35953 | bool result; | |
35954 | wxPoint temp5 ; | |
35955 | wxSize temp6 ; | |
35956 | bool temp9 = false ; | |
35957 | PyObject * obj0 = 0 ; | |
35958 | PyObject * obj1 = 0 ; | |
35959 | PyObject * obj2 = 0 ; | |
35960 | PyObject * obj3 = 0 ; | |
35961 | PyObject * obj4 = 0 ; | |
35962 | PyObject * obj5 = 0 ; | |
35963 | PyObject * obj6 = 0 ; | |
35964 | PyObject * obj7 = 0 ; | |
35965 | PyObject * obj8 = 0 ; | |
35966 | char *kwnames[] = { | |
35967 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
35968 | }; | |
35969 | ||
35970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
35971 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
35972 | if (SWIG_arg_fail(1)) SWIG_fail; | |
35973 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0); | |
35974 | if (SWIG_arg_fail(2)) SWIG_fail; | |
35975 | if (obj2) { | |
35976 | { | |
32fe5131 | 35977 | arg3 = static_cast<int >(SWIG_As_int(obj2)); |
53aa7709 RD |
35978 | if (SWIG_arg_fail(3)) SWIG_fail; |
35979 | } | |
35980 | } | |
35981 | if (obj3) { | |
35982 | { | |
35983 | SWIG_Python_ConvertPtr(obj3, (void **)&arg4, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
35984 | if (SWIG_arg_fail(4)) SWIG_fail; | |
35985 | if (arg4 == NULL) { | |
35986 | SWIG_null_ref("wxDateTime"); | |
35987 | } | |
35988 | if (SWIG_arg_fail(4)) SWIG_fail; | |
35989 | } | |
35990 | } | |
35991 | if (obj4) { | |
35992 | { | |
35993 | arg5 = &temp5; | |
35994 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
35995 | } | |
35996 | } | |
35997 | if (obj5) { | |
35998 | { | |
35999 | arg6 = &temp6; | |
36000 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
36001 | } | |
36002 | } | |
36003 | if (obj6) { | |
36004 | { | |
32fe5131 | 36005 | arg7 = static_cast<long >(SWIG_As_long(obj6)); |
53aa7709 RD |
36006 | if (SWIG_arg_fail(7)) SWIG_fail; |
36007 | } | |
36008 | } | |
36009 | if (obj7) { | |
36010 | { | |
36011 | SWIG_Python_ConvertPtr(obj7, (void **)&arg8, SWIGTYPE_p_wxValidator, SWIG_POINTER_EXCEPTION | 0); | |
36012 | if (SWIG_arg_fail(8)) SWIG_fail; | |
36013 | if (arg8 == NULL) { | |
36014 | SWIG_null_ref("wxValidator"); | |
36015 | } | |
36016 | if (SWIG_arg_fail(8)) SWIG_fail; | |
36017 | } | |
36018 | } | |
36019 | if (obj8) { | |
36020 | { | |
36021 | arg9 = wxString_in_helper(obj8); | |
36022 | if (arg9 == NULL) SWIG_fail; | |
36023 | temp9 = true; | |
36024 | } | |
36025 | } | |
36026 | { | |
36027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36028 | result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
36029 | ||
36030 | wxPyEndAllowThreads(__tstate); | |
36031 | if (PyErr_Occurred()) SWIG_fail; | |
36032 | } | |
36033 | { | |
36034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36035 | } | |
36036 | { | |
36037 | if (temp9) | |
36038 | delete arg9; | |
36039 | } | |
36040 | return resultobj; | |
36041 | fail: | |
36042 | { | |
36043 | if (temp9) | |
36044 | delete arg9; | |
36045 | } | |
36046 | return NULL; | |
36047 | } | |
36048 | ||
36049 | ||
36050 | static PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 36051 | PyObject *resultobj = NULL; |
53aa7709 RD |
36052 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
36053 | wxDateTime *arg2 = 0 ; | |
36054 | PyObject * obj0 = 0 ; | |
36055 | PyObject * obj1 = 0 ; | |
36056 | char *kwnames[] = { | |
36057 | (char *) "self",(char *) "dt", NULL | |
36058 | }; | |
36059 | ||
36060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
36061 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
36062 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36063 | { | |
36064 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
36065 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36066 | if (arg2 == NULL) { | |
36067 | SWIG_null_ref("wxDateTime"); | |
36068 | } | |
36069 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36070 | } | |
36071 | { | |
36072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36073 | (arg1)->SetValue((wxDateTime const &)*arg2); | |
36074 | ||
36075 | wxPyEndAllowThreads(__tstate); | |
36076 | if (PyErr_Occurred()) SWIG_fail; | |
36077 | } | |
36078 | Py_INCREF(Py_None); resultobj = Py_None; | |
36079 | return resultobj; | |
36080 | fail: | |
36081 | return NULL; | |
36082 | } | |
36083 | ||
36084 | ||
36085 | static PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 36086 | PyObject *resultobj = NULL; |
53aa7709 RD |
36087 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
36088 | wxDateTime result; | |
36089 | PyObject * obj0 = 0 ; | |
36090 | char *kwnames[] = { | |
36091 | (char *) "self", NULL | |
36092 | }; | |
36093 | ||
36094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetValue",kwnames,&obj0)) goto fail; | |
36095 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
36096 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36097 | { | |
36098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36099 | result = ((wxDatePickerCtrl const *)arg1)->GetValue(); | |
36100 | ||
36101 | wxPyEndAllowThreads(__tstate); | |
36102 | if (PyErr_Occurred()) SWIG_fail; | |
36103 | } | |
36104 | { | |
36105 | wxDateTime * resultptr; | |
32fe5131 | 36106 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
53aa7709 RD |
36107 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
36108 | } | |
36109 | return resultobj; | |
36110 | fail: | |
36111 | return NULL; | |
36112 | } | |
36113 | ||
36114 | ||
36115 | static PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 36116 | PyObject *resultobj = NULL; |
53aa7709 RD |
36117 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
36118 | wxDateTime *arg2 = 0 ; | |
36119 | wxDateTime *arg3 = 0 ; | |
36120 | PyObject * obj0 = 0 ; | |
36121 | PyObject * obj1 = 0 ; | |
36122 | PyObject * obj2 = 0 ; | |
36123 | char *kwnames[] = { | |
36124 | (char *) "self",(char *) "dt1",(char *) "dt2", NULL | |
36125 | }; | |
36126 | ||
36127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36128 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
36129 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36130 | { | |
36131 | SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
36132 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36133 | if (arg2 == NULL) { | |
36134 | SWIG_null_ref("wxDateTime"); | |
36135 | } | |
36136 | if (SWIG_arg_fail(2)) SWIG_fail; | |
36137 | } | |
36138 | { | |
36139 | SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxDateTime, SWIG_POINTER_EXCEPTION | 0); | |
36140 | if (SWIG_arg_fail(3)) SWIG_fail; | |
36141 | if (arg3 == NULL) { | |
36142 | SWIG_null_ref("wxDateTime"); | |
36143 | } | |
36144 | if (SWIG_arg_fail(3)) SWIG_fail; | |
36145 | } | |
36146 | { | |
36147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36148 | (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
36149 | ||
36150 | wxPyEndAllowThreads(__tstate); | |
36151 | if (PyErr_Occurred()) SWIG_fail; | |
36152 | } | |
36153 | Py_INCREF(Py_None); resultobj = Py_None; | |
36154 | return resultobj; | |
36155 | fail: | |
36156 | return NULL; | |
36157 | } | |
36158 | ||
36159 | ||
36160 | static PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 36161 | PyObject *resultobj = NULL; |
53aa7709 RD |
36162 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
36163 | wxDateTime result; | |
36164 | PyObject * obj0 = 0 ; | |
36165 | char *kwnames[] = { | |
36166 | (char *) "self", NULL | |
36167 | }; | |
36168 | ||
36169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetLowerLimit",kwnames,&obj0)) goto fail; | |
36170 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
36171 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36172 | { | |
36173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36174 | result = wxDatePickerCtrl_GetLowerLimit(arg1); | |
36175 | ||
36176 | wxPyEndAllowThreads(__tstate); | |
36177 | if (PyErr_Occurred()) SWIG_fail; | |
36178 | } | |
36179 | { | |
36180 | wxDateTime * resultptr; | |
32fe5131 | 36181 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
53aa7709 RD |
36182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
36183 | } | |
36184 | return resultobj; | |
36185 | fail: | |
36186 | return NULL; | |
36187 | } | |
36188 | ||
36189 | ||
36190 | static PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *, PyObject *args, PyObject *kwargs) { | |
32fe5131 | 36191 | PyObject *resultobj = NULL; |
53aa7709 RD |
36192 | wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ; |
36193 | wxDateTime result; | |
36194 | PyObject * obj0 = 0 ; | |
36195 | char *kwnames[] = { | |
36196 | (char *) "self", NULL | |
36197 | }; | |
36198 | ||
36199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DatePickerCtrl_GetUpperLimit",kwnames,&obj0)) goto fail; | |
36200 | SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_EXCEPTION | 0); | |
36201 | if (SWIG_arg_fail(1)) SWIG_fail; | |
36202 | { | |
36203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36204 | result = wxDatePickerCtrl_GetUpperLimit(arg1); | |
36205 | ||
36206 | wxPyEndAllowThreads(__tstate); | |
36207 | if (PyErr_Occurred()) SWIG_fail; | |
36208 | } | |
36209 | { | |
36210 | wxDateTime * resultptr; | |
32fe5131 | 36211 | resultptr = new wxDateTime(static_cast<wxDateTime & >(result)); |
53aa7709 RD |
36212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
36213 | } | |
36214 | return resultobj; | |
36215 | fail: | |
36216 | return NULL; | |
36217 | } | |
36218 | ||
36219 | ||
36220 | static PyObject * DatePickerCtrl_swigregister(PyObject *, PyObject *args) { | |
36221 | PyObject *obj; | |
36222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36223 | SWIG_TypeClientData(SWIGTYPE_p_wxDatePickerCtrl, obj); | |
36224 | Py_INCREF(obj); | |
36225 | return Py_BuildValue((char *)""); | |
36226 | } | |
e811c8ce | 36227 | static PyMethodDef SwigMethods[] = { |
093d3ff1 RD |
36228 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL}, |
36229 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36230 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36231 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36232 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36233 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36234 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL}, | |
36235 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36236 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36237 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36238 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36239 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36240 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36241 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36242 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36243 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36244 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36245 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36246 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36247 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36248 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36249 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL}, | |
36250 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36251 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36252 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36253 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36254 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36255 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36256 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36257 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36258 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36259 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36260 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36261 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL}, | |
36262 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36263 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36264 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 36265 | { (char *)"Choice_GetCurrentSelection", (PyCFunction) _wrap_Choice_GetCurrentSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36266 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
36267 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL}, | |
36268 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36269 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36270 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36271 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36272 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36273 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36274 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36275 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36276 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36277 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36278 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36279 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36280 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36281 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b9d6a5f3 | 36282 | { (char *)"ComboBox_GetMark", (PyCFunction) _wrap_ComboBox_GetMark, METH_VARARGS | METH_KEYWORDS, NULL}, |
943e8dfd | 36283 | { (char *)"ComboBox_GetCurrentSelection", (PyCFunction) _wrap_ComboBox_GetCurrentSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36284 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, |
36285 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36286 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36287 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36288 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36289 | { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36290 | { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36291 | { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36292 | { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36293 | { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36294 | { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36295 | { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36296 | { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36297 | { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36298 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36299 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL}, | |
36300 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36301 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36302 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36303 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36304 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36305 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36306 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36307 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36308 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36309 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36310 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36311 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36312 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36313 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL}, | |
36314 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36315 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36316 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36317 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36318 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL}, | |
36319 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36320 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36321 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36322 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36323 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36324 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36325 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL}, | |
36326 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36327 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36328 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd | 36329 | { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36330 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
36331 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL}, | |
36332 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36333 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36334 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36335 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36336 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36337 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36338 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36339 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL}, | |
36340 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36341 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36342 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36343 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36344 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36345 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36346 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36347 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36348 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36349 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36350 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36351 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36352 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36353 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36354 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36355 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36356 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36357 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36358 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36359 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36360 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36361 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36362 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL}, | |
36363 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36364 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36365 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36366 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36367 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36368 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36369 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36370 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36371 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL}, | |
36372 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36373 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36374 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36375 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36376 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36377 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36378 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36379 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36380 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36381 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36382 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36383 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36384 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36385 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36386 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36387 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36388 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36389 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36390 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36391 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36392 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36393 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36394 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36395 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36396 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36397 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36398 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36399 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36400 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36401 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36402 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL}, | |
36403 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36404 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36405 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36406 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36407 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36408 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36409 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36410 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36411 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36412 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36413 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36414 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36415 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36416 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36417 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36418 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36419 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36420 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36421 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36422 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36423 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36424 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36425 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36426 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36427 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36428 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36429 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36430 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36431 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36432 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36433 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36434 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36435 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36436 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36437 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36438 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36439 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36440 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36441 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36442 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36443 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36444 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36445 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36446 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36447 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36448 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36449 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36450 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36451 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36452 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36453 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36454 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36455 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36456 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36457 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36458 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL}, | |
36459 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36460 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36461 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36462 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36463 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL}, | |
36464 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36465 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36466 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36467 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36468 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36469 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36470 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36471 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36472 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36473 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36474 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36475 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL}, | |
36476 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36477 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36478 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36479 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36480 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36481 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36482 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36483 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36484 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36485 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36486 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36487 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36488 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL}, | |
36489 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36490 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36491 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36492 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36493 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36494 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36495 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36496 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36497 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36498 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36499 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36500 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL}, | |
36501 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36502 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36503 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36504 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL}, | |
36505 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36506 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36507 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36508 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36509 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36510 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36511 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36512 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36513 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36514 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36515 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36516 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36517 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36518 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36519 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36520 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36521 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36522 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL}, | |
36523 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36524 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36525 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36526 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36527 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36528 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36529 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL}, | |
36530 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36531 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36532 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36533 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36534 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36535 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36536 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36537 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36538 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36539 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36540 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36541 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36542 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36543 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36544 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36545 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36546 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36547 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36548 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36549 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36550 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36551 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36552 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36553 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36554 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36555 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL}, | |
36556 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36557 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36558 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36559 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36560 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36561 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36562 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36563 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL}, | |
36564 | { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36565 | { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36566 | { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36567 | { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36568 | { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36569 | { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36570 | { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36571 | { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36572 | { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36573 | { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36574 | { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36575 | { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36576 | { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7e08d4ef RD |
36577 | { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_GetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL}, |
36578 | { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36579 | { (char *)"BookCtrlBase_IsVertical", (PyCFunction) _wrap_BookCtrlBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
c26d9ab4 RD |
36580 | { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, |
36581 | { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
36582 | { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, |
36583 | { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36584 | { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36585 | { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36586 | { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36587 | { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36588 | { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36589 | { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36590 | { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL}, | |
36591 | { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36592 | { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36593 | { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36594 | { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36595 | { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36596 | { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL}, | |
36597 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36598 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36599 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36600 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36601 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36602 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36603 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36604 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8e738329 | 36605 | { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction) _wrap_Notebook_GetThemeBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36606 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, |
36607 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL}, | |
36608 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36609 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL}, | |
36610 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36611 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36612 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
36613 | { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL}, |
36614 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL}, | |
36615 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36616 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL}, | |
36617 | { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36618 | { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36619 | { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70b7a5fe | 36620 | { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction) _wrap_Choicebook_GetChoiceCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36621 | { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL}, |
36622 | { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL}, | |
36623 | { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36624 | { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL}, | |
7e08d4ef RD |
36625 | { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL}, |
36626 | { (char *)"new_PreTreebook", (PyCFunction) _wrap_new_PreTreebook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36627 | { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36628 | { (char *)"Treebook_InsertPage", (PyCFunction) _wrap_Treebook_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36629 | { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36630 | { (char *)"Treebook_AddPage", (PyCFunction) _wrap_Treebook_AddPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36631 | { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36632 | { (char *)"Treebook_DeletePage", (PyCFunction) _wrap_Treebook_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36633 | { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36634 | { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36635 | { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36636 | { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36637 | { (char *)"Treebook_GetTreeCtrl", (PyCFunction) _wrap_Treebook_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36638 | { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL}, | |
36639 | { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36640 | { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL}, | |
36641 | { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36642 | { (char *)"new_PreToolbook", (PyCFunction) _wrap_new_PreToolbook, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36643 | { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36644 | { (char *)"Toolbook_GetToolBar", (PyCFunction) _wrap_Toolbook_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36645 | { (char *)"Toolbook_Realize", (PyCFunction) _wrap_Toolbook_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36646 | { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL}, | |
36647 | { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36648 | { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL}, | |
093d3ff1 RD |
36649 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, |
36650 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36651 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36652 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36653 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36654 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36655 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36656 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36657 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36658 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36659 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36660 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36661 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36662 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36663 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36664 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36665 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36666 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36667 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36668 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36669 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36670 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36671 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36672 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36673 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36674 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36675 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36676 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36677 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36678 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL}, | |
36679 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36680 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36681 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36682 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36683 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36684 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36685 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36686 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36687 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36688 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36689 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36690 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36691 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36692 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36693 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36694 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36695 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36696 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36697 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36698 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36699 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36700 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36701 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36702 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36703 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36704 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36705 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36706 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36707 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36708 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36709 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36710 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36711 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36712 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36713 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36714 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36715 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36716 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36717 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36718 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36719 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36720 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36721 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36722 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36723 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL}, | |
36724 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36725 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36726 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36727 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36728 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36729 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL}, | |
36730 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7e08d4ef | 36731 | { (char *)"delete_ListItemAttr", (PyCFunction) _wrap_delete_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36732 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
36733 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36734 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36735 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36736 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36737 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36738 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36739 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36740 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7e08d4ef | 36741 | { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36742 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, |
36743 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL}, | |
36744 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36745 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36746 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36747 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36748 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36749 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36750 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36751 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36752 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36753 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36754 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36755 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36756 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36757 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36758 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36759 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36760 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36761 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36762 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36763 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36764 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36765 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36766 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36767 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36768 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36769 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36770 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36771 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36772 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36773 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36774 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36775 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36776 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36777 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36778 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36779 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36780 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36781 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36782 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36783 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36784 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36785 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36786 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36787 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36788 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36789 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36790 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36791 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36792 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36793 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36794 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36795 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL}, | |
36796 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36797 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36798 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36799 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36800 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36801 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36802 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36803 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36804 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36805 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36806 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36807 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36808 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36809 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36810 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36811 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36812 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36813 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36814 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36815 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36816 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36817 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36818 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36819 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36820 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36821 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36822 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL}, | |
36823 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36824 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36825 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36826 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36827 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36828 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36829 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36830 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36831 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36832 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36833 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36834 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36835 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36836 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36837 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36838 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36839 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36840 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36841 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36842 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36843 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36844 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36845 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36846 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36847 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36848 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36849 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36850 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36851 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36852 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36853 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36854 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36855 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36856 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36857 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36858 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36859 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36860 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36861 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36862 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36863 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36864 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36865 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36866 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36867 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36868 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36869 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36870 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36871 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36872 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36873 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36874 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36875 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36876 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36877 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36878 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36879 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36880 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36881 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
a3957d3d | 36882 | { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36883 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL}, |
36884 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36885 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36886 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36887 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36888 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36889 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
943e8dfd RD |
36890 | { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
36891 | { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
36892 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL}, |
36893 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36894 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36895 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL}, | |
36896 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36897 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36898 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36899 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36900 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36901 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36902 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36903 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36904 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36905 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36906 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36907 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL}, | |
36908 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36909 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36910 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36911 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36912 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36913 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36914 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36915 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL}, | |
36916 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
7e08d4ef | 36917 | { (char *)"delete_TreeItemData", (PyCFunction) _wrap_delete_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36918 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL}, |
36919 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36920 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36921 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36922 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36923 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL}, | |
36924 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36925 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36926 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36927 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36928 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36929 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36930 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36931 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36932 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36933 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36934 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36935 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36936 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36937 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36938 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, | |
562ecc31 | 36939 | { (char *)"TreeEvent_GetToolTip", (PyCFunction) _wrap_TreeEvent_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36940 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL}, |
36941 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36942 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36943 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36944 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36945 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36946 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36947 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36948 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36949 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36950 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36951 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36952 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36953 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36954 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36955 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36956 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36957 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36958 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36959 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36960 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36961 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36962 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36963 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36964 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36965 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36966 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36967 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36968 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fef4c27a | 36969 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL}, |
093d3ff1 RD |
36970 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
36971 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36972 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36973 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36974 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36975 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36976 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36977 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36978 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36979 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36980 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36981 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36982 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36983 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36984 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36985 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36986 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36987 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36988 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36989 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36990 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36991 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36992 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36993 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36994 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36995 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36996 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36997 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36998 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36999 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37000 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37001 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37002 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37003 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37004 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37005 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37006 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37007 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37008 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37009 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37010 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37011 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37012 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37013 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37014 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37015 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37016 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL}, | |
37017 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37018 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37019 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37020 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37021 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37022 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37023 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37024 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37025 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37026 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37027 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37028 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37029 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37030 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37031 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37032 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37033 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37034 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37035 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37036 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37037 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37038 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL}, | |
37039 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37040 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37041 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37042 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37043 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL}, | |
37044 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37045 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37046 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37047 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
976dbff5 | 37048 | { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL}, |
c26d9ab4 RD |
37049 | { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
37050 | { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37051 | { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37052 | { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37053 | { (char *)"PyControl_DoGetSize", (PyCFunction) _wrap_PyControl_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37054 | { (char *)"PyControl_DoGetClientSize", (PyCFunction) _wrap_PyControl_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37055 | { (char *)"PyControl_DoGetPosition", (PyCFunction) _wrap_PyControl_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37056 | { (char *)"PyControl_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37057 | { (char *)"PyControl_DoGetBestSize", (PyCFunction) _wrap_PyControl_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37058 | { (char *)"PyControl_InitDialog", (PyCFunction) _wrap_PyControl_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37059 | { (char *)"PyControl_TransferDataToWindow", (PyCFunction) _wrap_PyControl_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37060 | { (char *)"PyControl_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37061 | { (char *)"PyControl_Validate", (PyCFunction) _wrap_PyControl_Validate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37062 | { (char *)"PyControl_AcceptsFocus", (PyCFunction) _wrap_PyControl_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37063 | { (char *)"PyControl_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37064 | { (char *)"PyControl_GetMaxSize", (PyCFunction) _wrap_PyControl_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37065 | { (char *)"PyControl_AddChild", (PyCFunction) _wrap_PyControl_AddChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37066 | { (char *)"PyControl_RemoveChild", (PyCFunction) _wrap_PyControl_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37067 | { (char *)"PyControl_ShouldInheritColours", (PyCFunction) _wrap_PyControl_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37068 | { (char *)"PyControl_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37069 | { (char *)"PyControl_OnInternalIdle", (PyCFunction) _wrap_PyControl_OnInternalIdle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
093d3ff1 RD |
37070 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL}, |
37071 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37072 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37073 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37074 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37075 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37076 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37077 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37078 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL}, | |
37079 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37080 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37081 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37082 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37083 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL}, | |
37084 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37085 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL}, | |
37086 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37087 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37088 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37089 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37090 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37091 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37092 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37093 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37094 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL}, | |
37095 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37096 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL}, | |
37097 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37098 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37099 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37100 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37101 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37102 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37103 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37104 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37105 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37106 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37107 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37108 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37109 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37110 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37111 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37112 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37113 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37114 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL}, | |
53aa7709 RD |
37115 | { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, |
37116 | { (char *)"new_PreDatePickerCtrl", (PyCFunction) _wrap_new_PreDatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37117 | { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37118 | { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37119 | { (char *)"DatePickerCtrl_GetValue", (PyCFunction) _wrap_DatePickerCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37120 | { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37121 | { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction) _wrap_DatePickerCtrl_GetLowerLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37122 | { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction) _wrap_DatePickerCtrl_GetUpperLimit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
37123 | { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL}, | |
c32bde28 | 37124 | { NULL, NULL, 0, NULL } |
d14a1e28 RD |
37125 | }; |
37126 | ||
37127 | ||
37128 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
37129 | ||
d14a1e28 RD |
37130 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { |
37131 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37132 | } | |
37133 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
37134 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
37135 | } | |
37136 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
37137 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
37138 | } | |
37139 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
37140 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
37141 | } | |
37142 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
37143 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
37144 | } | |
8ac8dba0 RD |
37145 | static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) { |
37146 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
37147 | } | |
d14a1e28 RD |
37148 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { |
37149 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
37150 | } | |
37151 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
37152 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
37153 | } | |
37154 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
37155 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
37156 | } | |
37157 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
37158 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
37159 | } | |
37160 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
37161 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
37162 | } | |
d14a1e28 RD |
37163 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { |
37164 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
37165 | } | |
37166 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
37167 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37168 | } | |
37169 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
37170 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
37171 | } | |
37172 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 37173 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
37174 | } |
37175 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
8ac8dba0 | 37176 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 37177 | } |
2ef75293 | 37178 | static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) { |
8ac8dba0 | 37179 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 37180 | } |
7e08d4ef RD |
37181 | static void *_p_wxTreebookEventTo_p_wxEvent(void *x) { |
37182 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
37183 | } | |
37184 | static void *_p_wxToolbookEventTo_p_wxEvent(void *x) { | |
37185 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
37186 | } | |
d14a1e28 RD |
37187 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { |
37188 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
37189 | } | |
37190 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
37191 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
37192 | } | |
37193 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
37194 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37195 | } | |
37196 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
37197 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
37198 | } | |
37199 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
37200 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
37201 | } | |
37202 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
37203 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
37204 | } | |
37205 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
37206 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
37207 | } | |
37208 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
37209 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
37210 | } | |
37211 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
37212 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
37213 | } | |
53aa7709 RD |
37214 | static void *_p_wxDateEventTo_p_wxEvent(void *x) { |
37215 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x)); | |
37216 | } | |
d14a1e28 RD |
37217 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { |
37218 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
37219 | } | |
37220 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
37221 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
37222 | } | |
37223 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
37224 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37225 | } | |
37226 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
37227 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
37228 | } | |
37229 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
37230 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
37231 | } | |
37232 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
37233 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
37234 | } | |
37235 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
37236 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
37237 | } | |
37238 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
37239 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
37240 | } | |
37241 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
37242 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
37243 | } | |
37244 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
37245 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37246 | } | |
37247 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
37248 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
37249 | } | |
37250 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
37251 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
37252 | } | |
37253 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
37254 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37255 | } | |
37256 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
37257 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37258 | } | |
37259 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
37260 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
37261 | } | |
37262 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
37263 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
37264 | } | |
37265 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
37266 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
37267 | } | |
d1e20054 RD |
37268 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
37269 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
37270 | } | |
d14a1e28 RD |
37271 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
37272 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
37273 | } | |
37274 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
37275 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
37276 | } | |
37277 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
37278 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
37279 | } | |
37280 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
37281 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
37282 | } | |
37283 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
37284 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
37285 | } | |
37286 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
37287 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
37288 | } | |
37289 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
37290 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
37291 | } | |
8ac8dba0 RD |
37292 | static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) { |
37293 | return (void *)((wxControl *) ((wxBookCtrlBase *) x)); | |
d14a1e28 RD |
37294 | } |
37295 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
37296 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
37297 | } | |
2ef75293 RD |
37298 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { |
37299 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
d14a1e28 | 37300 | } |
2ef75293 RD |
37301 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { |
37302 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
d14a1e28 | 37303 | } |
7e08d4ef RD |
37304 | static void *_p_wxToolbookTo_p_wxControl(void *x) { |
37305 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x)); | |
d14a1e28 | 37306 | } |
2ef75293 RD |
37307 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { |
37308 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
37309 | } | |
37310 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
37311 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
d14a1e28 RD |
37312 | } |
37313 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
37314 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
37315 | } | |
2ef75293 RD |
37316 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { |
37317 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
d14a1e28 | 37318 | } |
7e08d4ef RD |
37319 | static void *_p_wxPyControlTo_p_wxControl(void *x) { |
37320 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
37321 | } | |
2ef75293 RD |
37322 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { |
37323 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
d14a1e28 RD |
37324 | } |
37325 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
37326 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
37327 | } | |
2ef75293 RD |
37328 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { |
37329 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
d14a1e28 RD |
37330 | } |
37331 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
37332 | return (void *)((wxControl *) ((wxGauge *) x)); | |
37333 | } | |
2ef75293 RD |
37334 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { |
37335 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
d14a1e28 | 37336 | } |
2ef75293 | 37337 | static void *_p_wxChoicebookTo_p_wxControl(void *x) { |
8ac8dba0 | 37338 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x)); |
d14a1e28 | 37339 | } |
2ef75293 | 37340 | static void *_p_wxListbookTo_p_wxControl(void *x) { |
8ac8dba0 | 37341 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 | 37342 | } |
2ef75293 RD |
37343 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { |
37344 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
d14a1e28 | 37345 | } |
2ef75293 RD |
37346 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { |
37347 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
d14a1e28 RD |
37348 | } |
37349 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
37350 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
37351 | } | |
2ef75293 RD |
37352 | static void *_p_wxChoiceTo_p_wxControl(void *x) { |
37353 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
37354 | } | |
37355 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
37356 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
37357 | } | |
37358 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
37359 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
37360 | } | |
37361 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
37362 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
37363 | } | |
d14a1e28 | 37364 | static void *_p_wxNotebookTo_p_wxControl(void *x) { |
8ac8dba0 | 37365 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 | 37366 | } |
2ef75293 RD |
37367 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { |
37368 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
d14a1e28 | 37369 | } |
2ef75293 RD |
37370 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { |
37371 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
d14a1e28 | 37372 | } |
2ef75293 RD |
37373 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { |
37374 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
d14a1e28 | 37375 | } |
2ef75293 RD |
37376 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { |
37377 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
d14a1e28 RD |
37378 | } |
37379 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
37380 | return (void *)((wxControl *) ((wxSlider *) x)); | |
37381 | } | |
7e08d4ef RD |
37382 | static void *_p_wxTreebookTo_p_wxControl(void *x) { |
37383 | return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x)); | |
d14a1e28 | 37384 | } |
2ef75293 RD |
37385 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { |
37386 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
d14a1e28 | 37387 | } |
2ef75293 RD |
37388 | static void *_p_wxButtonTo_p_wxControl(void *x) { |
37389 | return (void *)((wxControl *) ((wxButton *) x)); | |
d14a1e28 | 37390 | } |
2ef75293 RD |
37391 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { |
37392 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
37393 | } | |
7e08d4ef RD |
37394 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { |
37395 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
37396 | } | |
53aa7709 RD |
37397 | static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) { |
37398 | return (void *)((wxControl *) ((wxDatePickerCtrl *) x)); | |
37399 | } | |
2ef75293 RD |
37400 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { |
37401 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
d14a1e28 RD |
37402 | } |
37403 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
37404 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
37405 | } | |
37406 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
37407 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
37408 | } | |
8ac8dba0 RD |
37409 | static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) { |
37410 | return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
37411 | } | |
d14a1e28 RD |
37412 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { |
37413 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
37414 | } | |
d14a1e28 RD |
37415 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { |
37416 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
37417 | } | |
d1e20054 RD |
37418 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
37419 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
37420 | } | |
d14a1e28 | 37421 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 | 37422 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
37423 | } |
37424 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
8ac8dba0 | 37425 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 37426 | } |
2ef75293 | 37427 | static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) { |
8ac8dba0 RD |
37428 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
37429 | } | |
7e08d4ef RD |
37430 | static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) { |
37431 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
37432 | } | |
37433 | static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) { | |
37434 | return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
37435 | } | |
8ac8dba0 RD |
37436 | static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) { |
37437 | return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x)); | |
37438 | } | |
37439 | static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) { | |
37440 | return (void *)((wxBookCtrlBase *) ((wxListbook *) x)); | |
2ef75293 | 37441 | } |
7e08d4ef RD |
37442 | static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) { |
37443 | return (void *)((wxBookCtrlBase *) ((wxToolbook *) x)); | |
37444 | } | |
37445 | static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) { | |
37446 | return (void *)((wxBookCtrlBase *) ((wxTreebook *) x)); | |
37447 | } | |
8ac8dba0 RD |
37448 | static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) { |
37449 | return (void *)((wxBookCtrlBase *) ((wxNotebook *) x)); | |
d14a1e28 RD |
37450 | } |
37451 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
37452 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
37453 | } | |
8ac8dba0 RD |
37454 | static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) { |
37455 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
37456 | } | |
d14a1e28 RD |
37457 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { |
37458 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
37459 | } | |
37460 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
37461 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
37462 | } | |
37463 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
37464 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
37465 | } | |
37466 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
37467 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
37468 | } | |
37469 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
37470 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
37471 | } | |
37472 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
37473 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
37474 | } | |
7e08d4ef RD |
37475 | static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) { |
37476 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
37477 | } | |
d14a1e28 RD |
37478 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { |
37479 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
37480 | } | |
37481 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
37482 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
37483 | } | |
d14a1e28 RD |
37484 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { |
37485 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
37486 | } | |
7e08d4ef RD |
37487 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { |
37488 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
37489 | } | |
2ef75293 RD |
37490 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { |
37491 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
37492 | } | |
d14a1e28 RD |
37493 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { |
37494 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
37495 | } | |
37496 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
37497 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
37498 | } | |
37499 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
37500 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
37501 | } | |
37502 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
37503 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
37504 | } | |
37505 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
37506 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
37507 | } | |
37508 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
37509 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
37510 | } | |
37511 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
37512 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
37513 | } | |
37514 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
37515 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
37516 | } | |
2ef75293 | 37517 | static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 37518 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 37519 | } |
d14a1e28 | 37520 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { |
8ac8dba0 | 37521 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
37522 | } |
37523 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
37524 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
37525 | } | |
37526 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
37527 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
37528 | } | |
37529 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
37530 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
37531 | } | |
37532 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
37533 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
37534 | } | |
37535 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
37536 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
37537 | } | |
37538 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
37539 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
37540 | } | |
37541 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
8ac8dba0 | 37542 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
37543 | } |
37544 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
37545 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
37546 | } | |
37547 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
37548 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
37549 | } | |
37550 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
37551 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
37552 | } | |
37553 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
37554 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
37555 | } | |
37556 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
37557 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
37558 | } | |
37559 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
37560 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
37561 | } | |
7e08d4ef RD |
37562 | static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) { |
37563 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
37564 | } | |
d14a1e28 RD |
37565 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { |
37566 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
37567 | } | |
37568 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
37569 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
37570 | } | |
37571 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
37572 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
37573 | } | |
37574 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
37575 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
37576 | } | |
53aa7709 RD |
37577 | static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) { |
37578 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
37579 | } | |
d14a1e28 RD |
37580 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { |
37581 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
37582 | } | |
37583 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
37584 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
37585 | } | |
d14a1e28 RD |
37586 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { |
37587 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
37588 | } | |
37589 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
37590 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
37591 | } | |
37592 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
37593 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
37594 | } | |
37595 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
37596 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
37597 | } | |
37598 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
37599 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
37600 | } | |
7e08d4ef RD |
37601 | static void *_p_wxToolbookTo_p_wxObject(void *x) { |
37602 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
37603 | } | |
d14a1e28 RD |
37604 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
37605 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
37606 | } | |
37607 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
37608 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
37609 | } | |
37610 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
37611 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
37612 | } | |
37613 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
37614 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
37615 | } | |
37616 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
37617 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
37618 | } | |
d14a1e28 RD |
37619 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { |
37620 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
37621 | } | |
37622 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
37623 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
37624 | } | |
37625 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
37626 | return (void *)((wxObject *) ((wxSizer *) x)); | |
37627 | } | |
37628 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
37629 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
37630 | } | |
37631 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
37632 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
37633 | } | |
37634 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
37635 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
37636 | } | |
37637 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
37638 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
37639 | } | |
37640 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
37641 | return (void *)((wxObject *) ((wxEvent *) x)); | |
37642 | } | |
37643 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
37644 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
37645 | } | |
37646 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
37647 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
37648 | } | |
37649 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
37650 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
37651 | } | |
37652 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
37653 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
37654 | } | |
37655 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
37656 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
37657 | } | |
37658 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
37659 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
37660 | } | |
37661 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
37662 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
37663 | } | |
37664 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
37665 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
37666 | } | |
37667 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
37668 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
37669 | } | |
37670 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
37671 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
37672 | } | |
37673 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
37674 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
37675 | } | |
37676 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
37677 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
37678 | } | |
37679 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
37680 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
37681 | } | |
37682 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
37683 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
37684 | } | |
37685 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
37686 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
37687 | } | |
37688 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
37689 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
37690 | } | |
37691 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
37692 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
37693 | } | |
37694 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
37695 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
37696 | } | |
37697 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
37698 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
37699 | } | |
37700 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
37701 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
37702 | } | |
37703 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
37704 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
37705 | } | |
37706 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
37707 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
37708 | } | |
37709 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
37710 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
37711 | } | |
7e08d4ef RD |
37712 | static void *_p_wxTreebookTo_p_wxObject(void *x) { |
37713 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
37714 | } | |
d14a1e28 RD |
37715 | static void *_p_wxListViewTo_p_wxObject(void *x) { |
37716 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
37717 | } | |
37718 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
37719 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
37720 | } | |
37721 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
8ac8dba0 | 37722 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
37723 | } |
37724 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
37725 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
37726 | } | |
37727 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
37728 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
37729 | } | |
2ef75293 | 37730 | static void *_p_wxChoicebookTo_p_wxObject(void *x) { |
8ac8dba0 | 37731 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 37732 | } |
d14a1e28 | 37733 | static void *_p_wxListbookTo_p_wxObject(void *x) { |
8ac8dba0 | 37734 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
37735 | } |
37736 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
37737 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
37738 | } | |
37739 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
37740 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
37741 | } | |
37742 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
37743 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
37744 | } | |
37745 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
37746 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
37747 | } | |
53aa7709 RD |
37748 | static void *_p_wxDateEventTo_p_wxObject(void *x) { |
37749 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
37750 | } | |
d14a1e28 RD |
37751 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { |
37752 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
37753 | } | |
37754 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
37755 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
37756 | } | |
37757 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
37758 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
37759 | } | |
37760 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
37761 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
37762 | } | |
37763 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
37764 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
37765 | } | |
37766 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
37767 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
37768 | } | |
37769 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
37770 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
37771 | } | |
37772 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
37773 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
37774 | } | |
37775 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
37776 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
37777 | } | |
37778 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
37779 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
37780 | } | |
8ac8dba0 RD |
37781 | static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) { |
37782 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x)); | |
37783 | } | |
d14a1e28 RD |
37784 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { |
37785 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
37786 | } | |
37787 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
37788 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
37789 | } | |
37790 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
37791 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
37792 | } | |
37793 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
37794 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
37795 | } | |
37796 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
37797 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
37798 | } | |
37799 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
37800 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
37801 | } | |
37802 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
37803 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
37804 | } | |
37805 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
37806 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
37807 | } | |
37808 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
37809 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
37810 | } | |
943e8dfd RD |
37811 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { |
37812 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
37813 | } | |
d14a1e28 RD |
37814 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { |
37815 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
37816 | } | |
943e8dfd RD |
37817 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { |
37818 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
37819 | } | |
d14a1e28 RD |
37820 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { |
37821 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
37822 | } | |
37823 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
37824 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
37825 | } | |
37826 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
37827 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
37828 | } | |
37829 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
37830 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
37831 | } | |
37832 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
37833 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
37834 | } | |
d14a1e28 RD |
37835 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
37836 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
37837 | } | |
1e0c8722 RD |
37838 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
37839 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
37840 | } | |
d14a1e28 RD |
37841 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
37842 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
37843 | } | |
37844 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
37845 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
37846 | } | |
e505d15e RD |
37847 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
37848 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
37849 | } | |
1e0c8722 RD |
37850 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
37851 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
37852 | } | |
d14a1e28 RD |
37853 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
37854 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
37855 | } | |
37856 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
37857 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
37858 | } | |
37859 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
37860 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
37861 | } | |
37862 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
37863 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
37864 | } | |
37865 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
37866 | return (void *)((wxObject *) ((wxListItem *) x)); | |
37867 | } | |
37868 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
37869 | return (void *)((wxObject *) ((wxImage *) x)); | |
37870 | } | |
d14a1e28 RD |
37871 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { |
37872 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
37873 | } | |
d1e20054 RD |
37874 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
37875 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
37876 | } | |
e811c8ce RD |
37877 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
37878 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
37879 | } | |
d14a1e28 RD |
37880 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
37881 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
37882 | } | |
37883 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 37884 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 RD |
37885 | } |
37886 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
8ac8dba0 | 37887 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 | 37888 | } |
2ef75293 | 37889 | static void *_p_wxChoicebookEventTo_p_wxObject(void *x) { |
8ac8dba0 | 37890 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); |
2ef75293 | 37891 | } |
7e08d4ef RD |
37892 | static void *_p_wxTreebookEventTo_p_wxObject(void *x) { |
37893 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
37894 | } | |
37895 | static void *_p_wxToolbookEventTo_p_wxObject(void *x) { | |
37896 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
37897 | } | |
d14a1e28 RD |
37898 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
37899 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
37900 | } | |
37901 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
37902 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
37903 | } | |
37904 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
37905 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
37906 | } | |
37907 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
37908 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
37909 | } | |
37910 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
37911 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
37912 | } | |
37913 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
37914 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
37915 | } | |
37916 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
37917 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
37918 | } | |
37919 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
37920 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
37921 | } | |
37922 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
37923 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
37924 | } | |
37925 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
37926 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
37927 | } | |
37928 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
37929 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
37930 | } | |
37931 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
37932 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
37933 | } | |
37934 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
37935 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
37936 | } | |
8ac8dba0 RD |
37937 | static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) { |
37938 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
37939 | } | |
d14a1e28 RD |
37940 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { |
37941 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
37942 | } | |
37943 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
37944 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
37945 | } | |
37946 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
37947 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
37948 | } | |
37949 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
37950 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
37951 | } | |
37952 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
37953 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
37954 | } | |
37955 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
37956 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
37957 | } | |
37958 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
37959 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
37960 | } | |
53aa7709 RD |
37961 | static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) { |
37962 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x)); | |
37963 | } | |
d14a1e28 RD |
37964 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { |
37965 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
37966 | } | |
37967 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
37968 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
37969 | } | |
37970 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
37971 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
37972 | } | |
37973 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
37974 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
37975 | } | |
37976 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
37977 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
37978 | } | |
d14a1e28 RD |
37979 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { |
37980 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
37981 | } | |
8ac8dba0 RD |
37982 | static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) { |
37983 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x)); | |
37984 | } | |
d14a1e28 RD |
37985 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { |
37986 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
37987 | } | |
37988 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
37989 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
37990 | } | |
37991 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
37992 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
37993 | } | |
7e08d4ef RD |
37994 | static void *_p_wxToolbookTo_p_wxWindow(void *x) { |
37995 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x)); | |
37996 | } | |
d14a1e28 RD |
37997 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
37998 | return (void *)((wxWindow *) ((wxControl *) x)); | |
37999 | } | |
38000 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
38001 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
38002 | } | |
d14a1e28 RD |
38003 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { |
38004 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
38005 | } | |
38006 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
38007 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
38008 | } | |
7e08d4ef RD |
38009 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { |
38010 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
38011 | } | |
2ef75293 RD |
38012 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { |
38013 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
38014 | } | |
d14a1e28 RD |
38015 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { |
38016 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
38017 | } | |
38018 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
38019 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
38020 | } | |
38021 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
38022 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
38023 | } | |
38024 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
38025 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
38026 | } | |
38027 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
38028 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
38029 | } | |
2ef75293 | 38030 | static void *_p_wxChoicebookTo_p_wxWindow(void *x) { |
8ac8dba0 | 38031 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x)); |
2ef75293 | 38032 | } |
d14a1e28 | 38033 | static void *_p_wxListbookTo_p_wxWindow(void *x) { |
8ac8dba0 | 38034 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x)); |
d14a1e28 RD |
38035 | } |
38036 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
38037 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
38038 | } | |
38039 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
38040 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
38041 | } | |
38042 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
38043 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
38044 | } | |
38045 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
38046 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
38047 | } | |
38048 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
38049 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
38050 | } | |
38051 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
38052 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
38053 | } | |
38054 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
38055 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
38056 | } | |
38057 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
8ac8dba0 | 38058 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x)); |
d14a1e28 RD |
38059 | } |
38060 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
38061 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
38062 | } | |
38063 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
38064 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
38065 | } | |
38066 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
38067 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
38068 | } | |
38069 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
38070 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
38071 | } | |
38072 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
38073 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
38074 | } | |
7e08d4ef RD |
38075 | static void *_p_wxTreebookTo_p_wxWindow(void *x) { |
38076 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x)); | |
38077 | } | |
d14a1e28 RD |
38078 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { |
38079 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
38080 | } | |
38081 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
38082 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
38083 | } | |
38084 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
38085 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
38086 | } | |
38087 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
38088 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
38089 | } | |
53aa7709 RD |
38090 | static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) { |
38091 | return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x)); | |
38092 | } | |
d14a1e28 RD |
38093 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { |
38094 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
38095 | } | |
8ac8dba0 RD |
38096 | static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
38097 | return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); | |
38098 | } | |
38099 | static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
38100 | return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); | |
38101 | } | |
38102 | static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
38103 | return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
38104 | } | |
7e08d4ef RD |
38105 | static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) { |
38106 | return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
38107 | } | |
38108 | static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) { | |
38109 | return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
38110 | } | |
d14a1e28 RD |
38111 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { |
38112 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
38113 | } | |
d14a1e28 RD |
38114 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { |
38115 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
38116 | } | |
38117 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
38118 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
38119 | } | |
38120 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
38121 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
38122 | } | |
38123 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
38124 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
38125 | } | |
38126 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
38127 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
38128 | } | |
38129 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 38130 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x)); |
d14a1e28 RD |
38131 | } |
38132 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
8ac8dba0 | 38133 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x)); |
d14a1e28 | 38134 | } |
53aa7709 RD |
38135 | static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) { |
38136 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x)); | |
38137 | } | |
7e08d4ef RD |
38138 | static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) { |
38139 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x)); | |
38140 | } | |
38141 | static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) { | |
38142 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x)); | |
38143 | } | |
53aa7709 RD |
38144 | static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) { |
38145 | return (void *)((wxCommandEvent *) ((wxDateEvent *) x)); | |
38146 | } | |
d14a1e28 RD |
38147 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { |
38148 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
38149 | } | |
2ef75293 RD |
38150 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { |
38151 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
38152 | } | |
8ac8dba0 RD |
38153 | static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) { |
38154 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x)); | |
38155 | } | |
d14a1e28 RD |
38156 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { |
38157 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
38158 | } | |
d1e20054 RD |
38159 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
38160 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
38161 | } | |
d14a1e28 RD |
38162 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
38163 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
38164 | } | |
38165 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
38166 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
38167 | } | |
38168 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
38169 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
38170 | } | |
38171 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
38172 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
38173 | } | |
38174 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
38175 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
38176 | } | |
38177 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
38178 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
38179 | } | |
38180 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
38181 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
38182 | } | |
38183 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
38184 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
38185 | } | |
32fe5131 RD |
38186 | static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, 0}; |
38187 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, 0}; | |
38188 | static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, 0}; | |
38189 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0}; | |
38190 | static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, 0}; | |
38191 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, 0}; | |
38192 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, 0}; | |
38193 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, 0}; | |
38194 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, 0}; | |
38195 | static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, 0}; | |
38196 | static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, 0}; | |
38197 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, 0}; | |
38198 | static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, 0}; | |
38199 | static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, 0}; | |
38200 | static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, 0}; | |
38201 | static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, 0}; | |
38202 | static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, 0}; | |
38203 | static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, 0}; | |
38204 | static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, 0}; | |
38205 | static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, 0}; | |
38206 | static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, 0}; | |
38207 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, 0}; | |
38208 | static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, 0}; | |
38209 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, 0}; | |
38210 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0}; | |
38211 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0}; | |
38212 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0}; | |
38213 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0}; | |
38214 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0}; | |
38215 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0}; | |
38216 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0}; | |
38217 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0}; | |
38218 | static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, 0}; | |
38219 | static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, 0}; | |
38220 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, 0}; | |
38221 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, 0}; | |
38222 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, 0}; | |
38223 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, 0}; | |
38224 | static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, 0}; | |
38225 | static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, 0}; | |
38226 | static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, 0}; | |
38227 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0}; | |
38228 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, 0}; | |
38229 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0}; | |
38230 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0}; | |
38231 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0}; | |
38232 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0}; | |
38233 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0}; | |
38234 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0}; | |
38235 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0}; | |
38236 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0}; | |
38237 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0}; | |
38238 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0}; | |
38239 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0}; | |
38240 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0}; | |
38241 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0}; | |
38242 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0}; | |
38243 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0}; | |
7e08d4ef | 38244 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0}; |
32fe5131 RD |
38245 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0}; |
38246 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0}; | |
32fe5131 RD |
38247 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0}; |
38248 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0}; | |
38249 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0}; | |
38250 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0}; | |
38251 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0}; | |
38252 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0}; | |
38253 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, 0}; | |
38254 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0}; | |
38255 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0}; | |
38256 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0}; | |
38257 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0}; | |
38258 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, 0}; | |
38259 | static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, 0}; | |
38260 | static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, 0}; | |
38261 | static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, 0}; | |
38262 | static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, 0}; | |
38263 | static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, 0}; | |
38264 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, 0}; | |
38265 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, 0}; | |
38266 | static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, 0}; | |
38267 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, 0}; | |
38268 | static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, 0}; | |
38269 | static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, 0}; | |
38270 | static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, 0}; | |
38271 | static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, 0}; | |
38272 | static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, 0}; | |
38273 | static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, 0}; | |
38274 | static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, 0}; | |
38275 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, 0}; | |
38276 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, 0}; | |
38277 | static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, 0}; | |
38278 | static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, 0}; | |
38279 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, 0}; | |
38280 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, 0}; | |
38281 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0}; | |
38282 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0}; | |
38283 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0}; | |
38284 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0}; | |
38285 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0}; | |
38286 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0}; | |
38287 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0}; | |
38288 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0}; | |
38289 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0}; | |
38290 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0}; | |
38291 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0}; | |
38292 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0}; | |
38293 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0}; | |
32fe5131 RD |
38294 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0}; |
38295 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0}; | |
38296 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0}; | |
38297 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0}; | |
38298 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0}; | |
38299 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0}; | |
38300 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0}; | |
38301 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0}; | |
38302 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0}; | |
38303 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0}; | |
38304 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0}; | |
7e08d4ef RD |
38305 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0}; |
38306 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0}; | |
32fe5131 RD |
38307 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0}; |
38308 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0}; | |
38309 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0}; | |
38310 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0}; | |
38311 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, 0}; | |
38312 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, 0}; | |
38313 | static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, 0}; | |
38314 | static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, 0}; | |
38315 | static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, 0}; | |
38316 | static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, 0}; | |
38317 | static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, 0}; | |
38318 | static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, 0}; | |
38319 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, 0}; | |
38320 | static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, 0}; | |
38321 | static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, 0}; | |
38322 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, 0}; | |
38323 | static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, 0}; | |
38324 | static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, 0}; | |
38325 | static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, 0}; | |
38326 | static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, 0}; | |
38327 | static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, 0}; | |
38328 | static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, 0}; | |
38329 | static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, 0}; | |
38330 | static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, 0}; | |
38331 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, 0}; | |
38332 | static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, 0}; | |
38333 | static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, 0}; | |
38334 | static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, 0}; | |
38335 | static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, 0}; | |
38336 | static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, 0}; | |
38337 | static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, 0}; | |
38338 | static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, 0}; | |
7e08d4ef RD |
38339 | static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, 0}; |
38340 | static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, 0}; | |
38341 | static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, 0}; | |
32fe5131 RD |
38342 | static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, 0}; |
38343 | static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, 0}; | |
7e08d4ef RD |
38344 | static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, 0}; |
38345 | static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, 0}; | |
32fe5131 RD |
38346 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, 0}; |
38347 | static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, 0}; | |
38348 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, 0}; | |
38349 | static swig_type_info _swigt__ptrdiff_t = {"_ptrdiff_t", "ptrdiff_t", 0, 0, 0}; | |
38350 | static swig_type_info _swigt__std__ptrdiff_t = {"_std__ptrdiff_t", "std::ptrdiff_t", 0, 0, 0}; | |
38351 | static swig_type_info _swigt__unsigned_int = {"_unsigned_int", "unsigned int|std::size_t", 0, 0, 0}; | |
38352 | ||
38353 | static swig_type_info *swig_type_initial[] = { | |
38354 | &_swigt__p_bool, | |
38355 | &_swigt__p_char, | |
38356 | &_swigt__p_form_ops_t, | |
38357 | &_swigt__p_int, | |
38358 | &_swigt__p_long, | |
38359 | &_swigt__p_unsigned_char, | |
38360 | &_swigt__p_unsigned_int, | |
38361 | &_swigt__p_unsigned_long, | |
38362 | &_swigt__p_void, | |
38363 | &_swigt__p_wxANIHandler, | |
38364 | &_swigt__p_wxAcceleratorTable, | |
38365 | &_swigt__p_wxActivateEvent, | |
38366 | &_swigt__p_wxArrayInt, | |
38367 | &_swigt__p_wxArrayString, | |
38368 | &_swigt__p_wxBMPHandler, | |
38369 | &_swigt__p_wxBitmap, | |
38370 | &_swigt__p_wxBitmapButton, | |
38371 | &_swigt__p_wxBookCtrlBase, | |
38372 | &_swigt__p_wxBookCtrlBaseEvent, | |
38373 | &_swigt__p_wxBoxSizer, | |
38374 | &_swigt__p_wxButton, | |
38375 | &_swigt__p_wxCURHandler, | |
38376 | &_swigt__p_wxCheckBox, | |
38377 | &_swigt__p_wxCheckListBox, | |
38378 | &_swigt__p_wxChildFocusEvent, | |
38379 | &_swigt__p_wxChoice, | |
38380 | &_swigt__p_wxChoicebook, | |
38381 | &_swigt__p_wxChoicebookEvent, | |
38382 | &_swigt__p_wxCloseEvent, | |
38383 | &_swigt__p_wxColour, | |
38384 | &_swigt__p_wxComboBox, | |
38385 | &_swigt__p_wxCommandEvent, | |
38386 | &_swigt__p_wxContextHelp, | |
38387 | &_swigt__p_wxContextHelpButton, | |
38388 | &_swigt__p_wxContextMenuEvent, | |
38389 | &_swigt__p_wxControl, | |
38390 | &_swigt__p_wxControlWithItems, | |
38391 | &_swigt__p_wxCursor, | |
38392 | &_swigt__p_wxDC, | |
38393 | &_swigt__p_wxDateEvent, | |
38394 | &_swigt__p_wxDatePickerCtrl, | |
38395 | &_swigt__p_wxDateTime, | |
38396 | &_swigt__p_wxDirFilterListCtrl, | |
38397 | &_swigt__p_wxDisplayChangedEvent, | |
38398 | &_swigt__p_wxDropFilesEvent, | |
38399 | &_swigt__p_wxDuplexMode, | |
38400 | &_swigt__p_wxEraseEvent, | |
38401 | &_swigt__p_wxEvent, | |
38402 | &_swigt__p_wxEvtHandler, | |
38403 | &_swigt__p_wxFSFile, | |
38404 | &_swigt__p_wxFileSystem, | |
38405 | &_swigt__p_wxFlexGridSizer, | |
38406 | &_swigt__p_wxFocusEvent, | |
38407 | &_swigt__p_wxFont, | |
38408 | &_swigt__p_wxGBSizerItem, | |
38409 | &_swigt__p_wxGIFHandler, | |
38410 | &_swigt__p_wxGauge, | |
38411 | &_swigt__p_wxGenericDirCtrl, | |
38412 | &_swigt__p_wxGenericDragImage, | |
38413 | &_swigt__p_wxGridBagSizer, | |
38414 | &_swigt__p_wxGridSizer, | |
38415 | &_swigt__p_wxHelpEvent, | |
38416 | &_swigt__p_wxHelpProvider, | |
38417 | &_swigt__p_wxICOHandler, | |
38418 | &_swigt__p_wxIcon, | |
38419 | &_swigt__p_wxIconizeEvent, | |
38420 | &_swigt__p_wxIdleEvent, | |
38421 | &_swigt__p_wxImage, | |
38422 | &_swigt__p_wxImageHandler, | |
38423 | &_swigt__p_wxImageList, | |
38424 | &_swigt__p_wxIndividualLayoutConstraint, | |
38425 | &_swigt__p_wxInitDialogEvent, | |
38426 | &_swigt__p_wxItemContainer, | |
38427 | &_swigt__p_wxJPEGHandler, | |
38428 | &_swigt__p_wxKeyEvent, | |
38429 | &_swigt__p_wxLayoutConstraints, | |
38430 | &_swigt__p_wxListBox, | |
38431 | &_swigt__p_wxListEvent, | |
38432 | &_swigt__p_wxListItem, | |
38433 | &_swigt__p_wxListItemAttr, | |
38434 | &_swigt__p_wxListView, | |
38435 | &_swigt__p_wxListbook, | |
38436 | &_swigt__p_wxListbookEvent, | |
38437 | &_swigt__p_wxMaximizeEvent, | |
38438 | &_swigt__p_wxMemoryDC, | |
38439 | &_swigt__p_wxMenu, | |
38440 | &_swigt__p_wxMenuBar, | |
38441 | &_swigt__p_wxMenuEvent, | |
38442 | &_swigt__p_wxMenuItem, | |
38443 | &_swigt__p_wxMouseCaptureChangedEvent, | |
38444 | &_swigt__p_wxMouseEvent, | |
38445 | &_swigt__p_wxMoveEvent, | |
38446 | &_swigt__p_wxNavigationKeyEvent, | |
38447 | &_swigt__p_wxNcPaintEvent, | |
38448 | &_swigt__p_wxNotebook, | |
38449 | &_swigt__p_wxNotebookEvent, | |
38450 | &_swigt__p_wxNotifyEvent, | |
38451 | &_swigt__p_wxObject, | |
38452 | &_swigt__p_wxPCXHandler, | |
38453 | &_swigt__p_wxPNGHandler, | |
38454 | &_swigt__p_wxPNMHandler, | |
38455 | &_swigt__p_wxPaintEvent, | |
38456 | &_swigt__p_wxPaletteChangedEvent, | |
38457 | &_swigt__p_wxPaperSize, | |
38458 | &_swigt__p_wxPoint, | |
38459 | &_swigt__p_wxPyApp, | |
38460 | &_swigt__p_wxPyCommandEvent, | |
38461 | &_swigt__p_wxPyControl, | |
38462 | &_swigt__p_wxPyEvent, | |
38463 | &_swigt__p_wxPyImageHandler, | |
38464 | &_swigt__p_wxPyListCtrl, | |
38465 | &_swigt__p_wxPySizer, | |
38466 | &_swigt__p_wxPyTreeCtrl, | |
38467 | &_swigt__p_wxPyTreeItemData, | |
38468 | &_swigt__p_wxPyValidator, | |
38469 | &_swigt__p_wxQueryNewPaletteEvent, | |
38470 | &_swigt__p_wxRadioBox, | |
38471 | &_swigt__p_wxRadioButton, | |
38472 | &_swigt__p_wxRect, | |
38473 | &_swigt__p_wxScrollBar, | |
38474 | &_swigt__p_wxScrollEvent, | |
38475 | &_swigt__p_wxScrollWinEvent, | |
38476 | &_swigt__p_wxSetCursorEvent, | |
38477 | &_swigt__p_wxShowEvent, | |
38478 | &_swigt__p_wxSimpleHelpProvider, | |
38479 | &_swigt__p_wxSize, | |
38480 | &_swigt__p_wxSizeEvent, | |
38481 | &_swigt__p_wxSizer, | |
38482 | &_swigt__p_wxSizerItem, | |
38483 | &_swigt__p_wxSlider, | |
38484 | &_swigt__p_wxSpinButton, | |
38485 | &_swigt__p_wxSpinCtrl, | |
38486 | &_swigt__p_wxSpinEvent, | |
38487 | &_swigt__p_wxStaticBitmap, | |
38488 | &_swigt__p_wxStaticBox, | |
38489 | &_swigt__p_wxStaticBoxSizer, | |
38490 | &_swigt__p_wxStaticLine, | |
38491 | &_swigt__p_wxStaticText, | |
38492 | &_swigt__p_wxStdDialogButtonSizer, | |
38493 | &_swigt__p_wxString, | |
38494 | &_swigt__p_wxSysColourChangedEvent, | |
38495 | &_swigt__p_wxTIFFHandler, | |
38496 | &_swigt__p_wxTextAttr, | |
38497 | &_swigt__p_wxTextCtrl, | |
38498 | &_swigt__p_wxTextUrlEvent, | |
38499 | &_swigt__p_wxToggleButton, | |
38500 | &_swigt__p_wxToolBar, | |
38501 | &_swigt__p_wxToolBarBase, | |
38502 | &_swigt__p_wxToolBarToolBase, | |
7e08d4ef RD |
38503 | &_swigt__p_wxToolbook, |
38504 | &_swigt__p_wxToolbookEvent, | |
38505 | &_swigt__p_wxTreeCtrl, | |
32fe5131 RD |
38506 | &_swigt__p_wxTreeEvent, |
38507 | &_swigt__p_wxTreeItemId, | |
7e08d4ef RD |
38508 | &_swigt__p_wxTreebook, |
38509 | &_swigt__p_wxTreebookEvent, | |
32fe5131 RD |
38510 | &_swigt__p_wxUpdateUIEvent, |
38511 | &_swigt__p_wxValidator, | |
38512 | &_swigt__p_wxVisualAttributes, | |
38513 | &_swigt__p_wxWindow, | |
38514 | &_swigt__p_wxWindowCreateEvent, | |
38515 | &_swigt__p_wxWindowDestroyEvent, | |
38516 | &_swigt__p_wxXPMHandler, | |
38517 | &_swigt__ptrdiff_t, | |
38518 | &_swigt__std__ptrdiff_t, | |
38519 | &_swigt__unsigned_int, | |
38520 | }; | |
38521 | ||
38522 | static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; | |
38523 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; | |
38524 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
38525 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
38526 | static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; | |
38527 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
38528 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
38529 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
38530 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; | |
38531 | static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}}; | |
38532 | static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}}; | |
38533 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
38534 | static swig_cast_info _swigc__p_wxBitmapButton[] = { {&_swigt__p_wxBitmapButton, 0, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef RD |
38535 | static swig_cast_info _swigc__p_wxBookCtrlBase[] = { {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxBookCtrlBase, 0, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxBookCtrlBase, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0},{0, 0, 0, 0}}; |
38536 | static swig_cast_info _swigc__p_wxBookCtrlBaseEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, 0, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxBookCtrlBaseEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxBookCtrlBaseEvent, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
38537 | static swig_cast_info _swigc__p_wxButton[] = { {&_swigt__p_wxButton, 0, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxButton, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxButton, 0, 0},{0, 0, 0, 0}}; |
38538 | static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}}; | |
38539 | static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}}; | |
38540 | static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}}; | |
38541 | static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}}; | |
38542 | static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38543 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
38544 | static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}}; | |
38545 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38546 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38547 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38548 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38549 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38550 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38551 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38552 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef | 38553 | static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
38554 | static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}}; |
38555 | static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef | 38556 | static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
38557 | static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}}; |
38558 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
38559 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}}; | |
38560 | static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
38561 | static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}}; | |
38562 | static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
38563 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
38564 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38565 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38566 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38567 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38568 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38569 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38570 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38571 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38572 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38573 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38574 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38575 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38576 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38577 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38578 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef | 38579 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
38580 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; |
38581 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
38582 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; |
38583 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38584 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38585 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38586 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38587 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef | 38588 | static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
38589 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; |
38590 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
38591 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
38592 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef | 38593 | static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
38594 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; |
38595 | static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}}; | |
38596 | static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
38597 | static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}}; | |
38598 | static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38599 | static swig_cast_info _swigc__p_wxHelpProvider[] = { {&_swigt__p_wxHelpProvider, 0, 0, 0}, {&_swigt__p_wxSimpleHelpProvider, _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0},{0, 0, 0, 0}}; | |
38600 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; | |
38601 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
38602 | static swig_cast_info _swigc__p_wxItemContainer[] = { {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxItemContainer, 0, 0, 0},{0, 0, 0, 0}}; | |
38603 | static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38604 | static swig_cast_info _swigc__p_wxListBox[] = { {&_swigt__p_wxListBox, 0, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxListBox, 0, 0},{0, 0, 0, 0}}; | |
38605 | static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38606 | static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}}; | |
38607 | static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
38608 | static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}}; | |
38609 | static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}}; | |
38610 | static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38611 | static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; | |
38612 | static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38613 | static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}}; | |
38614 | static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef | 38615 | static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxNotifyEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
38616 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
38617 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
38618 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; | |
38619 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
38620 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
38621 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
38622 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
38623 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
38624 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
38625 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
38626 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
38627 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
38628 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
38629 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; |
38630 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38631 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38632 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38633 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38634 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38635 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38636 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38637 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38638 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
38639 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef RD |
38640 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; |
38641 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
38642 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
38643 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
38644 | static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
38645 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef | 38646 | static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarToolBase, _p_wxToolBarToolBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
38647 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; |
38648 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; | |
38649 | static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}}; | |
38650 | static swig_cast_info _swigc__p_wxPyListCtrl[] = { {&_swigt__p_wxPyListCtrl, 0, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxPyListCtrl, 0, 0},{0, 0, 0, 0}}; | |
38651 | static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
38652 | static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}}; | |
38653 | static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}}; | |
38654 | static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}}; | |
38655 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; | |
38656 | static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}}; | |
38657 | static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}}; | |
38658 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
38659 | static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}}; | |
38660 | static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}}; | |
38661 | static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
38662 | static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38663 | static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}}; | |
38664 | static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}}; | |
38665 | static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}}; | |
38666 | static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}}; | |
38667 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; | |
38668 | static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}}; | |
38669 | static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
38670 | static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38671 | static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}}; | |
38672 | static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}}; | |
38673 | static swig_cast_info _swigc__p_wxToolBarBase[] = { {&_swigt__p_wxToolBarBase, 0, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxToolBarBase, 0, 0},{0, 0, 0, 0}}; | |
38674 | static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef RD |
38675 | static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}}; |
38676 | static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
38677 | static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
38678 | static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}}; |
38679 | static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef RD |
38680 | static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}}; |
38681 | static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32fe5131 RD |
38682 | static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}}; |
38683 | static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}}; | |
7e08d4ef | 38684 | static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}}; |
32fe5131 RD |
38685 | static swig_cast_info _swigc__ptrdiff_t[] = { {&_swigt__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; |
38686 | static swig_cast_info _swigc__std__ptrdiff_t[] = { {&_swigt__std__ptrdiff_t, 0, 0, 0},{0, 0, 0, 0}}; | |
38687 | static swig_cast_info _swigc__unsigned_int[] = { {&_swigt__unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
38688 | ||
38689 | static swig_cast_info *swig_cast_initial[] = { | |
38690 | _swigc__p_bool, | |
38691 | _swigc__p_char, | |
38692 | _swigc__p_form_ops_t, | |
38693 | _swigc__p_int, | |
38694 | _swigc__p_long, | |
38695 | _swigc__p_unsigned_char, | |
38696 | _swigc__p_unsigned_int, | |
38697 | _swigc__p_unsigned_long, | |
38698 | _swigc__p_void, | |
38699 | _swigc__p_wxANIHandler, | |
38700 | _swigc__p_wxAcceleratorTable, | |
38701 | _swigc__p_wxActivateEvent, | |
38702 | _swigc__p_wxArrayInt, | |
38703 | _swigc__p_wxArrayString, | |
38704 | _swigc__p_wxBMPHandler, | |
38705 | _swigc__p_wxBitmap, | |
38706 | _swigc__p_wxBitmapButton, | |
38707 | _swigc__p_wxBookCtrlBase, | |
38708 | _swigc__p_wxBookCtrlBaseEvent, | |
38709 | _swigc__p_wxBoxSizer, | |
38710 | _swigc__p_wxButton, | |
38711 | _swigc__p_wxCURHandler, | |
38712 | _swigc__p_wxCheckBox, | |
38713 | _swigc__p_wxCheckListBox, | |
38714 | _swigc__p_wxChildFocusEvent, | |
38715 | _swigc__p_wxChoice, | |
38716 | _swigc__p_wxChoicebook, | |
38717 | _swigc__p_wxChoicebookEvent, | |
38718 | _swigc__p_wxCloseEvent, | |
38719 | _swigc__p_wxColour, | |
38720 | _swigc__p_wxComboBox, | |
38721 | _swigc__p_wxCommandEvent, | |
38722 | _swigc__p_wxContextHelp, | |
38723 | _swigc__p_wxContextHelpButton, | |
38724 | _swigc__p_wxContextMenuEvent, | |
38725 | _swigc__p_wxControl, | |
38726 | _swigc__p_wxControlWithItems, | |
38727 | _swigc__p_wxCursor, | |
38728 | _swigc__p_wxDC, | |
38729 | _swigc__p_wxDateEvent, | |
38730 | _swigc__p_wxDatePickerCtrl, | |
38731 | _swigc__p_wxDateTime, | |
38732 | _swigc__p_wxDirFilterListCtrl, | |
38733 | _swigc__p_wxDisplayChangedEvent, | |
38734 | _swigc__p_wxDropFilesEvent, | |
38735 | _swigc__p_wxDuplexMode, | |
38736 | _swigc__p_wxEraseEvent, | |
38737 | _swigc__p_wxEvent, | |
38738 | _swigc__p_wxEvtHandler, | |
38739 | _swigc__p_wxFSFile, | |
38740 | _swigc__p_wxFileSystem, | |
38741 | _swigc__p_wxFlexGridSizer, | |
38742 | _swigc__p_wxFocusEvent, | |
38743 | _swigc__p_wxFont, | |
38744 | _swigc__p_wxGBSizerItem, | |
38745 | _swigc__p_wxGIFHandler, | |
38746 | _swigc__p_wxGauge, | |
38747 | _swigc__p_wxGenericDirCtrl, | |
38748 | _swigc__p_wxGenericDragImage, | |
38749 | _swigc__p_wxGridBagSizer, | |
38750 | _swigc__p_wxGridSizer, | |
38751 | _swigc__p_wxHelpEvent, | |
38752 | _swigc__p_wxHelpProvider, | |
38753 | _swigc__p_wxICOHandler, | |
38754 | _swigc__p_wxIcon, | |
38755 | _swigc__p_wxIconizeEvent, | |
38756 | _swigc__p_wxIdleEvent, | |
38757 | _swigc__p_wxImage, | |
38758 | _swigc__p_wxImageHandler, | |
38759 | _swigc__p_wxImageList, | |
38760 | _swigc__p_wxIndividualLayoutConstraint, | |
38761 | _swigc__p_wxInitDialogEvent, | |
38762 | _swigc__p_wxItemContainer, | |
38763 | _swigc__p_wxJPEGHandler, | |
38764 | _swigc__p_wxKeyEvent, | |
38765 | _swigc__p_wxLayoutConstraints, | |
38766 | _swigc__p_wxListBox, | |
38767 | _swigc__p_wxListEvent, | |
38768 | _swigc__p_wxListItem, | |
38769 | _swigc__p_wxListItemAttr, | |
38770 | _swigc__p_wxListView, | |
38771 | _swigc__p_wxListbook, | |
38772 | _swigc__p_wxListbookEvent, | |
38773 | _swigc__p_wxMaximizeEvent, | |
38774 | _swigc__p_wxMemoryDC, | |
38775 | _swigc__p_wxMenu, | |
38776 | _swigc__p_wxMenuBar, | |
38777 | _swigc__p_wxMenuEvent, | |
38778 | _swigc__p_wxMenuItem, | |
38779 | _swigc__p_wxMouseCaptureChangedEvent, | |
38780 | _swigc__p_wxMouseEvent, | |
38781 | _swigc__p_wxMoveEvent, | |
38782 | _swigc__p_wxNavigationKeyEvent, | |
38783 | _swigc__p_wxNcPaintEvent, | |
38784 | _swigc__p_wxNotebook, | |
38785 | _swigc__p_wxNotebookEvent, | |
38786 | _swigc__p_wxNotifyEvent, | |
38787 | _swigc__p_wxObject, | |
38788 | _swigc__p_wxPCXHandler, | |
38789 | _swigc__p_wxPNGHandler, | |
38790 | _swigc__p_wxPNMHandler, | |
38791 | _swigc__p_wxPaintEvent, | |
38792 | _swigc__p_wxPaletteChangedEvent, | |
38793 | _swigc__p_wxPaperSize, | |
38794 | _swigc__p_wxPoint, | |
38795 | _swigc__p_wxPyApp, | |
38796 | _swigc__p_wxPyCommandEvent, | |
38797 | _swigc__p_wxPyControl, | |
38798 | _swigc__p_wxPyEvent, | |
38799 | _swigc__p_wxPyImageHandler, | |
38800 | _swigc__p_wxPyListCtrl, | |
38801 | _swigc__p_wxPySizer, | |
38802 | _swigc__p_wxPyTreeCtrl, | |
38803 | _swigc__p_wxPyTreeItemData, | |
38804 | _swigc__p_wxPyValidator, | |
38805 | _swigc__p_wxQueryNewPaletteEvent, | |
38806 | _swigc__p_wxRadioBox, | |
38807 | _swigc__p_wxRadioButton, | |
38808 | _swigc__p_wxRect, | |
38809 | _swigc__p_wxScrollBar, | |
38810 | _swigc__p_wxScrollEvent, | |
38811 | _swigc__p_wxScrollWinEvent, | |
38812 | _swigc__p_wxSetCursorEvent, | |
38813 | _swigc__p_wxShowEvent, | |
38814 | _swigc__p_wxSimpleHelpProvider, | |
38815 | _swigc__p_wxSize, | |
38816 | _swigc__p_wxSizeEvent, | |
38817 | _swigc__p_wxSizer, | |
38818 | _swigc__p_wxSizerItem, | |
38819 | _swigc__p_wxSlider, | |
38820 | _swigc__p_wxSpinButton, | |
38821 | _swigc__p_wxSpinCtrl, | |
38822 | _swigc__p_wxSpinEvent, | |
38823 | _swigc__p_wxStaticBitmap, | |
38824 | _swigc__p_wxStaticBox, | |
38825 | _swigc__p_wxStaticBoxSizer, | |
38826 | _swigc__p_wxStaticLine, | |
38827 | _swigc__p_wxStaticText, | |
38828 | _swigc__p_wxStdDialogButtonSizer, | |
38829 | _swigc__p_wxString, | |
38830 | _swigc__p_wxSysColourChangedEvent, | |
38831 | _swigc__p_wxTIFFHandler, | |
38832 | _swigc__p_wxTextAttr, | |
38833 | _swigc__p_wxTextCtrl, | |
38834 | _swigc__p_wxTextUrlEvent, | |
38835 | _swigc__p_wxToggleButton, | |
38836 | _swigc__p_wxToolBar, | |
38837 | _swigc__p_wxToolBarBase, | |
38838 | _swigc__p_wxToolBarToolBase, | |
7e08d4ef RD |
38839 | _swigc__p_wxToolbook, |
38840 | _swigc__p_wxToolbookEvent, | |
38841 | _swigc__p_wxTreeCtrl, | |
32fe5131 RD |
38842 | _swigc__p_wxTreeEvent, |
38843 | _swigc__p_wxTreeItemId, | |
7e08d4ef RD |
38844 | _swigc__p_wxTreebook, |
38845 | _swigc__p_wxTreebookEvent, | |
32fe5131 RD |
38846 | _swigc__p_wxUpdateUIEvent, |
38847 | _swigc__p_wxValidator, | |
38848 | _swigc__p_wxVisualAttributes, | |
38849 | _swigc__p_wxWindow, | |
38850 | _swigc__p_wxWindowCreateEvent, | |
38851 | _swigc__p_wxWindowDestroyEvent, | |
38852 | _swigc__p_wxXPMHandler, | |
38853 | _swigc__ptrdiff_t, | |
38854 | _swigc__std__ptrdiff_t, | |
38855 | _swigc__unsigned_int, | |
d14a1e28 RD |
38856 | }; |
38857 | ||
38858 | ||
38859 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
38860 | ||
38861 | static swig_const_info swig_const_table[] = { | |
c32bde28 | 38862 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
38863 | |
38864 | #ifdef __cplusplus | |
38865 | } | |
38866 | #endif | |
32fe5131 RD |
38867 | /************************************************************************* |
38868 | * Type initialization: | |
38869 | * This problem is tough by the requirement that no dynamic | |
38870 | * memory is used. Also, since swig_type_info structures store pointers to | |
38871 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
38872 | * to swig_type_info structures, we need some lookup code at initialization. | |
38873 | * The idea is that swig generates all the structures that are needed. | |
38874 | * The runtime then collects these partially filled structures. | |
38875 | * The SWIG_InitializeModule function takes these initial arrays out of | |
38876 | * swig_module, and does all the lookup, filling in the swig_module.types | |
38877 | * array with the correct data and linking the correct swig_cast_info | |
38878 | * structures together. | |
38879 | ||
38880 | * The generated swig_type_info structures are assigned staticly to an initial | |
38881 | * array. We just loop though that array, and handle each type individually. | |
38882 | * First we lookup if this type has been already loaded, and if so, use the | |
38883 | * loaded structure instead of the generated one. Then we have to fill in the | |
38884 | * cast linked list. The cast data is initially stored in something like a | |
38885 | * two-dimensional array. Each row corresponds to a type (there are the same | |
38886 | * number of rows as there are in the swig_type_initial array). Each entry in | |
38887 | * a column is one of the swig_cast_info structures for that type. | |
38888 | * The cast_initial array is actually an array of arrays, because each row has | |
38889 | * a variable number of columns. So to actually build the cast linked list, | |
38890 | * we find the array of casts associated with the type, and loop through it | |
38891 | * adding the casts to the list. The one last trick we need to do is making | |
38892 | * sure the type pointer in the swig_cast_info struct is correct. | |
38893 | ||
38894 | * First off, we lookup the cast->type name to see if it is already loaded. | |
38895 | * There are three cases to handle: | |
38896 | * 1) If the cast->type has already been loaded AND the type we are adding | |
38897 | * casting info to has not been loaded (it is in this module), THEN we | |
38898 | * replace the cast->type pointer with the type pointer that has already | |
38899 | * been loaded. | |
38900 | * 2) If BOTH types (the one we are adding casting info to, and the | |
38901 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
38902 | * the previous module so we just ignore it. | |
38903 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
38904 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
38905 | * be correct. | |
38906 | **/ | |
38907 | ||
38908 | #ifdef __cplusplus | |
38909 | extern "C" { | |
38910 | #if 0 | |
38911 | } /* c-mode */ | |
38912 | #endif | |
38913 | #endif | |
38914 | ||
38915 | #if 0 | |
38916 | #define SWIGRUNTIME_DEBUG | |
38917 | #endif | |
38918 | ||
38919 | SWIGRUNTIME void | |
38920 | SWIG_InitializeModule(void *clientdata) { | |
38921 | size_t i; | |
38922 | swig_module_info *module_head; | |
38923 | static int init_run = 0; | |
38924 | ||
38925 | clientdata = clientdata; | |
38926 | ||
38927 | if (init_run) return; | |
38928 | init_run = 1; | |
38929 | ||
38930 | /* Initialize the swig_module */ | |
38931 | swig_module.type_initial = swig_type_initial; | |
38932 | swig_module.cast_initial = swig_cast_initial; | |
38933 | ||
38934 | /* Try and load any already created modules */ | |
38935 | module_head = SWIG_GetModule(clientdata); | |
38936 | if (module_head) { | |
38937 | swig_module.next = module_head->next; | |
38938 | module_head->next = &swig_module; | |
38939 | } else { | |
38940 | /* This is the first module loaded */ | |
38941 | swig_module.next = &swig_module; | |
38942 | SWIG_SetModule(clientdata, &swig_module); | |
38943 | } | |
38944 | ||
38945 | /* Now work on filling in swig_module.types */ | |
38946 | #ifdef SWIGRUNTIME_DEBUG | |
38947 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
38948 | #endif | |
38949 | for (i = 0; i < swig_module.size; ++i) { | |
38950 | swig_type_info *type = 0; | |
38951 | swig_type_info *ret; | |
38952 | swig_cast_info *cast; | |
38953 | ||
38954 | #ifdef SWIGRUNTIME_DEBUG | |
38955 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
38956 | #endif | |
38957 | ||
38958 | /* if there is another module already loaded */ | |
38959 | if (swig_module.next != &swig_module) { | |
38960 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
38961 | } | |
38962 | if (type) { | |
38963 | /* Overwrite clientdata field */ | |
38964 | #ifdef SWIGRUNTIME_DEBUG | |
38965 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
38966 | #endif | |
38967 | if (swig_module.type_initial[i]->clientdata) { | |
38968 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
38969 | #ifdef SWIGRUNTIME_DEBUG | |
38970 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
38971 | #endif | |
38972 | } | |
38973 | } else { | |
38974 | type = swig_module.type_initial[i]; | |
38975 | } | |
38976 | ||
38977 | /* Insert casting types */ | |
38978 | cast = swig_module.cast_initial[i]; | |
38979 | while (cast->type) { | |
38980 | /* Don't need to add information already in the list */ | |
38981 | ret = 0; | |
38982 | #ifdef SWIGRUNTIME_DEBUG | |
38983 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
38984 | #endif | |
38985 | if (swig_module.next != &swig_module) { | |
38986 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
38987 | #ifdef SWIGRUNTIME_DEBUG | |
38988 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
38989 | #endif | |
38990 | } | |
38991 | if (ret) { | |
38992 | if (type == swig_module.type_initial[i]) { | |
38993 | #ifdef SWIGRUNTIME_DEBUG | |
38994 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
38995 | #endif | |
38996 | cast->type = ret; | |
38997 | ret = 0; | |
38998 | } else { | |
38999 | /* Check for casting already in the list */ | |
39000 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
39001 | #ifdef SWIGRUNTIME_DEBUG | |
39002 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
39003 | #endif | |
39004 | if (!ocast) ret = 0; | |
39005 | } | |
39006 | } | |
39007 | ||
39008 | if (!ret) { | |
39009 | #ifdef SWIGRUNTIME_DEBUG | |
39010 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
39011 | #endif | |
39012 | if (type->cast) { | |
39013 | type->cast->prev = cast; | |
39014 | cast->next = type->cast; | |
39015 | } | |
39016 | type->cast = cast; | |
39017 | } | |
39018 | cast++; | |
39019 | } | |
39020 | /* Set entry in modules->types array equal to the type */ | |
39021 | swig_module.types[i] = type; | |
39022 | } | |
39023 | swig_module.types[i] = 0; | |
39024 | ||
39025 | #ifdef SWIGRUNTIME_DEBUG | |
39026 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
39027 | for (i = 0; i < swig_module.size; ++i) { | |
39028 | int j = 0; | |
39029 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
39030 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
39031 | while (cast->type) { | |
39032 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
39033 | cast++; | |
39034 | ++j; | |
39035 | } | |
39036 | printf("---- Total casts: %d\n",j); | |
39037 | } | |
39038 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
39039 | #endif | |
39040 | } | |
39041 | ||
39042 | /* This function will propagate the clientdata field of type to | |
39043 | * any new swig_type_info structures that have been added into the list | |
39044 | * of equivalent types. It is like calling | |
39045 | * SWIG_TypeClientData(type, clientdata) a second time. | |
39046 | */ | |
39047 | SWIGRUNTIME void | |
39048 | SWIG_PropagateClientData(void) { | |
39049 | size_t i; | |
39050 | swig_cast_info *equiv; | |
39051 | static int init_run = 0; | |
39052 | ||
39053 | if (init_run) return; | |
39054 | init_run = 1; | |
39055 | ||
39056 | for (i = 0; i < swig_module.size; i++) { | |
39057 | if (swig_module.types[i]->clientdata) { | |
39058 | equiv = swig_module.types[i]->cast; | |
39059 | while (equiv) { | |
39060 | if (!equiv->converter) { | |
39061 | if (equiv->type && !equiv->type->clientdata) | |
39062 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
39063 | } | |
39064 | equiv = equiv->next; | |
39065 | } | |
39066 | } | |
39067 | } | |
39068 | } | |
39069 | ||
39070 | #ifdef __cplusplus | |
39071 | #if 0 | |
39072 | { | |
39073 | /* c-mode */ | |
39074 | #endif | |
39075 | } | |
39076 | #endif | |
39077 | ||
d14a1e28 | 39078 | |
093d3ff1 RD |
39079 | |
39080 | #ifdef __cplusplus | |
39081 | extern "C" { | |
39082 | #endif | |
39083 | ||
39084 | /* Python-specific SWIG API */ | |
39085 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
39086 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
39087 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
39088 | ||
39089 | /* ----------------------------------------------------------------------------- | |
39090 | * global variable support code. | |
39091 | * ----------------------------------------------------------------------------- */ | |
39092 | ||
39093 | typedef struct swig_globalvar { | |
39094 | char *name; /* Name of global variable */ | |
32fe5131 | 39095 | PyObject *(*get_attr)(void); /* Return the current value */ |
093d3ff1 RD |
39096 | int (*set_attr)(PyObject *); /* Set the value */ |
39097 | struct swig_globalvar *next; | |
39098 | } swig_globalvar; | |
39099 | ||
39100 | typedef struct swig_varlinkobject { | |
39101 | PyObject_HEAD | |
39102 | swig_globalvar *vars; | |
39103 | } swig_varlinkobject; | |
39104 | ||
32fe5131 | 39105 | SWIGINTERN PyObject * |
093d3ff1 RD |
39106 | swig_varlink_repr(swig_varlinkobject *v) { |
39107 | v = v; | |
39108 | return PyString_FromString("<Swig global variables>"); | |
39109 | } | |
39110 | ||
32fe5131 | 39111 | SWIGINTERN int |
093d3ff1 RD |
39112 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) { |
39113 | swig_globalvar *var; | |
39114 | flags = flags; | |
39115 | fprintf(fp,"Swig global variables { "); | |
39116 | for (var = v->vars; var; var=var->next) { | |
39117 | fprintf(fp,"%s", var->name); | |
39118 | if (var->next) fprintf(fp,", "); | |
39119 | } | |
39120 | fprintf(fp," }\n"); | |
39121 | return 0; | |
39122 | } | |
39123 | ||
32fe5131 | 39124 | SWIGINTERN PyObject * |
093d3ff1 RD |
39125 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
39126 | swig_globalvar *var = v->vars; | |
39127 | while (var) { | |
39128 | if (strcmp(var->name,n) == 0) { | |
39129 | return (*var->get_attr)(); | |
39130 | } | |
39131 | var = var->next; | |
39132 | } | |
39133 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
39134 | return NULL; | |
39135 | } | |
39136 | ||
32fe5131 | 39137 | SWIGINTERN int |
093d3ff1 RD |
39138 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
39139 | swig_globalvar *var = v->vars; | |
39140 | while (var) { | |
39141 | if (strcmp(var->name,n) == 0) { | |
39142 | return (*var->set_attr)(p); | |
39143 | } | |
39144 | var = var->next; | |
39145 | } | |
39146 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
39147 | return 1; | |
39148 | } | |
39149 | ||
32fe5131 RD |
39150 | SWIGINTERN PyTypeObject* |
39151 | swig_varlink_type(void) { | |
39152 | static char varlink__doc__[] = "Swig var link object"; | |
39153 | static PyTypeObject varlink_type | |
39154 | #if !defined(__cplusplus) | |
39155 | ; | |
39156 | static int type_init = 0; | |
39157 | if (!type_init) { | |
39158 | PyTypeObject tmp | |
39159 | #endif | |
39160 | = { | |
39161 | PyObject_HEAD_INIT(&PyType_Type) | |
39162 | 0, /* Number of items in variable part (ob_size) */ | |
39163 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
39164 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
39165 | 0, /* Itemsize (tp_itemsize) */ | |
39166 | 0, /* Deallocator (tp_dealloc) */ | |
39167 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
39168 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
39169 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
39170 | 0, /* tp_compare */ | |
39171 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
39172 | 0, /* tp_as_number */ | |
39173 | 0, /* tp_as_sequence */ | |
39174 | 0, /* tp_as_mapping */ | |
39175 | 0, /* tp_hash */ | |
39176 | 0, /* tp_call */ | |
39177 | 0, /* tp_str */ | |
39178 | 0, /* tp_getattro */ | |
39179 | 0, /* tp_setattro */ | |
39180 | 0, /* tp_as_buffer */ | |
39181 | 0, /* tp_flags */ | |
39182 | varlink__doc__, /* tp_doc */ | |
093d3ff1 | 39183 | #if PY_VERSION_HEX >= 0x02000000 |
32fe5131 RD |
39184 | 0, /* tp_traverse */ |
39185 | 0, /* tp_clear */ | |
093d3ff1 RD |
39186 | #endif |
39187 | #if PY_VERSION_HEX >= 0x02010000 | |
32fe5131 RD |
39188 | 0, /* tp_richcompare */ |
39189 | 0, /* tp_weaklistoffset */ | |
093d3ff1 RD |
39190 | #endif |
39191 | #if PY_VERSION_HEX >= 0x02020000 | |
32fe5131 | 39192 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
093d3ff1 RD |
39193 | #endif |
39194 | #if PY_VERSION_HEX >= 0x02030000 | |
32fe5131 | 39195 | 0, /* tp_del */ |
093d3ff1 RD |
39196 | #endif |
39197 | #ifdef COUNT_ALLOCS | |
32fe5131 | 39198 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 39199 | #endif |
32fe5131 RD |
39200 | }; |
39201 | #if !defined(__cplusplus) | |
39202 | varlink_type = tmp; | |
39203 | type_init = 1; | |
39204 | } | |
39205 | #endif | |
39206 | return &varlink_type; | |
39207 | } | |
093d3ff1 RD |
39208 | |
39209 | /* Create a variable linking object for use later */ | |
32fe5131 | 39210 | SWIGINTERN PyObject * |
093d3ff1 | 39211 | SWIG_Python_newvarlink(void) { |
32fe5131 RD |
39212 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); |
39213 | if (result) { | |
39214 | result->vars = 0; | |
39215 | } | |
093d3ff1 RD |
39216 | return ((PyObject*) result); |
39217 | } | |
39218 | ||
32fe5131 | 39219 | SWIGINTERN void |
093d3ff1 | 39220 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
32fe5131 RD |
39221 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
39222 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
39223 | if (gv) { | |
39224 | size_t size = strlen(name)+1; | |
39225 | gv->name = (char *)malloc(size); | |
39226 | if (gv->name) { | |
39227 | strncpy(gv->name,name,size); | |
39228 | gv->get_attr = get_attr; | |
39229 | gv->set_attr = set_attr; | |
39230 | gv->next = v->vars; | |
39231 | } | |
39232 | } | |
093d3ff1 RD |
39233 | v->vars = gv; |
39234 | } | |
39235 | ||
39236 | /* ----------------------------------------------------------------------------- | |
39237 | * constants/methods manipulation | |
39238 | * ----------------------------------------------------------------------------- */ | |
39239 | ||
39240 | /* Install Constants */ | |
32fe5131 | 39241 | SWIGINTERN void |
093d3ff1 RD |
39242 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
39243 | PyObject *obj = 0; | |
39244 | size_t i; | |
32fe5131 | 39245 | for (i = 0; constants[i].type; ++i) { |
093d3ff1 RD |
39246 | switch(constants[i].type) { |
39247 | case SWIG_PY_INT: | |
39248 | obj = PyInt_FromLong(constants[i].lvalue); | |
39249 | break; | |
39250 | case SWIG_PY_FLOAT: | |
39251 | obj = PyFloat_FromDouble(constants[i].dvalue); | |
39252 | break; | |
39253 | case SWIG_PY_STRING: | |
39254 | if (constants[i].pvalue) { | |
39255 | obj = PyString_FromString((char *) constants[i].pvalue); | |
39256 | } else { | |
39257 | Py_INCREF(Py_None); | |
39258 | obj = Py_None; | |
39259 | } | |
39260 | break; | |
39261 | case SWIG_PY_POINTER: | |
39262 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
39263 | break; | |
39264 | case SWIG_PY_BINARY: | |
39265 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
39266 | break; | |
39267 | default: | |
39268 | obj = 0; | |
39269 | break; | |
39270 | } | |
39271 | if (obj) { | |
39272 | PyDict_SetItemString(d,constants[i].name,obj); | |
39273 | Py_DECREF(obj); | |
39274 | } | |
39275 | } | |
39276 | } | |
39277 | ||
39278 | /* -----------------------------------------------------------------------------*/ | |
39279 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
39280 | /* -----------------------------------------------------------------------------*/ | |
39281 | ||
32fe5131 | 39282 | SWIGINTERN void |
093d3ff1 RD |
39283 | SWIG_Python_FixMethods(PyMethodDef *methods, |
39284 | swig_const_info *const_table, | |
39285 | swig_type_info **types, | |
39286 | swig_type_info **types_initial) { | |
39287 | size_t i; | |
39288 | for (i = 0; methods[i].ml_name; ++i) { | |
39289 | char *c = methods[i].ml_doc; | |
39290 | if (c && (c = strstr(c, "swig_ptr: "))) { | |
39291 | int j; | |
39292 | swig_const_info *ci = 0; | |
39293 | char *name = c + 10; | |
32fe5131 | 39294 | for (j = 0; const_table[j].type; ++j) { |
093d3ff1 RD |
39295 | if (strncmp(const_table[j].name, name, |
39296 | strlen(const_table[j].name)) == 0) { | |
39297 | ci = &(const_table[j]); | |
39298 | break; | |
39299 | } | |
39300 | } | |
39301 | if (ci) { | |
39302 | size_t shift = (ci->ptype) - types; | |
39303 | swig_type_info *ty = types_initial[shift]; | |
39304 | size_t ldoc = (c - methods[i].ml_doc); | |
39305 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
39306 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
32fe5131 RD |
39307 | if (ndoc) { |
39308 | char *buff = ndoc; | |
39309 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
39310 | if (ptr) { | |
39311 | strncpy(buff, methods[i].ml_doc, ldoc); | |
39312 | buff += ldoc; | |
39313 | strncpy(buff, "swig_ptr: ", 10); | |
39314 | buff += 10; | |
39315 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
39316 | methods[i].ml_doc = ndoc; | |
39317 | } | |
39318 | } | |
093d3ff1 RD |
39319 | } |
39320 | } | |
39321 | } | |
39322 | } | |
39323 | ||
39324 | /* -----------------------------------------------------------------------------* | |
39325 | * Initialize type list | |
39326 | * -----------------------------------------------------------------------------*/ | |
39327 | ||
093d3ff1 RD |
39328 | #ifdef __cplusplus |
39329 | } | |
39330 | #endif | |
39331 | ||
39332 | /* -----------------------------------------------------------------------------* | |
39333 | * Partial Init method | |
39334 | * -----------------------------------------------------------------------------*/ | |
39335 | ||
d14a1e28 RD |
39336 | #ifdef __cplusplus |
39337 | extern "C" | |
39338 | #endif | |
32fe5131 | 39339 | SWIGEXPORT void SWIG_init(void) { |
d14a1e28 | 39340 | static PyObject *SWIG_globals = 0; |
d14a1e28 | 39341 | PyObject *m, *d; |
d14a1e28 | 39342 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); |
093d3ff1 RD |
39343 | |
39344 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
32fe5131 | 39345 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
093d3ff1 | 39346 | |
d14a1e28 RD |
39347 | m = Py_InitModule((char *) SWIG_name, SwigMethods); |
39348 | d = PyModule_GetDict(m); | |
39349 | ||
32fe5131 | 39350 | SWIG_InitializeModule(0); |
d14a1e28 RD |
39351 | SWIG_InstallConstants(d,swig_const_table); |
39352 | ||
b2dc1044 RD |
39353 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
39354 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
093d3ff1 | 39355 | { |
32fe5131 | 39356 | PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int(static_cast<int >(wxBU_LEFT))); |
093d3ff1 RD |
39357 | } |
39358 | { | |
32fe5131 | 39359 | PyDict_SetItemString(d,"BU_TOP", SWIG_From_int(static_cast<int >(wxBU_TOP))); |
093d3ff1 RD |
39360 | } |
39361 | { | |
32fe5131 | 39362 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int(static_cast<int >(wxBU_RIGHT))); |
093d3ff1 RD |
39363 | } |
39364 | { | |
32fe5131 | 39365 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int(static_cast<int >(wxBU_BOTTOM))); |
093d3ff1 RD |
39366 | } |
39367 | { | |
32fe5131 | 39368 | PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int(static_cast<int >(wxBU_ALIGN_MASK))); |
093d3ff1 RD |
39369 | } |
39370 | { | |
32fe5131 | 39371 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int(static_cast<int >(wxBU_EXACTFIT))); |
093d3ff1 RD |
39372 | } |
39373 | { | |
32fe5131 | 39374 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int(static_cast<int >(wxBU_AUTODRAW))); |
093d3ff1 | 39375 | } |
b2dc1044 | 39376 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
093d3ff1 | 39377 | { |
32fe5131 | 39378 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int(static_cast<int >(wxCHK_2STATE))); |
093d3ff1 RD |
39379 | } |
39380 | { | |
32fe5131 | 39381 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int(static_cast<int >(wxCHK_3STATE))); |
093d3ff1 RD |
39382 | } |
39383 | { | |
32fe5131 | 39384 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int(static_cast<int >(wxCHK_ALLOW_3RD_STATE_FOR_USER))); |
093d3ff1 RD |
39385 | } |
39386 | { | |
32fe5131 | 39387 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int(static_cast<int >(wxCHK_UNCHECKED))); |
093d3ff1 RD |
39388 | } |
39389 | { | |
32fe5131 | 39390 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int(static_cast<int >(wxCHK_CHECKED))); |
093d3ff1 RD |
39391 | } |
39392 | { | |
32fe5131 | 39393 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int(static_cast<int >(wxCHK_UNDETERMINED))); |
093d3ff1 | 39394 | } |
b2dc1044 RD |
39395 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
39396 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
39397 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
093d3ff1 | 39398 | { |
32fe5131 | 39399 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int(static_cast<int >(wxGA_HORIZONTAL))); |
093d3ff1 RD |
39400 | } |
39401 | { | |
32fe5131 | 39402 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int(static_cast<int >(wxGA_VERTICAL))); |
093d3ff1 RD |
39403 | } |
39404 | { | |
32fe5131 | 39405 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int(static_cast<int >(wxGA_SMOOTH))); |
093d3ff1 RD |
39406 | } |
39407 | { | |
32fe5131 | 39408 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int(static_cast<int >(wxGA_PROGRESSBAR))); |
093d3ff1 | 39409 | } |
b2dc1044 RD |
39410 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
39411 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
39412 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
39413 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
39414 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
093d3ff1 | 39415 | { |
32fe5131 | 39416 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int(static_cast<int >(wxTE_NO_VSCROLL))); |
093d3ff1 RD |
39417 | } |
39418 | { | |
32fe5131 | 39419 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int(static_cast<int >(wxTE_AUTO_SCROLL))); |
093d3ff1 RD |
39420 | } |
39421 | { | |
32fe5131 | 39422 | PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int(static_cast<int >(wxTE_READONLY))); |
093d3ff1 RD |
39423 | } |
39424 | { | |
32fe5131 | 39425 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int(static_cast<int >(wxTE_MULTILINE))); |
093d3ff1 RD |
39426 | } |
39427 | { | |
32fe5131 | 39428 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int(static_cast<int >(wxTE_PROCESS_TAB))); |
093d3ff1 RD |
39429 | } |
39430 | { | |
32fe5131 | 39431 | PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int(static_cast<int >(wxTE_LEFT))); |
093d3ff1 RD |
39432 | } |
39433 | { | |
32fe5131 | 39434 | PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int(static_cast<int >(wxTE_CENTER))); |
093d3ff1 RD |
39435 | } |
39436 | { | |
32fe5131 | 39437 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int(static_cast<int >(wxTE_RIGHT))); |
093d3ff1 RD |
39438 | } |
39439 | { | |
32fe5131 | 39440 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int(static_cast<int >(wxTE_CENTRE))); |
093d3ff1 RD |
39441 | } |
39442 | { | |
32fe5131 | 39443 | PyDict_SetItemString(d,"TE_RICH", SWIG_From_int(static_cast<int >(wxTE_RICH))); |
093d3ff1 RD |
39444 | } |
39445 | { | |
32fe5131 | 39446 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int(static_cast<int >(wxTE_PROCESS_ENTER))); |
093d3ff1 RD |
39447 | } |
39448 | { | |
32fe5131 | 39449 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int(static_cast<int >(wxTE_PASSWORD))); |
093d3ff1 RD |
39450 | } |
39451 | { | |
32fe5131 | 39452 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int(static_cast<int >(wxTE_AUTO_URL))); |
093d3ff1 RD |
39453 | } |
39454 | { | |
32fe5131 | 39455 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int(static_cast<int >(wxTE_NOHIDESEL))); |
093d3ff1 RD |
39456 | } |
39457 | { | |
32fe5131 | 39458 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int(static_cast<int >(wxTE_DONTWRAP))); |
093d3ff1 RD |
39459 | } |
39460 | { | |
32fe5131 | 39461 | PyDict_SetItemString(d,"TE_CHARWRAP", SWIG_From_int(static_cast<int >(wxTE_CHARWRAP))); |
093d3ff1 RD |
39462 | } |
39463 | { | |
32fe5131 | 39464 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int(static_cast<int >(wxTE_WORDWRAP))); |
093d3ff1 | 39465 | } |
08d9e66e | 39466 | { |
32fe5131 | 39467 | PyDict_SetItemString(d,"TE_BESTWRAP", SWIG_From_int(static_cast<int >(wxTE_BESTWRAP))); |
08d9e66e RD |
39468 | } |
39469 | { | |
32fe5131 | 39470 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int(static_cast<int >(wxTE_LINEWRAP))); |
08d9e66e | 39471 | } |
093d3ff1 | 39472 | { |
32fe5131 | 39473 | PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int(static_cast<int >(wxTE_RICH2))); |
093d3ff1 | 39474 | } |
88c6b281 | 39475 | { |
32fe5131 | 39476 | PyDict_SetItemString(d,"TE_CAPITALIZE", SWIG_From_int(static_cast<int >(wxTE_CAPITALIZE))); |
88c6b281 | 39477 | } |
093d3ff1 | 39478 | { |
32fe5131 | 39479 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_DEFAULT))); |
093d3ff1 RD |
39480 | } |
39481 | { | |
32fe5131 | 39482 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_LEFT))); |
093d3ff1 RD |
39483 | } |
39484 | { | |
32fe5131 | 39485 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_CENTRE))); |
093d3ff1 RD |
39486 | } |
39487 | { | |
32fe5131 | 39488 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_CENTER))); |
093d3ff1 RD |
39489 | } |
39490 | { | |
32fe5131 | 39491 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_RIGHT))); |
093d3ff1 RD |
39492 | } |
39493 | { | |
32fe5131 | 39494 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int(static_cast<int >(wxTEXT_ALIGNMENT_JUSTIFIED))); |
093d3ff1 RD |
39495 | } |
39496 | { | |
32fe5131 | 39497 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_TEXT_COLOUR))); |
093d3ff1 RD |
39498 | } |
39499 | { | |
32fe5131 | 39500 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_BACKGROUND_COLOUR))); |
093d3ff1 RD |
39501 | } |
39502 | { | |
32fe5131 | 39503 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_FACE))); |
093d3ff1 RD |
39504 | } |
39505 | { | |
32fe5131 | 39506 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_SIZE))); |
093d3ff1 RD |
39507 | } |
39508 | { | |
32fe5131 | 39509 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_WEIGHT))); |
093d3ff1 RD |
39510 | } |
39511 | { | |
32fe5131 | 39512 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_ITALIC))); |
093d3ff1 RD |
39513 | } |
39514 | { | |
32fe5131 | 39515 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT_UNDERLINE))); |
093d3ff1 RD |
39516 | } |
39517 | { | |
32fe5131 | 39518 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_FONT))); |
093d3ff1 RD |
39519 | } |
39520 | { | |
32fe5131 | 39521 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_ALIGNMENT))); |
093d3ff1 RD |
39522 | } |
39523 | { | |
32fe5131 | 39524 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_LEFT_INDENT))); |
093d3ff1 RD |
39525 | } |
39526 | { | |
32fe5131 | 39527 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_RIGHT_INDENT))); |
093d3ff1 RD |
39528 | } |
39529 | { | |
32fe5131 | 39530 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int(static_cast<int >(wxTEXT_ATTR_TABS))); |
093d3ff1 RD |
39531 | } |
39532 | { | |
32fe5131 | 39533 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int(static_cast<int >(wxTE_HT_UNKNOWN))); |
093d3ff1 RD |
39534 | } |
39535 | { | |
32fe5131 | 39536 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int(static_cast<int >(wxTE_HT_BEFORE))); |
093d3ff1 RD |
39537 | } |
39538 | { | |
32fe5131 | 39539 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int(static_cast<int >(wxTE_HT_ON_TEXT))); |
093d3ff1 RD |
39540 | } |
39541 | { | |
32fe5131 | 39542 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int(static_cast<int >(wxTE_HT_BELOW))); |
093d3ff1 RD |
39543 | } |
39544 | { | |
32fe5131 | 39545 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int(static_cast<int >(wxTE_HT_BEYOND))); |
093d3ff1 | 39546 | } |
7557b9b5 | 39547 | { |
32fe5131 | 39548 | PyDict_SetItemString(d,"OutOfRangeTextCoord", SWIG_From_int(static_cast<int >(wxOutOfRangeTextCoord))); |
7557b9b5 RD |
39549 | } |
39550 | { | |
32fe5131 | 39551 | PyDict_SetItemString(d,"InvalidTextCoord", SWIG_From_int(static_cast<int >(wxInvalidTextCoord))); |
7557b9b5 | 39552 | } |
d14a1e28 RD |
39553 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
39554 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
39555 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
39556 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
39557 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
39558 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
39559 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
093d3ff1 | 39560 | { |
32fe5131 | 39561 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int(static_cast<int >(wxSP_HORIZONTAL))); |
093d3ff1 RD |
39562 | } |
39563 | { | |
32fe5131 | 39564 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int(static_cast<int >(wxSP_VERTICAL))); |
093d3ff1 RD |
39565 | } |
39566 | { | |
32fe5131 | 39567 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int(static_cast<int >(wxSP_ARROW_KEYS))); |
093d3ff1 RD |
39568 | } |
39569 | { | |
32fe5131 | 39570 | PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int(static_cast<int >(wxSP_WRAP))); |
093d3ff1 | 39571 | } |
d14a1e28 | 39572 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
39573 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
39574 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
39575 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
7557b9b5 | 39576 | { |
32fe5131 | 39577 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int(static_cast<int >(wxSL_HORIZONTAL))); |
7557b9b5 RD |
39578 | } |
39579 | { | |
32fe5131 | 39580 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int(static_cast<int >(wxSL_VERTICAL))); |
7557b9b5 | 39581 | } |
70b7a5fe | 39582 | { |
32fe5131 | 39583 | PyDict_SetItemString(d,"SL_TICKS", SWIG_From_int(static_cast<int >(wxSL_TICKS))); |
70b7a5fe | 39584 | } |
7557b9b5 | 39585 | { |
32fe5131 | 39586 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int(static_cast<int >(wxSL_AUTOTICKS))); |
7557b9b5 RD |
39587 | } |
39588 | { | |
32fe5131 | 39589 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int(static_cast<int >(wxSL_LABELS))); |
7557b9b5 RD |
39590 | } |
39591 | { | |
32fe5131 | 39592 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int(static_cast<int >(wxSL_LEFT))); |
7557b9b5 RD |
39593 | } |
39594 | { | |
32fe5131 | 39595 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int(static_cast<int >(wxSL_TOP))); |
7557b9b5 RD |
39596 | } |
39597 | { | |
32fe5131 | 39598 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int(static_cast<int >(wxSL_RIGHT))); |
7557b9b5 RD |
39599 | } |
39600 | { | |
32fe5131 | 39601 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int(static_cast<int >(wxSL_BOTTOM))); |
7557b9b5 RD |
39602 | } |
39603 | { | |
32fe5131 | 39604 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int(static_cast<int >(wxSL_BOTH))); |
7557b9b5 RD |
39605 | } |
39606 | { | |
32fe5131 | 39607 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int(static_cast<int >(wxSL_SELRANGE))); |
7557b9b5 RD |
39608 | } |
39609 | { | |
32fe5131 | 39610 | PyDict_SetItemString(d,"SL_INVERSE", SWIG_From_int(static_cast<int >(wxSL_INVERSE))); |
7557b9b5 | 39611 | } |
b2dc1044 | 39612 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); |
d14a1e28 | 39613 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
51b83b37 | 39614 | SWIG_addvarlink(SWIG_globals,(char*)"NotebookNameStr",_wrap_NotebookNameStr_get, _wrap_NotebookNameStr_set); |
7e08d4ef RD |
39615 | { |
39616 | PyDict_SetItemString(d,"BK_DEFAULT", SWIG_From_int(static_cast<int >(wxBK_DEFAULT))); | |
39617 | } | |
39618 | { | |
39619 | PyDict_SetItemString(d,"BK_TOP", SWIG_From_int(static_cast<int >(wxBK_TOP))); | |
39620 | } | |
39621 | { | |
39622 | PyDict_SetItemString(d,"BK_BOTTOM", SWIG_From_int(static_cast<int >(wxBK_BOTTOM))); | |
39623 | } | |
39624 | { | |
39625 | PyDict_SetItemString(d,"BK_LEFT", SWIG_From_int(static_cast<int >(wxBK_LEFT))); | |
39626 | } | |
39627 | { | |
39628 | PyDict_SetItemString(d,"BK_RIGHT", SWIG_From_int(static_cast<int >(wxBK_RIGHT))); | |
39629 | } | |
39630 | { | |
39631 | PyDict_SetItemString(d,"BK_ALIGN_MASK", SWIG_From_int(static_cast<int >(wxBK_ALIGN_MASK))); | |
39632 | } | |
093d3ff1 | 39633 | { |
32fe5131 | 39634 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int(static_cast<int >(wxNB_FIXEDWIDTH))); |
093d3ff1 RD |
39635 | } |
39636 | { | |
32fe5131 | 39637 | PyDict_SetItemString(d,"NB_TOP", SWIG_From_int(static_cast<int >(wxNB_TOP))); |
093d3ff1 RD |
39638 | } |
39639 | { | |
32fe5131 | 39640 | PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int(static_cast<int >(wxNB_LEFT))); |
093d3ff1 RD |
39641 | } |
39642 | { | |
32fe5131 | 39643 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int(static_cast<int >(wxNB_RIGHT))); |
093d3ff1 RD |
39644 | } |
39645 | { | |
32fe5131 | 39646 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int(static_cast<int >(wxNB_BOTTOM))); |
093d3ff1 RD |
39647 | } |
39648 | { | |
32fe5131 | 39649 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int(static_cast<int >(wxNB_MULTILINE))); |
093d3ff1 | 39650 | } |
8e738329 | 39651 | { |
32fe5131 | 39652 | PyDict_SetItemString(d,"NB_NOPAGETHEME", SWIG_From_int(static_cast<int >(wxNB_NOPAGETHEME))); |
8e738329 | 39653 | } |
093d3ff1 | 39654 | { |
32fe5131 | 39655 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int(static_cast<int >(wxNB_HITTEST_NOWHERE))); |
093d3ff1 RD |
39656 | } |
39657 | { | |
32fe5131 | 39658 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int(static_cast<int >(wxNB_HITTEST_ONICON))); |
093d3ff1 RD |
39659 | } |
39660 | { | |
32fe5131 | 39661 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int(static_cast<int >(wxNB_HITTEST_ONLABEL))); |
093d3ff1 RD |
39662 | } |
39663 | { | |
32fe5131 | 39664 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int(static_cast<int >(wxNB_HITTEST_ONITEM))); |
093d3ff1 | 39665 | } |
d14a1e28 RD |
39666 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
39667 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
093d3ff1 | 39668 | { |
32fe5131 | 39669 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int(static_cast<int >(wxLB_DEFAULT))); |
093d3ff1 RD |
39670 | } |
39671 | { | |
32fe5131 | 39672 | PyDict_SetItemString(d,"LB_TOP", SWIG_From_int(static_cast<int >(wxLB_TOP))); |
093d3ff1 RD |
39673 | } |
39674 | { | |
32fe5131 | 39675 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int(static_cast<int >(wxLB_BOTTOM))); |
093d3ff1 RD |
39676 | } |
39677 | { | |
32fe5131 | 39678 | PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int(static_cast<int >(wxLB_LEFT))); |
093d3ff1 RD |
39679 | } |
39680 | { | |
32fe5131 | 39681 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int(static_cast<int >(wxLB_RIGHT))); |
093d3ff1 RD |
39682 | } |
39683 | { | |
32fe5131 | 39684 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int(static_cast<int >(wxLB_ALIGN_MASK))); |
093d3ff1 | 39685 | } |
d14a1e28 RD |
39686 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
39687 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
093d3ff1 | 39688 | { |
32fe5131 | 39689 | PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int(static_cast<int >(wxCHB_DEFAULT))); |
093d3ff1 RD |
39690 | } |
39691 | { | |
32fe5131 | 39692 | PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int(static_cast<int >(wxCHB_TOP))); |
093d3ff1 RD |
39693 | } |
39694 | { | |
32fe5131 | 39695 | PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int(static_cast<int >(wxCHB_BOTTOM))); |
093d3ff1 RD |
39696 | } |
39697 | { | |
32fe5131 | 39698 | PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int(static_cast<int >(wxCHB_LEFT))); |
093d3ff1 RD |
39699 | } |
39700 | { | |
32fe5131 | 39701 | PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int(static_cast<int >(wxCHB_RIGHT))); |
093d3ff1 RD |
39702 | } |
39703 | { | |
32fe5131 | 39704 | PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int(static_cast<int >(wxCHB_ALIGN_MASK))); |
093d3ff1 | 39705 | } |
2ef75293 RD |
39706 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED)); |
39707 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING)); | |
7e08d4ef RD |
39708 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED)); |
39709 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING)); | |
39710 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED)); | |
39711 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED)); | |
39712 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED)); | |
39713 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING)); | |
093d3ff1 | 39714 | { |
32fe5131 | 39715 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int(static_cast<int >(wxTOOL_STYLE_BUTTON))); |
093d3ff1 RD |
39716 | } |
39717 | { | |
32fe5131 | 39718 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int(static_cast<int >(wxTOOL_STYLE_SEPARATOR))); |
093d3ff1 RD |
39719 | } |
39720 | { | |
32fe5131 | 39721 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int(static_cast<int >(wxTOOL_STYLE_CONTROL))); |
093d3ff1 RD |
39722 | } |
39723 | { | |
32fe5131 | 39724 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int(static_cast<int >(wxTB_HORIZONTAL))); |
093d3ff1 RD |
39725 | } |
39726 | { | |
32fe5131 | 39727 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int(static_cast<int >(wxTB_VERTICAL))); |
093d3ff1 RD |
39728 | } |
39729 | { | |
32fe5131 | 39730 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int(static_cast<int >(wxTB_3DBUTTONS))); |
093d3ff1 RD |
39731 | } |
39732 | { | |
32fe5131 | 39733 | PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int(static_cast<int >(wxTB_FLAT))); |
093d3ff1 RD |
39734 | } |
39735 | { | |
32fe5131 | 39736 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int(static_cast<int >(wxTB_DOCKABLE))); |
093d3ff1 RD |
39737 | } |
39738 | { | |
32fe5131 | 39739 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int(static_cast<int >(wxTB_NOICONS))); |
093d3ff1 RD |
39740 | } |
39741 | { | |
32fe5131 | 39742 | PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int(static_cast<int >(wxTB_TEXT))); |
093d3ff1 RD |
39743 | } |
39744 | { | |
32fe5131 | 39745 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int(static_cast<int >(wxTB_NODIVIDER))); |
093d3ff1 RD |
39746 | } |
39747 | { | |
32fe5131 | 39748 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int(static_cast<int >(wxTB_NOALIGN))); |
093d3ff1 RD |
39749 | } |
39750 | { | |
32fe5131 | 39751 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int(static_cast<int >(wxTB_HORZ_LAYOUT))); |
093d3ff1 RD |
39752 | } |
39753 | { | |
32fe5131 | 39754 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int(static_cast<int >(wxTB_HORZ_TEXT))); |
093d3ff1 | 39755 | } |
b2dc1044 | 39756 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
093d3ff1 | 39757 | { |
32fe5131 | 39758 | PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int(static_cast<int >(wxLC_VRULES))); |
093d3ff1 RD |
39759 | } |
39760 | { | |
32fe5131 | 39761 | PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int(static_cast<int >(wxLC_HRULES))); |
093d3ff1 RD |
39762 | } |
39763 | { | |
32fe5131 | 39764 | PyDict_SetItemString(d,"LC_ICON", SWIG_From_int(static_cast<int >(wxLC_ICON))); |
093d3ff1 RD |
39765 | } |
39766 | { | |
32fe5131 | 39767 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int(static_cast<int >(wxLC_SMALL_ICON))); |
093d3ff1 RD |
39768 | } |
39769 | { | |
32fe5131 | 39770 | PyDict_SetItemString(d,"LC_LIST", SWIG_From_int(static_cast<int >(wxLC_LIST))); |
093d3ff1 RD |
39771 | } |
39772 | { | |
32fe5131 | 39773 | PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int(static_cast<int >(wxLC_REPORT))); |
093d3ff1 RD |
39774 | } |
39775 | { | |
32fe5131 | 39776 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int(static_cast<int >(wxLC_ALIGN_TOP))); |
093d3ff1 RD |
39777 | } |
39778 | { | |
32fe5131 | 39779 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int(static_cast<int >(wxLC_ALIGN_LEFT))); |
093d3ff1 RD |
39780 | } |
39781 | { | |
32fe5131 | 39782 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int(static_cast<int >(wxLC_AUTOARRANGE))); |
093d3ff1 RD |
39783 | } |
39784 | { | |
32fe5131 | 39785 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int(static_cast<int >(wxLC_VIRTUAL))); |
093d3ff1 RD |
39786 | } |
39787 | { | |
32fe5131 | 39788 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int(static_cast<int >(wxLC_EDIT_LABELS))); |
093d3ff1 RD |
39789 | } |
39790 | { | |
32fe5131 | 39791 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int(static_cast<int >(wxLC_NO_HEADER))); |
093d3ff1 RD |
39792 | } |
39793 | { | |
32fe5131 | 39794 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int(static_cast<int >(wxLC_NO_SORT_HEADER))); |
093d3ff1 RD |
39795 | } |
39796 | { | |
32fe5131 | 39797 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int(static_cast<int >(wxLC_SINGLE_SEL))); |
093d3ff1 RD |
39798 | } |
39799 | { | |
32fe5131 | 39800 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int(static_cast<int >(wxLC_SORT_ASCENDING))); |
093d3ff1 RD |
39801 | } |
39802 | { | |
32fe5131 | 39803 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int(static_cast<int >(wxLC_SORT_DESCENDING))); |
093d3ff1 RD |
39804 | } |
39805 | { | |
32fe5131 | 39806 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int(static_cast<int >(wxLC_MASK_TYPE))); |
093d3ff1 RD |
39807 | } |
39808 | { | |
32fe5131 | 39809 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int(static_cast<int >(wxLC_MASK_ALIGN))); |
093d3ff1 RD |
39810 | } |
39811 | { | |
32fe5131 | 39812 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int(static_cast<int >(wxLC_MASK_SORT))); |
093d3ff1 RD |
39813 | } |
39814 | { | |
32fe5131 | 39815 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int(static_cast<int >(wxLIST_MASK_STATE))); |
093d3ff1 RD |
39816 | } |
39817 | { | |
32fe5131 | 39818 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int(static_cast<int >(wxLIST_MASK_TEXT))); |
093d3ff1 RD |
39819 | } |
39820 | { | |
32fe5131 | 39821 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int(static_cast<int >(wxLIST_MASK_IMAGE))); |
093d3ff1 RD |
39822 | } |
39823 | { | |
32fe5131 | 39824 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int(static_cast<int >(wxLIST_MASK_DATA))); |
093d3ff1 RD |
39825 | } |
39826 | { | |
32fe5131 | 39827 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int(static_cast<int >(wxLIST_SET_ITEM))); |
093d3ff1 RD |
39828 | } |
39829 | { | |
32fe5131 | 39830 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int(static_cast<int >(wxLIST_MASK_WIDTH))); |
093d3ff1 RD |
39831 | } |
39832 | { | |
32fe5131 | 39833 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int(static_cast<int >(wxLIST_MASK_FORMAT))); |
093d3ff1 RD |
39834 | } |
39835 | { | |
32fe5131 | 39836 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int(static_cast<int >(wxLIST_STATE_DONTCARE))); |
093d3ff1 RD |
39837 | } |
39838 | { | |
32fe5131 | 39839 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int(static_cast<int >(wxLIST_STATE_DROPHILITED))); |
093d3ff1 RD |
39840 | } |
39841 | { | |
32fe5131 | 39842 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int(static_cast<int >(wxLIST_STATE_FOCUSED))); |
093d3ff1 RD |
39843 | } |
39844 | { | |
32fe5131 | 39845 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int(static_cast<int >(wxLIST_STATE_SELECTED))); |
093d3ff1 RD |
39846 | } |
39847 | { | |
32fe5131 | 39848 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int(static_cast<int >(wxLIST_STATE_CUT))); |
093d3ff1 RD |
39849 | } |
39850 | { | |
32fe5131 | 39851 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int(static_cast<int >(wxLIST_STATE_DISABLED))); |
093d3ff1 RD |
39852 | } |
39853 | { | |
32fe5131 | 39854 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int(static_cast<int >(wxLIST_STATE_FILTERED))); |
093d3ff1 RD |
39855 | } |
39856 | { | |
32fe5131 | 39857 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int(static_cast<int >(wxLIST_STATE_INUSE))); |
093d3ff1 RD |
39858 | } |
39859 | { | |
32fe5131 | 39860 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int(static_cast<int >(wxLIST_STATE_PICKED))); |
093d3ff1 RD |
39861 | } |
39862 | { | |
32fe5131 | 39863 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int(static_cast<int >(wxLIST_STATE_SOURCE))); |
093d3ff1 RD |
39864 | } |
39865 | { | |
32fe5131 | 39866 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ABOVE))); |
093d3ff1 RD |
39867 | } |
39868 | { | |
32fe5131 | 39869 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_BELOW))); |
093d3ff1 RD |
39870 | } |
39871 | { | |
32fe5131 | 39872 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_NOWHERE))); |
093d3ff1 RD |
39873 | } |
39874 | { | |
32fe5131 | 39875 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEMICON))); |
093d3ff1 RD |
39876 | } |
39877 | { | |
32fe5131 | 39878 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEMLABEL))); |
093d3ff1 RD |
39879 | } |
39880 | { | |
32fe5131 | 39881 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEMRIGHT))); |
093d3ff1 RD |
39882 | } |
39883 | { | |
32fe5131 | 39884 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEMSTATEICON))); |
093d3ff1 RD |
39885 | } |
39886 | { | |
32fe5131 | 39887 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_TOLEFT))); |
093d3ff1 RD |
39888 | } |
39889 | { | |
32fe5131 | 39890 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_TORIGHT))); |
093d3ff1 RD |
39891 | } |
39892 | { | |
32fe5131 | 39893 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int(static_cast<int >(wxLIST_HITTEST_ONITEM))); |
093d3ff1 RD |
39894 | } |
39895 | { | |
32fe5131 | 39896 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int(static_cast<int >(wxLIST_NEXT_ABOVE))); |
093d3ff1 RD |
39897 | } |
39898 | { | |
32fe5131 | 39899 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int(static_cast<int >(wxLIST_NEXT_ALL))); |
093d3ff1 RD |
39900 | } |
39901 | { | |
32fe5131 | 39902 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int(static_cast<int >(wxLIST_NEXT_BELOW))); |
093d3ff1 RD |
39903 | } |
39904 | { | |
32fe5131 | 39905 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int(static_cast<int >(wxLIST_NEXT_LEFT))); |
093d3ff1 RD |
39906 | } |
39907 | { | |
32fe5131 | 39908 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int(static_cast<int >(wxLIST_NEXT_RIGHT))); |
093d3ff1 RD |
39909 | } |
39910 | { | |
32fe5131 | 39911 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int(static_cast<int >(wxLIST_ALIGN_DEFAULT))); |
093d3ff1 RD |
39912 | } |
39913 | { | |
32fe5131 | 39914 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int(static_cast<int >(wxLIST_ALIGN_LEFT))); |
093d3ff1 RD |
39915 | } |
39916 | { | |
32fe5131 | 39917 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int(static_cast<int >(wxLIST_ALIGN_TOP))); |
093d3ff1 RD |
39918 | } |
39919 | { | |
32fe5131 | 39920 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int(static_cast<int >(wxLIST_ALIGN_SNAP_TO_GRID))); |
093d3ff1 RD |
39921 | } |
39922 | { | |
32fe5131 | 39923 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int(static_cast<int >(wxLIST_FORMAT_LEFT))); |
093d3ff1 RD |
39924 | } |
39925 | { | |
32fe5131 | 39926 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int(static_cast<int >(wxLIST_FORMAT_RIGHT))); |
093d3ff1 RD |
39927 | } |
39928 | { | |
32fe5131 | 39929 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int(static_cast<int >(wxLIST_FORMAT_CENTRE))); |
093d3ff1 RD |
39930 | } |
39931 | { | |
32fe5131 | 39932 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int(static_cast<int >(wxLIST_FORMAT_CENTER))); |
093d3ff1 RD |
39933 | } |
39934 | { | |
32fe5131 | 39935 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int(static_cast<int >(wxLIST_AUTOSIZE))); |
093d3ff1 RD |
39936 | } |
39937 | { | |
32fe5131 | 39938 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int(static_cast<int >(wxLIST_AUTOSIZE_USEHEADER))); |
093d3ff1 RD |
39939 | } |
39940 | { | |
32fe5131 | 39941 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int(static_cast<int >(wxLIST_RECT_BOUNDS))); |
093d3ff1 RD |
39942 | } |
39943 | { | |
32fe5131 | 39944 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int(static_cast<int >(wxLIST_RECT_ICON))); |
093d3ff1 RD |
39945 | } |
39946 | { | |
32fe5131 | 39947 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int(static_cast<int >(wxLIST_RECT_LABEL))); |
093d3ff1 RD |
39948 | } |
39949 | { | |
32fe5131 | 39950 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int(static_cast<int >(wxLIST_FIND_UP))); |
093d3ff1 RD |
39951 | } |
39952 | { | |
32fe5131 | 39953 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int(static_cast<int >(wxLIST_FIND_DOWN))); |
093d3ff1 RD |
39954 | } |
39955 | { | |
32fe5131 | 39956 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int(static_cast<int >(wxLIST_FIND_LEFT))); |
093d3ff1 RD |
39957 | } |
39958 | { | |
32fe5131 | 39959 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int(static_cast<int >(wxLIST_FIND_RIGHT))); |
093d3ff1 | 39960 | } |
d14a1e28 RD |
39961 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
39962 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
39963 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
39964 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
39965 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
39966 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
d14a1e28 RD |
39967 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); |
39968 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
39969 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
39970 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
39971 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
39972 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
39973 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
39974 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
39975 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
39976 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
39977 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
39978 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
39979 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
39980 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
39981 | ||
39982 | // Map renamed classes back to their common name for OOR | |
39983 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
39984 | ||
b2dc1044 | 39985 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
093d3ff1 | 39986 | { |
32fe5131 | 39987 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_NO_BUTTONS))); |
093d3ff1 RD |
39988 | } |
39989 | { | |
32fe5131 | 39990 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_HAS_BUTTONS))); |
093d3ff1 RD |
39991 | } |
39992 | { | |
32fe5131 | 39993 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int(static_cast<int >(wxTR_NO_LINES))); |
093d3ff1 RD |
39994 | } |
39995 | { | |
32fe5131 | 39996 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int(static_cast<int >(wxTR_LINES_AT_ROOT))); |
093d3ff1 RD |
39997 | } |
39998 | { | |
32fe5131 | 39999 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int(static_cast<int >(wxTR_SINGLE))); |
093d3ff1 RD |
40000 | } |
40001 | { | |
32fe5131 | 40002 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int(static_cast<int >(wxTR_MULTIPLE))); |
093d3ff1 RD |
40003 | } |
40004 | { | |
32fe5131 | 40005 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int(static_cast<int >(wxTR_EXTENDED))); |
093d3ff1 RD |
40006 | } |
40007 | { | |
32fe5131 | 40008 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int(static_cast<int >(wxTR_HAS_VARIABLE_ROW_HEIGHT))); |
093d3ff1 RD |
40009 | } |
40010 | { | |
32fe5131 | 40011 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int(static_cast<int >(wxTR_EDIT_LABELS))); |
093d3ff1 RD |
40012 | } |
40013 | { | |
32fe5131 | 40014 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int(static_cast<int >(wxTR_HIDE_ROOT))); |
093d3ff1 RD |
40015 | } |
40016 | { | |
32fe5131 | 40017 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int(static_cast<int >(wxTR_ROW_LINES))); |
093d3ff1 RD |
40018 | } |
40019 | { | |
32fe5131 | 40020 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int(static_cast<int >(wxTR_FULL_ROW_HIGHLIGHT))); |
093d3ff1 RD |
40021 | } |
40022 | { | |
32fe5131 | 40023 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int(static_cast<int >(wxTR_DEFAULT_STYLE))); |
093d3ff1 RD |
40024 | } |
40025 | { | |
32fe5131 | 40026 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_TWIST_BUTTONS))); |
093d3ff1 RD |
40027 | } |
40028 | { | |
32fe5131 | 40029 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_MAC_BUTTONS))); |
093d3ff1 RD |
40030 | } |
40031 | { | |
32fe5131 | 40032 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int(static_cast<int >(wxTR_AQUA_BUTTONS))); |
093d3ff1 RD |
40033 | } |
40034 | { | |
32fe5131 | 40035 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int(static_cast<int >(wxTreeItemIcon_Normal))); |
093d3ff1 RD |
40036 | } |
40037 | { | |
32fe5131 | 40038 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int(static_cast<int >(wxTreeItemIcon_Selected))); |
093d3ff1 RD |
40039 | } |
40040 | { | |
32fe5131 | 40041 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int(static_cast<int >(wxTreeItemIcon_Expanded))); |
093d3ff1 RD |
40042 | } |
40043 | { | |
32fe5131 | 40044 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int(static_cast<int >(wxTreeItemIcon_SelectedExpanded))); |
093d3ff1 RD |
40045 | } |
40046 | { | |
32fe5131 | 40047 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int(static_cast<int >(wxTreeItemIcon_Max))); |
093d3ff1 RD |
40048 | } |
40049 | { | |
32fe5131 | 40050 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ABOVE))); |
093d3ff1 RD |
40051 | } |
40052 | { | |
32fe5131 | 40053 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_BELOW))); |
093d3ff1 RD |
40054 | } |
40055 | { | |
32fe5131 | 40056 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_NOWHERE))); |
093d3ff1 RD |
40057 | } |
40058 | { | |
32fe5131 | 40059 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMBUTTON))); |
093d3ff1 RD |
40060 | } |
40061 | { | |
32fe5131 | 40062 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMICON))); |
093d3ff1 RD |
40063 | } |
40064 | { | |
32fe5131 | 40065 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMINDENT))); |
093d3ff1 RD |
40066 | } |
40067 | { | |
32fe5131 | 40068 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMLABEL))); |
093d3ff1 RD |
40069 | } |
40070 | { | |
32fe5131 | 40071 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMRIGHT))); |
093d3ff1 RD |
40072 | } |
40073 | { | |
32fe5131 | 40074 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMSTATEICON))); |
093d3ff1 RD |
40075 | } |
40076 | { | |
32fe5131 | 40077 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_TOLEFT))); |
093d3ff1 RD |
40078 | } |
40079 | { | |
32fe5131 | 40080 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_TORIGHT))); |
093d3ff1 RD |
40081 | } |
40082 | { | |
32fe5131 | 40083 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMUPPERPART))); |
093d3ff1 RD |
40084 | } |
40085 | { | |
32fe5131 | 40086 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEMLOWERPART))); |
093d3ff1 RD |
40087 | } |
40088 | { | |
32fe5131 | 40089 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int(static_cast<int >(wxTREE_HITTEST_ONITEM))); |
093d3ff1 | 40090 | } |
d14a1e28 RD |
40091 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
40092 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
40093 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
40094 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
40095 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
40096 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
40097 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
40098 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
40099 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
40100 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
40101 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
40102 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
40103 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
40104 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
40105 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
40106 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
40107 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
40108 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
40109 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 40110 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
e505d15e | 40111 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU)); |
d14a1e28 RD |
40112 | |
40113 | // Map renamed classes back to their common name for OOR | |
40114 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
40115 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
40116 | ||
b2dc1044 | 40117 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
093d3ff1 | 40118 | { |
32fe5131 | 40119 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int(static_cast<int >(wxDIRCTRL_DIR_ONLY))); |
093d3ff1 RD |
40120 | } |
40121 | { | |
32fe5131 | 40122 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int(static_cast<int >(wxDIRCTRL_SELECT_FIRST))); |
093d3ff1 RD |
40123 | } |
40124 | { | |
32fe5131 | 40125 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int(static_cast<int >(wxDIRCTRL_SHOW_FILTERS))); |
093d3ff1 RD |
40126 | } |
40127 | { | |
32fe5131 | 40128 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int(static_cast<int >(wxDIRCTRL_3D_INTERNAL))); |
093d3ff1 RD |
40129 | } |
40130 | { | |
32fe5131 | 40131 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int(static_cast<int >(wxDIRCTRL_EDIT_LABELS))); |
093d3ff1 RD |
40132 | } |
40133 | { | |
32fe5131 | 40134 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int(static_cast<int >(wxFRAME_EX_CONTEXTHELP))); |
093d3ff1 RD |
40135 | } |
40136 | { | |
32fe5131 | 40137 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int(static_cast<int >(wxDIALOG_EX_CONTEXTHELP))); |
093d3ff1 | 40138 | } |
d14a1e28 RD |
40139 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
40140 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
40141 | |
40142 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
40143 | ||
53aa7709 RD |
40144 | SWIG_addvarlink(SWIG_globals,(char*)"DatePickerCtrlNameStr",_wrap_DatePickerCtrlNameStr_get, _wrap_DatePickerCtrlNameStr_set); |
40145 | { | |
32fe5131 | 40146 | PyDict_SetItemString(d,"DP_DEFAULT", SWIG_From_int(static_cast<int >(wxDP_DEFAULT))); |
53aa7709 RD |
40147 | } |
40148 | { | |
32fe5131 | 40149 | PyDict_SetItemString(d,"DP_SPIN", SWIG_From_int(static_cast<int >(wxDP_SPIN))); |
53aa7709 RD |
40150 | } |
40151 | { | |
32fe5131 | 40152 | PyDict_SetItemString(d,"DP_DROPDOWN", SWIG_From_int(static_cast<int >(wxDP_DROPDOWN))); |
53aa7709 RD |
40153 | } |
40154 | { | |
32fe5131 | 40155 | PyDict_SetItemString(d,"DP_SHOWCENTURY", SWIG_From_int(static_cast<int >(wxDP_SHOWCENTURY))); |
53aa7709 RD |
40156 | } |
40157 | { | |
32fe5131 | 40158 | PyDict_SetItemString(d,"DP_ALLOWNONE", SWIG_From_int(static_cast<int >(wxDP_ALLOWNONE))); |
53aa7709 | 40159 | } |
d14a1e28 RD |
40160 | } |
40161 |